Giter VIP home page Giter VIP logo

Comments (6)

bittnt avatar bittnt commented on September 23, 2024

Thanks for reporting this error. From your error message, It seems to be the error of opencv 3.0. Could you provide more detail information, e.g. ubuntu linux? gcc version? opencv version?

Current code was tested under ubuntu 14.04 and opencv 2.4.

Please let me know if you make any progress. Otherwise, I can try to reproduce your error later.

from objectness.

NicolaCovallero avatar NicolaCovallero commented on September 23, 2024

Hi, thanks for reply.

Your are right. The problem is due to the OpenCV 3. I uninstalled it today (working on another project), and now that you answered me I tried to compile the Objectness code and it compiled correctly. So the problem was definetively opencv 3.

I was not able to figure it out from that error message.

from objectness.

bittnt avatar bittnt commented on September 23, 2024

It seems to be something to do with the image encoding libraries. Any error messages have you got?

from objectness.

rockrush avatar rockrush commented on September 23, 2024

On opencv 3.x, add "opencv_imgcodecs" into last line of CMakeLists.txt, just before "EXTERNAL_LIBS"(the order doesn't matter).

from objectness.

RyanCV avatar RyanCV commented on September 23, 2024

It works, thanks @rockrush . But how to solve the following problem:
OpenCV Error: Assertion failed (matRead(_modelName + ".xP", xP1f) && matRead(_modelName + ".xN", xN1f)) in trainStageI, file /media/BING_Linux/Src/Objectness.cpp, line 555
terminate called after throwing an instance of 'cv::Exception'
what(): /media/BING_Linux/Src/Objectness.cpp:555: error: (-215) matRead(_modelName + ".xP", xP1f) && matRead(_modelName + ".xN", xN1f) in function trainStageI

I download the OpenCV readable of VOC 2007 annotation could be download from: http://mmcheng.net/mftp/Data/VOC2007_AnnotationsOpenCV_Readable.7z. However, after unzip this file, it said wrong compress method. Have you ever met this problem?

from objectness.

June01 avatar June01 commented on September 23, 2024

@RyanCV @rockrush I also have this problem, how to solve the following problem:
OpenCV Error: Assertion failed (matRead(_modelName + ".xP", xP1f) && matRead(_modelName + ".xN", xN1f)) in trainStageI, file /media/BING_Linux/Src/Objectness.cpp, line 555
terminate called after throwing an instance of 'cv::Exception'
what(): /media/BING_Linux/Src/Objectness.cpp:555: error: (-215) matRead(_modelName + ".xP", xP1f) && matRead(_modelName + ".xN", xN1f) in function trainStageI

Thank you very much for your help!

from objectness.

Related Issues (15)

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.