tomasz-lewicki / ai-thermometer

Fever screening with IR & RGB cameras and Deep CNNs
148 stars 39 forks source link

Capture of pixel temperature with Lepton 3.5 camera #44

Open GillesBra opened 2 years ago

GillesBra commented 2 years ago

Hi Tomasz, Thank you very much for your answer concerning the script you have developped for temperature capture with Lepton 3.5.

Not being experienced in software development, I send you below a few questions:

Sorry to take your time by basic questions, but this could help the project a lot.

tomasz-lewicki commented 2 years ago

Hi @GillesBra !

Glad you answer your questions:

1) The Lepton Camera with Purethermal board act together as a USB UVC device. So going line-by-line:

2) Here it is (an aarch64 binary): https://github.com/tomek-l/ai-thermometer/blob/master/ir/libuvc_wrapper/libuvc.so

Here are instructions to build your own:

git clone https://github.com/groupgets/libuvc
cd libuvc
mkdir build
cd build
cmake ..
make
cp libuvc.so ~/ai-thermometer/ir/libuvc_wrapper

3) self._exit_handler() does the cleanup here

libuvc.uvc_stop_streaming(self._devh)
libuvc.uvc_unref_device(self._dev)
libuvc.uvc_exit(self._ctx)

4) I don't have an output of a full array. The closest thing would be in this notebook

array([[32.56, 32.32, 32.36, ..., 31.93, 31.47, 31.77],
       [32.52, 32.06, 32.  , ..., 31.77, 31.47, 31.81],
       [32.38, 32.36, 32.24, ..., 31.57, 31.53, 31.77],
       ...,
       [31.77, 31.75, 32.32, ..., 31.11, 31.15, 30.81],
       [31.75, 31.57, 32.12, ..., 31.03, 30.71, 30.89],
       [31.77, 31.59, 31.77, ..., 31.11, 30.71, 30.73]])

5) Please read README.md. This is the list of supported parts:

# Part link Price (USD)
1 Jetson Nano Dev Kit link 99
3 FLIR Lepton 3.5 IR Camera link 199
4 GroupGets Purethermal2 Module link 99
2 Raspberry Pi Camera Module V2.1 link 25
5 Noctua cooling fan link 14
6 3D printed enclosure 3D model -
total 436

6) The project depends on:

That being said, I should add a proper requirements.txt to this project.