CN114500819B - Shooting method, shooting device and computer readable storage medium - Google Patents

Shooting method, shooting device and computer readable storage medium Download PDF

Info

Publication number
CN114500819B
CN114500819B CN202011148056.3A CN202011148056A CN114500819B CN 114500819 B CN114500819 B CN 114500819B CN 202011148056 A CN202011148056 A CN 202011148056A CN 114500819 B CN114500819 B CN 114500819B
Authority
CN
China
Prior art keywords
image
shooting
image data
photographing
jpeg
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
CN202011148056.3A
Other languages
Chinese (zh)
Other versions
CN114500819A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202011148056.3A priority Critical patent/CN114500819B/en
Publication of CN114500819A publication Critical patent/CN114500819A/en
Application granted granted Critical
Publication of CN114500819B publication Critical patent/CN114500819B/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/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • 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

Abstract

The present disclosure relates to a photographing method, a photographing apparatus, and a computer-readable storage medium. The shooting method is applied to the terminal and comprises the following steps: in response to acquiring the photographing request, an image photographing format of a photographing image requested by the photographing request is determined. And if the image shooting format is determined to be the high-efficiency image file HEIF format, acquiring an original image acquired during shooting. And carrying out Joint Photographic Experts Group (JPEG) coding on the original image acquired during shooting, and synthesizing a first image based on the image data after JPEG coding. The first image is displayed. According to the shooting method provided by the disclosure, after the image shooting format is determined to be HEIF format, the first image correspondingly displayed by the original image is synthesized by means of JPEG encoding. The waiting time of a user waiting for the terminal to display the HEIF format image is saved, so that the use experience of the user is improved.

Description

Shooting method, shooting device and computer readable storage medium
Technical Field
The present disclosure relates to the field of image processing technologies, and in particular, to a photographing method, a photographing apparatus, and a computer readable storage medium.
Background
Efficient image coding (High Efficiency Image Coding, HEIC) is the first coding mode in the system introduced by apple in 2017 by the global developer's meeting. The image format encoded by the HEIC encoding mode is an efficient image file format (High Efficiency Image File, HEIF), and compared with a Joint Photographic Experts Group (JPEG) format obtained by joint photographic experts group (Joint Photographic Experts Group, JPEG) encoding, the storage space occupied by the image in the HEIF format is far smaller than that occupied by the image in the standard JPEG format on the premise of the same image quality.
But in the process of encoding and decoding an original image by using HEIC to obtain an image in HEIF format, the decoding speed of hardware to the image file in HEIF format is slow, so that the time for waiting for previewing after the completion of shooting the image is too long, and the use experience of the user is greatly influenced.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a photographing method, a photographing apparatus, and a computer-readable storage medium.
According to a first aspect of embodiments of the present disclosure, there is provided a photographing method, applied to a terminal, the photographing method including: in response to acquiring a photographing request, an image photographing format of a photographing image requested by the photographing request is determined. If the image shooting format is determined to be the high-efficiency image file format HEIF, acquiring an original image acquired during shooting. And carrying out Joint Photographic Experts Group (JPEG) coding on the original image acquired during shooting, and synthesizing a first image based on the image data after JPEG coding. And displaying the first image.
In an embodiment, the joint photographic experts group JPEG encoding of the image data acquired at the time of photographing includes: and adjusting the resolution of the original image acquired during shooting to be a first resolution lower than a specified resolution threshold, and performing JPEG encoding on image data of the first resolution.
In another embodiment, the photographing method further includes: and HEIF encoding is carried out on the original image acquired during shooting, and a second image in HEIF format is synthesized based on the image data after HEIF encoding. And replacing the displayed first image with the second image.
In yet another embodiment, the synthesizing the first image based on the JPEG encoded image data includes: and storing the JPEG encoded image data into an exchangeable image file format structure according to a specified protocol. And when the HEIF format shooting is determined to be needed, acquiring and analyzing the complete image data stored in the exchangeable image file format structure based on the designated protocol, and synthesizing the first image based on the acquired complete image data.
In yet another embodiment, the storing the JPEG encoded image data into an exchangeable image file format structure comprises: and storing the JPEG encoded image data into an application field specified in the exchangeable image file format structure.
In yet another embodiment, the storing the JPEG encoded image data into the exchangeable image file format structure specifying application fields comprises: and storing the JPEG encoded image data into a plurality of identical application fields with identical appointed application field identifications according to the sequence of the identification codes, the data length and the data content.
According to a second aspect of embodiments of the present disclosure, there is provided a photographing apparatus, applied to a terminal, including: and the determining unit is used for determining an image shooting format of the shooting image requested by the shooting request in response to the shooting request. The acquisition unit is used for acquiring an original image acquired during shooting if the image shooting format is determined to be the high-efficiency image file format HEIF. And the synthesizing unit is used for carrying out Joint Photographic Experts Group (JPEG) encoding on the original image acquired during shooting and synthesizing the first image based on the image data after JPEG encoding. And the display unit is used for displaying the first image.
In an embodiment, the synthesizing unit performs joint photographic experts group JPEG encoding on the image data acquired at the time of photographing in the following manner: and adjusting the resolution of the original image acquired during shooting to be a first resolution lower than a specified resolution threshold, and performing JPEG encoding on image data of the first resolution.
In another embodiment, the synthesizing unit is further configured to perform HEIF encoding on an original image acquired at the time of shooting, and synthesize a second image in HEIF format based on the image data after HEIF encoding. The display unit is further configured to replace the displayed first image with the second image.
In yet another embodiment, the synthesizing unit synthesizes the first image based on the JPEG encoded image data in the following manner: and storing the JPEG encoded image data into an exchangeable image file format structure according to a specified protocol. And when the HEIF format shooting is determined to be needed, acquiring and analyzing the complete image data stored in the exchangeable image file format structure based on the designated protocol, and synthesizing the first image based on the acquired complete image data.
In a further embodiment, the synthesizing unit stores the JPEG encoded image data into an exchangeable image file format structure in the following manner: and storing the JPEG encoded image data into an application field specified in the exchangeable image file format structure.
In a further embodiment, the synthesizing unit stores the JPEG encoded image data into a specified application field in the exchangeable image file format structure in the following manner: and storing the JPEG encoded image data into a plurality of identical application fields with identical appointed application field identifications according to the sequence of the identification codes, the data length and the data content.
According to a third aspect of the embodiments of the present disclosure, there is provided a photographing apparatus including: a memory for storing instructions; and the processor is used for calling the instructions stored in the memory to execute any one of the shooting methods.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored therein instructions which, when executed by a processor, perform any one of the above-described photographing methods.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: according to the shooting method provided by the disclosure, after the image shooting format is determined to be HEIF format, the first image correspondingly displayed by the original image is synthesized by means of JPEG encoding. And the preview display rate of the shot images is further increased, the waiting time of the user waiting for HEIF to decode the original images and display the original images is saved, and the user can quickly browse the shot images, so that the use experience of the user is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a photographing method according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a photographing method according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating another photographing method according to an exemplary embodiment.
Fig. 4 is a schematic diagram illustrating a structure according to an exemplary embodiment.
Fig. 5 is a display flow diagram according to an exemplary embodiment.
Fig. 6 is a block diagram of a photographing apparatus according to an exemplary embodiment.
Fig. 7 is a block diagram of an apparatus according to an example embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
In the related art, in a scene of photographing using a terminal, a process of obtaining a preview image by the terminal according to a photographing request of a user may be as shown in a flowchart of a photographing method of fig. 1. The album application of the terminal responds to the shooting request of the user, and receives a shooting instruction of the user through a Hardware Abstraction Layer (HAL) of the terminal. And determining the type of the buffer space in the shooting request according to the instruction to be shot, and judging the shooting mode. If the buffer space type is JPEG, after acquiring the acquired original image based on the image sensor, performing JPEG coding on the acquired original image, further acquiring a synthesized JPEG-format image, and returning the JPEG-format image to the album application for previewing. If the buffer space type is HEIF, after acquiring the acquired original image based on the image sensor, HEIC coding is carried out on the acquired original image, and then the synthesized HEIF format image is obtained, and the HEIF format image is returned to the album application for previewing. However, in the process of acquiring the image in the HEIF format in this way, when HEIC is adopted for decoding, the excessive time of Gaussian blur is too long, so that the waiting time of a user for previewing and shooting the image through an album in a photographing application is too long. And when shooting, the higher the pixel of the original image acquisition is, the longer the corresponding waiting time is, and the use experience of a user is seriously influenced.
In view of the above, the present disclosure provides a photographing method, which can obtain a synthesized first image as a pre-displayed image by means of JPEG encoding after determining that an image photographing format is a HEIF format, so as to increase the speed of a terminal for rapidly displaying a preview image. And further, the time for waiting for HEIF to decode is saved, so that a user can quickly preview the shot image, and the use experience of the user is improved.
The photographing method provided in the present disclosure is applied to a terminal. In one example, the types of terminals may include mobile terminals, such as: cell phones, tablets, ipods, etc. In another example. The structure of the terminal may include: a two-sided screen terminal, a folded screen terminal, a full screen terminal, etc.
Fig. 2 is a flowchart of a photographing method according to an exemplary embodiment, which is used in a terminal as shown in fig. 2, including the following steps S11 to S14.
In step S11, in response to acquisition of the photographing request, an image photographing format of a photographing image requested by the photographing request is determined.
In the embodiment of the disclosure, the terminal responds according to the shooting request of the user, determines that the user needs to shoot, further determines the image shooting format of the shooting image requested in the shooting request according to the obtained shooting request, and further facilitates corresponding format compiling of the acquired original image according to the image shooting format required by the user. The image capturing format may include: JPEG format, HEIF format, or RAW image file (RAW) format.
In step S12, if it is determined that the image capturing format is the high-efficiency image file format HEIF, the original image captured at the time of capturing is acquired.
In the embodiment of the disclosure, according to the acquired shooting request, the image shooting format required by the user can be determined, and then the original image acquired during shooting is acquired after the image shooting format is determined, and the original image can be directly synthesized according to the required image shooting format, so that the synthesis time is saved. After the requested shooting format is determined to be HEIF format, the original image acquired during shooting is acquired through an image sensor in the terminal, so that the acquired original image can be correspondingly encoded, and then an image in the HEIF format is synthesized. In an example, if the requested shooting format is determined to be the JEPG format according to the acquired shooting request. The original image can be subjected to JPEG encoding to obtain a preview image in JPEG format.
In step S13, the original image acquired at the time of shooting is subjected to joint photographic experts group JPEG encoding, and a first image is synthesized based on the JPEG encoded image data.
In the embodiment of the disclosure, since the original image is HEIC encoded and stored, and then the encoded and stored image data is decoded and restored for preview display, the time is long. And in the terminal, the quality of the image for previewing in the JPEG format is consistent with the quality of the image for previewing in the HEIF format or the difference is slight, and the user cannot clearly distinguish the difference between the two images only by naked eyes. Therefore, in order to facilitate a user to quickly preview an original image shot in the HEIF format, when in coding storage, JPEG coding is adopted to code and store the acquired original image so as to obtain JPEG coded image data. When the synthesized preview image is decoded and displayed, the stored JPEG-encoded image data can be subjected to JPEG decoding to obtain a synthesized first image. Thereby saving the waiting time for encoding and decoding the preview image by the HEIC so as to promote the use experience of the user.
In step S14, a first image is displayed.
In the embodiment of the present disclosure, a synthesized first image after JPEG encoding and decoding is displayed in a terminal.
Through the embodiment, after the image shooting format is determined to be the HEIF format, in order to facilitate a user to quickly obtain an image displayed corresponding to the collected original image, the collected original image is encoded and decoded based on the JPEG encoding format, and then the obtained first image with the picture quality similar to that of HEIC encoding and decoding is displayed, so that the synthetic time for the user to wait for the original image to adopt HEIC encoding and decoding until the original image is displayed is shortened, and the use experience of the user is improved.
In an embodiment, since the image data obtained by directly encoding with JPEG occupies a larger memory space than the image data obtained by directly encoding with HEIF. Therefore, in order to save the storage space occupied by the image data obtained after encoding, the resolution of the collected original image is adjusted to be lower than the first resolution of the specified resolution threshold before the original image is encoded by adopting JPEG encoding under the condition that the image shooting format is HEIF format, so that the resolution of the original image is reduced, and the size of the original image is reduced. Thereby, after JPEG encoding is carried out on the image data with the first resolution, the obtained image data after JPEG encoding is obtained. In one example, an image size corresponding to a first resolution is determined according to a first resolution of a specified resolution threshold, scaling is performed based on the image size corresponding to the first resolution according to an image size of an original image, and then the resolution of the original image is adjusted to the first resolution to obtain image data of the first resolution, so that JPEG encoding is performed according to the image data of the first resolution. In one example, the first resolution may be 1080p, so that the first image displayed during decoding can adapt to a screen carried by the terminal, so that the user can check conveniently, and the storage space occupied by the image in the JPEG format with the resolution of 1080p is smaller, so that the photographing flow of the images in other image photographing formats is not easy to influence.
In order to ensure the quality of the photographed image, the photographed image stored in the terminal is made to be in a photographing format required in the photographing request. The present disclosure also provides another photographing method, as shown in fig. 3.
Fig. 3 is a flowchart illustrating a photographing method according to an exemplary embodiment, and as shown in fig. 3, the photographing method includes the following steps S21 to S26.
In step S21, in response to acquisition of the photographing request, an image photographing format of a photographing image requested by the photographing request is determined.
In step S22, if it is determined that the image capturing format is the high-efficiency image file HEIF format, the original image captured at the time of capturing is acquired.
In step S23, the original image acquired at the time of shooting is subjected to joint photographic experts group JPEG encoding, and a first image is synthesized based on the JPEG encoded image data.
In step S24, the first image is displayed.
In step S25, the original image acquired at the time of photographing is HEIF-encoded, and a second image in HEIF format is synthesized based on the image data after HEIF-encoding.
In the embodiment of the disclosure, when an original image acquired during shooting is subjected to JPEG encoding, the original image is also subjected to HEIF encoding, and further image data based on HEIF encoding is synthesized into a second image in HEIF format, so that a synthesized image in HEIF format requested to be shot by a user in a shooting request is obtained.
In one example, after the original image is acquired, the original image may be copied to obtain a copy of the original image. The original image copy is used for JPEG coding, and the original image is used for HEIF coding, so that coding processes of the original image copy and the HEIF coding are separated, and disorder of image data in the coding process is avoided, so that the coding process is improved.
In step S26, the displayed first image is replaced with the second image.
In the embodiment of the disclosure, the purpose of synthesizing the first image based on the JPEG encoding is to facilitate the terminal to quickly display the display image corresponding to the original image, so as to avoid longer time consumption when decoding the obtained image data after the HEIF encoding, which results in longer display time for the user waiting for the terminal to display the image. After the second image in the HEIF format is synthesized, the first image is replaced by the second image, so that the displayed second image is in an image shooting format which meets the shooting image required by a user, and the use requirement of the user is met.
Through the embodiment, after the second image in the HEIF format is synthesized, the first image displayed by the terminal is replaced by the second image, so that when the user views again, the visual quality of the displayed second image accords with the shooting request of the user. The display speed of the terminal is improved under the HEIF format, and only the image data and the coded and decoded image formats are required to be processed, so that excessive adjustment of the bottom hardware of the terminal and the album structure of the album application is not required, and the hardware cost is saved.
In one embodiment, different hardware interfaces are employed for different image capture formats. And the JPEG format is not compatible with the HEIF format. After determining that the image capturing format is the HEIF format, the JPEG encoded image data may be stored therein according to a specified protocol using the compatibility between the exchangeable image file format structure and JPEG and HEIF. When HEIF format shooting is further needed, the complete image data stored in the exchangeable image file format structure for displaying the first image can be acquired based on the specified protocol. Therefore, the acquired complete image data for analyzing and obtaining the first image can be obtained under the condition of not damaging the flow of other image shooting formats. Meanwhile, the interface adjustment of the album application can be prevented from being changed, and further hardware changing cost is saved. The specified protocol may be a user-defined protocol.
In another embodiment, the exchangeable image file (EXIF) format structure is an image file format for recording attribute information of image data and shooting data. In an exchangeable image file format structure, there are a plurality of Application (APP) fields, different APP fields may store different image data. A plurality of APP fields are included in the EXIF format structure. In one approach, a 16-ary system is used to tag multiple APP fields in an EXIF format structure to distinguish between the APP fields. For example: 0xFFE0-0xFFEE represents the tag codes corresponding to the 15 APP fields in the EXIF format structure, respectively. In the embodiment of the disclosure, the JPEG encoded image data is stored in the EXIF format structure to specify the APP field, so that when the JPEG encoded image data needs to be extracted to decode and display an image, the stored JPG encoded image can be obtained by storing the mark code of the APP field corresponding to the JPEG encoded image data in the EXIF format. For example: in the embodiment of the disclosure, by storing the JPEG encoded image data in the APP2 field corresponding to the 0xFFE1 marker code in the EXIF format structure, when the JPEG encoded image data is obtained, the JPEG encoded image data stored in the APP2 field corresponding to the 0xFFE1 may be obtained by searching the 0xFFE 1.
In a further embodiment, each APP field of the EXIF format structure has a specified data storage rule, that is, in the specified APP field, the JPEG-encoded image data is stored in the order of identification code, data length, and data content. In the embodiment of the disclosure, when the image data after JPEG encoding is stored in the EXIF format structure, the image data may be stored in the designated APP field according to the identification code, the data length, and the order of the data content. Since the APP field of the EXIF format structure has character limitation and there may be resolution adjustment of the JPEG encoded image data, there is uncertainty in the size of the memory corresponding to the JPEG encoded image data. Therefore, in order to ensure the storage integrity of the JPEG encoded image data, a plurality of APP fields adopting unified appointed APP field identification are arranged in the EXIF format structure, so that a plurality of identical APP fields with identical appointed APP field identification are obtained. For example, designating an APP field as APP2, the same designating APP field identification as 0xFFE1, and a plurality of the same APP fields identified by the same designating APP field may be APP2, APP2 (1), APP2 (…) to APP2 (n). And storing the JPEG-encoded image data into APP2, APP2 (1), APP2 (…) and APP2 (n) according to the sequence of the identification code, the data length and the data content. For example: the internal format of the EXIF format structure may be as shown in the schematic structure of fig. 4. APP1 and APP2 are respectively and correspondingly stored with different APP identification fields. Hereinafter, description will be made taking APP2 as a designated APP field storing JPEG-encoded image data as an example. In the embodiment of the disclosure, the image data after JPEG encoding is stored in a plurality of APP2 fields corresponding to a plurality of APP2 field identifications such as APP2 (1), APP2 (…) to APP2 (n) according to the sequence of the identification code, the data length and the data content, wherein n is an arbitrary constant. For example, the data content field of the first APP2 field stores the name of the terminal manufacturer in the asilc code in 4 bytes according to the established protocol, the storage space size of the encoded 1080p picture data in 4 bytes, and the number of APP2 fields used in 2 bytes. And storing the split image data in the data content of the next APP2 fields. The image data of the data content part of each APP2 is stored according to a standard JPEG format, and the information of JPEG format pictures such as complete EXIF, a quantization table, an encoding table and the like is nested, so that after the album application obtains the complete image data contained in the APP2-APP2 (n), the image data after JEPG encoding stored in the APP2 can be directly obtained through an existing interface for analyzing the JEPG file, and analysis is performed to display a first image.
In an implementation scenario, the process of displaying the original image after capturing the original image using the terminal may be as shown in the display flowchart of fig. 5.
As shown in fig. 5, the display flow includes the following steps S31 to S342.
In step S31, the album application transmits a photographing request to the hardware abstraction layer, and determines a storage space of the hardware abstraction layer according to the photographing request.
In the embodiment of the present disclosure, the shooting request includes an image shooting format required for the current shooting.
In step S32, the original image acquired at the time of shooting is acquired from the image sensor according to the determined image shooting format.
In the embodiment of the present disclosure, the image capturing format includes a JPEG format and a HEIF format.
In step S331, if the determined image capturing format is the JPEG format, the original image is synthesized based on JPEG encoding.
In step S341, the synthesized image in JPEG format is displayed.
In step S3321, if the specified image capturing format is the HEIF format, the original image is copied, and the resolution of the copied original image is reduced to 1080p.
In step S3322, the 1080p original image is JPEG encoded, and the JPEG encoded image data is stored in an exchangeable image file format.
In step S3323, JPEG encoded image data stored in the exchangeable image file format is extracted and JPEG decoded to synthesize a first image.
In step S3324, a first image is displayed.
In step S3331, if the specified image capturing format is the HEIF format, the original image is synthesized based on HEIF encoding.
In step S342, the displayed first image is replaced with a second image obtained by synthesizing the HEIF-based code.
According to the shooting method provided by the disclosure, the problem of slow decoding and displaying of the HEIF format image can be solved, the characteristics of HEIF encoding are reserved, and 1080p images are nested in the exchangeable image file format information, so that the display time of album application is accelerated, the time from shooting to previewing is greatly shortened, the unnecessary storage space is not occupied, the bottom hardware and the upper album application do not need to be excessively adjusted, the application range is wide, and the method is applicable to different terminals.
Based on the same conception, the embodiment of the disclosure also provides a shooting device.
It can be understood that, in order to implement the above-mentioned functions, the photographing device provided in the embodiments of the present disclosure includes a hardware structure and/or a software module that perform each function. The disclosed embodiments may be implemented in hardware or a combination of hardware and computer software, in combination with the various example elements and algorithm steps disclosed in the embodiments of the disclosure. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application, but such implementation is not to be considered as beyond the scope of the embodiments of the present disclosure.
Fig. 6 is a block diagram of a camera according to an exemplary embodiment. Referring to fig. 6, the photographing apparatus 100 is applied to a terminal, and includes a determining unit 101, an acquisition unit 102, a synthesizing unit 103, and a display unit 104.
A determining unit 101 for determining an image capturing format of a captured image requested by a capturing request in response to acquiring the capturing request.
The acquisition unit 102 is configured to acquire an original image acquired during shooting if it is determined that the image shooting format is the high-efficiency image file format HEIF.
A synthesizing unit 103 for performing joint photographic experts group JPEG encoding on an original image acquired at the time of photographing, and synthesizing a first image based on the JPEG encoded image data.
And a display unit 104 for displaying the first image.
In one embodiment, the synthesizing unit 103 performs joint photographic experts group JPEG encoding on image data acquired at the time of photographing in the following manner: and adjusting the resolution of the original image acquired during shooting to be a first resolution lower than a specified resolution threshold, and performing JPEG encoding on image data of the first resolution.
In another embodiment, the synthesizing unit 103 is further configured to perform HEIF encoding on an original image acquired at the time of shooting, and synthesize a second image in HEIF format based on the image data after HEIF encoding. And the display unit is also used for replacing the displayed first image with the second image.
In still another embodiment, the synthesizing unit 103 synthesizes the first image based on the JPEG-encoded image data in the following manner: and storing the JPEG encoded image data into an exchangeable image file format structure according to a specified protocol. And when the HEIF format shooting is determined to be needed, acquiring and analyzing the complete image data stored in the exchangeable image file format structure based on a specified protocol, and synthesizing the first image based on the acquired complete image data.
In yet another embodiment, the synthesizing unit 103 stores the JPEG encoded image data into an exchangeable image file format structure in the following manner: the JPEG encoded image data is stored in an application field specified in the exchangeable image file format structure.
In still another embodiment, the synthesizing unit 103 stores the JPEG encoded image data into a specified application field in the exchangeable image file format structure in the following manner: and storing the JPEG encoded image data into a plurality of identical application fields with identical appointed application field identifications according to the sequence of the identification codes, the data length and the data content.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 7 is a block diagram of a camera 200 according to an exemplary embodiment. For example, the camera 200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, or the like.
Referring to fig. 7, the photographing device 200 may include one or more of the following components: a processing component 202, a memory 204, a power component 206, a multimedia component 208, an audio component 210, an input/output (I/O) interface 212, a sensor component 214, and a communication component 216.
The processing component 202 generally controls overall operation of the camera 200, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 202 can include one or more modules that facilitate interactions between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 202.
The memory 204 is configured to store various types of data to support operations at the photographing device 200. Examples of such data include instructions for any application or method operating on the camera 200, contact data, phonebook data, messages, pictures, video, and the like. The memory 204 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power component 206 provides power to the various components of the camera 200. The power components 206 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the camera 200.
The multimedia component 208 includes a screen between the camera 200 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front-facing camera and/or a rear-facing camera. When the photographing device 200 is in an operation mode, such as a photographing mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 210 is configured to output and/or input audio signals. For example, the audio component 210 includes a Microphone (MIC) configured to receive external audio signals when the camera 200 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 204 or transmitted via the communication component 216. In some embodiments, audio component 210 further includes a speaker for outputting audio signals.
The I/O interface 212 provides an interface between the processing assembly 202 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 214 includes one or more sensors for providing status assessment of various aspects of the camera 200. For example, sensor assembly 214 may detect an on/off state of camera 200, a relative positioning of components, such as a display and keypad of camera 200, and sensor assembly 214 may also detect a change in position of camera 200 or a component of camera 200, the presence or absence of a user's contact with camera 200, a change in orientation or acceleration/deceleration of camera 200, and a change in temperature of camera 200. The sensor assembly 214 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 216 is configured to facilitate wired or wireless communication between the camera 200 and other devices. The camera 200 may access a wireless network based on a communication standard, such as WiFi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 216 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the photographing apparatus 200 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 204, including instructions executable by processor 220 of camera 200 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
It is further understood that the term "plurality" in this disclosure means two or more, and other adjectives are similar thereto. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. The singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It is further understood that the terms "first," "second," and the like are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish one type of information from another and do not denote a particular order or importance. Indeed, the expressions "first", "second", etc. may be used entirely interchangeably. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure.
It will be further understood that "connected" includes both direct connection where no other member is present and indirect connection where other element is present, unless specifically stated otherwise.
It will be further understood that although operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. A photographing method, which is applied to a terminal, the photographing method comprising:
in response to acquiring a shooting request, determining an image shooting format of a shooting image requested by the shooting request;
if the image shooting format is determined to be the high-efficiency image file format HEIF, acquiring an original image acquired during shooting;
the method comprises the steps of performing Joint Photographic Experts Group (JPEG) coding on an original image acquired during shooting, and synthesizing a first image based on image data after JPEG coding;
displaying the first image;
HEIF encoding is carried out on an original image acquired during shooting, and a second image in HEIF format is synthesized based on image data after HEIF encoding;
and replacing the displayed first image with the second image.
2. The photographing method as claimed in claim 1, wherein said joint photographic experts group JPEG encoding of the image data acquired at the time of photographing comprises:
and adjusting the resolution of the original image acquired during shooting to be a first resolution lower than a specified resolution threshold, and performing JPEG encoding on image data of the first resolution.
3. The photographing method of claim 1, wherein the synthesizing the first image based on the JPEG encoded image data comprises:
storing the JPEG encoded image data into an exchangeable image file format structure according to a specified protocol;
and when the HEIF format shooting is determined to be needed, acquiring and analyzing the complete image data stored in the exchangeable image file format structure based on the designated protocol, and synthesizing the first image based on the acquired complete image data.
4. A shooting method according to claim 3, wherein storing the JPEG encoded image data into an exchangeable image file format structure comprises:
and storing the JPEG encoded image data into an application field specified in the exchangeable image file format structure.
5. The photographing method as claimed in claim 4, wherein said storing the JPEG encoded image data into a specified application field in said exchangeable image file format structure comprises:
and storing the JPEG encoded image data into a plurality of identical application fields with identical appointed application field identifications according to the sequence of the identification codes, the data length and the data content.
6. A photographing apparatus, which is applied to a terminal, the photographing apparatus comprising:
a determining unit configured to determine, in response to acquisition of a photographing request, an image photographing format of a photographing image requested by the photographing request;
the acquisition unit is used for acquiring an original image acquired during shooting if the image shooting format is determined to be the high-efficiency image file format HEIF;
the synthesizing unit is used for carrying out Joint Photographic Experts Group (JPEG) encoding on the original image acquired during shooting and synthesizing a first image based on the image data after JPEG encoding;
a display unit configured to display the first image;
the synthesizing unit is also used for carrying out HEIF coding on the original image acquired during shooting and synthesizing a second image in HEIF format based on the image data after HEIF coding;
the display unit is further configured to replace the displayed first image with the second image.
7. The photographing device as claimed in claim 6, wherein said synthesizing unit performs joint photographic experts group JPEG encoding on image data acquired at the time of photographing in such a manner that:
and adjusting the resolution of the original image acquired during shooting to be a first resolution lower than a specified resolution threshold, and performing JPEG encoding on image data of the first resolution.
8. The photographing device as claimed in claim 6, wherein the synthesizing unit synthesizes the first image based on the JPEG encoded image data in the following manner:
storing the JPEG encoded image data into an exchangeable image file format structure according to a specified protocol;
and when the HEIF format shooting is determined to be needed, acquiring and analyzing the complete image data stored in the exchangeable image file format structure based on the designated protocol, and synthesizing the first image based on the acquired complete image data.
9. The photographing device of claim 8, wherein the synthesizing unit stores the JPEG encoded image data into the exchangeable image file format structure in the following manner:
and storing the JPEG encoded image data into an application field specified in the exchangeable image file format structure.
10. The photographing device of claim 9, wherein the synthesizing unit stores the JPEG encoded image data into a designated application field in the exchangeable image file format structure in the following manner:
and storing the JPEG encoded image data into a plurality of identical application fields with identical appointed application field identifications according to the sequence of the identification codes, the data length and the data content.
11. A photographing device, characterized in that the photographing device comprises:
a memory for storing instructions; and
a processor for invoking instructions stored in said memory to perform a shooting method as claimed in any one of claims 1-5.
12. A computer-readable storage medium having stored therein instructions which, when executed by a processor, perform the photographing method of any one of claims 1-5.
CN202011148056.3A 2020-10-23 2020-10-23 Shooting method, shooting device and computer readable storage medium Active CN114500819B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011148056.3A CN114500819B (en) 2020-10-23 2020-10-23 Shooting method, shooting device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011148056.3A CN114500819B (en) 2020-10-23 2020-10-23 Shooting method, shooting device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114500819A CN114500819A (en) 2022-05-13
CN114500819B true CN114500819B (en) 2023-09-15

Family

ID=81471016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011148056.3A Active CN114500819B (en) 2020-10-23 2020-10-23 Shooting method, shooting device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114500819B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369239A (en) * 2012-03-28 2013-10-23 三星电子株式会社 Image processing apparatus and method for camera
CN106464781A (en) * 2014-05-08 2017-02-22 索尼公司 Information processing apparatus and information processing method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100265347A1 (en) * 2009-04-16 2010-10-21 Sony Ericsson Mobile Communications Ab Methods, electronic devices, and computer program products for encoding image files to facilitate browsing thereof
US8446484B2 (en) * 2010-04-21 2013-05-21 Nokia Corporation Image processing architecture with pre-scaler
US20120033103A1 (en) * 2010-08-05 2012-02-09 Apple Inc. Raw-Split Mode Image Capture

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369239A (en) * 2012-03-28 2013-10-23 三星电子株式会社 Image processing apparatus and method for camera
CN106464781A (en) * 2014-05-08 2017-02-22 索尼公司 Information processing apparatus and information processing method

Also Published As

Publication number Publication date
CN114500819A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
CN108419016B (en) Shooting method and device and terminal
US20220321797A1 (en) Photographing method in long-focus scenario and terminal
WO2021143269A1 (en) Photographic method in long focal length scenario, and mobile terminal
CN106201734B (en) File sharing method and device
JP2017529708A (en) Method and apparatus for acquiring video content
JP6333990B2 (en) Panorama photo generation method and apparatus
EP4117272A1 (en) Image processing method and apparatus
CN104869314A (en) Photographing method and device
KR100719841B1 (en) Method for creation and indication of thumbnail view
CN114727004A (en) Image acquisition method and device, electronic equipment and storage medium
US20050192050A1 (en) Method and apparatus for processing incoming call of wireless telephone having camera
CN112188034A (en) Image processing method, device, terminal equipment and medium
CN113286073A (en) Imaging method, imaging device, and storage medium
CN114500819B (en) Shooting method, shooting device and computer readable storage medium
CN114500821B (en) Photographing method and device, terminal and storage medium
US20210377454A1 (en) Capturing method and device
EP3905660A1 (en) Method and device for shooting image, and storage medium
CN111461950B (en) Image processing method and device
CN107682623B (en) Photographing method and device
CN114727001B (en) Method, device and medium for processing image data
CN111612875A (en) Dynamic image generation method and device, electronic equipment and storage medium
CN111724398A (en) Image display method and device
CN114726997B (en) Image storage and reading method and device, electronic equipment and storage medium
CN111241097B (en) Method for processing object, device for processing object and storage medium
CN110933300B (en) Image processing method and electronic terminal equipment

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
GR01 Patent grant
GR01 Patent grant