Method for compressing image data collected by camera and electronic device for supporting the method
AssigneeSamsung Electronics Co., Ltd.
InventorYoungkeun Choi
Life of this patent
Estimating the term…
Abstract
A technique is provided to allow an optimal image data compression by compressing image data, collected by a camera, on a more suitable compression condition. In a method for compressing image data, an electronic device generates preview data of an original image collected through the camera, calculates a first compression ratio based on analyzing complexity of the preview data relating to pixel distribution of the original image, and compresses a capture image, selected in response to a capture command, corresponding to the preview data on the basis of the calculated first compression ratio.
Claims20
A method for compressing image data of a camera, the method comprising:
- generating preview data of an image collected through the camera, wherein the preview data is generated from the collected image without further encoding;
- determining a first compression ratio through analyzing complexity of the preview data;
- and
- compressing a capture image as a function of the determined first compression ratio, wherein the capture image corresponds to the preview data selected in response to a capture command for capturing the collected image,
- wherein determining the first compression ratio comprises determining a compression ratio for each object contained in the preview data by referring a Q table, the Q table comprising compression ratios of the objects.
An electronic device comprising:
- a camera configured to collect an image;
- a memory unit configured to store a Q table;
- and
- a control unit configured to:
- generate preview data of the collected image, wherein the preview data is generated from the collected image without further encoding,
- analyze complexity of the preview data,
- determine at least one of a first compression ratio for a capture image through the analyzed complexity and a second compression ratio for a thumbnail image corresponding to the capture image, and
- compress at least one of the capture image and the thumbnail image as a function of at least one of the first compression ratio and the second compression ratio,
- wherein the capture image corresponds to the preview data selected in response to a capture command for capturing the collected image, and
- wherein, to determine the first compression ratio, the control unit is further configured to determine a compression ratio for each object contained in the preview data by referring to a Q table, the Q table comprising compression ratios of the objects.
A non-transitory computer readable media containing processor readable code, the processor readable code comprising a set of instructions, that when executed by one or more processors, cause the one or more processors to:
- generate preview data of an image collected through the camera, wherein the preview data is generated from the collected image without further encoding;
- determine a first compression ratio through analyzing complexity of the preview data;
- and
- compress a capture image as a function of the determined first compression ratio, wherein the capture image corresponds to the preview data selected in response to a capture command for capturing the collected image,
- wherein determining the first compression ratio comprises determining a compression ratio for each object contained in the preview data by referring a Q table, the Q table comprising compression ratios of the objects.
Dependencies are inferred from the claim text.