How to Load SD Card Image Files

Asked 2 years ago, Updated 2 years ago, 82 views

I am a person who wants to buy a Presense and run the Neural Network.
Please let me ask you a question as I cannot understand it by referring to the development guide.

In the Presense SDK, I am thinking that it is possible to read JPG or PNG image files stored in the SD card in advance and perform recognition processing using DNN Runtime.
Is there an API for loading image files?(Do you have no choice but to make your own?)

spresense

2022-09-30 21:37

1 Answers

While it may have already been resolved, the "number_recognition" sample of "DNNRT" in the sketch example is just reading and recognizing the image in the SD card.

However, the image format used in this sample is "PBM".If you look inside the SPRESENSE library, there was NetPBM library, so PBM seems to support it officially.

So, it's a little inconvenient, but I think you can do what you want by converting PNG to PBM in advance using "IrfanView".

I would like you to enhance the image library a little more.


2022-09-30 21:37

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.