GISLab-ELTE / railroad

Robust Railroad Infrastructure Detection Framework
BSD 3-Clause "New" or "Revised" License
24 stars 15 forks source link

OpenCV Error #2

Closed emartchenko closed 1 year ago

emartchenko commented 2 years ago

Hello there, we are trying to use this project to identify railroads but continually run into OpenCV errors whether with LAS or LAZ files. We've tried a couple different files of each format but see the same error. Screenshots of trace provided below, any insights would be helpful. Thank you.

Running on LAZ file: image

Running on LAS file:

image

Aladgit commented 2 years ago

Has this bug already been fixed? I'm also running into several errors.

mcserep commented 1 year ago

Thanks for reporting this issue. The source of the error is that the algorithm failed to find the rail tracks. While in OpenCV3 there is no error in that case, in OpenCV2 an assertion fails upon writing a 0x0 size image. We have made improvements on this and meanwhile switched to OpenCV4, so please try it again with a higher OpenCV version.

Of course, the real issue here is that the rail track was not found. I have 2 suggestions for that: