调试
This commit is contained in:
@@ -2,6 +2,7 @@ import json
|
||||
import logging
|
||||
import math
|
||||
import os
|
||||
import pdb
|
||||
import sys
|
||||
import tempfile
|
||||
import time
|
||||
@@ -100,6 +101,7 @@ def information_extraction(ie, phrecs):
|
||||
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