-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Commented out override of -mdmp parameter #1098
base: main
Are you sure you want to change the base?
Commented out override of -mdmp parameter #1098
Conversation
… to always detect all markers during calibration. Not needed.
|
||
|
||
|
||
def calibrate(self): | ||
print("Starting image processing") | ||
stereo_calib = calibUtils.StereoCalibration() | ||
stereo_calib.traceLevel = self.args.traceLevel | ||
stereo_calib = calibUtils.StereoCalibration(self.args.traceLevel, self.args.outputScaleFactor, self.args.disableCamera) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This arguments are deployed in https://github.com/luxonis/depthai-calibration/tree/added_disableCamera not in main branch of depthai_calibration.
@saching13. Should we use then this branch for now as a calibration submodule?
And when changes are deployed in https://github.com/luxonis/Factory-calibration-DepthAI push them to main?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the same feature is coved here. and no other features are coming from your branch. yes. we can use this branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some features are not set properly in this PR (traceLevel, outputScaleFactor, disableRGB, lensPosition) so I created new PR from main and used changes @CenekAlbl suggested.
#1099
else: | ||
cameraProperties = self.device.getConnectedCameraFeatures() | ||
calibData = self.device.readCalibration() | ||
eeprom = calibData.getEepromData() | ||
print(f"Product name: {eeprom.productName}, board name {eeprom.boardName}") | ||
detection = eeprom.productName.split() | ||
if "AF" in detection: | ||
detection.remove("AF") | ||
if "FF" in detection: | ||
detection.remove("FF") | ||
if "9782" in detection: | ||
detection.remove("9782") | ||
self.board_name = '-'.join(detection).upper() | ||
board_path = Path(self.board_name) | ||
if not board_path.exists(): | ||
board_path = (Path(__file__).parent / 'resources/depthai_boards/boards' / self.board_name.upper()).with_suffix('.json').resolve() | ||
if not board_path.exists(): | ||
raise ValueError( | ||
'Board config not found: {}'.format(board_path)) | ||
with open(board_path) as fp: | ||
self.board_config = json.load(fp) | ||
self.board_config = self.board_config['board_config'] | ||
self.board_config_backup = self.board_config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
device.getDeviceName
instead of board_name & upper
and cameraProperties & hasAutofocus instead of parsing AF FF etc...
cam_node.initialControl.setChromaDenoise(4) | ||
|
||
if cam_info['hasAutofocus']: | ||
cam_node.initialControl.setManualFocus(int(self.args.rgbLensPosition[stringToCam[cam_id].name.lower()])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem well defined.
Lets first define how the mapping is done and then do remapping once and use that throughout the codebase
Previously forced fisheye cameras to always detect all markers during calibration. Not needed.