CN112311985A - Multi-shooting processing method and device and storage medium - Google Patents

Multi-shooting processing method and device and storage medium Download PDF

Info

Publication number
CN112311985A
CN112311985A CN202011086847.8A CN202011086847A CN112311985A CN 112311985 A CN112311985 A CN 112311985A CN 202011086847 A CN202011086847 A CN 202011086847A CN 112311985 A CN112311985 A CN 112311985A
Authority
CN
China
Prior art keywords
image
shot
processing
main
copied
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.)
Granted
Application number
CN202011086847.8A
Other languages
Chinese (zh)
Other versions
CN112311985B (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011086847.8A priority Critical patent/CN112311985B/en
Publication of CN112311985A publication Critical patent/CN112311985A/en
Application granted granted Critical
Publication of CN112311985B publication Critical patent/CN112311985B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • 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/66Remote control of cameras or camera parts, e.g. by remote control devices
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/268Signal distribution or switching

Landscapes

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

Abstract

The application discloses a multi-shooting photographing processing method, a multi-shooting photographing processing device and a storage medium, relates to the field of image processing, and is used for solving the problem that in the prior art, the waiting time is too long during double-shooting photographing. The method comprises the following steps: copying a shot image from an image data pipeline, and storing a main shot image in the shot image into a gallery; processing the copied shot image through a multi-shot algorithm to obtain a processed image; and replacing the main shot image in the gallery with the processing image. Therefore, the running time of waiting for image processing is avoided by processing the copied image, so that the user can continuously take the double photos, the waiting time of taking the double photos is reduced, and the photographing experience of the user is improved.

Description

Multi-shooting processing method and device and storage medium
Technical Field
The present application relates to the field of image processing, and in particular, to a method and an apparatus for processing multi-shot images, and a storage medium.
Background
With the increasing development of terminal devices such as smart phones, the camera technology is one of the most important factors that a mobile phone can become popular in the market, the user's preference and demand for the camera are higher and higher, and the camera technology of the smart phone is also developed to a higher and higher level. At present, cameras with slightly higher positions are positioned in the market of mobile phones, and the cameras are not used for single shooting, but used for double shooting. The double-shot photographing is a photographing mode frequently used by users.
However, the double-shot photography generally needs to be accompanied by a matched corresponding double-shot algorithm, the operation time of the conventional mobile terminal double-shot algorithm is too long, and some operations need 2 seconds to 3 seconds. Therefore, in the related art, the waiting time at the time of the double shot photographing is excessively long.
Disclosure of Invention
The embodiment of the application provides a multi-shooting photographing processing method, a multi-shooting photographing processing device and a storage medium, and aims to solve the problem that in the prior art, the waiting time is too long when double-shooting photographing is performed.
In a first aspect, an embodiment of the present application provides a multi-shot photographing processing method, including:
copying a shot image from an image data pipeline, and storing a main shot image in the shot image into a gallery;
processing the copied shot image through a multi-shot algorithm to obtain a processed image;
and replacing the main shot image in the gallery with the processing image.
According to the method, the shot image is copied, the copied image is subjected to image processing, and finally the processed image is replaced with the original shot image. Therefore, the running time of waiting for image processing is avoided by processing the copied image, so that the user can continuously take the double photos, the waiting time of taking the double photos is reduced, and the photographing experience of the user is improved.
In one possible implementation manner, before saving the main shot image in the shot images into the gallery, the method further includes:
marking the main shot image to obtain marking information of the main shot image;
the replacing the main shot image from the gallery with the processed image comprises:
searching a main shot image corresponding to the processed image according to the mark information;
and replacing the corresponding main shot image in the gallery with the processing image.
In the method, the information of each main shot image can be determined by marking the main shot image. After the copied image is processed, the main shot image corresponding to the processed image can be determined according to the mark information, so that the main shot image stored in the gallery can be accurately replaced.
In one possible implementation manner, before copying the captured image from the image data pipeline and saving the main shot image in the captured image in the gallery, the method further includes:
obtaining a shot image through system camera application;
the replacing the main shot image in the gallery with the processing image comprises:
if the system camera application is not closed, replacing the main shot image in the gallery with the processed image through the system camera application;
if the system camera application is closed, replacing the main shooting image in the gallery with the processing image through a resident system service; wherein the system-resident service is a service for the system camera application.
According to the method, which method is used for replacing the main shot image is determined according to whether the application of the system camera is closed, so that the replacement mode can be selected flexibly; and when the system camera application is closed, the replacement work can still be completed, and the replacement accuracy is improved.
In a possible implementation manner, the processing the copied captured image through a multi-shot algorithm to obtain a processed image includes:
and processing the copied shot image by using a multi-shot algorithm through the resident system service to obtain a processed image.
According to the method, the copied image is processed through the resident system service, and processing failure caused by closing the system camera application can be avoided.
In a possible implementation manner, the processing the copied captured image through a multi-shot algorithm to obtain a processed image includes:
processing the copied shot image through a multi-shot algorithm to obtain an image with a format to be converted;
and converting the picture format of the image with the format to be converted by the system camera application to obtain the processed image.
According to the method, the picture format of the processed image is converted, so that the processed image can normally replace the main shot image, and therefore the replacement work is smoothly completed.
In one possible implementation, the method further includes:
if other shot images are copied from the image data pipeline in the process of processing the copied shot images through the multi-shot algorithm, adding the copied other shot images into an image queue;
after the processing of the copied shot image through the multi-shot algorithm to obtain a processed image, the method further comprises:
and selecting shot images from the image queue for processing, and removing the selected shot images from the image queue after processing.
According to the method, the copied image to be processed is added into the image queue, and the situation that processing problems occur due to the fact that a user continuously shoots double-shot images can be avoided.
In a second aspect, an embodiment of the present application provides a multi-shot photographing processing apparatus, including:
the copying module is used for copying the shot images from the image data pipeline and storing the main shot images in the shot images into a gallery;
the processing module is used for processing the copied shot image through a multi-shot algorithm to obtain a processed image;
and the replacing module is used for replacing the main shot image in the gallery with the processing image.
In one possible implementation, the apparatus further includes:
the marking module is used for marking the main shot image before the copying module stores the main shot image in the shot image into the gallery to obtain the marking information of the main shot image;
the replacement module includes:
the searching unit is used for searching the main shooting image corresponding to the processing image according to the marking information;
and a first replacing unit for replacing the corresponding main shot image in the gallery with the processing image.
In one possible implementation, the apparatus further includes:
the acquisition module is used for copying the shot images from the image data pipeline by the copying module, and obtaining the shot images through system camera application before the main shot images in the shot images are stored in the gallery;
the replacement module includes:
a second replacement unit, configured to replace, by the system camera application, the main shot image in the gallery with the processed image if the system camera application is not closed;
a third replacement unit, configured to replace the main shot image in the gallery with the processed image through a resident system service if the system camera application is closed; wherein the system-resident service is a service for the system camera application.
In a possible implementation manner, the processing module is specifically configured to process the copied shot image by using a multi-shot algorithm through the system resident service, so as to obtain a processed image.
In one possible implementation, the processing module includes:
the image determining unit is used for processing the copied shot image through a multi-camera algorithm to obtain an image with a format to be converted;
and the conversion unit is used for converting the picture format of the image with the format to be converted through the system camera application to obtain the processed image.
In one possible implementation, the apparatus further includes:
the queue module is used for copying other shot images from the image data pipeline in the process of processing the copied shot images through a multi-shot algorithm, and adding the copied other shot images into an image queue;
and the removing module is used for processing the copied shot images through a multi-shot algorithm by the processing module, selecting the shot images from the image queue for processing after the processed images are obtained, and removing the selected shot images from the image queue after the processing.
In a third aspect, a computing device is provided, comprising at least one processing unit, and at least one storage unit, wherein the storage unit stores a computer program that, when executed by the processing unit, causes the processing unit to perform the steps of any of the above-described multi-shot photography processing methods.
In one embodiment, the computing device may be a server or a terminal device.
In a fourth aspect, there is provided a computer readable medium storing a computer program executable by a terminal device, the program, when run on the terminal device, causing the terminal device to perform the steps of any of the above-described multi-shot photographing processing methods.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flowchart of a multi-shot photographing processing method in an embodiment of the present application;
FIG. 2 is a schematic structural diagram of a multi-shot photographing process in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a computing device according to an embodiment of the present application.
Detailed Description
In order to solve the problem that the waiting time is too long when a double-shot shooting is performed in the prior art, embodiments of the present application provide a multi-shot shooting processing method, apparatus, and storage medium. In order to better understand the technical solution provided by the embodiments of the present application, the following brief description is made on the basic principle of the solution:
with the increasing development of terminal devices such as smart phones, the camera technology is one of the most important factors that a mobile phone can become popular in the market, the user's preference and demand for the camera are higher and higher, and the camera technology of the smart phone is also developed to a higher and higher level. At present, cameras with slightly higher positions are positioned in the market of mobile phones, and the cameras are not used for single shooting, but used for double shooting. The double-shot photographing is a photographing mode frequently used by users. In various double-shot schemes, main shot + wide angle and main shot + depth of field are two commonly used double-shot schemes.
However, the double-shot photography generally needs to be accompanied by a matched corresponding double-shot algorithm, the operation time of the conventional mobile terminal double-shot algorithm is too long, and some operations need 2 seconds to 3 seconds. The waiting time for the double-shot photographing is too long, which is a bad experience for the user. However, the wonderful pictures taken in daily life are always vanishing, and if a user needs to take a double-shot picture for 2-3 seconds, the user experience is very poor, so that an invention method is urgently needed to reduce the double-shot photographing time.
In view of this, embodiments of the present application provide a multi-shot photographing processing method, apparatus, and storage medium, which copy a shot image, perform image processing on the copied image, and finally replace the processed image with an original shot image. Therefore, the running time of waiting for image processing is avoided by processing the copied image, so that the user can continuously take the double photos, the waiting time of taking the double photos is reduced, and the photographing experience of the user is improved.
The preferred embodiments of the present application will be described below with reference to the accompanying drawings of the specification, it should be understood that the preferred embodiments described herein are merely for illustrating and explaining the present application, and are not intended to limit the present application, and that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
The following further explains the multi-shot photographing processing method provided in the embodiments of the present application. As shown in fig. 1, the method comprises the following steps:
s101: and copying the shot images from the image data pipeline, and saving the main shot images in the shot images into a gallery.
S102: and processing the copied shot image through a multi-shot algorithm to obtain a processed image.
S103: and replacing the main shot image in the gallery with the processing image.
The shot image is copied, the copied image is subjected to image processing, and finally the processed image and the original shot image are replaced. Therefore, the running time of waiting for image processing is avoided by processing the copied image, so that the user can continuously take the double photos, the waiting time of taking the double photos is reduced, and the photographing experience of the user is improved.
In the embodiment of the present application, multi-shot means a plurality of photographs taken by a plurality of cameras. The multi-shot includes a double shot (i.e., two pictures taken by two cameras), a triple shot (i.e., three pictures taken by three cameras), and the like.
According to a common double-shooting scheme, main shooting pictures and auxiliary shooting pictures shot by the two cameras in a main shooting mode and an auxiliary shooting mode are collected and sent to a double-shooting algorithm for blurring effect processing or contrast enhancement processing. For example: the method comprises the double-shooting schemes of color + black and white, main shooting + depth of field, main shooting + wide angle, main shooting + long focus and the like.
The description of the present application will be explained by taking the double-shot mode as an example.
In the embodiment of the present application, a hal (Hardware abstraction Layer) Layer camera architecture of a high-pass platform camx (architecture for a camera) is involved.
In the camx architecture, when a conventional implantation algorithm flow wants to operate a double-shot algorithm, camera image data needs to be intercepted in a node in an image data pipeline, after the double-shot algorithm is operated to synthesize a double-shot picture, the synthesized picture data is put back to the original pipeline, and then a subsequent shooting flow can be performed.
The method comprises the steps that after a user clicks to take a picture through a system camera application, the system camera application obtains a shot image, the shot image is sent to a java (programming language) layer from a hal layer through an image data pipeline, the existing double-shot processing method is to intercept the shot image from the image data pipeline and carry out double-shot processing on the shot image, namely, two images are fused into one image, after the processing is finished, the processed image is put back to the image data pipeline, and a subsequent shooting process is executed. However, since the operation time of the double shot algorithm is long, if the process is not completed, the next shot cannot be taken.
Therefore, in the embodiment of the present application, in order to solve the above problem, when a captured image is intercepted from an image data pipeline, the captured image is copied, and the copied captured image is subjected to a double shot process, and the original captured image is put back into the image data pipeline. Therefore, the copied shot image is used for double-shot processing, the time of the subsequent shooting process is not occupied, and the shooting can be completed quickly. And because the original shot image is two images, the main shot image is finally stored in the gallery after the subsequent shooting process.
And for the copied shot image, the copied shot image can be subjected to double shooting processing by additionally providing a service for system camera application. Because the double-shot processing time is long, if the user performs double-shot shooting again in the processing process, an image queue may be set, and the obtained copied shot image is added to the set image queue, which may be specifically implemented as: and if other shot images are copied from the image data pipeline in the process of processing the copied shot images through the multi-shot algorithm, adding the copied other shot images into the image queue.
In this way, after the current captured image is processed, the next captured image can be processed in the image queue in a double-shot manner in sequence, which can be specifically implemented as follows: and selecting shot images from the image queue for processing, and removing the selected shot images from the image queue after processing.
For example: if there are 4 sets of copied images, namely image 1, image 2, image 3 and image 4, the image 2, image 3 and image 4 are arranged in the image queue when the image 1 is processed, and the image 2 is acquired from the image queue for processing and the image 3 and image 4 are arranged in the image queue after the image 1 is processed. In this way, the duplicate images to be processed are added into the image queue, and the situation that the processing is problematic due to the fact that the user continuously shoots double-shot images can be avoided.
In the embodiment of the present application, since the double shot processing time is long, a problem also occurs in replacing the main shot image in the gallery with the processed image. For example: the time for completing one processing operation by the double-shot algorithm is that 4 main shot images are already stored in the gallery, so that the processed double-shot images face the problem that the main shot images corresponding to the double-shot images cannot be correctly replaced, and therefore, before the main shot images in the shot images are stored in the gallery, the problem can be solved by adding a mark to the main shot information, which can be specifically implemented as: and marking the main shot image to obtain the marking information of the main shot image.
Each main shot image is marked, and after the shot image is processed, the image name is named; for example: if there are 4 images, the processing images corresponding to the four images marked as image 1, image 2, image 3, image 4 and main shot image 1 are named as image 1, so that the main shot images with the same name can be replaced by the marking information, and the main shot images stored in the gallery can be accurately replaced.
In the embodiment of the present application, since the duplicated photographed image is subjected to the double-shot processing by additionally providing a service for the system camera application, after the processing is completed, the processed image cannot be put back into the image data pipeline, and therefore, the system camera application cannot be used to perform image conversion on the processed image through a jpeg (one picture format) interface.
Since the picture format of the processed image is yuv (a picture format) picture format, and the system camera application needs a jpeg-formatted photo to be able to display, i.e., save in a gallery, format conversion of the processed image is required. The method can be specifically implemented as follows: processing the copied shot image through a multi-shot algorithm to obtain an image with a format to be converted; and converting the picture format of the image with the format to be converted by the system camera application to obtain the processed image.
In the embodiment of the application, after the yuv format of the double shot photo is stored in the storage partition of the terminal, a tag (mark) information is added in the 3A metadata data returned to the app (application) layer by the node, the system camera application obtains a double shot photo completion notification by monitoring the change of the tag information in the photo stream, and further reads the double shot photo in the yuv format of the specified storage position. After the system camera is applied to obtain the double-shot photos in the yuv format, a jpeg coding interface of the app layer is called, and the photos in the yuv format are coded into a jpeg format.
In this way, the picture format of the processed image is converted, so that the processed image can normally replace the main shooting image, and the replacement work is smoothly completed.
In the embodiment of the present application, there may be a case where the user takes the double shot pictures continuously and exits the system camera application without all the double shot pictures being completed. In the existing camx architecture, the pipeline and the node where the double-shot processing is located are destroyed when the system camera application is closed, and the double-shot thread is also destroyed. Meanwhile, the application layer detects the generation of the double-shot photos, and the service thread replacing the main-shot photos is destroyed. There is a problem in that: the Hal layer and application layer processing bi-shot flow threads are destroyed by exiting the camera flow, which will lose the bi-shot photos being processed by camx.
The present application may solve the above problem by turning on a resident system service, which is a service for the system camera application. And the resident system service is opened at different architecture layers aiming at different processing steps.
And on the hal layer, processing the copied shot image by using a multi-shot algorithm through the resident system service to obtain a processed image.
And replacing the main shot image in the gallery with the processed image through a resident system service at a java system layer.
In this way, even if the system camera application is exited during the processing, the double shot processing and the replacement operation can be continued.
In order to save system resources, it may be determined which way to use for the replacement operation according to the system camera application, and the method may specifically be implemented as follows:
if the system camera application is not closed, replacing the main shot image in the gallery with the processed image through the system camera application;
if the system camera application is closed, replacing the main shooting image in the gallery with the processing image through a resident system service; wherein the system-resident service is a service for the system camera application.
In the embodiment of the present application, the resident system service is divided into two states, one is a running active state for replacement operation; one is a sleep state to conserve system resources. When the camera is turned on, the replacement operation processing of the java layer is processed by the system camera application, and the resident system service enters a dormant state to wait to be notified to wake up so as to save the system power consumption. Even if the system camera application is in the off state, the resident system service enters the sleep state after the to-be-processed double-shot photos are processed.
Therefore, which method is used for replacing the main shot image is determined according to whether the system camera application is closed or not, and therefore the replacement mode can be selected flexibly; and when the system camera application is closed, the replacement work can still be completed, and the replacement accuracy is improved.
Based on the same inventive concept, the embodiment of the application also provides a multi-shooting photographing processing device. As shown in fig. 2, the apparatus includes:
the copying module 201 is used for copying the shot images from the image data pipeline and storing the main shot images in the shot images into a gallery;
the processing module 202 is configured to process the copied shot image through a multi-shot algorithm to obtain a processed image;
a replacing module 203, configured to replace the main shot image in the gallery with the processed image.
In one possible implementation, the apparatus further includes:
a marking module, configured to mark the main shot image in the shot image before the copying module 201 stores the main shot image in the gallery, so as to obtain mark information of the main shot image;
the replacement module 203 includes:
the searching unit is used for searching the main shooting image corresponding to the processing image according to the marking information;
and a first replacing unit for replacing the corresponding main shot image in the gallery with the processing image.
In one possible implementation, the apparatus further includes:
the acquisition module is used for copying the shot image from the image data pipeline by the copying module 201, and obtaining the shot image through system camera application before storing the main shot image in the gallery;
the replacement module 203 includes:
a second replacement unit, configured to replace, by the system camera application, the main shot image in the gallery with the processed image if the system camera application is not closed;
a third replacement unit, configured to replace the main shot image in the gallery with the processed image through a resident system service if the system camera application is closed; wherein the system-resident service is a service for the system camera application.
In a possible implementation manner, the processing module 202 is specifically configured to process the copied captured image by using a multi-shot algorithm through the system resident service, so as to obtain a processed image.
In one possible implementation, the processing module 202 includes:
the image determining unit is used for processing the copied shot image through a multi-camera algorithm to obtain an image with a format to be converted;
and the conversion unit is used for converting the picture format of the image with the format to be converted through the system camera application to obtain the processed image.
In one possible implementation, the apparatus further includes:
the queue module is used for copying other shot images from the image data pipeline in the process of processing the copied shot images through a multi-shot algorithm, and adding the copied other shot images into an image queue;
and the removing module is used for the processing module 202 to process the copied shot images through a multi-camera algorithm, select shot images from the image queue for processing after the processed images are obtained, and remove the selected shot images from the image queue after the processing.
Based on the same technical concept, the present application further provides a terminal device 300, referring to fig. 3, the terminal device 300 is configured to implement the methods described in the above various method embodiments, for example, implement the embodiment shown in fig. 2, and the terminal device 300 may include a memory 301, a processor 302, an input unit 303, and a display panel 304.
A memory 301 for storing a computer program for execution by the processor 302. The memory 301 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the terminal device 300, and the like. The processor 302 may be a Central Processing Unit (CPU), a digital processing unit, or the like. The input unit 303 may be used to obtain a user instruction input by a user. The display panel 304 is configured to display information input by a user or information provided to the user, and in this embodiment of the present application, the display panel 304 is mainly used to display a display interface of each application program in the terminal device and a control entity displayed in each display interface. Alternatively, the display panel 304 may be configured in the form of a Liquid Crystal Display (LCD) or an organic light-emitting diode (OLED), and the like.
The embodiment of the present application does not limit the specific connection medium among the memory 301, the processor 302, the input unit 303, and the display panel 304. In the embodiment of the present application, the memory 301, the processor 302, the input unit 303, and the display panel 304 are connected by the bus 305 in fig. 3, the bus 305 is represented by a thick line in fig. 3, and the connection manner between other components is merely schematically illustrated and is not limited thereto. The bus 305 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 3, but this does not mean only one bus or one type of bus.
The memory 301 may be a volatile memory (volatile memory), such as a random-access memory (RAM); the memory 301 may also be a non-volatile memory (non-volatile memory) such as, but not limited to, a read-only memory (rom), a flash memory (flash memory), a Hard Disk Drive (HDD) or a solid-state drive (SSD), or any other medium which can be used to carry or store desired program code in the form of instructions or data structures and which can be accessed by a computer. The memory 301 may be a combination of the above memories.
The processor 302, configured to implement the embodiment shown in fig. 1, includes:
a processor 302 for invoking a computer program stored in the memory 301 to perform the embodiment as shown in fig. 1.
The embodiment of the present application further provides a computer-readable storage medium, which stores computer-executable instructions required to be executed by the processor, and includes a program required to be executed by the processor.
In some possible embodiments, aspects of a multi-shot photographing processing method provided by the present application may also be implemented in the form of a program product including program code for causing a terminal device to perform the steps of a multi-shot photographing processing method according to various exemplary embodiments of the present application described above in this specification when the program product is run on the terminal device. For example, the terminal device may perform the embodiment as shown in fig. 1.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A multi-shot photo processing program product of an embodiment of the present application may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be executable on a computing device. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including a physical programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device over any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., over the internet using an internet service provider).
It should be noted that although several units or sub-units of the apparatus are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functions of two or more units described above may be embodied in one unit, according to embodiments of the application. Conversely, the features and functions of one unit described above may be further divided into embodiments by a plurality of units.
Further, while the operations of the methods of the present application are depicted in the drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable document processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable document processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable document processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable document processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (14)

1. A multi-shot photography processing method, the method comprising:
copying a shot image from an image data pipeline, and storing a main shot image in the shot image into a gallery;
processing the copied shot image through a multi-shot algorithm to obtain a processed image;
and replacing the main shot image in the gallery with the processing image.
2. The method according to claim 1, wherein before saving the main shot image of the shot images into a gallery, the method further comprises:
marking the main shot image to obtain marking information of the main shot image;
the replacing the main shot image from the gallery with the processed image comprises:
searching a main shot image corresponding to the processed image according to the mark information;
and replacing the corresponding main shot image in the gallery with the processing image.
3. The method of claim 1, wherein before copying the captured images from the image data pipeline and saving the main captured image of the captured images to the gallery, the method further comprises:
obtaining a shot image through system camera application;
the replacing the main shot image in the gallery with the processing image comprises:
if the system camera application is not closed, replacing the main shot image in the gallery with the processed image through the system camera application;
if the system camera application is closed, replacing the main shooting image in the gallery with the processing image through a resident system service; wherein the system-resident service is a service for the system camera application.
4. The method of claim 3, wherein processing the copied captured image through a multi-shot algorithm to obtain a processed image comprises:
and processing the copied shot image by using a multi-shot algorithm through the resident system service to obtain a processed image.
5. The method of claim 3, wherein processing the copied captured image through a multi-shot algorithm to obtain a processed image comprises:
processing the copied shot image through a multi-shot algorithm to obtain an image with a format to be converted;
and converting the picture format of the image with the format to be converted by the system camera application to obtain the processed image.
6. The method according to any one of claims 1 to 5, further comprising:
if other shot images are copied from the image data pipeline in the process of processing the copied shot images through the multi-shot algorithm, adding the copied other shot images into an image queue;
after the processing of the copied shot image through the multi-shot algorithm to obtain a processed image, the method further comprises:
and selecting shot images from the image queue for processing, and removing the selected shot images from the image queue after processing.
7. A multi-shot photographing processing apparatus, the apparatus comprising:
the copying module is used for copying the shot images from the image data pipeline and storing the main shot images in the shot images into a gallery;
the processing module is used for processing the copied shot image through a multi-shot algorithm to obtain a processed image;
and the replacing module is used for replacing the main shot image in the gallery with the processing image.
8. The apparatus of claim 7, further comprising:
the marking module is used for marking the main shot image before the copying module stores the main shot image in the shot image into the gallery to obtain the marking information of the main shot image;
the replacement module includes:
the searching unit is used for searching the main shooting image corresponding to the processing image according to the marking information;
and a first replacing unit for replacing the corresponding main shot image in the gallery with the processing image.
9. The apparatus of claim 7, further comprising:
the acquisition module is used for copying the shot images from the image data pipeline by the copying module, and obtaining the shot images through system camera application before the main shot images in the shot images are stored in the gallery;
the replacement module includes:
a second replacement unit, configured to replace, by the system camera application, the main shot image in the gallery with the processed image if the system camera application is not closed;
a third replacement unit, configured to replace the main shot image in the gallery with the processed image through a resident system service if the system camera application is closed; wherein the system-resident service is a service for the system camera application.
10. The apparatus according to claim 9, wherein the processing module is specifically configured to process the copied captured image by the system resident service using a multi-shot algorithm to obtain a processed image.
11. The apparatus of claim 9, wherein the processing module comprises:
the image determining unit is used for processing the copied shot image through a multi-camera algorithm to obtain an image with a format to be converted;
and the conversion unit is used for converting the picture format of the image with the format to be converted through the system camera application to obtain the processed image.
12. The apparatus of any of claims 7-11, further comprising:
the queue module is used for copying other shot images from the image data pipeline in the process of processing the copied shot images through a multi-shot algorithm, and adding the copied other shot images into an image queue;
and the removing module is used for processing the copied shot images through a multi-shot algorithm by the processing module, selecting the shot images from the image queue for processing after the processed images are obtained, and removing the selected shot images from the image queue after the processing.
13. An electronic device, characterized in that it comprises a processor and a memory, wherein the memory stores program code which, when executed by the processor, causes the processor to carry out the steps of the method of any one of claims 1 to 6.
14. Computer-readable storage medium, characterized in that it comprises program code for causing an electronic device to carry out the steps of the method of any one of claims 1 to 6, when said program product is run on said electronic device.
CN202011086847.8A 2020-10-12 2020-10-12 Multi-shooting processing method and device and storage medium Active CN112311985B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011086847.8A CN112311985B (en) 2020-10-12 2020-10-12 Multi-shooting processing method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011086847.8A CN112311985B (en) 2020-10-12 2020-10-12 Multi-shooting processing method and device and storage medium

Publications (2)

Publication Number Publication Date
CN112311985A true CN112311985A (en) 2021-02-02
CN112311985B CN112311985B (en) 2021-12-14

Family

ID=74489775

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011086847.8A Active CN112311985B (en) 2020-10-12 2020-10-12 Multi-shooting processing method and device and storage medium

Country Status (1)

Country Link
CN (1) CN112311985B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114125284A (en) * 2021-11-18 2022-03-01 Oppo广东移动通信有限公司 Image processing method, electronic device, and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050111857A1 (en) * 2003-11-26 2005-05-26 Canon Kabushiki Kaisha Method and apparatus for processing image, image forming apparatus, method for controlling image forming apparatus, computer program, and computer readable storage medium
JP2010226593A (en) * 2009-03-25 2010-10-07 Fujifilm Corp Multi-lens photographing apparatus, through-image display method and program
CN105959557A (en) * 2016-06-07 2016-09-21 深圳市万普拉斯科技有限公司 Photographing method and device
CN108495041A (en) * 2018-04-18 2018-09-04 许培培 A kind of image procossing and display methods, device for electric terminal
CN109688321A (en) * 2018-11-21 2019-04-26 惠州Tcl移动通信有限公司 Electronic equipment and its image display method, the device with store function
WO2020048485A1 (en) * 2018-09-05 2020-03-12 清华-伯克利深圳学院筹备办公室 Vr panoramic photographing system
CN110958390A (en) * 2019-12-09 2020-04-03 Oppo广东移动通信有限公司 Image processing method and related device
US10616459B2 (en) * 2017-11-30 2020-04-07 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method and device for dual-camera-based imaging and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050111857A1 (en) * 2003-11-26 2005-05-26 Canon Kabushiki Kaisha Method and apparatus for processing image, image forming apparatus, method for controlling image forming apparatus, computer program, and computer readable storage medium
JP2010226593A (en) * 2009-03-25 2010-10-07 Fujifilm Corp Multi-lens photographing apparatus, through-image display method and program
CN105959557A (en) * 2016-06-07 2016-09-21 深圳市万普拉斯科技有限公司 Photographing method and device
US10616459B2 (en) * 2017-11-30 2020-04-07 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method and device for dual-camera-based imaging and storage medium
CN108495041A (en) * 2018-04-18 2018-09-04 许培培 A kind of image procossing and display methods, device for electric terminal
WO2020048485A1 (en) * 2018-09-05 2020-03-12 清华-伯克利深圳学院筹备办公室 Vr panoramic photographing system
CN109688321A (en) * 2018-11-21 2019-04-26 惠州Tcl移动通信有限公司 Electronic equipment and its image display method, the device with store function
CN110958390A (en) * 2019-12-09 2020-04-03 Oppo广东移动通信有限公司 Image processing method and related device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
全知远: "CP/NET在实用局部网上的移植――两个移植实例的分析", 《小型微型计算机系统》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114125284A (en) * 2021-11-18 2022-03-01 Oppo广东移动通信有限公司 Image processing method, electronic device, and storage medium
CN114125284B (en) * 2021-11-18 2023-10-31 Oppo广东移动通信有限公司 Image processing method, electronic device and storage medium

Also Published As

Publication number Publication date
CN112311985B (en) 2021-12-14

Similar Documents

Publication Publication Date Title
KR100760227B1 (en) Image file management apparatus and method and storage medium
US10395341B2 (en) Panoramic image generation method and apparatus for user terminal
US9507584B2 (en) Electronic device including a memory technology device
WO2016101757A1 (en) Image processing method and device based on mobile device
CN103530186A (en) Method and system for achieving multi-position storage supported by camera application
US20110231599A1 (en) Storage apparatus and storage system
CN101873422A (en) Imaging apparatus and start-up method of imaging apparatus
JP2008079137A (en) Image processing apparatus and control method thereof, computer program, and storage medium
WO2022089479A1 (en) Photographing method and apparatus, and electronic device
CN112311985B (en) Multi-shooting processing method and device and storage medium
US8346006B1 (en) Real time auto-tagging system
KR20150057736A (en) Apparatus and Method For Managing Image Files By Displaying Backup Information
US8077221B2 (en) Image capturing apparatus and control method therefor with determination whether storage medium is limited-rewriteable storage medium
CN104903870A (en) Apparatus and method of converting address and data of memory in a terminal
EP4199505A1 (en) Methods and apparatus to process video frame pixel data using artificial intelligence video frame segmentation
KR102174337B1 (en) Memory System and Electronic device including memory system
US20150109464A1 (en) Apparatus for and method of managing image files by using thumbnail images
WO2022095878A1 (en) Photographing method and apparatus, and electronic device and readable storage medium
US20140193083A1 (en) Method and apparatus for determining the relationship of an image to a set of images
JP4574382B2 (en) Information retrieval apparatus, control method therefor, program, and storage medium
US20170127038A1 (en) Method for performing depth information management in an electronic device, and associated apparatus and associated computer program product
US20130103907A1 (en) Memory management device, memory management method, control program, and recording medium
JP2008182339A (en) Image processor, image processing method, and computer program
CN101018307A (en) Apparatus and method for photographing by a camera
CN116703718B (en) Image amplification method and electronic 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