How I use anafi sdk to image processing with thermal image of anafi thermal

Hi ,everyone I do project image processing with parrot anafi thermal
now I will try to use image thermal to detect temp (I didn’t use anafi sdk ) but temp missing
How I use sdk to image processing thermal image

This are my code to use image processing

import cv2
import numpy as np
import matplotlib.pyplot as plt

# Load the thermal image (replace 'thermal_image.jpg' with your image file)
thermal_image = cv2.imread('image_path.jpg', cv2.IMREAD_GRAYSCALE)

# Find the maximum temperature (brightest pixel)
max_temp = np.max(thermal_image)

print(f"Maximum Temperature: {max_temp} degrees Celsius")

# Display the thermal image using Matplotlib
plt.imshow(thermal_image, cmap='hot')
plt.colorbar()
plt.title('Thermal Image')
plt.show()

my output for code
image
My image analyze in freeflight6

This topic was automatically closed after 30 days. New replies are no longer allowed.