Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

problem in saving pictures from USB camera

good morning labviewers,I have a problem in saving the pictures coming from the usb camera video,when i choose for example 5 pictures to save ,they save only the last one and they delete the previous one,how can i solve this problem please?

0 Kudos
Message 1 of 5
(2,689 Views)
Posting from phone can't see code.
- are you giving five different paths for images or same?
- if same it could be overwriting the previous image.
- if you want to save all then use different path for each image with different image names.
Thanks
uday
0 Kudos
Message 2 of 5
(2,671 Views)

Hey touitou,

 

I think the problem is in the Build Text express VI. When I took it out and just put ".tiff" for the pattern label, it successfully saved all of my images. Specifically, I wouldn't code the number into pattern label like "2.tiff". In my quick testing, this didn't seem to work. 

 

You could instead get the location and name from the user and then add it in only if another image by that name already exists.

 

On a side note, don't forget to dispose of your IMAQ buffers in each loop iteration. 

-----------------------------------------------
Brandon Grey
Certified LabVIEW Architect

0 Kudos
Message 3 of 5
(2,648 Views)

check this code 

your problem is that you have same path for all image so they overwrite 

Message 4 of 5
(2,640 Views)

thank you so much it had work 

0 Kudos
Message 5 of 5
(2,630 Views)