Image data processing method and apparatus
First Claim
1. An electronic device, comprising:
- an image sensor configured to obtaining image data;
a processor-readable storage medium including a set of instructions for image data processing; and
a processor in communication with the image sensor and the processor-readable storage medium, wherein when executing the set of instructions, the processor is directed to;
load preview image data having a first length-width ratio from the image sensor;
acquire target information including at least one of a feature image, current time information, and geographical location information of the electronic device;
load the target information in the preview image data by using a canvas category;
obtain a first coordinate location of the target information in the preview image data;
drive the image sensor to generate target image data having a second length-width ratio different from the first length-width ratio;
calculate a second coordinate location in the target image data using the canvas category and based on the first coordinate location, the first length-width ratio, and the second length-width ratio, wherein the second coordinate location is different from the first coordinate location; and
embed the target information into the target image data at the second coordinate location in the target image data by using the canvas category to generate an output image.
1 Assignment
0 Petitions
Accused Products
Abstract
An image data processing method and apparatus are disclosed. The method comprises: loading preview image data input by image hardware; acquiring at least one of a feature image, current time information, and geographical location information; loading at least one of the feature image, the time information, and the geographical location information in the preview image data by using a canvas category; driving the image hardware to generate target image data; and embedding at least one of the feature image, the time information, and the geographical location information into the target image data according to a first coordination location in the preview image data by using the canvas category. The present disclosure implements automatic post processing of image data without the need to open a professional image processing tool to perform post processing, thereby greatly improving the convenience of operation, reducing the threshold of operation and time.
31 Citations
17 Claims
-
1. An electronic device, comprising:
-
an image sensor configured to obtaining image data; a processor-readable storage medium including a set of instructions for image data processing; and a processor in communication with the image sensor and the processor-readable storage medium, wherein when executing the set of instructions, the processor is directed to; load preview image data having a first length-width ratio from the image sensor; acquire target information including at least one of a feature image, current time information, and geographical location information of the electronic device; load the target information in the preview image data by using a canvas category; obtain a first coordinate location of the target information in the preview image data; drive the image sensor to generate target image data having a second length-width ratio different from the first length-width ratio; calculate a second coordinate location in the target image data using the canvas category and based on the first coordinate location, the first length-width ratio, and the second length-width ratio, wherein the second coordinate location is different from the first coordinate location; and embed the target information into the target image data at the second coordinate location in the target image data by using the canvas category to generate an output image. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A method for image data processing, comprising:
-
loading, by an electronic device comprising a processor-readable storage medium, an image sensor, and a processor in communication with the image sensor and the processor-readable storage medium, preview image data having a first length-width ratio from the image sensor of the electronic device; acquiring, by the electronic device, target information including at least one of a feature image, current time information, and geographical location information of the electronic device; loading, by the electronic device, the target information in the preview image data by using a canvas category; obtaining a first coordinate location of the target information in the preview image data; driving, by the electronic device, the image sensor to generate target image data having a second length-width ratio different from the first length-width ratio; calculating a second coordinate location in the target image data using the canvas category and based on the first coordinate location, the first length-width ratio, and the second length-width ratio, wherein the second coordinate location is different from the first coordinate location; and embedding, by the electronic device, the target information into the target image data at the second coordinate location in the target image data by using the canvas category to generate an output image. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A non-transitory processor-readable storage medium, comprising a set of instructions for image data processing, wherein when executed by a processor of an electronic device in communication with an image sensor, the set of instructions directs the processor to perform acts of:
-
loading preview image data having a first length-width ratio from the image sensor of the electronic device; acquiring target information including at least one of a feature image, current time information, and geographical location information of the electronic device; loading the target information in the preview image data by using a canvas category; obtaining a first coordinate location of the target information in the preview image data; driving the image sensor to generate target image data having a second length-width ratio different from the first length-width ratio; calculating a second coordinate location in the target image data using the canvas category and based on the first coordinate location, the first length-width ratio, and the second length-width ratio, wherein the second coordinate location is different from the first coordinate location; and embedding the target information into the target image data at the second coordinate location in the target image data by using the canvas category to generate an output image. - View Dependent Claims (16, 17)
-
Specification