4 ms·
Not quite sure what you're looking for but opencv's contour functions might help you here https://docs.opencv.org/3.4/d8/d1c/tutorial_js_contours_more_function
by drekipus 4y ago
Not quite sure what you're looking for but opencv's contour functions might help you here
https://docs.opencv.org/3.4/d8/d1c/tutorial_js_contours_more_functions.html https://docs.opencv.org/3.4/d8/d1c/tutorial_js_contours_more...
There's also a method of calculating the similarities of two areas called Union over Intersection, which is easy and quick to calculate.
Although it sounds like you got it figured out, so don't let me over complicate something that's already working.. :)
Would be interested in seeing the game!