how to use mouse event to get out loop in opencv using setmousecallback -
OpenCV's setmousecallback () to break the loop (for webcam video frames) as soon as the user presses
intxor, int yCor, int flag, blank * user input) {point 3_ & lt; Int & gt; * Mouse input = (Point 3_ & lt; int & gt; *) User Input; Mouse inputs-> X = xCor; Mouse inputs-> Y = yCor; MouseInputs- & gt; Z = event; } // for for loop (;;) {Camera & gt; & Gt; Frame; Imshow ("average frame", here is the 'code'; setmusickelback ("average frame", blmozole, and mouse input); if (mouseInputs.z == EVENT_RBUTTONDOWN) {cout & lt; & lt; "user selected ROI Highest Director "
// mouse callback function zero getMouseLoc (int event, int XCor, int yCor, int flag, empty * user input) {point3_
Comments
Post a Comment