05-18-2020 11:35 AM - edited 05-18-2020 11:36 AM
Are there any options for NI-Vision style code for LabVIEW CE? I don't believe CE comes with the Vision library. I have a home project that needs to do some image processing. Are there any decent 3rd party open-source/free/etc vision toolkits out there that work well with LabVIEW?
(The application I have in mind is to read the values off dice. Basically, roll them and record the value a few hundred times to get an idea of randomness 😁)
05-18-2020 10:21 PM
I believe that CE does not come with Vision Acquisition Software (which requires an additional Licen$e from NI). How do WebCams get images when using Zoom, Teams, WebEx, etc. (as we've been doing lately)? Might there be a DLL that you could "tap" and get arrays of pixels that you process yourself? [Don't ask me -- I'm still "Web-challenged" ...].
Bob Schor
05-19-2020 08:36 AM
Check out this post and see if it helps:
https://forums.ni.com/t5/LabVIEW/2-hours-finished-the-webcam-program/m-p/782481#M357701
I'm also busy enjoying LabVIEW CE!
05-19-2020 12:05 PM - edited 05-19-2020 12:43 PM
Thanks for that post. I think I've tried that one before but I can't quite remember. I had a customer that needed simple camera acquisition and one of the old "generic Windows dll" functions wasn't working in Win10 anymore. I can try that one though, thanks.
The other issue is that I'll still need some image recognition. Poking around it looks like there are some open source ones but none of them seem to have any solid LabVIEW drivers. OpenCV looks promising but I haven't tried it yet.
I'll probably have to use either that dll or something similar to acquire the image, then send it to a separate image recognition code like openCV. As tons of that stuff is written in Python I might just do the image recognition in Python, heck maybe the whole thing. It'd be a good reason to learn Python anyway 🙂
05-19-2020 05:20 PM
If the performance requirements aren't that high I would probably just do the inspection in Python using the opencv package and pass it a pixel list instead of spending way too long getting all the CLFNs configured correctly.
I don't know what camera you're using but a lot of the times if you just go to the manufactures' site you can find some simple driver API to use (though may not be as likely if you're just using some generic webcam).