Ask Your Question
-1

Finding center of contour in a game

asked 2020-12-02 07:11:02 -0500

image description image description image description

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-12-02 08:34:15 -0500

berak gravatar image

updated 2020-12-02 08:54:07 -0500

please visit the resp. tutorials , it's all in there.

3) move mouse to the contour center

this is unfortunately os specific, and can't be done with opencv means

edit flag offensive delete link more

Comments

i'am not too familir with opencv i'am in process of learning can somone write me somelines it will help me so much

autohotkey11 gravatar imageautohotkey11 ( 2020-12-02 11:31:19 -0500 )edit
1

here are some keywords: cv::inRange, morphological operations (closing in particular), cv::findContours, connected components, cv::moments. you really need to work through some of the tutorials.

crackwitz gravatar imagecrackwitz ( 2020-12-02 14:18:52 -0500 )edit

how to get all pixel value inside the red contour?

autohotkey11 gravatar imageautohotkey11 ( 2020-12-06 18:38:45 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-12-02 07:11:02 -0500

Seen: 43 times

Last updated: Dec 02 '20