mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-06 19:46:54 +03:00
nightly
This commit is contained in:
@@ -74,7 +74,7 @@ bool ClassFlowAlignment::doFlow(string time)
|
|||||||
|
|
||||||
CRotate *rt;
|
CRotate *rt;
|
||||||
|
|
||||||
if (this->initalrotate != 0)
|
if (initalrotate != 0)
|
||||||
{
|
{
|
||||||
rt = new CRotate(input);
|
rt = new CRotate(input);
|
||||||
rt->Rotate(this->initalrotate);
|
rt->Rotate(this->initalrotate);
|
||||||
|
|||||||
@@ -271,13 +271,13 @@ bool ClassFlowPostProcessing::doFlow(string zwtime)
|
|||||||
|
|
||||||
if ((!AllowNegativeRates) && (Value < PreValue))
|
if ((!AllowNegativeRates) && (Value < PreValue))
|
||||||
{
|
{
|
||||||
error = "Negative Rate - Return old value - " + zwvalue;
|
error = "Negative Rate - Returned old value - read value: " + zwvalue;
|
||||||
Value = PreValue;
|
Value = PreValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (useMaxRateValue && ((Value - PreValue) > MaxRateValue))
|
if (useMaxRateValue && (abs(Value - PreValue) > MaxRateValue))
|
||||||
{
|
{
|
||||||
error = "Negative Rate - Return old value - " + zwvalue;
|
error = "Rate too high - Returned old value - read value: " + zwvalue;
|
||||||
Value = PreValue;
|
Value = PreValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
#include "Helper.h"
|
#include "Helper.h"
|
||||||
#include "ClassLogFile.h"
|
#include "ClassLogFile.h"
|
||||||
|
|
||||||
|
#include "esp_system.h"
|
||||||
|
|
||||||
#define _USE_MATH_DEFINES
|
#define _USE_MATH_DEFINES
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
@@ -360,13 +362,13 @@ CImageBasis::CImageBasis()
|
|||||||
|
|
||||||
CImageBasis::CImageBasis(std::string _image)
|
CImageBasis::CImageBasis(std::string _image)
|
||||||
{
|
{
|
||||||
// printf("Start CImageBasis\n");
|
channels = 3;
|
||||||
this->channels = 3;
|
externalImage = false;
|
||||||
this->externalImage = false;
|
filename = _image;
|
||||||
this->filename = _image;
|
|
||||||
// printf("CImageBasis before load\n");
|
rgb_image = stbi_load(_image.c_str(), &width, &height, &bpp, channels);
|
||||||
// printf(_image.c_str()); printf("\n");
|
if (rgb_image == NULL)
|
||||||
this->rgb_image = stbi_load(_image.c_str(), &(this->width), &(this->height), &(this->bpp), this->channels);
|
LogFile.WriteToFile("Image Load failed:" + _image + " FreeHeapSize: " + 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);
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user