mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-06 11:36:51 +03:00
Improve SetPrevalue
This commit is contained in:
@@ -80,12 +80,15 @@ string ClassFlowPostProcessing::GetPreValue(std::string _number)
|
||||
int index = -1;
|
||||
|
||||
if (_number == "")
|
||||
_number = "default";
|
||||
_number = "default";
|
||||
|
||||
for (int i = 0; i < NUMBERS.size(); ++i)
|
||||
if (NUMBERS[i]->name == _number)
|
||||
index = i;
|
||||
|
||||
if (index == -1)
|
||||
return std::string("");
|
||||
|
||||
result = RundeOutput(NUMBERS[index]->PreValue, NUMBERS[index]->Nachkomma);
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user