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
Something like
import cv2 import io class MemoryStream: def __init__(self, data): self.buffer = io.BytesIO(data) def read(self, size=-1): return self.buffer.read(size) def seek(self, offset, whence=0): return self.buffer.seek(offset, whence) def tell(self): return self.buffer.tell() with open('your_video.mp4', 'rb') as video_file: video_data = video_file.read() memory_file_object = MemoryStream(video_data) cap = cv2.VideoCapture(memory_file_object)
The text was updated successfully, but these errors were encountered:
pozitronik
No branches or pull requests
Something like
The text was updated successfully, but these errors were encountered: