visual c++ - Stop Camshift algorithm -
i using camshift algorithm final year project stuck on point. not able terminate algorithm automatically. after remove object in front of camera, algorithm keeps tracking. have heard termination criteria don't know whether applicable here or not. appreciated. in advance.
here's code on github: code
thanks
ok figured out myself. roi in actual image can cropped new image. comparing actual object size , roi size, if ratio beyond specific value, can determine object lost.
in case, ratio taken 0.3
Comments
Post a Comment