Skip to content

muratali016/Yolo-CV-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webcam Game with Computer Vision

Yolo.video.game.github.mp4

Webcam Game with Computer Vision

  • This open-source game was created by using Yolov7 and OpenCV. As you see in the video
  • If you are too close to the bomb, the screen will explode!
  • You can try it also on your webcam
  • Code can run on Both (CPU & GPU)

Only 2 Steps to run Code

Install requesting files

!git clone https://github.com/muratali016/Yolo-CV-Game.git
!git clone https://github.com/WongKinYiu/yolov7.git
!pip install cvzone
from google.colab import drive
drive.mount('/content/drive')

Apply!

%cd /content/yolov7
!python /content/Yolo-CV-Game/detect_video_game.py --weights /content/drive/MyDrive/face.pt --source /content/Yolo-CV-Game/video.mp4

On your webcam

%cd /content/yolov7
!python /content/Yolo-CV-Game/detect_video_game.py --weights /content/drive/MyDrive/face.pt --source 0
  • You can manipulate the code to spawn your bomb in random locations also you can add your images

References