CN108282611B - Image processing method and mobile terminal - Google Patents
Image processing method and mobile terminal Download PDFInfo
- Publication number
- CN108282611B CN108282611B CN201810026804.7A CN201810026804A CN108282611B CN 108282611 B CN108282611 B CN 108282611B CN 201810026804 A CN201810026804 A CN 201810026804A CN 108282611 B CN108282611 B CN 108282611B
- Authority
- CN
- China
- Prior art keywords
- target
- image
- photographer
- identity information
- target photographer
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/0021—Image watermarking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72439—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Telephone Function (AREA)
Abstract
The invention provides an image processing method and a mobile terminal, wherein the method comprises the following steps: acquiring a target image through a rear camera, and acquiring an image of a target photographer through a front camera; determining the identity information of the target photographer according to the image of the target photographer; and associating the identity information of the target shooting person with the target image. By the image processing method provided by the invention, the identity information of the target photographer is associated with the target image, so that the user can also view the identity information of the target photographer when viewing the target image, and the information which can be viewed by the user when viewing the picture is enriched.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an image processing method and a mobile terminal.
Background
At present, a photographing function becomes one of essential basic functions of mobile terminals such as mobile phones, and due to the convenience of carrying the mobile terminal, a user can record and share life images by using a camera of the mobile terminal at any time and any place. However, when viewing a shot photo, a user can generally view only the photo content, the shooting date, and the like of the photo, and the information that can be viewed is small.
In the prior art, an effective solution is not provided at present for the problem that less information can be viewed when a photo is viewed.
Disclosure of Invention
The embodiment of the invention provides an image processing method and a mobile terminal, and aims to solve the problem that less information can be checked when a photo is checked.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an image processing method, which is applied to a mobile terminal, where the mobile terminal includes a front camera and a rear camera, and the method includes:
acquiring a target image through the rear camera, and acquiring an image of a target photographer through the front camera;
determining the identity information of the target photographer according to the image of the target photographer;
and associating the identity information of the target shooting person with the target image.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, including a front camera and a rear camera, where the mobile terminal further includes:
the acquisition module is used for acquiring a target image through the rear camera and acquiring an image of a target photographer through the front camera;
the determining module is used for determining the identity information of the target photographer according to the image of the target photographer;
and the association module is used for associating the identity information of the target shooting person with the target image.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the image processing method described above.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of the image processing method described above.
In the embodiment of the invention, a target image is collected through the rear camera, and an image of a target photographer is collected through the front camera; determining the identity information of the target photographer according to the image of the target photographer; and associating the identity information of the target shooting person with the target image. By associating the identity information of the target photographer with the target image, the user can view the identity information of the target photographer when viewing the target image, and the information which can be viewed by the user when viewing the picture is enriched.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a flow chart of an image processing method provided by an embodiment of the invention;
FIG. 2 is a flow chart of an image processing method according to another embodiment of the present invention;
fig. 3 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 4 is a block diagram of a mobile terminal according to still another embodiment of the present invention;
fig. 5 is a block diagram of a mobile terminal according to still another embodiment of the present invention;
fig. 6 is a block diagram of a mobile terminal according to still another embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
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.
The embodiment of the invention provides an image processing method, which is applied to a mobile terminal, wherein the mobile terminal comprises a front camera and a rear camera. Referring to fig. 1, fig. 1 is a flowchart of an image processing method according to an embodiment of the present invention, as shown in fig. 1, including the following steps:
and 101, acquiring a target image through a rear camera and acquiring an image of a target photographer through a front camera.
In the embodiment of the present invention, the target image may be any image captured by a rear camera, and the target photographer is an object for controlling the rear camera to capture the target image, for example, when the user a holds the mobile terminal and controls the rear camera of the mobile terminal to capture an image, the front camera of the mobile terminal may capture the image of the user a.
And 102, determining the identity information of the target photographer according to the image of the target photographer.
In the embodiment of the present invention, the identity information of the photographer may include a name, a nickname, a relationship with the photographer, and the like of the photographer. Specifically, the embodiment of the present invention may perform image recognition (for example, face recognition, iris recognition, etc.) on the image of the target photographer, acquire the identity information associated with the image matched with the image of the target photographer, and determine the identity information as the identity information of the target photographer. It is understood that the embodiment of the invention can store the image and the identity information of a plurality of users in a pre-association manner.
And 103, associating the identity information of the target shooting person with the target image.
In the embodiment of the invention, the identity information of the target photographer and the target image are associated by directly synthesizing the identity information of the target photographer on the target image, so that the identity information of the photographer can be directly checked on the target image, and the corresponding relation between the identity information of the target photographer and the target image can be established, so that the identity information of the associated photographer can be checked through the target image.
In the embodiment of the present invention, the mobile terminal may be a mobile phone including a front camera and a rear camera, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal digital assistant (PDA for short), a Wearable Device (Wearable Device), or the like.
According to the image processing method, the rear camera is used for collecting the target image, and the front camera is used for collecting the image of the target photographer; determining the identity information of the target photographer according to the image of the target photographer; and associating the identity information of the target shooting person with the target image. By associating the identity information of the target photographer with the target image, the user can view the identity information of the target photographer when viewing the target image, and the information which can be viewed by the user when viewing the picture is enriched.
Referring to fig. 2, fig. 2 is a flowchart of an image processing method according to another embodiment of the present invention. The difference between the embodiment of the present invention and the previous embodiment is mainly that the step 102 is further defined, in the embodiment of the present invention, the step 102, that is, the determining the identity information of the target photographer according to the image of the target photographer includes: sending the image of the target photographer to a server; receiving an identification result returned by the server; if the identification result carries the identity information of the target photographer, acquiring the identity information of the target photographer from the identification result; if the identification result indicates that the identification of the identity information of the target photographer fails, outputting prompt information to prompt a user to input the identity information of the target photographer; and receiving the input identity information of the target photographer.
As shown in fig. 2, the image processing method provided by the embodiment of the present invention includes the following steps:
and step 201, acquiring a target image through a rear camera, and acquiring an image of a target photographer through a front camera.
This step is the same as step 101, and is not described herein again.
In the embodiment of the invention, after the front camera collects the image of the target photographer, the image of the target photographer can be sent to the server, so that the server can identify the identity information of the target photographer according to the image of the target photographer.
It is understood that, a plurality of user image templates and identity information may be stored in the server in advance in an associated manner, and by respectively matching the image of the target photographer with each image template, for example, similarity between the image of the target photographer and each image template is respectively calculated, if the similarity between the image of the target photographer and a certain image template is greater than a preset threshold, it is determined that the image of the target photographer matches the image template, otherwise, it is determined that the image of the target photographer does not match the image template. When the image of the target photographer is determined to be matched with a certain image template, the identity information related to the image template is determined to be the identity information of the target photographer, and when the image of the target photographer is determined not to be matched with all the image templates, the identity of the target photographer is indicated to fail to be recognized.
Optionally, before the step 202, that is, before the sending the image of the target photographer to the server, the method further includes:
searching whether the identity information of the target photographer is cached locally according to the image of the target photographer;
the sending the image of the target photographer to a server includes:
and if the identity information of the target photographer is not locally cached, sending the image of the target photographer to a server.
In practical application, when a certain photographer controls a mobile terminal to photograph images, multiple images are usually photographed continuously, in order to avoid that each image photographed by the photographer is uploaded to a server to identify identity information of the photographer, and network traffic is wasted, the identity information of the photographer acquired from the server can be cached locally and correlated with the image of the photographer, so that the identity information of the photographer can be directly searched locally when the same photographer photographs multiple images.
Specifically, after the front-facing camera collects the image of the target photographer, it may be first found whether the identity information of the target photographer is locally cached according to the image of the target photographer, for example, the image of the target photographer is matched with the locally cached image, if the locally cached image is matched with the image of the target photographer, the identity information associated with the image matched with the image of the target photographer is determined as the image of the target photographer, otherwise, the identity information of the target photographer is determined not to be locally cached, the image of the target photographer may be sent to the server, and the server may identify the identity information of the target photographer according to the image of the target photographer.
According to the embodiment of the invention, whether the identity information of the target photographer is cached locally or not is searched according to the image of the target photographer, and the image of the target photographer is sent to the server when the identity information of the target photographer is not cached locally, so that when a plurality of images are photographed by the same photographer, the phenomenon that each image photographed by the photographer is uploaded to the server for identity recognition and network flow is wasted can be avoided.
And step 203, receiving the identification result returned by the server.
In the embodiment of the invention, when the server successfully identifies the identity information of the target photographer, the identification result can carry the identity information of the target photographer, and when the server fails to identify the identity information of the target photographer, the identification result can be used for indicating that the identity information of the target photographer fails to be identified.
And 204, if the identification result carries the identity information of the target photographer, acquiring the identity information of the target photographer from the identification result.
Optionally, after the identity information of the target photographer is obtained from the identification result, the association relationship between the identity information of the target photographer and the image of the target photographer may be cached locally.
And step 205, if the identification result indicates that the identification information of the target photographer fails to be identified, outputting prompt information to prompt a user to input the identification information of the target photographer.
In the embodiment of the present invention, when the identification result indicates that identification information of the target photographer fails to be identified, prompt information may be output, for example, a prompt box may be output, the prompt box may include prompt content (for example, please output the photographer identification information) and an option button (for example, a "yes" option button and a "no" option button), when the user triggers the "no" option button, the flow may be ended, and when the user triggers the "yes" option button, the photographer identification information input interface may be further output, and the identification information input by the user is received. Optionally, when the identification result indicates that the identification of the identity information of the target photographer fails, a prompt box including a photographer identity information input box may also be directly output, so that a user inputs the identity information of the photographer.
And step 206, receiving the input identity information of the target shooting person.
Optionally, after receiving the identity information of the target photographer input by the user, the embodiment of the present invention may locally cache the association relationship between the identity information of the target photographer and the image of the target photographer, and may also send the identity information of the target photographer to the server, so that the server stores the identity information of the target photographer and the image of the target photographer in an associated manner.
And step 207, associating the identity information of the target shooting person with the target image.
For example, the identity information of the target photographer and the target image may be synthesized for easy viewing by the user.
Optionally, after obtaining the identity information of the target photographer, the embodiment of the present invention may prompt the user whether to associate the identity information of the target photographer with the target image, and if an instruction for instructing to associate the identity information of the target photographer with the target image is received, associate the identity information of the target photographer with the target image, otherwise, the process may be ended.
Optionally, the associating the identity information of the target photographer with the target image includes:
generating a target watermark according to the identity information of the target photographer, and adding the target watermark to the target image; or
Generating an image identification code according to the identity information of the target photographer, and adding the image identification code to the target image, wherein the image identification code comprises a bar code or a two-dimensional code; or
And establishing a corresponding relation between the identity information of the target photographer and the target image.
In this embodiment of the present invention, the target watermark may be a watermark generated by identity information of a target photographer. Specifically, after the target watermark is obtained, the target watermark may be added to any position of the target image, or the target watermark may be added to a specified area of the target image, for example, to a lower left corner area or a lower right corner area of the target image, so as to reduce the occlusion of the target watermark on the image content of the target image. According to the embodiment of the invention, the target watermark is generated according to the identity information of the target photographer, and the target watermark is added to the target image, so that the shielding of the identity information of the target photographer on the target image can be reduced, and the user can directly check the identity information of the target photographer when checking the target image.
Optionally, in the embodiment of the present invention, an image identification code may be generated according to the identity information of the target photographer, and the image identification code is added to the target image, for example, the image identification code may be added to the target image in a watermark manner, so that a user may check the identity information of the target photographer by scanning the image identification code, and the interestingness of checking the identity information of the photographer is improved.
Optionally, in the embodiment of the present invention, a corresponding relationship between the identity information of the target photographer and the target image may also be established, so that the identity information of the photographer corresponding to the target photographer can be quickly found according to the target image, for example, an option for viewing the photographer information may be popped up when the user presses the target image for a long time, and the identity information of the photographer corresponding to the target image is displayed when the user triggers the option, so that the user can view the identity information.
According to the embodiment of the invention, the corresponding relation between the identity information of the target photographer and the target image is established, so that the influence of the identity information of the target photographer on the display effect of the target image can be avoided.
In addition, when the server fails to identify the identity information of the target photographer, the user is prompted to input the identity information of the target photographer, the identity information of the target photographer can be ensured to be acquired, and the interactivity with the user can be improved.
Optionally, when the identity information of the target photographer includes an image (for example, a head image of the photographer), the embodiment of the present invention may directly add the image to a preset area of the target image, or add a thumbnail of the image to the preset area of the target image, or establish a corresponding relationship between the image and the target image, and display the image through the floating window after the target image is touched.
Optionally, the associating the identity information of the target photographer with the target image includes:
and associating the identity information of the target photographer, the image of the target photographer and the target image.
In the embodiment of the invention, the identity information of the target photographer, the image of the target photographer and the target image are associated, so that a user can view the identity information of the target photographer and the image of the target photographer when viewing the target image, the information available for viewing during image viewing can be further enriched, and the interestingness of image viewing can be enhanced.
Optionally, the associating the identity information of the target photographer, the image of the target photographer, and the target image includes:
generating a target watermark according to the identity information of the target photographer and the image of the target photographer, and adding the target watermark to the target image; or
Generating an image identification code according to the identity information of the target photographer and a storage path of the image of the target photographer, and adding the image identification code to the target image; or
And establishing a corresponding relation among the identity information of the target photographer, the image of the target photographer and the target image.
In an embodiment of the present invention, the target watermark may be a watermark generated by identity information of the target photographer and an image of the target photographer, where the identity information of the target photographer may be superimposed on the image of the target photographer, or may be located at a peripheral position of the image of the target photographer, for example, below the image of the target photographer. It is understood that the image of the target photographer may be preprocessed, for example, reduced to a preset size, before the target watermark is generated according to the identity information of the target photographer and the image of the target photographer. Specifically, after the target watermark is obtained, the target watermark may be embedded into any position of the target image, or the target watermark may be embedded into a specified area of the target image, for example, into a lower left corner area or a lower right corner area of the target image, so as to reduce the occlusion of the target watermark on the image content of the target image.
Optionally, in the embodiment of the present invention, the image identification code may also be generated according to the identity information of the target photographer and the storage path of the image of the target photographer, so that the user may obtain the identity information of the target photographer and the image storage path of the target photographer by scanning the image identification code, and thus the identity information of the target photographer and the image of the target photographer may be obtained and displayed according to the identity information of the target photographer and the image storage path of the target photographer.
Optionally, in the embodiment of the present invention, the identity information of the target photographer, the image of the target photographer, and the corresponding relationship between the target images may also be established, so that the identity information of the corresponding photographer and the image of the photographer can be quickly found according to the target images.
Optionally, after associating the identity information of the target photographer with the target image, the method further includes: and if a preset touch operation aiming at the target image is received, acquiring and displaying the identity information of the photographer related to the target image.
In an embodiment of the present invention, the preset touch operation may be a long press operation, a heavy press operation, or a sliding operation. Specifically, when a preset touch operation for the target image is received, the identity information of the photographer associated with the target image may be directly obtained and displayed, or an option for popping up and viewing the photographer information may be also used, and the identity information of the photographer associated with the target image is obtained and displayed when the user triggers the option.
Referring to fig. 3, fig. 3 is a block diagram of a mobile terminal according to an embodiment of the present invention. As shown in fig. 3, the mobile terminal 300 includes: an acquisition module 301, a determination module 302, and an association module 303, wherein:
the acquisition module 301 is used for acquiring a target image through the rear camera and acquiring an image of a target photographer through the front camera;
a determining module 302, configured to determine identity information of the target photographer according to the image of the target photographer;
an associating module 303, configured to associate the identity information of the target photographer with the target image.
Optionally, referring to fig. 4, the determining module 302 includes:
a transmission unit 3021 configured to transmit an image of the target photographer to a server;
a first receiving unit 3022, configured to receive an identification result returned by the server;
an obtaining unit 3023, configured to obtain, if the identification result carries the identity information of the target photographer, the identity information of the target photographer from the identification result;
an output unit 3024, configured to output a prompt message to prompt a user to input the identity information of the target photographer if the identification result indicates that the identification information of the target photographer fails to be identified;
a second receiving unit 3025 configured to receive the input identity information of the target photographer.
Optionally, referring to fig. 5, the mobile terminal 300 further includes:
a searching module 304, configured to search whether identity information of the target photographer is cached locally according to the image of the target photographer before sending the image of the target photographer to a server;
the sending unit 3021 is specifically configured to:
and if the identity information of the target photographer is not locally cached, sending the image of the target photographer to a server.
Optionally, the association module 303 is specifically configured to:
generating a target watermark according to the identity information of the target photographer, and adding the target watermark to the target image; or
Generating an image identification code according to the identity information of the target photographer, and adding the image identification code to the target image, wherein the image identification code comprises a bar code or a two-dimensional code; or
And establishing a corresponding relation between the identity information of the target photographer and the target image.
Optionally, the association module 303 is specifically configured to:
and associating the identity information of the target photographer, the image of the target photographer and the target image.
Optionally, referring to fig. 6, the mobile terminal 300 further includes:
a display module 305, configured to, after associating the identity information of the target photographer with the target image, if a preset touch operation for the target image is received, obtain and display the identity information of the photographer associated with the target image.
The mobile terminal 300 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. 2, and is not described herein again to avoid repetition.
In the mobile terminal 300 of the embodiment of the present invention, the acquisition module 301 is configured to acquire a target image through the rear camera and acquire an image of a target photographer through the front camera; a determining module 302, configured to determine identity information of the target photographer according to the image of the target photographer; an associating module 303, configured to associate the identity information of the target photographer with the target image. According to the embodiment of the invention, the identity information of the target photographer is associated with the target image, so that the user can view the identity information of the target photographer when viewing the target image, and the information which can be viewed by the user when viewing the picture is enriched.
Fig. 7 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention. Referring to fig. 7, the mobile terminal 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, a power supply 711, a front camera 712, and a rear camera 713. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 7 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.
The processor 710 is configured to acquire a target image through the rear camera, and acquire an image of a target photographer through the front camera; determining the identity information of the target photographer according to the image of the target photographer; and associating the identity information of the target shooting person with the target image.
According to the embodiment of the invention, the identity information of the target photographer is associated with the target image, so that the user can view the identity information of the target photographer when viewing the target image, and the information which can be viewed by the user when viewing the picture is enriched.
Optionally, the processor 710 is further configured to:
sending the image of the target photographer to a server;
receiving an identification result returned by the server;
if the identification result carries the identity information of the target photographer, acquiring the identity information of the target photographer from the identification result;
if the identification result indicates that the identification of the identity information of the target photographer fails, outputting prompt information to prompt a user to input the identity information of the target photographer;
and receiving the input identity information of the target photographer.
Optionally, the processor 710 is further configured to:
searching whether the identity information of the target photographer is cached locally according to the image of the target photographer;
the sending the image of the target photographer to a server includes:
and if the identity information of the target photographer is not locally cached, sending the image of the target photographer to a server.
Optionally, the processor 710 is further configured to:
generating a target watermark according to the identity information of the target photographer, and adding the target watermark to the target image; or
Generating an image identification code according to the identity information of the target photographer, and adding the image identification code to the target image, wherein the image identification code comprises a bar code or a two-dimensional code; or
And establishing a corresponding relation between the identity information of the target photographer and the target image.
Optionally, the processor 710 is further configured to:
and associating the identity information of the target photographer, the image of the target photographer and the target image.
Optionally, the processor 710 is further configured to:
and if a preset touch operation aiming at the target image is received, acquiring and displaying the identity information of the photographer related to the target image.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 710; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 701 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, the radio frequency unit 701 may also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access via the network module 702, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 703 may convert audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output as sound. Also, the audio output unit 703 may also provide audio output related to a specific function performed by the mobile terminal 700 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
The input unit 704 is used to receive audio or video signals. The input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics processor 7041 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 the display unit 706. The image frames processed by the graphic processor 7041 may be stored in the memory 709 (or other storage medium) or transmitted via the radio unit 701 or the network module 702. The microphone 7042 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 the radio frequency unit 701 in case of a phone call mode.
The mobile terminal 700 also includes at least one sensor 705, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 7061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 7061 and/or a backlight when the mobile terminal 700 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); the sensors 705 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.
The display unit 706 is used to display information input by the user or information provided to the user. The Display unit 706 may include a Display panel 7061, and the Display panel 7061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 707 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, the user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 7071 (e.g., operations by a user on or near the touch panel 7071 using a finger, a stylus, or any other suitable object or attachment). The touch panel 7071 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 the processor 710, receives a command from the processor 710, and executes the command. In addition, the touch panel 7071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 707 may include other input devices 7072 in addition to the touch panel 7071. In particular, the other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 7071 may be overlaid on the display panel 7061, and when the touch panel 7071 detects a touch operation on or near the touch panel 7071, the touch operation is transmitted to the processor 710 to determine the type of the touch event, and then the processor 710 provides a corresponding visual output on the display panel 7061 according to the type of the touch event. Although the touch panel 7071 and the display panel 7061 are shown in fig. 7 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 708 is an interface through which an external device is connected to the mobile terminal 700. 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. The interface unit 708 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 the mobile terminal 700 or may be used to transmit data between the mobile terminal 700 and external devices.
The memory 709 may be used to store software programs as well as various data. The memory 709 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, the memory 709 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.
The processor 710 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 the memory 709 and calling data stored in the memory 709, thereby integrally monitoring the mobile terminal. Processor 710 may include one or more processing units; preferably, the processor 710 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 into processor 710.
The mobile terminal 700 may also include a power supply 711 (e.g., a battery) for powering the various components, and the power supply 711 may be logically coupled to the processor 710 via a power management system that may enable managing charging, discharging, and power consumption by the power management system.
In addition, the mobile terminal 700 includes some functional modules that are not shown, and thus will not be described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 710, a memory 709, and a computer program stored in the memory 709 and capable of running on the processor 710, where the computer program is executed by the processor 710 to implement 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.
Claims (5)
1. An image processing method is applied to a mobile terminal, and is characterized in that the mobile terminal comprises a front camera and a rear camera, and the method comprises the following steps:
when the rear camera is used for collecting a target image, the front camera is used for collecting an image of a target photographer;
determining the identity information of the target photographer according to the image of the target photographer;
associating the identity information of the target photographer with the target image;
the associating the identity information of the target photographer with the target image includes: associating the identity information of the target photographer, the image of the target photographer and the target image, specifically: synthesizing the identity information of the target photographer, the image of the target photographer and the target image;
after associating the identity information of the target photographer with the target image, the method further comprises:
if a preset touch operation aiming at the target image is received, acquiring and displaying identity information of a photographer and an image of the target photographer, which are associated with the target image;
the determining the identity information of the target photographer according to the image of the target photographer includes:
sending the image of the target photographer to a server;
receiving an identification result returned by the server;
before the sending the image of the target photographer to a server, the method further includes:
searching whether the identity information of the target photographer is cached locally according to the image of the target photographer;
the sending the image of the target photographer to a server includes:
and if the identity information of the target photographer is not locally cached, sending the image of the target photographer to a server.
2. The method of claim 1,
if the identification result carries the identity information of the target photographer, acquiring the identity information of the target photographer from the identification result;
if the identification result indicates that the identification of the identity information of the target photographer fails, outputting prompt information to prompt a user to input the identity information of the target photographer;
and receiving the input identity information of the target photographer.
3. The utility model provides a mobile terminal, its characterized in that, mobile terminal includes leading camera and rear camera, mobile terminal still includes:
the acquisition module is used for acquiring the image of a target photographer through the front camera when the rear camera acquires the target image;
the determining module is used for determining the identity information of the target photographer according to the image of the target photographer;
the association module is used for associating the identity information of the target shooting person with the target image;
the association module is specifically configured to: associating the identity information of the target photographer, the image of the target photographer and the target image, specifically: synthesizing the identity information of the target photographer, the image of the target photographer and the target image;
the mobile terminal further includes:
the display module is used for acquiring and displaying the identity information of the photographer related to the target image and the image of the target photographer if a preset touch operation aiming at the target image is received after the identity information of the target photographer is related to the target image;
the determining module comprises:
a transmitting unit for transmitting the image of the target photographer to a server;
the first receiving unit is used for receiving the identification result returned by the server;
the mobile terminal further includes:
the searching module is used for searching whether the identity information of the target photographer is cached locally or not according to the image of the target photographer before the image of the target photographer is sent to the server;
the sending unit is specifically configured to:
and if the identity information of the target photographer is not locally cached, sending the image of the target photographer to a server.
4. The mobile terminal of claim 3, wherein the determining module further comprises:
an obtaining unit, configured to obtain, if the identification result carries the identity information of the target photographer, the identity information of the target photographer from the identification result;
the output unit is used for outputting prompt information to prompt a user to input the identity information of the target photographer if the identification result indicates that the identity information of the target photographer is failed to be identified;
and the second receiving unit is used for receiving the input identity information of the target photographer.
5. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, implements the steps of the image processing method according to any one of claims 1 to 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810026804.7A CN108282611B (en) | 2018-01-11 | 2018-01-11 | Image processing method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810026804.7A CN108282611B (en) | 2018-01-11 | 2018-01-11 | Image processing method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108282611A CN108282611A (en) | 2018-07-13 |
CN108282611B true CN108282611B (en) | 2020-11-13 |
Family
ID=62803415
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810026804.7A Active CN108282611B (en) | 2018-01-11 | 2018-01-11 | Image processing method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108282611B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109788169A (en) * | 2018-11-30 | 2019-05-21 | 南京百利通信息技术有限责任公司 | Law enforcement based on signature and audio-video analysis identification records system and method |
CN110602405A (en) * | 2019-09-26 | 2019-12-20 | 上海盛付通电子支付服务有限公司 | Shooting method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104951549A (en) * | 2015-06-24 | 2015-09-30 | 努比亚技术有限公司 | Mobile terminal and photo/video sort management method thereof |
CN105279273A (en) * | 2015-10-28 | 2016-01-27 | 广东欧珀移动通信有限公司 | Photo classification method and device |
CN105530370A (en) * | 2015-11-25 | 2016-04-27 | 努比亚技术有限公司 | Mobile terminal and photographing control method thereof |
CN107133352A (en) * | 2017-05-24 | 2017-09-05 | 北京小米移动软件有限公司 | Photo display methods and device |
CN107343035A (en) * | 2017-06-29 | 2017-11-10 | 胡玥莹 | A kind of image acquiring method and system of identified geographic positional information |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101997454B1 (en) * | 2013-07-31 | 2019-10-01 | 엘지전자 주식회사 | A mobile device and method of controlling thereof |
-
2018
- 2018-01-11 CN CN201810026804.7A patent/CN108282611B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104951549A (en) * | 2015-06-24 | 2015-09-30 | 努比亚技术有限公司 | Mobile terminal and photo/video sort management method thereof |
CN105279273A (en) * | 2015-10-28 | 2016-01-27 | 广东欧珀移动通信有限公司 | Photo classification method and device |
CN105530370A (en) * | 2015-11-25 | 2016-04-27 | 努比亚技术有限公司 | Mobile terminal and photographing control method thereof |
CN107133352A (en) * | 2017-05-24 | 2017-09-05 | 北京小米移动软件有限公司 | Photo display methods and device |
CN107343035A (en) * | 2017-06-29 | 2017-11-10 | 胡玥莹 | A kind of image acquiring method and system of identified geographic positional information |
Also Published As
Publication number | Publication date |
---|---|
CN108282611A (en) | 2018-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110557566B (en) | Video shooting method and electronic equipment | |
CN110740259B (en) | Video processing method and electronic equipment | |
CN109078319B (en) | Game interface display method and terminal | |
CN110365907B (en) | Photographing method and device and electronic equipment | |
CN108989672B (en) | Shooting method and mobile terminal | |
CN108090126B (en) | Image processing method and device, mobile terminal, image identification method and server | |
CN108924414B (en) | Shooting method and terminal equipment | |
CN111263071B (en) | Shooting method and electronic equipment | |
CN107784089B (en) | Multimedia data storage method, processing method and mobile terminal | |
CN108307106B (en) | Image processing method and device and mobile terminal | |
CN107730460B (en) | Image processing method and mobile terminal | |
CN110602389B (en) | Display method and electronic equipment | |
CN110213485B (en) | Image processing method and terminal | |
CN109523253B (en) | Payment method and device | |
CN110062171B (en) | Shooting method and terminal | |
JP7467667B2 (en) | Detection result output method, electronic device and medium | |
CN108335258B (en) | Image processing method and device of mobile terminal | |
CN110290331B (en) | Screen control method and terminal | |
CN108881721B (en) | Display method and terminal | |
CN108174110B (en) | Photographing method and flexible screen terminal | |
CN108121486A (en) | A kind of image display method and mobile terminal | |
CN111405181B (en) | Focusing method and electronic equipment | |
CN108924413B (en) | Shooting method and mobile terminal | |
CN109005337B (en) | Photographing method and terminal | |
CN110955793A (en) | Display control method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |