Skip to content

Commit 641d26a

Browse files
coderzbxzhangbenxing
authored andcommitted
加速label转color
1 parent 650b66a commit 641d26a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

SelfScripts/demo.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ def do(self, image_data):
5858

5959
if __name__ == '__main__':
6060

61+
time1 = time.time()
62+
6163
weights = ''
6264
model = ''
6365
colours = ''
@@ -176,3 +178,8 @@ def do(self, image_data):
176178

177179
with open(recog_path, 'wb') as w:
178180
w.write(recog_data)
181+
182+
time2 = time.time()
183+
184+
print("finish in {} s\n".format(time2 - time1))
185+

0 commit comments

Comments
 (0)