Skip to content

dot delimiters for Python after namespaces #14730

@dkurt

Description

@dkurt

Current python bindings are generated with constructors for classes with '_' symbol after namespaces. It might be nice to have more convenient '.' delimiters as well (just aliases). In example, for now we have

net = cv.dnn_Net()

But there is no

net = cv.dnn.Net()

Note: we need to keep dnn_Net for compatibility.

We need it for GSoC's data augmentation module because for now we designed with @FadyEssam basic transformations in the cv::augment namespace and the only way to manage transformations is:

t = cv.augment_FlipVertical()  # but cv.augment.FlipVertical() looks better

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions