Go to Post woo hoo! I rigged up brief Internet access using an old wornout robot battery. - Mark McLeod [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 03-26-2018, 06:36 PM
gcperk20's Avatar
gcperk20 gcperk20 is offline
Registered User
AKA: Grant Perkins
FRC #1100
Team Role: Programmer
 
Join Date: Mar 2018
Rookie Year: 2016
Location: Southborough MA
Posts: 24
gcperk20 is on a distinguished road
Accessing USB Camera's mjpgstream on Driver Station

I want to process images from our Microsoft Lifecam on our driver station computer. How can I access the stream in python code running on the driver station laptop?
Based off of this article, I think the ip address of the stream may be 10.TE.AM.2:1141 . I want to be able read frames from there.

Thank you!
Reply With Quote
  #2   Spotlight this post!  
Unread 03-26-2018, 07:16 PM
tjf tjf is offline
Registered User
AKA: Tim Flynn
FRC #1257 (Parallel Universe), #1228 (RoboTribe)
Team Role: Mentor
 
Join Date: Jun 2016
Rookie Year: 2016
Location: Central New Jersey (it exists!)
Posts: 370
tjf has a reputation beyond reputetjf has a reputation beyond reputetjf has a reputation beyond reputetjf has a reputation beyond reputetjf has a reputation beyond reputetjf has a reputation beyond reputetjf has a reputation beyond reputetjf has a reputation beyond reputetjf has a reputation beyond reputetjf has a reputation beyond reputetjf has a reputation beyond repute
Re: Accessing USB Camera's mjpgstream on Driver Station

That article talks about creating a CameraServer to stream the USB data over the network, so the .2 IP is the roboRIO in actuality, and your driver station is connecting to your roboRIO.
__________________

1257 (2016) - Student
1257 (2017-Present) - Overactive Alumnus | 1228 (2017-Present) - I do stuff
KD2KRT
Reply With Quote
  #3   Spotlight this post!  
Unread 03-26-2018, 08:00 PM
gcperk20's Avatar
gcperk20 gcperk20 is offline
Registered User
AKA: Grant Perkins
FRC #1100
Team Role: Programmer
 
Join Date: Mar 2018
Rookie Year: 2016
Location: Southborough MA
Posts: 24
gcperk20 is on a distinguished road
Re: Accessing USB Camera's mjpgstream on Driver Station

So am I on the right track by connecting to that address?
Reply With Quote
  #4   Spotlight this post!  
Unread 03-26-2018, 10:55 PM
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #6367 (), FRC #7240 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,383
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: Accessing USB Camera's mjpgstream on Driver Station

The port is most likely 1181.
__________________
Maintainer of RobotPy (Python for FRC) & WPILib Contributor
Creator of pyfrc (Robot Simulator + utilities for Python), pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript), and lots more...

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
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 04:46 PM.

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


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