Skip to content

ks00x/p2pro-live

Repository files navigation

P2ProLiveApp

Getting the raw and video streams out of an Infiray P2Pro thermal camera and having a live thermal display on the Windows PC (Linux should work as well if the device id is changed)

work in progress...

Conda environment settings for Windows

conda create -n p2pro python
activate p2pro
pip install opencv-python pyusb pyaudio pillow plotly matplotlib streamlit
# works well with streamlit 1.3

On Linux use venv instead of conda and pip install the same packages. For example:

cd ~
mkdir venvs
# create the venv: 
python -m venv venvs/p2pro
# important - this command activates the venv:
source ~/venvs/p2pro/bin/activate
# to deactivate type: deactivate
pip install opencv-python pyusb pyaudio pillow plotly matplotlib streamlit==1.38

features

  • runs on Windows and Linux without special drivers
  • auto and manual scaling of the temperature to color mapping
  • in image live display of max,min and center temperature
  • history chart function for min,max,avg,center temperature
  • save history to csv
  • save image to csv
  • (still) image viewer with zoom etc
  • Always and only works in the high sensitivity mode (up to 180C)

run with (activate the p2pro env first): streamlit run p2prolive_app.py You can specifiy the device id on the commandline: streamlit run p2prolive_app.py -- 0 or on Linux: streamlit run p2prolive_app.py -- /dev/video1

You may create a .bat file to activate the env and click start the web app (change the folders to match your installation, note the <&> operator):

activate p2pro & streamlit run d:\users\klaus\develop\python\misc\infiray\p2pro-live\p2prolive_app.py 

About

web app to display a live stream of the Infiray P2Pro thermal camera

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages