Skip to content

Commit

Permalink
mono_preview_alternate_pro: default to a lower resource usage config …
Browse files Browse the repository at this point in the history
…for PoE
  • Loading branch information
alex-luxonis committed Oct 7, 2022
1 parent d08a688 commit 4517dc8
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions examples/MonoCamera/mono_preview_alternate_pro.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
import cv2
import depthai as dai

fps = 30
res = dai.MonoCameraProperties.SensorResolution.THE_720_P
poolSize = 8 # default 3, increased to prevent desync
if 1: # PoE config
fps = 30
res = dai.MonoCameraProperties.SensorResolution.THE_400_P
poolSize = 24 # default 3, increased to prevent desync
else: # USB
fps = 30
res = dai.MonoCameraProperties.SensorResolution.THE_720_P
poolSize = 8 # default 3, increased to prevent desync

# Create pipeline
pipeline = dai.Pipeline()
Expand Down Expand Up @@ -38,7 +43,7 @@
script = pipeline.create(dai.node.Script)
script.setProcessor(dai.ProcessorType.LEON_CSS)
script.setScript("""
dotBright = 500
dotBright = 500 # Note: recommended to not exceed 765, for max duty cycle
floodBright = 200
LOGGING = False # Set `True` for latency/timings debugging
Expand Down

0 comments on commit 4517dc8

Please sign in to comment.