mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-08 12:36:52 +03:00
Rolling 20220409
This commit is contained in:
@@ -40,6 +40,11 @@ In other cases you can contact the developer via email: <img src="https://raw.gi
|
|||||||
|
|
||||||
------
|
------
|
||||||
|
|
||||||
|
##### Rolling (2022-09-04)
|
||||||
|
|
||||||
|
- Improved Reboot (**[caco3](https://github.com/caco3)**)
|
||||||
|
- HTML: Bug fix
|
||||||
|
|
||||||
##### Rolling (2022-09-03)
|
##### Rolling (2022-09-03)
|
||||||
|
|
||||||
- MQTT: improved handling based on the work of @**[caco3](https://github.com/caco3)** ([#971](https://github.com/jomjol/AI-on-the-edge-device/pull/971))
|
- MQTT: improved handling based on the work of @**[caco3](https://github.com/caco3)** ([#971](https://github.com/jomjol/AI-on-the-edge-device/pull/971))
|
||||||
|
|||||||
@@ -340,38 +340,6 @@ int ClassFlowCNNGeneral::ZeigerEvalAnalogNeu(float zahl, int ziffer_vorgaenger)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
int ClassFlowCNNGeneral::ZeigerEval(float zahl, int ziffer_vorgaenger)
|
|
||||||
{
|
|
||||||
int ergebnis_nachkomma = ((int) floor(zahl * 10) + 10) % 10;
|
|
||||||
int ergebnis_vorkomma = ((int) floor(zahl) + 10) % 10;
|
|
||||||
int ergebnis;
|
|
||||||
float ergebnis_rating;
|
|
||||||
if (debugdetailgeneral) LogFile.WriteToFile("ClassFlowCNNGeneral::ZeigerEval erg_v=" + std::to_string(ergebnis_vorkomma) + ", erg_n=" + std::to_string(ergebnis_nachkomma) + ", ziff_v=" + std::to_string(ziffer_vorgaenger));
|
|
||||||
|
|
||||||
if (ziffer_vorgaenger == -1)
|
|
||||||
return ergebnis_vorkomma % 10;
|
|
||||||
|
|
||||||
// Ist die aktuelle Stelle schon umgesprungen und die Vorstelle noch nicht?
|
|
||||||
// Akt.: 2.1, Vorstelle = 0.9 => 1.9
|
|
||||||
// Problem sind mehrere Rundungen
|
|
||||||
// Bsp. zahl=4.5, Vorgänger= 9.6 (ziffer_vorgaenger=0)
|
|
||||||
// Tritt nur auf bei Übergang von analog auf digit
|
|
||||||
ergebnis_rating = ergebnis_nachkomma - ziffer_vorgaenger;
|
|
||||||
if (ergebnis_nachkomma >= 5)
|
|
||||||
ergebnis_rating-=5.1;
|
|
||||||
else
|
|
||||||
ergebnis_rating+=5;
|
|
||||||
ergebnis = (int) round(zahl);
|
|
||||||
if (ergebnis_rating < 0)
|
|
||||||
ergebnis-=1;
|
|
||||||
if (ergebnis == -1)
|
|
||||||
ergebnis+=10;
|
|
||||||
|
|
||||||
ergebnis = (ergebnis + 10) % 10;
|
|
||||||
return ergebnis;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
bool ClassFlowCNNGeneral::ReadParameter(FILE* pfile, string& aktparamgraph)
|
bool ClassFlowCNNGeneral::ReadParameter(FILE* pfile, string& aktparamgraph)
|
||||||
{
|
{
|
||||||
@@ -417,11 +385,6 @@ bool ClassFlowCNNGeneral::ReadParameter(FILE* pfile, string& aktparamgraph)
|
|||||||
{
|
{
|
||||||
this->logfileRetentionInDays = std::stoi(zerlegt[1]);
|
this->logfileRetentionInDays = std::stoi(zerlegt[1]);
|
||||||
}
|
}
|
||||||
// if ((toUpper(zerlegt[0]) == "MODELTYPE") && (zerlegt.size() > 1))
|
|
||||||
// {
|
|
||||||
// if (toUpper(zerlegt[1]) == "DIGITHYPRID")
|
|
||||||
// CNNType = DigitalHyprid;
|
|
||||||
// }
|
|
||||||
|
|
||||||
if ((toUpper(zerlegt[0]) == "MODEL") && (zerlegt.size() > 1))
|
if ((toUpper(zerlegt[0]) == "MODEL") && (zerlegt.size() > 1))
|
||||||
{
|
{
|
||||||
@@ -664,10 +627,11 @@ bool ClassFlowCNNGeneral::getNetworkParameter()
|
|||||||
CNNType = Digital;
|
CNNType = Digital;
|
||||||
printf("TFlite-Type set to Digital\n");
|
printf("TFlite-Type set to Digital\n");
|
||||||
break;
|
break;
|
||||||
case 20:
|
/* case 20:
|
||||||
CNNType = DigitalHyprid10;
|
CNNType = DigitalHyprid10;
|
||||||
printf("TFlite-Type set to DigitalHyprid10\n");
|
printf("TFlite-Type set to DigitalHyprid10\n");
|
||||||
break;
|
break;
|
||||||
|
*/
|
||||||
// case 22:
|
// case 22:
|
||||||
// CNNType = DigitalHyprid;
|
// CNNType = DigitalHyprid;
|
||||||
// printf("TFlite-Type set to DigitalHyprid\n");
|
// printf("TFlite-Type set to DigitalHyprid\n");
|
||||||
@@ -801,6 +765,7 @@ bool ClassFlowCNNGeneral::doNeuralNetwork(string time)
|
|||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
*/
|
*/
|
||||||
|
/*
|
||||||
case DigitalHyprid10:
|
case DigitalHyprid10:
|
||||||
{
|
{
|
||||||
int _num, _nachkomma;
|
int _num, _nachkomma;
|
||||||
@@ -836,6 +801,7 @@ bool ClassFlowCNNGeneral::doNeuralNetwork(string time)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
*/
|
||||||
|
|
||||||
case DoubleHyprid10:
|
case DoubleHyprid10:
|
||||||
{
|
{
|
||||||
@@ -869,7 +835,7 @@ bool ClassFlowCNNGeneral::doNeuralNetwork(string time)
|
|||||||
_fit = _val + _valminus;
|
_fit = _val + _valminus;
|
||||||
|
|
||||||
}
|
}
|
||||||
if (result > 10)
|
if (result >= 10)
|
||||||
result = result - 10;
|
result = result - 10;
|
||||||
if (result < 0)
|
if (result < 0)
|
||||||
result = result + 10;
|
result = result + 10;
|
||||||
|
|||||||
@@ -37,12 +37,9 @@ protected:
|
|||||||
bool isLogImageSelect;
|
bool isLogImageSelect;
|
||||||
string LogImageSelect;
|
string LogImageSelect;
|
||||||
ClassFlowAlignment* flowpostalignment;
|
ClassFlowAlignment* flowpostalignment;
|
||||||
// ClassFlowPostProcessing *flowpostprocessing = NULL;
|
|
||||||
bool SaveAllFiles;
|
|
||||||
// bool extendedResolution;
|
|
||||||
|
|
||||||
// int ZeigerEval(float zahl, int ziffer_vorgaenger);
|
bool SaveAllFiles;
|
||||||
// int ZeigerEvalHybrid(float zahl, float zahl_vorgaenger, int eval_vorgaenger);
|
|
||||||
int ZeigerEvalAnalogNeu(float zahl, int ziffer_vorgaenger);
|
int ZeigerEvalAnalogNeu(float zahl, int ziffer_vorgaenger);
|
||||||
int ZeigerEvalAnalogToDigitNeu(float zahl, float ziffer_vorgaenger, int eval_vorgaenger);
|
int ZeigerEvalAnalogToDigitNeu(float zahl, float ziffer_vorgaenger, int eval_vorgaenger);
|
||||||
int ZeigerEvalHybridNeu(float zahl, float zahl_vorgaenger, int eval_vorgaenger, bool AnalogerVorgaenger = false);
|
int ZeigerEvalHybridNeu(float zahl, float zahl_vorgaenger, int eval_vorgaenger, bool AnalogerVorgaenger = false);
|
||||||
|
|||||||
@@ -63,7 +63,12 @@ void ClassFlowImage::LogImage(string logPath, string name, float *resultFloat, i
|
|||||||
if (*resultFloat < 0)
|
if (*resultFloat < 0)
|
||||||
sprintf(buf, "N.N_");
|
sprintf(buf, "N.N_");
|
||||||
else
|
else
|
||||||
|
{
|
||||||
sprintf(buf, "%.1f_", *resultFloat);
|
sprintf(buf, "%.1f_", *resultFloat);
|
||||||
|
if (strcmp(buf, "10.0_"))
|
||||||
|
sprintf(buf, "0.0_");
|
||||||
|
}
|
||||||
|
|
||||||
} else if (resultInt != NULL) {
|
} else if (resultInt != NULL) {
|
||||||
sprintf(buf, "%d_", *resultInt);
|
sprintf(buf, "%d_", *resultInt);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const char* GIT_REV="77427a8";
|
const char* GIT_REV="47da2d6";
|
||||||
const char* GIT_TAG="";
|
const char* GIT_TAG="";
|
||||||
const char* GIT_BRANCH="rolling";
|
const char* GIT_BRANCH="rolling";
|
||||||
const char* BUILD_TIME="2022-09-03 08:15";
|
const char* BUILD_TIME="2022-09-04 18:01";
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
const char* GIT_REV="77427a8";
|
const char* GIT_REV="47da2d6";
|
||||||
const char* GIT_TAG="";
|
const char* GIT_TAG="";
|
||||||
const char* GIT_BRANCH="rolling";
|
const char* GIT_BRANCH="rolling";
|
||||||
const char* BUILD_TIME="2022-09-03 08:15";
|
const char* BUILD_TIME="2022-09-04 18:01";
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
|||||||
16.3.2
|
16.3.4
|
||||||
Reference in New Issue
Block a user