mahaveerverma / hand-gesture-recognition-opencv

A project on hand detection and hand gesture recognition developed using OpenCV on Python 2.7.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use your algorithm in static images

jianghongsun opened this issue · comments

Thank you very much for your algorithm.Can you give me some advice for me in static images?

@jianghongsun The code will wait for you to capture background, then to capture hand and then it will proceed with capturing video frames in realtime. This code was written keeping video in mind and here we have the luxury of first capturing a blank background and hand histogram in pre-processing stage to not just help recoginition in the later stages but also as a method to understand the difference between hand in the foreground and the remaining background. I doubt the same framework will be useful to you in static images but you can try removing the part where background comes into picture (in processing mainly, it's okay if you mess up the capturing part but you need to properly remove the part where background is being used in processing) and then try detecting hand based on just a sample histogram instead of a histogram captured live (in video, for this code). I'm closing this 'issue' since it's not really an issue. Feel free to email me at mahaveer.verma1@gmail.com if you need further assistance.