Passing arguments to train_HOG.cpp [closed]

asked 2018-02-09 12:56:43 -0600

cubud gravatar image

updated 2018-02-09 16:11:58 -0600

How do I pass these (http://answers.opencv.org/question/96...) arguments to train_HOG.cpp?

After compiling this https://github.com/opencv/opencv/blob... in VS2017 I get this output:

'Project1.exe' (Win32): Loaded 'C:\Users\sephr\source\repos\Project1\x64\Release\Project1.exe'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\msvcp140.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140.dll'. Symbols loaded.
'Project1.exe' (Win32): Unloaded 'C:\Windows\System32\vcruntime140.dll'
'Project1.exe' (Win32): Loaded 'C:\opencv\build\x64\vc14\bin\opencv_world340.dll'. Cannot find or open the PDB file.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\comdlg32.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.16299.192_none_887f70824ab5b0de\comctl32.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\msvfw32.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\concrt140.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\avicap32.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\winmm.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\winmm.dll'. Symbols loaded.
'Project1.exe' (Win32): Unloaded 'C:\Windows\System32\winmm.dll'
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\winmmbase.dll'. Symbols loaded.
'Project1.exe' (Win32): Loaded 'C:\Windows\System32\winmmbase.dll'. Symbols loaded.
'Project1.exe ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-10-13 14:25:27.289125

Comments

In future postings, please highlight any preformatted text and click the 101010 button - this prevents line folding and variable width font reformatting. I just did this for you this time.

opalmirror gravatar imageopalmirror ( 2018-02-09 16:10:22 -0600 )edit

It looks like the 'opencv_world' package symbols didn't load. Specifically:

'Project1.exe' (Win32): Loaded 'C:\opencv\build\x64\vc14\bin\opencv_world340.dll'. Cannot find or open the PDB file.

As a workaround I tend to configure or link without opencv_world built.

opalmirror gravatar imageopalmirror ( 2018-02-09 16:10:36 -0600 )edit

So I found a method to install openCV with cMake and it builds without the 'Project1.exe' (Win32): Loaded 'C:\opencv\build\x64\vc14\bin\opencv_world340.dll'. Cannot find or open the PDB file. For some reason, the terminal window just closes after I click "Local Windows Debugger". Am I suppose to be running this some other way?

cubud gravatar imagecubud ( 2018-02-09 16:13:26 -0600 )edit

Hoping someone else may jump in here. I'd love to help more, but I'm not a Windows developer, primarily I use Linux.

opalmirror gravatar imageopalmirror ( 2018-02-09 16:42:52 -0600 )edit

Much Appreciated. Ultimately I want to use the trained HOG on my raspPi. I usually run OpenCV with Python from the Pi's command line. Maybe there's an easier way to just do this with the Pi since it's Linux based.

cubud gravatar imagecubud ( 2018-02-09 17:05:37 -0600 )edit