现阶段布局分析可能会反优化,暂不开启
This commit is contained in:
@@ -44,7 +44,7 @@ def visual_model_test(model_type, test_img, task_path, schema):
|
||||
write_visual_result(test_img, layout=parsed_doc["layout"])
|
||||
else:
|
||||
my_ie = Taskflow("information_extraction", schema=schema, model="uie-x-base", task_path=task_path,
|
||||
layout_analysis=True)
|
||||
layout_analysis=False)
|
||||
my_results = my_ie({"doc": test_img})
|
||||
write_visual_result(test_img, result=my_results[0])
|
||||
|
||||
@@ -74,7 +74,7 @@ def main(model_type, pic_name=None):
|
||||
schema = ["患者姓名", "入院日期", "出院日期", "费用总额", "个人现金支付", "个人账户支付", "自费金额", "医保类型"]
|
||||
elif model_type == "discharge":
|
||||
task_path = "../config/model/discharge_record_model"
|
||||
test_img_path = ucloud.get_private_url(pic_name) if pic_name else "img/PH20240428000832_1_093844_2.jpg"
|
||||
test_img_path = ucloud.get_private_url(pic_name) if pic_name else "img/PH20240401000003_3_001938_2.jpg"
|
||||
schema = ["医院", "科室", "患者姓名", "入院日期", "出院日期", "主治医生"]
|
||||
elif model_type == "cost":
|
||||
task_path = "../config/model/cost_list_model"
|
||||
|
||||
Reference in New Issue
Block a user