previously thank you, I use grove connector cable from vision ai v2 to wio terminal port i2c. for the output 22:48:39.576 → perf: prepocess = 7ms, inference = 49ms, postpocess = 0ms
22:48:39.576 → Box [0] target = 0, score = 59, x = 117, y = 115, w = 235, h = 240
22:48:39.576 →
22:48:41.600 → Invoke failed
22:48:43.627 → Invoke failed
22:48:45.706 → Invoke failed
22:48:47.696 → Invoke failed
with this code #include <Seeed_Arduino_SSCMA.h>
#include <Wire.h>
SSCMA AI;
void setup()
{
Serial.begin(115200);
while (!Serial);
Wire.begin();
AI.begin(&Wire);
}
void loop()
{
if (AI.invoke() == 0)
{
Serial.println(“Invoke success”);
Serial.print("perf: prepocess=");
Serial.print(AI.perf().prepocess);
Serial.print("ms, inference=");
Serial.print(AI.perf().inference);
Serial.print("ms, postpocess=");
Serial.print(AI.perf().postprocess);
Serial.println("ms");
for (int i = 0; i < AI.boxes().size(); i++)
{
Serial.print("Box[");
Serial.print(i);
Serial.print("] target=");
Serial.print(AI.boxes()[i].target);
Serial.print(", score=");
Serial.print(AI.boxes()[i].score);
Serial.print(", x=");
Serial.print(AI.boxes()[i].x);
Serial.print(", y=");
Serial.print(AI.boxes()[i].y);
Serial.print(", w=");
Serial.print(AI.boxes()[i].w);
Serial.print(", h=");
Serial.println(AI.boxes()[i].h);
}
for (int i = 0; i < AI.classes().size(); i++)
{
Serial.print("Class[");
Serial.print(i);
Serial.print("] target=");
Serial.print(AI.classes()[i].target);
Serial.print(", score=");
Serial.println(AI.classes()[i].score);
}
for (int i = 0; i < AI.points().size(); i++)
{
Serial.print("Point[");
Serial.print(i);
Serial.print("] target=");
Serial.print(AI.points()[i].target);
Serial.print(", score=");
Serial.print(AI.points()[i].score);
Serial.print(", x=");
Serial.print(AI.points()[i].x);
Serial.print(", y=");
Serial.println(AI.points()[i].y);
}
Serial.println();
}
else
{
Serial.println("Invoke failed");
}
delay(1000);
}