2023-12-29 17:33:10 +02:00
|
|
|
#!/usr/bin/env python3
|
2023-12-29 17:05:44 +02:00
|
|
|
from pathlib import Path
|
|
|
|
from thermaldecoder import decode
|
|
|
|
import numpy as np
|
|
|
|
import matplotlib.pyplot as plt
|
|
|
|
root = Path('frames')
|
|
|
|
root.mkdir(exist_ok=True)
|
2023-12-31 01:20:44 +02:00
|
|
|
frames = list(decode('in.pcap'))
|
2023-12-29 17:05:44 +02:00
|
|
|
f = np.array(frames[0])
|
|
|
|
f.shape = (384, 288)
|
|
|
|
plt.imshow(f)
|
|
|
|
plt.show()
|