Skip to content

Commit 87942d0

Browse files
committed
fix: enhance input file check
if user select camera as input, it will not check for file presence.
1 parent 7c1fb72 commit 87942d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def infer_on_stream(args):
111111
args.face_det_m, args.lmar_det_m, args.h_pose_m, args.g_est_m,
112112
args.input
113113
]:
114-
if not Path(_).is_file():
114+
if not Path(_).is_file() and str(_).upper() != "CAM":
115115
error_message = "This file is not Present: \"{}\" Check the file please".\
116116
format(_)
117117
logger.error(error_message)

0 commit comments

Comments
 (0)