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

cannot running as demo #7

Closed
Dragonwarri0r opened this issue May 29, 2018 · 8 comments
Closed

cannot running as demo #7

Dragonwarri0r opened this issue May 29, 2018 · 8 comments

Comments

@Dragonwarri0r
Copy link

when i press b to get background and n to start,it can running a little time but gradually my hand integrate into backgroud(black).

@struggling-man
Copy link

I have the same situation. can you help me!

@lzane
Copy link
Owner

lzane commented Jun 2, 2018

Have you try to set different parameters? This CV approach is easy light-affected.
It's a very old project so I nearly forget the detail.

Anyway, I will try it on my computer when I can reach one.

Good Luck~

@lzane
Copy link
Owner

lzane commented Jun 2, 2018

Hey, I have noticed that the issue was caused by the new version of OpenCV api's modification.

Please checkout https://docs.opencv.org/3.4/d7/d7b/classcv_1_1BackgroundSubtractorMOG2.html#a682adde901148d85450435e6cc0de4a1

I wrote my code with OpenCV2, sorry for not testing the other contributor's pull request.

I will push a new version of code in a few minutes.

@lzane
Copy link
Owner

lzane commented Jun 2, 2018

@Dragonwarri0r @struggling-man Plz pull the new version.

Hope it works for you guys. :)

@taojinglong
Copy link

When we use the latest version of opencv,line 96 in the new.py should be changed to this

  • _, contours, hierarchy = cv2.findContours(thresh1, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)

  • contours, hierarchy = cv2.findContours(thresh1, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)

@lzane
Copy link
Owner

lzane commented Jul 10, 2019

@taojinglong you are right.

As the document show, that's because of the breaking change of the findContours api.

Since the project I write is in OpenCV 3, I Don't have plan to change it from the source code.

But I will find time to add the notice to the README

Doc:

@lzane
Copy link
Owner

lzane commented Aug 26, 2019

Close this issue since it's solved.

@lzane lzane closed this as completed Aug 26, 2019
@vedant10
Copy link

vedant10 commented Dec 7, 2019

How to display the number of fingers in number. Eg 1 or 2 or 10

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