Autonomous mobile robot & color tracking algorithm

Hello everybody, Happy New Year!

I have 1x OEM OV2640 camera (18 pins), 2 x Arduino Uno, 1x motor shield L298P, 4 x DC motors and 1 x robot chassis and wheels. I want these combined into one robot that should use a color tracking algorithm to move around following the color specified via bluetooth - the motor shield is connected to Bluetooth and through Bluetooth Terminal I can send commands.

I need help putting it all together and writing the correct software.

I was thinking that I can take the photos - maybe a raw data format and send it to a computer, where these colors are matched to the fixed dimensions of the robot's "view" and depending on the color to follow, to match a specific range that leads to a direction, straight, left or right.

Could this work with a GoPro also?

Can you please point me to the right direction and any suggestions for the software and if it can actually work...

Thank you
Ilias

You will have a much easier time using the Pixy camera, which tracks colored blobs internally and sends their coordinates back to the Arduino.