SEE IT IN ACTION
HOW IT WORKS
A server written in Node.js is the brains behind the system. Information flows from the Drone webcam to the server and then back to the Drone.
The server receives a stream of PNG still images from the drone’s webcam in real-time, runs a number of color filtration steps (depicted below) on each image to calculate the largest blob of a pre-specified color (yellow for bananas, light green for gourd, red for tomato). It then computes the outline and the center
(blobCenterX, blobCenterY) of this blob.
As the computed outline moves around, the server computes the distance between
(blobCenterX, blobCenterY) and
(screenCenterX, screenCenterY) and then send instructions to the drone to smoothly move in the direction that would reduce the gap between the two points.