Skip to content

Commit

Permalink
pass cam creds through credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
MateoLostanlen committed Aug 1, 2024
1 parent 85ef7d4 commit 7188bd2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ Additionally, you'll need a `./data` folder which contains:
"169.254.40.1": {
"brand": "reolink",
"type": "ptz",
"cam_user": "admin",
"cam_pwd": "password"
"credentials": [
{
"login": "dummy_login_1",
Expand All @@ -116,6 +118,8 @@ Additionally, you'll need a `./data` folder which contains:
"169.254.40.3": {
"brand": "reolink",
"type": "static",
"cam_user": "admin",
"cam_pwd": "password"
"credentials": [
{
"login": "dummy_login_4",
Expand Down
2 changes: 1 addition & 1 deletion src/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def main(args):
else:
splitted_cam_creds[_ip] = creds

cameras.append(ReolinkCamera(_ip, CAM_USER, CAM_PWD, cam_data["type"], cam_poses, args.protocol))
cameras.append(ReolinkCamera(_ip, cam_data["cam_user"], cam_data["cam_pwd"], cam_data["type"], cam_poses, args.protocol))

engine = Engine(
args.model_path,
Expand Down

0 comments on commit 7188bd2

Please sign in to comment.