Skip to content

Commit

Permalink
Merge pull request #37 from robmarkcole/ISSUE36
Browse files Browse the repository at this point in the history
add datasette
  • Loading branch information
robmarkcole authored Apr 18, 2021
2 parents 29433d7 + 2cac8d0 commit 8ececea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,21 @@ As `save-captures.py` but in addition saving the frame thumbnail to a sqlite db:
```
$ (venv) python3 scripts/db-recorder.py
```
The images can be viewed using [sqlite browser](https://sqlitebrowser.org/) or [datasette](https://datasette.io/) with the [datasette-render-images](https://datasette.io/plugins/datasette-render-images) plugin.

The images can be viewed using [sqlite browser](https://sqlitebrowser.org/)

<p align="center">
<img src="https://github.com/robmarkcole/mqtt-camera-streamer/blob/master/docs/images/sqlite-browser.jpg" width="800">
</p>

If you wish to run a server with UI for browsing the images then [datasette](https://datasette.io/) with the [datasette-render-images](https://datasette.io/plugins/datasette-render-images) plugin can be used.

```
$ (venv) pip install datasette
$ (venv) pip install datasette-render-images
$ (venv) datasette captures/records.db
```

## Image processing pipeline
To process a camera stream (the example rotates the image):
```
Expand Down
Binary file added docs/images/datasette.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8ececea

Please sign in to comment.