mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-10 05:26:52 +03:00
nightly
This commit is contained in:
@@ -365,10 +365,11 @@ CImageBasis::CImageBasis(std::string _image)
|
|||||||
channels = 3;
|
channels = 3;
|
||||||
externalImage = false;
|
externalImage = false;
|
||||||
filename = _image;
|
filename = _image;
|
||||||
|
long freebefore = esp_get_free_heap_size();
|
||||||
|
|
||||||
rgb_image = stbi_load(_image.c_str(), &width, &height, &bpp, channels);
|
rgb_image = stbi_load(_image.c_str(), &width, &height, &bpp, channels);
|
||||||
if (rgb_image == NULL)
|
if (rgb_image == NULL)
|
||||||
LogFile.WriteToFile("Image Load failed:" + _image + " FreeHeapSize: " + to_string(esp_get_free_heap_size()));
|
LogFile.WriteToFile("Image Load failed:" + _image + " FreeHeapSize before: " + to_string(freebefore) + " after: " + to_string(esp_get_free_heap_size()));
|
||||||
// printf("CImageBasis after load\n");
|
// printf("CImageBasis after load\n");
|
||||||
// printf("w %d, h %d, b %d, c %d", this->width, this->height, this->bpp, this->channels);
|
// printf("w %d, h %d, b %d, c %d", this->width, this->height, this->bpp, this->channels);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ extern "C" void app_main()
|
|||||||
vTaskDelay( xDelay );
|
vTaskDelay( xDelay );
|
||||||
|
|
||||||
setup_time();
|
setup_time();
|
||||||
LogFile.WriteToFile("===== Main Started =====");
|
LogFile.WriteToFile("======================== Main Started ================================");
|
||||||
|
|
||||||
std::string zw = gettimestring("%Y%m%d-%H%M%S");
|
std::string zw = gettimestring("%Y%m%d-%H%M%S");
|
||||||
printf("time %s\n", zw.c_str());
|
printf("time %s\n", zw.c_str());
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user