This commit is contained in:
Semi212 committed 2022-05-17 20:24:52 +08:00
1 parent 897af7ce56
commit ae53e9eac5
6 files changed
+177 -65

No files matched your search

+6 -6
View File
@@ -107,12 +107,12 @@ class DetFineVid():
tm2 = time.time()
if gp.DebugPrint_flag:
print("main1 time is ", (tm2 - tm1) * 1000)
# cv2.imshow("AI-ECO", img_show)
# #cv2.imwrite("../data_MPKFNet/RTSP3/" + "{}.jpg".format(time.strftime('%Y%m%d%H%M%S', time.localtime(time.time()))),img_show)
# if cv2.waitKey(1) & 0xFF == ord('r'):
# break
save_path =os.path.join(self.SavePath,"{}.jpg".format(str(num_detection).zfill(6)))
cv2.imwrite(save_path,img_show)
cv2.imshow("AI-ECO", img_show)
#cv2.imwrite("../data_MPKFNet/RTSP3/" + "{}.jpg".format(time.strftime('%Y%m%d%H%M%S', time.localtime(time.time()))),img_show)
if cv2.waitKey(1) & 0xFF == ord('r'):
break
# save_path =os.path.join(self.SavePath,"{}.jpg".format(str(num_detection).zfill(6)))
# cv2.imwrite(save_path,img_show)
tm3 = time.time()
if gp.DebugPrint_flag:
print("main2 time is ", (tm3 - tm2) * 1000)