|
@@ -19,11 +19,80 @@ class Configs:
|
|
request: RequestConfig
|
|
request: RequestConfig
|
|
type: Type
|
|
type: Type
|
|
|
|
|
|
|
|
+# idcard
|
|
|
|
+idcard_local_config = RequestConfig(url='http://192.168.199.27:18050/ocr_system/cet', token='')
|
|
|
|
+idcard_TXtest_config = RequestConfig(
|
|
|
|
+ url='http://aihubtest.digitalyili.com/aiSquare/openApi/reasoning-services/rlocrxm/sfzsbtest/idcard',
|
|
|
|
+ token='8ae1e5f1-1337-4f22-8d46-ff4c110d68fd')
|
|
|
|
+idcard_TXsb_config = RequestConfig(
|
|
|
|
+ url='http://aihub.digitalyili.com/aiSquare/openApi/reasoning-services/rlocrxm/sfzsb/idcard',
|
|
|
|
+ token='dcae8cc6-0e49-4db8-a2d2-94ef84da3636')
|
|
|
|
+idcard_DXtest_config = RequestConfig(
|
|
|
|
+ url='http://aihubpre-idc.digitalyili.com/aiSquare/openApi/reasoning-services/hrocr/sfzsbtest/idcard',
|
|
|
|
+ token='4e00c444-620b-4d3c-85f4-777e64276f0e')
|
|
|
|
+idcard_DXsb_config = RequestConfig(
|
|
|
|
+ url='http://aihub-idc.digitalyili.com/aiSquare/openApi/reasoning-services/hrocr/sfzsb/idcard',
|
|
|
|
+ token='e045de0a-e97f-4f23-b4d5-6a032c39a81e')
|
|
|
|
+
|
|
|
|
+IDCARD_CONFIGS = {
|
|
|
|
+ 'local': idcard_local_config,
|
|
|
|
+ 'TXtest': idcard_TXtest_config,
|
|
|
|
+ 'TXsb': idcard_TXsb_config,
|
|
|
|
+ 'DXtest': idcard_DXtest_config,
|
|
|
|
+ 'DXsb': idcard_DXsb_config
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+# bankcard
|
|
|
|
+bankcard_local_config = RequestConfig(url='http://192.168.199.27:18050/ocr_system/cet', token='')
|
|
|
|
+bankcard_TXtest_config = RequestConfig(
|
|
|
|
+ url='http://aihubtest.digitalyili.com/aiSquare/openApi/reasoning-services/rlocrxm/yhksbtest/bankcard',
|
|
|
|
+ token='8ae1e5f1-1337-4f22-8d46-ff4c110d68fd')
|
|
|
|
+bankcard_TXsb_config = RequestConfig(
|
|
|
|
+ url='http://aihub.digitalyili.com/aiSquare/openApi/reasoning-services/rlocrxm/yhksb/bankcard',
|
|
|
|
+ token='dcae8cc6-0e49-4db8-a2d2-94ef84da3636')
|
|
|
|
+bankcard_DXtest_config = RequestConfig(
|
|
|
|
+ url='http://aihubpre-idc.digitalyili.com/aiSquare/openApi/reasoning-services/hrocr/yhksbtest/bankcard',
|
|
|
|
+ token='4e00c444-620b-4d3c-85f4-777e64276f0e')
|
|
|
|
+bankcard_DXsb_config = RequestConfig(
|
|
|
|
+ url='http://aihub-idc.digitalyili.com/aiSquare/openApi/reasoning-services/hrocr/yhksb/bankcard',
|
|
|
|
+ token='e045de0a-e97f-4f23-b4d5-6a032c39a81e')
|
|
|
|
+
|
|
|
|
+BANKCARD_CONFIGS = {
|
|
|
|
+ 'local': bankcard_local_config,
|
|
|
|
+ 'TXtest': bankcard_TXtest_config,
|
|
|
|
+ 'TXsb': bankcard_TXsb_config,
|
|
|
|
+ 'DXtest': bankcard_DXtest_config,
|
|
|
|
+ 'DXsb': bankcard_DXsb_config
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+# school
|
|
|
|
+school_local_config = RequestConfig(url='http://192.168.199.27:18050/ocr_system/cet', token='')
|
|
|
|
+school_TXtest_config = RequestConfig(
|
|
|
|
+ url='http://aihubtest.digitalyili.com/aiSquare/openApi/reasoning-services/rlocrxm/xxwtest/schoolcert',
|
|
|
|
+ token='8ae1e5f1-1337-4f22-8d46-ff4c110d68fd')
|
|
|
|
+school_TXsb_config = RequestConfig(
|
|
|
|
+ url='http://aihub.digitalyili.com/aiSquare/openApi/reasoning-services/rlocrxm/xxw/schoolcert',
|
|
|
|
+ token='dcae8cc6-0e49-4db8-a2d2-94ef84da3636')
|
|
|
|
+school_DXtest_config = RequestConfig(
|
|
|
|
+ url='http://aihubpre-idc.digitalyili.com/aiSquare/openApi/reasoning-services/hrocr/xxwtest/schoolcert',
|
|
|
|
+ token='4e00c444-620b-4d3c-85f4-777e64276f0e')
|
|
|
|
+school_DXsb_config = RequestConfig(
|
|
|
|
+ url='http://aihub-idc.digitalyili.com/aiSquare/openApi/reasoning-services/hrocr/xxw/schoolcert',
|
|
|
|
+ token='e045de0a-e97f-4f23-b4d5-6a032c39a81e')
|
|
|
|
+
|
|
|
|
+SCHOOL_CONFIGS = {
|
|
|
|
+ 'local': school_local_config,
|
|
|
|
+ 'TXtest': school_TXtest_config,
|
|
|
|
+ 'TXsb': school_TXsb_config,
|
|
|
|
+ 'DXtest': school_DXtest_config,
|
|
|
|
+ 'DXsb': school_DXsb_config
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
|
|
# cet
|
|
# cet
|
|
cet_local_config = RequestConfig(url='http://192.168.199.27:18050/ocr_system/cet', token='')
|
|
cet_local_config = RequestConfig(url='http://192.168.199.27:18050/ocr_system/cet', token='')
|
|
cet_TXtest_config = RequestConfig(
|
|
cet_TXtest_config = RequestConfig(
|
|
- url='http://aihubtest.digitalyili.com/aiSquare/openApi/reasoning-services/rlocrxm//cettest/cet',
|
|
|
|
|
|
+ url='http://aihubtest.digitalyili.com/aiSquare/openApi/reasoning-services/rlocrxm/cettest/cet',
|
|
token='8ae1e5f1-1337-4f22-8d46-ff4c110d68fd')
|
|
token='8ae1e5f1-1337-4f22-8d46-ff4c110d68fd')
|
|
cet_TXsb_config = RequestConfig(
|
|
cet_TXsb_config = RequestConfig(
|
|
url='http://aihub.digitalyili.com/aiSquare/openApi/reasoning-services/rlocrxm/cet/cet',
|
|
url='http://aihub.digitalyili.com/aiSquare/openApi/reasoning-services/rlocrxm/cet/cet',
|
|
@@ -46,7 +115,7 @@ CET_CONFIGS = {
|
|
# regbook
|
|
# regbook
|
|
regbook_local_config = RequestConfig(url='http://192.168.199.27:18040/ocr_system/regbook', token='')
|
|
regbook_local_config = RequestConfig(url='http://192.168.199.27:18040/ocr_system/regbook', token='')
|
|
regbook_TXtest_config = RequestConfig(
|
|
regbook_TXtest_config = RequestConfig(
|
|
- url='http://aihubtest.digitalyili.com/aiSquare/openApi/reasoning-services/rlocrxm//hkbsbtest/regbook',
|
|
|
|
|
|
+ url='http://aihubtest.digitalyili.com/aiSquare/openApi/reasoning-services/rlocrxm/hkbsbtest/regbook',
|
|
token='8ae1e5f1-1337-4f22-8d46-ff4c110d68fd')
|
|
token='8ae1e5f1-1337-4f22-8d46-ff4c110d68fd')
|
|
regbook_TXsb_config = RequestConfig(
|
|
regbook_TXsb_config = RequestConfig(
|
|
url='http://aihub.digitalyili.com/aiSquare/openApi/reasoning-services/rlocrxm/hkbsb/regbook',
|
|
url='http://aihub.digitalyili.com/aiSquare/openApi/reasoning-services/rlocrxm/hkbsb/regbook',
|
|
@@ -92,10 +161,16 @@ BLFE_CONFIGS = {
|
|
OCR_CONFIGS = {
|
|
OCR_CONFIGS = {
|
|
'cet': CET_CONFIGS,
|
|
'cet': CET_CONFIGS,
|
|
'regbook': REGBOOK_CONFIGS,
|
|
'regbook': REGBOOK_CONFIGS,
|
|
- 'business_license': BLFE_CONFIGS
|
|
|
|
|
|
+ 'business_license': BLFE_CONFIGS,
|
|
|
|
+ 'schoolcert': SCHOOL_CONFIGS,
|
|
|
|
+ 'idcard': IDCARD_CONFIGS,
|
|
|
|
+ 'bankcard': BANKCARD_CONFIGS
|
|
}
|
|
}
|
|
|
|
|
|
# 字段
|
|
# 字段
|
|
|
|
+idcard_fieid = ['orientation', 'name', 'id', 'ethnicity', 'gender', 'birthday', 'address', 'address_province', 'address_city', 'address_region', 'address_detail', 'expire_date']
|
|
|
|
+bankcard_fieid = ['orientation', 'number']
|
|
|
|
+schoolcert_fieid = ['orientation', 'name', 'gender', 'admission_time', 'education_time', 'education_level', 'education_type', 'learning_type', 'school', 'major', 'number']
|
|
cet_field = ['orientation', 'name', 'id', 'language', 'level', 'exam_time', 'score']
|
|
cet_field = ['orientation', 'name', 'id', 'language', 'level', 'exam_time', 'score']
|
|
regbook_field = ['orientation', 'name', 'id', 'gender', 'birthplace', 'birthplace_province', 'birthplace_city',
|
|
regbook_field = ['orientation', 'name', 'id', 'gender', 'birthplace', 'birthplace_province', 'birthplace_city',
|
|
'birthplace_region', 'native_place', 'native_place_province', 'native_place_city',
|
|
'birthplace_region', 'native_place', 'native_place_province', 'native_place_city',
|
|
@@ -105,5 +180,8 @@ business_license = ['orientation', 'social_code', 'company_name', 'legal_person'
|
|
Filed = {
|
|
Filed = {
|
|
'cet': cet_field,
|
|
'cet': cet_field,
|
|
'regbook': regbook_field,
|
|
'regbook': regbook_field,
|
|
- 'business_license': business_license
|
|
|
|
|
|
+ 'business_license': business_license,
|
|
|
|
+ 'schoolcert': schoolcert_fieid,
|
|
|
|
+ 'idcard': idcard_fieid,
|
|
|
|
+ 'bankcard': bankcard_fieid
|
|
}
|
|
}
|