07-24-2005 03:06 PM
07-24-2005 04:19 PM
First, could you be talking about the webcam library from Peter Parente?
Second, it's hard to be specific without the code, but it sort of sounds like there is either an error in the code, or perhaps the library is doing some math that doesn't work when the size parameters are smaller than 300x200.
Third, the other problem is very typical of the kind of thing that can happen when a library function call isn't done just right.
Could you post the code--including the library?
Mike...
07-25-2005 03:56 AM
07-25-2005 07:11 AM
I have used this library in LV6.1 for exactly the same job. I had also this problem. It is more related to your webcam than the library. disconnect your webcam from the USB port and try smaller sizes! you won't get any fatal error and the program works fine. needless to say, you'll have a black box instead of the picture when your cam is disconnected. after each running session try resizing the picture box to feel it.
I think there isn't any problem with the library and the webcam itself can not transfer pictures with any desired size.
about your second problem, my code was fine in LV6.1 and just now I tested it with LV7.1. there was not any crashing!
Can you tell, why you are saving JPEG and PNG files in every iteration of the while loop? Is it necessary? Do you use these files somewhere else in your application simultaneously?
07-25-2005 09:48 AM
07-25-2005 10:14 AM
07-25-2005 10:54 AM
As far as I know there are only some limited picture sizes for webcams and the smallest size of mine is 320*200! I think you should think of a way to shrink the captured picture programmatically.
Also I suggest that you consider using a delay node in your while loop.
07-26-2005 04:03 AM
07-26-2005 04:04 AM
07-26-2005 05:29 AM