I want to Display the Camera Image of the Integrated Vision Camera.
I am using a Cognex Camera connected to the Private Network with IP: 192.168.125.202.
I can look at the current CameraImage and Vision-Results on my PC in the Browser with the following URL: http://192.168.125.202:8087
Is it possible to Setup a UI-Component to display the current Vision Image of the Camera.
I’m having the same problem. I tried using the web server application template, but my camera (Cognex) is connected to the I/O network, and when I try to connect, I only see a blank screen.
Does anyone have any suggestions?
Create a very simple normal project and add one component that renders an iframe in onMounted. Use that iframe
to load the camera URL directly. Then debug it in the browser. This helps isolate whether the problem is with your app
template, with cross-origin restrictions, or with the camera response itself. The main things to check are:
whether the browser is blocking it because of CORS / X-Frame-Options / CSP
whether the server is actually returning valid video or image content
whether the browser supports the returned format
Also, the protocol matters a lot. Browsers usually work well with http / https when the server returns a browser-supported format such as standard MP4, MJPEG, or sometimes HLS.
If the Cognex device is exposing RTSP, a proprietary stream, or a codec/container the browser does not support, you may only get a blank screen even though the device is reachable. In that case, the stream usually needs to be converted or proxied into a browser-friendly format first.