Opencv7 with a Raspberry Pi

Discussion related to "under the hood" OpenMV topics.
User avatar
Bonzadog
Posts: 2
Joined: Tue Dec 13, 2016 10:56 am
Location: Germany

Opencv7 with a Raspberry Pi

Postby Bonzadog » Fri Jan 05, 2018 10:05 am

5.1.2018

Due to the documentation being rather a dearth, I need to ask a few elementary question before I start new projects.

For Project #1: I would like to connect the M7 to a Raspberry Pi 3 look for, say, a blue object and yellow rectangular object,
count them and send the coordinates of the found objects to the raspberry pi3 so a robot arm may pick them up.
I would have to, of course, somehow convert the M7 coordinates to the Robot Arm coordinates - this may be interesting to achieve.
Perhaps detecting the robot arm on the M7 and send coordinates of the arm to the rpi for coordinate transformation.

Project # 2: using the M7 camera to find a path through obstacles perhaps reading the M7 camera input into the RPi and run opencv
for that pathway detection.

Project 3 is face detection: the detected face must be sent to the RPi (jpg) for processing - also unknow faces sent to the RPi3.
I think this will not be an easy task.

Can one reprogramme the Camera via the RPi3? This is to use create multifunctionality when events demand that.

Thank you for any assistance
User avatar
kwagyeman
Posts: 1407
Joined: Sun May 24, 2015 2:10 pm

Re: Opencv7 with a Raspberry Pi

Postby kwagyeman » Fri Jan 05, 2018 10:57 am

Project 1 is very easy, the find_blobs method does all this for you and tells you the centroid of objects. You can then send these centroids to the Pi via a UART. See the pixy emulation example for how to send packet data over the UART using the struct module.

Project 2 involves path planning. We don't offer any higher level Ai ish support like that. If you know how to code these type of algorithms from scratch then you can hand roll them to run in python on the M7. Otherwise, sure find a path planning lib on the Pi and use that.

Project 3 is easy, just use our face finder, and on detection of a face jpeg compress the image and send it to the Pi.

...

None of these projects above though need the OpenMV Cam. What's your reason for using it with the Pi and not the Pi Cam? Yes, I understand we make the CV part a lot easier. If you're good with serial comms then this trade-off makes sense.
Nyamekye,
User avatar
Bonzadog
Posts: 2
Joined: Tue Dec 13, 2016 10:56 am
Location: Germany

Re: Opencv7 with a Raspberry Pi

Postby Bonzadog » Fri Jan 05, 2018 12:38 pm

Thank you for your reply.

I do not think it is all so easy as you state.

I could use an RPi camera but what then is the point of the M7 Camera.

Can one send programmes to the M7 from a RPi3?

I'll I'll need to finalise the high-level designs and reconsider the projects.
User avatar
kwagyeman
Posts: 1407
Joined: Sun May 24, 2015 2:10 pm

Re: Opencv7 with a Raspberry Pi

Postby kwagyeman » Fri Jan 05, 2018 8:43 pm

Yeah, we have OpenMV IDE for the Raspberry Pi.

Since we're a MicroPython board you can also use the MicroPython control python script to tell the board what to do by uploading a new MicroPython script to it.
Nyamekye,

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests