CN107465873B - Image information processing method, equipment and storage medium - Google Patents

Image information processing method, equipment and storage medium Download PDF

Info

Publication number
CN107465873B
CN107465873B CN201710764790.4A CN201710764790A CN107465873B CN 107465873 B CN107465873 B CN 107465873B CN 201710764790 A CN201710764790 A CN 201710764790A CN 107465873 B CN107465873 B CN 107465873B
Authority
CN
China
Prior art keywords
image
terminal
user
shooting device
processor
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
CN201710764790.4A
Other languages
Chinese (zh)
Other versions
CN107465873A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710764790.4A priority Critical patent/CN107465873B/en
Publication of CN107465873A publication Critical patent/CN107465873A/en
Application granted granted Critical
Publication of CN107465873B publication Critical patent/CN107465873B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/18Eye characteristics, e.g. of the iris

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Ophthalmology & Optometry (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a method, equipment and a storage medium for processing image information; the method can comprise the following steps: acquiring an image formed by the pupil of the user through the front-mounted shooting device; wherein the image is a picture seen by the user; analyzing the image to obtain preference content in the image; generating a processing instruction according to the corresponding relation between the set preference content and the processing instruction according to the preference content in the image; and executing the processing instruction. Thereby the use scene of leading camera has been expanded, the availability factor of leading camera has been promoted.

Description

Image information processing method, equipment and storage medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method, an apparatus, and a storage medium for processing image information.
Background
At present, in a mobile terminal with a dual-camera function, a front camera is generally used as a shooting device during self-shooting, and a rear camera can adapt to more use scenes such as two-dimensional code scanning and the like besides shooting a picture.
With the development of the mobile terminal technology, the function difference between the front camera and the rear camera is smaller and smaller, and even a mobile terminal with the same functions of the front camera and the rear camera is already provided, so that the current terminal cannot meet the improvement of the functions of the front camera on the use scene of the front camera, and therefore, the use efficiency of the front camera of the current mobile terminal is lower.
Disclosure of Invention
The invention mainly aims to provide a method, equipment and a storage medium for processing image information, and aims to expand the use scene of a front camera and improve the use efficiency of the front camera.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an image information processing method, where the method is applied to a mobile terminal with a front-facing camera, and the method includes:
acquiring an image formed by the pupil of the user through the front-mounted shooting device; wherein the image is a picture seen by the user;
analyzing the image to obtain preference content in the image;
generating a processing instruction according to the corresponding relation between the set preference content and the processing instruction according to the preference content in the image;
and executing the processing instruction.
In the above solution, the acquiring an image of the pupil of the user by the front camera includes:
emitting infrared light to the user's pupil;
and acquiring the image of the infrared light on the retina of the eyeball of the user through the front shooting device.
In the above scheme, the acquiring, by the front camera, the image of the infrared light on the retina of the eyeball of the user includes:
determining the image according to the reflected light of the retina of the eyeball of the user through the front-mounted shooting device; the reflected light is obtained by reflecting the infrared light on the retina after the infrared light is refracted by a dioptric system of the eyeball of the user and reflecting the infrared light by the retina.
In the above scheme, the analyzing the image to obtain the preference content in the image includes:
preprocessing the image according to a set preprocessing strategy to obtain a processed image;
and analyzing the processed image according to a set preference collection template to obtain preference content in the processed image.
In the above solution, the analyzing the processed image according to a set preference collecting template to obtain the preference content in the processed image includes:
and analyzing the processed image according to a set two-dimensional code collecting template to obtain a two-dimensional code image part in the processed image.
In the above solution, the generating a processing instruction according to the corresponding relationship between the set preference content and the processing instruction according to the preference content in the image includes:
and generating a recognition instruction aiming at the two-dimensional code image part according to the two-dimensional code image part.
In the above solution, the analyzing the processed image according to a set preference collecting template to obtain the preference content in the processed image includes:
and analyzing the processed image according to a set terminal frame collecting template to obtain a terminal image part in the processed image.
In the above solution, the generating a processing instruction according to the corresponding relationship between the set preference content and the processing instruction according to the preference content in the image includes:
separating the housing of the terminal from the terminal image portion;
acquiring the current shell color of the terminal;
determining a display theme corresponding to the current shell color of the terminal according to the set mapping relation between the shell color of the terminal and the display theme of the terminal;
generating a display theme change instruction; and the display theme changing instruction is used for changing the display theme of the terminal into the display theme corresponding to the current shell color of the terminal.
In a second aspect, an embodiment of the present invention provides a terminal, where the terminal includes: the device comprises a front-end shooting device, a memory and a processor;
the front-mounted shooting device is configured to collect images formed by pupils of a user; wherein the image is a picture seen by the user;
the memory stores a processing program of image information;
the processor is configured to execute a processing procedure of the image information to implement the steps of the method of any one of the first aspect.
In a third aspect, the present invention provides a computer-readable storage medium, on which a processing program of image information is stored, and when executed by a processor, the processing program of image information implements the steps of the processing method of image information according to any one of the first aspect.
The embodiment of the invention provides a method, equipment and a storage medium for processing image information; after the pupil image of the user is collected by the front-end shooting device, the processing instruction can be generated according to the preference content in the pupil image, so that the terminal can execute the processing instruction to realize the function corresponding to the processing instruction, the use scene of the front-end camera is expanded, and the use efficiency of the front-end camera is improved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention;
fig. 2 is a diagram of a communication network system architecture according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for processing image information according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a terminal according to an embodiment of the present invention;
fig. 5 is a schematic structural view of a dioptric system of an eyeball according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an image formed by pupils acquired by a terminal according to an embodiment of the present invention;
fig. 7 is a schematic diagram of an image of a pupil acquired by another terminal according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 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 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex-Long Term Evolution), and TDD-LTE (Time Division duplex-Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures 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 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 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), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 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 107 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 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 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 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 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 the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. 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 108 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 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 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 109 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 110 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 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 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 the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and charging functions Entity) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
Example one
Referring to fig. 3, which illustrates a method for processing image information according to an embodiment of the present invention, the method may be applied to a mobile terminal having a front camera as shown in fig. 4, and the method includes:
s301: acquiring an image formed by the pupil of the user through the front-mounted shooting device;
wherein the image is a picture seen by the user;
s302: analyzing the image to obtain preference content in the image;
s303: generating a processing instruction according to the corresponding relation between the set preference content and the processing instruction according to the preference content in the image;
s304: and executing the processing instruction.
It should be noted that, the shooting device of the terminal may be a camera, and when the shooting device is located at one side of the display screen of the terminal, the shooting device is called a front-facing shooting device; to distinguish from a rear camera at one side of the back case of the terminal. In the conventional terminal, since the function of the front camera is limited to the self-timer shooting of the user, the shooting capability of the front camera is lower than that of the rear camera, but the shooting capability of the front camera reaches the same level as that of the rear camera with the improvement of the terminal production process. Therefore, the front camera can expand more use scenes and schemes besides self-shooting.
Through the technical scheme shown in fig. 3, after the pupil image of the user is acquired by using the front-end shooting device, the processing instruction can be generated according to the preference content in the pupil image, so that the terminal can execute the processing instruction to realize the function corresponding to the processing instruction, the use scene of the front-end camera is expanded, and the use efficiency of the front-end camera is improved.
With the technical solution shown in fig. 3, since the usage scene of the front camera is expanded, but due to the limitation of the shooting direction and the viewing range of the front camera, the embodiment preferably compensates for the deficiency of the shooting direction and the viewing range of the front camera by means of the imaging of the pupils of the user. Therefore, in a possible implementation manner, the capturing an image of the pupil of the user by the front camera in S301 may include:
emitting infrared rays to the pupils of the user through the front-mounted shooting device; and the number of the first and second groups,
and acquiring the image of the infrared light on the retina of the eyeball of the user through the front shooting device.
In a specific implementation, an infrared light emitting unit may be disposed near the front camera of the terminal to emit infrared light to the pupil of the user, and then the terminal may obtain an image of the infrared light on the retina of the eyeball of the user through the front camera.
Preferably, the acquiring, by the front camera, the image of the infrared light on the retina of the eyeball of the user may include:
determining imaging according to the reflected light of the retina of the eyeball of the user through a front-mounted shooting device; the reflected light is obtained by reflecting the infrared light on the retina after the infrared light is refracted by a dioptric system of the eyeball of the user and reflecting the infrared light by the retina.
For a preferred example of the above implementation, specifically, the dioptric system of the eyeball is as shown in fig. 5, and includes cornea 521, aqueous humor 522, lens 523, vitreous body 524, and retina 525. When the parallel light beam, i.e. the dotted line in fig. 5, enters the pupil, the light beam is refracted by the dioptric system of the eyeball and finally enters the retina. The light path of the light reflected by the retina is the same as the light path of the incident light, as also shown by the dashed line in fig. 5. The front-mounted shooting device can acquire images formed by pupils of a user by collecting reflected light rays of retinas. Because the visual range and direction are opposite to the shooting direction of the front shooting device in the process of operating the terminal by a user, the defects of the shooting direction and the view range of the front shooting device can be made up.
After the terminal collects an image formed by the pupils of the user to make up for the deficiency of the shooting direction and the viewing range of the front-end shooting device, because the image formed by the pupils is unclear, in a possible implementation manner, the analyzing the image to obtain the preference content in the image includes:
preprocessing the image according to a set preprocessing strategy to obtain a processed image;
and analyzing the processed image according to a set preference collection template to obtain preference content in the processed image.
Specifically, the preprocessing strategy may include amplification, denoising, and sharpness restoration, and after the terminal preprocesses the image formed by the pupil according to the preprocessing strategy, the quality of the image, such as sharpness, already meets the requirement of the terminal for analysis. Then, the terminal can analyze the processed image according to a preset preference collection template, so as to obtain the preference content.
In particular, the preferred content is related to the usage scenario in which the terminal is located and the function that the user desires to implement. For example, when a two-dimensional code appears in an image, the usage scene at this time should be that the terminal is required to scan the code. It is to be understood that the above is only an atypical example of the correlation between the preference content and the usage scenario and the function that the user desires to implement by the two-dimensional code. In addition, other preference contents related to the usage scenario and the function can also be obtained through the implementation manner, which is not described in detail in this embodiment.
The above implementation is described below by two specific usage scenarios:
scene one
When the terminal need scan the two-dimensional code, the rearmounted camera that uses usually, but under some circumstances, rearmounted camera can't scan the two-dimensional code clearly, for example, when the code needs to be swept under the darker circumstances of light, the terminal can light the flashing that sets up beside the rearmounted camera and close the lamp, but because the luminous direction of flash lamp is unanimous with the shooting direction of rearmounted camera usually, consequently, the light of flash lamp can appear phenomenons such as reflection of light in two-dimensional code department, thereby influenced rearmounted camera's the code scanning effect. However, after the terminal collects the image formed by the pupil by adopting the front-end shooting device and the step S301 and performs the preprocessing, the obtained image does not have the reflection phenomenon, and therefore, the processed image can meet the analysis requirement of the terminal. Therefore, in this scenario, analyzing the processed image according to a set preference collection template to obtain preference content in the processed image includes:
and analyzing the processed image according to a set two-dimensional code collecting template to obtain a two-dimensional code image part in the processed image.
Correspondingly, the generating the processing instruction according to the corresponding relationship between the set preference content and the processing instruction according to the preference content in the image comprises:
and generating a recognition instruction aiming at the two-dimensional code image part according to the two-dimensional code image part.
For example, the terminal may traverse the processed image according to a preset template size and features of the two-dimensional code, so as to obtain a two-dimensional code image portion in the processed image. After the terminal obtains the two-dimensional code image portion, an identification instruction for identifying the two-dimensional code image portion can be generated, so that the terminal executes the identification instruction to identify the coding information represented by the two-dimensional code presented in the two-dimensional code image portion.
As shown in fig. 6, after the terminal preprocesses the image acquired by the pupil, a picture seen by the user, for example, a picture of a desktop on which a pen, a notebook, and a two-dimensional code are placed, can be clearly obtained, and after the terminal analyzes the picture to obtain the two-dimensional code (as shown by a dotted line frame in fig. 6), an identification instruction for identifying the two-dimensional code can be generated, and the terminal identifies the encoded information represented by the two-dimensional code by executing the instruction.
Scene two
The shell of the terminal has multiple colors, but the display theme of the display interface of the terminal is usually fixed and cannot be matched with the shell of the terminal, but the terminal cannot know the self shell color through the rear-mounted shooting device, so that after the image formed by the pupil is collected through the step S301 by adopting the front-mounted shooting device and is preprocessed, the processed image can have the self appearance image of the terminal. Therefore, in this scenario, analyzing the processed image according to a set preference collection template to obtain preference content in the processed image includes:
and analyzing the processed image according to a set terminal frame collecting template to obtain a terminal image part in the processed image.
Correspondingly, the generating the processing instruction according to the corresponding relationship between the set preference content and the processing instruction according to the preference content in the image comprises:
separating the housing of the terminal from the terminal image portion;
acquiring the current shell color of the terminal;
determining a display theme corresponding to the current shell color of the terminal according to the set mapping relation between the shell color of the terminal and the display theme of the terminal;
generating a display theme change instruction; and the display theme changing instruction is used for changing the display theme of the terminal into the display theme corresponding to the current shell color of the terminal.
For example, since the terminal can know the display theme of the current self display interface, the terminal can use the display theme of the current self display interface as a set terminal frame collection template, so as to traverse the processed image according to the template to obtain a terminal image part. After the terminal image part is obtained, the terminal shell can be separated from the display interface of the terminal, so that the current shell color of the terminal is obtained, and the preset mapping relation between the terminal shell color and the display theme of the terminal is inquired according to the current shell color of the terminal, so that the display theme corresponding to the current shell color of the terminal is obtained. Generating a display theme change instruction according to the display theme; therefore, after the terminal executes the instruction, the display theme of the terminal is changed into the display theme corresponding to the current shell color of the terminal.
As shown in fig. 7, after the terminal preprocesses the image formed by the collected pupil, a picture seen by the user, for example, an environmental picture where the terminal is currently located, can be clearly obtained, and after the terminal obtains the terminal image portion by analyzing the picture, the current shell color, for example, yellow, of the terminal can be obtained. Then, inquiring a mapping relation between a preset terminal shell color and a display theme of the terminal according to the current shell color of the terminal, so as to obtain a display theme corresponding to the current shell color of the terminal, such as an orange display theme; generating a display theme change instruction according to the display theme; after the terminal executes the instruction, the display theme of the terminal is changed into an orange display theme corresponding to the current shell color of the terminal.
The two exemplary scenes not only expand the use scene of the front-end shooting device, but also can provide a scheme aiming at image information processing when the rear-end shooting device is not applicable, and the use efficiency of the front-end shooting device is improved.
The embodiment provides an image information processing method, and after a front-end shooting device is used for collecting a pupil image of a user, a processing instruction can be generated according to preference content in the pupil image, so that a terminal can execute the processing instruction to realize a function corresponding to the processing instruction, the use scene of a front-end camera is expanded, and the use efficiency of the front-end camera is improved.
Example two
Based on the same inventive concept of the foregoing embodiment, referring to fig. 8, it illustrates a terminal 80 provided by an embodiment of the present invention, which may include: a front camera 801, a memory 802, and a processor 803;
the various components are coupled together by a bus system 804. It is understood that the bus system 804 is used to enable communications among the components. The bus system 804 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 804 in FIG. 8. Wherein the content of the first and second substances,
a front camera 801 configured to capture an image of a pupil of a user; wherein the image is a picture seen by the user;
a memory 802 for storing a computer program capable of running on the processor 803;
a processor 803 for executing, when running the computer program, the following:
analyzing the image to obtain preference content in the image;
generating a processing instruction according to the corresponding relation between the set preference content and the processing instruction according to the preference content in the image;
and executing the processing instruction.
It will be appreciated that the memory 802 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of example, but not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data rate Synchronous Dynamic random access memory (ddr SDRAM ), Enhanced Synchronous SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and direct memory bus RAM (DRRAM). The memory 802 of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
And the processor 803 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 803. The Processor 803 may be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 802, and the processor 803 reads the information in the memory 802, and completes the steps of the above method in combination with the hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Optionally, as another embodiment, the processor 803 is further configured to execute, when running the computer program, the following:
emitting infrared light to the user's pupil;
and acquiring the image of the infrared light on the retina of the eyeball of the user through the front shooting device.
Optionally, as another embodiment, the processor 803 is further configured to execute, when running the computer program, the following:
determining the image according to the reflected light of the retina of the eyeball of the user through the front-mounted shooting device; the reflected light is obtained by reflecting the infrared light on the retina after the infrared light is refracted by a dioptric system of the eyeball of the user and reflecting the infrared light by the retina.
Optionally, as another embodiment, the processor 803 is further configured to execute, when running the computer program, the following:
preprocessing the image according to a set preprocessing strategy to obtain a processed image;
and analyzing the processed image according to a set preference collection template to obtain preference content in the processed image.
Optionally, as another embodiment, the processor 803 is further configured to execute, when running the computer program, the following:
and analyzing the processed image according to a set two-dimensional code collecting template to obtain a two-dimensional code image part in the processed image.
Optionally, as another embodiment, the processor 803 is further configured to execute, when running the computer program, the following:
and generating a recognition instruction aiming at the two-dimensional code image part according to the two-dimensional code image part.
Optionally, as another embodiment, the processor 803 is further configured to execute, when running the computer program, the following:
and analyzing the processed image according to a set terminal frame collecting template to obtain a terminal image part in the processed image.
Optionally, as another embodiment, the processor 803 is further configured to execute, when running the computer program, the following:
separating the housing of the terminal from the terminal image portion;
acquiring the current shell color of the terminal;
determining a display theme corresponding to the current shell color of the terminal according to the set mapping relation between the shell color of the terminal and the display theme of the terminal;
generating a display theme change instruction; and the display theme changing instruction is used for changing the display theme of the terminal into the display theme corresponding to the current shell color of the terminal.
In addition, each component in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit. The integrated unit can be realized in a form of hardware or a form of a software functional module.
Based on the understanding that the technical solution of the present embodiment essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Accordingly, the present embodiments provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring an image formed by the pupil of the user through the front-mounted shooting device; wherein the image is a picture seen by the user;
analyzing the image to obtain preference content in the image;
generating a processing instruction according to the corresponding relation between the set preference content and the processing instruction according to the preference content in the image;
and executing the processing instruction.
Optionally, as another embodiment, when executed by the processor, the computer program further performs: emitting infrared light to the user's pupil;
and acquiring the image of the infrared light on the retina of the eyeball of the user through the front shooting device.
Optionally, as another embodiment, when executed by the processor, the computer program further performs:
determining the image according to the reflected light of the retina of the eyeball of the user through the front-mounted shooting device; the reflected light is obtained by reflecting the infrared light on the retina after the infrared light is refracted by a dioptric system of the eyeball of the user and reflecting the infrared light by the retina.
Optionally, as another embodiment, when executed by the processor, the computer program further performs:
preprocessing the image according to a set preprocessing strategy to obtain a processed image;
and analyzing the processed image according to a set preference collection template to obtain preference content in the processed image.
Optionally, as another embodiment, when executed by the processor, the computer program further performs:
and analyzing the processed image according to a set two-dimensional code collecting template to obtain a two-dimensional code image part in the processed image.
Optionally, as another embodiment, when executed by the processor, the computer program further performs:
and generating a recognition instruction aiming at the two-dimensional code image part according to the two-dimensional code image part.
Optionally, as another embodiment, when executed by the processor, the computer program further performs:
and analyzing the processed image according to a set terminal frame collecting template to obtain a terminal image part in the processed image.
Optionally, as another embodiment, when executed by the processor, the computer program further performs:
separating the housing of the terminal from the terminal image portion;
acquiring the current shell color of the terminal;
determining a display theme corresponding to the current shell color of the terminal according to the set mapping relation between the shell color of the terminal and the display theme of the terminal;
generating a display theme change instruction; and the display theme changing instruction is used for changing the display theme of the terminal into the display theme corresponding to the current shell color of the terminal.
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.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
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 (6)

1. A method for processing image information is applied to a mobile terminal with a front-facing shooting device, and the method comprises the following steps:
acquiring an image formed by the pupil of the user through the front-mounted shooting device; wherein the image is a picture seen by the user;
analyzing the image to obtain preference content in the image;
generating a processing instruction according to the corresponding relation between the set preference content and the processing instruction according to the preference content in the image;
executing the processing instruction;
the analyzing the image to obtain the preference content in the image comprises:
preprocessing the image according to a set preprocessing strategy to obtain a processed image;
and analyzing the processed image according to a set terminal frame collecting template to obtain a terminal image part in the processed image.
2. The method of claim 1, wherein the capturing of the image of the user's pupil by the pre-camera comprises:
emitting infrared light to the user's pupil;
and acquiring the image of the infrared light on the retina of the eyeball of the user through the front shooting device.
3. The method according to claim 2, wherein the acquiring the image of the infrared ray on the retina of the eyeball of the user through the front camera comprises:
determining the image according to the reflected light of the retina of the eyeball of the user through the front-mounted shooting device; the reflected light is obtained by reflecting the infrared light on the retina after the infrared light is refracted by a dioptric system of the eyeball of the user and reflecting the infrared light by the retina.
4. The method according to claim 1, wherein the generating a processing instruction according to the corresponding relationship between the set preference content and the processing instruction according to the preference content in the image comprises:
separating the housing of the terminal from the terminal image portion;
acquiring the current shell color of the terminal;
determining a display theme corresponding to the current shell color of the terminal according to the set mapping relation between the shell color of the terminal and the display theme of the terminal;
generating a display theme change instruction; and the display theme changing instruction is used for changing the display theme of the terminal into the display theme corresponding to the current shell color of the terminal.
5. A terminal, characterized in that the terminal comprises: the device comprises a front-end shooting device, a memory and a processor;
the front-mounted shooting device is configured to collect images formed by pupils of a user; wherein the image is a picture seen by the user;
the memory stores a processing program of image information;
the processor configured to execute a processing program of the image information to implement the steps of the method of any one of claims 1 to 4.
6. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a processing program of image information, which when executed by a processor implements the steps of the processing method of image information according to any one of claims 1 to 4.
CN201710764790.4A 2017-08-30 2017-08-30 Image information processing method, equipment and storage medium Active CN107465873B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710764790.4A CN107465873B (en) 2017-08-30 2017-08-30 Image information processing method, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710764790.4A CN107465873B (en) 2017-08-30 2017-08-30 Image information processing method, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107465873A CN107465873A (en) 2017-12-12
CN107465873B true CN107465873B (en) 2020-07-07

Family

ID=60550810

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710764790.4A Active CN107465873B (en) 2017-08-30 2017-08-30 Image information processing method, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107465873B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108304744B (en) * 2018-01-18 2020-08-28 维沃移动通信有限公司 Scanning frame position determining method and mobile terminal
CN108650407B (en) * 2018-04-10 2019-04-26 新昌县智创机械有限公司 Mobile phone plays failure self-inspection platform
CN109600508B (en) * 2018-04-10 2019-08-30 利辛县雨若信息科技有限公司 Mobile phone plays failure from checking method
CN109144641B (en) * 2018-08-14 2021-11-02 四川虹美智能科技有限公司 Method and device for displaying image through refrigerator display screen
CN112911148B (en) * 2021-01-28 2022-10-14 维沃移动通信有限公司 Image processing method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327172A (en) * 2013-04-28 2013-09-25 华为终端有限公司 Method and terminal for regulating terminal screen luminance
CN104793871A (en) * 2015-04-29 2015-07-22 小米科技有限责任公司 Background color matching method and device
CN105635561A (en) * 2015-07-31 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Image acquisition system and method
CN106101759A (en) * 2016-07-21 2016-11-09 孟洁 A kind of photovoltaic solar cell plate cleaning method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI520609B (en) * 2012-10-05 2016-02-01 緯創資通股份有限公司 Display system and communication method
CN104820553A (en) * 2015-04-29 2015-08-05 联想(北京)有限公司 Information processing method and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327172A (en) * 2013-04-28 2013-09-25 华为终端有限公司 Method and terminal for regulating terminal screen luminance
CN104793871A (en) * 2015-04-29 2015-07-22 小米科技有限责任公司 Background color matching method and device
CN105635561A (en) * 2015-07-31 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Image acquisition system and method
CN106101759A (en) * 2016-07-21 2016-11-09 孟洁 A kind of photovoltaic solar cell plate cleaning method

Also Published As

Publication number Publication date
CN107465873A (en) 2017-12-12

Similar Documents

Publication Publication Date Title
CN107465873B (en) Image information processing method, equipment and storage medium
CN108024065B (en) Terminal shooting method, terminal and computer readable storage medium
CN107767333B (en) Method and equipment for beautifying and photographing and computer storage medium
CN107959795B (en) Information acquisition method, information acquisition equipment and computer readable storage medium
CN107948360B (en) Shooting method of flexible screen terminal, terminal and computer readable storage medium
CN110035176B (en) Brightness adjusting method of mobile terminal, mobile terminal and storage medium
CN107730460B (en) Image processing method and mobile terminal
CN108055491B (en) Screen recording method, terminal and storage medium
CN110086993B (en) Image processing method, image processing device, mobile terminal and computer readable storage medium
CN107172349B (en) Mobile terminal shooting method, mobile terminal and computer readable storage medium
CN111885307A (en) Depth-of-field shooting method and device and computer readable storage medium
CN112188082A (en) High dynamic range image shooting method, shooting device, terminal and storage medium
CN107888829B (en) Focusing method of mobile terminal, mobile terminal and storage medium
CN112367443A (en) Photographing method, mobile terminal and computer-readable storage medium
CN110177207B (en) Backlight image shooting method, mobile terminal and computer readable storage medium
CN109710159B (en) Flexible screen response method and device and computer readable storage medium
CN112135060B (en) Focusing processing method, mobile terminal and computer storage medium
CN108197560B (en) Face image recognition method, mobile terminal and computer-readable storage medium
CN107743198B (en) Photographing method, terminal and storage medium
CN107295262B (en) Image processing method, mobile terminal and computer storage medium
CN107395971B (en) Image acquisition method, image acquisition equipment and computer-readable storage medium
CN112135045A (en) Video processing method, mobile terminal and computer storage medium
CN110060617B (en) Screen light spot compensation method and device, terminal and readable storage medium
CN112866685A (en) Screen projection delay measuring method, mobile terminal and computer readable storage medium
CN109561221B (en) Call control method, device and computer readable storage medium

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