-
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
Overlaying Edge Map Preset on top of Depth Image #11288
Comments
Hi @SeanyTea I can see a couple of possibilities for capturing before and after images.
If you need to display both the original and edge-map image simultaneously in real-time, an approach that may work is to define two pipelines, and use the depth frames from pipeline 1 in pipeline 2 and apply the TextureCountThreshold and TextureDifferenceThreshold settings changes to pipeline 2. A Python example for setting up two separate pipelines is at #5628 (comment) whilst a script example for two separate pipeline configurations and frame references is at #1735 (comment) |
Hi @MartyG-RealSense , Thanks for the response. I am looking to display these images in real-time, so I don't think the first approach works quite well as it takes ~ 1.5 seconds to reload the pipeline. The multi-pipeline approach seems like an intuitive approach, but the references you listed appear to use either (a) multiple devices/cameras, or (b) two different sensors (i.e. RGB/IMU/depth), and thus two separate pipelines can be created. When I attempt to initialize two different pipelines, I run into either of the following errors at pipeline2.start(config):
|
The script at #5628 (comment) should work with a single camera and put depth + color on one pipeline and the IMU on the other pipeline on its own. Do you receive errors if you test the script at that link, please? Use of Raspberry Pi could also be a factor in your problem, as some RealSense users have had problems with accessing the IMU on Pi boards, as discussed at #11089 |
I see, I should have clarified beforehand that we would like to make use of strictly the depth sensor, and disregard the RGB color camera altogether. On a related note, but perhaps a side topic, would you be able to describe the details of the TextureCountThreshold? I cannot seem to find any documentation on it. Please let me know if that would be possible, and if so, if I should open a new issue. If there are no other options to get the raw depth info prior to performing the edge detection, you can go ahead and close this issue. Thanks! |
Advanced Mode functions are not documented, as they interact with each other in complex ways and so Intel controls them with machine-learning algorithms instead. RealSense users are free to experiment with the settings though to test how they affect the image. In the case of Texture Count Threshold though, my Intel RealSense colleagues have provided a detailed explanation about it (and also Texture Difference Threshold) at #10608 (comment) |
Hi @SeanyTea Do you require further assistance with this case, please? Thanks! |
Case closed due to no further comments received. |
Issue Description
Hello, I have been playing around with the presets for the Intel Realsense D435, specifically the Edge Map preset. I would like to know if there is a way to access the depth image at the same time as the edge map. For instance, I can obtain the two images shown below using two different presets:
where the first one contains the edge map, and the second contains the depth info. Ideally, I would like to overlay the first on top of the second to enhance the edges/facial features.
I am aware that the following two lines control the edge preserving filter:
"param-texturecountthresh": "24", "param-texturedifferencethresh": "126",
,but am unsure if I can access the frame prior to applying this filter.
The text was updated successfully, but these errors were encountered: