Vision Tracking Issues

Hello,

we have been issues with our vision tracking. We have our Axis Cameras configured and plugged in and our code should work. We try to open the camera feed within code but there it isn’t working. The video capture is unable to open the stream and we can get there via web browser.

Code below :

// Robot Init
capFront = new VideoCapture(); //Class V
capFront.open(“http://10.29.72.16/mjpg/video.mjpg”);

//Auto Periodic
if (capFront.isOpened()){
// It doesn’t run.
}

If you can’t get there via web browser (aka copy + paste that URL into the address bar) then something is probably wrong with how it’s plugged in/wired.

OpenCV video captures don’t do MJPEG streams. Use the CameraServer to get the stream. Start here