Skip to content

Commit

Permalink
Merge pull request #1057 from luxonis/fix_sync_timedelta
Browse files Browse the repository at this point in the history
Fix examples
  • Loading branch information
Erol444 authored Aug 14, 2024
2 parents b2f5ede + 8de0cd7 commit 15f6847
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/ImageAlign/depth_align.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def getFps(self):

out.setStreamName("out")

sync.setSyncThreshold(timedelta(seconds=(1 / FPS) * 0.5))
sync.setSyncThreshold(timedelta(seconds=0.5 / FPS))

# Linking
camRgb.isp.link(sync.inputs["rgb"])
Expand Down
2 changes: 1 addition & 1 deletion examples/ImageAlign/image_align.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

out.setStreamName("out")

sync.setSyncThreshold(timedelta(seconds=(1 / FPS) * 0.5))
sync.setSyncThreshold(timedelta(seconds=0.5 / FPS))

cfgIn.setStreamName("config")

Expand Down
2 changes: 1 addition & 1 deletion examples/ImageAlign/thermal_align.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def getFps(self):

out.setStreamName("out")

sync.setSyncThreshold(timedelta(seconds=1/FPS * 0.5))
sync.setSyncThreshold(timedelta(seconds=0.5 / FPS))

cfgIn.setStreamName("config")

Expand Down
2 changes: 1 addition & 1 deletion examples/ImageAlign/tof_align.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def getFps(self):

out.setStreamName("out")

sync.setSyncThreshold(timedelta(seconds=(1 / FPS)))
sync.setSyncThreshold(timedelta(seconds=0.5 / FPS))

# Linking
camRgb.isp.link(sync.inputs["rgb"])
Expand Down

0 comments on commit 15f6847

Please sign in to comment.