Esp32_camera error

Question/Issue:
When I use example program “esp32_camera.ino”, it has some error.
The error statement is described below.

ferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp: In function 'TfLiteStatus tflite::{anonymous}::Prepare(TfLiteContext*, TfLiteNode*)':
c:\Users\ino23\Documents\Arduino\libraries\Logo_kaiten_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp:1789:67: error: either all initializer clauses should be designated or none of them should be
 1789 |                                 .channels = input->dims->data[3], 1
      |                                                                   ^
c:\Users\ino23\Documents\Arduino\libraries\Logo_kaiten_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp:1793:68: error: either all initializer clauses should be designated or none of them should be
 1793 |                                 .channels = output->dims->data[3], 1
      |                                                                    ^
c:\Users\ino23\Documents\Arduino\libraries\Logo_kaiten_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp:1795:80: error: either all initializer clauses should be designated or none of them should be
 1795 |     data_dims_t filter_dims = {.width = filter_width, .height = filter_height, 0, 0};
      |                                                                                ^
c:\Users\ino23\Documents\Arduino\libraries\Logo_kaiten_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp: In function 'void tflite::{anonymous}::EvalQuantizedPerChannel(TfLiteContext*, TfLiteNode*, const TfLiteConvParams&, const NodeData&, const TfLiteEvalTensor*, const TfLiteEvalTensor*, const TfLiteEvalTensor*, TfLiteEvalTensor*)':
c:\Users\ino23\Documents\Arduino\libraries\Logo_kaiten_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp:1883:58: error: either all initializer clauses should be designated or none of them should be
 1883 |                                 .channels = input_depth, 1
      |                                                          ^
c:\Users\ino23\Documents\Arduino\libraries\Logo_kaiten_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp:1887:59: error: either all initializer clauses should be designated or none of them should be
 1887 |                                 .channels = output_depth, 1
      |                                                           ^
c:\Users\ino23\Documents\Arduino\libraries\Logo_kaiten_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\conv.cpp:1889:80: error: either all initializer clauses should be designated or none of them should be
 1889 |     data_dims_t filter_dims = {.width = filter_width, .height = filter_height, 0, 0};
      |                                                                                ^
c:\Users\ino23\Documents\Arduino\libraries\Logo_kaiten_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\depthwise_conv.cpp: In function 'void tflite::{anonymous}::EvalQuantizedPerChannel(TfLiteContext*, TfLiteNode*, const TfLiteDepthwiseConvParams&, const NodeData&, const TfLiteEvalTensor*, const TfLiteEvalTensor*, const TfLiteEvalTensor*, TfLiteEvalTensor*)':
c:\Users\ino23\Documents\Arduino\libraries\Logo_kaiten_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\depthwise_conv.cpp:1727:58: error: either all initializer clauses should be designated or none of them should be
 1727 |                                 .channels = input_depth, 1
      |                                                          ^
c:\Users\ino23\Documents\Arduino\libraries\Logo_kaiten_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\depthwise_conv.cpp:1731:59: error: either all initializer clauses should be designated or none of them should be
 1731 |                                 .channels = output_depth, 1
      |                                                           ^
c:\Users\ino23\Documents\Arduino\libraries\Logo_kaiten_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\depthwise_conv.cpp:1733:80: error: either all initializer clauses should be designated or none of them should be
 1733 |     data_dims_t filter_dims = {.width = filter_width, .height = filter_height, 0, 0};
      |                                                                                ^
c:\Users\ino23\Documents\Arduino\libraries\Logo_kaiten_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\depthwise_conv.cpp: In function 'TfLiteStatus tflite::{anonymous}::Prepare(TfLiteContext*, TfLiteNode*)':
c:\Users\ino23\Documents\Arduino\libraries\Logo_kaiten_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\depthwise_conv.cpp:1836:67: error: either all initializer clauses should be designated or none of them should be
 1836 |                                 .channels = input->dims->data[3], 1
      |                                                                   ^
c:\Users\ino23\Documents\Arduino\libraries\Logo_kaiten_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\depthwise_conv.cpp:1840:68: error: either all initializer clauses should be designated or none of them should be
 1840 |                                 .channels = output->dims->data[3], 1
      |                                                                    ^
c:\Users\ino23\Documents\Arduino\libraries\Logo_kaiten_inferencing\src\edge-impulse-sdk\tensorflow\lite\micro\kernels\depthwise_conv.cpp:1842:80: error: either all initializer clauses should be designated or none of them should be
 1842 |     data_dims_t filter_dims = {.width = filter_width, .height = filter_height, 0, 0};`Preformatted text`

How can I clear those errors?
Could you please share the way to solve this.

Hi @FT4444,

It looks like you are using an ESP32 camera system similar to the poster here: Error compiling Arduino Library for XIAO ESP32S3 Sense. I recommend trying the suggestions in that thread.

Thank you so much.
I could use this program in esp32 ver.3

2 Likes

How did you get it to run on esp32 ver 3? Can you guide me?

Search “ei_classifier_config.h” from C:\Users "user name" \Documents \Arduino \libraries \〇〇_inferencing \src \edge-impulse-sdk \classifier.
Change program written under

#define EI_CLASSIFIER_TFLITE_ENABLE_ESP_NN 1

#define EI_CLASSIFIER_TFLITE_ENABLE_ESP_NN 0

2 Likes