Skip to content

Commit

Permalink
Update image_converter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dongrixinyu committed Oct 9, 2023
1 parent a127e68 commit e592760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyFFmpeg/util/image_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ def rawrgb_2_base64(rgb_bytes, width, height):
np_frame = np.reshape(np_buffer, (width, height, 3))

np_image = cv2.imencode('.jpg', np_frame)[1]
base64_image_code = str(base64.b64encode(np_image))
base64_image_code = base64.b64encode(np_image).decode()

return base64_image_code

0 comments on commit e592760

Please sign in to comment.