Log in

View Full Version : Problems With Vision Processing


amitk47
31-01-2011, 16:41
We have been trying to learn how to process images using Vision Assistant in the last few days, but the VI file for the script we made
(The example script in the tutorial for Vision Assistant - http://www.ni.com/pdf/manuals/372228f.pdf) doesn't work. The error code we got when we tried to debug the code was: -1074396080. The VI file is atached here.

Please help us,
Thanks.

Greg McKaskle
31-01-2011, 20:45
My guess is that your subVI is fine provided you wire up a mono image to it. The camera and Get Image VI return color images. You may want to add one more step, which is to extract a color plane or otherwise convert to mono.

Greg McKaskle

amitk47
01-02-2011, 14:49
Firstly, thanks - the vi works now. But there is another problem- when we try to debug the vi by watching the result image after each step of the processing - and we try to watch the image after being converted to binary- we get a black image. Is there any way to see the binary image in red\black the same way as in Vision Assistant while the code is running?
Thanks

Greg McKaskle
01-02-2011, 21:29
It is a little annoying when that happens, but easy to correct. You right click on the image control -- on the panel or in a probe, and you choose Palette>Binary. The others are more useful for color or monochrome.

Greg McKaskle