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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -