thermalcam_decoder/test2.py
2023-12-31 11:30:54 +02:00

15 lines
325 B
Python
Executable File

#!/usr/bin/env python3
from pathlib import Path
from thermaldecoder import decode
import numpy as np
import matplotlib.pyplot as plt
root = Path('f2')
root.mkdir(exist_ok=True)
frames = decode('heatbed90_hotend_200_ice0.pcapng')
f = next(frames)
f = next(frames)
f = np.array(f)
f.shape = (384, 288)
plt.imshow(f)
plt.show()