Mac M1 环境下CV标注工具建设

《Mac M1 环境下CV标注工具建设》

   M1 下载环境的时候会遇到很多问题,本以为下载这两个标注工具会很费事,没想到出乎意料的顺利,简单记录一下 Mac M1 下安装 CV 的标注工具,及其用法。

Key Words:labelme、PixelAnnotation、Apple M1


Beijing, 2021

作者:mxsurui

Agile Pioneer  

  • 系统环境如下
    在这里插入图片描述

labelme

  • 注意,直接使用 pip install labelme 在 Apple M1 下是不灵的
conda install pyqt
pip install labelme

pixelAnnotation

install
  1. 下载 OpenCV 并编译
  2. 执行下面脚本就完成了
git clone https://github.com/abreheret/PixelAnnotationTool.git

mkdir build&cd build

cmake ..

make -j4
usage
  1. 左上角的 File 选择你要标注图片的文件夹路径,标注结果会保存在数据路径,标注后会保存三份结果_watershed_mask.png、_color_mask.png、_mask.png,实际上 _mask.png 是训练需要的
  2. Tool 选择你标注任务的 .config 文件位置

.config 文件格式如下:
给出了两个类别的 config 格式
其中每个 label 下的 id 是对应的类别的像素值

{
    "labels": {
        "bicycle": {
            "categorie": "vehicle",
            "color": [
                119,
                11,
                32
            ],
            "id": 33,
            "id_categorie": 7,
            "name": "bicycle"
        },
        "bridge": {
            "categorie": "construction",
            "color": [
                150,
                100,
                100
            ],
            "id": 15,
            "id_categorie": 2,
            "name": "bridge"
        }
    }
}
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值