Azer Ader Posted 16 hours ago Report Posted 16 hours ago Hello, I have a Python TCP server that streams webcam video frames as JPEG over the network. Now I want to build a LabVIEW client that can: Connect to the Python server Read the first 4 bytes (frame length) Receive the JPEG frame data Display the image on the LabVIEW Front Panel Note: I do not have NI Vision Toolkit, so I need a solution using .NET (MemoryStream + Image.FromStream) or any other method to display the image. Can someone share a simple example VI or block diagram to achieve this? Thanks 🙏tcp_video_server.pywebcam_tcp_client.py Quote
Francois Normandin Posted 1 hour ago Report Posted 1 hour ago @Azer Ader, you do not need .NET stream. Just use the native TCP socket. I recommend you read all incoming bytes and pass them down to a decoding loop. Here's an un-tested example code. You'll need to unflatten the bytes to image base on your image format. client_for_tcp_video_server.vi Quote
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.