You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
help="Do not use samples where the calibration pattern is moving faster \
134
134
than this speed in px/frame. Set to eg. 0.5 for rolling shutter cameras.")
135
+
parser.add_option("-r", "--range-policy",
136
+
type="string", default="upper",
137
+
help="For 16 bit images, the policy to use for determining the range of pixel values to use for thresholding. Choose from 'upper', 'dynamic', or 'legacy'.")
135
138
136
139
parser.add_option_group(group)
137
140
@@ -219,10 +222,13 @@ def main():
219
222
else:
220
223
checkerboard_flags=cv2.CALIB_CB_FAST_CHECK
221
224
225
+
range_policy=options.range_policy
226
+
assertrange_policyin ['upper', 'dynamic', 'legacy'], "Invalid range policy: %s"%range_policy
0 commit comments