From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I change the sequence of images I imported into Vision Assistant?

Solved!
Go to solution

Hello,

 

I have several large folders of images I pulled from a framegrabber. Each has between 300-500 .bmp images which are named 0, 1, 2, 3, ... , 365.  The problem is that when I use Vision Assistant to open the images it opens them out of order.  Ex: 1, 10, 100, 101, 102, ..., 11, 110, 111, ..., 12, 120, 121, ...

 

What is even more frustrating is that there doesn't seem to be a way to reorder the pictures, nor do I think I want to spend the time to do this for the 16 folders of images I am working with.

 

Thoughts... Ideas? 

0 Kudos
Message 1 of 2
(3,010 Views)
Solution
Accepted by topic author WuTang4eva

In cases like these, it is best to name the images using 3 digits and padding with zeroes on the left.

 

It would be pretty simple to write a quick vi that would read all the files in a directory.  For each file, it would strip out the old number and replace it with the three digit version.  If the number is less than 100, it could rename the file automatically.

 

I can't think of any other ways to solve your problem.

 

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 2
(3,006 Views)