Go to Post Would all you teams please stop! My chin will be bruised for weeks from dropping on the floor so much. - GaryVoshol [more]
Home
Go Back   Chief Delphi > Technical > Programming > Python
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-02-2017, 10:31
dithier dithier is offline
Registered User
FRC #0501
 
Join Date: May 2016
Location: Manchester
Posts: 8
dithier is an unknown quantity at this point
Trouble Streaming From Microsoft Lifecam HD 3000

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!
Reply With Quote
  #2   Spotlight this post!  
Unread 01-02-2017, 16:39
virtuald's Avatar
virtuald virtuald is online now
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,102
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
  #3   Spotlight this post!  
Unread 02-02-2017, 08:44
dithier dithier is offline
Registered User
FRC #0501
 
Join Date: May 2016
Location: Manchester
Posts: 8
dithier is an unknown quantity at this point
Re: Trouble Streaming From Microsoft Lifecam HD 3000

We're running it on the driver station. Thank you so much for this helpful example! We will try it tonight when we meet =)
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:25.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi