This commit is contained in:
Mikhail Grigorev 2014-08-01 11:00:25 +06:00
parent 6829da3e97
commit 65fbc29841
5 changed files with 152 additions and 0 deletions

1
Bin/Win32/FaceDetect.cmd Normal file
View File

@ -0,0 +1 @@
FaceDetect2.exe --cascade=FaceDetectXML\haarcascade_frontalface_alt_tree.xml 0

View File

@ -0,0 +1,75 @@
[Main]
; 0 - Çàõâàò êàðòèíêè ñ êàìåðû, 1 - Çàõâàò êàðòèíêè èç ôàéëà, 2 - Çàõâàò êàðòèíêè èç âèäåîôàéëà
; 0 - VideoCamera capture, 1 - ImageFile capture, 2 - VideoFile capture
SourceCapture=1
; Íîìåð êàìåðû â ñèñòåìå äëÿ çàõâàòà âèäåî, åñëè SourceCapture=0
; Åñëè êàìåðà îäíà, òî å¸ íîìåð ðàâåí 0
; The video camera number in the system (default: 0)
VideoCamNum=0
; Ôàéë êàðòèíêè äëÿ çàõâàòå åñëè SourceCapture=1
ImageFileCapture=..\..\resource\media\CarNom1.jpg
; Âèäåî ôàéë äëÿ çàõâàòà åñëè SourceCapture=2
VideoFileCapture=..\..\resource\result\24042013145540.avi
; Óãîë ïîâîðîòà êàðòèíêè ïðè âûâîäå íà ýêðàí
; Rotation angle
RotateImageAngle=0
; Çàïèñûâàòü çàõâà÷åííîå âèäåî â ôàéë è ñîõðàíÿòü íà äèñê
; To record the captured video to a file on disk
WriteVideoCaptureToFile=0
; Åñëè ïàðàìåòð WriteVideoCaptureFileDir íå óñòàíîâëåí, òî çàïèñü ñîõðàíÿåòñÿ â òåêóùóþ äèðåêòîðèþ ïðîãðàììû
; If WriteVideoCaptureFileDir not specified, the record is stored in the directory of the program
WriteVideoCaptureFileDir=c:\temp\
; Ìåòîä áèíàðèçàöèè èçîáðàæåíèÿ: 0 - Àäàïòèâíûé, 1 - Ïîðîãîâûé
; 0 - cvAdaptiveThreshold, 1 - cvThreshold
BinarizationMethod=1
; Ðàçìåð îêðåñòíîñòåé ïèêñåëÿ, èñïîëüçóåìûõ äëÿ âû÷èñëåíèÿ ïîðîãîâîãî çíà÷åíèÿ.
; Èñïîëüçóåòñÿ òîëüêî ïðè àäàïòèâíîì ìåòîäå áèíàðèçàöèè.
; Use only cvAdaptiveThreshold
AdaptiveThresholdBlockSize=15
; Ïîðîãîâîå çíà÷åíèå
; Èñïîëüçóåòñÿ òîëüêî ïðè ïîðîãîâîì ìåòîäå áèíàðèçàöèè.
; Use only cvThreshold
Threshold=128
; Ìàêñèìàëüíîå çíà÷åíèå ïîðîãà
; Èñïîëüçóåòñÿ ïðè ëþáîì ìåòîäå áèíàðèçàöèè.
; Use in cvAdaptiveThreshold and cvThreshold
ThresholdMaxValue=255
; Ïàðàìåòðû ïîèñêà íîìåðíîãî çíàêà àâòî:
; Search parameters number of the car:
; Ìèí. è ìàêñ. ñîîòíîøåíèå ñòîðîí
; Min. and max. aspect ratio
MinRatio=0.15
MaxRatio=0.5
; Ìèí. è ìàêñ. ïëîùàäü ïðÿìîóãîëüíèêà
; Min. and max. area of a rectangle
MinArea=500
MaxArea=13000
; Ìèí. è ìàêñ. ïëîùàäü êîíòóðà
; Min. and max. area of the contour
MinFullArea=700
MaxFullArea=11000
; Ìèí. ñîîòíîøåíèå ïëîùàäè êîíòóðà ê ïëîùàäè ïðÿìîóãîëüíèêà
; Min. the ratio of contour area to the area of a rectangle
MinFillArea=0.7
; Äèëàòàöèÿ
; Enable cvDilate
EnableDilate=1
; Ýðîçèÿ
; Enable cvErode
EnableErode=1

1
Bin/Win64/FaceDetect.cmd Normal file
View File

@ -0,0 +1 @@
FaceDetect2.exe --cascade=FaceDetectXML\haarcascade_frontalface_alt_tree.xml 0

View File

@ -0,0 +1,75 @@
[Main]
; 0 - Çàõâàò êàðòèíêè ñ êàìåðû, 1 - Çàõâàò êàðòèíêè èç ôàéëà, 2 - Çàõâàò êàðòèíêè èç âèäåîôàéëà
; 0 - VideoCamera capture, 1 - ImageFile capture, 2 - VideoFile capture
SourceCapture=1
; Íîìåð êàìåðû â ñèñòåìå äëÿ çàõâàòà âèäåî, åñëè SourceCapture=0
; Åñëè êàìåðà îäíà, òî å¸ íîìåð ðàâåí 0
; The video camera number in the system (default: 0)
VideoCamNum=0
; Ôàéë êàðòèíêè äëÿ çàõâàòå åñëè SourceCapture=1
ImageFileCapture=..\..\resource\media\CarNom1.jpg
; Âèäåî ôàéë äëÿ çàõâàòà åñëè SourceCapture=2
VideoFileCapture=..\..\resource\result\24042013145540.avi
; Óãîë ïîâîðîòà êàðòèíêè ïðè âûâîäå íà ýêðàí
; Rotation angle
RotateImageAngle=0
; Çàïèñûâàòü çàõâà÷åííîå âèäåî â ôàéë è ñîõðàíÿòü íà äèñê
; To record the captured video to a file on disk
WriteVideoCaptureToFile=0
; Åñëè ïàðàìåòð WriteVideoCaptureFileDir íå óñòàíîâëåí, òî çàïèñü ñîõðàíÿåòñÿ â òåêóùóþ äèðåêòîðèþ ïðîãðàììû
; If WriteVideoCaptureFileDir not specified, the record is stored in the directory of the program
WriteVideoCaptureFileDir=c:\temp\
; Ìåòîä áèíàðèçàöèè èçîáðàæåíèÿ: 0 - Àäàïòèâíûé, 1 - Ïîðîãîâûé
; 0 - cvAdaptiveThreshold, 1 - cvThreshold
BinarizationMethod=1
; Ðàçìåð îêðåñòíîñòåé ïèêñåëÿ, èñïîëüçóåìûõ äëÿ âû÷èñëåíèÿ ïîðîãîâîãî çíà÷åíèÿ.
; Èñïîëüçóåòñÿ òîëüêî ïðè àäàïòèâíîì ìåòîäå áèíàðèçàöèè.
; Use only cvAdaptiveThreshold
AdaptiveThresholdBlockSize=15
; Ïîðîãîâîå çíà÷åíèå
; Èñïîëüçóåòñÿ òîëüêî ïðè ïîðîãîâîì ìåòîäå áèíàðèçàöèè.
; Use only cvThreshold
Threshold=128
; Ìàêñèìàëüíîå çíà÷åíèå ïîðîãà
; Èñïîëüçóåòñÿ ïðè ëþáîì ìåòîäå áèíàðèçàöèè.
; Use in cvAdaptiveThreshold and cvThreshold
ThresholdMaxValue=255
; Ïàðàìåòðû ïîèñêà íîìåðíîãî çíàêà àâòî:
; Search parameters number of the car:
; Ìèí. è ìàêñ. ñîîòíîøåíèå ñòîðîí
; Min. and max. aspect ratio
MinRatio=0.15
MaxRatio=0.5
; Ìèí. è ìàêñ. ïëîùàäü ïðÿìîóãîëüíèêà
; Min. and max. area of a rectangle
MinArea=500
MaxArea=13000
; Ìèí. è ìàêñ. ïëîùàäü êîíòóðà
; Min. and max. area of the contour
MinFullArea=700
MaxFullArea=11000
; Ìèí. ñîîòíîøåíèå ïëîùàäè êîíòóðà ê ïëîùàäè ïðÿìîóãîëüíèêà
; Min. the ratio of contour area to the area of a rectangle
MinFillArea=0.7
; Äèëàòàöèÿ
; Enable cvDilate
EnableDilate=1
; Ýðîçèÿ
; Enable cvErode
EnableErode=1

View File