teachablemachine-community icon indicating copy to clipboard operation
teachablemachine-community copied to clipboard

Problem when running the exported model

Open Azazel17 opened this issue 4 years ago • 1 comments

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) { ^~~~~~~~~~

Azazel17 avatar Jun 26 '21 02:06 Azazel17

just add this variable: const int capDataLen = kCaptureWidth * kCaptureHeight * 2;

moisesStevend avatar Jan 11 '22 04:01 moisesStevend