Installing OpenCV libraries

asked 2019-03-08 00:14:08 -0500

shawn gravatar image

updated 2019-03-08 03:16:51 -0500

I had issue installing OpenCV libraries because I did not have a system path. May I know how to finalise the installation so that I can program object detection in visual studio?

edit retag flag offensive close merge delete



Now I can understand your question. what do you mean "I did not have a system path. "? how did you install opencv?

LBerger gravatar imageLBerger ( 2019-03-08 02:17:13 -0500 )edit

I did installation using pre-built libraries. I have downloaded OpenCV 3.4.3 but I could not finalize installation by setting environment variable. When I typed "setx -m OPENCV_DIR D:\OpenCV\Build\x64\vc14" in command window, it said access to the path registry is denied. Plus I went to Control Panel > System Security > System > Advanced System Settings > Environment Variables > System variable however I could not find path in system variables. So may I know what to do about it?

shawn gravatar imageshawn ( 2019-03-08 02:33:16 -0500 )edit

I don't understand "I could not find path in system variables" : you should find it

LBerger gravatar imageLBerger ( 2019-03-08 02:44:50 -0500 )edit

I still can't find it. I have sent OpenCV admin the video via email. You'll get what I mean. In addition, I could not upload attachment in this forum.

shawn gravatar imageshawn ( 2019-03-08 03:09:42 -0500 )edit

I have sent OpenCV admin the video via email.

that won't work. if you encounter a problem, collect TEXT information, and show us. please no videos or screenshots !

berak gravatar imageberak ( 2019-03-09 07:14:52 -0500 )edit

These are the variables I have found under system variables of the environment variables

  • ComSpec(%SystemRoot%\system32\cmd.exe)
  • DriverData(C:\Windows\System32\Drivers\DriverData)
  • KICAD_PTEMPLATES(C:\Program Files (x86)\KiCad\share\kicad\template)
  • MEmu_Path(C:\Program Files (x86)\Microvirt)
  • PSModulePath - (%ProgramFiles%\WindowsPowerShell\Modules) - (%SystemRoot%\system32\WindowsPowerShell\v1.0\Modules)
shawn gravatar imageshawn ( 2019-03-10 06:26:02 -0500 )edit

open a console windows and type set you should see path variables

LBerger gravatar imageLBerger ( 2019-03-10 11:15:24 -0500 )edit

okay. I found path variables but it is under user variable

shawn gravatar imageshawn ( 2019-03-10 11:30:02 -0500 )edit