Mohamadhasan
Mohamadhasan
  • Видео 4
  • Просмотров 35 491
How to set up C++ / CMake on Windows | VSCode
Timestamps:
0:00 Intro
0:43 installing gcc
4:57 Setting up VSCode
7:38 Installing CMake
Просмотров: 616

Видео

Object-Detection by converting color space to HSV
Просмотров 277Год назад
In this video we use OpenCV functions to convert image color space from RGB to HSV to do Object-Detection. No Deep-Neural-Network (DNN) has been used and codes are written in c . Codes: github.com/mhmokhtarabadi/RUclipsCodes/tree/main/ObjectDetection_HSVConversion_v1
How to set up OpenCV - C++ library on Windows | VSCode
Просмотров 35 тыс.Год назад
In this video, I show how to set up OpenCV - C library on Windows. This video helps you if you want to start a Computer-Vision journey with OpenCV in C programming language. This video is the basis of my future videos about Computer-Vision projects.
Force Wanted: a Force-Feedback Device for Immersion into the Virtual World
Просмотров 923 года назад
Force Wanted is a Force-Feedback Device for Immersion into the Virtual World

Комментарии

  • @Uper-n9l
    @Uper-n9l 7 дней назад

    did everything perfectly but still errors

    • @hacimwalker
      @hacimwalker День назад

      yeah i hate cpp

    • @hacimwalker
      @hacimwalker День назад

      close it and open it againt and use run button in below not top of the page but i still hate it cpp

  • @riteshjoiya1546
    @riteshjoiya1546 Месяц назад

    bro i am not able to run my code directly by clicking run on the top right corner of vs code why is it.

  • @taufiknurh8089
    @taufiknurh8089 Месяц назад

    opencv2/opencv.hpp: No such file or directory I have followed according to the video but why is it like this

  • @taufiknurh8089
    @taufiknurh8089 Месяц назад

    "opencv2/opencv.hpp: No such file or directory" why this erorr?

  • @UnknowGdev
    @UnknowGdev 2 месяца назад

    Hi, I would like to discuss something with you. Could you please provide a way for me to contact you?

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

    i cant download the file he said virus detected

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

    It is not working , its show " code can't be support".

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

    Merci 🙏

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

    Excellent.

  • @joeywang2024
    @joeywang2024 6 месяцев назад

    thanks you

  • @cuocsongmuonmau9631
    @cuocsongmuonmau9631 7 месяцев назад

    I have an error. Thanks u alots but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be NOTFOUND

    • @green_lucozade
      @green_lucozade 6 месяцев назад

      i have the same problem, did you sort it out yet?

    • @SalmanShams-vd9hw
      @SalmanShams-vd9hw 4 месяца назад

      @@green_lucozade same error

    • @OleksyKarol
      @OleksyKarol 2 месяца назад

      @@SalmanShams-vd9hw I have the same issue, did you manage to resolve the problem?

    • @SalmanShams-vd9hw
      @SalmanShams-vd9hw 2 месяца назад

      @@OleksyKarol ya, but it was so difficult, also not sure which thing worked.

  • @UnlimitedAdventures_
    @UnlimitedAdventures_ 7 месяцев назад

    he does not work for me. Can we have a session so that you can have a look to my environment ?

    • @MohamadhasanM
      @MohamadhasanM 7 месяцев назад

      Can you explain the problem more detailed so maybe I can help you here.

  • @AyushSingh-fu1yp
    @AyushSingh-fu1yp 8 месяцев назад

    what command does he type at 4:25 which gets the output

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

      If you install CMake tool extension in VSCode, when you save your CMakeLists.txt file, it will configure your project automatically. In short, I just saved the file.

    • @AyushSingh-fu1yp
      @AyushSingh-fu1yp 7 месяцев назад

      @cakeprogressS this might help

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

      ​@@MohamadhasanM I was wondering the same, and I don't seem te get that build-folder after saving the file (also tried restarting VS Code). I was hoping you could help me. I think I followed all the other steps correctly. Also I don't have the option to open a folder in VS Studio, so I made those files myself and opened them afterwards in VS Code, but I don't see how this could cause problems. edit: I removed a part. Initialy, there were some red lines, but I forgot I had my spell checker on.

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

    thank you for your teaching ,i have a question, if i have no visual studio on my pc,this method seems useless.But we use vs during this teaching , why not set up opencv c++ on vs directly?

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

      Thank you for watching, mentioning that you should have VS on you windows is not necessarily correct and I apologized for that, but at the end of the day you need a compiler (say MinGW-gcc). I am preparing a video about this and will update it soon, but meanwhile you can search for installing gcc on windows instead of VS. Hope this helps.

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

      Thank you, and looking forward to your new video.i used to set up opencv c++ on vs, but i find that vs is two big and code writen on vs can not run directly on another platform like ubuntu, so, i give up using vs.i wonder, what is the difference when we use MinGW or vs?@@MohamadhasanM

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

    Literally spent hours trying to do what you just did... you just gained a follower.

    • @AyushSingh-fu1yp
      @AyushSingh-fu1yp 8 месяцев назад

      what command does he type at 4:25 which gets the output

    • @avdiiseni8186
      @avdiiseni8186 7 месяцев назад

      @@AyushSingh-fu1yp CTRL + SHIFT + P

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

    Thank you so much!

    • @AyushSingh-fu1yp
      @AyushSingh-fu1yp 8 месяцев назад

      what command does he type at 4:25 which gets the output

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

      @@AyushSingh-fu1ypdon't know the shortcut but he's invoking the build option, save the cmake script and click on the build option down.

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

    how to add its extra modules using vs code only? i am stuck at this

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

      In this case I guess you have to build opencv in window instead of downloading it's pre-built libraries. You can specify extra module path in your build options.

  • @apoorvsharma6932
    @apoorvsharma6932 11 месяцев назад

    fatal error: opencv2/opencv.hpp: No such file or directory

    • @fengsuave8732
      @fengsuave8732 11 месяцев назад

      Did you manage to solve it? I'm having the same thing.

  • @miathresh7641
    @miathresh7641 11 месяцев назад

    When I run file face_train.py, i have an error that "Unknown C++ exception from OpenCV code", how can I fix it???

  • @lahoribot9238
    @lahoribot9238 11 месяцев назад

    not working for me showing error in CMakelist.txt "find_package(OpenCVConfig REQUIRED)"

    • @MohamadhasanM
      @MohamadhasanM 11 месяцев назад

      The name of package that cmake should find is OpenCV. Try find_package(OpenCV REQUIRED)

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

      I try this but I cant solve my problem right now how can ı solve this problem bro I need help@@MohamadhasanM

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

    ERRORS: this declaration has no storage class or type specifier, identifier "VERSION" is undefined, expected a ")", expected a ";". Code: cmake_minimum_required(VERSION 3.10) project(medirdistancia) set(OpenCV_DIR C:/opencv/build) find_package(OpenCV REQUIRED) add_executable(${PROJECT_NAME} SRC/main.cpp) target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS})

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

    Can you run OpenCv with c++17? I've only found tutorials using an x86 build

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

    Great video, helped me troubleshoot problems.

    • @AyushSingh-fu1yp
      @AyushSingh-fu1yp 8 месяцев назад

      what command does he type at 4:25 which gets the output

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

      He did not type anything@@AyushSingh-fu1yp

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

    spent 12 hours trying to do what wou explained in 5 minutes, i genuinely love you

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

      good to know that im not alone with the same result:)

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

      @@elizavetaterente2127 good to know that im not alone with the same result.... why is it fkin unique for every god damn pc 8 hours in and still error...

    • @AyushSingh-fu1yp
      @AyushSingh-fu1yp 8 месяцев назад

      what command does he type at 4:25 which gets the output

    • @CakeprogressS
      @CakeprogressS 7 месяцев назад

      @@AyushSingh-fu1yp have you figured it out?

    • @AyushSingh-fu1yp
      @AyushSingh-fu1yp 7 месяцев назад

      unfortunately, no @@CakeprogressS

  • @Phantom-el6oe
    @Phantom-el6oe Год назад

    Cmake file throws error at find_package

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

      try deleting generated build folder and use a compiler for another architecture (like x86, x64). let me know if it works.

    • @Phantom-el6oe
      @Phantom-el6oe Год назад

      @@MohamadhasanM It turned out that OpenCV has builds only up to MSVC v17 while I heave v19

    • @Phantom-el6oe
      @Phantom-el6oe Год назад

      @@MohamadhasanM Update: I've been messing around and managed to get CMakeList not error out, but main.cpp still can't include opencv2

    • @Phantom-el6oe
      @Phantom-el6oe Год назад

      @@MohamadhasanM Update2: There is something wrong with cmake file included in OpenCV, I just compiled your code via command line and everything worked fine Here is command line solution: g++ -o main main.cpp -IC:/opencv/build/include -LC:/opencv/build/x64/vc16/lib

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

      Check the syntax maybe? Especially this line: target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS})

  • @Ht-60
    @Ht-60 Год назад

    FINALLY SOMEONE WHO DOES NOT WASTE 50 MINUTES OF MY STUPID LIFE ❤

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

    system variables has to be changed instead of user variables

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

    help me bro

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

    hwlp me * Executing task: C:\MinGW\bin\g++.exe Main.cpp -o c:\Users\cortx\Downloads\obj\src\output\Main.exe -Wall -Wextra -g3 Main.cpp:2:30: fatal error: opencv2/opencv.hpp: No such file or directory #include <opencv2/opencv.hpp> ^ compilation terminated. * The terminal process "C:\MinGW\bin\g++.exe 'Main.cpp', '-o', 'c:\Users\cortx\Downloads\obj\src\output\Main.exe', '-Wall', '-Wextra', '-g3'" terminated with exit code: 1. * Terminal will be reused by tasks, press any key to close it. why????

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

      i do exaclty like you did

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

      Email me your CMakeLists.txt and Main.cpp codes and let me see if I can find the problem. mh.mokhtarabadi@gmail.com

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

      did u sovle it? i need help

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

    That's amazing