ravigithub19 / ai-virtual-mouse

Developed an AI-based system to control the mouse cursor using Python and OpenCV with the real-time camera. Fingertip location is mapped to RGB images to control the mouse cursor.
91 stars 45 forks source link

cannot run the code #1

Open hawk321jk opened 3 years ago

hawk321jk commented 3 years ago

im using macbook pro and using vs code.

problem : there is no module named cv2

ravigithub19 commented 3 years ago

You first try to install all the dependencies.

hawk321jk commented 3 years ago

done

ravigithub19 commented 3 years ago

can you share the screenshot of the error?

hawk321jk commented 3 years ago

image still cant

hawk321jk commented 3 years ago

image

hawk321jk commented 3 years ago

there

ravigithub19 commented 3 years ago

Since you are using a mac, python basically comes preinstalled so try to update the current version to 3. I think this will work.

hawk321jk commented 3 years ago

im using 3.7 python

hawk321jk commented 3 years ago

hello?

ravigithub19 commented 3 years ago

hello?

I recently checked and it's working fine in my system. Please check all the dependencies, try to reinstall again before proceeding further.

hawk321jk commented 3 years ago

how to delete it??

AmanPatel18 commented 3 years ago

I think you have installed cv2....but you need to install opencv...cv2 comes under it

hawk321jk commented 3 years ago

ok

hawk321jk commented 3 years ago

this one?? image

hawk321jk commented 3 years ago

image

hawk321jk commented 3 years ago

image

hawk321jk commented 3 years ago

image what should i use?

ravigithub19 commented 3 years ago

image what should i use?

Use any of the python 3 version

CoderZ90 commented 3 years ago

image what should i use?

Use any of the python 3 version

I am facing the problem - i cant install autopy module ( pip install autopy ) please help

ravigithub19 commented 3 years ago

image what should i use?

Use any of the python 3 version

I am facing the problem - i cant install autopy module ( pip install autopy ) please help

Which IDE?

CoderZ90 commented 3 years ago

image what should i use?

Use any of the python 3 version

I am facing the problem - i cant install autopy module ( pip install autopy ) please help

Which IDE?

In vscode but i have also tried in pycharm ( still cant install ) python version - 3.9

ravigithub19 commented 3 years ago

image what should i use?

Use any of the python 3 version

I am facing the problem - i cant install autopy module ( pip install autopy ) please help

Which IDE?

In vscode but i have also tried in pycharm ( still cant install ) python version - 3.9

If you are using PyCharm then go to setting -> Project Interpreter, click the add button and install OpenCV, mediapipe and numpy.

CoderZ90 commented 3 years ago

Already installed but it is still showing the error ?

luisfelipe18 commented 3 years ago

Hey bro, just google "how to install cv2 on mac" Read about environments, or better just install conda and activate a new environment for this project. The code is perfectly working, you have to read more about python versions and how to install packages

CoderZ90 commented 3 years ago

Wait it worked but now how to convert it into EXE file ?

luisfelipe18 commented 3 years ago

My friend, open google and write "convert python script to .exe"

SenuraB commented 3 years ago

Hi, I got the same issue. You can try the Jupyter Notebook, it may work properly.

CoderZ90 commented 3 years ago

Hi, I got the same issue. You can try the Jupyter Notebook, it may work properly.

to make it .exe which works ???

dey05sunny commented 3 years ago

Screenshot (38) why i am getting this problem can you help me out?? @ravigithub19