View Single Post
  #59   Spotlight this post!  
Unread 15-02-2016, 10:38
jreneew2's Avatar
jreneew2 jreneew2 is offline
Alumni of Team 2053 Tigertronics
AKA: Drew Williams
FRC #2053 (TigerTronics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Vestal, NY
Posts: 213
jreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura about
Re: mjpg-streamer running on roboRIO

How would you connect opencv code running on the roboRIO to the jpeg stream. (in c++). I've seen your code in python, but where are you getting that IP from? I've tried numerous ips and can't seem to connect it. I can connect the the page fine and see the stream at http://roboRIO-2053-frc.local:5800/?action=stream, but I don't know what IP to enter in the code. do you have to set a static ip for the camera?

EDIT: I've also tried doing this (after looking on google for a bit):
videoCapture.open("http://roborio-2053-frc.local:5800/?action=stream?dummy=param.mjpg");

Nothing. Any suggestions?

Last edited by jreneew2 : 15-02-2016 at 11:58. Reason: added info