NullYing / answer_paper_recognition

最简单的答题卡识别核心(顺序读取)
MIT License
6 stars 4 forks source link

关于多选题的问题 #2

Open wuqi9277 opened 5 months ago

wuqi9277 commented 5 months ago

请问如何在此基础上实现多选题的批改?

wuqi9277 commented 5 months ago

我发现,现行版本下的 cv2.findContours 似乎只会返回两个量

可能会有报错: File "d:\examServer\test_answer_paper_recognition\core\scan.py", line 58, in get_max_area_cnt binary, cnts, hierarchy = cv2.findContours(img, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE) ValueError: not enough values to unpack (expected 3, got 2)

去除 binary, 后程序正常

wuqi9277 commented 5 months ago

请问如何在此基础上实现多选题的批改?