<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE IDCARD SYSTEM "IDCARD.dtd">
<IDCARD>
  <CIDCardTemplate nMainDocumentID="1036" chDocumentName="两行机读码(36位)" engDocumentName="Two MRZ(36)" imageSizeType="2">
    <vecAutoProcess>
        <vecProcessMode nMode="1"> 
			<CAutoProcess processType="23">
			  <CIDCardAutoProcessEx2 nCropType="5" nMaxAngle="0.3" nMinAngle="0.017" nFilledType="1" bIs180Rotate="1" bIsValid="0"  bSameSize="1"/> 
			</CAutoProcess>  
		</vecProcessMode>
    </vecAutoProcess>
    <vecProcessImage>
    <CProcessImage processType="8">
      <CTiltCorrection nMaxAngle="0.3" bSameSize="1" nMinAngle="0.017" nFilledType="0" />
    </CProcessImage>
      <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="1" nProcessOrder="0">
        
        <vecImageLightType>
          
          <LIGHTTYPE>1</LIGHTTYPE>
          <LIGHTTYPE>2</LIGHTTYPE>
        </vecImageLightType>
        
        
        <CLocateRegion bAccurateLocate="0">
          <vecProcessImage></vecProcessImage>
         
          <RECT Left="10000" Top="10000" Right="0" Bottom="0" />
          <vecAnchorLocateInfo>
            
            <CAnchorLocateInfo nAnchorIndex="0" nDisToAnchor="0" anchorType="1" />
            <CAnchorLocateInfo nAnchorIndex="0" nDisToAnchor="10000" anchorType="2" />
            <CAnchorLocateInfo nAnchorIndex="0" nDisToAnchor="0" anchorType="3" />
            <CAnchorLocateInfo nAnchorIndex="0" nDisToAnchor="10000" anchorType="4" />
          </vecAnchorLocateInfo>
          
          <vecCLocateAnchor></vecCLocateAnchor>
        </CLocateRegion>
        <CLocateLine>
          
          <RECT Left="0" Top="0" Right="100" Bottom="100" />
          
          <RECT Left="50" Top="0" Right="100" Bottom="100" />
          <CLocateInfo bEraseStart="0" nMinWHRatio="0" nMaxWHRatio="160" nSplitWHRatio="2000" bSplit="0" nNumType="0" bSpace="0" bWidth="0" bHeight="0" bRemoveLineNoise="0" nMinElementNum="2" nMaxElementNum="2" nMinWidth="7200" nMaxWidth="9999" nMinHeight="500" nMaxHeight="5000" nMinSpace="10" nMaxSpace="700" bPostProcess="0">
            <vecCLocateMethod>
              <CLocateMethod nLocateMethod="1">
                <vecProcessImage>
                  <CProcessImage processType="1">
                    <CTrueColorToGrayEx nFilter="0">
                      <RECT Top="0" Right="0" Bottom="0" Left="0" />
                    </CTrueColorToGrayEx>
                  </CProcessImage>
                  <CProcessImage processType="2">
                    <CGrayToBinaryEx>
                      <vecBinaryParam>
                        <BINARYPARAM nBlockNum="1" nMethod="8" />
                      </vecBinaryParam>
                      
                      <RECT Left="0" Top="0" Right="0" Bottom="0" />
                    </CGrayToBinaryEx>
                  </CProcessImage>
                </vecProcessImage>
              </CLocateMethod>
              <CLocateMethod nLocateMethod="0">
                <vecProcessImage>
                  <CProcessImage processType="1">
                    <CTrueColorToGrayEx nFilter="0">
                      <RECT Top="0" Right="0" Bottom="0" Left="0" />
                    </CTrueColorToGrayEx>
                  </CProcessImage>
                </vecProcessImage>
              </CLocateMethod>
            </vecCLocateMethod>
            
          </CLocateInfo>
          <positionPlus nLeftPlus="-200" nRightPlus="200" nTopPlus="-500" nBottomPlus="1000" />
        </CLocateLine>
        <vecLine>
          <CLine nIndex="1" bStartOffset="0" bEndOffset="1" bExist="1" bNeedRecog="1" nCheckKeyWord="0">
      
            <RECT Left="0" Top="0" Right="0" Bottom="0" />
            <CRecogInfo bIgnorePoint="0" nMaxPointWidth="0" nMaxPointHeight="0" bMatchRegExp="1" charOrder="[\C&lt;]{36}" bConfirmParams="0">
              <CLocateInfo bEraseStart="0" nMinWHRatio="0" nMaxWHRatio="130" nSplitWHRatio="2000" bSplit="0" nNumType="0" bSpace="0" bWidth="0" bHeight="0" bRemoveLineNoise="0" nMinElementNum="36" nMaxElementNum="36" nMinWidth="80" nMaxWidth="230" nMinHeight="700" nMaxHeight="3000" nMinSpace="0" nMaxSpace="140" bPostProcess="1">
                <vecCLocateMethod>
                  <CLocateMethod nLocateMethod="1">
                    <vecProcessImage>
                      <CProcessImage processType="1">
                        <CTrueColorToGrayEx nFilter="0">
                          <RECT Top="0" Right="0" Bottom="0" Left="0"></RECT>
                        </CTrueColorToGrayEx>
                      </CProcessImage>
                      <CProcessImage processType="2">
                        <CGrayToBinaryEx>
                          <vecBinaryParam>
                            <BINARYPARAM nBlockNum="1" nMethod="6" />
                          </vecBinaryParam>
                          
                          <RECT Left="0" Top="0" Right="0" Bottom="0" />
                        </CGrayToBinaryEx>
                      </CProcessImage>
                    </vecProcessImage>
                  </CLocateMethod>
                  <CLocateMethod nLocateMethod="1">
                    <vecProcessImage>
                      <CProcessImage processType="1">
                        <CTrueColorToGrayEx nFilter="0">
                          <RECT Top="0" Right="0" Bottom="0" Left="0"></RECT>
                        </CTrueColorToGrayEx>
                      </CProcessImage>
                      <CProcessImage processType="2">
                        <CGrayToBinaryEx>
                          <vecBinaryParam>
                            <BINARYPARAM nBlockNum="10" nMethod="7" />
                            <BINARYPARAM nBlockNum="1" nMethod="1" />
                          </vecBinaryParam>
                          
                          <RECT Left="0" Top="0" Right="0" Bottom="0" />
                        </CGrayToBinaryEx>
                      </CProcessImage>
                    </vecProcessImage>
                  </CLocateMethod>
                  <CLocateMethod nLocateMethod="1">
                    <vecProcessImage>
                      <CProcessImage processType="1">
                        <CTrueColorToGrayEx nFilter="0">
                          <RECT Top="0" Right="0" Bottom="0" Left="0"></RECT>
                        </CTrueColorToGrayEx>
                      </CProcessImage>
                      <CProcessImage processType="2">
                        <CGrayToBinaryEx>
                          <vecBinaryParam>
                            <BINARYPARAM nBlockNum="1" nMethod="3" />
                          </vecBinaryParam>
                          
                          <RECT Left="0" Top="0" Right="0" Bottom="0" />
                        </CGrayToBinaryEx>
                      </CProcessImage>
                    </vecProcessImage>
                  </CLocateMethod>
                  <CLocateMethod nLocateMethod="1">
                    <vecProcessImage>
                      <CProcessImage processType="1">
                        <CTrueColorToGrayEx nFilter="0">
                          <RECT Top="0" Right="0" Bottom="0" Left="0"></RECT>
                        </CTrueColorToGrayEx>
                      </CProcessImage>
                      <CProcessImage processType="2">
                        <CGrayToBinaryEx>
                          <vecBinaryParam>
                            <BINARYPARAM nBlockNum="1" nMethod="5" />
                          </vecBinaryParam>
                          
                          <RECT Left="0" Top="0" Right="0" Bottom="0" />
                        </CGrayToBinaryEx>
                      </CProcessImage>
                    </vecProcessImage>
                  </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>
            
            <vecRecogUnit>
              <CRecogUnit nIndex="1" bLocate="0" bRecog="0"></CRecogUnit>
            </vecRecogUnit>
            
            <vecLineKeyWord></vecLineKeyWord>
            <vecCLocateAnchor>
            </vecCLocateAnchor>
          </CLine>
          <CLine nIndex="0" bStartOffset="0" bEndOffset="1" bExist="1" bNeedRecog="1" nCheckKeyWord="0">
       
            <RECT Left="0" Top="0" Right="0" Bottom="0" />
            <CRecogInfo bIgnorePoint="0" nMaxPointWidth="0" nMaxPointHeight="0" bMatchRegExp="1" charOrder="[\D\C&lt;]{36}" bConfirmParams="0">
              <CLocateInfo bEraseStart="0" nMinWHRatio="0" nMaxWHRatio="130" nSplitWHRatio="2000" bSplit="0" nNumType="0" bSpace="0" bWidth="0" bHeight="0" bRemoveLineNoise="0" nMinElementNum="36" nMaxElementNum="36" nMinWidth="70" nMaxWidth="220"  nMinHeight="700" nMaxHeight="3000" nMinSpace="0" nMaxSpace="140" bPostProcess="1">
                <vecCLocateMethod>
                  <CLocateMethod nLocateMethod="1">
                    <vecProcessImage>
                      <CProcessImage processType="1">
                        <CTrueColorToGrayEx nFilter="0">
                          <RECT Top="0" Right="0" Bottom="0" Left="0"></RECT>
                        </CTrueColorToGrayEx>
                      </CProcessImage>
                      <CProcessImage processType="2">
                        <CGrayToBinaryEx>
                          <vecBinaryParam>
                            <BINARYPARAM nBlockNum="10" nMethod="7"/>
                            <BINARYPARAM nBlockNum="1" nMethod="6" />
                          </vecBinaryParam>
                          
                          <RECT Left="0" Top="0" Right="0" Bottom="0" />
                        </CGrayToBinaryEx>
                      </CProcessImage>
                    </vecProcessImage>
                  </CLocateMethod>
                  <CLocateMethod nLocateMethod="1">
                    <vecProcessImage>
                      <CProcessImage processType="1">
                        <CTrueColorToGrayEx nFilter="0">
                          <RECT Top="0" Right="0" Bottom="0" Left="0"></RECT>
                        </CTrueColorToGrayEx>
                      </CProcessImage>
                      <CProcessImage processType="2">
                        <CGrayToBinaryEx>
                          <vecBinaryParam>
                            <BINARYPARAM nBlockNum="10" nMethod="7" />
                            <BINARYPARAM nBlockNum="1" nMethod="1" />
                          </vecBinaryParam>
                          
                          <RECT Left="0" Top="0" Right="0" Bottom="0" />
                        </CGrayToBinaryEx>
                      </CProcessImage>
                    </vecProcessImage>
                  </CLocateMethod>
                  <CLocateMethod nLocateMethod="1">
                    <vecProcessImage>
                      <CProcessImage processType="1">
                        <CTrueColorToGrayEx nFilter="0">
                          <RECT Top="0" Right="0" Bottom="0" Left="0"></RECT>
                        </CTrueColorToGrayEx>
                      </CProcessImage>
                      <CProcessImage processType="2">
                        <CGrayToBinaryEx>
                          <vecBinaryParam>
                            <BINARYPARAM nBlockNum="1" nMethod="3" />
                          </vecBinaryParam>
                          
                          <RECT Left="0" Top="0" Right="0" Bottom="0" />
                        </CGrayToBinaryEx>
                      </CProcessImage>
                    </vecProcessImage>
                  </CLocateMethod>
                  <CLocateMethod nLocateMethod="1">
                    <vecProcessImage>
                      <CProcessImage processType="1">
                        <CTrueColorToGrayEx nFilter="0">
                          <RECT Top="0" Right="0" Bottom="0" Left="0"></RECT>
                        </CTrueColorToGrayEx>
                      </CProcessImage>
                      <CProcessImage processType="2">
                        <CGrayToBinaryEx>
                          <vecBinaryParam>
                            <BINARYPARAM nBlockNum="1" nMethod="5" />
                          </vecBinaryParam>
                          
                          <RECT Left="0" Top="0" Right="0" Bottom="0" />
                        </CGrayToBinaryEx>
                      </CProcessImage>
                    </vecProcessImage>
                  </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>
            <vecRecogUnit>
              <CRecogUnit nIndex="2" bLocate="0" bRecog="0"></CRecogUnit>
            </vecRecogUnit>
            
            <vecLineKeyWord></vecLineKeyWord>
            <vecCLocateAnchor></vecCLocateAnchor>
          </CLine>
        </vecLine>
      </CRegion>
    </vecRegion>
    <vecDeriveUnit>
		<CDeriveUnit nEndCharIndex="1" nSrcRecogUnitIndex="1" nIndex="3" nStartCharIndex="0" />
          <CDeriveUnit nEndCharIndex="8" nSrcRecogUnitIndex="2" nIndex="4" nStartCharIndex="0" />
          <CDeriveUnit nEndCharIndex="-1" nSrcRecogUnitIndex="1" nIndex="6" nStartCharIndex="5">
            <vecFlagFind>
              <CFlagFind nPosType="1" nFindType="0" bStart="1" nStartIndex="0" strFlag="&lt;&lt;&lt;" nNum="1" nIndexPlus="0" />
            </vecFlagFind>
          </CDeriveUnit>
          <CDeriveUnit nEndCharIndex="20" nSrcRecogUnitIndex="2" nIndex="7" nStartCharIndex="20" />
          <CDeriveUnit nEndCharIndex="18" nSrcRecogUnitIndex="2" nIndex="8" nStartCharIndex="13" />
          <CDeriveUnit nEndCharIndex="26" nSrcRecogUnitIndex="2" nIndex="9" nStartCharIndex="21" />
          <CDeriveUnit nEndCharIndex="4" nSrcRecogUnitIndex="1" nIndex="10" nStartCharIndex="2" />
          <CDeriveUnit nEndCharIndex="-1" nSrcRecogUnitIndex="1" nIndex="11" nStartCharIndex="5">
            <vecFlagFind>
              <CFlagFind nPosType="1" nFindType="0" bStart="1" nStartIndex="0" strFlag="&lt;&lt;" nNum="1" nIndexPlus="-1" />
            </vecFlagFind>
          </CDeriveUnit>
          <CDeriveUnit nEndCharIndex="-1" nSrcRecogUnitIndex="1" nIndex="12" nStartCharIndex="-1">
            <vecFlagFind>
              <CFlagFind nPosType="0" nFindType="0" bStart="1" nStartIndex="0" strFlag="&lt;&lt;" nNum="1" nIndexPlus="2" />
              <CFlagFind nPosType="1" nFindType="0" bStart="1" nStartIndex="0" strFlag="&lt;&lt;&lt;" nNum="1" nIndexPlus="0" />
            </vecFlagFind>
          </CDeriveUnit>
          <CDeriveUnit nEndCharIndex="12" nSrcRecogUnitIndex="2" nIndex="13" nStartCharIndex="10" />	
    </vecDeriveUnit>
    <vecAnchor>
      <CAnchor nIndex="0" anchorPos="-1" anchorType="0" bEnable="0" nMinPos="-1" nMaxPos="-1" />
    </vecAnchor>
     <vecOutPutResult>
	  <COutPutResult nIndex="0" cellRecogType="20" cellNameEng="Reserve" cellName="保留" nOutputThreshold="0" nOutputNumber="0" bFormatResult="0" />
	  <COutPutResult nIndex="1" cellRecogType="20" cellNameEng="MRZ1" cellName="MRZ1" nOutputThreshold="0" nOutputNumber="0" bFormatResult="0" bMainField="1"/>
      <COutPutResult nIndex="2" cellRecogType="20" cellNameEng="MRZ2" cellName="MRZ2" nOutputThreshold="0" nOutputNumber="0" bFormatResult="0" bMainField="1"/>
	  <COutPutResult nIndex="3" cellRecogType="20" cellNameEng="Type identification" cellName="证件类型" nOutputThreshold="0" nOutputNumber="0" bFormatResult="1" >
      <CFormatInfo strDefault="" strInFormat="" strOutFormat="">
          <vecCReplaceChar>
            <CReplaceChar newChar="" oldChar="&lt;"></CReplaceChar>
          </vecCReplaceChar>
        </CFormatInfo>
      </COutPutResult>
      <COutPutResult nIndex="4" cellRecogType="20" cellNameEng="The visa number from MRZ" cellName="MRZ导出号码" nOutputThreshold="0" nOutputNumber="0" bFormatResult="1">
        <CFormatInfo strDefault="" strInFormat="" strOutFormat="">
          <vecCReplaceChar>
            <CReplaceChar newChar="" oldChar="&lt;"></CReplaceChar>
          </vecCReplaceChar>
        </CFormatInfo>
      </COutPutResult>
      <COutPutResult nIndex="5" cellRecogType="20" cellNameEng="National name" cellName="本国姓名" nOutputThreshold="0" nOutputNumber="0" bFormatResult="1" >
      <CFormatInfo strDefault="" strInFormat="" strOutFormat="">
          <vecCReplaceChar>
            <CReplaceChar newChar=" " oldChar="&lt;"></CReplaceChar>
          </vecCReplaceChar>
        </CFormatInfo>
      </COutPutResult>
      <COutPutResult nIndex="6" cellRecogType="20" cellNameEng="English name" cellName="英文姓名" nOutputThreshold="0" nOutputNumber="0" bFormatResult="1">
        <CFormatInfo strDefault="" strInFormat="" strOutFormat="">
          <vecCReplaceChar>
            <CReplaceChar newChar=" " oldChar="&lt;"></CReplaceChar>
          </vecCReplaceChar>
        </CFormatInfo>
      </COutPutResult>
      <COutPutResult nIndex="7" cellRecogType="1" cellNameEng="Sex" cellName="性别" nOutputThreshold="0" nOutputNumber="0" bFormatResult="1">
        <CFormatInfo strDefault="" strInFormat="" strOutFormat="">
          <vecCReplaceChar>
            <CReplaceChar newChar="" oldChar="&lt;"></CReplaceChar>
          </vecCReplaceChar>
        </CFormatInfo>
      </COutPutResult>
      <COutPutResult nIndex="8" cellRecogType="3" cellNameEng="Date of birth" cellName="出生日期" nOutputThreshold="0" nOutputNumber="0" bFormatResult="1">
        <CFormatInfo strDefault="" strInFormat="YYMMDD" strOutFormat="YYYY-MM-DD" />
      </COutPutResult>
      <COutPutResult nIndex="9" cellRecogType="5" cellNameEng="Date of expiry" cellName="有效期至" nOutputThreshold="0" nOutputNumber="0" bFormatResult="1">
        <CFormatInfo strDefault="" strInFormat="YYMMDD" strOutFormat="YYYY-MM-DD" />
        
      </COutPutResult>
      <COutPutResult nIndex="10" cellRecogType="20" cellNameEng="Issuing country code" cellName="签发国代码" nOutputThreshold="0" nOutputNumber="0" bFormatResult="0" />
      <COutPutResult nIndex="11" cellRecogType="20" cellNameEng="English surname" cellName="英文姓" nOutputThreshold="0" nOutputNumber="0" bFormatResult="1">
        <CFormatInfo strDefault="" strInFormat="" strOutFormat="">
          <vecCReplaceChar>
            <CReplaceChar newChar=" " oldChar="&lt;"></CReplaceChar>
          </vecCReplaceChar>
        </CFormatInfo>
      </COutPutResult>
      <COutPutResult nIndex="12" cellRecogType="20" cellNameEng="English first name" cellName="英文名" nOutputThreshold="0" nOutputNumber="0" bFormatResult="1">
        <CFormatInfo strDefault="" strInFormat="" strOutFormat="">
          <vecCReplaceChar>
            <CReplaceChar newChar=" " oldChar="&lt;"></CReplaceChar>
          </vecCReplaceChar>
        </CFormatInfo>
      </COutPutResult>
      
      <COutPutResult nIndex="13" cellRecogType="20" cellNameEng="Nationality code" cellName="持证人国籍代码" nOutputThreshold="0" nOutputNumber="0" bFormatResult="0" />   
 </vecOutPutResult>
	<vecMergeUnit>
		 <CMergeUnit nDestUnitIndex="3" nDestUnitType="4" nSrcUnitIndex="3" nSrcUnitType="4"  strSrc="" strDest="" nProcessPos="-1" bMeet="1" bSynchronous="0" nOperateType="14"/>
	</vecMergeUnit>
	<vecSubTemplate>
		<CSubTemplate nSubID="1" chDocumentName="签证" engDocumentName="Visa">
			<vecOutPutResult>
				<COutPutResult nIndex="10" cellRecogType="20" cellNameEng="Issuing country code" cellName="签发国代码" nOutputThreshold="0" nOutputNumber="0" bFormatResult="1" bCountryCode="1">
					<CFormatInfo strDefault="" strInFormat="" strOutFormat="">
						<vecCReplaceChar>
							<CReplaceChar newChar="" oldChar="&lt;"></CReplaceChar>
						</vecCReplaceChar>
					</CFormatInfo>
				</COutPutResult>
			</vecOutPutResult>
		</CSubTemplate>
		<CSubTemplate nSubID="2" chDocumentName="TD-2型机读旅行证件" engDocumentName="TD-2 Machine Readable Travel Documents">
				
		</CSubTemplate>
    </vecSubTemplate>
  </CIDCardTemplate>
 
 </IDCARD>