调试
This commit is contained in:
@@ -97,11 +97,12 @@ def information_extraction(ie, phrecs):
|
||||
for phrec in phrecs:
|
||||
pic_path = ucloud.get_private_url(phrec.cfjaddress)
|
||||
if pic_path:
|
||||
pdb.set_trace()
|
||||
split_result = split_image(pic_path)
|
||||
for img in split_result:
|
||||
with tempfile.NamedTemporaryFile(delete=False, suffix=".jpg") as temp_file:
|
||||
img["img"].save(temp_file.name)
|
||||
pdb.set_trace()
|
||||
|
||||
docs.append({"doc": temp_file.name})
|
||||
doc_phrecs.append({"phrec": phrec, "x_offset": img["x_offset"], "y_offset": img["y_offset"]})
|
||||
if not docs:
|
||||
|
||||
Reference in New Issue
Block a user