mirror of
https://github.com/jomjol/AI-on-the-edge-device-docs.git
synced 2025-12-06 03:26:54 +03:00
.
This commit is contained in:
@@ -54,7 +54,7 @@ To test it locally:
|
||||
1. Install the required tools (See also [.github/workflows/build-docs.yaml](.github/workflows/build-docs.yaml)):
|
||||
```
|
||||
pip install --upgrade pip
|
||||
pip install mkdocs mkdocs-gen-files mkdocs-awesome-pages-plugin mkdocs-material pymdown-extensions mkdocs-enumerate-headings-plugin mkdocs-redirects-plugin
|
||||
pip install mkdocs mkdocs-gen-files mkdocs-awesome-pages-plugin mkdocs-material pymdown-extensions mkdocs-enumerate-headings-plugin
|
||||
```
|
||||
1. In the main folder of the repo, call `mkdocs serve` (and keep it running).
|
||||
This will locally generate the documentation.
|
||||
|
||||
@@ -34,12 +34,12 @@ There are several ways to collect images from your device:
|
||||
1. Use the Webhook to send the raw image on each round to a dedicated server, see [Webhook](../Webhook) resp. [../Parameter `UploadImg`](Parameters/#parameter-uploadimg).
|
||||
1. Another option is to pull the images periodically from `http://<IP>/img_tmp/raw.jpg`. Eg. with an external service. Below is a (Linux)-Bash script to do it:
|
||||
|
||||
```bash
|
||||
```Bash
|
||||
#!/bin/bash
|
||||
while [[ true ]]; do
|
||||
echo "fetching value..."
|
||||
wget -q http://192.168.1.151/value -O value.txt
|
||||
|
||||
|
||||
value=`cat value.txt`
|
||||
echo "Value: $value"
|
||||
|
||||
@@ -47,23 +47,24 @@ There are several ways to collect images from your device:
|
||||
changed=$?
|
||||
#echo "Diff: $diff"
|
||||
|
||||
if [[ $changed -ne 0 ]]; then
|
||||
echo "Value changed:"
|
||||
echo $diff
|
||||
echo "fetching image..."
|
||||
wget -q http://192.168.1.151/img_tmp/raw.jpg -O $value.jpg
|
||||
else
|
||||
echo "Value did not change, skipping image fetching!"
|
||||
fi
|
||||
if [[ $changed -ne 0 ]]; then
|
||||
echo "Value changed:"
|
||||
echo $diff
|
||||
echo "fetching image..."
|
||||
wget -q http://192.168.1.151/img_tmp/raw.jpg -O $value.jpg
|
||||
else
|
||||
echo "Value did not change, skipping image fetching!"
|
||||
fi
|
||||
|
||||
cp value.txt value_previous.txt
|
||||
cp value.txt value_previous.txt
|
||||
|
||||
echo "waiting 60s..."
|
||||
sleep 60
|
||||
done
|
||||
```
|
||||
echo "waiting 60s..."
|
||||
sleep 60
|
||||
done
|
||||
```
|
||||
|
||||
## Use prepared images
|
||||
See the selection below with prepared images.
|
||||
Instead of recoding your own images, you can use one of the selections of prepared images below.
|
||||
|
||||
## How does it work
|
||||
The Demo Mode tries to interfere as less as possible with the normal behavior. Whenever a Cam framebuffer gets taken (`esp_camera_fb_get()`), it replaces the framebuffer with the image from the SD card.
|
||||
|
||||
Reference in New Issue
Block a user