测试代码
This commit is contained in:
@@ -2,7 +2,6 @@ import json
|
|||||||
import logging
|
import logging
|
||||||
import math
|
import math
|
||||||
import os
|
import os
|
||||||
import pdb
|
|
||||||
import sys
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
import time
|
import time
|
||||||
@@ -97,7 +96,6 @@ 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:
|
||||||
|
|||||||
Reference in New Issue
Block a user