Created
December 10, 2018 07:27
-
-
Save Casxt/f8fd6cc2235940fa4ebe66155cc2423f to your computer and use it in GitHub Desktop.
opencv imgencode usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ret, imgBytes = cv2.imencode(".jpg", cv2_img) | |
if ret: | |
bytes = imgBytes.tobytes() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
imgBytes is a numpy array