chore: fix some typos in comments (#11028)

Signed-off-by: alongdate <alongyear@outlook.com>
This commit is contained in:
Aida Syoko 2024-04-20 19:16:43 +08:00 committed by GitHub
parent 3ca2d599d3
commit 3d612e510c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -158,7 +158,7 @@ class ObjectDetectProcess:
logging.info("Waiting for detection process to exit gracefully...") logging.info("Waiting for detection process to exit gracefully...")
self.detect_process.join(timeout=30) self.detect_process.join(timeout=30)
if self.detect_process.exitcode is None: if self.detect_process.exitcode is None:
logging.info("Detection process didnt exit. Force killing...") logging.info("Detection process didn't exit. Force killing...")
self.detect_process.kill() self.detect_process.kill()
self.detect_process.join() self.detect_process.join()
logging.info("Detection process has exited...") logging.info("Detection process has exited...")

View File

@ -60,7 +60,7 @@ def stop_ffmpeg(ffmpeg_process, logger):
logger.info("Waiting for ffmpeg to exit gracefully...") logger.info("Waiting for ffmpeg to exit gracefully...")
ffmpeg_process.communicate(timeout=30) ffmpeg_process.communicate(timeout=30)
except sp.TimeoutExpired: except sp.TimeoutExpired:
logger.info("FFmpeg didnt exit. Force killing...") logger.info("FFmpeg didn't exit. Force killing...")
ffmpeg_process.kill() ffmpeg_process.kill()
ffmpeg_process.communicate() ffmpeg_process.communicate()
ffmpeg_process = None ffmpeg_process = None

View File

@ -53,7 +53,7 @@ def get_frame_shape(source):
if video_info["height"] != 0 and video_info["width"] != 0: if video_info["height"] != 0 and video_info["width"] != 0:
return (video_info["height"], video_info["width"], 3) return (video_info["height"], video_info["width"], 3)
# fallback to using opencv if ffprobe didnt succeed # fallback to using opencv if ffprobe didn't succeed
video = cv2.VideoCapture(source) video = cv2.VideoCapture(source)
ret, frame = video.read() ret, frame = video.read()
frame_shape = frame.shape frame_shape = frame.shape