Community
cancel
Showing results for 
Search instead for 
Did you mean: 
SKim60
Novice
1,721 Views

when using ov8858 ov7251 cameras

Hi .

I'm using cameras in Intel Aero Vision kit for image processing of UAV

When I run the sample program what Intel offers, https://github.com/intel-aero/sample-apps GitHub - intel-aero/sample-apps: This repository will contain source code for sample applications

it was successful. so it got the monochrome image from ov7251.

I have planned using this camera and its image but it only works when ov8858 connected together with ov7521.

I don't know why

Here is command message I put,

C=10 INPUT=1 MODE=PREVIEW capture_example --userp -d /dev/video0

and an error message is

VIDIOC_S_FMT error 22, Invalid argument

Anyone know that a reason and how to fix?

0 Kudos
5 Replies
idata
Community Manager
86 Views

Hi greiny,

Thanks for your interest in the Intel® Aero™ Platform for UAVs.

You are right, it is strange that the sample code only works when connecting both cameras. Please let us investigate this issue, we will contact you back as soon as we have some useful information.

Have a nice day!

Best Regards,

 

-Jose P.

 

idata
Community Manager
86 Views

Hi greiny,

 

 

Just wanted to let you know that we are attempting to replicate your issue. As soon as an update develops I will contact you back.

 

 

Have a nice day!

 

 

Best Regards,

 

-Jose P.
idata
Community Manager
86 Views

Hi greiny,

 

 

Thanks for your patience.

 

 

I was able to reproduce your issue by following these steps:

 

 

1. Update BIOS and image (1.3.1 version) of the Aero compute board. Also flashed the FPGA as well.

 

 

2. Once everything is setup, I copied the files with a flash memory under /home/sample-apps.

 

 

3. Compile the samples using this commands:

 

gcc spidev-app/spi_xfer.c -o spi_xfer

 

g++ -I${V} -c -o ${V}/atomisp_obj.o ${V}/atomisp_obj.cpp ${CFLAGS} ${LIBS}

 

g++ -I${V} -c -o ${V}/v4l2_obj.o ${V}/v4l2_obj.cpp ${CFLAGS} ${LIBS}

 

g++ -I${V} -c -o ${V}/capture.o ${V}/capture.cpp ${CFLAGS} ${LIBS}

 

g++ -pthread -o ${V}/capture_example ${V}/capture.o ${V}/v4l2_obj.o ${V}/atomisp_obj.o -I${V}

 

 

The variables used have to be defined first as follow:

 

export V="/home/sample-apps/capturev4l2"

 

export LIBS="-lstdc++ -lstlport"

 

export CFLAGS="-g -std=c++11 -Wall -DSTDC99 -D_REENTRANT -DATOMISP_CSS2 -DATOMISP_CSS2 -DATOMISP_CSS21"

 

 

4. Finally, I run the sample code and took the pictures with the VGA camera with the following command:

 

C=10 INPUT=1 MODE=PREVIEW ./home/sample-apps/capturev4l2/capture_example --userp -d /dev/video0

 

 

And with the RGB I used the following command:

 

C=10 INPUT=0 MODE=PREVIEW capture_example --userp -d /dev/video0

 

 

Unfortunately, I got the same error when disconnected the VGA camera. I think that this not an issue, but instead they are meant to be used like this, for example, if you want to develop a optic flow algorithm you will need both cameras in order to stabilize your Drone. Still, please let me investigate more in order to give you a correct answer.

 

 

Best Regards,

 

-Jose P.
SKim60
Novice
86 Views

Hi Jose.

Thank you for your investigation.

I did same process with you did.

and I couldn't understand why you think that this not an issue.because I want to use VGA camera only but it is not possible now.

Would you give me another solution for this?

Regards.

Greiny

idata
Community Manager
86 Views

Hi greiny,

 

 

Yes, I understand your situation, we are investigating to see the reason of why this happens. As soon as I have an update I will be contacting you back.

 

 

Have a nice weekend!

 

 

Best Regards,

 

-Jose P.
Reply