xenon-19 / gesture-controlled-virtual-mouse Goto Github PK
View Code? Open in Web Editor NEWVirtually controlling computer using hand-gestures and voice commands. Using MediaPipe, OpenCV Python.
License: GNU General Public License v3.0
Virtually controlling computer using hand-gestures and voice commands. Using MediaPipe, OpenCV Python.
License: GNU General Public License v3.0
Hello!) I want to ask - will there be any attempts to add the ubuntu version?) Looking forwards for your reply))) Thanks!
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
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
Hi, I don't understand programming could you make a basic executable Windows Interface "Gui" version of this for me?
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
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)
Proton is showing can't recognise command again and again
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
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):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
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
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
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):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
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: 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
I am able to run the code of proton but it is not taking the command given by the user and it is showing the output as cant recognize
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."
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
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:
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.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
(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'
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.
How to install screen brightness control library
Hi,
I tried executing https://github.com/xenon-19/Gesture-Controlled-Virtual-Mouse but proton isn’t working. It is not recognising my commands. Please help as soon as possible. It is also not launching the Gesture Controller.
Chirag Nahata
+917439611385
I am not getting any errors.
But still, python Gesture_Controller.py is not showing the expected output.
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 :
I got the same error as you, I followed these steps and now I can run the project.
AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a circular import)
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
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)
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.