摘要: 1 import cv2 2 img = cv2.imread('E:\\usb_test\\example\\yolov3\\rknn_emotion\\test_images\\llj5.jpg') 3 font = cv2.FONT_HERSHEY_SIMPLEX 4 5 imgzi = cv 阅读全文
posted @ 2019-12-13 11:02 刘文华 阅读(4294) 评论(0) 推荐(0) 编辑
摘要: reshape函数:改变数组的维数(注意不是shape大小) 1 >>> e= np.arange(10) 2 3 >>> e 4 5 array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) 1 >>> e.reshape(1,1,10) 2 3 array([[[0, 1, 2 阅读全文
posted @ 2019-12-13 10:41 刘文华 阅读(1596) 评论(0) 推荐(0) 编辑
摘要: 有一个数字字符的列表: numbers = ['1', '5', '10', '8'] 想要把每个元素转换为数字: 1 numbers = [1, 5, 10, 8] 用一个循环来解决: 1 new_numbers = []; 2 for n in numbers: 3 new_numbers.ap 阅读全文
posted @ 2019-12-13 10:34 刘文华 阅读(3036) 评论(0) 推荐(0) 编辑