mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-06 11:36:51 +03:00
Inital
This commit is contained in:
BIN
firmware/bootloader.bin
Normal file
BIN
firmware/bootloader.bin
Normal file
Binary file not shown.
BIN
firmware/firmware.bin
Normal file
BIN
firmware/firmware.bin
Normal file
Binary file not shown.
BIN
firmware/partitions.bin
Normal file
BIN
firmware/partitions.bin
Normal file
Binary file not shown.
BIN
sd-card/config/analog.tfl
Normal file
BIN
sd-card/config/analog.tfl
Normal file
Binary file not shown.
42
sd-card/config/config.ini
Normal file
42
sd-card/config/config.ini
Normal file
@@ -0,0 +1,42 @@
|
||||
[MakeImage]
|
||||
LogImageLocation = /log/source
|
||||
WaitBeforeTakingPicture=5
|
||||
ImageQuality = 5
|
||||
ImageSize = VGA
|
||||
|
||||
[Alignment]
|
||||
InitalRotate=180
|
||||
/config/ref0.jpg 98, 257
|
||||
/config/ref1.jpg 449, 116
|
||||
SearchFieldX = 20
|
||||
SearchFieldY = 20
|
||||
|
||||
[Digits]
|
||||
Model=/config/digits.tfl
|
||||
ModelInputSize 20, 32
|
||||
LogImageLocation = /log/digit
|
||||
digit1, 291, 97, 37, 67
|
||||
digit2, 344, 97, 37, 67
|
||||
digit3, 394, 97, 37, 67
|
||||
|
||||
[Analog]
|
||||
Model=/config/analog.tfl
|
||||
ModelInputSize 32, 32
|
||||
LogImageLocation = /log/analog
|
||||
analog1, 433, 207, 99, 99
|
||||
analog2, 378, 313, 99, 99
|
||||
analog3, 280, 356, 99, 99
|
||||
analog4, 149, 313, 99, 99
|
||||
|
||||
[PostProcessing]
|
||||
PreValueUse = True
|
||||
PreValueAgeStartup = 30
|
||||
AllowNegativeRates = False
|
||||
MaxRateValue = 0.1
|
||||
ErrorMessage = True
|
||||
|
||||
[AutoTimer]
|
||||
AutoStart= true
|
||||
Intervall = 4.85
|
||||
|
||||
[Ende]
|
||||
BIN
sd-card/config/digits.tfl
Normal file
BIN
sd-card/config/digits.tfl
Normal file
Binary file not shown.
BIN
sd-card/config/org_ref0.jpg
Normal file
BIN
sd-card/config/org_ref0.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
BIN
sd-card/config/org_ref1.jpg
Normal file
BIN
sd-card/config/org_ref1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
2
sd-card/config/prevalue.ini
Normal file
2
sd-card/config/prevalue.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
2020-07-26_17-36-20
|
||||
11.254200
|
||||
BIN
sd-card/config/ref0.jpg
Normal file
BIN
sd-card/config/ref0.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
BIN
sd-card/config/ref1.jpg
Normal file
BIN
sd-card/config/ref1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
BIN
sd-card/config/reference.jpg
Normal file
BIN
sd-card/config/reference.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 134 KiB |
0
sd-card/firmware/leer.txt
Normal file
0
sd-card/firmware/leer.txt
Normal file
BIN
sd-card/html/favicon.ico
Normal file
BIN
sd-card/html/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.3 KiB |
82
sd-card/html/file_server_upload_script.html
Normal file
82
sd-card/html/file_server_upload_script.html
Normal file
@@ -0,0 +1,82 @@
|
||||
<table class="fixed" border="0">
|
||||
<col width="1000px" /><col width="500px" />
|
||||
<tr><td>
|
||||
<h2>ESP32 File Server</h2>
|
||||
</td><td>
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<label for="newfile">Upload a file</label>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<input id="newfile" type="file" onchange="setpath()" style="width:100%;">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="filepath">Set path on server</label>
|
||||
</td>
|
||||
<td>
|
||||
<input id="filepath" type="text" style="width:100%;">
|
||||
</td>
|
||||
<td>
|
||||
<button id="upload" type="button" onclick="upload()">Upload</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
<script>
|
||||
function setpath() {
|
||||
var fileserverpraefix = "/fileserver";
|
||||
var anz_zeichen_fileserver = fileserverpraefix.length;
|
||||
var default_path = window.location.pathname.substring(anz_zeichen_fileserver) + document.getElementById("newfile").files[0].name;
|
||||
document.getElementById("filepath").value = default_path;
|
||||
}
|
||||
function upload() {
|
||||
var filePath = document.getElementById("filepath").value;
|
||||
var upload_path = "/upload/" + filePath;
|
||||
var fileInput = document.getElementById("newfile").files;
|
||||
|
||||
/* Max size of an individual file. Make sure this
|
||||
* value is same as that set in file_server.c */
|
||||
var MAX_FILE_SIZE = 200*1024;
|
||||
var MAX_FILE_SIZE_STR = "200KB";
|
||||
|
||||
if (fileInput.length == 0) {
|
||||
alert("No file selected!");
|
||||
} else if (filePath.length == 0) {
|
||||
alert("File path on server is not set!");
|
||||
} else if (filePath.indexOf(' ') >= 0) {
|
||||
alert("File path on server cannot have spaces!");
|
||||
} else if (filePath[filePath.length-1] == '/') {
|
||||
alert("File name not specified after path!");
|
||||
} else if (fileInput[0].size > 200*1024) {
|
||||
alert("File size must be less than 200KB!");
|
||||
} else {
|
||||
document.getElementById("newfile").disabled = true;
|
||||
document.getElementById("filepath").disabled = true;
|
||||
document.getElementById("upload").disabled = true;
|
||||
|
||||
var file = fileInput[0];
|
||||
var xhttp = new XMLHttpRequest();
|
||||
xhttp.onreadystatechange = function() {
|
||||
if (xhttp.readyState == 4) {
|
||||
if (xhttp.status == 200) {
|
||||
document.open();
|
||||
document.write(xhttp.responseText);
|
||||
document.close();
|
||||
} else if (xhttp.status == 0) {
|
||||
alert("Server closed the connection abruptly!");
|
||||
location.reload()
|
||||
} else {
|
||||
alert(xhttp.status + " Error!\n" + xhttp.responseText);
|
||||
location.reload()
|
||||
}
|
||||
}
|
||||
};
|
||||
xhttp.open("POST", upload_path, true);
|
||||
xhttp.send(file);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
0
sd-card/img_tmp/leer.txt
Normal file
0
sd-card/img_tmp/leer.txt
Normal file
0
sd-card/log/analog/leer.txt
Normal file
0
sd-card/log/analog/leer.txt
Normal file
0
sd-card/log/digit/0/leer.txt
Normal file
0
sd-card/log/digit/0/leer.txt
Normal file
0
sd-card/log/digit/1/leer.txt
Normal file
0
sd-card/log/digit/1/leer.txt
Normal file
0
sd-card/log/digit/10/leer.txt
Normal file
0
sd-card/log/digit/10/leer.txt
Normal file
0
sd-card/log/digit/2/leer.txt
Normal file
0
sd-card/log/digit/2/leer.txt
Normal file
0
sd-card/log/digit/3/leer.txt
Normal file
0
sd-card/log/digit/3/leer.txt
Normal file
0
sd-card/log/digit/4/leer.txt
Normal file
0
sd-card/log/digit/4/leer.txt
Normal file
0
sd-card/log/digit/5/leer.txt
Normal file
0
sd-card/log/digit/5/leer.txt
Normal file
0
sd-card/log/digit/6/leer.txt
Normal file
0
sd-card/log/digit/6/leer.txt
Normal file
0
sd-card/log/digit/7/leer.txt
Normal file
0
sd-card/log/digit/7/leer.txt
Normal file
0
sd-card/log/digit/8/leer.txt
Normal file
0
sd-card/log/digit/8/leer.txt
Normal file
0
sd-card/log/digit/9/leer.txt
Normal file
0
sd-card/log/digit/9/leer.txt
Normal file
0
sd-card/log/source/leer.txt
Normal file
0
sd-card/log/source/leer.txt
Normal file
2
sd-card/wlan.ini
Normal file
2
sd-card/wlan.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
ssid = SSID
|
||||
password = PASSWORD
|
||||
Reference in New Issue
Block a user