model / app /utils.py
Sudhansh26's picture
Upload 9 files
bc6df5a verified
Raw History Blame Contribute Delete
172 Bytes
import cv2
import numpy as np
def read_image(data):
"""Read image from bytes data."""
return cv2.imdecode(np.frombuffer(data, np.uint8), cv2.IMREAD_COLOR)