liquidg3 / cascadetrainer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cascadetrainer

a few things to help with cascade training using opencv requires opencv

generate_samples.js

very simple wrapper for opencv_createsamples to allow it to accept many positives for generation. it'll set everything up you need to start training at any place you request (defaults to ~/Desktop/training)

match.js

lets you test a new cascade. untested I have not made it this far in my testing.

setup

setup your directory structure like this to make life easier

positives
	sample-1
		image.png
		whatever.jpg
		...	
	sample-2
		different-dimensions.png
		orwhatever
negatives
	foo.jpg
	bar.png
	...	
backgrounds
	foo.jpg
	bar.png
	...
cascadetrainer
	generate_samplmes.js
	match.js
	....

usage

cd cascadetrainer
./generate_samples.js 
./match.js

The mergevec and convert_cascade were compiled on my Macbook Pro with OS X (10.9.2) so no promises they works. =)

About


Languages

Language:JavaScript 100.0%