Robotics, Computer Vision and AI
After the image is checked that it was retrieved successfully,
Next, the image has to be changed into grayscale, as needed by the detection,
Human Silhouette Detection
Drone Report and Saving of the Detected Images
After adding all these functionalities, the run() function of your controller should look like this:
reshapes image array to (channels, height, width) format
Now, run the simulation to see your drone taking off and patroling around the house. Notice the new console outputs and the images created in the folder.
Modify your controller to not check if the folder already exists in the path. Does it create any complications in the execution of the simulation?
Modify your controller to perform a detection every 10 seconds. Do you notice any difference in the frequency of the console prints and the images saved?
What would happen to the image output if you merged the color dimensions in the normal sequence instead of the reversed one? Write down your observations below.
Experiment with the fourth and fifth arguments of the rectangle() function. Write down your observations below.
Modify your controllerto also printthe drone’sroll, pitch and yaw values when detecting a person.