![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
numpy
WeissSama
写清楚 搞清楚
展开
-
numpy中的max,argmax,sort,argsort,
np.max np.argmax np.sort np.argsort原创 2023-02-28 10:44:06 · 163 阅读 · 0 评论 -
图片np.array、base64在server和client端之间的转换,以及exif判断图片是否旋转
python3 import base64 import cv2 import numpy as np 1.base64 string to numpy array image_string = request_data['image'] img_data = base64.b64decode(image_string) nparr = np.fromstring(img_data, np.uint8) img_np = cv2.imdecode(nparr, cv2.IMREAD_COLOR) 2 .原创 2021-05-14 17:38:36 · 731 阅读 · 0 评论