This week, I continued to work on the computer vision part of our project. After being able to interface with the Intel RealSense Depth Camera, I was able to convert the input into the HSV color space and select the range of colors for each channel that would allow us to find tennis balls. The algorithm now can locate multiple tennis balls in view of the camera and draw a target on each one to show what it is detecting. Currently, I am using my laptop to run the algorithm but will work on building the code on the Jetson Nano in the upcoming week.
Also, I helped Ryan with the hardware portion of the project and we created an initial prototype to test the motors and see if we could control them. We created a set up to find the best distance apart to keep the motors and were able to power the motors with the power supply from the Makerspace. We also programmed the Arduino to control the speed of both motors, but the motors were being very finicky at anything but their top speed.
We are not currently behind schedule and in the next week, I hope to further improve the algorithm to work better in different lighting conditions. Also, I want to work on moving the code over to the Jetson Nano where it will have to eventually run. In addition, I want to look into integrating the iRobot Create 2 API calls Rashmi is working on with the OpenCV code.