filmov
tv
Shooting game Controller using webcam with OpenCV and Pynput | Python 3.8 | Computer Vision

Показать описание
It's a code for playing shooting games with your webcam. It's just a 65 lines of code. I used OpenCV and Pynput packages in this code. Used python version 3.8.
In this demo I played "Metro Cop". It's a mouse controlled game. To play this, you just have to drag the mouse pointer to the enemy and left click to shoot. The orange color object in my left hand does the work of dragging the mouse pointer and in my right hand there is a green object and it triggers the mouse click.
Though I didn't have proper object to be perfectly detected by the code and the lighting condition is not good enough. But it works almost fine :)
If you have any suggestion please comment below. Thanks for watching.
#computer_vison #opencv #pynput #game_control #ai #object_detection #shooting_game #online_game
In this demo I played "Metro Cop". It's a mouse controlled game. To play this, you just have to drag the mouse pointer to the enemy and left click to shoot. The orange color object in my left hand does the work of dragging the mouse pointer and in my right hand there is a green object and it triggers the mouse click.
Though I didn't have proper object to be perfectly detected by the code and the lighting condition is not good enough. But it works almost fine :)
If you have any suggestion please comment below. Thanks for watching.
#computer_vison #opencv #pynput #game_control #ai #object_detection #shooting_game #online_game