View Single Post
  #9   Spotlight this post!  
Unread 13-11-2016, 20:53
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,041
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: Sending OpenCV Output back to the Driver Laptop?

Quote:
Originally Posted by AlexanderTheOK View Post
While I personally have used mjpg-streamer for some other projects, I've never used it to serve images from opencv. my preferred method has been this copy pasted and cut up to be used as it's own module. Might be interesting to see if there are any performance differences between doing it yourself and going through mjpg-streamer.
The code you linked to is fairly inefficient in a couple of different ways (in particular, it doesn't reuse image buffers), so I'm sure out of the box the mjpg-streamer would beat the pants out of it, particularly if you ran it on a RoboRIO.

After optimization, I suspect the mjpg-streamer version would still end up winning.
__________________
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