84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
项目要进行图片的预处理首先我读取了一张图片
我需要得出可以区分出每一个logo的数组
比如我这张图片是(160,160,3) (width,height,depth) 我希望把它转换为(5,32,32,3)(num, widht,height,depth): 5张logo,每张都是(32,32,3)
要用什么方式比较好呢?:)
认证高级PHP讲师
Try reshape
Answer it yourself
img_together=[] for row in range(0,224,32): for col in range(0,160,32): img_together.append(img_arr[col:col+32,row:row+32,:]) img_together = np.array(img_together)
Try reshape
Answer it yourself