-
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
Bounding box #2016
Comments
You can easily tune the "depth of acquisition" (which would be the depth of the bounding box you are talking about) by adjusting the Depth Clamp Min/Max in the Intel RealSense Viewer, and export your ".json". However, I don't believe there is a way to "crop" the FOV of the camera within the SDK (let me know if i'm wrong because I want to know too). If you actually want to scan a face, I would recommend that you simply put the camera as close as possible to the target by making it fitting tightly in the FOV (use the Viewer to find the best parameters). You won't really need to define a bounding box when being close to the edges of the FOV, and you'll have the max achievable quality (as the error depends of the distance). I believe you can set the camera at around 250-300 mm away from your face to start tuning. The FOV of the camera in the "normal" position ("landscape") is obviously a horizontal rectangle, so you can also try to rotate it by 90° to fit the face better ("portrait" mode ?), and thus focusing almost exclusively on the acquisition of your face. Keep us updated |
Hey, This method is probably slower than tuning the parameters from the start as @AntoineWefit mentions, because of the filtering and the vectors that store the points, but it provides the basic utilities that you are looking for. |
@AntoineWefit thank you for your answer ! Your solution did the trick. I set up depth clamp Min/Max so that I can only see the face, and when the camera is close enough I indeed don't need to crop the rest ! It would have been better to have a real way to do it, but for now it works so it is okay. I hope developers will add something to efficiently add a bounding box. The SDK seems very powerful but too young yet. @LeoSarog thank you for your answer. But I don't want to use PCL, I already added a bounding box through it but as I said the frame drop due to converting is too much for me. That is why I want to only use the RealSense SDK. (the ticket can be closed thanks ^^) |
Issue Description
Hello,
I looked a lot to the source code of the librealsense and checked out a lot of examples, but I couldn't find anything about adding a bounding box to what the camera outputs. I actually just want a scan of my face, I don't want far away info. I would like to do it through intel realsense SDK since when I use PCL I don't get a lot of framerates (because of the function pointsToPCL I think).
Do you know how I can easily do that through the SDK ?
Thank you !
Danny,
The text was updated successfully, but these errors were encountered: