Openpose中的“损坏的双向链接列表”

时间:2019-05-23 08:28:16

标签: python openpose

我最近从我的python代码中得到了以下错误:

corrupted double-linked list

我在openpose中调用此函数:

    def forward(self, image, display = False):
    """
    Forward: Takes in an image and returns the human 2D poses, along with drawn image if required

    Parameters
    ----------
    image : color image of type ndarray
    display : If set to true, we return both the pose and an annotated image for visualization

    Returns
    -------
    array: ndarray of human 2D poses [People * BodyPart * XYConfidence]
    displayImage : image for visualization
    """
    shape = image.shape
    displayImage = np.zeros(shape=(image.shape),dtype=np.uint8)
    size = np.zeros(shape=(3),dtype=np.int32)
    self._libop.forward(self.op, image, shape[0], shape[1], size, displayImage, display)
    array = np.zeros(shape=(size),dtype=np.float32)
    self._libop.getOutputs(self.op, array)
    if display:
        return array, displayImage
    return array

我以这种方式得到输出:

    key_points, img = pose.forward(frame, display=True)

如何获得此输出?

0 个答案:

没有答案