nparr = np.frombuffer(image, np.uint8)
img_decode = cv2.imdecode(nparr, 1)
DeprecationWarning: The binary mode of fromstring is deprecated, as it behaves surprisingly on unicode inputs. Use frombuffer instead
nparr = np.frombuffer(image, np.uint8)
img_decode = cv2.imdecode(nparr, 1)
DeprecationWarning: The binary mode of fromstring is deprecated, as it behaves surprisingly on unicode inputs. Use frombuffer instead