crazyai-kby commited on
Commit
2e927d8
1 Parent(s): 49eeed9

Fix warning

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ import configparser
11
  def run(file):
12
  in_image = cv2.imread(file)
13
 
14
- encode_img = cv2.imencode('.jpg', in_image)[1].tostring()
15
  encode_img = base64.encodebytes(encode_img)
16
  base64_img = str(encode_img, 'utf-8')
17
 
 
11
  def run(file):
12
  in_image = cv2.imread(file)
13
 
14
+ encode_img = cv2.imencode('.jpg', in_image)[1].tobytes()
15
  encode_img = base64.encodebytes(encode_img)
16
  base64_img = str(encode_img, 'utf-8')
17