Skip to content
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

quality of color point cloud #187

Open
MichalZuraw opened this issue Dec 21, 2022 · 1 comment
Open

quality of color point cloud #187

MichalZuraw opened this issue Dec 21, 2022 · 1 comment

Comments

@MichalZuraw
Copy link

Hello
Do you know why quality of point cloud from azure kinect sdk tool is better than from python.
i using
`
capture._color = cv2.cvtColor(cv2.imdecode(capture.color, cv2.IMREAD_COLOR), cv2.COLOR_BGR2BGRA)
capture._color_format = pyk4a.ImageFormat.COLOR_BGRA32

    filename = '{date:%Y-%m-%d-%H-%M-%S}.ply'.format(date=datetime.datetime.now())

    transformed = pyk4a.color_image_to_depth_camera(capture.color, capture.depth, playback.calibration, playback.thread_safe)[:,:,:3]

    points=capture.depth_point_cloud.reshape((-1, 3))

    colors = cv2.cvtColor(transformed,cv2.COLOR_RGB2BGR).reshape((-1, 3))

    name=os.path.join(directory,filename)

    save_colorpointcloud(name,points,colors)

`

@rajkundu
Copy link

The quality of the color point cloud is going to depend on the quality of the color image, because the color point cloud is created by transforming the raw depth data into the color camera's perspective. What configuration are you using for your capture? What resolution is your color camera set to?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants