|
12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import cv2
- # import flirimageextractor
- # flir = flirimageextractor.FlirImageExtractor()
- # flir.process_image('source_images_full/20200621_125936_R.jpg',RGB=True)
- # c = flir.get_metadata('source_images_full/20200621_125936_R.jpg')
- # img = flir.extract_embedded_image()
-
- import flirimageextractor
- from matplotlib import cm
- import numpy as np
- # flir = flirimageextractor.FlirImageExtractor()
- # flir.process_image('source_images_full/20200621_125936_R.jpg')
- # flir.save_images()
- # flir.plot()
-
-
-
- flir = flirimageextractor.FlirImageExtractor()
- flir.process_image('source_images_full/20200621_125936_R.jpg')
- # img = flir.save_images() #min=0,max=64,
- # print(dir(img))
- # print(img)
- thermal_img_np = flir.thermal_image_np
- h,w = thermal_img_np.shape
- # print(flir.flir_img_bytes())
-
- print(thermal_img_np)
- print(type(thermal_img_np[0][0]))
- print(h)
- print(w)
-
- # cv2.imdecode(thermal_img_np)
-
- multiplied_image = cv2.multiply(thermal_img_np, 1000)
-
- cv2.imwrite('color_img.png', multiplied_image.astype(np.uint16))
-
-
-
- # img.astype('uint8')
-
- # image = cv2.imdecode(thermal_img_np,4)
- # print('Image Dimensions :', image.shape)
|