Jump to content
Private Messaging is activated - check "How to" on how to disable it ×

Numpy data shifting?


---
 Share

Recommended Posts

We are trying to read the image pixel data, but we noticed something strange. The Numpy image array seems to be shifting by 12 pixels between each stage. Is this a bug? And/or as anyone experienced this and found a solution to normalize the drift? 

 
image = np.array (gom.app.project.measurement_series['Deformation 1'].measurements['D1'].images['left camera'].data.rgb)
 
for S in gom.app.project.stages:
    print(S, S.index)
    cv2.imshow('Frame', image[S.index])
    if cv2.waitKey(400) & 0xFF == ord('q'😞  # Waits for 40ms between frames, press 'q' to quit
        break
Link to comment
Share on other sites

 Share

×
×
  • Create New...