关键点标注 labelme 修改失败

竟然没有发现好用的 人体关键点2d 标注工具,准备尝试修改labelme

没改成功,

以下是调研的结果:

调用:
labelme/shape.py

def paint(self, painter):


划线的代码:
painter.drawPath(line_path)

不重要
painter.fillPath(vrtx_path, self._vertex_fill_color)


画顶点:

                line_path.moveTo(self.points[0])
                # Uncommenting the following line will draw 2 paths
                # for the 1st vertex, and make it non-filled, which
                # may be desirable.
                # self.drawVertex(vrtx_path, 0)

                for i, p in enumerate(self.points):
                    line_path.lineTo(p)
                    self.drawVertex(vrtx_path, i)
                    

点模式时,points长度是1,所以不能划线                    


可以用:
def addPoint(self, point, label=1):
 

你可能感兴趣的:(python基础,人工智能)