-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
color_frame intrinsics vs align intrinsics (are same ?) #5658
Comments
@scizors hello. align_to = rs.stream.color
align = rs.align(align_to) |
Hello, From intelrealsense which parameters should I use now ? |
@scizors, As for using 3rd part calibration with camera - currently this option is relevant only for OEM customers. |
Assume resolved |
D415 camera
code :python
Problem: color intrinsics and align intrinsics are same why?
#code color_intrinsics:
import pyrealsense2 as rs
import numpy as np
import cv2
pipeline = rs.pipeline()
config = rs.config()
config.enable_stream(rs.stream.depth, 1280, 720, rs.format.z16, 6)
config.enable_stream(rs.stream.color, 1280, 720, rs.format.bgr8, 6)
profile = pipeline.start(config)
frames = pipeline.wait_for_frames()
color_frame = frames.get_color_frame()
intrinsics=color_frame.profile.as_video_stream_profile().intrinsics
output color_intrinsics:
width: 1280, height: 720, ppx: 630.005, ppy: 376.119, fx: 925.769, fy: 925.476, model: 2, coeffs: [0, 0, 0, 0, 0]
#code:align intrinsics
import pyrealsense2 as rs
import numpy as np
import cv2
pipeline = rs.pipeline()
config = rs.config()
config.enable_stream(rs.stream.depth, 1280, 720, rs.format.z16, 6)
config.enable_stream(rs.stream.color, 1280, 720, rs.format.bgr8, 6)
profile = pipeline.start(config)
frames = pipeline.wait_for_frames()
align_to = rs.stream.color
align = rs.align(align_to)
aligned_frames = align.process(frames)
aligned_depth_frame = aligned_frames.get_depth_frame()
intrinsics = aligned_depth_frame.profile.as_video_stream_profile().intrinsics
output:align intrinsics
width: 1280, height: 720, ppx: 630.005, ppy: 376.119, fx: 925.769, fy: 925.476, model: 2, coeffs: [0, 0, 0, 0, 0]
The text was updated successfully, but these errors were encountered: