opencv_contrib icon indicating copy to clipboard operation
opencv_contrib copied to clipboard

reg: broken python sample

Open berak opened this issue 7 years ago • 10 comments

  • OpenCV =>3.4.3 / 3.4.4
  • Operating System / Platform => Windows 64 Bit / ubuntu 16
  • Compiler => opencv-contrib-python 3.4.4 / 3.4.3 (from pip)

for unknown reason, sample only runs, if we use cv.reg_MapShift cv.reg_MapperGradShift and cv.reg_MapperPyramid here:

https://github.com/opencv/opencv_contrib/blob/7670ff2c0125504ae99ba3cba12b9d47b18a02bd/modules/reg/samples/reg_shift.py#L10-L15

(underscores instead of dots) (easy to fix, but the underscores look quite weird to me)

it also segfaults, if it used like this:

 mappPyr = cv.reg_MapperPyramid(cv.reg_MapperGradShift()) 

instead of:

 mapper = cv.reg_MapperGradShift() 
 mappPyr = cv.reg_MapperPyramid(mapper) 

berak avatar Dec 07 '18 12:12 berak

I can confirm this with:

opencv-contrib-python==4.1.0.25 opencv-python==4.1.0.25

lostcontrol avatar Jun 12 '19 11:06 lostcontrol

Hi @lostcontrol I am new to Open Source. Have worked on only personal projects. I want to solve this issue. Can you please tell me what exactly I have to do here? Thanks.

P.S. I have used OpenCV before and I am proficient in python.

SunilKrSingh avatar Dec 06 '19 05:12 SunilKrSingh

@SunilKrSingh, I'm not involved in OpenCV but have a look at the first comment and check the sample code. Based on that you should be able to reproduce the issue. Good luck.

lostcontrol avatar Dec 23 '19 16:12 lostcontrol

@alalek This issue has been solved already right?

nivedwho avatar Apr 04 '20 13:04 nivedwho

@alalek can i be assigned this issue please?

Frankie-Machine avatar Dec 18 '20 07:12 Frankie-Machine

@Frankie-Machine , just try to reproduce it, if you have an idea how to solve it, -- just do it, too !

(noone will get "assigned" to do it.)

berak avatar Dec 19 '20 14:12 berak

I tried to reproduce this issue.

it also segfaults, if it used like

mappPyr = cv.reg_MapperPyramid(cv.reg_MapperGradShift())

I could reproduce this on my machine (4.6.0 on Ubuntu 22.04 LTS)

I stack tra errss(1) ced this using gdb and got this

0x00007fffde14030c in ?? () from /home/<user>/.local/lib/python3.10/site-packages/cv2/cv2.abi3.so I am not sure what to do with this info. any pointers on what source is involved in building cv2.abi3.so would be helpful.

I could not reproduce the "replacing dots with underscores" issue.

aimbot6120 avatar Jul 05 '22 13:07 aimbot6120

I wanna work on this issue. Please assign this to me and since I'm new to this repo so I request you to please guide me through.

VARUN-009 avatar Jan 22 '23 06:01 VARUN-009

I'd really like to work on this issue. Please assign me and help me to get familiar as I'm new to Open Source

aadarshahebsingh avatar Nov 01 '23 17:11 aadarshahebsingh