![]() ![]() and your requirement of a virtual device would take that ![]() format because `imwrite` requires a file extension (Seems to be unavoidable if you want a proper serialized ![]() Cook up a test opencv::core::Mat to play with This is the first time I've used OpenCV outside Python, so it's probably not the best way, but would this be more what you're looking for? use std::fs::File (I know this because I've had to hand image data back and forth between PyOpenCV and PyQt5 with minimal copying.) It's much simpler to just use a standard format for that rather than reinventing an uncompressed image format like. However, you probably don't want to save the raw frame data to a file, since a raw dump of it is likely to not contain all the metadata necessary to interpret it.Īt the bare minimum, you'd also need to store the pixel format (and thus, the bit depth and ordering of color components within each pixel, as well as length of a pixel in bytes) and the row/column length. The OpenCV API wrapper is a pretty thin abstraction, so I can see why you'd be confused by that. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |