Skip to content

In this simple project I am creating a cropping tool to help me create positive samples for Open CV object detection.

Notifications You must be signed in to change notification settings

Mayco-Anderson/OpenCV-Cropping-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

OpenCV Cropping tool

I created this tool to make it easier the process of marking several images. It can be really useful when you're working with OpenCV and you want to create your own object detector. First you need to select a image source folder. Than you must select a text file which the program will use to output data.
Note You can also use a file that already have some data about your images. The program will load the data and also display the marked areas of the corresponding image. Therefore you can also use this program just to view the marked areas of your images. In the left there is a list of all the images and files located inside the source folder you selected.
When you select an image, the program will first try to load the marked area corresponding to this image.
Than you can simply click and drag the mouse on top of this image to drawn a square on it.
Note The square is not actually drawn in the image. It just represents the marked area. The image is never modified.
When you hit the Button Save, all the marked areas of all images are stored in the text file that you provided.
Data are stored in the following format:
image_Test.png 1 42.0 43.0 69.0 67.0
Dara are separated by spaces. The first argument is the name of the image, than the number of objects in this image (right now this program can only handle 1 object per image), than there is the X, Y, Width and Height of the marked area.

Hope this program become useful to you!
I will be working on some upgrades of this software as soon as I need it.

About

In this simple project I am creating a cropping tool to help me create positive samples for Open CV object detection.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published