Pylepton will be extended in the future to return a real frame ID here once support for frame telemetry is added. First we designed an enclose/stand to hold all of the components together. Pylepton lets you quickly get images from Lepton on a Raspberry Pi. The capture() function includes a tuple that includes a pixel sum to be used for identifying unique frames (frames can update at ~27 Hz, but only unique ones are returned at ~9 Hz). The Pylepton Zero is a portable demonstration platform for the FLIR Lepton thermal imager and our pylepton software library for the Raspberry Pi. Subsequently fitting this data into 8 bits is not strictly necessary to save the image with OpenCV but just shown here for demonstration purposes. You probably want to contrast extend this as demonstrated above, since the signal bandwidth is typically narrow over that range. Note that the image data returned from capture() is 14-bit and non-normalized (it's raw sensor data). To roll your own capture program, grabbing frames is rather straightforward: import numpy as np import cv2 from pylepton import Lepton with Lepton() as l: a,_ = l.capture()cv2.normalize(a, a, 0, 65535, cv2.NORM_MINMAX) # extend contrastnp.right_shift(a, 8, a) # fit data into 8 bitscv2.imwrite( "output.jpg", np.uint8(a)) # write it! Theres a lot of work Ive been trying to set up a Lepton Thermal Camera. Source code for pylepton and pylepton_capture is available on GitHub and on pypi. 2 Axis Raspberry Pi High Quality + Flir Boson Dual Nano Gimbal Very light.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |