文档识别 cnts = cv2.findContours(edged.copy(), cv2.RETR_LIST, cv2.CHAIN_APPROX_SIMPLE)[1]报错
原代码cnts=cv2.findContours(edged.copy(),cv2.RETR_LIST,cv2.CHAIN_APPROX_SIMPLE)[1]cnts=sorted(cnts,key=cv2.contourArea,reverse=True)[:5]修改为cnts,hierarchy=cv2.findContours(edged.copy(),cv2.RETR_LIST,cv2.C