Giter Club home page Giter Club logo

Comments (16)

stephanecharette avatar stephanecharette commented on August 18, 2024

You copied the message that says that make failed, but you failed to copy the error message that must have been printed before that. What is the actual error you are getting?

from darkmark.

robotaiguy avatar robotaiguy commented on August 18, 2024

My apologies...this is the error that occurred:
/home/skynet/DarkMark/src-launcher/VideoImportWindow.cpp: In constructor ‘dm::VideoImportWindow::VideoImportWindow(const string&, const VStr&)’:
/home/skynet/DarkMark/src-launcher/VideoImportWindow.cpp:150:65: error: ‘CAP_PROP_CODEC_PIXEL_FORMAT’ is not a member of ‘cv::VideoCaptureProperties’
const uint32_t format = cap.get(cv::VideoCaptureProperties::CAP_PROP_CODEC_PIXEL_FORMAT );
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/skynet/DarkMark/src-launcher/VideoImportWindow.cpp:172:25: error: ‘class cv::VideoCapture’ has no member named ‘getBackendName’
ss << "Using " << cap.getBackendName() << " to read the video file "" << shortname << ""." << std::endl
^~~~~~~~~~~~~~

from darkmark.

ohlr avatar ohlr commented on August 18, 2024

Just guessing:
have you installed darkhelp and darknet prior to the installation of darkmark?
https://github.com/stephanecharette/DarkHelp/#building-darknet

from darkmark.

robotaiguy avatar robotaiguy commented on August 18, 2024

I have both darkhelp and darknet installed.

from darkmark.

stephanecharette avatar stephanecharette commented on August 18, 2024

The error you report is from something that is part of OpenCV, not something in DarkMark. So you must not have installed OpenCV correctly, or you must be using a different operating system. Please share the exact installation steps you are using, including the version number, how it was installed, as well as the operating system including the version number.

from darkmark.

robotaiguy avatar robotaiguy commented on August 18, 2024

For C++: pkg-config --modversion opencv
3.2.0
For python: >>> cv2.version
'4.4.0'
I'm using Ubuntu 18.04.
I have DarkHelp installed, because I used it with my own application for yolo detection.
And I have Darknet installed (Alexey's latest Yolo V4)

Should I try to update my opencv-dev for the system?

from darkmark.

stephanecharette avatar stephanecharette commented on August 18, 2024

Something is not right. Did you build OpenCV by hand, or with the sudo apt-get install libopencv-dev command?

from darkmark.

robotaiguy avatar robotaiguy commented on August 18, 2024

from darkmark.

stephanecharette avatar stephanecharette commented on August 18, 2024

I booted up my old Ubuntu 18.04 VM and immediately ran into the same issues.

/home/stephane/src/DarkMark/src-launcher/VideoImportWindow.cpp:150:65: error: ‘CAP_PROP_CODEC_PIXEL_FORMAT’ is not a member of ‘cv::VideoCaptureProperties’
   const uint32_t format   = cap.get(cv::VideoCaptureProperties::CAP_PROP_CODEC_PIXEL_FORMAT );
                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/stephane/src/DarkMark/src-launcher/VideoImportWindow.cpp:172:25: error: ‘class cv::VideoCapture’ has no member named ‘getBackendName’
   ss << "Using " << cap.getBackendName() << " to read the video file \"" << shortname << "\"." << std::endl
                         ^~~~~~~~~~~~~~

So this is specific to the old version of OpenCV in Ubuntu 18.04 versus OpenCV in Ubuntu 20.04.

  • Ubuntu 18.04 uses OpenCV v3.2.0
  • Ubuntu 20.04 uses OpenCV v4.2.0

I will come up with a fix so DarkMark can be built cleanly on Ubuntu 18.04 and update this ticket once that is done.

from darkmark.

stephanecharette avatar stephanecharette commented on August 18, 2024

@robotwhispering Scott, please try the latest version and see if that fixes the problem. v1.4.10-1 is now building correctly for me on Ubuntu 18.04.

from darkmark.

stephanecharette avatar stephanecharette commented on August 18, 2024

No update in 2 months. Closing.

from darkmark.

zeljkomarinkovic avatar zeljkomarinkovic commented on August 18, 2024

Sorry for bringing this up, but i have same issue. Tried to build DarkMark on Jetson nano, ubuntu 18.04. Darknet and DarkHelp works fine

from darkmark.

stephanecharette avatar stephanecharette commented on August 18, 2024

You are trying to build DarkMark on a Jetson nano?

from darkmark.

zeljkomarinkovic avatar zeljkomarinkovic commented on August 18, 2024

Yes, that's correct

from darkmark.

stephanecharette avatar stephanecharette commented on August 18, 2024

Pushed a change tonight to get DarkMark building with the old version of OpenCV installed on Jetson Nano devices. Please run git pull to get the latest changes and let me know if that fixed it.

from darkmark.

zeljkomarinkovic avatar zeljkomarinkovic commented on August 18, 2024

Works fine now, thanks

from darkmark.

Related Issues (20)

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.