Перейти к содержимому
Compvision.ru
nikrubab

Подсчет людей в кадре

Recommended Posts

Всем доброго времени суток!

Такая задача:

Есть программа ,которая обнаруживает людей на видео .Ну и на фото тоже.В основе программы openCV.

Допустим в кадре находяться 10 человек,все они обнаружены программой.

Вот как их посчитать теперь?

Допустим взять кадр из видео-потока,и вычислить координаты,на которых расположены распознанные лица. И потом сравнивать координаты между собой (например у первого лица координаты верхнего левого и нижнего правого углов 130 и 110 ,для второго 100 и 90 и тд)и добавить счетчик.

Или может как то проще это можно сделать?

программа с которой работаю находиться тут sqface

там же и пример фото с обнаруженными на ней людьми

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Всем доброго времени суток!

Такая задача:

Есть программа ,которая обнаруживает людей на видео .Ну и на фото тоже.В основе программы openCV.

Допустим в кадре находяться 10 человек,все они обнаружены программой.

Вот как их посчитать теперь?

Допустим взять кадр из видео-потока,и вычислить координаты,на которых расположены распознанные лица. И потом сравнивать координаты между собой (например у первого лица координаты верхнего левого и нижнего правого углов 130 и 110 ,для второго 100 и 90 и тд)и добавить счетчик.

Или может как то проще это можно сделать?

программа с которой работаю находиться тут sqface

там же и пример фото с обнаруженными на ней людьми

У вас должен быть список координат ROI найденных лиц? слить ROI который принадлежат одним и тем-же лицам и будет вам размер вектора соотвествовать числу лиц в кадре...

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

У вас должен быть список координат ROI найденных лиц? слить ROI который принадлежат одним и тем-же лицам и будет вам размер вектора соотвествовать числу лиц в кадре...

а можно подробнее?

я просто не так давно начал вникать в эту тему и был бы рад учиться у знающих :)

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

легче думаю использовать код просто из opencv, там как раз на выходе отфильтрованный уже вектор ректов.

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

легче думаю использовать код просто из opencv, там как раз на выходе отфильтрованный уже вектор ректов.

а можете пояснить что значит вектор ректов?

и как это можно сделать?

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

http://opencv.willowgarage.com/wiki/FaceDetection

но тут старый интерфейс

// Loop the number of faces found.

for( i = 0; i < (faces ? faces->total : 0); i++ )

или для facedetect.cpp который лежит в samples/c/

for( vector<Rect>::const_iterator nr = nestedObjects.begin(); nr != nestedObjects.end(); nr++ )

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

http://opencv.willowgarage.com/wiki/FaceDetection

но тут старый интерфейс

или для facedetect.cpp который лежит в samples/c/

за мысли спасибо!

вот только теперь возможно глупый,но все же вопрос.

как откомпилировать facedetect.cpp ?

пробовал создавать новый проект,прописывал библиотеки все по инструкции.пробовал заменять код в рабочем приложении на код из facedetect.при компиляции консоль выскакивает,там быстро идет текст и пропадает.

в output пишет следующее:

The program '[3960] openCV_FaceTracking.exe: Native' has exited with code -1 (0xffffffff).

UPD

откомпилировал.заработало.только почему то изображение с вебкамеры подвисает изрядно.и глаза плохо распознаются.

кто может объяснить что это значит?

'fd.exe': Loaded 'C:\Users\Dima Baburkin\Documents\Visual Studio 2010\Projects\fd\Debug\fd.exe', Symbols loaded.

'fd.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\opencv\build\x86\vc10\bin\opencv_core243d.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\opencv\build\x86\vc10\bin\opencv_imgproc243d.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\opencv\build\x86\vc10\bin\opencv_highgui243d.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\opencv\build\x86\vc10\bin\opencv_objdetect243d.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\msvcp100d.dll', Symbols loaded.

'fd.exe': Loaded 'C:\Windows\System32\msvcr100d.dll', Symbols loaded.

'fd.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\ole32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.9200.16384_none_bf100cd445f4d954\comctl32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\avifil32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\msvfw32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\avicap32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\combase.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\sechost.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\winmm.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\msacm32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\shell32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\version.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\winmmbase.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\shlwapi.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\imm32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\msctf.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\cryptbase.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\bcryptprimitives.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\uxtheme.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Program Files\Punto Switcher\pshook.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\imagehlp.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\SHCore.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\clbcatq.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\devenum.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\setupapi.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\cfgmgr32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\devobj.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\ntmarta.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\wintrust.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\crypt32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\msasn1.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\msdmo.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\qcap.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\quartz.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\dwmapi.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\ksproxy.ax', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\ksuser.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\d3d9.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\vidcap.ax', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\Kswdmcap.ax', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\mfc42.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\odbc32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\qedit.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\comdlg32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.9200.16518_none_ba1cf6b7e09f1918\GdiPlus.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\ddraw.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\dciman32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\nvd3dum.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\psapi.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\powrprof.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\d3dim700.dll', Cannot find or open the PDB file

'fd.exe': Unloaded 'C:\Windows\System32\powrprof.dll'

'fd.exe': Unloaded 'C:\Windows\System32\psapi.dll'

'fd.exe': Unloaded 'C:\Windows\System32\nvd3dum.dll'

'fd.exe': Loaded 'C:\Windows\System32\nvd3dum.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\psapi.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\powrprof.dll', Cannot find or open the PDB file

'fd.exe': Unloaded 'C:\Windows\System32\powrprof.dll'

'fd.exe': Unloaded 'C:\Windows\System32\psapi.dll'

'fd.exe': Unloaded 'C:\Windows\System32\nvd3dum.dll'

'fd.exe': Loaded 'C:\Program Files\K-Lite Codec Pack\Filters\ffdshow\ffdshow.ax', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9200.16384_none_893961408605e985\comctl32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\dinput.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\sspicli.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Program Files\K-Lite Codec Pack\Filters\vsfilter.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\winspool.drv', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\wininet.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\iertutil.dll', Cannot find or open the PDB file

The thread 'Win32 Thread' (0xc4c) has exited with code 0 (0x0).

'fd.exe': Loaded 'C:\Windows\System32\msyuv.dll', Cannot find or open the PDB file

The thread 'Win32 Thread' (0x110c) has exited with code -1073741510 (0xc000013a).

The thread 'Win32 Thread' (0xf04) has exited with code -1073741510 (0xc000013a).

The thread 'Win32 Thread' (0xfb8) has exited with code -1073741510 (0xc000013a).

The thread 'Win32 Thread' (0xc24) has exited with code -1073741510 (0xc000013a).

The thread 'Win32 Thread' (0x15a4) has exited with code -1073741510 (0xc000013a).

The thread 'Win32 Thread' (0x1508) has exited with code -1073741510 (0xc000013a).

The thread 'Win32 Thread' (0x934) has exited with code -1073741510 (0xc000013a).

The thread 'Win32 Thread' (0x9d8) has exited with code -1073741510 (0xc000013a).

The thread 'Win32 Thread' (0x1728) has exited with code -1073741510 (0xc000013a).

The thread 'Win32 Thread' (0x1038) has exited with code -1073741510 (0xc000013a).

The program '[4348] fd.exe: Native' has exited with code -1073741510 (0xc000013a).

Изменено пользователем nikrubab

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

за мысли спасибо!

вот только теперь возможно глупый,но все же вопрос.

как откомпилировать facedetect.cpp ?

пробовал создавать новый проект,прописывал библиотеки все по инструкции.пробовал заменять код в рабочем приложении на код из facedetect.при компиляции консоль выскакивает,там быстро идет текст и пропадает.

в output пишет следующее:

The program '[3960] openCV_FaceTracking.exe: Native' has exited with code -1 (0xffffffff).

UPD

откомпилировал.заработало.только почему то изображение с вебкамеры подвисает изрядно.и глаза плохо распознаются.

кто может объяснить что это значит?

'fd.exe': Loaded 'C:\Users\Dima Baburkin\Documents\Visual Studio 2010\Projects\fd\Debug\fd.exe', Symbols loaded.

'fd.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\opencv\build\x86\vc10\bin\opencv_core243d.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\opencv\build\x86\vc10\bin\opencv_imgproc243d.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\opencv\build\x86\vc10\bin\opencv_highgui243d.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\opencv\build\x86\vc10\bin\opencv_objdetect243d.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\msvcp100d.dll', Symbols loaded.

'fd.exe': Loaded 'C:\Windows\System32\msvcr100d.dll', Symbols loaded.

'fd.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\ole32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.9200.16384_none_bf100cd445f4d954\comctl32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\avifil32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\msvfw32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\avicap32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\combase.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\sechost.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\winmm.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\msacm32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\shell32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\version.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\winmmbase.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\shlwapi.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\imm32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\msctf.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\cryptbase.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\bcryptprimitives.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\uxtheme.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Program Files\Punto Switcher\pshook.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\imagehlp.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\SHCore.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\clbcatq.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\devenum.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\setupapi.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\cfgmgr32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\devobj.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\ntmarta.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\wintrust.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\crypt32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\msasn1.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\msdmo.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\qcap.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\quartz.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\dwmapi.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\ksproxy.ax', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\ksuser.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\d3d9.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\vidcap.ax', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\Kswdmcap.ax', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\mfc42.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\odbc32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\qedit.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\comdlg32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.9200.16518_none_ba1cf6b7e09f1918\GdiPlus.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\ddraw.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\dciman32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\nvd3dum.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\psapi.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\powrprof.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\d3dim700.dll', Cannot find or open the PDB file

'fd.exe': Unloaded 'C:\Windows\System32\powrprof.dll'

'fd.exe': Unloaded 'C:\Windows\System32\psapi.dll'

'fd.exe': Unloaded 'C:\Windows\System32\nvd3dum.dll'

'fd.exe': Loaded 'C:\Windows\System32\nvd3dum.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\psapi.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\powrprof.dll', Cannot find or open the PDB file

'fd.exe': Unloaded 'C:\Windows\System32\powrprof.dll'

'fd.exe': Unloaded 'C:\Windows\System32\psapi.dll'

'fd.exe': Unloaded 'C:\Windows\System32\nvd3dum.dll'

'fd.exe': Loaded 'C:\Program Files\K-Lite Codec Pack\Filters\ffdshow\ffdshow.ax', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9200.16384_none_893961408605e985\comctl32.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\dinput.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\sspicli.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Program Files\K-Lite Codec Pack\Filters\vsfilter.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\winspool.drv', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\wininet.dll', Cannot find or open the PDB file

'fd.exe': Loaded 'C:\Windows\System32\iertutil.dll', Cannot find or open the PDB file

The thread 'Win32 Thread' (0xc4c) has exited with code 0 (0x0).

'fd.exe': Loaded 'C:\Windows\System32\msyuv.dll', Cannot find or open the PDB file

The thread 'Win32 Thread' (0x110c) has exited with code -1073741510 (0xc000013a).

The thread 'Win32 Thread' (0xf04) has exited with code -1073741510 (0xc000013a).

The thread 'Win32 Thread' (0xfb8) has exited with code -1073741510 (0xc000013a).

The thread 'Win32 Thread' (0xc24) has exited with code -1073741510 (0xc000013a).

The thread 'Win32 Thread' (0x15a4) has exited with code -1073741510 (0xc000013a).

The thread 'Win32 Thread' (0x1508) has exited with code -1073741510 (0xc000013a).

The thread 'Win32 Thread' (0x934) has exited with code -1073741510 (0xc000013a).

The thread 'Win32 Thread' (0x9d8) has exited with code -1073741510 (0xc000013a).

The thread 'Win32 Thread' (0x1728) has exited with code -1073741510 (0xc000013a).

The thread 'Win32 Thread' (0x1038) has exited with code -1073741510 (0xc000013a).

The program '[4348] fd.exe: Native' has exited with code -1073741510 (0xc000013a).

Чтобы прочитать консольный вывод, существует магическая кнопка F10 в VS, тогда можно выполнять программу пошагово и смотреть на чем краш происходит.

Cannot find or open the PDB file - это значит, что не найдены файлы с дебажной информацией.

The thread 'Win32 Thread' (0x9d8) has exited with code -1073741510 (0xc000013a). - это по видимому говорит о том, что где-то в приложении есть мультитрэйдинг и в нем некорректно, либо авварийно завершаются порожденные потоки(основной судя по всему корректно умирает).

По поводу сампла на opencv: http://docs.opencv.org/doc/tutorials/objdetect/cascade_classifier/cascade_classifier.html#cascade-classifier вот туториал по созданию каскадных классификаторов на основе Хааровски слабых классификаторов.

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Чтобы прочитать консольный вывод, существует магическая кнопка F10 в VS, тогда можно выполнять программу пошагово и смотреть на чем краш происходит.

Cannot find or open the PDB file - это значит, что не найдены файлы с дебажной информацией.

The thread 'Win32 Thread' (0x9d8) has exited with code -1073741510 (0xc000013a). - это по видимому говорит о том, что где-то в приложении есть мультитрэйдинг и в нем некорректно, либо авварийно завершаются порожденные потоки(основной судя по всему корректно умирает).

По поводу сампла на opencv: http://docs.opencv.org/doc/tutorials/objdetect/cascade_classifier/cascade_classifier.html#cascade-classifier вот туториал по созданию каскадных классификаторов на основе Хааровски слабых классификаторов.

спасибо за разъяснение!

с этим туториалом уже ознакомился.даже побаловался через свою вебку.

почему то подтормаживает сильно картинка..

но меня больше всего волнует как организовать подсчет людей в кадре и вывод этой информации на экран

mrgloom писал выше про это ,но я пока не смог осознать ,на что влияют эти строки и как их использовать в моих интересах. :(

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

спасибо за разъяснение!

с этим туториалом уже ознакомился.даже побаловался через свою вебку.

почему то подтормаживает сильно картинка..

но меня больше всего волнует как организовать подсчет людей в кадре и вывод этой информации на экран

mrgloom писал выше про это ,но я пока не смог осознать ,на что влияют эти строки и как их использовать в моих интересах. :(

Подтормаживает потому, что: 1) вероятно вы используете изображения большого размера 2) вероятно вы используете Хааровские классификаторы, если взять LBP, то алгоритм будет ворочаться пошустрее, но менее точно.

В туториале с opencv.org есть переменная std::vector<cv::Rect> faces; Там лежат координаты ROI всех найденных лиц, faces.size() вернет количество лиц найденных на изображении.

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Подтормаживает потому, что: 1) вероятно вы используете изображения большого размера 2) вероятно вы используете Хааровские классификаторы, если взять LBP, то алгоритм будет ворочаться пошустрее, но менее точно.

В туториале с opencv.org есть переменная std::vector<cv::Rect> faces; Там лежат координаты ROI всех найденных лиц, faces.size() вернет количество лиц найденных на изображении.

ок.это я понял.а как это реализовать?

как понять faces.size() вернет количество лиц ??

чтобы она что то вернула это как то прописать надо.вот как я не знаю ..

подскажите ,что почитать по теме можно,что бы я понял о чем эти строки :)

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

C++ manual. Тему std::vector. А лучше всю стандартную библиотеку просмотреть вначале.

Ну и opencv.org посетите, там тоже есть руководство и справочник по командам.

LBP - local binary patterns. Хааровские классификаторы (здесь некоторый жаргон) - метод Виолы-Джонса, который использует каскады Хаара в качестве признаков и класификатор ада буст для классификации.

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Создайте учётную запись или войдите для комментирования

Вы должны быть пользователем, чтобы оставить комментарий

Создать учётную запись

Зарегистрируйтесь для создания учётной записи. Это просто!

Зарегистрировать учётную запись

Войти

Уже зарегистрированы? Войдите здесь.

Войти сейчас


  • Сейчас на странице   0 пользователей

    Нет пользователей, просматривающих эту страницу

×