This is my make-through for the week's assignment. Grab a cup of coffee!
This week was an introduction to image processing through python programming language and how python syntax is working and an introduction to computer vision and its different techniques in programming and how to use the haar cascade classifiers to detect eyes, objects, localize things.
Download and use a python friendly IDE and for me it was thonny IDE
Download the Required Computer Vision libraries, numpy through the following lines in the terminal
sudo apt-get install libhdf5-dev libhdf5-serial-dev libhdf5-100
sudo apt-get install libqtgui4 libqtwebkit4 libqt4-test
sudo apt-get install libatlas-base-dev
sudo apt-get install libjasper-dev
wget https://bootstrap.pypa.io/get-pip.py
sudo python3 get-pip.py
sudo pip3 install opencv-contrib-python
sudo pip3 install opencv-python
for the coding process i have used the default haar cascade example and built upon it in order to add the RPI control
For the assignment i have used the servo motor to actuate with the movement of my face with a specific angle
i have started calling a specific arrays from raspberry pi libraries like PiRGBArray, Pi Camera and then the usual import libs like time,cv2 and the RPI connected camera for sure
the next step was to set the resolution of the RPI camera and its frame rate per second and initiate a raw capture and it is a function to start the RPI camera
the i have called the haar cascade example which it is haarcascade frontal face default
then i have started setting the GPIO mode of the raspberry pi whether it is gpio board or BCM
then i have set the setup of the GPIO and i was using a servo motor so the GPIO setup will be an output then i have used the GPIO.PWM to send a pwm signal to the servo motor and the servo.start is the set the minimum angle of the servo which it is 0 angle
The problems i have encountered in this assignment was that the SERVO was not working but i solved the issue trough changing the GPIO Pin in the Code
What I learned this week is...
More into python
Introduction to open cv
Using haar cascade and classifiers
More insightful aspects in Open cv in the manufacturing field