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