Quote:
Originally Posted by Maxcr1
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.