12-29-2021 08:04 AM
Hello All and Happy new Year.
I am trying to develop an application using the Vision Development Module Lib.
I'm using the clamp max example. and trying to adapt it for my purpose.
The first thing I did was to change the image used in the example. but then I get a blank screen in the output windows.
I have placed a probe before the the image indicator, the probe value is empty string i.e. " "
I am also loading the image I'm trying to use.
Thanks!
Any thoughts?
Gil,
12-29-2021 10:36 AM
There might be a bug in your code...
12-29-2021 10:56 AM
I only changed the path to the new file.
No code was changed.
Thanks!
Gil,
12-29-2021 01:55 PM
@gilmaor1 wrote:
Any thoughts?
Yes -- please attach your VI so we can better understand what you are trying to do. It is much easier to look at existing code and say "Oh, there's the mis-understanding" ...
Bob Schor
12-30-2021 06:00 AM - edited 12-30-2021 06:03 AM
@gilmaor1 wrote:
I only changed the path to the new file.
Sure.
The image might be a different type.
If your code is made for color images, it might fail if the loaded image is grayscale. Or vice versa.
Even though the attached image looks grayscale, it can just as well be a color (RGB) image with pixels with equal R, G and B (AKA grays).
Without seeing any code, anything could be wrong, really. Maybe the image height? The Width? Maybe your vision routines don't recognize the guy's face? Maybe it only works with woman?
Try to use error outputs and\or probes to see where your code doesn't behave as expected. Compare the results of each step (VI, function, structure, etc) between the working image and the failing image.
Or post the code if you want us to have a look...
12-30-2021 12:20 PM
Did you notice that the Example image was basically binary (the majority of the pixels were either "almost black" or "dirty gray")? The Example image was also 8-bit Gray Scale -- I'll bet if you did a histogram on the Image, it would have (only) two obvious peaks.
Bob Schor