Using OPENCV how to calculate the image, with a black line drawn area; I made a left click, point, record the points to calculated using contourArea, but always abnormal; Problem a, to calculate the area, whether to need to do other operations? Question 2, I again drew a region in the area of the black line, how to compute can one-time large area is not part of the small circle area in?
CodePudding user response:
Collapsed in the pop-up dialog box, press the corresponding button to enter debugging press Alt + 7 key to view the Call Stack, namely "the Call Stack" from the inside to the following out of from the inner to outer function Call history, double-click a row to the cursor to the Call of the source code or assembly instruction, don't understand when double click on the next line, until we can read ,
CodePudding user response:
Don't know what did you do, but contourArea is calculating the area of the contour, you may need to look for the outline (outline is closed), the simple point set may calculate don't come out