Skip to content

CMSampleBuffer to OCVMat #3

@dimohamdy

Description

@dimohamdy

how i can convert CMSampleBuffer or UIImageto to OCVMat ?
i try to use

        let image:UIImage = UIImage(named: "123.jpg")!
        processImage(OCVMat(image: image))
        processImage(OCVMat(image: image))

but this method in processImage crash
OCVOperation.convertColor(fromSource: image, toDestination: image, with: .typeBGRA2RGBA)

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