espressif / esp-tflite-micro

TensorFlow Lite Micro for Espressif Chipsets
Apache License 2.0
395 stars 85 forks source link

In "person_detection" example on ESP32-S3 Korvo 2, Camera captured Failed. (TFMIC-32) #89

Open hardikofficial963 opened 4 months ago

hardikofficial963 commented 4 months ago

I am trying to build person_detection example on ESP32 Korvo 2, I configured the Pins as defined in datasheet:

image

Then I build the project, Build successful, but giving me "Camera captured failed" error.

image

I used "idf.py set-target esp32s3"

Please tell me how can I resolve it.

Thanks

vikramdattu commented 4 months ago

Can you please check in the initial logs if the camera init is indeed successful? If not, the image capture will keep failing.

hardikofficial963 commented 4 months ago

It is failing here

person_detection\main\image_provider.cc

// Get an image from the camera module
TfLiteStatus GetImage(int image_width, int image_height, int channels, int8_t* image_data) {
#if ESP_CAMERA_SUPPORTED
  ESP_LOGE(TAG, "Trying to init camera");
  camera_fb_t* fb = esp_camera_fb_get();
  if (!fb) {
    ESP_LOGE(TAG, "Camera capture failed");
    return kTfLiteError;
  }