Skip to content

New format proposal #1

Description

@nobu-k
{
  "format": "cvmat",
  "width": width,
  "height": height,
  "image": <blob>
}

The current tuples generated from video sources look ilke this. In raspivideo, it also wanted to output raw images and JPEGs. So, I defined the format like below:

{
  "format": "raw",
  "color_model": "rgb",
  "width": width,
  "height": height,
  "image": <blob>
}

Instead of "cvmat", I defined "raw" format containing raw pixel values in a layout specified by the "color_model" field. The "color_model" field is only provided when the format is "raw". "raw" + "bgr" is equivalent to the current "cvmat" format.

I think this is more general and flexible than using the term "cvmat". What do you think?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions