View Single Post
  #2   Spotlight this post!  
Unread 01-02-2017, 16:39
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,105
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: Trouble Streaming From Microsoft Lifecam HD 3000

Quote:
Originally Posted by dithier View Post
We are using python and opencv for vision processing this year. Last year we used the axis camera and by passing in url = 'http://10.5.1.11/axis-cgi/mjpg/video.cgi?resolution=640x480' into cv2.VideoCapture(url) we were able to get frames of what the camera was seeing in order to process them.

This year however, we are trying to use the Microsoft Lifecam HD 3000 and have had no success streaming images. We tried using the url that works fine in the browser, but have had no success.

Does anyone have any suggestions?

Thanks in advance!
Most likely you are using a version of OpenCV that does not have ffmpeg/libav compiled in (or if you're on Windows, it's not in the right place)

Is this on a PI/other coprocessor or on the driver station? I'd recommend using robotpy-cscore to read from the stream, the ffmpeg jpg stream stuff is pretty terrible and has a lot of latency. Unfortunately, the docs aren't quite there yet... but check out this example of reading from a HTTP stream, it's pretty simple and very high performance: https://github.com/robotpy/robotpy-c...ttpcvstream.py
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
Reply With Quote