Skip to content

SystemError: <built-in function NMSBoxes> returned NULL without setting an error #12789

@LZQthePlane

Description

@LZQthePlane
  • OpenCV => 3.4.3
  • Operating System / Platform => Windows 64 Bit
  • Compiler => Visual Studio 2015
Detailed description

I am trying test object_detection.py,
the bug happens when I run indices = cv.dnn.NMSBoxes(boxes, confidences, confThreshold, nmsThreshold)

the params are like:

  • boxes: <class 'list'>: [[267, 43, 244, 161], [219, 63, 198, 204], [197, 56, 38, 89], [41, 71, 60, 175], [-3, 130, 62, 206], [177, 163, 101, 181]]
  • confidences: <class 'list'>: [0.876075, 0.7604607, 0.9908975, 0.99148935, 0.6421119, 0.98622924]
  • confThreshold = 0.5
  • nmsThreshold = 0.4

Then I get the error: SystemError: <built-in function NMSBoxes> returned NULL without setting an error, so can anyone help me out ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions