Quote:
Originally Posted by jreneew2
You dont have to. If he is running it on the roborio you can just plug in a usb camera and change
videoCapture = new VideoCapture();
to videoCapture = new VideoCapture();
videoCapture.open(0).
This opens up the usb camera plugged into the roborio. This works with virtuald's version on opencv on the roborio. However, the version he build doesn't work with mjpg streams. If you really want to use that, I would use opencv2 that another team compiled.
|
Yes, however the reason it runs on the driverstation is that MOST laptops teams use as driverstations are much faster then any of the raspi or rio. You want to be able to process them as fast as possible. If vision is done properly the gap between realtime vision processing and a driverstation program will be slightly different but relatively the same. It comes down to the robots using it more effectively. Also for simplicity setting up a driverstation program on windows is easier then navigating through the linux for the rio especially because not everybody wants to mess with the rio or linux.