Arducam IoTai ESP32 CAM face detection mode not working when use github src

Hi,

I am new to esp32 and Arducam. Trying to explore IoT. I recently bought Arducam IoTai ESP32 CAM PSRAM. It works fine until i try to download the code though Arduino IDE example Face Detection. In the serial window debug show it stops at “camera init success” . I dont know what to do next please guide me.

Thanks.

Hi all,

fixed the issue adding the sd card initialization process.

Serial.printf(“Camera init success”);
//set frame size
//arducam_set_resolution(FRAMESIZE_QVGA);
sensor_t * s = arducam_camera_sensor_get();
s->set_framesize(s, FRAMESIZE_QVGA);

/****************************************/

/SD Card init/
if(!SD_MMC.begin()){
Serial.println(“Card Mount Failed”);
return;
}
else{
Serial.println(“Card Mount success”);
}
uint8_t cardType = SD_MMC.cardType();
if(cardType == CARD_NONE){
Serial.println(“No SD_MMC card attached”);
return;
}
Serial.print("SD_MMC Card Type: ");
if(cardType == CARD_MMC){
Serial.println(“MMC”);
} else if(cardType == CARD_SD){
Serial.println(“SDSC”);
} else if(cardType == CARD_SDHC){
Serial.println(“SDHC”);
} else {
Serial.println(“UNKNOWN”);
}
uint64_t cardSize = SD_MMC.cardSize() / (1024 * 1024);
Serial.printf(“SD_MMC Card Size: %lluMB\n”, cardSize);
//Create ArduCAM folder
sprintf(path, “/ArduCAM”);
Serial.printf(“Creating Dir: %s\n”, path);
if(SD_MMC.mkdir(path)){
Serial.println(“Dir created”);
}
else {
Serial.println(“mkdir failed”);
}

/****************************************/

if(wifi_mode){
WiFi.begin(ssid, password);

while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}

 

Hello,

Sorry for the late reply. Adding the sd card initialization process or fix the problem. But this is a bug, wo will update it in later release. You can also comment out the Serial.begin(115200); In the FaceDetection demo of line 63.

 

Hi,

 

Thank you for the detailed guidance.

suppose if I remove that line no need to add the SD initialization code?

will check and update.

Hi,

If you remove the line code that I mentioned above, you won’t need the SD intialization code.

Hi Arducam jyh,

 

Thank you. Tested after removing that lines its works perfect.

 

Thank you very much.

Hello,

Great to hear you have solved your problems.

 

Do you need to succesfully upload this source code in order to make activate the hotspot?

@edouardovitale123

We will upload the latest code in a later update to avoid the above problems.