Skip to content

Instantly share code, notes, and snippets.

@bml1g12
Last active December 28, 2020 15:20
Show Gist options
  • Save bml1g12/d3313bea2143441ff91a96d065ffbd8b to your computer and use it in GitHub Desktop.
Save bml1g12/d3313bea2143441ff91a96d065ffbd8b to your computer and use it in GitHub Desktop.
A baseline consumer
for _ in range(n_frames):
# produce the frame
np_arr = prepare_random_frame(np_arr_shape)
# consume the frame and do some example processing
_ = np_arr.astype("uint8").copy() * 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment