Coder Social home page Coder Social logo

Comments (6)

glemaitre avatar glemaitre commented on July 2, 2024

The code was tested with OpenCV 2. So there is probably some changes to do for OpenCV 3.
Check if homogeneous_contour needs to be be allocated before to be passed to the function.

from traffic-sign-detection.

ChernyshovYuriy avatar ChernyshovYuriy commented on July 2, 2024
std::vector< cv::Point3f > homogeneous_contour;
homogeneous_contour.reserve(contour.size());

Does not help.
Is there any way in C++ to get stack trace? I tried to wrap around try / catch but it seems to be not works in a way that it does in Java.

Any other thoughts rather then try OpenCV 2?

from traffic-sign-detection.

glemaitre avatar glemaitre commented on July 2, 2024

I moved to Python so my C++ and related tools are a bit rusty. Regarding the trace, you should probably used an external library such as stacktrace, since there is nothing built-in. Compiling in debug mode should already give you some info normally. If you are using QtCreator, you should have something integrated I think: link.

If you identified that it was coming from the function I would check the input array to be sure that all the values are correct. Checking the OpenCV function, I don't see what can go wrong.

Is it failing with one of the testing images provided?

from traffic-sign-detection.

ChernyshovYuriy avatar ChernyshovYuriy commented on July 2, 2024

Thanks a lot for information.
It failed on all images, does not matter which one, even if I provide my own images.

I am more interested in Python version of your project :-) Python is much more clear for me. Do you have your Python project set up in git as well or is it something that you manage internally?

from traffic-sign-detection.

glemaitre avatar glemaitre commented on July 2, 2024

This project is kinda of old (4-5 years) and I did not move it to python, unfortunately.

To make the project proper, I need to make the unit test at some point, but I am a bit lagging on that.
If you can get the trace that could be great. In the meanwhile, I will try to get a similar configuration and see if I can find out the issue. The good thing is that the bug is for all images ;). It should be a more or less easy one to identify.

from traffic-sign-detection.

ChernyshovYuriy avatar ChernyshovYuriy commented on July 2, 2024

Backtrace.txt
Here is back trace. I used QtCreator and import project as C++ Application.
However, for me, this issue is in low priority because I am dealing with Python.

from traffic-sign-detection.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.