dilawar / eye-blink-detector

An eye blink detector in python + opencv
48 stars 24 forks source link

Error on using blinky_gui.py #6

Closed NIDHIPANDA closed 6 years ago

NIDHIPANDA commented 6 years ago

Hello Dilawar, I am trying to run your blinky_gui.py code on Ubuntu16.04 using virtual environment with Python 3.5 and OpenCv 3.3. version. I am taking one .mp4 file as video input. On running I am getting this error. screenshot from 2018-03-31 04-15-33 Can you please help me with this.

dilawar commented 6 years ago

Can you upload the MP4 or share it via drive?

I haven't tested it with python3. Try with python2.7 as well.

⁣Sent from Blue ​

On 30 Mar 2018, 10:46 PM, at 10:46 PM, NIDHIPANDA notifications@github.com wrote:

Hello Dilawar, I am trying to run your blinky_gui.py code on Ubuntu16.04 using virtual environment with Python 3.5 and OpenCv 3.3. version. I am taking one .mp4 file as video input. On running I am getting this error. screenshot from 2018-03-31
04-15-33 Can you please help me with this.

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/dilawar/eye-blink-detector/issues/6

NIDHIPANDA commented 6 years ago

Thank you so much for your reply. I have sent video file on your mail ID mentioned in your code as I don't know how to share it here.

dilawar commented 6 years ago

Please reopen it if it does not work. openv>3.0.0 has major changes in function return values/types. Few other things can break as well.

NIDHIPANDA commented 6 years ago

Thank you for the change in script. Now it worked nicely upto 4th blink . But after 4th blink it is showing following error. screenshot from 2018-03-31 20-05-56 One more thing I am new in this area. Can you please tell me how to debug the code to understand it better (like we do in MATLAB) by using virtual environment. As mentioned earlier I am using openCv 3.3 and python 3.5.2 on virtual environment. I tried to use IDEL but the python cell showed error in importing cv2. Is there any other way by directly using terminal window of ubuntu 16.04.

dilawar commented 6 years ago

There are tools such as spyder https://pythonhosted.org/spyder/installation.html .

Once you are comfortable with python, you usually don't need debugger. These errors are good enough to fix the issue.