Closed Dragonwarri0r closed 5 years ago
I have the same situation. can you help me!
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~
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.
@Dragonwarri0r @struggling-man Plz pull the new version.
Hope it works for you guys. :)
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)
Close this issue since it's solved.
How to display the number of fingers in number. Eg 1 or 2 or 10
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).