CN107835362B - Image storage method, image display method and electronic equipment - Google Patents

Image storage method, image display method and electronic equipment Download PDF

Info

Publication number
CN107835362B
CN107835362B CN201711035714.6A CN201711035714A CN107835362B CN 107835362 B CN107835362 B CN 107835362B CN 201711035714 A CN201711035714 A CN 201711035714A CN 107835362 B CN107835362 B CN 107835362B
Authority
CN
China
Prior art keywords
image
data
processing
file
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711035714.6A
Other languages
Chinese (zh)
Other versions
CN107835362A (en
Inventor
白剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711035714.6A priority Critical patent/CN107835362B/en
Publication of CN107835362A publication Critical patent/CN107835362A/en
Application granted granted Critical
Publication of CN107835362B publication Critical patent/CN107835362B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)
  • Studio Devices (AREA)

Abstract

The invention provides an image storage method, an image display method and electronic equipment, wherein the image storage method comprises the following steps: acquiring at least one image to be processed through a camera device; processing the at least one image to obtain image data of a target image; acquiring key image processing data generated in the at least one image processing process; storing the image data and the image processing data simultaneously. By storing the image data of the target image after the acquired image is processed and storing the image processing data generated in the image processing process, sufficient image data can be provided for image display, a foundation is laid for ensuring the optimal display effect of the image, and the defect that only the image to be displayed is stored in the prior art is overcome.

Description

Image storage method, image display method and electronic equipment
Technical Field
The present invention relates to the field of image acquisition technologies, and in particular, to an image storage method, an image display method, and an electronic device.
Background
At present, after the electronic device finishes image acquisition, the acquired image is usually directly stored and displayed, or the acquired image is processed and then the processed image is stored and displayed.
Generally, images are processed during image acquisition and display, and the two processing processes are independent of each other, which easily results in the display effect of the finally displayed images being reduced.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
The invention provides an image storage method, which can provide sufficient image data for image display, lay a foundation for ensuring the optimal display effect of the image and make up the defect that the prior art only stores the image to be displayed by storing the image data of the target image after the acquired image is processed and storing the image processing data generated in the image processing process when the image is stored.
The invention also provides an image display method, which can improve the display effect of the image, ensure the authenticity of the displayed image and solve the technical problem that the display effect of the image after two times of processing in the prior art is reduced by acquiring the stored image data and the image processing data of the target image when the image is displayed and restoring the image data by utilizing the image processing data to obtain the displayed image.
The invention also provides the electronic equipment.
The invention also provides another electronic device.
The invention also provides a non-transitory computer readable storage medium.
The invention also provides another non-transitory computer readable storage medium.
An embodiment of a first aspect of the present invention provides an image storage method, including:
acquiring at least one image to be processed through a camera device;
processing the at least one image to obtain image data of a target image;
acquiring key image processing data generated in the at least one image processing process;
storing the image data and the image processing data simultaneously.
According to the image storage method, at least one image to be processed is obtained through the camera device, the at least one image is processed, image data of a target image is obtained, key image processing data generated in at least one image processing process are obtained, and the image data and the image processing data are stored at the same time. By storing the image data of the target image after the acquired image is processed and storing the image processing data generated in the image processing process, sufficient image data can be provided for image display, a foundation is laid for ensuring the optimal display effect of the image, and the defect that only the image to be displayed is stored in the prior art is overcome.
An embodiment of a second aspect of the present invention provides an image display method, including:
receiving a display instruction for indicating to display the target image;
acquiring an image file of a target image; the image file comprises image data and image processing data of the target image; the image processing data is generated in the process of processing at least one collected image to obtain the target image;
and restoring the image data by using the image processing data to obtain a first image for displaying.
According to the image display method provided by the embodiment of the invention, when a display instruction for displaying the target image is received, the image data and the image processing data of the target image are acquired, and the image data is restored by using the image processing data to obtain the first image for displaying. The image data and the image processing data of the stored target image are acquired when the image is displayed, and the image data is restored by utilizing the image processing data to obtain the display image, so that the display effect of the image can be improved, the authenticity of the displayed image is ensured, and the technical problem that the display effect of the image after two times of processing in the prior art is reduced is solved.
An embodiment of a third aspect of the present invention provides an electronic device, including:
the camera module is used for acquiring at least one image to be processed;
the processing module is used for processing the at least one image to obtain image data of a target image;
an acquisition module for acquiring key image processing data generated in the at least one image processing process;
and the storage module is used for simultaneously storing the image data and the image processing data.
According to the electronic equipment provided by the embodiment of the invention, the image data of the target image is obtained by acquiring at least one image to be processed and processing the at least one image, the key image processing data generated in the image processing process is acquired, and the image data and the image processing data are stored at the same time. By storing the image data of the target image after the acquired image is processed and storing the image processing data generated in the image processing process, sufficient image data can be provided for image display, a foundation is laid for ensuring the optimal display effect of the image, and the defect that only the image to be displayed is stored in the prior art is overcome.
A fourth aspect of the present invention provides another electronic device, including:
the receiving module is used for receiving a display instruction for indicating the display of the target image;
the acquisition module is used for acquiring an image file of a target image; the image file comprises image data and image processing data of the target image; the image processing data is generated in the process of processing at least one collected image to obtain the target image;
and the restoring module is used for restoring the image data by using the image processing data to obtain a first image for displaying.
According to the electronic device provided by the embodiment of the invention, when the display instruction for displaying the target image is received, the image data and the image processing data of the target image are acquired, and the image data is restored by using the image processing data to obtain the first image for displaying. The image data and the image processing data of the stored target image are acquired when the image is displayed, and the image data is restored by utilizing the image processing data to obtain the display image, so that the display effect of the image can be improved, the authenticity of the displayed image is ensured, and the technical problem that the display effect of the image after two times of processing in the prior art is reduced is solved.
A fifth aspect of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the image processing method according to the first aspect.
A sixth aspect of the present invention provides another non-transitory computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the image display method according to the second aspect.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of an image storage method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an image display method according to an embodiment of the invention;
FIG. 3 is a flowchart illustrating an image display method according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another electronic device according to an embodiment of the invention;
fig. 6 is a schematic structural diagram of another electronic device according to another embodiment of the present invention; and
fig. 7 is a schematic structural diagram of an image processing circuit in a terminal according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
An image storage method, an image display method, and an electronic apparatus according to an embodiment of the present invention are described below with reference to the drawings.
At present, chip and electronic device companies related to image acquisition process the development of image acquisition and image display technologies separately. The research on the image capturing technology focuses on the display effect of the captured image on a computer, and the research on the image display technology focuses on obtaining the optimal display effect through parameter adjustment. Because the finally displayed image is subjected to two image processing operations, the details of the displayed image are easily lost, and the real scene cannot be accurately displayed.
In addition, the existing image capturing technology directly stores a captured image after capturing the image, or stores a processed image to directly read the stored image when displaying the image.
In order to solve the above problems, the present invention provides an image storage method and an image display method to improve the display effect of an image.
Fig. 1 is a schematic flowchart of an image storage method according to an embodiment of the present invention, which can be executed by an electronic device with an image capturing function, where the electronic device can be a smart phone, a tablet computer, a digital camera, or the like.
As shown in fig. 1, the image storing method includes the steps of:
step 101, at least one image to be processed is acquired by a camera device.
In an electronic apparatus having an image capturing function, an image pickup device is inevitably mounted. In this embodiment, after the image capture function of the electronic device is started, at least one image to be processed may be acquired by a camera device installed in the electronic device.
And 102, processing at least one image to obtain image data of a target image.
Wherein, the target image is an image obtained by processing at least one image. The image data is data obtained by processing at least one image acquired by the imaging device, and a target image can be obtained by using the image data.
As an example, when the image to be processed acquired by the image capturing device is one image, the target image may be an image obtained by processing the image acquired by the image capturing device by brightness, saturation, white balance, or the like.
As an example, when the image to be processed acquired by the image capturing apparatus is a plurality of images, the target image may be one image obtained by fusing the plurality of images. For example, when the image to be processed acquired by the image capturing device is two images, the target image may be obtained by stitching an a region of one image and a B region of the other image. Further, it is also possible to perform processing such as luminance, saturation, white balance, and the like on one image obtained by fusing a plurality of images, and to use the processed image as a target image.
In this embodiment, after processing at least one acquired image to obtain a target image, image data of the target image is obtained.
Step 103, acquiring at least one key image processing data generated in the image processing process.
When at least one image is processed, key image processing data generated in the processing process can be acquired, for example, an adopted processing algorithm, a saturation adjustment parameter and the like are acquired.
As an example, when the acquired image is one image, the image processing data may include one or more of a processing algorithm employed in the processing, a saturation of the original image, a saturation after the processing, a saturation adjustment parameter, a brightness adjustment parameter, and the like.
As another example, when the acquired image is a plurality of images, the image processing data may include redundant data deleted during the processing, in addition to one or more of a processing algorithm used during the processing, a saturation of an original image, a saturation after the processing, a saturation adjustment parameter, a brightness adjustment parameter, and the like. The redundant data is deleted data when image fusion is performed. For example, the target image is obtained by using the a region in the first image and the B region in the second image, and the B region in the first image and the a region in the second image are deleted in the fusion process, so that the B region in the first image and the a region in the second image are redundant data, and the electronic device can acquire the data as image processing data.
Step 104, storing the image data and the image processing data simultaneously.
In this embodiment, after the image data of the target image and the image processing data generated in the image processing process are acquired, the image data and the image processing data may be stored at the same time. The present embodiment provides three ways of storing image data and image processing data.
As one of the storage means, the image processing data may be stored behind the image data. Specifically, a file may be formed for the image data, and the image data and the image processing data may be stored in the file. Wherein the image processing data may be stored after the image data. The file format may be a picture format, such as a jpg format, a bmp format, and the like.
As another storage method, the image data and the image processing data may be stored separately. Specifically, a first file may be formed for the image processing data, the image processing data may be stored in the first file, a second file may be formed for the target image, the image data may be stored in the second file, and a mapping relationship between the second file and the first file may be established. The file formats of the first file and the second file may be the same or different. In this example, the mapping relationship between the second file and the first file may be stored in the second file.
As still another storage method, it is possible to store the image data and the image processing data separately, and store the image processing data in a specific storage space. Specifically, it is possible to store image processing data into a set storage space, form a file for a target image, store image data into the file, and add address information of the storage space to the file.
In the image storage method of this embodiment, at least one image to be processed is acquired by the imaging device, the at least one image is processed to obtain image data of the target image, key image processing data generated in at least one image processing process is acquired, and the image data and the image processing data are stored at the same time. By storing the image data of the target image after the acquired image is processed and storing the image processing data generated in the image processing process, sufficient image data can be provided for image display, a foundation is laid for ensuring the optimal display effect of the image, and the defect that only the image to be displayed is stored in the prior art is overcome.
After storing the image data of the target image and the image processing data, when the target image needs to be displayed, the image data of the target image and the image processing data may be acquired from a storage file to display the target image. Fig. 2 is a flowchart illustrating an image display method according to an embodiment of the present invention.
As shown in fig. 2, the image display method includes the steps of:
step 201, receiving a display instruction for instructing to display a target image.
The display instruction for instructing to display the target image may be automatically triggered after the storage operation of the image data and the image processing data is completed, or may be manually triggered by the user, for example, when the user views a gallery in the electronic device, the display instruction for displaying the target image is triggered.
And after the display instruction for indicating the display of the target image is triggered, the electronic equipment receives the display instruction and displays the target image.
Step 202, acquiring an image file of a target image; the image file comprises image data and image processing data of a target image;
wherein the image processing data is generated during processing of the acquired at least one image to obtain the target image.
After receiving a display instruction to display a target image, the electronic device acquires an image file containing image data of the target image and image processing data.
As an example, when the image processing data and the image data are stored in the same file, which is an image file of the target image, the image data and the image processing data of the target image can be obtained at the same time by acquiring the file.
As an example, when the address information of the storage space storing the image processing data is stored in the same file as the image data, the image data of the target image and the address information of the storage space where the image processing data is located may be acquired from the file, and the image processing data of the target image may be acquired from the corresponding storage space according to the address information.
As an example, when the image data of the target image and the image processing data are stored in different files, the second file storing the image data of the target image and the first file storing the image processing data may be collectively the image file of the target image. When the electronic device obtains the image file of the target image, the second file may be obtained first, the image data and the mapping relationship between the second file and the first file may be obtained from the second file, the first file may be obtained according to the mapping relationship, and the image processing data may be obtained from the first file.
And step 203, restoring the image data by using the image processing data to obtain a first image for displaying.
In this embodiment, after the image data and the image processing data of the target image are acquired, the image data may be restored by using the image processing data, and the first image is obtained and then displayed.
It should be noted that, a specific implementation of the first image obtained by restoring the image data with the image processing data and displaying the first image will be described in detail later, and will not be described herein too much to avoid redundancy.
In the image display method of the embodiment, when a display instruction for displaying a target image is received, image data and image processing data of the target image are acquired, and the image data is restored by using the image processing data to obtain a first image for displaying. The image data and the image processing data of the stored target image are acquired when the image is displayed, and the image data is restored by utilizing the image processing data to obtain the display image, so that the display effect of the image can be improved, the authenticity of the displayed image is ensured, and the technical problem that the display effect of the image after two times of processing in the prior art is reduced is solved.
To describe the above embodiments more clearly, the present invention provides another image display method, and fig. 3 is a flowchart of the image display method according to another embodiment of the present invention.
As shown in fig. 3, on the basis of the embodiment shown in fig. 2, step 203 may include the following steps:
step 301, obtaining display parameters of an electronic device for displaying a first image.
In order to achieve a better display effect of the finally displayed image, in this embodiment, before displaying the image, the display parameters of the electronic device for displaying the first image may be obtained first.
Step 302, utilizing the image processing data to adjust the image data, and obtaining first image data matched with the display parameters.
After the display parameters of the electronic device are acquired, the image data of the target image can be adjusted by using the image processing data according to the display parameters, so as to obtain first image data matched with the display parameters of the electronic device.
Step 303 displays a first image formed by the first image data on the electronic device.
In this embodiment, after the first image data is acquired, when the first image data is displayed on the electronic device, a first image formed by the first image data may be displayed on a display interface of the electronic device.
According to the image display method, the display parameters of the electronic equipment are obtained, the image data are adjusted by utilizing the image processing data to obtain the first image data matched with the display parameters, and the first image formed by the first image data is displayed on the electronic equipment, so that the matching degree between the first image and the display parameters of the electronic equipment can be improved, the detailed information of the image is protected, and the authenticity of the displayed image is ensured.
In order to implement the above embodiments, the present invention further provides an electronic device.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
As shown in fig. 4, the electronic device 40 includes: a camera module 410, a processing module 420, an acquisition module 430, and a storage module 440.
The camera module 410 is configured to acquire at least one image to be processed.
The processing module 420 is configured to process at least one image to obtain image data of a target image.
An obtaining module 430 is configured to obtain at least one piece of key image processing data generated in the image processing process.
A storage module 440 for storing the image data and the image processing data at the same time.
The present embodiment provides three ways of storing image data and image processing data.
As one of the storage means, the image processing data may be stored behind the image data. At this time, the storage module 440 is specifically configured to form a file for the image data, and store the image data and the image processing data in the file. Wherein the image processing data may be stored after the image data. The file format may be a picture format, such as a jpg format, a bmp format, and the like.
As another storage method, the image data and the image processing data may be stored separately. At this time, the storage module 440 is specifically configured to form a first file for the image processing data, store the image processing data in the first file, form a second file for the target image, store the image data in the second file, and establish a mapping relationship between the second file and the first file. The file formats of the first file and the second file may be the same or different. In this example, the mapping relationship between the second file and the first file may be stored in the second file.
As still another storage method, it is possible to store the image data and the image processing data separately, and store the image processing data in a specific storage space. At this time, the storage module 440 is specifically configured to store the image processing data in a set storage space, form a file for the target image, store the image data in the file, and add the address information of the storage space to the file.
It should be noted that the foregoing explanation of the embodiment of the image storage method is also applicable to the electronic device of the embodiment, and the implementation principle thereof is similar and will not be described herein again.
In the electronic device of this embodiment, at least one image to be processed is acquired by the imaging device, the at least one image is processed to obtain image data of the target image, key image processing data generated in at least one image processing process is acquired, and the image data and the image processing data are stored at the same time. By storing the image data of the target image after the acquired image is processed and storing the image processing data generated in the image processing process, sufficient image data can be provided for image display, a foundation is laid for ensuring the optimal display effect of the image, and the defect that only the image to be displayed is stored in the prior art is overcome.
In order to implement the above embodiments, the present invention further provides another electronic device.
Fig. 5 is a schematic structural diagram of another electronic device according to an embodiment of the invention.
As shown in fig. 5, the electronic device 50 includes: a receiving module 510, an obtaining module 520, and a restoring module 530.
The receiving module 510 is configured to receive a display instruction for instructing to display a target image.
An obtaining module 520, configured to obtain an image file of a target image; the image file includes image data of the target image and image processing data.
Wherein the image processing data is generated during processing of the acquired at least one image to obtain the target image.
The restoring module 530 is configured to restore the image data by using the image processing data, so as to obtain a first image for displaying.
Further, in a possible implementation manner of the embodiment of the present invention, as shown in fig. 6, on the basis of the embodiment shown in fig. 5, the restoring module 530 may include:
an obtaining unit 531 is configured to obtain display parameters of an electronic device for displaying the first image.
The adjusting unit 532 is configured to adjust the image data by using the image processing data, and obtain first image data matched with the display parameter.
A display unit 533 for displaying a first image formed by the first image data on the electronic device.
The display parameters of the electronic equipment are acquired, the image data are adjusted by utilizing the image processing data to obtain the first image data matched with the display parameters, and the first image formed by the first image data is displayed on the electronic equipment, so that the matching degree between the first image and the display parameters of the electronic equipment can be improved, the detailed information of the image is protected, and the authenticity of the displayed image is ensured.
It should be noted that the foregoing explanation of the embodiment of the image display method is also applicable to the electronic device of the embodiment, and the implementation principle thereof is similar, and is not described herein again.
The electronic device of this embodiment obtains the image data and the image processing data of the target image when receiving the display instruction for displaying the target image, and restores the image data by using the image processing data to obtain the first image for displaying. The image data and the image processing data of the stored target image are acquired when the image is displayed, and the image data is restored by utilizing the image processing data to obtain the display image, so that the display effect of the image can be improved, the authenticity of the displayed image is ensured, and the technical problem that the display effect of the image after two times of processing in the prior art is reduced is solved.
Embodiments of the present invention also provide a terminal including an Image Processing circuit, where the Image Processing circuit may be implemented by hardware and/or software components and may include various Processing units defining an ISP (Image Signal Processing) pipeline. Fig. 7 is a schematic structural diagram of an image processing circuit in a terminal according to an embodiment of the present invention. For ease of illustration, as shown in FIG. 7, only aspects of image processing techniques related to embodiments of the present invention are shown.
As shown in fig. 7, the image processing circuit includes an ISP processor 940 and a control logic 950. The image data captured by the imaging device 910 is first processed by the ISP processor 940, and the ISP processor 940 analyzes the image data to capture image statistics that may be used to determine and/or control one or more parameters of the imaging device 910. The imaging device 910 may include a camera having one or more lenses 912 and an image sensor 914. Image sensor 914 may include an array of color filters (e.g., Bayer filters), and image sensor 914 may acquire light intensity and wavelength information captured with each imaging pixel of image sensor 914 and provide a set of raw image data that may be processed by ISP processor 940. The sensor 920 may provide the raw image data to the ISP processor 940 based on the type of interface of the sensor 920. The sensor 920 interface may utilize a SMIA (Standard Mobile Imaging Architecture) interface, other serial or parallel camera interfaces, or a combination of the above.
The ISP processor 940 processes the raw image data pixel by pixel in a variety of formats. For example, each image pixel may have a bit depth of 8, 10, 12, or 14 bits, and ISP processor 940 may perform one or more image processing operations on the raw image data to obtain a target image and collect image processing data pertaining to the key of the target image. Wherein the image processing operations may be performed with the same or different bit depth precision. The image data of the target data and the image processing data may be stored in the image memory 930.
ISP processor 940 may also receive pixel data from image memory 930. For example, raw pixel data is sent from the sensor 920 interface to the image memory 930, and the raw pixel data in the image memory 930 is then provided to the ISP processor 940 for processing. The image Memory 930 may be a part of a Memory device, a storage device, or a separate dedicated Memory within an electronic device, and may include a DMA (Direct Memory Access) feature.
Upon receiving raw image data from the sensor 920 interface or from the image memory 930, the ISP processor 940 may perform one or more image processing operations, such as temporal filtering. The processed image data may be sent to image memory 930 for additional processing before being displayed. ISP processor 940 receives processed data from image memory 930 and performs image data processing on the processed data in the raw domain and in the RGB and YCbCr color spaces. The processed image data may be output to a display 970 for viewing by a user and/or further processing by a graphics engine or GPU (graphics processor). Further, the output of ISP processor 940 may also be sent to image memory 930 and display 970 may read image data from image memory 930. In one embodiment, image memory 930 may be configured to implement one or more frame buffers. In addition, the output of the ISP processor 940 may be transmitted to an encoder/decoder 960 for encoding/decoding the image data. The encoded image data may be saved and decompressed before being displayed on a display 970 device. The encoder/decoder 960 may be implemented by a CPU or GPU or coprocessor.
The statistical data determined by the ISP processor 940 may be transmitted to the control logic 950 unit. For example, the statistical data may include image sensor 914 statistics such as auto-exposure, auto-white balance, auto-focus, flicker detection, black level compensation, lens 912 shading correction, and the like. The control logic 950 may include a processor and/or microcontroller that executes one or more routines (e.g., firmware) that may determine control parameters of the imaging device 910 based on the received statistical data. For example, the control parameters may include sensor 920 control parameters (e.g., gain, integration time for exposure control), camera flash control parameters, lens 912 control parameters (e.g., focal length for focusing or zooming), or a combination of these parameters. The ISP control parameters may include gain levels and color correction matrices for automatic white balance and color adjustment (e.g., during RGB processing), as well as lens 912 shading correction parameters.
The image storage method and the image display method described in the foregoing embodiments can be implemented based on the image processing technique in fig. 7.
In order to implement the above embodiments, the present invention also proposes a non-transitory computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the image storage method as described in the foregoing embodiments.
In order to implement the above embodiments, the present invention also proposes another non-transitory computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the image display method as described in the foregoing embodiments.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (9)

1. An image storage method, characterized by comprising the steps of:
acquiring at least one image to be processed through a camera device;
processing the at least one image, taking the processed image as a target image, and obtaining image data of the target image, wherein the processing comprises brightness, saturation and white balance processing;
acquiring key image processing data generated in the at least one image processing process, wherein the image processing data comprises a processing algorithm adopted in the processing process, the saturation of an original image, the processed saturation, a saturation adjusting parameter and a brightness adjusting parameter;
simultaneously storing the image data and the image processing data, wherein the image data and the image processing data are used for adjusting the image data by utilizing the image processing data after acquiring display parameters of electronic equipment for displaying the target image when the target image is displayed, so as to acquire first image data matched with the display parameters; displaying a first image formed by the first image data on the electronic device for displaying the target image.
2. The method of claim 1, wherein said storing said image data and said image processing data simultaneously comprises:
forming a file for the image data;
storing the image data and the image processing data in the file.
3. The method of claim 1, wherein said storing said image data and said image processing data simultaneously comprises:
forming a first file for said image processing data, storing said image processing data in said first file;
forming a second file for the target image, and storing the image data into the second file;
and establishing a mapping relation between the second file and the first file.
4. The method of claim 1, wherein said storing said image data and said image processing data simultaneously comprises:
storing the image processing data into a set storage space;
forming a file for the target image, and storing the image data into the file;
and adding the address information of the storage space into the file.
5. An image display method, comprising:
receiving a display instruction for indicating display of a target image;
acquiring an image file of the target image; the image file comprises image data and image processing data of the target image; the image processing data is generated in the process of processing at least one acquired image to obtain the target image, wherein the processing comprises brightness, saturation and white balance processing, and the image processing data comprises a processing algorithm adopted in the processing process, the saturation of an original image, the processed saturation, a saturation adjusting parameter and a brightness adjusting parameter;
acquiring display parameters of electronic equipment for image display;
adjusting the image data by using the image processing data to acquire first image data matched with the display parameters;
displaying a first image formed from the first image data on the electronic device.
6. An electronic device, comprising:
the camera module is used for acquiring at least one image to be processed;
the processing module is used for processing the at least one image, taking the processed image as a target image and obtaining image data of the target image, wherein the processing comprises brightness, saturation and white balance processing;
an obtaining module, configured to obtain key image processing data generated in the at least one image processing process, where the image processing data includes a processing algorithm used in the processing process, a saturation of an original image, a processed saturation, a saturation adjustment parameter, and a brightness adjustment parameter;
the storage module is used for simultaneously storing the image data and the image processing data, and the image data and the image processing data are used for adjusting the image data by using the image processing data after acquiring display parameters of electronic equipment for displaying the target image when the target image is displayed, so as to acquire first image data matched with the display parameters; displaying a first image formed by the first image data on the electronic device for displaying the target image.
7. An electronic device, comprising:
the receiving module is used for receiving a display instruction for indicating a display target image;
the acquisition module is used for acquiring an image file of the target image; the image file comprises image data and image processing data of the target image; the image processing data is generated in the process of processing at least one acquired image to obtain the target image, wherein the processing comprises brightness, saturation and white balance processing, and the image processing data comprises a processing algorithm adopted in the processing process, the saturation of an original image, the processed saturation, a saturation adjusting parameter and a brightness adjusting parameter;
the restoring module is used for acquiring display parameters of the electronic equipment;
adjusting the image data by using the image processing data to acquire first image data matched with the display parameters;
displaying a first image formed from the first image data on the electronic device.
8. A non-transitory computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the image storage method according to any one of claims 1 to 4.
9. A non-transitory computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the image display method as claimed in claim 5.
CN201711035714.6A 2017-10-30 2017-10-30 Image storage method, image display method and electronic equipment Active CN107835362B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711035714.6A CN107835362B (en) 2017-10-30 2017-10-30 Image storage method, image display method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711035714.6A CN107835362B (en) 2017-10-30 2017-10-30 Image storage method, image display method and electronic equipment

Publications (2)

Publication Number Publication Date
CN107835362A CN107835362A (en) 2018-03-23
CN107835362B true CN107835362B (en) 2019-12-31

Family

ID=61650892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711035714.6A Active CN107835362B (en) 2017-10-30 2017-10-30 Image storage method, image display method and electronic equipment

Country Status (1)

Country Link
CN (1) CN107835362B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888551A (en) * 2010-06-28 2010-11-17 华为终端有限公司 Image transmission and display method, device and system
CN102238333A (en) * 2010-04-23 2011-11-09 佳能株式会社 Image processing apparatus and method of controlling the same
CN103354997A (en) * 2011-02-18 2013-10-16 索尼公司 Image processing device and image processing method
CN104365082A (en) * 2012-05-31 2015-02-18 奥林巴斯映像株式会社 Imaging device, image processing device, recording medium recording image files, recording method, image playback method, and program
CN106165409A (en) * 2014-03-31 2016-11-23 富士胶片株式会社 Image processing apparatus, camera head, image processing method and program
CN107223246A (en) * 2017-03-20 2017-09-29 深圳前海达闼云端智能科技有限公司 Image labeling method, device and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238333A (en) * 2010-04-23 2011-11-09 佳能株式会社 Image processing apparatus and method of controlling the same
CN101888551A (en) * 2010-06-28 2010-11-17 华为终端有限公司 Image transmission and display method, device and system
CN103354997A (en) * 2011-02-18 2013-10-16 索尼公司 Image processing device and image processing method
CN104365082A (en) * 2012-05-31 2015-02-18 奥林巴斯映像株式会社 Imaging device, image processing device, recording medium recording image files, recording method, image playback method, and program
CN106165409A (en) * 2014-03-31 2016-11-23 富士胶片株式会社 Image processing apparatus, camera head, image processing method and program
CN107223246A (en) * 2017-03-20 2017-09-29 深圳前海达闼云端智能科技有限公司 Image labeling method, device and electronic equipment

Also Published As

Publication number Publication date
CN107835362A (en) 2018-03-23

Similar Documents

Publication Publication Date Title
KR102306272B1 (en) Dual camera-based imaging method, mobile terminal and storage medium
CN107948519B (en) Image processing method, device and equipment
KR102279436B1 (en) Image processing methods, devices and devices
KR102293443B1 (en) Image processing method and mobile terminal using dual camera
CN109005364B (en) Imaging control method, imaging control device, electronic device, and computer-readable storage medium
CN108989700B (en) Imaging control method, imaging control device, electronic device, and computer-readable storage medium
KR102306304B1 (en) Dual camera-based imaging method and device and storage medium
CN108683862B (en) Imaging control method, imaging control device, electronic equipment and computer-readable storage medium
CN108712608B (en) Terminal equipment shooting method and device
CN109068058B (en) Shooting control method and device in super night scene mode and electronic equipment
CN109672819B (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
KR102266649B1 (en) Image processing method and device
WO2020057199A1 (en) Imaging method and device, and electronic device
KR102304784B1 (en) Double camera-based imaging method and apparatus
CN107481186B (en) Image processing method, image processing device, computer-readable storage medium and computer equipment
JP6833415B2 (en) Image processing equipment, image processing methods, and programs
CN107395991B (en) Image synthesis method, image synthesis device, computer-readable storage medium and computer equipment
KR20160118963A (en) Real-time image stitching apparatus and real-time image stitching method
CN108156369B (en) Image processing method and device
CN107704798B (en) Image blurring method and device, computer readable storage medium and computer device
CN107872631B (en) Image shooting method and device based on double cameras and mobile terminal
CN110177212B (en) Image processing method and device, electronic equipment and computer readable storage medium
US11601600B2 (en) Control method and electronic device
CN108053438B (en) Depth of field acquisition method, device and equipment
WO2020029679A1 (en) Control method and apparatus, imaging device, electronic device and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant