Skip to content

Artificial Intelligence Project with opencv Game Rock - Paper - Scissors with Computer using color

Notifications You must be signed in to change notification settings

vinhyenvodoi98/robotic_python

Repository files navigation

gPBL_2019

#Hanoi University of Science and Technology - Shibaura Institute of Technology

Active Flow

demo

Play Rock paper scissors with robot by color. Blue is paper, Green is scissors, Red is Rock. We show what color we choice with camera . Game will start and computer show what computer choice by turn on the led .

mechanism

This project using

  • Raspberry Pi3 + camera
  • Motor driver tb6612FNG
  • Led and some electronic parts

Install

  • python3 > 3.5 , pip3
  • cv2,numpy

About file

detectcolor_leccontrol_motorcontrol.py is complite code . It can detect color , choice rundom number and show what computer choice by using led . If computer win computer's car will run . If human win human's car will run . Who win 5 time is truly winner

motor-driver.py we using this code for test motor driver tb6612FNG

led-control.py we using this code for turn on and turn off the led

Open source

Detect color : https://pastebin.com/WVhfmphS

motor driver tb6612FNG: https://www.bluetin.io/dc-motors/motor-driver-raspberry-pi-tb6612fng/

Demo

About

Artificial Intelligence Project with opencv Game Rock - Paper - Scissors with Computer using color

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages