Drag and Save source code using openCV

When we study machine learning, we have to get a lot of image data.
And we should cut off only positive region on the image.

If we have many image to crop positive region, this source code is useful.

---------------------------------------------------------------------------------------------------
The method to use is..
1. input the path to crop image data.
2. number of image data 

On the image,
Click and Mouse drag ( green box line is drawn)
Space bar(save and next image)


----------------------------------------------------------------------------------------------------
environment
vs 2008
OpenCV 2.43

source code

Comments

Popular posts from this blog

(OpenCV Study) Background subtractor MOG, MOG2, GMG example source code (BackgroundSubtractorMOG, BackgroundSubtractorMOG2, BackgroundSubtractorGMG)

OpenCV Stitching example (Stitcher class, Panorama)

Example source code of extract HOG feature from images, save descriptor values to xml file, using opencv (using HOGDescriptor )

Real-time N camera stitching Class.

Optical Flow sample source code using OpenCV

OpenCV Drawing Example, (line, circle, rectangle, ellipse, polyline, fillConvexPoly, putText, drawContours)

Video Stabilization example source code, (using cvFindHomography, cvWarpPerspective functions in openCV)

SICK LMS511 sensor data acquisition interface (source code, C++/MFC)

8 point algorithm (Matlab source code) / The method to get the Fundamental Matrix and the Essential matrix

Image warping (using opencv findHomography, warpPerspective)