Detect Changes
Marwanon opened this issue · comments
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
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?