In file included from ei_main.cpp:24:
edge_impulse/edge-impulse-sdk/classifier/ei_run_classifier.h: In function 'EI_IMPULSE_ERROR {anonymous}::inference_tflite_run(uint64_t, TfLiteTensor*, TfLiteTensor*, TfLiteTensor*, uint8_t*, ei_impulse_result_t*, bool)':
edge_impulse/edge-impulse-sdk/classifier/ei_run_classifier.h:780:44: error: 'post_process_boxes' is not a member of 'tflite'
780 | fill_result_struct_f32(result, tflite::post_process_boxes, tflite::post_process_scores, tflite::post_process_classes, debug);
| ^~~~~~~~~~~~~~~~~~
edge_impulse/edge-impulse-sdk/classifier/ei_run_classifier.h:780:72: error: 'post_process_scores' is not a member of 'tflite'
780 | fill_result_struct_f32(result, tflite::post_process_boxes, tflite::post_process_scores, tflite::post_process_classes, debug);
| ^~~~~~~~~~~~~~~~~~~
edge_impulse/edge-impulse-sdk/classifier/ei_run_classifier.h:780:101: error: 'post_process_classes' is not a member of 'tflite'
780 | fill_result_struct_f32(result, tflite::post_process_boxes, tflite::post_process_scores, tflite::post_process_classes, debug);
| ^~~~~~~~~~~~~~~~~~~~
edge_impulse/edge-impulse-sdk/classifier/ei_run_classifier.h: In function 'EI_IMPULSE_ERROR {anonymous}::run_inference(ei::matrix_t*, ei_impulse_result_t*, bool)':
edge_impulse/edge-impulse-sdk/classifier/ei_run_classifier.h:857:69: warning: division by zero [-Wdiv-by-zero]
857 | input->data.uint8[ix] = static_cast<uint8_t>((pixel / EI_CLASSIFIER_TFLITE_INPUT_SCALE) + EI_CLASSIFIER_TFLITE_INPUT_ZEROPOINT);
ei_main.cpp: In function 'int ei_main()':
ei_main.cpp:73:38: error: 'struct ei_impulse_result_t' has no member named 'classification'
73 | ei_printf("%.5f", result.classification[ix].value);
| ^~~~~~~~~~~~~~
make: *** [Makefile:215: build/app/ei_main.o] Error 1
Hi @baniya,
Can you please describe how you deployed your project, did you follow the steps provided in https://docs.edgeimpulse.com/docs/running-your-impulse-spresense ?
I followed the steps as is in this link https://docs.edgeimpulse.com/docs/running-your-impulse-spresense.
I was trying to make a C++ Library and after pasting the raw features of the sample in the code, when i tried to make the build, it shows the error above.