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

Image processing method and device and storage medium Download PDF

Info

Publication number
CN111526288B
CN111526288B CN202010349291.0A CN202010349291A CN111526288B CN 111526288 B CN111526288 B CN 111526288B CN 202010349291 A CN202010349291 A CN 202010349291A CN 111526288 B CN111526288 B CN 111526288B
Authority
CN
China
Prior art keywords
image processing
image
photographing
information
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010349291.0A
Other languages
Chinese (zh)
Other versions
CN111526288A (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, and in particular, to an image processing method and apparatus, and a storage medium.
In the background of the invention
With the continuous development of image processing technology, the functions of image processing devices, such as a photographing function, are increasing. Nowadays, the requirements of people for photographing image processing devices are higher and higher, and the original image photographed by only depending on a camera on the image processing device cannot meet the requirements of people for beauty, and different original images need to be processed through different image processing algorithms, so that the beautified original image is obtained.
In the prior art, after an image processing device captures an original image by using a camera, the image processing device needs to process the original image by using an image processing algorithm, the image processing device can perform the next image capture after the image processing algorithm processes the original image, and when the image processing device processes the original image by using an image processing algorithm with high complexity, the image processing device needs to process the original image for a long time, so that the image capturing time of the image processing device is prolonged, and the image capturing speed of the image processing device is reduced.
Disclosure of Invention
In order to solve the above technical problem, embodiments of the present invention are directed to providing an image processing method and apparatus, and a storage medium, which can improve the speed of an image processing apparatus when capturing an image.
The technical scheme of the invention is realized as follows:
an embodiment of the present application provides an image processing method, including:
when an image shooting process receives a shooting instruction, establishing an image processing thread, and acquiring original image information corresponding to the shooting instruction, wherein 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 the image processing thread to perform image processing on the original image information to obtain a photographed image corresponding to the photographing instruction.
In the above scheme, invoking the image processing thread to perform image processing on the original image information to obtain a photographed image corresponding to the photographing instruction, includes:
determining a photographing mode of the original image information and an image processing algorithm corresponding to the photographing mode;
and calling the image processing thread, and processing the original image information by using the image processing algorithm to obtain the photographed image.
In the above scheme, after the creating an image processing thread and acquiring original image information corresponding to the photographing instruction, the method further includes:
locking the gallery application, and modifying the state information of the gallery application into a locking state;
correspondingly, after 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, the method further includes:
storing the photographed image into the gallery application, and unlocking the gallery application;
and modifying the state information into an unlocking state.
In the above aspect, the method further includes:
when a starting instruction of the gallery application is received, detecting the state information;
when the state information is the unlocking state, starting the gallery application;
and when the state information is the locking state, returning prompt information to prompt that the gallery application cannot be started.
In the above solution, after the photographed image is stored in the gallery application and the gallery application is unlocked, the method further includes:
and deleting the image processing thread.
In the above scheme, before the creating an image processing thread and acquiring original image information corresponding to the photographing instruction, the method further includes:
when a starting instruction of a photographing application is received, starting the photographing application and establishing an image photographing process;
calling the image shooting process to acquire the preview image information;
and displaying the preview image information and the corresponding preview image.
In the foregoing solution, the creating an image processing thread includes:
and creating the image processing thread by utilizing the image shooting process.
In the above scheme, after the creating an image processing thread and acquiring original image information corresponding to the photographing instruction, the method further includes:
when a continuous photographing instruction is received, determining the continuous photographing times corresponding to the continuous photographing instruction;
creating a plurality of image processing threads by utilizing the image shooting process according to the continuous shooting times, wherein the continuous shooting times correspond to the image processing threads one to one;
and carrying out image processing on a plurality of original image information corresponding to the continuous photographing instructions by utilizing the plurality of image processing threads 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, including:
the image processing device comprises a creating unit, a processing unit and a processing unit, wherein the creating unit is used for creating an image processing thread when an image shooting process receives a shooting instruction, and acquiring original image information corresponding to the shooting instruction, 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 the processing unit is used for calling the image processing thread to perform image processing on the original image information to obtain a photographed image corresponding to the photographing instruction.
An embodiment of the present application provides an image processing apparatus, including:
the image processing system comprises a memory, a processor and a communication bus, wherein the memory is communicated with the processor through the communication bus, the memory stores an image processing program executable by the processor, and when the image processing program is executed, the processor executes the image processing method.
The embodiment of the application provides a storage medium, which stores a computer program, is applied to an image processing device, and is characterized in that the computer program realizes the image processing method when being executed by a processor.
The embodiment of the invention provides an image processing method, an image processing device and a storage medium, wherein the image processing method comprises the following steps: when the 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. By adopting the method, the image processing device creates the image processing thread when receiving the photographing instruction, and processes the original image information by using the image processing thread, so that the image processing device can directly photograph after the data processing device receives the photographing instruction, and does not need to photograph after the image processing device processes the original image information acquired last time, thereby shortening the time of image photographing of the image processing device and improving the speed of the image processing device in photographing images.
Drawings
Fig. 1 is a flowchart of an image processing method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an exemplary image processing apparatus according to an embodiment of the present disclosure;
FIG. 3 is a flowchart of an exemplary image processing method provided in an embodiment of the present application;
FIG. 4 is a flowchart of a second exemplary image processing method provided in an embodiment of the present application;
fig. 5 is a first schematic structural diagram of an image processing apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present application.
Detailed Description
The technical solution 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 merely illustrative of the invention and are not intended to limit the invention.
Example one
An embodiment of the present application provides an image processing method, and fig. 1 is a first flowchart of the image processing method provided in the embodiment of the present application, and as shown in fig. 1, the image processing method may include:
s101, 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 collected when the shooting instruction is triggered, and the image shooting process is used for collecting the preview image information.
The image processing method provided by the embodiment of the application is suitable for a scene in which the image processing device processes original image information corresponding to a photographing instruction when receiving the photographing instruction to obtain a photographed image corresponding to the photographing instruction.
In the embodiment of the present application, the image processing apparatus may be implemented in various forms. For example, the image processing apparatus described in the present application may include apparatuses such as a mobile phone, a camera, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation apparatus, a wearable device, a smart band, a pedometer, and the like, and apparatuses such as a Digital TV, a desktop computer, and the like.
In the embodiment of the application, when the image processing device receives the touch operation of the photographing key, the image processing device receives a photographing instruction of a target object; the image processing device may also obtain the photographing instruction of the target object by receiving a preset voice control instruction, and the image processing device may also obtain the photographing instruction of the target object by other manners, which may be specifically determined according to actual conditions, and the embodiment of the present application is not limited thereto.
In this embodiment of the application, the image capturing process may be a process preset in the image processing apparatus, and the image capturing process is configured to collect preview image information and capture the preview image information.
In the embodiment of the application, when the image processing apparatus receives the photographing instruction by using the image photographing process, the image processing apparatus performs photographing by using the image processing process, and the image processing apparatus performs the photographing process by using the image processing process, and may use the image photographing process for the image processing apparatus to use the preview image information in the preview image information as the original image information.
In the 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 preview image information acquired by the image processing apparatus when the photographing instruction is triggered, where the original image information may be digital information, analog information, or other information, which may be specifically determined according to actual conditions, and the embodiment of the present application does not limit this.
In this embodiment of the present application, the image processing apparatus may directly obtain the original image information corresponding to the photographing instruction, and the image processing instruction may also obtain the original image information corresponding to the photographing instruction by using the image processing thread, which may be determined specifically according to an actual situation, and this is not limited in this embodiment of the present application.
In this embodiment of the present application, the image processing apparatus may create the image processing thread by using an image capturing process, the image processing apparatus may also directly create the image processing thread, and the image processing apparatus may also create the image processing thread in other manners, which may be specifically determined according to actual situations, and this embodiment of the present application is not limited thereto.
In the embodiment of the application, after the image processing device creates an image processing thread and acquires original image information corresponding to a photographing instruction, the image processing device locks the gallery application and modifies the state information of the gallery application into a locked state.
In an embodiment of the present application, the status information includes a lock status.
In the embodiment of the application, the mode that the image processing device locks the gallery application can be that the image processing device modifies the flag bit of the gallery application to lock the gallery application; the state information of the gallery application may be modified for the image processing apparatus to lock the gallery application, or may be determined according to other ways of locking the gallery application, which is not limited in the embodiment of the present application.
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 bit of the gallery application to the information of the locked state, and more specifically, the image processing apparatus modifies the state information to the information of the locked state by adding 1 to the state information.
In the embodiment of the application, before the image processing device creates the image processing thread and acquires the original image information corresponding to the photographing instruction, when the image processing device receives a start instruction of the photographing application, the image processing device starts the photographing application and creates an image photographing process.
In the embodiment of the application, when the image processing device receives the touch operation of the application icon corresponding to the photographing application, the image processing device receives a starting instruction of the photographing application; the image processing device may further acquire the start instruction of the photographing application by receiving a touch operation of a touch switch arranged on the image processing device, and the image processing device may further acquire the start instruction of the photographing application by receiving a preset voice control instruction, which may be specifically determined according to an actual situation, which is not limited in this embodiment of the present application.
In the embodiment of the application, when the image processing device receives a starting instruction of the photographing application, the image processing device starts the photographing application first, and then the image processing device creates an image photographing process; the image processing device can also establish an image shooting process when receiving a starting instruction of the shooting application, and then the image processing device starts the shooting application; the image processing apparatus may further start the photographing application and create an image capturing process when receiving a start instruction of the photographing application, and a specific sequence of starting the photographing application and creating the image capturing process by the image processing apparatus may be determined according to an actual situation, which is not limited in this embodiment of the present application.
In the embodiment of the application, after the image processing device starts the photographing application and the image photographing process, the image processing device calls the image photographing process to acquire preview image information.
In the embodiment of the application, after the image processing apparatus acquires the preview image information by using the image capturing process, the image processing apparatus displays the preview image information and the corresponding preview image.
In this embodiment of the present application, the image processing apparatus may invoke an image capturing process to display the preview image information and the corresponding preview image, and the image processing apparatus may also directly display the preview image information and the corresponding preview image, which may be determined specifically according to an actual situation, and this is not limited in this embodiment of the present application.
In the embodiment of the application, after the image processing device creates an image processing thread and acquires original image information corresponding to a photographing instruction, the image processing device determines the continuous photographing times corresponding to the continuous photographing instruction when the image processing device receives the continuous photographing instruction; after the image processing device determines the continuous shooting times, the image processing device creates a plurality of image processing threads by utilizing an image shooting process according to the continuous shooting times, wherein the continuous shooting times correspond to the image processing threads one by one; after the image processing device creates the plurality of image processing threads, the image processing device performs image processing on the plurality of original image information corresponding to the continuous photographing instructions by using the plurality of image processing threads to obtain a plurality of photographed images corresponding to the plurality of photographing instructions.
In this embodiment of the present application, the continuous shooting times may be the shooting times set by the terminal user when shooting, or may also be the times configured in the terminal, which may be specifically determined according to the actual situation, and this is not limited in this embodiment of the present application.
In this embodiment of the present application, the number of times of taking pictures may be 3, the preset number of times may also be 5, which may be specifically determined according to an actual situation, and this is not limited in this embodiment of the present application.
In this embodiment of the application, the number of consecutive photographing times of the consecutive photographing instruction may be N, and the number of image processing threads created by the corresponding image processing apparatus is N.
For example, the number of consecutive photographing times corresponding to the consecutive photographing instruction may be 3, and the image processing apparatus creates 3 image processing threads.
In the embodiment of the application, each of the plurality of photographing instructions corresponds to one of the plurality of original image information, and one of the plurality of original image information corresponds to one of the plurality of photographed images.
And S102, calling an image processing thread to perform image processing on the original image information to obtain a photographed image corresponding to the photographing instruction.
In the embodiment of the application, after the image processing device creates the image processing thread and acquires the original image information corresponding to the photographing instruction, the image processing device calls the image processing thread to perform image processing on the original image information to obtain the photographing image corresponding to the photographing instruction.
In the embodiment of the application, the image processing device calls the image processing thread to perform image processing on the original image information to obtain a photographed image corresponding to the photographing instruction, and the process includes that the image processing device determines a photographing mode of the original image information and an image processing algorithm corresponding to the photographing mode.
It should be noted that the photographing mode may be a photographing mode determined by the image processing apparatus according to a received user instruction; the image processing device may determine a photographing mode according to the acquired environment information; the photographing mode may also be determined by the image processing apparatus according to the acquired environment information and the received user instruction, and may specifically be determined according to an actual situation, which is not limited in this embodiment of the application.
In this embodiment of the present application, the environment information includes brightness information, exposure information, gray value information, and the like, which can be specifically determined according to an actual situation, and this is not limited in this embodiment of the present application.
In the embodiment of the present application, the image processing apparatus may include a plurality of photographing modes, such as a night photographing mode, a highlight photographing mode, a high definition photographing mode, a portrait beauty photographing mode, a gourmet mode, and the like, and a user may select different photographing modes according to a photographing scene.
In the embodiment of the present application, the photographing mode in the image processing apparatus may have a plurality of photographing modes; the image processing algorithm may include a plurality of processing algorithms, wherein one photographing mode may correspond to one processing algorithm; the photographing mode may also correspond to multiple processing algorithms, which may be specifically determined according to actual situations, and this is not limited in the embodiment of the present application.
In the embodiment of the application, after the image processing device determines the photographing mode of the original image information and the image processing algorithm corresponding to the photographing mode, the image processing device calls the image processing thread, and processes the original image information by using the image processing algorithm to obtain the photographed image.
In this embodiment of the present application, the image processing algorithm may include a defogging algorithm, a noise reduction algorithm, a beautifying algorithm, and the like, which may be specifically determined according to an actual situation, and this is not limited in this embodiment of the present application.
In the embodiment of the application, the image processing device calls an image processing thread, processes original image information by using an image processing algorithm, obtains a photographed image, stores the photographed image into the gallery application, and unlocks the gallery application.
In the embodiment of the application, the mode that the image processing device unlocks the gallery application can be used for modifying the zone bit of the gallery application for the image processing device to unlock the gallery application; the state information of the gallery application may also be modified for the image processing apparatus to unlock the gallery application, and may also be determined according to other ways of unlocking the gallery application, which is not limited in the embodiment of the present application.
In the embodiment of the present application, the image processing apparatus modifies the state information of the gallery application to unlock the gallery application, specifically, the image processing apparatus modifies the state information corresponding to the flag bit of the gallery application to the information of the unlocked state, and more specifically, the image processing apparatus modifies the state information to the 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 into the gallery application, and the user can view the processed original image by starting the gallery application, thereby improving the user experience.
In the embodiment of the application, the image processing device stores the photographed image into the gallery application, and after the gallery application is unlocked, the image processing device modifies the state information into the unlocked state.
Note that the state information includes an unlock state.
In the embodiment of the application, when the image processing device receives a starting instruction of the gallery application, the image processing device detects the state information of the gallery application; when the image processing device determines that the state information is the unlocking state, the image processing device starts the gallery application; when the image processing device determines that the state information is in a locked state, the image processing device returns prompt information to prompt that the gallery application cannot be started.
In the embodiment of the application, after the image processing device stores the photographed image in the gallery application and unlocks the gallery application, the image processing device deletes the image processing thread.
It can be understood that the image processing device deletes the image processing thread after the image processing device stores the photographed image in the gallery application and unlocks the gallery application, thereby reducing the number of threads in the image processing device, increasing the memory of the image processing device, and improving the running speed of the image processing device during image processing.
In the embodiment of the present application, when the image processing apparatus receives a start instruction of 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 application, after the image processing device detects the state information of the gallery application, when the image processing device determines that the state information is in the locked state, the image processing device returns the prompt information to prompt that the gallery application cannot be started.
It should be noted that the prompt information may be text information, the prompt information may also be symbol information, the prompt information may also be digital information, and the specific determination may be performed according to an actual situation, which is not limited in this embodiment of the application.
Illustratively, as shown in fig. 2, the image processing apparatus includes a preview image capturing module, a display module, an image determining module, an image processing module, an image saving module, and a gallery management module. When the image processing device receives a starting instruction of the photographing application, the image processing device starts the photographing application and acquires preview image information by using the preview image acquisition module; after the image processing device acquires the preview image information, the image processing device displays a preview image corresponding to the preview image information by using a display module; when the image processing device displays the preview image and receives a photographing instruction, the image processing device locks the gallery application by using the gallery management module and modifies the state information of the gallery application into a locking state; when the image processing device displays the preview image and receives a photographing instruction, the image processing device acquires original image information corresponding to the photographing instruction by using the image acquisition module; after the image processing device obtains the original image information, the image processing device utilizes the image processing module to perform image processing on the original image information to obtain a photographed image corresponding to the photographing instruction, and utilizes the image storage module to store the photographed image.
Illustratively, a flowchart of a processing method when the image processing apparatus performs image processing is shown in fig. 3:
1. and when the image processing device receives a starting instruction of the photographing application, the image processing device acquires and displays a preview image corresponding to the preview image information.
2. When the image processing device receives the photographing instruction, the image processing device creates an image processing thread, and calls the image processing thread to perform image processing on the original image information to obtain a photographing image corresponding to the photographing instruction.
3. When the image processing device receives the photographing instruction, the image processing device locks the gallery application and modifies the state information of the gallery application into a locked state.
4. The image processing device unlocks the gallery application.
Illustratively, as shown in fig. 4, when the image processing apparatus receives a start instruction of the photographing application, the image processing means starts the photographing application and starts an image photographing process by which the preview image is displayed, when the image processing apparatus receives the photographing instruction, the image processing apparatus performs photographing using the image photographing process, and creates an image processing thread 1 using the image photographing process, so as to process the original image information by using the image processing thread 1, at this time, the display interface of the image processing apparatus can display the next preview image, when the image processing device receives the next photographing instruction, the image processing device takes a photograph by using the image photographing process, and creates an image processing thread 2 using the image capturing process to process the next original image information using the image processing thread 2. The process of processing the original image information obtained by photographing by the image processing thread can be used for locking the gallery application for the image processing device, the image processing device processes the original image obtained by photographing by using the image processing thread, after the image processing device obtains the photographed image corresponding to the photographing instruction, the image processing device unlocks the gallery application, and then the image processing thread is deleted by the image processing device.
It can be understood that, when the image processing apparatus receives the photographing instruction, the image processing apparatus creates an image processing thread, and processes the original image information by using the image processing thread, so that the data processing apparatus can directly photograph after receiving the photographing instruction, and does not need to photograph after the image processing apparatus processes the original image information acquired last time, thereby shortening the time of image photographing of the image processing apparatus and improving the speed of image photographing of the image processing apparatus.
Example two
Based on the same inventive concept of the embodiments, the embodiments of the present application provide an image processing apparatus 1 corresponding to an image processing method; fig. 5 is a schematic diagram illustrating a first configuration of an image processing apparatus according to an embodiment of the present disclosure, where the image processing apparatus 1 may include:
the creating unit 11 is configured to create an image processing thread when an image shooting process receives a shooting instruction, and acquire original image information corresponding to the shooting instruction, where the original image information is preview image information acquired when the shooting instruction is triggered, and the image shooting process is configured to acquire the preview image information;
and the processing unit 12 is configured to invoke the image processing thread to perform image processing on the original image information, so as to obtain a photographed image corresponding to the photographing instruction.
In some embodiments of the present application, the apparatus further comprises a determination unit;
the determining unit is used for determining a photographing mode of the original image information and an image processing algorithm corresponding to the photographing mode;
the processing unit 12 is configured to invoke the image processing thread, and process the original image information by using the image processing algorithm to obtain the photographed image.
In some embodiments of the present application, the apparatus further comprises a locking unit;
the locking unit is used for locking the gallery application and modifying the state information of the gallery application into a locking state;
correspondingly, the device further comprises an unlocking unit;
the unlocking unit is used for storing the photographed image into the gallery application and unlocking the gallery application;
and modifying the state information into an unlocking state.
In some embodiments of the present application, the apparatus further comprises a detection unit, an activation unit, and a return unit;
the detection unit is used for detecting the state information when receiving a starting instruction of the gallery application;
the starting unit is used for starting the gallery application when the state information is the unlocking state;
and the returning unit is used for returning prompt information to prompt that the gallery application cannot be started when the state information is in the locking state.
In some embodiments of the present application, the apparatus further comprises a deletion unit;
and the deleting unit is used for deleting the image processing thread.
In some embodiments of the present application, the apparatus further comprises an acquisition unit and a display unit;
the starting unit is used for starting the photographing application and creating an image photographing process when a starting instruction of the photographing application is received;
the acquisition unit is used for calling the image shooting process to acquire the preview image information;
and the display unit is used for displaying the preview image information and the corresponding preview image.
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 determine, when a continuous photographing instruction is received, a number of continuous photographing times corresponding to the continuous photographing instruction;
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 photographing times, where the number of consecutive photographing times corresponds to the plurality of image processing threads one to one;
the processing unit 12 is configured to perform image processing on the multiple pieces of original image information corresponding to the consecutive photographing instructions by using the multiple image processing threads to obtain multiple photographing images corresponding to the multiple photographing instructions.
In practical applications, the creating Unit 11 and the Processing Unit 12 may be implemented by a processor 13 on the image Processing apparatus 1, specifically implemented by a Central Processing Unit (CPU), an MPU (Microprocessor Unit), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like; the above data storage may be realized by the memory 14 on the image processing apparatus 1.
An embodiment of the present invention further provides an image processing apparatus 1, and as shown in fig. 6, the image processing apparatus 1 includes: a processor 13, a memory 14 and a communication bus 15, the memory 14 communicating with the processor 13 via the communication bus 15, the memory 14 storing a program executable by the processor 13, the program, when executed, executing the image processing method as described above via the processor 13.
In practical applications, the Memory 14 may be a volatile Memory (volatile Memory), such as a Random-Access Memory (RAM); or a non-volatile Memory (non-volatile Memory), such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk (Hard Disk Drive, HDD) or a Solid-State Drive (SSD); or a combination of the above types of memories and provides instructions and data to the processor 13.
An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, which when executed by the processor 13 implements the image processing method as described above.
It can be understood that, when the image processing apparatus receives the photographing instruction, the image processing apparatus creates an image processing thread, and processes the original image information by using the image processing thread, so that the data processing apparatus can directly photograph after receiving the photographing instruction, and does not need to photograph after the image processing apparatus processes the original image information acquired last time, thereby shortening the time of image photographing of the image processing apparatus and improving the speed of image photographing of the image processing apparatus.
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 present 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 (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
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 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 data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data 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 data 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 data 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.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (11)

1. An image processing method, characterized in that the method comprises:
when an image shooting process receives a shooting instruction, establishing an image processing thread, and acquiring original image information corresponding to the shooting instruction, wherein 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;
calling the image processing thread to perform image processing on the original image information to obtain a photographed image corresponding to the photographing instruction;
after the image processing thread is created and the original image information corresponding to the photographing instruction is acquired, the method further includes:
and locking the gallery application, and modifying the state information of the gallery application into a locking state.
2. The method of 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 comprises:
determining a photographing mode of the original image information and an image processing algorithm corresponding to the photographing mode;
and calling the image processing thread, and processing the original image information by using the image processing algorithm to obtain the photographed image.
3. The method of claim 1, wherein after the creating an image processing thread and acquiring original image information corresponding to the photographing instruction, the method further comprises:
locking the gallery application, and modifying the state information of the gallery application into a locking state;
correspondingly, after 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, the method further includes:
storing the photographed image into the gallery application, and unlocking the gallery application;
and modifying the state information into an unlocking state.
4. The method of claim 3, further comprising:
when a starting instruction of the gallery application is received, detecting the state information;
when the state information is the unlocking state, starting the gallery application;
and when the state information is the locking state, returning prompt information to prompt that the gallery application cannot be started.
5. The method of claim 3, wherein after saving the photographed image to the gallery application and unlocking the gallery application, the method further comprises:
and deleting the image processing thread.
6. The method of 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 a starting instruction of a photographing application is received, starting the photographing application and establishing an image photographing process;
calling the image shooting process to acquire the preview image information;
and displaying the preview image information and the corresponding preview image.
7. The method of claim 6, wherein creating an image processing thread comprises:
and creating the image processing thread by utilizing the image shooting process.
8. The method of claim 6, wherein after the creating an image processing thread and acquiring original image information corresponding to the photographing instruction, the method further comprises:
when a continuous photographing instruction is received, determining the continuous photographing times corresponding to the continuous photographing instruction;
creating a plurality of image processing threads by utilizing the image shooting process according to the continuous shooting times, wherein the continuous shooting times correspond to the image processing threads one to one;
and carrying out image processing on a plurality of original image information corresponding to the continuous photographing instructions by utilizing the plurality of image processing threads to obtain a plurality of photographing images corresponding to the plurality of photographing instructions.
9. An image processing apparatus, characterized in that the apparatus comprises:
the image processing device comprises a creating unit, a processing unit and a processing unit, wherein the creating unit is used for creating an image processing thread when an image shooting process receives a shooting instruction, and acquiring original image information corresponding to the shooting instruction, 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;
the processing unit is used for calling the image processing thread to perform image processing on the original image information to obtain a photographed image corresponding to the photographing instruction;
wherein the device further comprises a locking unit;
and the locking unit is used for locking the gallery application and modifying the state information of the gallery application into a locking state.
10. An image processing apparatus, characterized in that the apparatus comprises:
a memory, a processor, and a communication bus, the memory in communication with the processor through the communication bus, the memory storing a program of image processing executable by the processor, the program of image processing when executed performing the method of any of claims 1 to 8 by the processor.
11. A storage medium having stored thereon a computer program for application in an image processing apparatus, characterized in that the computer program, when being executed by a processor, carries out the method of any one of claims 1 to 8.
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 CN111526288A (en) 2020-08-11
CN111526288B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112770059B (en) * 2021-01-22 2022-11-25 维沃移动通信(杭州)有限公司 Photographing method and device and electronic equipment
CN115002348A (en) * 2022-05-26 2022-09-02 宇龙计算机通信科技(深圳)有限公司 Photographing method, device and related equipment
CN116055855B (en) * 2022-07-28 2023-10-31 荣耀终端有限公司 Image processing method and related device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101365041A (en) * 2007-08-10 2009-02-11 三星Techwin株式会社 Digital signal processor and digital image processing apparatus adopting the same
CN103179341A (en) * 2011-12-21 2013-06-26 索尼公司 Image processing device, image processing method, and program
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, shooting device and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7646939B2 (en) * 2005-02-28 2010-01-12 Fujifilm Corporation Electronic album editing system, electronic album editing method and electronics album editing program
JP5921349B2 (en) * 2012-06-14 2016-05-24 ナカバヤシ株式会社 Album system, portable terminal device, control method, and control program
CN103218131A (en) * 2013-03-26 2013-07-24 广东欧珀移动通信有限公司 Method for preventing pictures from being deleted by mistake on mobile terminal
CN104902177B (en) * 2015-05-26 2018-03-02 广东欧珀移动通信有限公司 A kind of Intelligent photographing method and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101365041A (en) * 2007-08-10 2009-02-11 三星Techwin株式会社 Digital signal processor and digital image processing apparatus adopting the same
CN103179341A (en) * 2011-12-21 2013-06-26 索尼公司 Image processing device, image processing method, and program
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, shooting device and electronic equipment

Also Published As

Publication number Publication date
CN111526288A (en) 2020-08-11

Similar Documents

Publication Publication Date Title
CN111526288B (en) Image processing method and device and storage medium
US20170032219A1 (en) Methods and devices for picture processing
US9904774B2 (en) Method and device for locking file
KR102327779B1 (en) Method for processing image data and apparatus for the same
CN112770059B (en) Photographing method and device and electronic equipment
CN112291475B (en) Photographing method and device and electronic equipment
CN113794834B (en) Image processing method and device and electronic equipment
CN115689963B (en) Image processing method and electronic equipment
CN111669495B (en) Photographing method, photographing device and electronic equipment
CN112422817A (en) Image processing method and device
CN112734661A (en) Image processing method and device
CN113225451A (en) Image processing method and device and electronic equipment
CN113596331B (en) Shooting method, shooting device, shooting equipment and storage medium
CN108062405B (en) Picture classification method and device, storage medium and electronic equipment
CN113794833B (en) Shooting method and device and electronic equipment
CN110704157B (en) Application starting method, related device and medium
CN114245017A (en) Shooting method and device and electronic equipment
CN113473012A (en) Virtualization processing method and device and electronic equipment
CN113989706A (en) Image processing method and device, server, electronic device and readable storage medium
CN112383708A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN112287135A (en) Screenshot processing method and device
CN111597363A (en) Method for detecting repeated photos, mobile terminal and device with storage function
CN106446637B (en) Electronic device and operation method thereof
CN107592450B (en) Media data processing method and device
KR101795621B1 (en) Locking method for contents of portable devices

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