Skip to content

Instantly share code, notes, and snippets.

@Casxt
Created December 10, 2018 07:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Casxt/f8fd6cc2235940fa4ebe66155cc2423f to your computer and use it in GitHub Desktop.
Save Casxt/f8fd6cc2235940fa4ebe66155cc2423f to your computer and use it in GitHub Desktop.
opencv imgencode usage
ret, imgBytes = cv2.imencode(".jpg", cv2_img)
if ret:
bytes = imgBytes.tobytes()
@Casxt
Copy link
Author

Casxt commented Dec 10, 2018

imgBytes is a numpy array

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment