Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. ret_gt,frame_gt=cap_pixel_level_gt.read()
  2. cp_frame_gt = deepcopy((frame_gt[:, :, 0] > 200).astype(int))
  3.  
  4. numberOfPixelsBefore=np.count_nonzero(cp_frame_gt)
  5.  
  6. 0
  7. 0
  8. 0
  9. 0
  10. 496
  11. 496
  12. 606
  13. 609
  14. 609
  15.  
  16. cv2.circle(frame_gt,(int(TrajData[ind][0][1]), int(TrajData[ind][0][2])), 4, (0, 0, 0), -1)
  17. cp_frame_gt = deepcopy((frame_gt[:, :, 0] > 200).astype(int))
  18.  
  19. numberOfPixelsAfter=np.count_nonzero(cp_frame_gt)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement