01-05-2023 02:07 PM - edited 01-05-2023 02:36 PM
Hi,
I am working on a Vi to record video by using USB camera. i am stuck on the part how to change picture box (.net reference) to intensity graph.
( i don't want to use IMAQ )
i am using thorlab USB camera and most of the dll is already provided by the distributor.
Thanks.
01-06-2023 05:44 AM
via FFMPEG it is possible to convert a dotnet picture box to an LabView Array, which is the basis for the intensity plot - example code can be found here:
https://forums.ni.com/t5/Example-Code/FFMPEG-scripting-in-LabVIEW-NET/ta-p/3515713
e.g. "FFMPEG - Example - RTSP - Extract frame as PPM.vi" - Extracts single frame, stamps image with timestamp, frame count and duration. Pipes resulting frame to LabVIEW, converts PPM data to 2D Image array.
There also exist another option using - a rather obsolet - Windows Runtime:
https://forums.ni.com/t5/Example-Code/Video-for-Windows-avicap32-dll/ta-p/3491285