import cv2
import numpy as np

z_box = [26.73509174311927, 35.61926605504587, 99.26490825688073, 90.38073394495413]
z_box = np.array(z_box, dtype=np.float32)
z_box = np.expand_dims(z_box, axis=0)
z_box = np.expand_dims(z_box, axis=-1)
z_box = np.expand_dims(z_box, axis=-1)
print('z_box shape: ', z_box.shape)
z_box.tofile('b.bin')

z_crop = cv2.imread('z_crop.jpg')
z_bgr = np.expand_dims(z_crop, axis=0)
z_bgr = z_bgr.astype(np.uint8)
print('z_bgr shape: ', z_bgr.shape)
z_bgr.tofile('z.bin')

x_crop = cv2.imread('x_crop.jpg')
x_bgr = np.expand_dims(x_crop, axis=0)
x_bgr = x_bgr.astype(np.uint8)
print('x_bgr shape: ', x_bgr.shape)
x_bgr.tofile('x.bin')


