Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, a flowchart illustrating steps of an image processing method according to a first embodiment of the present invention is shown.
The image processing method provided by the embodiment of the invention comprises the following steps:
step 101: under the condition that an image is acquired through a first application program, if a target operation aiming at a camera is received, N icons are displayed on a running interface of the first application program.
When shooting is performed by using a first application program, receiving a target operation of a user on a camera, wherein the target operation may be: the method comprises the steps of carrying out covering operation on a front camera or a rear camera of the electronic equipment, detecting light brightness obtained by the front camera or the rear camera of the terminal equipment, and displaying N icons on an operation interface of a first application program under the condition that the light brightness is smaller than preset brightness. Or acquiring gesture information of a user through the camera, comparing an image of the gesture information with a preset image, and displaying N icons on the running interface of the first application program under the condition that the image of the gesture information is matched with the preset image.
And N icons displayed on the running interface of the first application program are shooting application programs installed in the electronic equipment.
Step 102: and receiving a selection operation aiming at a target icon in the N icons.
Wherein, at least two image processing application programs are installed in the terminal equipment.
Fig. 2 is a schematic diagram of N icons of an operation interface of a first application, where the N icons are icons corresponding to applications installed in the electronic device, except for the first application.
Step 103: and responding to the selection operation, starting a second application program corresponding to the target icon, and acquiring the image through the second application program.
The user may perform a selection operation on a target icon in the N icons, where the selection operation may be a click operation, a double click operation, a long press operation, and the like, and this is not particularly limited in this embodiment of the present invention.
And determining a second application program corresponding to the target icon according to the selection operation.
At this time, the first application program and the second application program run simultaneously, and when the first application program runs in the foreground, the second application program may run in the background, or may be displayed in a small window form at a preset position of the running interface of the first application program, that is, the running interface of the first application program and the small window running interface of the second application program, and the image is acquired at the same time. Or when the second application program is started, the image is only acquired by the second application program, and the first application program does not acquire the image any more.
In the embodiment of the invention, under the condition that an image is acquired through a first application program, if a target operation aiming at a camera is received, N icons are displayed on an operation interface of the first application program; receiving a selection operation aiming at a target icon in the N icons; in response to the selection operation, the second application program corresponding to the target icon is started, the image is obtained through the second application program, the second application program does not need to be manually opened after exiting when the first application program is opened to process the image, the N displayed icons are directly switched to the second application program through clicking, the operation is simple, and the use experience of a user is improved.
Example two
Referring to fig. 3, a flowchart illustrating steps of an image processing method according to a second embodiment of the present invention is shown.
The image processing method provided by the embodiment of the invention comprises the following steps:
step 201: under the condition that an image is acquired through a first application program, if a target operation aiming at a camera is received, N icons are displayed on a running interface of the first application program.
When shooting is performed by using a first application program, receiving a target operation of a user on a camera, wherein the target operation may be: the method comprises the steps of carrying out covering operation on a front camera or a rear camera of the electronic equipment, detecting light brightness obtained by the front camera or the rear camera of the terminal equipment, and displaying N icons on an operation interface of a first application program under the condition that the light brightness is smaller than preset brightness. Or acquiring gesture information of a user through the camera, comparing an image of the gesture information with a preset image, and displaying N icons on the running interface of the first application program under the condition that the image of the gesture information is matched with the preset image.
It should be noted that, a person skilled in the art can set the preset light brightness according to actual situations. When the condition that the light brightness of the front camera or the rear camera of the electronic equipment is smaller than the preset brightness is detected, displaying N icons on the running interface of the first application program. When the condition that the light brightness of the front camera or the rear camera of the electronic equipment is greater than or equal to the preset brightness is detected, the N icons do not need to be displayed in the running interface of the first application program.
This step is to avoid false touches, and therefore requires detection of the target operation while the first image processing application is running.
Under the condition that an image is obtained through a first application program, if a target operation aiming at a camera is received, displaying N icons on an operation interface of the first application program in a preset mode, wherein the preset mode comprises any one of the following modes: a floating window and a pop-up window.
In order to avoid the obstruction of the running interface of the first application program, the N icons can be displayed in the form of transparent floating windows.
Under the condition that the image is obtained through the first application program, if target operation aiming at the camera is received, the image is identified; determining a target application program corresponding to the image according to the recognition result; and displaying N icons on the running interface of the first application program, wherein the N icons comprise icons corresponding to the target application program, and the icons corresponding to the target application program are highlighted.
Wherein different images correspond to different target applications. After the target application program is determined through the image, a target icon corresponding to the target application program is searched in the N graphs and highlighted, wherein the highlighting comprises highlighting, flashing display, amplifying display and the like so as to recommend the user to use. Step 202: and receiving a selection operation aiming at a target icon in the N icons.
The user may perform a selection operation on a target icon in the N icons, where the selection operation may be a click operation, a double click operation, a long press operation, and the like, and this is not particularly limited in this embodiment of the present invention.
Step 203: and responding to the selection operation, and starting a second application program corresponding to the target icon.
Step 204: a first running interface of a first application is determined.
Step 205: and displaying the first running interface in a small window form at a preset position of a second running interface corresponding to the second application program, and simultaneously acquiring images through the first running interface and the second running interface.
The N icons may be displayed on the upper left, the upper right, the lower left, and the lower right of the first operation interface, which is not limited in this embodiment of the present invention.
At this time, the first application program and the second application program run simultaneously, and when the first application program runs in the foreground, the second application program may run in the background, or may be displayed in a small window form at a preset position of the running interface of the first application program, that is, the running interface of the first application program and the small window interface of the second application program, and the image is acquired simultaneously. Or when the second application program runs in the foreground, the first application program may run in the background, or may be displayed in a small window form at a preset position of a second running interface of the second application program, that is, the running interface of the second application program and the small window interface of the first application program, and the image is acquired at the same time.
When the user continues to switch the application program, receiving the selection operation of the user on any icon in the N icons; responding to the selection operation, and determining a third application program corresponding to the selection operation; and displaying the first running interface at a second preset position of a third running interface of a third application program in a small window mode, wherein the first running interface and the third running interface simultaneously display images to be shot.
The image processing method comprises the steps that a user selects a first application program to process an image, so that the first application program is a preferred application program, the first application program is used as a standard, and the image processing effect of other application programs is compared with that of other application programs, so that when the image processing method is switched to a third application program, the first running interface is displayed at a second preset position of a third running interface of the third application program in a small window mode.
Step 206: and processing the image through the first image processing effect on the first running interface.
Step 207: and processing the image through a second image processing effect on the second running interface.
That is, the image processing effects in the first running interface and the second running interface are different, for example: the image processing effect of the first operation interface is whitening, the image processing effect of the second operation interface is that a preset filter is added, and a user can compare the processed images of the two operation interfaces and select a required application program to process the images.
In the embodiment of the invention, under the condition that an image is acquired through a first application program, if a target operation aiming at a camera is received, N icons are displayed on an operation interface of the first application program; receiving a selection operation aiming at a target icon in the N icons; in response to the selection operation, the second application program corresponding to the target icon is started, the image is obtained through the second application program, the second application program does not need to be manually opened after exiting when the first application program is opened to process the image, the N displayed icons are directly switched to the second application program through clicking, the operation is simple, and the use experience of a user is improved.
EXAMPLE III
Referring to fig. 4, a block diagram of a terminal device according to a third embodiment of the present invention is shown.
The terminal device provided by the embodiment of the invention comprises: thefirst display module 301 is configured to, when an image is acquired through a first application program, if a target operation for a camera is received, display N icons on an operation interface of the first application program; areceiving module 302, configured to receive a selection operation for a target icon in the N icons; afirst response module 303, configured to start a second application corresponding to the target icon in response to the selection operation, and acquire an image through the second application.
In the embodiment of the invention, under the condition that an image is acquired through a first application program, if a target operation aiming at a camera is received, N icons are displayed on an operation interface of the first application program; receiving a selection operation aiming at a target icon in the N icons; in response to the selection operation, the second application program corresponding to the target icon is started, the image is obtained through the second application program, the second application program does not need to be manually opened after exiting when the first application program is opened to process the image, the N displayed icons are directly switched to the second application program through clicking, the operation is simple, and the use experience of a user is improved.
Example four
Referring to fig. 5, a block diagram of a terminal device according to a fourth embodiment of the present invention is shown.
The terminal device provided by the embodiment of the invention comprises: thefirst display module 401 is configured to, in a case where an image is acquired through a first application program, if a target operation for a camera is received, display N icons on an operation interface of the first application program; areceiving module 402, configured to receive a selection operation for a target icon in the N icons; afirst response module 403, configured to start a second application corresponding to the target icon in response to the selection operation, and acquire an image through the second application.
Preferably, the electronic device further includes: asecond response module 404, configured to, after thefirst response module 403 responds to the selection operation, start a second application program corresponding to the target icon and acquire an image through the second application program, respond to the selection operation, and start the second application program corresponding to the target icon; a first determiningmodule 405, configured to determine a first running interface of a first application; asecond display module 406, configured to display the first running interface in a form of a small window at a preset position of a second running interface corresponding to the second application, and display the acquired image through the first running interface and the second running interface at the same time.
Preferably, the electronic device further includes: afirst processing module 407, configured to display the first running interface in a small window form at a preset position of a second running interface corresponding to the second application program in thesecond display module 406, and process the image through a first image processing effect in the first running interface after the acquired image is simultaneously displayed through the first running interface and the second running interface; and asecond processing module 408, configured to process the image through a second image processing effect on the second operation interface.
Preferably, thefirst display module 401 includes: therecognition sub-module 4011 is configured to, in the case that the image is obtained by the first application, recognize the image if a target operation for the camera is received; the determiningsubmodule 4012 is configured to determine, according to the recognition result, a target application program corresponding to the image; thefirst display sub-module 4013 is configured to display N icons on the operation interface of the first application, where the N icons include an icon corresponding to the target application, and the icon corresponding to the target application is highlighted.
Preferably, thefirst display module 401 includes: thesecond display sub-module 4014 is configured to, when an image is obtained by a first application program, if a target operation for a camera is received, display N icons on an operation interface of the first application program in a preset manner, where the preset manner includes any one of: a floating window and a pop-up window.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 3, and is not described herein again to avoid repetition.
In the embodiment of the invention, under the condition that an image is acquired through a first application program, if a target operation aiming at a camera is received, N icons are displayed on an operation interface of the first application program; receiving a selection operation aiming at a target icon in the N icons; in response to the selection operation, the second application program corresponding to the target icon is started, the image is obtained through the second application program, the second application program does not need to be manually opened after exiting when the first application program is opened to process the image, the N displayed icons are directly switched to the second application program through clicking, the operation is simple, and the use experience of a user is improved.
EXAMPLE five
Referring to fig. 6, a hardware structure diagram of a mobile terminal for implementing various embodiments of the present invention is shown.
Themobile terminal 500 includes, but is not limited to: aradio frequency unit 501, anetwork module 502, anaudio output unit 503, aninput unit 504, asensor 505, adisplay unit 506, auser input unit 507, aninterface unit 508, amemory 509, aprocessor 510, and apower supply 511. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 6 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Aprocessor 510, configured to, when an image is obtained by a first application, if a target operation for a camera is received, display N icons on an operation interface of the first application; receiving a selection operation aiming at a target icon in the N icons; and responding to the selection operation, starting a second application program corresponding to the target icon, and acquiring an image through the second application program.
In the embodiment of the invention, under the condition that an image is acquired through a first application program, if a target operation aiming at a camera is received, N icons are displayed on an operation interface of the first application program; receiving a selection operation aiming at a target icon in the N icons; in response to the selection operation, the second application program corresponding to the target icon is started, the image is obtained through the second application program, the second application program does not need to be manually opened after exiting when the first application program is opened to process the image, the N displayed icons are directly switched to the second application program through clicking, the operation is simple, and the use experience of a user is improved.
It should be understood that, in the embodiment of the present invention, theradio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to theprocessor 510; in addition, the uplink data is transmitted to the base station. In general,radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, theradio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through thenetwork module 502, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
Theaudio output unit 503 may convert audio data received by theradio frequency unit 501 or thenetwork module 502 or stored in thememory 509 into an audio signal and output as sound. Also, theaudio output unit 503 may also provide audio output related to a specific function performed by the mobile terminal 500 (e.g., a call signal reception sound, a message reception sound, etc.). Theaudio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
Theinput unit 504 is used to receive an audio or video signal. Theinput Unit 504 may include a Graphics Processing Unit (GPU) 5041 and amicrophone 5042, and theGraphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on thedisplay unit 506. The image frames processed by thegraphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via theradio frequency unit 501 or thenetwork module 502. Themicrophone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via theradio frequency unit 501 in case of the phone call mode.
Themobile terminal 500 also includes at least onesensor 505, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of thedisplay panel 5061 according to the brightness of ambient light, and a proximity sensor that turns off thedisplay panel 5061 and/or a backlight when themobile terminal 500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); thesensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
Thedisplay unit 506 is used to display information input by the user or information provided to the user. TheDisplay unit 506 may include aDisplay panel 5061, and theDisplay panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
Theuser input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, theuser input unit 507 includes atouch panel 5071 andother input devices 5072.Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or neartouch panel 5071 using a finger, stylus, or any suitable object or attachment). Thetouch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to theprocessor 510, and receives and executes commands sent by theprocessor 510. In addition, thetouch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to thetouch panel 5071, theuser input unit 507 may includeother input devices 5072. In particular,other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, thetouch panel 5071 may be overlaid on thedisplay panel 5061, and when thetouch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to theprocessor 510 to determine the type of the touch event, and then theprocessor 510 provides a corresponding visual output on thedisplay panel 5061 according to the type of the touch event. Although in fig. 6, thetouch panel 5071 and thedisplay panel 5061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, thetouch panel 5071 and thedisplay panel 5061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
Theinterface unit 508 is an interface through which an external device is connected to themobile terminal 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. Theinterface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within themobile terminal 500 or may be used to transmit data between themobile terminal 500 and external devices.
Thememory 509 may be used to store software programs as well as various data. Thememory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, thememory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
Theprocessor 510 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in thememory 509 and calling data stored in thememory 509, thereby performing overall monitoring of the mobile terminal.Processor 510 may include one or more processing units; preferably, theprocessor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated intoprocessor 510.
Themobile terminal 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, thepower supply 511 may be logically connected to theprocessor 510 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, themobile terminal 500 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes aprocessor 510, amemory 509, and a computer program stored in thememory 509 and capable of running on theprocessor 510, where the computer program, when executed by theprocessor 510, implements each process of the above-mentioned image processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the embodiment of the image processing method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.