摘要: 坑 线索 OpenCV里imshow()处理不同数据类型的numpy.ndarray分析_温知故新的博客-CSDN博客_imshow numpy 阅读全文
posted @ 2022-04-24 15:01 bH1pJ 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 非常好 Python opencv cv2.applyColorMap 伪色彩函数_hxxjxw的博客-CSDN博客_cv2.colormap 唯一比较蛋疼的地方是 cv2.imwrite写不到指定的地方 怎么办 1、路径中不要出现中文 2、使用反斜杠; 3、不要使用cv2.imencode('.j 阅读全文
posted @ 2022-04-24 14:32 bH1pJ 阅读(39) 评论(0) 推荐(0) 编辑
摘要: blur_heatMap_jet = cv2.applyColorMap(blur2, 2) 方案1: plt plt.figure() plt.imshow(blur_heatMap_jet) plt.show() 的结果 方案2: cv2的结果 cv2.imwrite(heatMapPath, 阅读全文
posted @ 2022-04-24 14:30 bH1pJ 阅读(39) 评论(0) 推荐(0) 编辑
摘要: line = np.array([[lx, ly],[cx, cy]], dtype=np.int32) trajectoryImg = cv2.polylines(trajectoryImg, [line], 1, (0, 0, 0)) 记得swap # 绘制小鼠的轨迹 trajectoryImg 阅读全文
posted @ 2022-04-24 12:54 bH1pJ 阅读(17) 评论(0) 推荐(0) 编辑
摘要: img = imread('D:\ap.jpg'); figure; %matlab生成指定大小的figure set(gcf,'Position',[100 100 500 500]);%如何改变Figure的大小,省的拖拽 imshow(img); set(gcf,'colormap',jet) 阅读全文
posted @ 2022-04-24 12:49 bH1pJ 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 真恶心,就会折腾人 cv2.imencode('.jpg', src)[1].tofile(save_path) cv2.imwrite("我//h.jpg", frame) #该方法不成功 ,除非路径是全英文,而且,都是反斜杠 才行; 阅读全文
posted @ 2022-04-24 12:11 bH1pJ 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 不要用正斜杠,用反斜杠; 最好什么斜杠也不要用 阅读全文
posted @ 2022-04-24 00:10 bH1pJ 阅读(67) 评论(0) 推荐(0) 编辑