5.0

5.0 | 1 rating Rate this file 69 Downloads (last 30 days) File Size: 537 KB File ID: #39627
image thumbnail

Cascade Training GUI: Specify Ground Truth

by Brett Shoelson

 

08 Mar 2013 (Updated 08 Mar 2013)

Interactive GUI for managing the selection and positioning of rectangular ROIs in a list of images.

| Watch this File

File Information
Description

CascadeTrainGUI:

Interactive GUI for managing the selection and positioning of rectangular ROIs in a list of images, and for specifying ground truth for training algorithms.
   * Add/remove/rotate/sort images
   * Add/remove/reposition/ delete/copy/paste ROIs
   * Generate/export structure of image names and ROI positions
   * Save/restore sessions
   * Keyboard shortcuts designed to facilitate the process
 
If you plan on training a detector, or have other uses for multiple-ROI selection and management, this tool is for you!
 
Note that the zip file includes an mlappinstall file. You can use this GUI in the standard fashion, or double-click the mlappinstall file to install CascadeTrainGUI as an App on your App Toolbar.

Comments, suggestions welcome!

SEE ALSO: SegmentTool, MorphTool, ImadjustGUI, FindCirclesGUI

Acknowledgements

Create Button Label and Uigetvariables: Dialog To Pass Variables From Workspace Into Gui inspired this file.

Required Products Image Processing Toolbox
Computer Vision System Toolbox
MATLAB release MATLAB 8.0 (R2012b)
Tags for This File  
Everyone's Tags
cascade training gui, computer vision, ground truth, machine learning, object detection(2), roi selection, viola jones, violajones
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (12)
25 Jun 2013 Ali M

@Brett Shoelson
Sir, the detection is good now, but incrementing the false positive and decrementing the false negative, i have 3 question for you:
1) in each stage how many haar feature we use, and which best generally haar or hog?
2) what is really the false positive value and the false negative (i don't have a big experience in object detection and i am still learning)?
3) how i make a count function that return to me the number of object detected?
Thank You.

24 Jun 2013 Brett Shoelson

@Ali:
I'm sorry, Ali. I don't really know what your question is. Are you concerned because your results aren't as good as you'd like unless your images are similar in size to the negative images you used? (One thing that occurs to me immediately is that 60 positive images might be too few to expect or get really good results.)
Cheers,
Brett

21 Jun 2013 Ali M  
21 Jun 2013 Ali M

Hi all, i made a train of 60 positives images for pedestrian detection and 1000 negatives samples, the positive ones have variables width and height but the negatives have 64x128, and when i test an image, a good result is when i resize the tested image into 64x128
Number of stage: 5.
Negative sample factor: 2.
Per stage true positive value: 0.995.
Any help ?
Thank you

19 Apr 2013 Brett Shoelson

@rana:
Rana, can you tell me a bit about what you tried? Were you able to establish ROIs in all of the 15 face images? Did you get any helpful messages inside of CascadeTrainGUI when you pressed the 'Train Detector!' button? (BTW, that's an exceptionally small number of images--I wouldn't be too optimistic about the quality of the detector.)

18 Apr 2013 rana

while executing the gui and after loading 15 face images and 20 nonface images to train the system i obtained this error : 'Error using ocvTrainCascade
Error in generating samples for training. No samples could be generated for training
the first cascade stage.'

13 Mar 2013 Nicola Franzoso

Brett, all is fine and works !!
I'm a little bit tired but after a strong coffee all working fine.
Thank's

13 Mar 2013 Brett Shoelson

@Nicola:
Thanks, Nicola. I had hoped that using this would be pretty self-explanatory. Can you tell me a bit about what you're having trouble with? (If it's actually training a detector [second tab], note that you'll need to download and install R2013a, and have a license for Computer Vision System Toolbox, to do so.)

13 Mar 2013 Nicola Franzoso

Brett, this is good, but can you explain me how i have to use this tools from train cascade object ?
Very nice the pictures of baby

10 Mar 2013 Brett Shoelson

@Harsh:
I appreciate your comment, Harsh. (Especially the "superb work" part :) ). I call your attention to my note below; MATLAB R13a is live, and ready for download. I waited until that was true before posting this file.

And if your "how?" refers to "how did I get access to R13a" before it was officially released--I should point out that I work for MathWorks!

Download R13a and start training!

10 Mar 2013 Harsh Singh

getting errors while trying to train in R12a.....how can i modify code to get it running.....btw superb work.....but it was unfair to make it for R13a one month advance(how?)......disapointing!

08 Mar 2013 Brett Shoelson

PLEASE NOTE: Training a cascade detector in MATLAB requires R2013a (which is live today, and ready for download!). You can use this GUI in previous versions to specify ground truth and to apply pre-trained detectors...but you'll need R13a to train new ones!

Updates
08 Mar 2013

*

08 Mar 2013

Includes interface to train the detector, and to apply a trained detector to a set of images!

08 Mar 2013

Includes interface to train a detector, and to apply a trained detector to a series of images!

Contact us