View Single Post
  #3   Spotlight this post!  
Unread 08-05-2016, 23:01
team-4480's Avatar
team-4480 team-4480 is offline
Debug? What's that?
FRC #4480
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Minnesooota
Posts: 216
team-4480 will become famous soon enoughteam-4480 will become famous soon enough
Re: OpenCV: findContours() messing with images?

Quote:
Originally Posted by Jaci View Post
If you're using findContours(), you don't need to use Canny Edge Detection. By using Canny first, you're narrowing down the image and giving findContours() less information to work with, and so it's tolerances will cut out anything too small

Here's our code for acquiring the goal, although it is in C++ instead of Python I believe the API is roughly the same
Alright, makes sense. But do you know why it makes the input image so weird even though it isn't outputing to it? That seems to be the problem and it affects everything from edge input to masks.
__________________
#Python4Life
Reply With Quote