FLIR

FLIR Hardware cameras

OpenHSI Hardware Camera Implementations

Tip

This module can be imported using from openhsi.cameras import *

Wrapper class and example code for getting images from the OpenHSI.

Tip

To use the camera, you will need some calibration files. You can also generate these files following this guide which uses the calibrate module.

FLIR

Follow the install instructions for https://pypi.org/project/simple-pyspin/. This includes the Spinnaker SDK and the Python pyspin .whl file from https://flir.app.boxcn.net/v/SpinnakerSDK.

Note

PySpin only supports Python2.7/3.6-3.8

There are some additional settings: - win_resolution: size of area on detector to readout (width, height) - win_offset: offsets (x,y) from edge of detector for a selective - exposure_us: is the camera exposure time to use in microseconds


source

FlirCamera

 FlirCamera ()

Interface for FLIR camera


source

FlirCameraBase

 FlirCameraBase ()

Interface for FLIR camera

json_path='../assets/cam_settings_flir.json'
pkl_path='../assets/cam_calibration_flir.pkl'

with FlirCamera(n_lines=1000, 
                 processing_lvl = 2, 
                 pkl_path=pkl_path,json_path=json_path,
                ) as cam:
    cam.collect()
    fig = cam.show(hist_eq=True)
    
fig
100%|██████████| 1000/1000 [00:12<00:00, 78.71it/s]

Multiprocessing camera export

Export cameras using the SharedOpenHSI class.


source

SharedFlirCamera

 SharedFlirCamera ()

Interface for FLIR camera