Question/Issue:
Compile error when compile inference script with model
xtensa-esp-elf-g++.exe: fatal error: cannot execute
'C:/Users/DOUBUHUI/AppData/Local/Arduino15/packages/esp32/tools/esp-x32/2507/bin/../libexec/gcc/xtensa-esp-elf/14.2.0/cc1plus.exe'
: CreateProcess: No such file or directory
Project ID:
822852
Context/Use case:
use code below
#include <Wire.h>
#include <eloquent.h>
#include <eloquent/modules/vl53l5cx/8x8.h>
#include <eloquent/collections/circular_buffer.h>
// replace this with the library downloaded from Edge Impulse
#include <douhenhuid-project-1_inferencing.h>
#include <eloquent/tinyml/edgeimpulse.h>
Eloquent::Collections::FloatCircularBuffer<EI_CLASSIFIER_DSP_INPUT_FRAME_SIZE> buffer;
Eloquent::TinyML::EdgeImpulse::Impulse impulse;
void setup() {
Serial.begin(115200);
Wire.begin();
Wire.setClock(400000);
// vllcx.highFreq();
vllcx.truncateLowerThan(30);
vllcx.truncateHigherThan(400);
vllcx.scaleToRange(0, 1);
vllcx.detectObjectsWhenNearerThan(0.95, 10);
if (!vllcx.begin())
eloquent::abort(Serial, "vl53l5cx not found");
Serial.println("vl53l5cx is ok");
Serial.println("Start collecting data...");
}
void loop() {
if (!vllcx.hasNewData() || !vllcx.read())
// await data is ready
return;
if (!vllcx.hasObjectsNearby()) {
// No object detected, clear buffer to start
// data collection from scratch
buffer.clear();
return;
}
if (!buffer.push(vllcx.distances, 64))
// Queue is not full yet
return;
// we are ready to classify the gesture
uint8_t prediction = impulse.predict(buffer.values);
Serial.print("Predicted label: ");
Serial.print(impulse.getLabel());
Serial.print(" with probability ");
Serial.println(impulse.getProba());
// debug class probabilities and timings
//impulse.printTo(Serial);
}
