mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-08 04:26:58 +03:00
add AlignmentAlgo=off option (#1867)
This commit is contained in:
@@ -65,7 +65,7 @@ bool ClassFlowAlignment::ReadParameter(FILE* pfile, string& aktparamgraph)
|
|||||||
std::vector<string> splitted;
|
std::vector<string> splitted;
|
||||||
int suchex = 40;
|
int suchex = 40;
|
||||||
int suchey = 40;
|
int suchey = 40;
|
||||||
int alg_algo = 0;
|
int alg_algo = 0; //default=0; 1 =HIGHACCURACY; 2= FAST; 3= OFF
|
||||||
|
|
||||||
|
|
||||||
aktparamgraph = trim(aktparamgraph);
|
aktparamgraph = trim(aktparamgraph);
|
||||||
@@ -130,6 +130,8 @@ bool ClassFlowAlignment::ReadParameter(FILE* pfile, string& aktparamgraph)
|
|||||||
alg_algo = 1;
|
alg_algo = 1;
|
||||||
if (toUpper(splitted[1]) == "FAST")
|
if (toUpper(splitted[1]) == "FAST")
|
||||||
alg_algo = 2;
|
alg_algo = 2;
|
||||||
|
if (toUpper(splitted[1]) == "OFF")
|
||||||
|
alg_algo = 3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -195,8 +197,11 @@ bool ClassFlowAlignment::doFlow(string time)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//no align algo if set to 3 = off
|
||||||
|
if(References[0].alignment_algo != 3){
|
||||||
delete AlignAndCutImage;
|
delete AlignAndCutImage;
|
||||||
AlignAndCutImage = new CAlignAndCutImage(ImageBasis, ImageTMP);
|
AlignAndCutImage = new CAlignAndCutImage(ImageBasis, ImageTMP);
|
||||||
|
}
|
||||||
if (!AlignAndCutImage)
|
if (!AlignAndCutImage)
|
||||||
{
|
{
|
||||||
LogFile.WriteToFile(ESP_LOG_ERROR, TAG, "Can't allocate AlignAndCutImage -> Exec this round aborted!");
|
LogFile.WriteToFile(ESP_LOG_ERROR, TAG, "Can't allocate AlignAndCutImage -> Exec this round aborted!");
|
||||||
|
|||||||
@@ -282,6 +282,7 @@ textarea {
|
|||||||
<option value="default" selected>Default</option>
|
<option value="default" selected>Default</option>
|
||||||
<option value="highAccuracy" >HighAccuracy</option>
|
<option value="highAccuracy" >HighAccuracy</option>
|
||||||
<option value="fast" >Fast</option>
|
<option value="fast" >Fast</option>
|
||||||
|
<option value="off" >Fast</option>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
<td style="font-size: 80%;">
|
<td style="font-size: 80%;">
|
||||||
|
|||||||
Reference in New Issue
Block a user