Reed19 Posted April 23, 2021 Report Share Posted April 23, 2021 Hi everyone, I am trying to receive the data stream from a camera using LabVIEW. I am unable to find it in NI MAX, so I can't use Vision. So far, I was able to receive the packets sent by the camera via UDP, and assemble them in what I think is an image frame. The data, however, is in a YUV420 format, so I didn't get anything meaningful from the image visualizer. What I have done so far is receive the UDP packets in a loop, assemble them together and then convert it to a 2-D array. Afterwards, I used IMAQ ArrayToColorImage, but I have only a noisy blue-ish image. Is there any LabVIEW-native way to convert from YUV420 to a 2-D array, or some way to display the YUV image directly? Thanks! Regards, Reed P.S. Sorry if this is not the right forum Quote Link to comment
dadreamer Posted April 23, 2021 Report Share Posted April 23, 2021 2 minutes ago, Reed19 said: Is there any LabVIEW-native way to convert from YUV420 to a 2-D array, or some way to display the YUV image directly? You could try the VIs from here: FFMPEG scripting in LabVIEW (.NET). In FFMPEG Examples v1.1.zip archive you may find yuv420p to RGB.vi, that should do the work for you. Also take a look at yuvplayer, it might be helpful to verify that you're doing the conversion properly. Quote Link to comment
Reed19 Posted April 23, 2021 Author Report Share Posted April 23, 2021 13 minutes ago, dadreamer said: You could try the VIs from here: FFMPEG scripting in LabVIEW (.NET). In FFMPEG Examples v1.1.zip archive you may find yuv420p to RGB.vi, that should do the work for you. Also take a look at yuvplayer, it might be helpful to verify that you're doing the conversion properly. Alright, I will give it a try! Thank you! Quote Link to comment
Reed19 Posted April 26, 2021 Author Report Share Posted April 26, 2021 On 4/23/2021 at 7:31 PM, dadreamer said: You could try the VIs from here: FFMPEG scripting in LabVIEW (.NET). In FFMPEG Examples v1.1.zip archive you may find yuv420p to RGB.vi, that should do the work for you. Also take a look at yuvplayer, it might be helpful to verify that you're doing the conversion properly. Quick update: it worked really well, thank you for the indication Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.