chenyukun 1 рік тому
джерело
коміт
5363a0d363
1 змінених файлів з 1 додано та 1 видалено
  1. +1
    -1
      concurrency/IntelligentRecognitionProcess.py

+ 1
- 1
concurrency/IntelligentRecognitionProcess.py Переглянути файл

@@ -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,

Завантаження…
Відмінити
Зберегти