Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenCV Error #2

Closed
emartchenko opened this issue Dec 14, 2021 · 2 comments
Closed

OpenCV Error #2

emartchenko opened this issue Dec 14, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@emartchenko
Copy link

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

@mcserep mcserep added the bug Something isn't working label Feb 14, 2022
@Aladgit
Copy link

Aladgit commented Jul 8, 2022

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

@mcserep
Copy link
Member

mcserep commented Sep 19, 2022

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:

  • Try to crop the railway and its close surroundings from the point cloud. Some terrain and vegetation nearby can be handled by the algorithm, but larger areas could "mislead" the algorithm and in the end no rail track is found.
  • To avoid manual preprocessing of the data in such way, we have implemented a combined cable and rail track segmentation approach, by first locating the overhead cables and automatically cropping the point cloud based on its position, so the rail tracks can be found with much better results. This was implemented in cc18442. See the Usage Guide as a reference on how to use it.

@mcserep mcserep closed this as completed Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants