Color extraction of a video stream
AssigneeSnap Inc.
InventorMaksim Igorevich Gusarov
Life of this patent
Estimating the term…
Abstract
Systems, devices, media, and methods are presented for segmenting an image of a video stream with a client device, extracting one or more color from the image and modifying the video stream. The systems, devices, and method convert images of the set of images to a coordinate representation, perform a histogram equalization, identifies one or more colors of the coordinate representation based on an area of interest, determines a prevailing color, and applies the prevailing color to pixels of the video stream.
Claims20
A computer-implemented method comprising:
- accessing, by one or more processors, a first image of a video stream depicting an object;
- and
- generating a uniform color range using a first range of color values of a color channel of the first image, the generating the uniform color range comprising translating the first range of color values of the color channel of the first image to the uniform color range, the translating comprising:
- computing a difference value between an old color value of a color in the color channel and a minimum of old color values of the color in the color channel;
- computing a ratio of the difference value to a difference between a maximum of the old color values and the minimum of the old color values;
- and
- computing a new color value for the first range of color values by applying a multiplication factor to the ratio.
A system, comprising:
- one or more processors;
- and
- a non-transitory machine-readable storage medium storing processor-executable instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising:
- accessing a first image of a video stream depicting an object;
- and
- generating a uniform color range using a first range of color values of a color channel of the first image, generating the uniform color range comprises translating the first range of color values of the color channel of the first image to the uniform color range, the translating comprising:
- computing a difference value between an old color value of a color in the color channel and a minimum of old color values of the color in the color channel;
- computing a ratio of the difference value to a difference between a maximum of the old color values and the minimum of the old color values;
- and
- computing a new color value for the first range of color values by applying a multiplication factor to the ratio.
A non-transitory machine-readable storage medium storing processor-executable instructions that, when executed by a processor of a machine, cause the machine to perform operations comprising:
- accessing a first image of a video stream depicting an object;
- and
- generating a uniform color range using a first range of color values of a color channel of the first image, generating the uniform color range comprises translating the first range of color values of the color channel of the first image to the uniform color range, the translating comprising:
- computing a difference value between an old color value of a color in the color channel and a minimum of old color values of the color in the color channel;
- computing a ratio of the difference value to a difference between a maximum of the old color values and the minimum of the old color values;
- and
- computing a new color value for the first range of color values by applying a multiplication factor to the ratio.
Dependencies are inferred from the claim text.