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

Zoom option fort realsense SDK #10426

Closed
ilyak93 opened this issue Apr 21, 2022 · 9 comments
Closed

Zoom option fort realsense SDK #10426

ilyak93 opened this issue Apr 21, 2022 · 9 comments
Labels

Comments

@ilyak93
Copy link

ilyak93 commented Apr 21, 2022

Is there generally an adjustable option to control the zoom of the camera, i.e like toggling between 100% (original view) and more, like 150% for example is like x1.5 view and e.t.c ?

It's not very critical for my work and I'm some skeptical that it exists, because its probably would need calibration (different extrinsics) to different zoom modes of the depth info and e.t.c.

@MartyG-RealSense
Copy link
Collaborator

Hi @ilyak93 You can zoom in and out on pointclouds using the mouse scroll-wheel. The RealSense Viewer's 3D pointcloud mode and SDK pointcloud examples for C++ (rs-pointcloud) and Python (opencv_pointcloud_viewer.py) have this function.

In the Viewer you can also toggle between windowed and fullscreen modes with the F8 keyboard key, though whether you achieve an enlarged view may depend on the current resolution that your computer screen is displaying at.

@ilyak93
Copy link
Author

ilyak93 commented Apr 21, 2022

@MartyG-RealSense, I meant for something else a bit. Like for example I have another camera that I place near the realsense and I also calibrate them both for some mutual filming. But the other camera view field looks like it zoomed relatively to the realsense camera. So I wondered If there is some option in rs2::config or something to zoom in the realsense camera, so the rgb and depth images will be more similar to the other camera field of view (so it will be easy to calibrate the different cameras), like playing with it zooming in to different zoom levels.

@MartyG-RealSense
Copy link
Collaborator

Is the other camera a non-RealSense camera, please?

@ilyak93
Copy link
Author

ilyak93 commented Apr 21, 2022

@MartyG-RealSense, exactly.

@MartyG-RealSense
Copy link
Collaborator

So this is in relation to your recent case at #10363 where you were aiming to align a RealSense and non-RealSense camera, yes?

This seems to be the kind of situation where an image such as Apriltag or ArUco tag, or a chessboard, could be used to calibrate the position of multiple cameras relative to each other. An example of this is the SDK's Python example program box_dimensioner_multicam that auto-calibrates camera positions when the program launches, or a demo in January 2020 (in the YouTube link below) where Intel used Apriltag images to calibrate the position of nine L515 cameras relative to each other.

https://www.youtube.com/watch?v=UzIfn667abE


My understanding though is that if software_device is being used then it should just be a matter of providing the intrinsics and extrinsics of both cameras, as described in #4202

@ilyak93
Copy link
Author

ilyak93 commented Apr 21, 2022

@MartyG-RealSense, yes this is the case. But I wanted manually to help the calibration by making the two cameras see as much as similar scene, by manually zooming in the real sense. I already make some partial success in calibrating them and I noticed that maybe zooming in the realsense field of view could improve it.

@MartyG-RealSense
Copy link
Collaborator

You could possibly downscale the image resolution without changing the defined stream resolution if you use the Decimation post-processing filter. It automatically rescales the depth image whilst preserving the image's aspect ratio.

https://dev.intelrealsense.com/docs/post-processing-filters

@MartyG-RealSense
Copy link
Collaborator

Hi @ilyak93 Do you require further assistance with this case, please? Thanks!

@MartyG-RealSense
Copy link
Collaborator

Case closed due to no further comments received.

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

No branches or pull requests

2 participants