GithubHelp home page GithubHelp logo

xenon-19 / gesture-controlled-virtual-mouse Goto Github PK

View Code? Open in Web Editor NEW
406.0 10.0 168.0 117.75 MB

Virtually controlling computer using hand-gestures and voice commands. Using MediaPipe, OpenCV Python.

License: GNU General Public License v3.0

Python 85.26% CSS 9.49% HTML 2.50% JavaScript 2.75%
python3 opencv mediapipe mediapipe-hands python final-year-project cse-project gesture-recognition machine-learning voice-assistant

gesture-controlled-virtual-mouse's People

Contributors

ankit-4129 avatar parth-12 avatar viral-doshi avatar xenon-19 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gesture-controlled-virtual-mouse's Issues

Ubuntu adaptation/version.

Hello!) I want to ask - will there be any attempts to add the ubuntu version?) Looking forwards for your reply))) Thanks!

AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a circular import)

File "C:\Users\ADMIN\Desktop\Gesture-Controlled-Virtual-Mouse-main\src\Gesture_Controller.py", line 3, in
import cv2
File "C:\Users\ADMIN\Desktop\Gesture-Controlled-Virtual-Mouse-main\venv\lib\site-packages\cv2_init_.py", line 181, in
bootstrap()
File "C:\Users\ADMIN\Desktop\Gesture-Controlled-Virtual-Mouse-main\venv\lib\site-packages\cv2_init_.py", line 175, in bootstrap
if _load_extra_py_code_for_module("cv2", submodule, DEBUG):
File "C:\Users\ADMIN\Desktop\Gesture-Controlled-Virtual-Mouse-main\venv\lib\site-packages\cv2_init
.py", line 28, in _load_extra_py_code_for_module
py_module = importlib.import_module(module_name)
File "C:\Program Files\Python38\lib\importlib_init
.py", line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\ADMIN\Desktop\Gesture-Controlled-Virtual-Mouse-main\venv\lib\site-packages\cv2\gapi_init
.py", line 301, in
cv.gapi.wip.GStreamerPipeline = cv.gapi_wip_gst_GStreamerPipeline
AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a circular import)

Process finished with exit code 1

not showing output

mot showing expected output just the executed without error screen , even after removing the last two
comment lines in Gesture-controller.py
can anyone help me out
@xenon-19

Windows Interface "Gui"

Hi, I don't understand programming could you make a basic executable Windows Interface "Gui" version of this for me?

No output/error while running proton.py [HELP]

Hello there,
I'm trying to run proton.py for voice control asssitant, however when i try running it, it ends up opening gesture control instead.

I took the advice from previous ticket with similiar issue and I'm left with no output when i run proton.py now.

It's just stuck. No error, no output.

Any kind of help is mcuh appreciated

OPENCV error, what is correct version of opencv we need to use?

python Proton.py
Traceback (most recent call last):
File "Proton.py", line 8, in
import pyautogui
File "C:\Users\Manoj.conda\envs\gest\lib\site-packages\pyautogui_init_.py", line 183, in
import pyscreeze
File "C:\Users\Manoj.conda\envs\gest\lib\site-packages\pyscreeze_init_.py", line 27, in
import cv2
File "C:\Users\Manoj.conda\envs\gest\lib\site-packages\cv2_init_.py", line 181, in
bootstrap()
File "C:\Users\Manoj.conda\envs\gest\lib\site-packages\cv2_init_.py", line 175, in bootstrap
if _load_extra_py_code_for_module("cv2", submodule, DEBUG):
File "C:\Users\Manoj.conda\envs\gest\lib\site-packages\cv2_init
.py", line 28, in _load_extra_py_code_for_module
py_module = importlib.import_module(module_name)
File "C:\Users\Manoj.conda\envs\gest\lib\importlib_init
.py", line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\Manoj.conda\envs\gest\lib\site-packages\cv2\gapi_init
.py", line 301, in
cv.gapi.wip.GStreamerPipeline = cv.gapi_wip_gst_GStreamerPipeline
AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a circular import)

Error

Can you help me to solve this error?

Screenshot 2022-05-31 110732

Proton not responding

Proton doesn't respond. The input taken from the user is shown in the command prompt but is not shown in the Proton interface.

2022-07-25

I cant run the codes it shows

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

error when running Gesture_Controller.py

I encounter the following error when running Gesture_Controller.py:

File "C:\Users\yiyun.zy\anaconda3\envs\py385\lib\importlib_init_.py", line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\yiyun.zy\Desktop\xuelangyun\gesture_control\venv\lib\site-packages\cv2\gapi_init
.py", line 290, in
cv.gapi.wip.GStreamerPipeline = cv.gapi_wip_gst_GStreamerPipeline
AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a circular import)

How can I solve it? Thank you so much

i ran the proton.py code but the application never opened. Any solutions?

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Pre-install Module

Hi sir,
I'm a new coder but I'm facing issues regarding launching this file
how may i fix the errors regarding module?

error while running proyton.py

ERROR: Could not find a version that satisfies the requirement mediapipe (from versions: none)
ERROR: No matching distribution found for mediapipe
WARNING: You are using pip version 20.1.1; however, version 23.3.2 is available.
You should consider upgrading via the 'c:\users\ubaid\appdata\local\programs\python\python38-32\python.exe -m pip install --upgrade pip' command.

i try to download any mediapipe version but the error is same

couldn't run proton.py

2022-04-05

I'm getting the following error when I'm trying to run this code
Could you plz help me

change in brightness

can you check and rectify, there is an issue with the brightness control, pinch gesture is not working when changing the brightness. sometimes the camera windows automatically closes while using the pinch gesture for changing the brightness by getting the following statement in the terminal "INFO: Created TensorFlow Lite XNNPACK delegate for CPU."
2023-01-10 (1)
2023-01-10

(most likely due to a circular import) Process finished with exit code 1

File "C:\Users\ADMIN\Desktop\Gesture-Controlled-Virtual-Mouse-main\src\Gesture_Controller.py", line 3, in
import cv2
File "C:\Users\ADMIN\Desktop\Gesture-Controlled-Virtual-Mouse-main\venv\lib\site-packages\cv2_init_.py", line 181, in
bootstrap()
File "C:\Users\ADMIN\Desktop\Gesture-Controlled-Virtual-Mouse-main\venv\lib\site-packages\cv2_init_.py", line 175, in bootstrap
if _load_extra_py_code_for_module("cv2", submodule, DEBUG):
File "C:\Users\ADMIN\Desktop\Gesture-Controlled-Virtual-Mouse-main\venv\lib\site-packages\cv2_init
.py", line 28, in _load_extra_py_code_for_module
py_module = importlib.import_module(module_name)
File "C:\Program Files\Python38\lib\importlib_init
.py", line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\ADMIN\Desktop\Gesture-Controlled-Virtual-Mouse-main\venv\lib\site-packages\cv2\gapi_init
.py", line 301, in
cv.gapi.wip.GStreamerPipeline = cv.gapi_wip_gst_GStreamerPipeline
AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a circular import)

Process finished with exit code 1

Volume and brightness control not working

Describe the bug

After getting thumb and index close to each other, code stops running, could not perform brightness and volume control. Im running this in Python V-3.8.5. I made no changes to the code
To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.
Every other feature works really good, but controlling fails for me.
Screenshots
If applicable, add screenshots to help explain your problem.
Scsht2
Scsht1

Desktop (please complete the following information):

  • OS: [e.g. iOS] Windows 10
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Traceback error

(gest) C:\Users\vigne\Gesture-Controlled-Virtual-Mouse\src>python Gesture_Controller.py
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
Traceback (most recent call last):
File "Gesture_Controller.py", line 600, in
gc1.start()
File "Gesture_Controller.py", line 596, in start
cv2.destroyAllWindows()
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp:645: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvDestroyAllWindows'

Not able to run Gesture_Controller.py

After uncommenting the last two lines of the code in Gesture_Controller.py, when I tried to run the code, I was facing the following error:

Capture

Can someone help me in resolving this issue?

make it runable on non window system like linux parrot or debian 11

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
i dont have comport on my system as i use linux
Describe the solution you'd like
A clear and concise description of what you want to happen.
use module that are compatible with linux and mac
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Scrolling control not working

Hi . I want to ask a question about your project on github. I am getting an error as seen in the file, what is the reason for this?

I will be glad if you answer.

gesture

No output

I am not getting any errors.
But still, python Gesture_Controller.py is not showing the expected output.

Cursor is invisible

Describe the bug
When I start the Project, it works perfectly, but the mouse cursor is invisible. So I can't see where I'm clicking.

Desktop :

  • OS: Windows 11 Pro
  • Browser [Opera GX]
  • GPU: RTX 2070
  • CPU: Intel I9-9900k
  • RAM: DDR4 32GB 3000Mhz

Error while running proton.py

After configuring all the files and requirements.txt when i go to run the file named proton.py it is showing error that the libraries which are written for import is saying that it is not found.
I have attached the screenshot for the reference.
WhatsApp Image 2022-03-26 at 11 31 27 AM

I got the same error athe s you, I followed these steps and now I can run the project.

          I got the same error as you, I followed these steps and now I can run the project.
  1. For this error
    AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a circular import)
    I did this
pip uninstall opencv-python
pip uninstall opencv-contrib-python
pip uninstall opencv-contrib-python-headless
and then
pip3 install opencv-contrib-python==4.5.5.62

reference: https://stackoverflow.com/questions/72706073/attributeerror-partially-initialized-module-cv2-has-no-attribute-gapi-wip-gs

  1. When I executed after making the above changes, I got the following error.

image
that is solved by
pip install protobuf==3.20.*
reference: https://stackoverflow.com/questions/72441758/typeerror-descriptors-cannot-not-be-created-directly

Finally when I run this, I got the correct output
python Gesture_Controller.py

I hope it Helps.

Originally posted by @padminipriya69 in #17 (comment)

HELP WITH THE GLOVE GESTURE CONTROL

Is your feature request related to a problem? Please describe.
i have been able to make the code work for the hand gesture but i dont understand how the glove version works

Describe the solution you'd like
can you pls expalin what i need to do make it work

Describe alternatives you've considered
i try a diffrent color of some object but it doesnt works , Do i need to wear glove
Additional context
pls i will be greateful if you reply

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.