Problem when running the exported model
I have the following error when running the arduino sketch
sketch\arduino_image_provider.cpp: In function 'TfLiteStatus ProcessImage(tflite::ErrorReporter*, int, int, int8_t*)': sketch\arduino_image_provider.cpp:89:26: error: 'capDataLen' was not declared in this scope if (i2 > 0 && i2 < capDataLen - 1) { ^~~~~~~~~~ sketch\arduino_image_provider.cpp:98:26: error: 'capDataLen' was not declared in this scope if (i3 > 0 && i3 < capDataLen - 1) { ^~~~~~~~~~ sketch\arduino_image_provider.cpp:108:26: error: 'capDataLen' was not declared in this scope if (i4 > 0 && i4 < capDataLen - 1) { ^~~~~~~~~~
just add this variable: const int capDataLen = kCaptureWidth * kCaptureHeight * 2;