![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
CV
11111kgd
有多少人工就有多少智能
展开
-
dice loss
dice loss原创 2022-08-05 16:34:52 · 724 阅读 · 0 评论 -
读取JSON文件,根据mask判断是否连通
判断图片是否连通原创 2022-02-21 17:09:10 · 2764 阅读 · 1 评论 -
根据点绘制边框 cv2
根据像素值快速获取下标# get indexdef get_index(im, value): # Load image im = cv2.imread('image.png') blue = [255, 0, 0] # Get X and Y coordinates of all blue pixels X, Y = np.where(np.all(im == value, axis=2)) zipped = np.column_stack((X, Y)原创 2022-01-19 18:00:58 · 2940 阅读 · 0 评论 -
根据json文件或nii文件生成mask图
COCO数据集根据json文件生成mask二值图数据格式(COCO JSON文件)# 处理json数据并保存二值maskdef json_to_mask_data(annFile, mask_to_save): ''' Args: annFile: JSON file mask_to_save: save path Returns: ''' # 获取COCO_json的数据 coco = COCO(an原创 2022-01-19 17:52:23 · 3878 阅读 · 0 评论