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

Detect Changes #68

Open
Marwanon opened this issue Nov 23, 2020 · 1 comment
Open

Detect Changes #68

Marwanon opened this issue Nov 23, 2020 · 1 comment

Comments

@Marwanon
Copy link

Hi Dear;
I was looking at your code, I found this part Detect Changes
I need help to understand what does it mean 0.3 , 0.01, et?. what is the standard of 300 and how it is obtained to be as change_threshold?.
May anyone help me in clarification this part, please?.
I'd appreciate your cooperation

`if 'prev_color_img' in locals():

    # Detect changes
    depth_diff = abs(depth_heightmap - prev_depth_heightmap)
    depth_diff[np.isnan(depth_diff)] = 0
    depth_diff[depth_diff > 0.3] = 0
    depth_diff[depth_diff < 0.01] = 0
    depth_diff[depth_diff > 0] = 1
    change_threshold = 300
    change_value = np.sum(depth_diff)
    change_detected = change_value > change_threshold or prev_grasp_success  
    print('Change detected: %r (value: %d)' % (change_detected, change_value))`

Sincerely

@Bensonwyz
Copy link

Can your camera capture real scene images? My camera D415 failed to capture images. I don’t know what’s wrong. I can see from the camera software that it works normally, but the program does not generate the corresponding image, and the program has been stuck in the while loop of the camera.py. Could you help me?

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