| <?xml version="1.0" encoding="utf-8"?> | 
| <!DOCTYPE IDCARD SYSTEM "IDCARD.dtd"> | 
| <!--用于MRZ证件的分类--> | 
| <IDCARD> | 
|     <CIDCardTemplate nMainDocumentID="30390" chDocumentName="MRZ3" engDocumentName="MRZ3" imageSizeType="2"> | 
|         <vecProcessImage> | 
|             <CProcessImage processType="3">  | 
|                 <CEraseBlackBorderEx> | 
|                     <RECT Left="0" Top="0" Right="10000" Bottom="10000" /> | 
|                     <RECT Left="500" Top="500" Right="9200" Bottom="9500" /> | 
|                 </CEraseBlackBorderEx> | 
|             </CProcessImage> | 
|         </vecProcessImage> | 
|         <vecRegion> | 
|             <CRegion nIndex="0" nRegionType="4" nProcessOrder="1"> | 
|                 <!--处理该区域需要的图像信息的光的类型--> | 
|                 <vecImageLightType> | 
|                     <!--1:可见光图;2:红外光图;4:紫外光图 --> | 
|                     <LIGHTTYPE>2</LIGHTTYPE> | 
|                     <LIGHTTYPE>1</LIGHTTYPE> | 
|                 </vecImageLightType> | 
|                 <!--定义区域的定位信息,如果是头像区域还需要进一步精确定位,识别区域就不用了--> | 
|                 <!--bAccurateLocate为1表示需要进一步精确定位,0代表不需要--> | 
|                 <CLocateRegion bAccurateLocate="0"> | 
|                     <vecProcessImage/> | 
|                     <!--rcMinRect:指定定位区域的最小范围,即定位后的区域范围必须包含这个区域--> | 
|                     <RECT Left="10000" Top="10000" Right="0" Bottom="0" /> | 
|                     <vecAnchorLocateInfo> | 
|                         <!--nDisToAnchor的值也是整图的百分比*10000计算出来的--> | 
|                         <CAnchorLocateInfo nAnchorIndex="0" nDisToAnchor="100" anchorType="1" /> | 
|                         <CAnchorLocateInfo nAnchorIndex="0" nDisToAnchor="9900" anchorType="2" /> | 
|                         <CAnchorLocateInfo nAnchorIndex="0" nDisToAnchor="6400" anchorType="3" /> | 
|                         <CAnchorLocateInfo nAnchorIndex="0" nDisToAnchor="10000" anchorType="4" /> | 
|                     </vecAnchorLocateInfo> | 
|                     <!--该区域定义的区域类型基准点的信息--> | 
|                     <vecCLocateAnchor/> | 
|                 </CLocateRegion> | 
|                 <CLocateLine> | 
|                     <!--rcHorizontal:进行行的左右边界定位时的区域范围,坐标单位为所在区域的百分比*100--> | 
|                     <RECT Left="0" Top="0" Right="100" Bottom="100" /> | 
|                     <!--rcVertical:进行行的上下边界定位时的区域范围,坐标单位为所在区域的百分比*100--> | 
|                     <RECT Left="0" Top="0" Right="100" Bottom="100" /> | 
|                     <!--nLocateMethod:0灰度变化的方式进行行定位;1投影方式进行行定位--> | 
|                     <!--bHeight:是否等高--> | 
|                     <!--bSpace:是否等间距--> | 
|                     <!--bWidth:是否等宽--> | 
|                     <!--nMinElementNum:该行最少元素数--> | 
|                     <!--nMaxElementNum:该行最多元素数--> | 
|                     <!--nMinWidth:元素的最小宽度--> | 
|                     <!--nMaxWidth:元素的最大宽度--> | 
|                     <!--nMinHeight:元素的最小高度--> | 
|                     <!--nMaxHeight:元素的最大高度--> | 
|                     <!--nMinSpace:元素间的最小间距--> | 
|                     <!--nMaxSpace:元素间的最大间距--> | 
|                     <CLocateInfo bEraseStart="0" nMinWHRatio="0" nMaxWHRatio="160" nSplitWHRatio="2000" bSplit="0" nNumType="0" bSpace="0" bWidth="0" bHeight="0" bRemoveLineNoise="0" nMinElementNum="3" nMaxElementNum="3" nMinWidth="6500" nMaxWidth="9999" nMinHeight="230" nMaxHeight="820" nMinSpace="10" nMaxSpace="700" bPostProcess="0"> | 
|                         <vecCLocateMethod> | 
|                             <CLocateMethod nLocateMethod="4"> | 
|                                 <vecProcessImage> | 
|                                     <CProcessImage processType="1"> | 
|                                         <CTrueColorToGrayEx nFilter="-1"> | 
|                                             <RECT Top="0" Right="0" Bottom="0" Left="0" /> | 
|                                         </CTrueColorToGrayEx> | 
|                                     </CProcessImage> | 
|                                     <CProcessImage processType="2"> | 
|                                         <CGrayToBinaryEx> | 
|                                             <vecBinaryParam> | 
|                                                 <!--BINARYPARAM nBlockNum="8" nMethod="7" /--> | 
|                                                 <BINARYPARAM nBlockNum="1" nMethod="8" /> | 
|                                             </vecBinaryParam> | 
|                                             <!--processRect--> | 
|                                             <RECT Left="0" Top="0" Right="0" Bottom="0" /> | 
|                                         </CGrayToBinaryEx> | 
|                                     </CProcessImage> | 
|                                 </vecProcessImage> | 
|                             </CLocateMethod> | 
|                         </vecCLocateMethod> | 
|                         <!--在定位前进行的预处理信息,一般是二值化--> | 
|                     </CLocateInfo> | 
|                     <!--采用定位算法对行定位后,边界要浮动的大小,可以为负数 | 
|                     也是整图的百分比*10000计算出来的--> | 
|                     <positionPlus nLeftPlus="-200" nRightPlus="200" nTopPlus="-120" nBottomPlus="100" /> | 
|                 </CLocateLine> | 
|                 <vecLine> | 
|                     <CLine nIndex="2" bStartOffset="0" bEndOffset="1" bExist="1" bNeedRecog="1" nCheckKeyWord="0"> | 
|                         <RECT Left="0" Top="0" Right="0" Bottom="0" /> | 
|                         <vecRecogInfo> | 
|                             <CRecogInfo bIgnorePoint="0" nMaxPointWidth="0" nMaxPointHeight="0" bMatchRegExp="0" charOrder="\C[<\C]\C[\C<]{2}[\C<]{31,-1}" bConfirmParams="0" nProcessOrder="0" nKernelType="0"> | 
|                                 <CLocateInfo bEraseStart="0" nMinWHRatio="0" nMaxWHRatio="130" nSplitWHRatio="2000" bSplit="0" nNumType="0" bSpace="0" bWidth="0" bHeight="0" bRemoveLineNoise="0" nMinElementNum="28" nMaxElementNum="35" nMinWidth="80" nMaxWidth="430" nMinHeight="175" nMaxHeight="680" nMinSpace="0" nMaxSpace="140" bPostProcess="0"> | 
|                                     <vecCLocateMethod> | 
|                                         <CLocateMethod nLocateMethod="4"> | 
|                                         </CLocateMethod> | 
|                                     </vecCLocateMethod> | 
|                                 </CLocateInfo> | 
|                                 <vecKernal> | 
|                                     <CKernalInfo kernalMainType="1" nKernalSubType="6" nFilterType="0" nFillingMethod="1" strFilterPlus="" nRecogType="1" nRecogImgeType="0"> | 
|                                         <vecCharRatio> | 
|                                             <CCharRatio strChars="" charType="0" nWHRatio="60" /> | 
|                                         </vecCharRatio> | 
|                                     </CKernalInfo> | 
|                                 </vecKernal> | 
|                             </CRecogInfo> | 
|                         </vecRecogInfo> | 
|                         <!--vecRecogUnit:行内识别单元的信息--> | 
|                         <vecRecogUnit> | 
|                             <CRecogUnit nIndex="0" bLocate="0" bRecog="0"> | 
|                                 <vecRecogInfo/> | 
|                             </CRecogUnit> | 
|                         </vecRecogUnit> | 
|                         <!--vecLineKeyWord:记录该行内用来定位的关键字信息--> | 
|                         <vecLineKeyWord/> | 
|                         <!--记录该行定义基准点的信息--> | 
|                         <vecCLocateAnchor> | 
|                             <!--CLocateAnchor nDisToAnchor="0" nAnchorIndex="1" anchorType="3" /--> | 
|                         </vecCLocateAnchor> | 
|                     </CLine> | 
|                     <CLine nIndex="1" bStartOffset="0" bEndOffset="1" bExist="1" bNeedRecog="1" nCheckKeyWord="0"> | 
|   | 
|                         <RECT Left="0" Top="0" Right="0" Bottom="0" /> | 
|   | 
|                         <vecRecogInfo> | 
|                             <CRecogInfo bIgnorePoint="0" nMaxPointWidth="0" nMaxPointHeight="0" bMatchRegExp="0" charOrder="\C[<\C]\C[\C<]{2}[\C<]{31,-1}" bConfirmParams="0" nProcessOrder="0" nKernelType="0"> | 
|                                 <CLocateInfo bEraseStart="0" nMinWHRatio="0" nMaxWHRatio="130" nSplitWHRatio="2000" bSplit="0" nNumType="0" bSpace="0" bWidth="0" bHeight="0" bRemoveLineNoise="0" nMinElementNum="28" nMaxElementNum="35" nMinWidth="80" nMaxWidth="430" nMinHeight="175" nMaxHeight="680" nMinSpace="0" nMaxSpace="140" bPostProcess="0"> | 
|                                     <vecCLocateMethod> | 
|                                         <CLocateMethod nLocateMethod="4"/> | 
|                                     </vecCLocateMethod> | 
|                                 </CLocateInfo> | 
|                                 <vecKernal> | 
|                                     <!--nRecogType:0识别区域,1识别字符--> | 
|                                     <!--nRecogImgeType:进行识别时需要的图像类型,0代表灰度,1代表二值--> | 
|                                     <CKernalInfo kernalMainType="1" nKernalSubType="6" nFilterType="0" nFillingMethod="1" strFilterPlus="" nRecogType="1" nRecogImgeType="0"> | 
|                                         <vecCharRatio> | 
|                                             <CCharRatio strChars="" charType="0" nWHRatio="60" /> | 
|                                         </vecCharRatio> | 
|                                     </CKernalInfo> | 
|                                 </vecKernal> | 
|                             </CRecogInfo> | 
|                         </vecRecogInfo> | 
|                         <!--vecRecogUnit:行内识别单元的信息--> | 
|                         <vecRecogUnit> | 
|                             <!--nIndex:识别单元序号--> | 
|                             <!--cellNameEng="" cellName:识别单元名称--> | 
|                             <!--bLocate:该识别单元是否需要定位--> | 
|                             <!--bReRecog:该识别单元是否需要重新识别--> | 
|                             <!--nOutputThreshold:输出界限一,待输出的识别结果的字频的值不能低于该值--> | 
|                             <!--输出界限二,字频值< nOutputThreshold的个数最大不能超过该值,否则将不输出--> | 
|                             <CRecogUnit nIndex="1" bLocate="0" bRecog="0"> | 
|                                 <vecRecogInfo/> | 
|                             </CRecogUnit> | 
|                         </vecRecogUnit> | 
|                         <!--vecLineKeyWord:记录该行内用来定位的关键字信息--> | 
|                         <vecLineKeyWord/> | 
|                         <!--记录该行定义基准点的信息--> | 
|                         <vecCLocateAnchor> | 
|                             <!--CLocateAnchor nDisToAnchor="0" nAnchorIndex="1" anchorType="3" /--> | 
|                         </vecCLocateAnchor> | 
|                     </CLine> | 
|                     <CLine nIndex="0" bStartOffset="0" bEndOffset="1" bExist="1" bNeedRecog="1" nCheckKeyWord="0"> | 
|                         <!--rcLineResult:行的初始位置信息,初始值尽量写最小的区域范围,这样最准确 | 
|                             如果都为0代表该值不可靠,坐标单位为坐标均为占整张图像的百分比*10000 | 
|                         --> | 
|                         <RECT Left="0" Top="0" Right="0" Bottom="0" /> | 
|                         <vecRecogInfo> | 
|                             <CRecogInfo bIgnorePoint="0" nMaxPointWidth="0" nMaxPointHeight="0" bMatchRegExp="0" charOrder="[\D\C<]{9}\D\C[\C<]{2}\D{6}\D{1}[MF]\D{7}[\D\C<]{14}[\D<]\D" bConfirmParams="0" nProcessOrder="0" nKernelType="0"> | 
|                                 <!--定位字符的信息--> | 
|                                 <!--定位字符的信息--> | 
|                                 <!--nLocateMethod:  0,用识别核心做定位; | 
|                                                 1,提取连通域的方法进行定位; | 
|                                                 2,投影方法进行定位 | 
|   | 
|   | 
|   | 
|   | 
|   | 
|   | 
|   | 
|   | 
|   | 
|   | 
|                             --> | 
|                                 <!--nMinElementNum:该行最少元素数--> | 
|                                 <!--nMaxElementNum:该行最多元素数--> | 
|                                 <!--nMinWidth:元素的最小宽度--> | 
|                                 <!--nMaxWidth:元素的最大宽度--> | 
|                                 <!--nMinHeight:元素的最小高度--> | 
|                                 <!--nMaxHeight:元素的最大高度--> | 
|                                 <!--nMinSpace:元素间的最小间距--> | 
|                                 <!--nMaxSpace:元素间的最大间距--> | 
|                                 <CLocateInfo bEraseStart="0" nMinWHRatio="0" nMaxWHRatio="130" nSplitWHRatio="2000" bSplit="0" nNumType="0" bSpace="0" bWidth="0" bHeight="0" bRemoveLineNoise="0" nMinElementNum="28" nMaxElementNum="35" nMinWidth="70" nMaxWidth="320" nMinHeight="175" nMaxHeight="680" nMinSpace="0" nMaxSpace="140" bPostProcess="0"> | 
|                                     <vecCLocateMethod> | 
|                                         <CLocateMethod nLocateMethod="4"> | 
|                                         </CLocateMethod> | 
|                                     </vecCLocateMethod> | 
|                                 </CLocateInfo> | 
|                                 <vecKernal> | 
|                                     <!--nRecogType:0识别区域,1识别字符--> | 
|                                     <!--nRecogImgeType:进行识别时需要的图像类型,0代表灰度,1代表二值--> | 
|                                     <CKernalInfo kernalMainType="1" nKernalSubType="6" nFilterType="0" nFillingMethod="1" strFilterPlus="" nRecogType="1" nRecogImgeType="0"> | 
|                                         <vecCharRatio> | 
|                                             <CCharRatio strChars="" charType="0" nWHRatio="60" /> | 
|                                         </vecCharRatio> | 
|                                     </CKernalInfo> | 
|                                 </vecKernal> | 
|                             </CRecogInfo> | 
|                         </vecRecogInfo> | 
|                         <!--nRecogType:0识别区域,1识别字符--> | 
|                         <!--nRecogImgeType:进行识别时需要的图像类型,0代表灰度,1代表二值--> | 
|                         <!--charOrder:字符的排列情况,用正则表达式表示--> | 
|                         <!--kernalMainType识别核心主类型  | 
|                                 TH_OCR=1, | 
|                                 SSFT152=2, | 
|                                 BARCODE=3 | 
|                         --> | 
|                         <!--vecRecogUnit:行内识别单元的信息--> | 
|                         <vecRecogUnit> | 
|                             <!--nIndex:识别单元序号--> | 
|                             <!--cellNameEng="" cellName:识别单元名称--> | 
|                             <!--bLocate:该识别单元是否需要定位--> | 
|                             <!--bReRecog:该识别单元是否需要重新识别--> | 
|                             <!--nOutputThreshold:输出界限一,待输出的识别结果的字频的值不能低于该值--> | 
|                             <!--输出界限二,字频值< nOutputThreshold的个数最大不能超过该值,否则将不输出--> | 
|                             <CRecogUnit nIndex="2" bLocate="0" bRecog="0"> | 
|                                 <vecRecogInfo/> | 
|                             </CRecogUnit> | 
|                         </vecRecogUnit> | 
|                         <!--vecLineKeyWord:记录该行内用来定位的关键字信息--> | 
|                         <vecLineKeyWord/> | 
|                         <!--vecAnchor:记录该行定义基准点的信息--> | 
|                         <vecCLocateAnchor/> | 
|                     </CLine> | 
|                 </vecLine> | 
|             </CRegion> | 
|         </vecRegion> | 
|         <vecAnchor> | 
|             <CAnchor nIndex="0" anchorPos="-1" anchorType="0" bEnable="0" nMinPos="-1" nMaxPos="-1" /> | 
|             <!--CAnchor nIndex="1" anchorPos="-1" anchorType="3" bEnable="0" nMinPos="-1" nMaxPos="-1" bInherited="1"/--> | 
|         </vecAnchor> | 
|         <vecOutPutResult> | 
|             <COutPutResult nIndex="0" cellRecogType="20" cellNameEng="MRZ1" cellName="MRZ1" nOutputThreshold="0" nOutputNumber="0" bFormatResult="0"> | 
|             </COutPutResult> | 
|             <COutPutResult nIndex="1" cellRecogType="20" cellNameEng="MRZ2" cellName="MRZ2" nOutputThreshold="0" nOutputNumber="0" bFormatResult="0"> | 
|             </COutPutResult> | 
|             <COutPutResult nIndex="2" cellRecogType="20" cellNameEng="MRZ3" cellName="MRZ3" nOutputThreshold="0" nOutputNumber="0" bFormatResult="0"> | 
|             </COutPutResult> | 
|         </vecOutPutResult> | 
|     </CIDCardTemplate> | 
| </IDCARD> |