mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-10 05:26:52 +03:00
Rolling 20220206
This commit is contained in:
@@ -291,7 +291,8 @@ textarea {
|
||||
<class id="Digits_Model_text" style="color:black;">Model</class>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" id="Digits_Model_value1">
|
||||
<select id="Digits_Model_value1">
|
||||
</select>
|
||||
</td>
|
||||
<td style="font-size: 80%;">
|
||||
Path to CNN model file for image recognition
|
||||
@@ -347,7 +348,10 @@ textarea {
|
||||
<tr>
|
||||
<td width="20px" style="padding-left: 40px;"> </td>
|
||||
<td width="200px"> <class id="Analog_Model_text" style="color:black;">Model</class> </td>
|
||||
<td> <input type="text" id="Analog_Model_value1"> </td>
|
||||
<td>
|
||||
<select id="Analog_Model_value1">
|
||||
</select>
|
||||
</td>
|
||||
<td style="font-size: 80%;"> Path to CNN model file for image recognition</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -466,7 +470,7 @@ textarea {
|
||||
<tr>
|
||||
<td style="padding-left: 40px;" colspan="4">
|
||||
<br>
|
||||
<b>Postprocessing Individual Paramters:
|
||||
<b>Postprocessing Individual Parameters:
|
||||
<select id="Numbers_value1" onchange="numberChanged()">
|
||||
<option value="0" selected>default</option>
|
||||
<option value="1" >NT</option>
|
||||
@@ -1727,12 +1731,12 @@ function UpdateInput() {
|
||||
WriteParameter(param, category, "Alignment", "SearchFieldY", false);
|
||||
WriteParameter(param, category, "Alignment", "AlignmentAlgo", true);
|
||||
|
||||
WriteParameter(param, category, "Digits", "Model", false);
|
||||
// WriteParameter(param, category, "Digits", "Model", false);
|
||||
WriteParameter(param, category, "Digits", "LogImageLocation", true);
|
||||
WriteParameter(param, category, "Digits", "LogfileRetentionInDays", true);
|
||||
WriteParameter(param, category, "Digits", "ModelInputSize", false);
|
||||
|
||||
WriteParameter(param, category, "Analog", "Model", false);
|
||||
// WriteParameter(param, category, "Analog", "Model", false);
|
||||
WriteParameter(param, category, "Analog", "LogImageLocation", true);
|
||||
WriteParameter(param, category, "Analog", "LogfileRetentionInDays", true);
|
||||
// WriteParameter(param, category, "Analog", "ExtendedResolution", true);
|
||||
@@ -1770,6 +1774,34 @@ function UpdateInput() {
|
||||
WriteParameter(param, category, "System", "TimeZone", true);
|
||||
WriteParameter(param, category, "System", "Hostname", true);
|
||||
WriteParameter(param, category, "System", "TimeServer", true);
|
||||
|
||||
WriteModelFiles();
|
||||
}
|
||||
|
||||
function WriteModelFiles()
|
||||
{
|
||||
list_tflite = getTFLITEList();
|
||||
|
||||
var _index1 = document.getElementById("Digits_Model_value1");
|
||||
var _index2 = document.getElementById("Analog_Model_value1");
|
||||
while (_index1.length)
|
||||
_index1.remove(0);
|
||||
while (_index2.length)
|
||||
_index2.remove(0);
|
||||
|
||||
for (var i = 0; i < list_tflite.length; ++i){
|
||||
var option1 = document.createElement("option");
|
||||
var option2 = document.createElement("option");
|
||||
option1.text = list_tflite[i];
|
||||
option1.value = list_tflite[i];
|
||||
option2.text = list_tflite[i];
|
||||
option2.value = list_tflite[i];
|
||||
_index1.add(option1);
|
||||
_index2.add(option2);
|
||||
}
|
||||
|
||||
WriteParameter(param, category, "Analog", "Model", false);
|
||||
WriteParameter(param, category, "Digits", "Model", false);
|
||||
}
|
||||
|
||||
function ReadParameterAll()
|
||||
|
||||
Reference in New Issue
Block a user