firelab-general/README.md

70 lines
1.1 KiB
Markdown
Raw Normal View History

2022-10-06 00:13:40 -07:00
# Pyrometry image processing
2022-10-16 15:54:24 -07:00
## Interface Screenshots
2022-10-27 12:11:39 -07:00
| Input View | Results | Temp. Distribution |
| --- | --- | --- |
| ![](screenshots/pyro_input.png) | ![](screenshots/pyro_results.png) | ![](screenshots/temp_dist_plot.png)
2022-10-16 15:54:24 -07:00
2022-10-21 11:41:37 -07:00
## Using the web version
1. Go to [pyro.turtlebasket.ml](https://pyro.turtlebasket.ml).
2. Select an input image.
3. Enter your DSLR camera settings.
4. Click "Generate Heatmap".
## Using the local (batch) version
Create a new config file:
```
cp config.example.yaml config.yaml
```
...then edit the values to match your DSLR camera settings. Standard config syntax is:
```yaml
---
# camera settings
iso: 64
i-darkcurrent: 7.7
exposure-time: 0.5
f-stop: 2.4
# pyrometry settings
min-temp: 600
max-temp: 1200
scaling-factor: 0.55
# output settings
smoothing-radius: 2
```
Install dependencies:
```
pipenv install
```
...then load images into `images-input`. Run:
```
pipenv run python3 batch-process.py
```
...and find outputs in `images-output`.
2022-10-11 13:46:53 -07:00
## Developing the web frontend
To serve in production:
```
gunicorn flask_frontend:app
```
To autoreload on source file changes:
```
gunicorn flask_frontend:app --reload
```