View Single Post
  #2   Spotlight this post!  
Unread 26-01-2016, 22:30
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,043
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: How to get USB camera image to Roborealms?

Quote:
Originally Posted by razar51 View Post
Our team has been looking into using Roborealms this year but we are having issues.

We can't seem to get a USB camera image over to Roborealms. We can get the feed to show up at the Default Driver station by using StartAutomaticCapture.
Are you sure that you've upgraded your RoboRIO to the 2016 image and your driver station to the 2016 tools? If you're using python, it doesn't work in 2016 because of NTCore compatibility issues (see https://github.com/robotpy/robotpy-wpilib/issues/172). We might have something compatible with LabVIEW by the end of this week, which would resolve this bug.

Quote:
I browsed some of the C++/Java forum sections and saw multiple mentions of not using automatic capture but instead using setImage from the cameraserver object. They all mention an intermediate code example (which I don't have since we are not using c++/Java). We are a bit stumped about how we can get the image to feed into setImage.

Does anyone have any ideas?
The USBCamera stuff in python is going to be very low performance, and I wouldn't recommend using it. Instead, I would recommend using mjpg-streamer (see https://github.com/robotpy/roborio-packages for more information on installing packages), and it appears that the HTTP_READ module in RoboRealm will support this type of stream (their docs: http://www.roborealm.com/help/HTTP_Read.php).

Let me know if it works, and we can add notes to the mjpg-streamer notes.
__________________
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