How to take RAW image with OV2640?

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
nikitos
 
Posts: 5
Joined: Wed Jul 21, 2021 10:19 am

How to take RAW image with OV2640?

Post by nikitos »

Hi there!

I have a neural network from which I exported weights and biases and am now trying to do inference on my Arduino Nano RP2040 Connect. I have OV2640 SPI connected to it and it successfully takes pictures in JPEG. The problem is that JPEG compresses the image, meaning I don't get the size of the array I need as an input for my neural network. E.g., even though the resolution is 80 x 50, I don't get the expected 4000 pixels.

I thought taking a RAW image would solve the problem. However, I don't see a built-in option to take a RAW image. I thought maybe there are other libraries for it, or maybe someone can tell me how to take an image as a pure bytearray(), and then convert it to RAW (or PNG)?

Here is the code I used for taking JPEG pictures

Any help on this is appreciated!

User avatar
danhalbert
 
Posts: 4615
Joined: Tue Aug 08, 2017 12:37 pm

Re: How to take RAW image with OV2640?

Post by danhalbert »

Try asking for support in the Arduino forum, since this board is not our product.

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”