Skip to content

v0.1.21

Compare
Choose a tag to compare
@github-actions github-actions released this 25 Nov 17:40
· 501 commits to main since this release

v0.1.21 (2022-11-25)

Browse the Repository | Released Assets

Fixed

  • [py_src] fixed functions in dnn that return *this.

    For this part, this original code (as in python-opencv) would case a new object to be allocated in C++ like

    TextDetectionModel_DB retval;
    retval = self.setSomeValue(...)
    return pyopencv_from(retval);

    Noticing the address of the object has changed (because it's a new one) after calling m.setBinaryThreshold.

    >>> import cv2'
    >>> m = cv2.dnn_TextDetectionModel_DB("DB_IC15_resnet18.onnx")
    >>> m
    < cv2.dnn.TextDetectionModel_DB 0x1064cf210>
    >>> m.setBinaryThreshold(0.5)
    < cv2.dnn.TextDetectionModel_DB 0x11ecda7f0>