Skip to content

Wowwee MiP robot avoids red obstacles using OpenCV (real time computer vision) library on a Raspberry Pi 3 with PiCamera module

Notifications You must be signed in to change notification settings

davideiacobs/MiP-OpenCV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MiP-OpenCV

Wowwee MiP robot avoids red obstacles using OpenCV (real time computer vision) library on a Raspberry Pi 3 with PiCamera module.


Start_env.py

Run this file (on a Raspberry Pi with a PiCamera) at the beginning or when the enviroment changes.

Allow to take the picture of the start environment using the PiCamera.

motion-detector.py

The main program to be run on the Raspberry Pi.

This program takes a video of the environment and relieves the movements of the Robot (using OpenCV). If the Mip is going to hit a red obstacle, it warns the Brain (writing on Redis). In this way the Mip Robot can make an intelligent choice in order to avoid the obstacle.

robotControlMain.py

The main loop that simulates the Mip-Brain.

The loop consists of three steps (contained in the init.py file: sense,think and act).

Sense : the Brain reads from Redis in order to know if the Mip is going to hit a red obstacle.
Think : once know the situation, the Brain thinks and make a choice in order to avoid the obstacles.
Act : act the decision and avoid the red obstacle.

__init__.py

Contains the GattTool and Mip classes.

1. GattTool class:
This class provides methods to command the Mip Robot through BLE protocol.

2. Mip class:
This class provides methods of the Mip-Brain.

About

Wowwee MiP robot avoids red obstacles using OpenCV (real time computer vision) library on a Raspberry Pi 3 with PiCamera module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages