Closed teddyernanto closed 8 years ago
Hello @teddyernanto yes, you can adapt the souce code for other object types. For motorcycle you may need to change the minArea and maxArea. If it does not works very well, you may need to change the background subtraction algorithm and/or apply some morphological operator algorithms to enhance the foreground mask.
Sorry,I just read your reply,Mr. Andrew Yes, I reduce minArea and maxArea value. Now, I can detect many motorcycles. But, any motorcycle does not detect. I try to update this value
cvb::cvUpdateTracks(blobs, tracks, 100., 10);
Am I wrong?
This is my BlobTracking.xml
<?xml version="1.0"?>
Thanks a lot for your explanation, Mr Andrew
On Wed, Jan 27, 2016 at 11:08 PM, Andrews Sobral notifications@github.com wrote:
Hello @teddyernanto https://github.com/teddyernanto yes, you can adapt the souce code for other object types. For motorcycle you may need to change the minArea and maxArea. If it does not works very well, you may need to change the background subtraction algorithm and/or apply some morphological operator algorithms to enhance the foreground mask.
— Reply to this email directly or view it on GitHub https://github.com/andrewssobral/simple_vehicle_counting/issues/6#issuecomment-175715538 .
Hello, Mr. Andrew. I'm Teddy Ernanto. I ask where is the code must changed for detect motorcycle? Change minArea & maxArea or any else?