+

CN111526288A - Image processing method and device and storage medium - Google Patents

Image processing method and device and storage medium Download PDF

Info

Publication number
CN111526288A
CN111526288A CN202010349291.0A CN202010349291A CN111526288A CN 111526288 A CN111526288 A CN 111526288A CN 202010349291 A CN202010349291 A CN 202010349291A CN 111526288 A CN111526288 A CN 111526288A
Authority
CN
China
Prior art keywords
image processing
image
photographing
information
image information
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
CN202010349291.0A
Other languages
Chinese (zh)
Other versions
CN111526288B (en
Inventor
劳逸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010349291.0A priority Critical patent/CN111526288B/en
Publication of CN111526288A publication Critical patent/CN111526288A/en
Application granted granted Critical
Publication of CN111526288B publication Critical patent/CN111526288B/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/80Camera processing pipelines; Components thereof
    • 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

Landscapes

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

Abstract

The embodiment of the invention discloses an image processing method, an image processing device and a storage medium, wherein when an image shooting process receives a shooting instruction, an image processing thread is established, original image information corresponding to the shooting instruction is obtained, the original image information is preview image information acquired when the shooting instruction is triggered, and the image shooting process is used for acquiring the preview image information; and calling an image processing thread to perform image processing on the original image information to obtain a photographed image corresponding to the photographing instruction.

Description

一种图像处理方法及装置、存储介质Image processing method and device, and storage medium

技术领域technical field

本发明涉及图像处理领域,尤其涉及一种图像处理方法及装置、存储介质。The present invention relates to the field of image processing, in particular to an image processing method and device, and a storage medium.

背景技术时background art

随着图像处理技术的不断发展,图像处理装置的功能越来越多,如拍照功能。如今,人们对图像处理装置进行拍照时的要求越来越高,仅仅依赖图像处理装置上的摄像头拍出来的原始图像已经满足不了人们对美的要求,需要通过不同的图像处理算法来处理不同的原始图像,从而得到美化后的原始图像。With the continuous development of image processing technology, the image processing device has more and more functions, such as a photographing function. Nowadays, people have higher and higher requirements for taking pictures with image processing devices. Only relying on the original images taken by the cameras on the image processing devices can no longer meet people's requirements for beauty. Different image processing algorithms need to be used to process different original images. image to get the beautified original image.

在现有技术中,图像处理装置利用摄像头拍摄到原始图像后,图像处理装置需要先利用图像处理算法对该原始图像进行处理,当图像处理算法处理完该原始图像之后,图像处理装置才能进行下一次的图像拍摄,当利用复杂度高的图像处理算法处理原始图像时,需要很长时间才能将处理完该原始图像,如此,延长了图像处理装置图像拍摄时的时间,降低了图像处理装置拍摄图像时的速度。In the prior art, after an image processing device uses a camera to capture an original image, the image processing device needs to use an image processing algorithm to process the original image, and after the image processing algorithm has processed the original image, the image processing device can process the image. One-time image shooting, when the original image is processed by the image processing algorithm with high complexity, it takes a long time to process the original image, thus prolonging the image shooting time of the image processing device and reducing the shooting time of the image processing device. speed of the image.

发明内容SUMMARY OF THE INVENTION

为解决上述技术问题,本发明实施例期望提供一种图像处理方法及装置、存储介质,能够提高图像处理装置拍摄图像时的速度。In order to solve the above technical problems, the embodiments of the present invention are expected to provide an image processing method and device, and a storage medium, which can improve the speed at which the image processing device captures images.

本发明的技术方案是这样实现的:The technical scheme of the present invention is realized as follows:

本申请实施例提供一种图像处理方法,包括:The embodiment of the present application provides an image processing method, including:

当图像拍摄进程接收到拍照指令时,创建图像处理线程,并获取所述拍照指令对应的原始图像信息,所述原始图像信息为触发所述拍照指令时采集到的预览图像信息,所述图像拍摄进程用于采集所述预览图像信息;When the image capturing process receives a photographing instruction, it creates an image processing thread and acquires the original image information corresponding to the photographing instruction, where the original image information is the preview image information collected when the photographing instruction is triggered, and the image capturing The process is used to collect the preview image information;

调用所述图像处理线程对所述原始图像信息进行图像处理,得到所述拍照指令对应的拍照图像。The image processing thread is called to perform image processing on the original image information to obtain a photographed image corresponding to the photographing instruction.

在上述方案中,调用所述图像处理线程对所述原始图像信息进行图像处理,得到所述拍照指令对应的拍照图像,包括:In the above solution, invoking the image processing thread to perform image processing on the original image information to obtain the photographed image corresponding to the photographing instruction, including:

确定所述原始图像信息的拍照模式和所述拍照模式对应的图像处理算法;determining a photographing mode of the original image information and an image processing algorithm corresponding to the photographing mode;

调用所述图像处理线程,利用所述图像处理算法对所述原始图像信息进行处理,得到所述拍照图像。The image processing thread is called, and the image processing algorithm is used to process the original image information to obtain the photographed image.

在上述方案中,所述创建图像处理线程,并获取所述拍照指令对应的原始图像信息之后,所述方法还包括:In the above solution, after the image processing thread is created and the original image information corresponding to the photographing instruction is obtained, the method further includes:

对图库应用进行锁定,并将所述图库应用的状态信息修改为锁定状态;Locking the gallery application, and modifying the state information of the gallery application to a locked state;

相应的,所述调用所述图像处理线程对所述原始图像信息进行图像处理,得到所述拍照指令对应的拍照图像之后,所述方法还包括:Correspondingly, after calling the image processing thread to perform image processing on the original image information, and obtaining the photographed image corresponding to the photographing instruction, the method further includes:

将所述拍照图像保存至所述图库应用中,并对所述图库应用进行解锁;saving the photographed image into the gallery application, and unlocking the gallery application;

将所述状态信息修改为解锁状态。Modify the state information to an unlocked state.

在上述方案中,所述方法还包括:In the above scheme, the method further includes:

当接收到图库应用的启动指令时,检测所述状态信息;When receiving the startup instruction of the gallery application, detecting the state information;

当所述状态信息为所述解锁状态时,启动所述图库应用;When the state information is the unlocked state, start the gallery application;

当所述状态信息为所述锁定状态时,返回提示信息,以提示所述图库应用无法启动。When the state information is the locked state, a prompt message is returned to prompt that the gallery application cannot be started.

在上述方案中,所述将所述拍照图像保存至所述图库应用中,并对所述图库应用进行解锁之后,所述方法还包括:In the above solution, after saving the photographed image in the gallery application and unlocking the gallery application, the method further includes:

删除所述图像处理线程。Delete the image processing thread.

在上述方案中,所述创建图像处理线程,并获取所述拍照指令对应的原始图像信息之前,所述方法还包括:In the above solution, before the image processing thread is created and the original image information corresponding to the photographing instruction is acquired, the method further includes:

当接收到拍照应用的启动指令时,启动所述拍照应用,并创建图像拍摄进程;When receiving the start instruction of the photographing application, start the photographing application, and create an image photographing process;

调用所述图像拍摄进程采集所述预览图像信息;calling the image capturing process to collect the preview image information;

显示所述预览图像信息与对应的预览图像。The preview image information and the corresponding preview image are displayed.

在上述方案中,所述创建图像处理线程,包括:In the above solution, creating an image processing thread includes:

利用所述图像拍摄进程创建所述图像处理线程。The image processing thread is created using the image capture process.

在上述方案中,所述创建图像处理线程,并获取所述拍照指令对应的原始图像信息之后,所述方法还包括:In the above solution, after the image processing thread is created and the original image information corresponding to the photographing instruction is obtained, the method further includes:

当接收到连续拍照指令时,确定所述连续拍照指令对应的连续拍照次数;When receiving the continuous photographing instruction, determine the number of consecutive photographing times corresponding to the continuous photographing instruction;

根据所述连续拍照次数,利用所述图像拍摄进程创建多个图像处理线程,所述连续拍照的次数与所述多个图像处理线程一一对应;Create multiple image processing threads by using the image capturing process according to the number of consecutive photos, and the number of consecutive photos is in one-to-one correspondence with the multiple image processing threads;

利用所述多个图像处理线程对所述连续拍照指令对应的多个原始图像信息进行图像处理,得到所述多个拍照指令对应的多个拍照图像。The plurality of image processing threads are used to perform image processing on the plurality of original image information corresponding to the continuous photographing instructions, so as to obtain a plurality of photographing images corresponding to the plurality of photographing instructions.

本申请实施例提供了一种图像处理装置,所述装置包括:An embodiment of the present application provides an image processing apparatus, and the apparatus includes:

创建单元,用于当图像拍摄进程接收到拍照指令时,创建图像处理线程,并获取所述拍照指令对应的原始图像信息,所述原始图像信息为触发所述拍照指令时采集到的预览图像信息,所述图像拍摄进程用于采集所述预览图像信息;The creation unit is configured to create an image processing thread when the image capturing process receives a photographing instruction, and obtain original image information corresponding to the photographing instruction, where the original image information is the preview image information collected when the photographing instruction is triggered , the image capturing process is used to collect the preview image information;

处理单元,用于调用所述图像处理线程对所述原始图像信息进行图像处理,得到所述拍照指令对应的拍照图像。A processing unit, configured to call the image processing thread to perform image processing on the original image information, and obtain a photographed image corresponding to the photographing instruction.

本申请实施例提供了一种图像处理装置,所述装置包括:An embodiment of the present application provides an image processing apparatus, and the apparatus includes:

存储器、处理器和通信总线,所述存储器通过所述通信总线与所述处理器进行通信,所述存储器存储所述处理器可执行的图像处理的程序,当所述图像处理的程序被执行时,通过所述处理器执行上述所述的图像处理方法。A memory, a processor and a communication bus, the memory communicates with the processor through the communication bus, the memory stores a program for image processing executable by the processor, when the program for image processing is executed , and the above-mentioned image processing method is executed by the processor.

本申请实施例提供了一种存储介质,其上存储有计算机程序,应用于图像处理装置,其特征在于,该计算机程序被处理器执行时实现上述所述的图像处理方法。An embodiment of the present application provides a storage medium on which a computer program is stored and applied to an image processing apparatus, wherein the computer program implements the image processing method described above when the computer program is executed by a processor.

本发明实施例提供了一种图像处理方法及装置、存储介质,图像处理方法包括:当图像拍摄进程接收到拍照指令时,创建图像处理线程,并获取拍照指令对应的原始图像信息,原始图像信息为触发拍照指令时采集到的预览图像信息,图像拍摄进程用于采集预览图像信息;调用图像处理线程对原始图像信息进行图像处理,得到拍照指令对应的拍照图像。采用上述方法实现方案,图像处理装置通过在接收到拍照指令时,图像处理装置就创建图像处理线程,利用图像处理线程对原始图像信息进行处理,使得数据处理装置在接收到拍照指令之后,图像处理装置可直接进行拍照,不需要图像处理装置对上一次获取的原始图像信息进行处理之后再进行拍照,缩短了图像处理装置图像拍摄时的时间,提高了图像处理装置拍摄图像时的速度。Embodiments of the present invention provide an image processing method, device, and storage medium. The image processing method includes: when an image shooting process receives a photographing instruction, creating an image processing thread, and acquiring original image information corresponding to the photographing instruction, the original image information In order to trigger the preview image information collected when the photographing instruction is triggered, the image photographing process is used to collect the preview image information; the image processing thread is called to perform image processing on the original image information, and the photographing image corresponding to the photographing instruction is obtained. By adopting the above method, the image processing device creates an image processing thread when receiving the photographing instruction, and uses the image processing thread to process the original image information, so that the data processing device can process the image after receiving the photographing instruction. The device can directly take pictures, without the need for the image processing device to process the original image information obtained last time before taking pictures, which shortens the time when the image processing device takes an image and improves the speed when the image processing device takes an image.

附图说明Description of drawings

图1为本申请实施例提供的一种图像处理方法流程图;1 is a flowchart of an image processing method provided by an embodiment of the present application;

图2为本申请实施例提供的一种示例性的图像处理装置的组成结构示意图;FIG. 2 is a schematic diagram of the composition and structure of an exemplary image processing apparatus provided by an embodiment of the present application;

图3为本申请实施例提供的一种示例性的图像处理方法流程图一;FIG. 3 is a flowchart 1 of an exemplary image processing method provided by an embodiment of the present application;

图4为本申请实施例提供的一种示例性的图像处理方法流程图二;FIG. 4 is a second flowchart of an exemplary image processing method provided by an embodiment of the present application;

图5为本申请实施例提供的一种图像处理装置的组成结构示意图一;FIG. 5 is a schematic diagram 1 of the composition structure of an image processing apparatus according to an embodiment of the present application;

图6为本申请实施例提供的一种图像处理装置的组成结构示意图二。FIG. 6 is a second schematic diagram of the composition and structure of an image processing apparatus according to an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

实施例一Example 1

本申请实施例提供了一种图像处理方法,图1为本申请实施例提供的一种图像处理方法流程图一,如图1所示,图像处理方法可以包括:An embodiment of the present application provides an image processing method, and FIG. 1 is a flowchart 1 of an image processing method provided by an embodiment of the present application. As shown in FIG. 1 , the image processing method may include:

S101、当图像拍摄进程接收到拍照指令时,创建图像处理线程,并获取拍照指令对应的原始图像信息,原始图像信息为触发拍照指令时采集到的预览图像信息,图像拍摄进程用于采集预览图像信息。S101. When the image capturing process receives the photographing instruction, create an image processing thread, and obtain original image information corresponding to the photographing instruction, where the original image information is the preview image information collected when the photographing instruction is triggered, and the image capturing process is used to collect the preview image information.

本申请实施例提供的一种图像处理方法适用于图像处理装置在接收到拍照指令时,对拍照指令对应的原始图像信息进行处理,得到拍照指令对应的拍照图像的场景下。The image processing method provided by the embodiment of the present application is suitable for a scene where an image processing device processes original image information corresponding to the photographing instruction when receiving a photographing instruction, and obtains a photographing image corresponding to the photographing instruction.

在本申请实施例中,图像处理装置可以以各种形式来实施。例如,本申请中描述的图像处理装置可以包括诸如手机、照相机、平板电脑、笔记本电脑、掌上电脑、个人数字助理(Personal Digital Assistant,PDA)、便捷式媒体播放器(Portable Media Player,PMP)、导航装置、可穿戴设备、智能手环、计步器等装置,以及诸如数字TV、台式计算机等装置。In the embodiments of the present application, the image processing apparatus may be implemented in various forms. For example, the image processing apparatus described in this application may include, for example, a mobile phone, a camera, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), Navigation devices, wearable devices, smart bracelets, pedometers and other devices, as well as devices such as digital TVs, desktop computers, etc.

在本申请实施例中,当图像处理装置接收到拍照按键的触控操作时,图像处理装置就接收到了目标物体的拍照指令;图像处理装置也可以是通过接收预设的声控指令,来获取目标物体的拍照指令,图像处理装置还可以是通过其他的方式,来获取目标物体的拍照指令,具体的可根据实际情况进行确定,本申请实施例对此不作限定。In the embodiment of the present application, when the image processing device receives the touch operation of the photographing button, the image processing device receives the photographing instruction of the target object; the image processing device may also acquire the target by receiving a preset voice control instruction. For the photographing instruction of the object, the image processing apparatus may also obtain the photographing instruction of the target object by other methods, and the specific information can be determined according to the actual situation, which is not limited in the embodiment of the present application.

在本申请实施例中,图像拍摄进程可以为图像处理装置中预设的进程,该图像拍摄进程,用于采集预览图像信息,并进行拍摄。In this embodiment of the present application, the image capturing process may be a preset process in the image processing apparatus, and the image capturing process is used to collect preview image information and perform capturing.

在本申请实施例中,图像处理装置利用图像拍摄进程接收到拍照指令时,图像处理装置就利用图像处理进程进行拍摄,图像处理装置利用图像处理进程进行拍摄的过程,可以为图像处理装置利用图像拍摄进程将预览图像信息中的预览图像信息作为原始图像信息。In the embodiment of the present application, when the image processing apparatus uses the image shooting process to receive a photographing instruction, the image processing apparatus uses the image processing process to shoot, and the image processing apparatus uses the image processing process to shoot. The shooting process takes the preview image information in the preview image information as the original image information.

在本申请实施例中,图像处理线程为图像处理装置处理原始图像信息的线程。In this embodiment of the present application, the image processing thread is a thread in which the image processing apparatus processes original image information.

需要说明的是,原始图像信息为触发拍照指令时图像处理装置采集到的预览图像信息,其中,原始图像信息可以为数字信息,原始图像信息也可以为模拟信息,还可以为其他的信息,具体的可根据实际情况进行确定,本申请实施例对此不作限定。It should be noted that the original image information is the preview image information collected by the image processing device when the photographing instruction is triggered, wherein the original image information may be digital information, the original image information may also be analog information, and may also be other information. can be determined according to the actual situation, which is not limited in this embodiment of the present application.

在本申请实施例中,图像处理装置可以直接获取拍照指令对应的原始图像信息,图像处理指令还可以利用图像处理线程获取拍照指令对应的原始图像信息,具体的可根据实际情况进行确定,本申请实施例对此不作限定。In the embodiment of the present application, the image processing device can directly obtain the original image information corresponding to the photographing instruction, and the image processing instruction can also use the image processing thread to obtain the original image information corresponding to the photographing instruction. The embodiment does not limit this.

在本申请实施例中,图像处理装置可以利用图像拍摄进程创建图像处理线程,图像处理装置也可以直接创建图像处理线程,图像处理装置还可以通过其他方式来创建图像处理线程,具体的可根据实际情况进行确定,本申请实施例对此不作限定。In the embodiment of the present application, the image processing apparatus may use the image capturing process to create an image processing thread, the image processing apparatus may also directly create an image processing thread, and the image processing apparatus may also create an image processing thread in other ways. The situation is determined, which is not limited in the embodiments of the present application.

在本申请实施例中,图像处理装置创建图像处理线程,并获取拍照指令对应的原始图像信息之后,图像处理装置就对图库应用进行锁定,并将图库应用的状态信息修改为锁定状态。In the embodiment of the present application, after the image processing apparatus creates an image processing thread and acquires the original image information corresponding to the photographing instruction, the image processing apparatus locks the gallery application and modifies the state information of the gallery application to a locked state.

在本申请实施例中,状态信息包括锁定状态。In this embodiment of the present application, the status information includes a lock status.

在本申请实施例中,图像处理装置对图库应用进行锁定的方式,可以为图像处理装置对图库应用的标志位进行修改,来对图库应用进行锁定;也可以为图像处理装置对图库应用的状态信息进行修改,来对图库应用进行锁定,还可以为其他的锁定图库应用的方式,具体的可根据实际情况进行确定,本申请实施例对此不作限定。In this embodiment of the present application, the way that the image processing apparatus locks the gallery application may be that the image processing apparatus modifies the flag bit of the gallery application to lock the gallery application; it may also be the status of the image processing apparatus to the gallery application. The information is modified to lock the gallery application, and other methods of locking the gallery application can also be used, which can be determined according to the actual situation, which is not limited in this embodiment of the present application.

在本申请实施例中,图像处理装置对图库应用的状态信息进行修改,来对图库应用进行锁定的方式,具体可以为图像处理装置将图库应用的标志位对应的状态信息修改成锁定状态的信息,更具体的,图像处理装置可以通过将状态信息加1的方式,来将状态信息修改成锁定状态的信息。In the embodiment of the present application, the image processing apparatus modifies the state information of the gallery application to lock the gallery application. Specifically, the image processing apparatus modifies the state information corresponding to the flag of the gallery application to the information of the locked state. , more specifically, the image processing apparatus can modify the state information to the information of the locked state by adding 1 to the state information.

在本申请实施例中,图像处理装置在创建图像处理线程,并获取拍照指令对应的原始图像信息之前,当图像处理装置接收到拍照应用的启动指令时,图像处理装置就启动拍照应用,并创建图像拍摄进程。In the embodiment of the present application, before the image processing apparatus creates an image processing thread and obtains the original image information corresponding to the photographing instruction, when the image processing apparatus receives the starting instruction of the photographing application, the image processing apparatus starts the photographing application and creates Image capture process.

在本申请实施例中,图像处理装置在接收到拍照应用对应的应用图标的触控操作时,图像处理装置就接收到了拍照应用的启动指令;图像处理装置还可以是通过接收图像处理装置上设置的触控开关的触控操作,来获取到拍照应用的启动指令,图像处理装置还可以是通过接收预设的声控指令,来获取到拍照应用的启动指令,具体的可根据实际情况进行确定,本申请实施例对此不作限定。In the embodiment of the present application, when the image processing device receives the touch operation of the application icon corresponding to the photographing application, the image processing device receives the start instruction of the photographing application; the image processing device may also receive the setting on the image processing device by receiving the The touch operation of the touch switch is used to obtain the startup instruction of the photographing application. The image processing device can also obtain the starting instruction of the photographing application by receiving a preset voice control instruction, and the specific information can be determined according to the actual situation. This embodiment of the present application does not limit this.

在本申请实施例中,图像处理装置可以在接收到拍照应用的启动指令时,图像处理装置先启动拍照应用,然后图像处理装置再创建图像拍摄进程;图像处理装置也可以在接收到拍照应用的启动指令时,图像处理装置先创建图像拍摄进程,然后图像处理装置再启动拍照应用;图像处理装置还可以在接收到拍照应用的启动指令时,图像处理装置就在启动拍照应用的同时,并创建图像拍摄进程,具体的图像处理装置启动拍照应用和图像处理装置创建图像拍摄进程的顺序,可根据实际情况进行确定,本申请实施例对此不作限定。In this embodiment of the present application, when the image processing apparatus receives a start instruction of the photographing application, the image processing apparatus first starts the photographing application, and then the image processing apparatus creates the image photographing process; When starting the instruction, the image processing apparatus first creates an image shooting process, and then the image processing apparatus starts the photographing application; when the image processing apparatus receives the starting instruction of the photographing application, the image processing apparatus starts the photographing application at the same time, and creates the photographing application. The image shooting process, the specific sequence in which the image processing apparatus starts the photographing application and the image processing apparatus creates the image shooting process, may be determined according to the actual situation, which is not limited in this embodiment of the present application.

在本申请实施例中,图像处理装置启动拍照应用和图像拍摄进程之后,图像处理装置就调用图像拍摄进程采集预览图像信息。In the embodiment of the present application, after the image processing apparatus starts the photographing application and the image shooting process, the image processing apparatus calls the image shooting process to collect preview image information.

在本申请实施例中,图像处理装置利用图像拍摄进程采集预览图像信息之后,图像处理装置就显示预览图像信息与对应的预览图像。In the embodiment of the present application, after the image processing apparatus uses the image capturing process to collect preview image information, the image processing apparatus displays the preview image information and the corresponding preview image.

在本申请实施例中,图像处理装置可以调用图像拍摄进程来显示预览图像信息与对应的预览图像,图像处理装置还可以直接来显示预览图像信息与对应的预览图像,具体的可根据实际情况进行确定,本申请实施例对此不作限定。In the embodiment of the present application, the image processing apparatus may call the image capturing process to display preview image information and the corresponding preview image, and the image processing apparatus may directly display the preview image information and the corresponding preview image. It is determined that this embodiment of the present application does not limit this.

在本申请实施例中,当图像处理装置创建图像处理线程,并获取拍照指令对应的原始图像信息之后,图像处理装置接收到连续拍照指令时,图像处理装置就确定连续拍照指令对应的连续拍照次数;当图像处理装置确定连续拍照次数之后,图像处理装置就根据连续拍照次数,利用图像拍摄进程创建多个图像处理线程,连续拍照的次数与多个图像处理线程一一对应;当图像处理装置创建多个图像处理线程之后,图像处理装置就利用多个图像处理线程对连续拍照指令对应的多个原始图像信息进行图像处理,得到多个拍照指令对应的多个拍照图像。In this embodiment of the present application, after the image processing apparatus creates an image processing thread and acquires the original image information corresponding to the photographing instruction, and the image processing apparatus receives the continuous photographing instruction, the image processing apparatus determines the number of consecutive photographing times corresponding to the continuous photographing instruction ; After the image processing device determines the number of consecutive photos taken, the image processing device uses the image capture process to create multiple image processing threads according to the number of consecutive photos, and the number of consecutive photos is in one-to-one correspondence with the multiple image processing threads; when the image processing device creates After the multiple image processing threads, the image processing apparatus uses the multiple image processing threads to perform image processing on the multiple original image information corresponding to the continuous photographing instructions, and obtains multiple photographing images corresponding to the multiple photographing instructions.

在本申请实施例中,连续拍照次数可以为终端用户拍照时设置的拍照次数,也可以是终端中配置的次数,具体的可根据实际情况进行确定,本申请实施例对此不作限定。In this embodiment of the present application, the number of consecutive pictures may be the number of pictures set by the terminal user when taking pictures, or may be the number of times configured in the terminal, which may be determined according to the actual situation, which is not limited in this embodiment of the present application.

在本申请实施例中,拍照次数为可以为3次,该预设次数也可以是5次,具体的可根据实际情况进行确定,本申请实施例对此不作限定。In the embodiment of the present application, the number of times of taking pictures may be 3 times, and the preset number of times may also be 5 times, which may be determined according to the actual situation, which is not limited in the embodiment of the present application.

在本申请实施例中,连续拍照指令的连续拍照次数可以为N次,则对应的图像处理装置创建的图像处理线程的数量为N个。In the embodiment of the present application, the number of consecutive photographing times of the continuous photographing instruction may be N times, and the number of image processing threads created by the corresponding image processing apparatus is N.

示例性的,连续拍照指令对应的连续拍照次数可以为3次,则图像处理装置就创建3个图像处理线程。Exemplarily, the number of consecutive photographing times corresponding to the continuous photographing instruction may be 3 times, and then the image processing apparatus creates 3 image processing threads.

在本申请实施例中,多个拍照指令中的每一个拍照指令对应多个原始图像信息中的一个原始图像信息,多个原始图像信息中的一个原始图像信息对应多个拍照图像中的一个拍照图像。In the embodiment of the present application, each photographing instruction in the multiple photographing instructions corresponds to one original image information among the multiple original image information, and one original image information among the multiple original image information corresponds to one photographing among the multiple photographing images image.

S102、调用图像处理线程对原始图像信息进行图像处理,得到拍照指令对应的拍照图像。S102: Invoke an image processing thread to perform image processing on the original image information, and obtain a photographed image corresponding to the photographing instruction.

在本申请实施例中,当图像处理装置创建图像处理线程,并获取拍照指令对应的原始图像信息之后,图像处理装置就调用图像处理线程对原始图像信息进行图像处理,得到拍照指令对应的拍照图像。In the embodiment of the present application, after the image processing apparatus creates an image processing thread and obtains the original image information corresponding to the photographing instruction, the image processing apparatus invokes the image processing thread to perform image processing on the original image information, and obtains the photographing image corresponding to the photographing instruction .

在本申请实施例中,图像处理装置调用图像处理线程对原始图像信息进行图像处理,得到拍照指令对应的拍照图像的过程,包括图像处理装置确定原始图像信息的拍照模式和拍照模式对应的图像处理算法。In this embodiment of the present application, the image processing apparatus invokes an image processing thread to perform image processing on the original image information, and obtains the photographed image corresponding to the photographing instruction, including the image processing apparatus determining the photographing mode of the original image information and the image processing corresponding to the photographing mode algorithm.

需要说明的是,拍照模式可以为图像处理装置根据接收到的用户指令,确定的拍照模式;也可以为图像处理装置根据获取到的环境信息,确定出来的拍照模式;还可以为图像处理装置根据获取到的环境信息和接收到的用户指令,确定的拍照模式,具体的可根据实际情况进行确定,本申请实施例对此不作限定。It should be noted that the photographing mode can be a photographing mode determined by the image processing device according to the received user instruction; it can also be a photographing mode determined by the image processing device according to the obtained environmental information; it can also be a photographing mode determined by the image processing device according to The acquired environment information and the received user instruction, and the determined photographing mode can be specifically determined according to the actual situation, which is not limited in this embodiment of the present application.

在本申请实施例中,环境信息包括亮暗程度信息、曝光度信息、灰度值信息等,具体的可根据实际情况进行确定,本申请实施例对此不作限定。In this embodiment of the present application, the environmental information includes brightness and darkness degree information, exposure degree information, gray value information, etc., which may be specifically determined according to the actual situation, which is not limited in this embodiment of the present application.

在本申请实施例中,图像处理装置中可以包括多种拍照模式,如夜间拍照模式、强光拍照模式、高清拍照模式、人像美颜拍照模式、美食模式等,用户可根据拍摄场景来选择不同的拍照模式。In the embodiment of the present application, the image processing device may include a variety of photographing modes, such as night photographing mode, strong light photographing mode, high-definition photographing mode, portrait beauty photographing mode, gourmet mode, etc. The user can select different photographing modes according to the photographing scene. photo mode.

在本申请实施例中,图像处理装置中的拍照模式可以有多种拍照模式;图像处理算法可以包括多种处理算法,其中,一种拍照模式可以对应一种处理算法;一种拍照模式也可以对应多种处理算法,具体的可根据实际情况进行确定,本申请实施例对此不作限定。In the embodiment of the present application, the photographing mode in the image processing device may include multiple photographing modes; the image processing algorithm may include multiple processing algorithms, wherein one photographing mode may correspond to one processing algorithm; one photographing mode may also Corresponding to various processing algorithms, the specific ones may be determined according to actual conditions, which are not limited in this embodiment of the present application.

在本申请实施例中,图像处理装置确定原始图像信息的拍照模式和拍照模式对应的图像处理算法之后,图像处理装置就调用图像处理线程,利用图像处理算法对原始图像信息进行处理,得到拍照图像。In the embodiment of the present application, after the image processing apparatus determines the photographing mode of the original image information and the image processing algorithm corresponding to the photographing mode, the image processing apparatus invokes the image processing thread, uses the image processing algorithm to process the original image information, and obtains the photographed image .

在本申请实施例中,图像处理算法可以包括去雾算法、降噪算法、美颜算法等,具体的可根据实际情况进行确定,本申请实施例对此不作限定。In the embodiment of the present application, the image processing algorithm may include a dehazing algorithm, a noise reduction algorithm, a beauty algorithm, and the like, which may be determined according to the actual situation, which is not limited in the embodiment of the present application.

在本申请实施例中,图像处理装置调用图像处理线程,利用图像处理算法对原始图像信息进行处理,得到拍照图像之后,图像处理装置就将拍照图像保存至图库应用中,并对图库应用进行解锁。In the embodiment of the present application, the image processing apparatus calls the image processing thread, uses the image processing algorithm to process the original image information, and after obtaining the photographed image, the image processing apparatus saves the photographed image to the gallery application, and unlocks the gallery application .

在本申请实施例中,图像处理装置对图库应用进行解锁的方式,可以为图像处理装置对图库应用的标志位进行修改,来对图库应用进行解锁;也可以为图像处理装置对图库应用的状态信息进行修改,来对图库应用进行解锁,还可以为其他的解锁图库应用的方式,具体的可根据实际情况进行确定,本申请实施例对此不作限定。In the embodiment of the present application, the way for the image processing device to unlock the gallery application may be that the image processing device modifies the flag of the gallery application to unlock the gallery application; it may also be the image processing device to unlock the image gallery application state. The information is modified to unlock the gallery application, and other methods of unlocking the gallery application can also be used, which can be determined according to the actual situation, which is not limited in this embodiment of the present application.

在本申请实施例中,图像处理装置对图库应用的状态信息进行修改,来对图库应用进行解锁的方式,具体可以为图像处理装置将图库应用的标志位对应的状态信息修改成解锁状态的信息,更具体的,图像处理装置可以通过将状态信息减1的方式,来将状态信息修改成锁定状态的信息。In the embodiment of the present application, the image processing device modifies the state information of the gallery application to unlock the gallery application. Specifically, the image processing device modifies the state information corresponding to the flag of the gallery application to the information of the unlocked state. , more specifically, the image processing apparatus can modify the state information to information of the locked state by subtracting 1 from the state information.

可以理解的是,图像处理装置通过将处理后的原始图像保存至图库应用中,用户通过启动图库应用,就可以查看到该处理后的原始图像,提高了用户体验。It can be understood that the image processing apparatus saves the processed original image in the gallery application, and the user can view the processed original image by starting the gallery application, which improves user experience.

在本申请实施例中,图像处理装置将拍照图像保存至图库应用中,并对图库应用进行解锁之后,图像处理装置就将状态信息修改为解锁状态。In the embodiment of the present application, after the image processing apparatus saves the photographed image in the gallery application and unlocks the gallery application, the image processing apparatus modifies the state information to the unlocked state.

需要说明的是,状态信息包括解锁状态。It should be noted that the state information includes the unlock state.

在本申请实施例中,当图像处理装置接收到图库应用的启动指令时,图像处理装置就检测图库应用的状态信息;当图像处理装置确定该状态信息为解锁状态时,图像处理装置就启动图库应用;当图像处理装置确定该状态信息为锁定状态时,则图像处理装置就返回提示信息,以提示图库应用无法启动。In the embodiment of the present application, when the image processing apparatus receives the starting instruction of the gallery application, the image processing apparatus detects the state information of the gallery application; when the image processing apparatus determines that the state information is the unlocked state, the image processing apparatus starts the gallery application; when the image processing apparatus determines that the state information is a locked state, the image processing apparatus returns a prompt message to prompt that the gallery application cannot be started.

在本申请实施例中,当图像处理装置将拍照图像保存至图库应用中,并对图库应用进行解锁之后,图像处理装置就删除图像处理线程。In the embodiment of the present application, after the image processing apparatus saves the photographed image in the gallery application and unlocks the gallery application, the image processing apparatus deletes the image processing thread.

可以理解的是,图像处理装置在将拍照图像保存至图库应用中,并对图库应用进行解锁之后,就删除该图像处理线程,减少了图像处理装置中的线程的数量,增加了图像处理装置的内存,提高了图像处理装置进行图像处理时的运行速度。It can be understood that, after the image processing device saves the photographed image to the gallery application and unlocks the gallery application, the image processing thread is deleted, which reduces the number of threads in the image processing device and increases the number of threads in the image processing device. The memory improves the running speed of the image processing device when performing image processing.

在本申请实施例中,当图像处理装置接收到图库应用的启动指令时,图像处理装置就检测图库应用的状态信息。In this embodiment of the present application, when the image processing apparatus receives an instruction for starting the gallery application, the image processing apparatus detects the state information of the gallery application.

需要说明的是,状态信息包括解锁状态和锁定状态。It should be noted that the state information includes an unlocked state and a locked state.

在本申请实施例中,图像处理装置检测图库应用的状态信息之后,当图像处理装置确定出该状态信息为解锁状态时,图像处理装置就启动图库应用。In the embodiment of the present application, after the image processing apparatus detects the state information of the gallery application, when the image processing apparatus determines that the state information is the unlocked state, the image processing apparatus starts the gallery application.

在本申请实施例中,图像处理装置检测图库应用的状态信息之后,当图像处理装置确定出该状态信息为锁定状态时,图像处理装置就返回提示信息,以提示图库应用无法启动。In the embodiment of the present application, after the image processing apparatus detects the state information of the gallery application, when the image processing apparatus determines that the state information is a locked state, the image processing apparatus returns a prompt message to prompt that the gallery application cannot be started.

需要说明的是,提示信息可以为文字信息,提示信息也可以为符号信息,提示信息还可以为数字信息,具体的可根据实际情况进行确定,本申请实施例对此不作限定。It should be noted that the prompt information can be text information, the prompt information can also be symbolic information, and the prompt information can also be digital information, which can be determined according to actual conditions, which is not limited in this embodiment of the present application.

示例性的,如图2所示,图像处理装置包括预览图像采集模块、显示模块、图像确定模块、图像处理模块、图像保存模块和图库管理模块。当图像处理装置接收到拍照应用的启动指令时,图像处理装置就启动拍照应用,并利用预览图像采集模块采集预览图像信息;图像处理装置在采集到的预览图像信息之后,图像处理装置就利用显示模块显示该预览图像信息对应的预览图像;当图像处理装置显示预览图像,且接收到拍照指令时,图像处理装置就利用图库管理模块对图库应用进行锁定,并将图库应用的状态信息修改为锁定状态;当图像处理装置在显示预览图像,且接收到拍照指令时,图像处理装置就利用图像获取模块获取拍照指令对应的原始图像信息;当图像处理装置得到原始图像信息之后,图像处理装置就利用图像处理模块对该原始图像信息进行图像处理,得到拍照指令对应的拍照图像,并利用图像保存模块保存该拍照图像。Exemplarily, as shown in FIG. 2 , the image processing apparatus includes a preview image acquisition module, a display module, an image determination module, an image processing module, an image storage module, and a gallery management module. When the image processing device receives the startup instruction of the photographing application, the image processing device starts the photographing application, and uses the preview image acquisition module to collect preview image information; after the image processing device collects the preview image information, the image processing device uses the display The module displays the preview image corresponding to the preview image information; when the image processing device displays the preview image and receives the photographing instruction, the image processing device uses the gallery management module to lock the gallery application, and modifies the state information of the gallery application to locked state; when the image processing device is displaying the preview image and receiving the photographing instruction, the image processing device uses the image acquisition module to obtain the original image information corresponding to the photographing instruction; after the image processing device obtains the original image information, the image processing device uses the The image processing module performs image processing on the original image information to obtain a photographed image corresponding to the photographing instruction, and uses the image saving module to save the photographed image.

示例性的,图像处理装置进行图像处理时的处理方法流程图如图3所示:Exemplarily, the flow chart of the processing method when the image processing apparatus performs image processing is shown in FIG. 3 :

1、当图像处理装置接收到拍照应用的启动指令时,图像处理装置就采集并显示预览图像信息对应的预览图像。1. When the image processing device receives the startup instruction of the photographing application, the image processing device collects and displays the preview image corresponding to the preview image information.

2、当图像处理装置接收到拍照指令时,图像处理装置就创建图像处理线程,调用图像处理线程对原始图像信息进行图像处理,得到拍照指令对应的拍照图像。2. When the image processing apparatus receives the photographing instruction, the image processing apparatus creates an image processing thread, calls the image processing thread to perform image processing on the original image information, and obtains the photographing image corresponding to the photographing instruction.

3、当图像处理装置接收到拍照指令时,图像处理装置对图库应用进行锁定,并将图库应用的状态信息修改为锁定状态。3. When the image processing apparatus receives the photographing instruction, the image processing apparatus locks the gallery application, and modifies the state information of the gallery application to a locked state.

4、图像处理装置就对图库应用进行解锁。4. The image processing device unlocks the gallery application.

示例性的,如图4所示,图像处理装置接收到拍照应用的启动指令时,图像处理装置就启动拍照应用,并启动图像拍摄进程,利用图像拍摄进程显示预览图像,在当图像处理装置接收到拍照指令时,图像处理装置就利用图像拍摄进程进行拍照,并利用图像拍摄进程创建图像处理线程1,以利用该图像处理线程1对原始图像信息进行处理,此时图像处理装置的显示界面就可以显示下一次预览图像了,当图像处理装置接收到下一次的拍照指令时,图像处理装置就利用图像拍摄进程进行拍照,并利用图像拍摄进程创建图像处理线程2,以利用该图像处理线程2对下一次的原始图像信息进行处理。图像处理线程对拍照得到的原始图像信息进行处理的过程,可以为图像处理装置将图库应用进行锁定,图像处理装置利用图像处理线程对拍照得到的原始图像进行处理,当图像处理装置得到拍照指令对应的拍照图像之后,图像处理装置就对图库应用进行解锁,然后图像处理装置就删除该图像处理线程。Exemplarily, as shown in FIG. 4 , when the image processing apparatus receives the start instruction of the photographing application, the image processing apparatus starts the photographing application, and starts the image photographing process, and uses the image photographing process to display the preview image. When the photographing instruction arrives, the image processing device uses the image photographing process to take pictures, and uses the image photographing process to create an image processing thread 1, so as to use the image processing thread 1 to process the original image information. At this time, the display interface of the image processing device is The next preview image can be displayed. When the image processing device receives the next photographing instruction, the image processing device uses the image shooting process to take pictures, and uses the image shooting process to create an image processing thread 2 to use the image processing thread 2. Process the next original image information. The process that the image processing thread processes the original image information obtained by taking pictures, which can lock the gallery application for the image processing device, and the image processing device uses the image processing thread to process the original image obtained by taking pictures. After the image is taken, the image processing apparatus unlocks the gallery application, and then the image processing apparatus deletes the image processing thread.

可以理解的是,图像处理装置通过在接收到拍照指令时,图像处理装置就创建图像处理线程,利用图像处理线程对原始图像信息进行处理,使得数据处理装置在接收到拍照指令之后,图像处理装置可直接进行拍照,不需要图像处理装置对上一次获取的原始图像信息进行处理之后再进行拍照,缩短了图像处理装置图像拍摄时的时间,提高了图像处理装置拍摄图像时的速度。It can be understood that the image processing apparatus creates an image processing thread when receiving the photographing instruction, and uses the image processing thread to process the original image information, so that after the data processing apparatus receives the photographing instruction, the image processing apparatus It is possible to take pictures directly, and it is not necessary for the image processing device to process the original image information obtained last time before taking pictures, which shortens the time when the image processing device takes images and improves the speed of the image processing device when taking images.

实施例二Embodiment 2

基于实施例一同一发明构思,本申请实施例提供了一种图像处理装置1,对应于一种图像处理方法;图5为本申请实施例提供的一种图像处理装置的组成结构示意图一,该图像处理装置1可以包括:Based on the same inventive concept of the first embodiment, the embodiment of the present application provides an image processing apparatus 1, which corresponds to an image processing method; FIG. 5 is a schematic structural diagram of an image processing apparatus provided by the first embodiment of the present application. The image processing apparatus 1 may include:

创建单元11,用于当图像拍摄进程接收到拍照指令时,创建图像处理线程,并获取所述拍照指令对应的原始图像信息,所述原始图像信息为触发所述拍照指令时采集到的预览图像信息,所述图像拍摄进程用于采集所述预览图像信息;The creating unit 11 is configured to create an image processing thread when the image capturing process receives a photographing instruction, and acquire original image information corresponding to the photographing instruction, where the original image information is a preview image collected when the photographing instruction is triggered information, the image capturing process is used to collect the preview image information;

处理单元12,用于调用所述图像处理线程对所述原始图像信息进行图像处理,得到所述拍照指令对应的拍照图像。The processing unit 12 is configured to call the image processing thread to perform image processing on the original image information to obtain a photographed image corresponding to the photographing instruction.

在本申请的一些实施例中,所述装置还包括确定单元;In some embodiments of the present application, the apparatus further includes a determining unit;

所述确定单元,用于确定所述原始图像信息的拍照模式和所述拍照模式对应的图像处理算法;the determining unit, configured to determine a photographing mode of the original image information and an image processing algorithm corresponding to the photographing mode;

所述处理单元12,用于调用所述图像处理线程,利用所述图像处理算法对所述原始图像信息进行处理,得到所述拍照图像。The processing unit 12 is configured to call the image processing thread, and use the image processing algorithm to process the original image information to obtain the photographed image.

在本申请的一些实施例中,所述装置还包括锁定单元;In some embodiments of the present application, the device further comprises a locking unit;

所述锁定单元,用于对图库应用进行锁定,并将所述图库应用的状态信息修改为锁定状态;The locking unit is used to lock the gallery application, and modify the state information of the gallery application to a locked state;

相应的,所述装置还包括解锁单元;Correspondingly, the device further includes an unlocking unit;

所述解锁单元,用于将所述拍照图像保存至所述图库应用中,并对所述图库应用进行解锁;the unlocking unit, configured to save the photographed image into the gallery application, and unlock the gallery application;

将所述状态信息修改为解锁状态。Modify the state information to an unlocked state.

在本申请的一些实施例中,所述装置还包括检测单元,启动单元和返回单元;In some embodiments of the present application, the device further includes a detection unit, a start unit and a return unit;

所述检测单元,用于当接收到图库应用的启动指令时,检测所述状态信息;the detection unit, configured to detect the state information when receiving a startup instruction of the gallery application;

所述启动单元,用于当所述状态信息为所述解锁状态时,启动所述图库应用;the startup unit, configured to start the gallery application when the state information is the unlocked state;

所述返回单元,用于当所述状态信息为所述锁定状态时,返回提示信息,以提示所述图库应用无法启动。The returning unit is configured to return prompt information to prompt that the gallery application cannot be started when the state information is the locked state.

在本申请的一些实施例中,所述装置还包括删除单元;In some embodiments of the present application, the apparatus further includes a deletion unit;

所述删除单元,用于删除所述图像处理线程。The deletion unit is used for deleting the image processing thread.

在本申请的一些实施例中,所述装置还包括采集单元和显示单元;In some embodiments of the present application, the device further includes a collection unit and a display unit;

所述启动单元,用于当接收到拍照应用的启动指令时,启动所述拍照应用,并创建图像拍摄进程;the startup unit, configured to start the camera application when receiving the startup instruction of the camera application, and create an image capturing process;

所述采集单元,用于调用所述图像拍摄进程采集所述预览图像信息;the acquisition unit, configured to call the image capturing process to acquire the preview image information;

所述显示单元,用于显示所述预览图像信息与对应的预览图像。The display unit is configured to display the preview image information and the corresponding preview image.

在本申请的一些实施例中,所述创建单元11,用于利用所述图像拍摄进程创建所述图像处理线程。In some embodiments of the present application, the creating unit 11 is configured to create the image processing thread by using the image capturing process.

在本申请的一些实施例中,所述确定单元,用于当接收到连续拍照指令时,确定所述连续拍照指令对应的连续拍照次数;In some embodiments of the present application, the determining unit is configured to, when receiving a continuous photographing instruction, determine the number of consecutive photographing times corresponding to the continuous photographing instruction;

所述创建单元11,用于根据所述连续拍照次数,利用所述图像拍摄进程创建多个图像处理线程,所述连续拍照的次数与所述多个图像处理线程一一对应;The creating unit 11 is configured to create a plurality of image processing threads by using the image capturing process according to the number of consecutive photos, and the number of consecutive photos is in one-to-one correspondence with the multiple image processing threads;

所述处理单元12,用于利用所述多个图像处理线程对所述连续拍照指令对应的多个原始图像信息进行图像处理,得到所述多个拍照指令对应的多个拍照图像。The processing unit 12 is configured to perform image processing on a plurality of original image information corresponding to the continuous photographing instructions by using the multiple image processing threads to obtain multiple photographing images corresponding to the multiple photographing instructions.

需要说明的是,在实际应用中,上述创建单元11和处理单元12可由图像处理装置1上的处理器13实现,具体为CPU(Central Processing Unit,中央处理器)、MPU(Microprocessor Unit,微处理器)、DSP(Digital Signal Processing,数字信号处理器)或现场可编程门阵列(FPGA,Field Programmable Gate Array)等实现;上述数据存储可由图像处理装置1上的存储器14实现。It should be noted that, in practical applications, the above-mentioned creation unit 11 and processing unit 12 may be implemented by the processor 13 on the image processing apparatus 1 , specifically a CPU (Central Processing Unit, central processing unit), an MPU (Microprocessor Unit, micro processing unit) DSP (Digital Signal Processing, Digital Signal Processor) or Field Programmable Gate Array (FPGA, Field Programmable Gate Array), etc.; the above data storage can be realized by the memory 14 on the image processing device 1 .

本发明实施例还提供了一种图像处理装置1,如图6所示,所述图像处理装置1包括:处理器13、存储器14和通信总线15,所述存储器14通过所述通信总线15与所述处理器13进行通信,所述存储器14存储所述处理器13可执行的程序,当所述程序被执行时,通过所述处理器13执行如上述所述的图像处理方法。An embodiment of the present invention further provides an image processing apparatus 1 , as shown in FIG. 6 , the image processing apparatus 1 includes: a processor 13 , a memory 14 and a communication bus 15 , and the memory 14 communicates with the communication bus 15 through the communication bus 15 . The processor 13 communicates, and the memory 14 stores a program executable by the processor 13 . When the program is executed, the image processing method described above is executed by the processor 13 .

在实际应用中,上述存储器14可以是易失性存储器(volatile memory),例如随机存取存储器(Random-Access Memory,RAM);或者非易失性存储器(non-volatile memory),例如只读存储器(Read-Only Memory,ROM),快闪存储器(flash memory),硬盘(Hard DiskDrive,HDD)或固态硬盘(Solid-State Drive,SSD);或者上述种类的存储器的组合,并向处理器13提供指令和数据。In practical applications, the above-mentioned memory 14 may be a volatile memory (volatile memory), such as a random-access memory (Random-Access Memory, RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (Read-Only Memory, ROM), flash memory (flash memory), hard disk (Hard DiskDrive, HDD) or solid-state drive (Solid-State Drive, SSD); or a combination of the above types of memory, and provide the processor 13 with instructions and data.

本发明实施例提供了一种计算机可读存储介质,其上有计算机程序,所述程序被处理器13执行时实现如上述所述的图像处理方法。An embodiment of the present invention provides a computer-readable storage medium having a computer program thereon, and when the program is executed by the processor 13, the image processing method described above is implemented.

可以理解的是,图像处理装置通过在接收到拍照指令时,图像处理装置就创建图像处理线程,利用图像处理线程对原始图像信息进行处理,使得数据处理装置在接收到拍照指令之后,图像处理装置可直接进行拍照,不需要图像处理装置对上一次获取的原始图像信息进行处理之后再进行拍照,缩短了图像处理装置图像拍摄时的时间,提高了图像处理装置拍摄图像时的速度。It can be understood that the image processing apparatus creates an image processing thread when receiving the photographing instruction, and uses the image processing thread to process the original image information, so that after the data processing apparatus receives the photographing instruction, the image processing apparatus It is possible to take pictures directly, and it is not necessary for the image processing device to process the original image information obtained last time before taking pictures, which shortens the time when the image processing device takes images and improves the speed of the image processing device when taking images.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including but not limited to disk storage, optical storage, and the like.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.

以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention.

Claims (11)

1.一种图像处理方法,其特征在于,所述方法包括:1. an image processing method, is characterized in that, described method comprises: 当图像拍摄进程接收到拍照指令时,创建图像处理线程,并获取所述拍照指令对应的原始图像信息,所述原始图像信息为触发所述拍照指令时采集到的预览图像信息,所述图像拍摄进程用于采集所述预览图像信息;When the image capturing process receives a photographing instruction, it creates an image processing thread and acquires the original image information corresponding to the photographing instruction, where the original image information is the preview image information collected when the photographing instruction is triggered, and the image capturing The process is used to collect the preview image information; 调用所述图像处理线程对所述原始图像信息进行图像处理,得到所述拍照指令对应的拍照图像。The image processing thread is called to perform image processing on the original image information to obtain a photographed image corresponding to the photographing instruction. 2.根据权利要求1所述的方法,其特征在于,所述调用所述图像处理线程对所述原始图像信息进行图像处理,得到所述拍照指令对应的拍照图像,包括:2. The method according to claim 1, wherein the invoking the image processing thread to perform image processing on the original image information to obtain a photographed image corresponding to the photographing instruction, comprising: 确定所述原始图像信息的拍照模式和所述拍照模式对应的图像处理算法;determining a photographing mode of the original image information and an image processing algorithm corresponding to the photographing mode; 调用所述图像处理线程,利用所述图像处理算法对所述原始图像信息进行处理,得到所述拍照图像。The image processing thread is called, and the image processing algorithm is used to process the original image information to obtain the photographed image. 3.根据权利要求1所述的方法,其特征在于,所述创建图像处理线程,并获取所述拍照指令对应的原始图像信息之后,所述方法还包括:3. The method according to claim 1, wherein, after the image processing thread is created and the original image information corresponding to the photographing instruction is obtained, the method further comprises: 对图库应用进行锁定,并将所述图库应用的状态信息修改为锁定状态;Locking the gallery application, and modifying the state information of the gallery application to a locked state; 相应的,所述调用所述图像处理线程对所述原始图像信息进行图像处理,得到所述拍照指令对应的拍照图像之后,所述方法还包括:Correspondingly, after calling the image processing thread to perform image processing on the original image information, and obtaining the photographed image corresponding to the photographing instruction, the method further includes: 将所述拍照图像保存至所述图库应用中,并对所述图库应用进行解锁;saving the photographed image into the gallery application, and unlocking the gallery application; 将所述状态信息修改为解锁状态。Modify the state information to an unlocked state. 4.根据权利要求3所述的方法,其特征在于,所述方法还包括:4. The method according to claim 3, wherein the method further comprises: 当接收到图库应用的启动指令时,检测所述状态信息;When receiving the startup instruction of the gallery application, detecting the state information; 当所述状态信息为所述解锁状态时,启动所述图库应用;When the state information is the unlocked state, start the gallery application; 当所述状态信息为所述锁定状态时,返回提示信息,以提示所述图库应用无法启动。When the state information is the locked state, a prompt message is returned to prompt that the gallery application cannot be started. 5.根据权利要求3所述的方法,其特征在于,所述将所述拍照图像保存至所述图库应用中,并对所述图库应用进行解锁之后,所述方法还包括:5 . The method according to claim 3 , wherein after saving the photographed image in the gallery application and unlocking the gallery application, the method further comprises: 6 . 删除所述图像处理线程。Delete the image processing thread. 6.根据权利要求1所述的方法,其特征在于,所述创建图像处理线程,并获取所述拍照指令对应的原始图像信息之前,所述方法还包括:6. The method according to claim 1, wherein, before the creating an image processing thread and acquiring the original image information corresponding to the photographing instruction, the method further comprises: 当接收到拍照应用的启动指令时,启动所述拍照应用,并创建图像拍摄进程;When receiving the start instruction of the photographing application, start the photographing application, and create an image photographing process; 调用所述图像拍摄进程采集所述预览图像信息;calling the image capturing process to collect the preview image information; 显示所述预览图像信息与对应的预览图像。The preview image information and the corresponding preview image are displayed. 7.根据权利要求6所述的方法,其特征在于,所述创建图像处理线程,包括:7. The method according to claim 6, wherein the creating an image processing thread comprises: 利用所述图像拍摄进程创建所述图像处理线程。The image processing thread is created using the image capture process. 8.根据权利要求6所述的方法,其特征在于,所述创建图像处理线程,并获取所述拍照指令对应的原始图像信息之后,所述方法还包括:8. The method according to claim 6, wherein after the image processing thread is created and the original image information corresponding to the photographing instruction is obtained, the method further comprises: 当接收到连续拍照指令时,确定所述连续拍照指令对应的连续拍照次数;When receiving the continuous photographing instruction, determine the number of consecutive photographing times corresponding to the continuous photographing instruction; 根据所述连续拍照次数,利用所述图像拍摄进程创建多个图像处理线程,所述连续拍照的次数与所述多个图像处理线程一一对应;Create multiple image processing threads by using the image capturing process according to the number of consecutive photos, and the number of consecutive photos is in one-to-one correspondence with the multiple image processing threads; 利用所述多个图像处理线程对所述连续拍照指令对应的多个原始图像信息进行图像处理,得到所述多个拍照指令对应的多个拍照图像。The plurality of image processing threads are used to perform image processing on the plurality of original image information corresponding to the continuous photographing instructions, so as to obtain a plurality of photographing images corresponding to the plurality of photographing instructions. 9.一种图像处理装置,其特征在于,所述装置包括:9. An image processing device, wherein the device comprises: 创建单元,用于当图像拍摄进程接收到拍照指令时,创建图像处理线程,并获取所述拍照指令对应的原始图像信息,所述原始图像信息为触发所述拍照指令时采集到的预览图像信息,所述图像拍摄进程用于采集所述预览图像信息;The creation unit is configured to create an image processing thread when the image capturing process receives a photographing instruction, and obtain original image information corresponding to the photographing instruction, where the original image information is the preview image information collected when the photographing instruction is triggered , the image capturing process is used to collect the preview image information; 处理单元,用于调用所述图像处理线程对所述原始图像信息进行图像处理,得到所述拍照指令对应的拍照图像。A processing unit, configured to call the image processing thread to perform image processing on the original image information, and obtain a photographed image corresponding to the photographing instruction. 10.一种图像处理装置,其特征在于,所述装置包括:10. An image processing device, wherein the device comprises: 存储器、处理器和通信总线,所述存储器通过所述通信总线与所述处理器进行通信,所述存储器存储所述处理器可执行的图像处理的程序,当所述图像处理的程序被执行时,通过所述处理器执行如权利要求1至8任一项所述的方法。A memory, a processor and a communication bus, the memory communicates with the processor through the communication bus, the memory stores a program for image processing executable by the processor, when the program for image processing is executed , the method according to any one of claims 1 to 8 is executed by the processor. 11.一种存储介质,其上存储有计算机程序,应用于图像处理装置,其特征在于,该计算机程序被处理器执行时实现权利要求1至8任一项所述的方法。11. A storage medium having a computer program stored thereon and applied to an image processing apparatus, wherein the computer program implements the method according to any one of claims 1 to 8 when the computer program is executed by a processor.
CN202010349291.0A 2020-04-28 2020-04-28 Image processing method and device, and storage medium Active CN111526288B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010349291.0A CN111526288B (en) 2020-04-28 2020-04-28 Image processing method and device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010349291.0A CN111526288B (en) 2020-04-28 2020-04-28 Image processing method and device, and storage medium

Publications (2)

Publication Number Publication Date
CN111526288A true CN111526288A (en) 2020-08-11
CN111526288B CN111526288B (en) 2022-05-31

Family

ID=71903654

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010349291.0A Active CN111526288B (en) 2020-04-28 2020-04-28 Image processing method and device, and storage medium

Country Status (1)

Country Link
CN (1) CN111526288B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112770059A (en) * 2021-01-22 2021-05-07 维沃移动通信(杭州)有限公司 Photographing method and device and electronic equipment
CN115002348A (en) * 2022-05-26 2022-09-02 宇龙计算机通信科技(深圳)有限公司 Photographing method, device and related equipment
CN115052100A (en) * 2021-03-09 2022-09-13 北京小米移动软件有限公司 Image processing method and device
WO2024021678A1 (en) * 2022-07-28 2024-02-01 荣耀终端有限公司 Image processing method and related device
WO2025119132A1 (en) * 2023-12-05 2025-06-12 维沃移动通信有限公司 Photographing method and apparatus, and electronic device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060203103A1 (en) * 2005-02-28 2006-09-14 Fuji Photo Film Co., Ltd. Electronic album editing system, electronic album editing method and electronics album editing program
CN101365041A (en) * 2007-08-10 2009-02-11 三星Techwin株式会社 Digital signal processor and digital image processing device using digital signal processor
CN103179341A (en) * 2011-12-21 2013-06-26 索尼公司 Image processing device, image processing method, and program
CN103218131A (en) * 2013-03-26 2013-07-24 广东欧珀移动通信有限公司 A method for preventing accidental deletion of pictures on a mobile terminal
JP2013257797A (en) * 2012-06-14 2013-12-26 Nakabayashi Co Ltd Album system, portable terminal device, control method, and control program
CN104902177A (en) * 2015-05-26 2015-09-09 广东欧珀移动通信有限公司 Intelligent photographing method and terminal
CN105827940A (en) * 2015-09-24 2016-08-03 维沃移动通信有限公司 Photographing method and electronic device
CN108256072A (en) * 2018-01-17 2018-07-06 广东欧珀移动通信有限公司 Photograph album display methods, device, storage medium and electronic equipment
CN110928631A (en) * 2019-11-21 2020-03-27 深圳传音控股股份有限公司 Page switching method and device and computer readable storage medium
CN110996012A (en) * 2019-12-23 2020-04-10 Oppo广东移动通信有限公司 Continuous shooting processing method, image processor, photographing device and electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060203103A1 (en) * 2005-02-28 2006-09-14 Fuji Photo Film Co., Ltd. Electronic album editing system, electronic album editing method and electronics album editing program
CN101365041A (en) * 2007-08-10 2009-02-11 三星Techwin株式会社 Digital signal processor and digital image processing device using digital signal processor
CN103179341A (en) * 2011-12-21 2013-06-26 索尼公司 Image processing device, image processing method, and program
JP2013257797A (en) * 2012-06-14 2013-12-26 Nakabayashi Co Ltd Album system, portable terminal device, control method, and control program
CN103218131A (en) * 2013-03-26 2013-07-24 广东欧珀移动通信有限公司 A method for preventing accidental deletion of pictures on a mobile terminal
CN104902177A (en) * 2015-05-26 2015-09-09 广东欧珀移动通信有限公司 Intelligent photographing method and terminal
CN105827940A (en) * 2015-09-24 2016-08-03 维沃移动通信有限公司 Photographing method and electronic device
CN108256072A (en) * 2018-01-17 2018-07-06 广东欧珀移动通信有限公司 Photograph album display methods, device, storage medium and electronic equipment
CN110928631A (en) * 2019-11-21 2020-03-27 深圳传音控股股份有限公司 Page switching method and device and computer readable storage medium
CN110996012A (en) * 2019-12-23 2020-04-10 Oppo广东移动通信有限公司 Continuous shooting processing method, image processor, photographing device and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
乔晓秋: "新时期应强化照片档案的多界面管理", 《通化师范学院学报》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112770059A (en) * 2021-01-22 2021-05-07 维沃移动通信(杭州)有限公司 Photographing method and device and electronic equipment
WO2022156766A1 (en) * 2021-01-22 2022-07-28 维沃移动通信(杭州)有限公司 Picture-photographing method and apparatus, and electronic device
KR20230133970A (en) * 2021-01-22 2023-09-19 비보 모바일 커뮤니케이션 컴퍼니 리미티드 Photography methods, devices and electronics
EP4283977A4 (en) * 2021-01-22 2024-07-17 Vivo Mobile Communication Co., Ltd. Picture-photographing method and apparatus, and electronic device
KR102767735B1 (en) * 2021-01-22 2025-02-12 비보 모바일 커뮤니케이션 컴퍼니 리미티드 Photographic methods, devices and electronic devices
US12401887B2 (en) 2021-01-22 2025-08-26 Vivo Mobile Communication Co., Ltd. Photographing method and apparatus and electronic device
CN115052100A (en) * 2021-03-09 2022-09-13 北京小米移动软件有限公司 Image processing method and device
CN115052100B (en) * 2021-03-09 2025-01-14 北京小米移动软件有限公司 Image processing method and device
CN115002348A (en) * 2022-05-26 2022-09-02 宇龙计算机通信科技(深圳)有限公司 Photographing method, device and related equipment
WO2024021678A1 (en) * 2022-07-28 2024-02-01 荣耀终端有限公司 Image processing method and related device
WO2025119132A1 (en) * 2023-12-05 2025-06-12 维沃移动通信有限公司 Photographing method and apparatus, and electronic device

Also Published As

Publication number Publication date
CN111526288B (en) 2022-05-31

Similar Documents

Publication Publication Date Title
CN111526288B (en) Image processing method and device, and storage medium
CN112116624B (en) Image processing method and electronic device
KR102767735B1 (en) Photographic methods, devices and electronic devices
CN107302666A (en) Photographic method, mobile terminal and computer-readable recording medium
CN107294915B (en) Image acquisition method, system and terminal
JP5587390B2 (en) Method, system, and apparatus for selecting images picked up by image pickup apparatus
CN104580884A (en) Shooting method and terminal
CN105227855B (en) Image processing method and terminal
CN105391940B (en) A kind of image recommendation method and device
CN105763813A (en) A photographing method, device and intelligent terminal
CN111523346A (en) Image recognition method and device, electronic equipment and storage medium
CN104869309A (en) Method and device for taking pictures
US12309508B2 (en) Image frame selection for multi-frame fusion
WO2017107855A1 (en) Picture searching method and device
CN112422817A (en) Image processing method and device
CN105915792A (en) Method and device for taking pictures
CN111866379A (en) Image processing method, image processing device, electronic device and storage medium
WO2018219304A1 (en) Picture processing method and apparatus, computer readable storage medium, and electronic device
WO2022089479A1 (en) Photographing method and apparatus, and electronic device
CN108259767B (en) Image processing method, image processing device, storage medium and electronic equipment
CN111669495B (en) Photographing method, photographing device and electronic equipment
CN115802145A (en) Shooting method and electronic equipment
WO2022057384A1 (en) Photographing method and device
CN112383708A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN113794833B (en) Shooting method and device 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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载