Linux下labelme安装
pip3 install labelme
查看是否安装成功
labelme --help
启动
labelme
遇到的问题
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
解决方法
sudo apt-get install libxcb-xinerama0
人脸特征点标注与模型转换
1.按下图顺序,用Create Polygons 标85个点,第85个点标完连到第一个上
2. save 会保存一个json格式的文件,然后通过下边的convert.py转换成txt
import json
#填写需要转换的文件名
filename = "14.json"
f = open(filename, encoding='utf-8')
setting = json.load(f)
pnts = setting['shapes'][0]['points']
#85个点个情况(比68多17)
with open("test.txt", "w") as ft: