Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main.py is Runnning Fine But No object Detection #34

Open
hacha0929 opened this issue Nov 21, 2019 · 5 comments
Open

main.py is Runnning Fine But No object Detection #34

hacha0929 opened this issue Nov 21, 2019 · 5 comments

Comments

@hacha0929
Copy link

I tried to move in front of the camera, No movement detection and email sending, the live stream is working fine. Please help.

@matancarmeli7
Copy link

same happens to me

@icerchill
Copy link

icerchill commented Dec 4, 2019

the problem is because only the frame return from get_object() get painted in green rectangle check_for_objects() function, which I guess author's purpose is to only send email detection rectangle?
if you want to see the green grid in realtime you need to modify the code a little bit in gen() function to yield the returned frame. A simple if statement should do the trick.

@AWadehra
Copy link

@icerchill do you have any idea as to what to exactly add?

@icerchill
Copy link

@icerchill do you have any idea as to what to exactly add?

so the video_camera.get_object(object_classifier) function inside check_for_objects_and_notify() will return the exact detected "green grid" frame with and a boolean tuple(frame and boolean).
so if you put this line inside the get() function. check for this boolean and use the returned frame to yield then it renders that green frame if found_obj is true on the web.
its really depend how you want to implement, the catch is the video_camera.get_object() returns THE actual frame detection frame. In the author's code it just renders every frame that camera captures.

@prajwal2319
Copy link

Try to change the cascade classifiers in models section , there are many other classifiers in opencv libraries which you can use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants