Skip to content

Segmentation fault using ORB #537

@FiReTiTi

Description

@FiReTiTi

Expected behaviour

I'm using ORB FE = cv2.ORB_create(self.MAX_FEATURES) as features extractor to do registration.

Actual behaviour

But when I call TargetKP, TargetDesc = FE.detectAndCompute(ImTarget, None), I get a segmentation fault error: Fatal Python error: Segmentation fault.

I have to use the option -X faulthandler to be able to find the line that generates this error, and it the one I mentioned above TargetKP, TargetDesc = FE.detectAndCompute(ImTarget, None), but I just get this line, nothing more, not trace.

Steps to reproduce

  • example code
    FE = cv2.ORB_create(2013)
    TargetKP, TargetDesc = FE.detectAndCompute(ImTarget, None)

ImTarget being a 23K x 29K pixels image encoded on 8 bits. For the record, it is dense with information as it is a tissues section, so full of overlapping cells.

  • operating system Linux Centos 7

  • opencv-python version 4.5.1

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions