Skip to content

Overload resolution failed: > - src is not a numpy array, neither a scalar #31

Description

@GongHeng666

OpenCV 4.10.0(pip wheel)在某些环境下与 Ultralytics SAM2 的内部图像预处理流程不兼容

表现为:即使传入 合法的 np.uint8 (H,W,3) ndarray,在 cv2.resize() 处仍触发
src is not a numpy array / Expected Ptrcv::UMat

降级至 OpenCV 4.9.x + numpy < 2.0 后问题消失

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions