Browse Source

上传

tags/V2.8.3^2^2
chenyukun 1 year ago
parent
commit
5363a0d363
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      concurrency/IntelligentRecognitionProcess.py

+ 1
- 1
concurrency/IntelligentRecognitionProcess.py View File

@@ -1178,7 +1178,7 @@ class ScreenRecordingProcess(Process):
frame_list, frame_index_list, all_frames = pull_result[1]
if len(frame_list) > 0:
for i, frame in enumerate(frame_list):
if frame_index_list[i] % 300 == 0 and frame_index_list[i] <= all_frames:
if frame_index_list[i] % 300 == 0 and frame_index_list[i] < all_frames:
task_process = "%.2f" % (float(frame_index_list[i]) / float(all_frames))
put_queue(hb_queue, {"progress": task_process}, timeout=1)
write_or_video_result = t.submit(write_or_video, frame, orFilePath, or_video_file,

Loading…
Cancel
Save