CN111126388A - Image recognition method and electronic equipment - Google Patents

Image recognition method and electronic equipment Download PDF

Info

Publication number
CN111126388A
CN111126388A CN201911329370.9A CN201911329370A CN111126388A CN 111126388 A CN111126388 A CN 111126388A CN 201911329370 A CN201911329370 A CN 201911329370A CN 111126388 A CN111126388 A CN 111126388A
Authority
CN
China
Prior art keywords
image
target
input
identification
displaying
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911329370.9A
Other languages
Chinese (zh)
Other versions
CN111126388B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911329370.9A priority Critical patent/CN111126388B/en
Publication of CN111126388A publication Critical patent/CN111126388A/en
Application granted granted Critical
Publication of CN111126388B publication Critical patent/CN111126388B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]

Abstract

The embodiment of the invention discloses an image identification method and electronic equipment. Wherein, the method comprises the following steps: receiving a first input of a target image by a user; responding to the first input, performing image recognition on the target image based on the first characteristic information to obtain at least one element forming the target image, and displaying a first recognition label corresponding to the at least one element forming the target image; and responding to a second input of a target element in the at least one element, performing image recognition on the target element based on the second characteristic information to obtain at least one sub-element forming the target element, and displaying a second recognition tag corresponding to the at least one sub-element forming the target element. By using the image recognition method and the electronic device provided by the embodiment of the invention, the images can be subjected to targeted image recognition, the constituent elements with different granularity sizes in the images can be recognized, and the image recognition accuracy is improved.

Description

Image recognition method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of image recognition, in particular to an image recognition method and electronic equipment.
Background
With the development of internet technology, the role of image information in internet applications is more and more important. The electronic equipment can identify the elements in the image by utilizing an image identification technology, and can find the related information about the elements in the Internet through the identified elements.
However, the current image recognition technology can only extract features of the whole image, but cannot recognize constituent elements with smaller granularity in the image, and the accuracy of the image recognition technology is low.
Disclosure of Invention
The embodiment of the invention provides an image recognition method and electronic equipment, which can perform targeted image recognition on an image, recognize component elements with different granularity sizes in the image and improve the accuracy of image recognition.
In a first aspect, an embodiment of the present invention provides an image recognition method, including:
receiving a first input of a target image by a user;
responding to the first input, performing image recognition on the target image based on the first characteristic information to obtain at least one element forming the target image, and displaying a first recognition label corresponding to the at least one element;
and responding to a second input of a target element in the at least one element, performing image recognition on the target element based on the second characteristic information to obtain at least one sub-element forming the target element, and displaying a second recognition tag corresponding to the at least one sub-element.
In a second aspect, an embodiment of the present invention provides an electronic device, including:
the receiving module is used for receiving a first input of a target image;
the first identification module is used for responding to first input and carrying out image identification on the target image based on the first characteristic information to obtain at least one element forming the target image;
the first display module is used for displaying a first identification label corresponding to at least one element forming the target image;
the second identification module is used for responding to second input of a target element in the at least one element, and carrying out image identification on the target element based on second characteristic information to obtain at least one sub-element forming the target element;
and the second display module is used for displaying a second identification label corresponding to at least one sub-element forming the target element.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program instructions, the steps of the method for image recognition according to the first aspect are implemented.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for image recognition according to the first aspect.
In the embodiment of the invention, under the condition that a user carries out first input on a target image, the first identification label of the first image identification can be displayed, then the user can carry out second image identification with granularity smaller than that of the first image identification on target elements needing to be known and display the second identification label, so that image identification results with different granularity sizes can be obtained, the image identification accuracy is improved, and the user can more conveniently acquire information in the image.
Drawings
The present invention will be better understood from the following description of specific embodiments thereof taken in conjunction with the accompanying drawings, in which like or similar reference characters designate like or similar features.
Fig. 1 is a schematic flowchart of a method for image recognition according to an embodiment of the present invention;
FIG. 2 is a schematic view of a first identification tag of one embodiment of the present invention;
FIG. 3 is a schematic illustration of a second identification tag provided in accordance with an embodiment of the present invention;
FIG. 4 is a diagram illustrating a editable control provided according to an embodiment of the invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a hardware structure of an electronic device 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.
At present, in order to obtain information in a target image, the target image is mostly processed by an image processing technology, and the information in the target image is obtained by sequentially performing image acquisition, image preprocessing, feature extraction and image recognition on the target image.
However, most of the current image recognition technologies recognize a target image based on the main features of the target image. For example, if the target image is a basketball, when the target image is identified by the current image identification technology, only the target image can be identified as a ball, but the element features with smaller granularity in the target image cannot be identified, so that the target image is a basketball. Therefore, the accuracy of the current image recognition technology is low.
In order to solve the above problem, embodiments of the present invention provide an image recognition method and an electronic device, which can perform targeted image recognition on an image, recognize component elements with different granularity in the image, and improve the accuracy of the image recognition.
Fig. 1 is a flowchart illustrating an image recognition method according to an embodiment of the present invention. The method for image recognition is applied to the electronic device, and as shown in fig. 1, the method for image recognition comprises the following steps:
s101, the electronic equipment receives a first input of a target image from a user.
Optionally, in some embodiments of the present invention, the first input may be a pressing input of the target image by the user, and may be a clicking input of the image recognition control corresponding to the target image by the user, which is not limited herein.
S102, the electronic equipment responds to the first input, performs image recognition on the target image based on the first characteristic information to obtain at least one element forming the target image, and displays a first recognition tag corresponding to the at least one element.
Optionally, in some embodiments of the present invention, the first feature information may be a shape feature, a color feature, or the like.
Optionally, in some embodiments of the present invention, the electronic device may perform element recognition on the target image in response to the first input of the user, and recognize the subject image and the background in the target image. Next, the background and the subject image in the target image are segmented by edge segmentation, and the segmented edges of the subject image are thinned to obtain the subject image of the target image with clear outline. Finally, image recognition is carried out on the main image by utilizing the first characteristic information, and a first recognition label corresponding to at least one element forming the target image is displayed.
For example, taking the target image as a picture of a motorcycle of brand a as an example, the electronic device may perform element recognition on the picture of "motorcycle of brand a" in response to a first input from the user, and recognize the subject image and the background respectively. Next, the background and the subject image (motorcycle of brand a) in the target image are divided by edge division. Finally, the shape feature is used as the first feature information to identify the main body image (the motorcycle of brand A), one element forming the target image is the motorcycle, and a first identification label (motorcycle) corresponding to the motorcycle is displayed.
Optionally, in some embodiments of the present invention, after segmenting the background and the main body image in the target image by edge segmentation, the main body image meeting the preset condition may be saved and reserved as an image material.
Optionally, in some embodiments of the present invention, the preset condition may be that the obtained edge of the main body element is beautifully adjusted, or that the main body element has the integrity of the image.
Optionally, in some embodiments of the present invention, in order to meet the personalized requirements of the user, all the obtained main images may be saved, so that the user can selectively use the main images, and the user experience is improved.
Optionally, in some embodiments of the present invention, the first identification tag is a tag that can represent elements constituting the target image, and the first identification tag may be uniformly displayed below the screen of the electronic device or in a peripheral area adjacent to the target image.
For example, as shown in fig. 2, fig. 2 is a schematic diagram of a first identification tag according to an embodiment of the present invention. The electronic device responds to a first input of a user and recognizes an object image 20 (a picture of a basketball) according to first characteristic information (shape characteristics), and after obtaining an element (the ball) forming the object image 20 (the picture of the basketball), the electronic device displays a first recognition tag 21 (the ball) below a screen of the electronic device.
In the embodiment of the invention, the identification result labels of the elements corresponding to the target image are displayed, so that a user can firstly know which image information the elements in the target image correspond to, and the user can conveniently perform image identification with smaller granularity on the interested elements subsequently, thereby obtaining more accurate image information.
Optionally, in some embodiments of the present invention, the electronic device may further use the obtained first identification tag as a search index, search for an information link associated with the first identification tag, and display the information link in a peripheral area of the target image. The information link may be a purchase link of a commodity, a link of encyclopedia knowledge, or the like.
The information link associated with the first identification tag may be sequentially displayed in the peripheral area of the target image according to the size relationship of the matching degree with the first identification tag.
Optionally, in some embodiments of the present invention, the information link associated with the first identification tag may also be an information link corresponding to the first identification tag associated with the application with a high frequency of use, which is preferentially displayed in front of the information link according to the magnitude relationship of the frequency of use of the application by the user.
In the embodiment of the invention, the electronic equipment can obtain more accurate information link matched with the first identification tag through the first identification tag, and display the information link associated with the second identification result, so that a user can directly inquire the target element through the information link, and the use experience of the user is improved.
S103, the electronic equipment responds to second input of a target element in the at least one element, performs image recognition on the target element based on second feature information to obtain at least one sub-element forming the target element, and displays a second recognition tag corresponding to the at least one sub-element.
Optionally, in some embodiments of the present invention, the second input may be a press input or a click input after the user enlarges the target element, or may be a press input or a click input directly to the target element. In addition, the electronic device may receive a user's upglide input on the target image to enable the electronic device to be in an image recognition state, and then the electronic device performs image recognition on the target element based on the second feature information in response to a second input of the user on the target element.
Optionally, in some embodiments of the present invention, the second feature information may be specific to more specific feature information of the first feature information, so as to facilitate more precise image recognition of the target element. For example, if the first feature information is shape information, the second feature information may be a texture feature.
For example, the target image is a picture of a child watching a basketball, the electronic device performs image recognition on the target image (a picture of a player playing the basketball) by using the first characteristic information (shape characteristic) to obtain two elements (a ball and a character object) forming the target image (a picture of a child watching a basketball), the user can use the ball as the target element if the user wants to further know the image information about the ball, the electronic device can perform image recognition on the target element (ball) by using the second characteristic information (texture characteristic) after responding to the second input of the target element (ball) by the user to obtain a sub-element (basketball) forming the target element (ball), and display a second identification tag (basketball) corresponding to the sub-element (basketball), or the electronic device can use information such as a trademark pattern in the texture characteristic of the target element (ball), a second identification label (brand a) corresponding to another sub-element (brand pattern) constituting the target element (ball) is displayed.
In the embodiment of the invention, the electronic device performs image recognition on the target element by using the second feature information, so that features with smaller granularity in the target element can be recognized, the second recognition tag corresponding to at least one sub-element forming the target element is obtained, and the accuracy of image recognition is improved.
Optionally, in some embodiments of the present invention, as shown in fig. 3, fig. 3 is a schematic diagram of a second identification tag provided in an embodiment of the present invention.
Taking the example that the target image 31 is a photo of a child watching a basketball, the electronic device performs image recognition on the target image 31 based on the first feature information to display the first recognition tag 34 (ball) corresponding to one element constituting the target image 31, and then performs image recognition on the target element 32 using the second feature information to obtain one sub-element (basketball) constituting the target element 32 and display the second recognition tag 33 (basketball) corresponding to the sub-element (basketball), or displays the second recognition tag 33 (brand a) corresponding to another sub-element (brand pattern) constituting the target element 32 by using information such as the brand pattern in the texture feature of the target element 32.
In the embodiment of the invention, the electronic device generates the corresponding second identification tag through the obtained at least one sub-element forming the target element, so that a user can clearly know the image information of the current target element, and the use experience of the user is improved.
Optionally, if the user wants to operate the second identification tag, in order to improve the operability of the user on the first identification result, in some embodiments of the present invention, after the second identification tag is displayed, the electronic device may further receive a third input of the second identification tag by the user, where the third input may be a pressing input.
Secondly, in response to a third input, the electronic device displays editable controls in the first preset areas of the second identification tags respectively, wherein the editable controls can be displayed in a form of "+" in the first preset area of each first identification tag. The first predetermined area may be a peripheral area of the first identification tag, and is not limited herein.
Next, the electronic device may receive a fourth input of the user to the editable control of the at least two second identification tags, perform information integration on the at least two first identification tags in response to the fourth input, and display the integrated second identification tags in the first preset area of the target element.
For example, as shown in FIG. 4, FIG. 4 is a schematic diagram of an editable control according to an embodiment of the invention. The electronic device may display an editable control ("+") in the first preset area of the second identification label 41 in response to a third input from the user.
Next, continuing with fig. 4, the electronic device may receive a fourth input from the user to the editable controls of the two second identification tags 41 "basketball" and "brand a", and in response to the fourth input, integrate the information of the "ball" and "brand a" second identification tags, and display an integrated third identification tag 42 "brand a basketball" in the first preset area of the target element.
In the embodiment of the invention, the electronic equipment integrates the information of the second identification label according to the requirement of the user by responding to the fourth input of the editable control of the second identification label by the user, so that the second identification label which better meets the requirement of the user is obtained, and the use experience of the user is improved.
Optionally, in some embodiments of the present invention, after displaying the second identification tag corresponding to the target element, the electronic device may display an information link matching the target tag in response to a fifth input by the user to the target tag without information integration. The electronic device may further be configured to display an information link matching the information-integrated third identification tag in response to a fifth input by the user to the information-integrated third identification tag. The information link may be a purchase link of a commodity, a link of encyclopedia knowledge, or the like.
Optionally, in some embodiments of the present invention, the information link associated with the target tag or with the third identification tag may be displayed in a second preset area of the target image according to a high-low relationship with the matching degree of the sub-element. The second preset area may be a lower area of the target image, and is not limited herein.
Optionally, in some embodiments of the present invention, the information link associated with the target tag or the third identification tag may also be an information link corresponding to the target tag or the third identification tag associated with the application with a high frequency of use, which is preferentially displayed in front of the second preset area according to the magnitude relationship of the frequency of use of the application by the user.
In the embodiment of the invention, the electronic device can obtain more accurate information link matched with the second identification tag through the second identification tag, and display the information link associated with the second identification tag, so that a user can directly inquire the target element through the information link, and the use experience of the user is improved.
Based on the specific implementation of the image recognition method provided by the embodiment, correspondingly, the invention also provides a specific implementation of the electronic device. Please refer to fig. 5.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 5, the electronic apparatus includes:
a receiving module 510, configured to receive a first input of a target image by a user;
a first recognition module 520, configured to perform image recognition on the target image based on the first feature information in response to the first input, so as to obtain at least one element constituting the target image;
a first display module 530, configured to display a first identification tag corresponding to at least one element;
a second recognition module 540, configured to, in response to a second input to a target element of the at least one element, perform image recognition on the target element based on the second feature information, to obtain at least one sub-element constituting the target element;
and a second display module 550, configured to display a second identification tag corresponding to at least one sub-element.
In the embodiment of the invention, under the condition that a user inputs a target image for the first time, the user can perform the first image recognition on the target image and display a first recognition label of the first image recognition, and then the user can perform the second image recognition with smaller granularity than that of the first image recognition on target elements needing to be known and display a second recognition label, so that image recognition results with different granularity sizes can be obtained, and the accuracy of the image recognition is improved.
Optionally, in some embodiments of the present invention, the first identifying module 520 includes:
the segmentation submodule is used for responding to the first input and performing edge segmentation on the background of the target image to obtain a main image of the target image;
and the recognition submodule is used for carrying out image recognition on the main body image based on the first characteristic information.
Optionally, in some embodiments of the present invention, the electronic device further includes:
and the storage module is used for storing the main body image meeting the preset condition after the main body image in the target image is obtained, so as to serve as an image material.
Optionally, in some embodiments of the present invention, the electronic device further includes:
the first receiving submodule is used for receiving third input of a user to the second identification tag after the second identification tag corresponding to the at least one sub-element is displayed;
the first display sub-module is used for responding to a third input and respectively displaying an editable control in a first preset area of each second identification label;
a second receiving submodule for receiving a fourth input to the editable controls of the at least two second identification tags;
and the second display submodule is used for responding to the fourth input, integrating information of at least two second identification tags to obtain a third identification tag, and displaying the integrated third identification tag in the first preset area of the target element.
Optionally, in some embodiments of the present invention, the electronic device further includes:
a third receiving sub-module, configured to receive a fifth input to a target tag of the second identification tags or to a third identification tag after displaying a second identification tag corresponding to at least one sub-element constituting the target element;
and the third display sub-module is used for responding to a fifth input, displaying the information link matched with the target label in a second preset area of the target image, or displaying the information link matched with the third identification label in the second preset area of the target image.
Optionally, in some embodiments of the present invention, the information links displayed in the second preset area are displayed in the second preset area according to the order of the matching degree with the sub-elements.
Each module of the electronic device provided in the embodiment of the present invention has a function of implementing the method/step of image recognition in the embodiment shown in fig. 1 to 4, and can achieve the technical effect corresponding to the embodiment shown in fig. 1 to 4, and is not described herein again for brevity.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device, and that the electronic device 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 electronic device 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 610 is configured to receive a first input of a target image from a user; responding to the first input, performing image recognition on the target image based on the first characteristic information to obtain at least one element forming the target image, and displaying a first recognition label corresponding to the at least one element; and responding to a second input of a target element in the at least one element, performing image recognition on the target element based on the second characteristic information to obtain at least one sub-element forming the target element, and displaying a second recognition tag corresponding to the at least one sub-element.
In the embodiment of the invention, under the condition that a user inputs a target image for the first time, the first image recognition can be carried out on the target image, the first recognition label of the first image recognition is displayed, and then the user can carry out second image recognition with granularity smaller than that of the first image recognition on target elements needing to be known and display the second recognition label, so that image recognition results with different granularity sizes can be obtained, the image recognition accuracy is improved, and the user can more conveniently acquire information in the image.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 610; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 601 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. Further, the radio frequency unit 601 may also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 602, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 may also provide audio output related to a specific function performed by the electronic apparatus 600 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
The input unit 604 is used to receive audio or video signals. The input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics processor 6041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 606. The image frames processed by the graphic processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound, and can process such sound 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 601 in case of the phone call mode.
The electronic device 600 also includes at least one sensor 605, 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 6061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 6061 and/or the backlight when the electronic apparatus 600 is moved to the ear. As one type of motion sensor, an 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 an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 605 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 606 is used to display information input by the user or information provided to the user. The Display unit 606 may include a Display panel 6061, and the Display panel 6061 may be configured by a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 607 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 6071 using a finger, stylus, or any suitable object or accessory). The touch panel 6071 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 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 6071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 607 may include other input devices 6072 in addition to the touch panel 6071. Specifically, the other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 6071 can be overlaid on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near the touch panel 6071, the touch operation is transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 provides a corresponding visual output on the display panel 6061 according to the type of the touch event. Although the touch panel 6071 and the display panel 6061 are shown in fig. 6 as two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated to implement the input and output functions of the electronic device, and this is not limited here.
The interface unit 608 is an interface for connecting an external device to the electronic apparatus 600. 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 608 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 electronic device 600 or may be used to transmit data between the electronic device 600 and external devices.
The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a program storage area and a data storage area, wherein the program storage 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 609 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 610 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 609, and calling data stored in the memory 609, thereby performing overall monitoring of the electronic device. Processor 610 may include one or more processing units; preferably, the processor 610 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 610.
The electronic device 600 may further include a power supply 611 (e.g., a battery) for supplying power to the various components, and preferably, the power supply 611 may be logically connected to the processor 610 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
In addition, the electronic device 600 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 610, a memory 609, and a computer program stored in the memory 609 and capable of running on the processor 610, where the computer program is executed by the processor 610 to implement each process of the above-mentioned method for image recognition, 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 recognition 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 (12)

1. A method of image recognition, comprising:
receiving a first input of a target image by a user;
responding to the first input, performing image recognition on the target image based on first characteristic information to obtain at least one element forming the target image, and displaying a first recognition tag corresponding to the at least one element;
and responding to a second input of a target element in the at least one element, performing image recognition on the target element based on second characteristic information to obtain at least one sub-element forming the target element, and displaying a second recognition tag corresponding to the at least one sub-element.
2. The method of claim 1, wherein the performing, in response to the first input, image recognition on the target image based on first feature information to obtain at least one element composing the target image, and displaying a first recognition tag corresponding to the at least one element comprises:
responding to the first input, and performing edge segmentation on the background of the target image to obtain a main image of the target image;
and performing image recognition on the main body image based on the first characteristic information to obtain at least one element forming the target image, and displaying a first recognition label corresponding to the at least one element.
3. The method of claim 2, wherein after obtaining the subject image in the target image, further comprising:
and saving the main body image meeting the preset condition as an image material.
4. The method according to claim 1, wherein after displaying the second identification tag corresponding to the at least one sub-element, the method further comprises:
receiving a third input of the second identification tag from the user;
in response to the third input, respectively displaying an editable control in a first preset area of each second identification label;
receiving a fourth input to the editable controls of the at least two second identification tags;
and responding to the fourth input, performing information integration on the at least two second identification tags to obtain a third identification tag, and displaying the third identification tag in a first preset area of the target element.
5. The method according to claim 4, wherein after displaying the second identification tag corresponding to the at least one sub-element, the method further comprises:
receiving a fifth input of the user to a target tag in the second identification tags or to the third identification tag;
and responding to the fifth input, displaying an information link matched with the target label in a second preset area of the target image, or displaying an information link matched with the third identification label in a second preset area of the target image.
6. The method according to claim 5, wherein the information links displayed in the second preset area are displayed in the second preset area according to the high and low order of the matching degree with the sub-elements.
7. An electronic device, comprising:
the receiving module is used for receiving a first input of a target image;
the first identification module is used for responding to the first input and carrying out image identification on the target image based on first characteristic information to obtain at least one element forming the target image;
the first display module is used for displaying a first identification label corresponding to the at least one element;
a second identification module, configured to perform image identification on a target element in the at least one element based on second feature information in response to a second input to the target element, so as to obtain at least one sub-element constituting the target element;
and the second display module is used for displaying a second identification label corresponding to the at least one sub-element.
8. The electronic device of claim 7, wherein the first identification module comprises:
the segmentation submodule is used for responding to the first input and performing edge segmentation on the background of the target image to obtain a main image of the target image;
and the recognition submodule is used for carrying out image recognition on the main body image based on the first characteristic information to obtain at least one element forming the target image.
9. The electronic device of claim 8, further comprising:
and the storage module is used for storing the main body image meeting the preset condition after the main body image in the target image is obtained, so as to serve as an image material.
10. The electronic device of claim 7, further comprising:
the first receiving submodule is used for receiving third input of a user to the second identification label after the second identification label corresponding to the at least one sub-element is displayed;
the first display sub-module is used for responding to the third input and respectively displaying an editable control in a first preset area of each second identification label;
a second receiving submodule for receiving a fourth input to the editable controls of the at least two second identification tags;
and the second display submodule is used for responding to the fourth input, performing information integration on the at least two second identification tags to obtain a third identification tag, and displaying the third identification tag in a first preset area of the target element.
11. The electronic device of claim 10, further comprising:
a third receiving sub-module, configured to receive, after displaying a second identification tag corresponding to the at least one sub-element, a fifth input of a user to a target tag in the second identification tag or to the third identification tag;
and the third display sub-module is used for responding to the fifth input, and displaying the information link matched with the target label in a second preset area of the target image, or displaying the information link matched with the third identification label in the second preset area of the target image.
12. The electronic device according to claim 11, wherein the information links displayed in the second preset area are displayed in the second preset area according to the high-low order of the matching degree with the sub-elements.
CN201911329370.9A 2019-12-20 2019-12-20 Image recognition method and electronic equipment Active CN111126388B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911329370.9A CN111126388B (en) 2019-12-20 2019-12-20 Image recognition method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911329370.9A CN111126388B (en) 2019-12-20 2019-12-20 Image recognition method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111126388A true CN111126388A (en) 2020-05-08
CN111126388B CN111126388B (en) 2024-03-29

Family

ID=70501099

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911329370.9A Active CN111126388B (en) 2019-12-20 2019-12-20 Image recognition method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111126388B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112287822A (en) * 2020-10-28 2021-01-29 维沃移动通信有限公司 Information display method and device and electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105320428A (en) * 2014-07-31 2016-02-10 三星电子株式会社 Image provided method and device
CN106548145A (en) * 2016-10-31 2017-03-29 北京小米移动软件有限公司 Image-recognizing method and device
CN107818180A (en) * 2017-11-27 2018-03-20 北京小米移动软件有限公司 Video correlating method, image display method, device and storage medium
CN107832397A (en) * 2017-10-30 2018-03-23 努比亚技术有限公司 A kind of image processing method, device and computer-readable recording medium
CN107862239A (en) * 2017-09-15 2018-03-30 广州唯品会研究院有限公司 A kind of combination text carries out the method and its device of picture recognition with picture
CN108229379A (en) * 2017-12-29 2018-06-29 广东欧珀移动通信有限公司 Image-recognizing method, device, computer equipment and storage medium
CN108984143A (en) * 2018-07-13 2018-12-11 维沃移动通信有限公司 A kind of display control method and terminal device
KR20180135616A (en) * 2017-06-13 2018-12-21 한화에어로스페이스 주식회사 Structure of deep network and deep learning based visual image recognition system
CN110222582A (en) * 2019-05-13 2019-09-10 青岛小鸟看看科技有限公司 A kind of image processing method and camera
CN110582025A (en) * 2018-06-08 2019-12-17 北京百度网讯科技有限公司 Method and apparatus for processing video

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105320428A (en) * 2014-07-31 2016-02-10 三星电子株式会社 Image provided method and device
CN106548145A (en) * 2016-10-31 2017-03-29 北京小米移动软件有限公司 Image-recognizing method and device
KR20180135616A (en) * 2017-06-13 2018-12-21 한화에어로스페이스 주식회사 Structure of deep network and deep learning based visual image recognition system
CN107862239A (en) * 2017-09-15 2018-03-30 广州唯品会研究院有限公司 A kind of combination text carries out the method and its device of picture recognition with picture
CN107832397A (en) * 2017-10-30 2018-03-23 努比亚技术有限公司 A kind of image processing method, device and computer-readable recording medium
CN107818180A (en) * 2017-11-27 2018-03-20 北京小米移动软件有限公司 Video correlating method, image display method, device and storage medium
CN108229379A (en) * 2017-12-29 2018-06-29 广东欧珀移动通信有限公司 Image-recognizing method, device, computer equipment and storage medium
CN110582025A (en) * 2018-06-08 2019-12-17 北京百度网讯科技有限公司 Method and apparatus for processing video
CN108984143A (en) * 2018-07-13 2018-12-11 维沃移动通信有限公司 A kind of display control method and terminal device
CN110222582A (en) * 2019-05-13 2019-09-10 青岛小鸟看看科技有限公司 A kind of image processing method and camera

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112287822A (en) * 2020-10-28 2021-01-29 维沃移动通信有限公司 Information display method and device and electronic equipment

Also Published As

Publication number Publication date
CN111126388B (en) 2024-03-29

Similar Documents

Publication Publication Date Title
CN108495029B (en) Photographing method and mobile terminal
CN109240577B (en) Screen capturing method and terminal
CN107943390B (en) Character copying method and mobile terminal
CN108415652B (en) Text processing method and mobile terminal
CN107977652B (en) Method for extracting screen display content and mobile terminal
CN108763317B (en) Method for assisting in selecting picture and terminal equipment
CN110536006B (en) Object position adjusting method and electronic equipment
CN107748640B (en) Screen-off display method and mobile terminal
CN109343788B (en) Operation control method of mobile terminal and mobile terminal
CN110866038A (en) Information recommendation method and terminal equipment
CN108898555B (en) Image processing method and terminal equipment
CN111026316A (en) Image display method and electronic equipment
CN111338530A (en) Control method of application program icon and electronic equipment
CN109523253B (en) Payment method and device
CN108600544B (en) Single-hand control method and terminal
CN110908750B (en) Screen capturing method and electronic equipment
CN111125800B (en) Icon display method and electronic equipment
CN110096203B (en) Screenshot method and mobile terminal
CN109669710B (en) Note processing method and terminal
CN110795002A (en) Screenshot method and terminal equipment
CN108062370B (en) Application program searching method and mobile terminal
CN109819331B (en) Video call method, device and mobile terminal
CN109714462B (en) Method for marking telephone number and mobile terminal thereof
CN109491572B (en) Screen capturing method of mobile terminal and mobile terminal
CN111126388B (en) Image recognition 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