currently I am trying to creat a trafficsign-recognition haarcascade to my MV-cam. I used data from GTSRB(http://benchmark.ini.rub.de/?section=gtsrb&subsection=dataset) and after using openCV and (https://github.com/openmv/openmv/blob/m … cascade.py) script I have get the trafficsign-recognition.cascade. but Then I import in MV-cam
the cascade script is on the internal flash drive
trafficsign_cascade = image.HaarCascade("/trafficsign.cascade", stages=15)
img = sensor.snapshot()
Note: Lower scale factor scales-down the image more and detects smaller objects.
Higher threshold results in a higher detection rate, with more false positives.
objects = img.find_features(trafficsign_cascade, threshold=1, scale_factor=1.35)
for r in objects:
But my script just does nothing. It gets the snapshots, but recognized nothing. Does anyone have any experience in making MV-cam own haar-cascades?
What’s more ,I use the opencv own data(for example: haarcascade_eye.xml) transform to haarcascade_eye.cascade and also test again,but just like the above that recognized nothing. So,I might be something wrong but I don’t realize.
Should I used the data that snapshots from MV-cam to train xml again? Or just because the parameter I choose to use opencv train is inapposite.(the image size,-nstages .etc )
cascade_made.zip (3.48 MB)