We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code should be available as a method of Frame instances, in order to convert the frame to numpy array in uint8 image format.
Code example
frame = frame.detach() frame = frame.norm255() frame = frame.cpu() frame = frame.type(torch.uint8) frame = frame.rename(None) frame = frame.permute([1, 2, 0]) frame = frame.contiguous() frame = frame.numpy()
The text was updated successfully, but these errors were encountered:
This can be implement on top of as_numpy()
as_numpy()
Sorry, something went wrong.
eleonorefrcs
No branches or pull requests
The following code should be available as a method of Frame instances, in order to convert the frame to numpy array in uint8 image format.
Code example
The text was updated successfully, but these errors were encountered: