-
Notifications
You must be signed in to change notification settings - Fork 32
Background only images #21
Comments
@anilesec I don't understand fully. Can you please elaborate? |
Sure :) |
@anilesec we don't have that, sorry. But background subtraction (or foreground extraction) should not be too difficult if you start from the example we have provided for cropping the area around hand-object: https://github.com/facebookresearch/ContactPose/blob/main/docs/doc.md#image-preprocessing. |
Thanks for the pointer. But in this case, you use a 3D model(mesh) of the object to get foreground masks. I am looking to extract foreground mesh using only images(without using 3d model/mesh of the hand or object). Isn't this as good as using GT masks to extract foreground image? |
@anilesec it has been a while since I looked at the code, but if you look after this line https://github.com/facebookresearch/ContactPose/blob/main/scripts/preprocess_images.py#L101, the foreground mask is derived from colour and depth thresholding. Rendering is used only to decide the threshold value for depth thresholding. That can be approximated using the object pose + approximate object dimensions. Then rendering or object/hand meshes are not needed. |
Hi @samarth-robo
Is it possible to release the background only image for the ho3d sequences? I need this to extract only the foreground of each sequence.
Thanks in advance!
The text was updated successfully, but these errors were encountered: