File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -212,7 +212,8 @@ def get(self):
212212 if rotate [c ]:
213213 cam [c ].setImageOrientation (dai .CameraImageOrientation .ROTATE_180_DEG )
214214 cam [c ].setFps (args .fps )
215- cam [c ].setIsp3aFps (args .isp3afps )
215+ if args .isp3afps :
216+ cam [c ].setIsp3aFps (args .isp3afps )
216217
217218 if args .enable_raw :
218219 raw_name = 'raw_' + c
@@ -221,7 +222,7 @@ def get(self):
221222 if args .enable_raw :
222223 streams .append (raw_name )
223224 cam [c ].raw .link (xout_raw [c ].input )
224- # to be added cam[c].setRawOutputPacked(False)
225+ cam [c ].setRawOutputPacked (False )
225226
226227if args .camera_tuning :
227228 pipeline .setCameraTuningBlobPath (str (args .camera_tuning ))
@@ -355,7 +356,11 @@ def exit_cleanly(signum, frame):
355356 print ('Saving:' , filename )
356357 frame .tofile (filename )
357358 # Full range for display, use bits [15:6] of the 16-bit pixels
358- frame = frame * (1 << 6 )
359+ type = pkt .getType ()
360+ multiplier = 1
361+ if type == dai .ImgFrame .Type .RAW10 : multiplier = (1 << (16 - 10 ))
362+ if type == dai .ImgFrame .Type .RAW12 : multiplier = (1 << (16 - 4 ))
363+ frame = frame * multiplier
359364 # Debayer color for preview/png
360365 if cam_type_color [c .split ('_' )[- 1 ]]:
361366 # See this for the ordering, at the end of page:
You can’t perform that action at this time.
0 commit comments