View Single Post
  #2   Spotlight this post!  
Unread 26-01-2017, 16:45
jmcculloch jmcculloch is offline
Jeremy McCulloch
FRC #2485 (W.A.R. (We Are Robot) Lords)
Team Role: Programmer
 
Join Date: May 2016
Rookie Year: 2015
Location: San Diego
Posts: 5
jmcculloch is a jewel in the roughjmcculloch is a jewel in the roughjmcculloch is a jewel in the roughjmcculloch is a jewel in the rough
Re: Error while processing images through OpenCV pipeline

This error occurs when you have opened 10 or more output streams, which you are presumably not trying to do. However, because you put the code that opens an output stream in the vision thread, and start the vision thread each time you run the constructor of this command, it is possible that this code will run multiple times and open a new stream each time. To remedy this you should probably create a single instance of the output stream and access it through the RobotMap instead of creating one each time you construct this command. Hope this helps.
Reply With Quote