Skip to content

openCV version problem (cv2.findContours) #2

Description

@oceam

FunctionForSegmentation.py
439 # Detect the blobs and there contour in this black and white mask
440 im2, contours, hierarchy = cv2.findContours(BandWMask,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)
このコードなのですが、openCVのバージョンを更新するとエラーがでます。
440 の返り値 im2を削除すれば問題なく動作します。

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