1

我最近从我的 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)

我怎样才能得到这个输出?

4

0 回答 0