Saving the image in raspberry pi

General discussion about topics related to OpenMV.
SARAVANABAVAN
Posts: 32
Joined: Thu May 10, 2018 12:19 am
Location: Karaikal

Saving the image in raspberry pi

Postby SARAVANABAVAN » Sat Jun 09, 2018 1:29 am

Hello all,
I just want to save the image which was taken at the openMV CAM to the raspberry pi... What is the procedure to change the file saving directory to the Raspberry pi ???
User avatar
kwagyeman
Posts: 1962
Joined: Sun May 24, 2015 2:10 pm

Re: Saving the image in raspberry pi

Postby kwagyeman » Sat Jun 09, 2018 1:48 am

Hi, you've asked this question multiple times and you have to write a program to receive the image from the camera to save to the Pi. Unless you need to do this automatically you can use OpenMV IDE to manually save images.

If you need to do it automatically, then first, do you know how to write a program on the Pi to receive data over the serial port? If you can do this part then I can give you the code for the OpenMV Cam that sends the image over the serial port to the Pi.
Nyamekye,
SARAVANABAVAN
Posts: 32
Joined: Thu May 10, 2018 12:19 am
Location: Karaikal

Re: Saving the image in raspberry pi

Postby SARAVANABAVAN » Mon Jun 11, 2018 12:34 am

Hi sir,
I'm just receiving the output values from OpenMV CAM ... Then how can I send these values as a readable format for the raspberry pi... All I need is that, according to the values of the x,y and z I want to move the tool for pick something...
User avatar
kwagyeman
Posts: 1962
Joined: Sun May 24, 2015 2:10 pm

Re: Saving the image in raspberry pi

Postby kwagyeman » Mon Jun 11, 2018 1:08 am

Hi, when you add print() to your program this sends data through the serial port to whatever PC the camera is connected to.

So, go to Tools -> Save Script to OpenMV Cam. Then Tools -> Reset OpenMV Cam. Whatever script with print statements you save on the camera will now send data out onto the serial port to any program that opens the OpenMV Cam VCP port.

https://raspberrypi.stackexchange.com/q ... -port-loop

You can write a python script like above, then change the serial port to the one the OpenMV Cam is on. The camera will then output print() data to that program on the PI.
Nyamekye,

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 4 guests