How to Setup OpenCV for C++ on Visual Studio Code (MacOS)

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 40

  • @BenOgorek
    @BenOgorek 11 месяцев назад +1

    Woo hoo!! 🎉 For future viewers, the tutorial code is the first link in the description, and you've got to bring your own mp4

  • @itheblackwolfofmyfamily
    @itheblackwolfofmyfamily 10 месяцев назад +1

    Concise and easy to understand. I salute you, big bro. Keep up the good work.

  • @TheOtherNEO
    @TheOtherNEO Год назад

    Great video. Been trying since the morning to find instructions that actually worked. This is the only one that worked as promised.
    Used to work with C++ and OpenCV on Linux and Windows. Only recently started on MacOS so it is taking time to get the same things working.

  • @freewalker208
    @freewalker208 Год назад +1

    Many thanks! This save my day!

  • @jasnarmstrng
    @jasnarmstrng 4 месяца назад

    Really helpful. Thanks E!

  • @rukshanj.senanayaka1467
    @rukshanj.senanayaka1467 Год назад

    Works with Mac M1 Perfect! have been searching for this a lot!

  • @prajwal6379
    @prajwal6379 8 месяцев назад

    thank you
    I was trying From last 2 months

  • @tapahni
    @tapahni 3 месяца назад

    Holy shit there is a video on this. Thanks so much

  • @sanvijain2641
    @sanvijain2641 5 месяцев назад

    Helped a lottt..thankyou!

  • @relax_tube8458
    @relax_tube8458 Год назад

    Clear and easy to follow. Thanks !!!

  • @kanepickrel9388
    @kanepickrel9388 Год назад

    great video, thanks so much

  • @yuecheng1992
    @yuecheng1992 Год назад

    This is helpful, thanks!

  • @IsamAlHassan-t2e
    @IsamAlHassan-t2e 10 месяцев назад +1

    unfortunately it did not solve my problems on MacBook Pro

  • @ikechukwumichael1383
    @ikechukwumichael1383 Год назад

    A billion like bro. First video to work for me. Could you do tensorflow cpp for mac also? thanks

    • @elliotarledge
      @elliotarledge  Год назад

      i dont do too much cpp anymore, likely the same process (download some file, make a cpp folder, write a make file that includes tensorflow, build, compile)

  • @mikkkkkeyyyyy
    @mikkkkkeyyyyy 10 месяцев назад

    thanks!!

  • @Peymannazer
    @Peymannazer Год назад

    Perfecttttttttttt

  • @ghostoftsushimaps4150
    @ghostoftsushimaps4150 Год назад +1

    Thanks a lot. As you said it is not available at other places. I am beginner to cpp, not to coding though. One question that can't we generate object files directly without going through this make and all procedure.

    • @elliotarledge
      @elliotarledge  Год назад

      You're welcome, I'm glad my tutorial was helpful to you!
      To answer your question, it is possible to generate object files directly without using a Makefile. However, using a Makefile provides a structured and automated way to compile and link your code, which can save you a lot of time and effort, especially as your project grows in complexity.
      In addition, Makefiles allow you to easily specify dependencies between files and only re-compile the necessary files when changes are made, which can be a big time-saver.
      That being said, if you prefer to generate object files manually, you can do so using a command like this `g++ -c main.cpp -o main.o`
      This will compile the main.cpp file and generate the main.o object file. You would then need to repeat this command for each source file in your project and link them together using another command.
      I hope this helps! Let me know if you have any other questions or concerns.

  • @ramavathjagadeesh1030
    @ramavathjagadeesh1030 Год назад +1

    hey its giving an zsh: command not found: cmake

    • @elliotarledge
      @elliotarledge  Год назад

      Wouldn't know maybe look at stackoverflow or use gpt4

  • @black_n_brown
    @black_n_brown Год назад

    1 Vote up. Make video on how to download opencv using brew also compiling and running on terminal without linking issues! But overall well done!

    • @unev
      @unev Год назад +1

      I just typed 'brew install opencv' in the terminal and it has worked for me. I also installed cmake utility in the similar way.

    • @black_n_brown
      @black_n_brown Год назад +1

      ​@@unev ooo ok. Seems like I may have tinkered a bit too much with my mac. Thanks tho 🙏

  • @Sir_Horus_ow
    @Sir_Horus_ow 9 месяцев назад

    When using the command "cmake .." it appears "zsh: command not found: cmake". ¿Why is that happening?

    • @elliotarledge
      @elliotarledge  9 месяцев назад

      first, make sure cmake is installed with `cmake -version` you could plug your errors into stackoverflow or ChatGPT and get a reasonable answer.

    • @Sir_Horus_ow
      @Sir_Horus_ow 9 месяцев назад

      @@elliotarledge I fixed that and finished this tutorial. I liked it. Thanks for the help!

    • @areggevorgyan1587
      @areggevorgyan1587 5 месяцев назад

      @@Sir_Horus_ow Im getting the same error how did you fix it

    • @sanvijain2641
      @sanvijain2641 5 месяцев назад

      hey..I'm facing the same issue...could you tell how did you fix it?

  • @bao-chaunguyen2344
    @bao-chaunguyen2344 Год назад

    I got a "Error: Could not open video file" is this the error referred to about the absolute reference? If so, how would I make it one? Thanks!

    • @elliotarledge
      @elliotarledge  Год назад

      You could try that. Absolute reference means the entire path whereas relative can go from the cmd directory into sub directories. for example abs reference: C:/User/files/main.cpp. if you are in the files directory in the terminal you can use relative path /main.cpp. i get errors like this in python all the time haha

    • @kloselu4961
      @kloselu4961 Год назад

      @@elliotarledge I'm lost....so do change the file's path?

  • @m.4074
    @m.4074 Год назад

    How do I get rid of the include error?

    • @elliotarledge
      @elliotarledge  Год назад

      I'm not sure without more context, can you provide the error you are receiving and the timestamp in which it happened in the video for you? Thanks.

    • @m.4074
      @m.4074 Год назад

      @@elliotarledge
      On last scene you have the same error. The red underline of the include statement. My program compiles with Make but VS Code tells me, that the open CV header isn’t found

    • @elliotarledge
      @elliotarledge  Год назад

      @@m.4074 the point is too compile and run with cmake. If I were I'd just make sure all the necessary dependencies are installed and your env variables are correct. Those are the only errors I've gotten with cmake (I'm not super experiences with c/c++)

    • @m.4074
      @m.4074 Год назад

      @@elliotarledge ok thanks!

    • @jolen217
      @jolen217 Год назад

      This solution works for me: 1) updated c_cpp_properties.json file by adding "configurationProvider": "ms-vscode.cmake-tools"; 2) ran CMake: Configure command.