Thread: Open CV help
View Single Post
  #8   Spotlight this post!  
Unread 02-02-2017, 18:52
elijah1111's Avatar
elijah1111 elijah1111 is offline
Registered User
FRC #4601 (Circuit Birds)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2015
Location: Ohio
Posts: 15
elijah1111 is an unknown quantity at this point
Re: Open CV help

Quote:
Originally Posted by Maxcr1 View Post
The secret to using vision for Steamworks is having an angle of attack of the camera to avoid the gear getting in the way of seeing the tape. The vision is possible and the calculations do exist, and aren't too bad if you follow 254's presentation.

Vision Presentation

Multithreading is often unrealistic because all of the tasks have to be run in a linear pattern, and while running multiple versions can be effective, it causes issues with multiple threads fighting over the same frame. You can use a lock, but that requires Python and that can be another issue
By frame do you mean the image? The multithread would be linear, there is only one thread for camera. I just need the auto to tell that thread to find the distance between the center points then relay it back to convert to encoder values. I am multithreading because the open cv capture and operations would bog down the robot. Of course I could always just take a still image of the tape but i figured it would be better to take a video to average out the distances.
Reply With Quote