MCPcopy Create free account
hub / github.com/SpectacularAI/sdk / create_gray_encoder

Function create_gray_encoder

python/cli/record/oak.py:213–219  ·  view source on GitHub ↗
(node, name)

Source from the content-addressed store, hash-verified

211
212 if args.gray:
213 def create_gray_encoder(node, name):
214 videoEnc = pipeline.create(depthai.node.VideoEncoder)
215 xout = pipeline.create(depthai.node.XLinkOut)
216 xout.setStreamName("h264-" + name)
217 videoEnc.setDefaultProfilePreset(30, depthai.VideoEncoderProperties.Profile.H264_MAIN)
218 node.link(videoEnc.input)
219 videoEnc.bitstream.link(xout.input)
220
221 create_gray_encoder(vio_pipeline.stereo.rectifiedLeft, 'left')
222 create_gray_encoder(vio_pipeline.stereo.rectifiedRight, 'right')

Callers 1

recordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected