Image processing locally
Posted: Tue Jan 27, 2015 10:22 am
Hi,
I’ve been playing with color tracking of objects through openCV. Running my scripts remote on a Windows 8 PC, works really fine and after testing several ways of morphologic transformations in several different orders, I found a way that gives very satisfactory results. Even with less optimal light conditions. The script I use (color_detection_with_neck_movements.py) can be found here: https://github.com/Bas-Huizer/Rpi-camera-robot-car.git . When I run the script local on the Rpi-bot, the script stalls after connecting to the bot through websockets without any processing. I tried using the small images class, but that didn’t work either. I’ve seen several examples of color tracking, using the same approach, working on Raspberries . So I’m wondering what happens (and where did I go wrong)?. Is it a combination of the different layers (callback streaming, websockets, openCV)? Is my script to complex/slow? (E.g. All examples I’ve seen were written in C++, without the websockets layer. ) Am I just overlooking the root cause?
I would be very obliged if someone could give me some hints here!
I’ve been playing with color tracking of objects through openCV. Running my scripts remote on a Windows 8 PC, works really fine and after testing several ways of morphologic transformations in several different orders, I found a way that gives very satisfactory results. Even with less optimal light conditions. The script I use (color_detection_with_neck_movements.py) can be found here: https://github.com/Bas-Huizer/Rpi-camera-robot-car.git . When I run the script local on the Rpi-bot, the script stalls after connecting to the bot through websockets without any processing. I tried using the small images class, but that didn’t work either. I’ve seen several examples of color tracking, using the same approach, working on Raspberries . So I’m wondering what happens (and where did I go wrong)?. Is it a combination of the different layers (callback streaming, websockets, openCV)? Is my script to complex/slow? (E.g. All examples I’ve seen were written in C++, without the websockets layer. ) Am I just overlooking the root cause?
I would be very obliged if someone could give me some hints here!