WO2022057419A1 - Method and apparatus for acquiring information related to subject, and storage medium and electronic device - Google Patents

Method and apparatus for acquiring information related to subject, and storage medium and electronic device Download PDF

Info

Publication number
WO2022057419A1
WO2022057419A1 PCT/CN2021/106300 CN2021106300W WO2022057419A1 WO 2022057419 A1 WO2022057419 A1 WO 2022057419A1 CN 2021106300 W CN2021106300 W CN 2021106300W WO 2022057419 A1 WO2022057419 A1 WO 2022057419A1
Authority
WO
WIPO (PCT)
Prior art keywords
theme
image
target
icon
name
Prior art date
Application number
PCT/CN2021/106300
Other languages
French (fr)
Chinese (zh)
Inventor
金越
李亚乾
郭彦东
杨林
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022057419A1 publication Critical patent/WO2022057419A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/044Recurrent networks, e.g. Hopfield networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/24Aligning, centring, orientation detection or correction of the image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/82Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks

Definitions

  • the present disclosure relates to the technical field of terminals, and in particular, to a subject-related information acquisition method, a subject-related information acquisition apparatus, a computer-readable storage medium, and an electronic device.
  • the theme of the terminal device can provide users with different interface display effects, which is an important aspect of user presentation personalization.
  • a user wants to know the subject of the terminal device held by others, he often needs to ask others for the name of the subject, and then use his own terminal device to query the subject, so as to obtain relevant information of the subject.
  • a method for obtaining theme-related information including: obtaining an image of a target application icon; detecting whether a target theme exists in a theme library based on the image of the target application icon, and the application The style of the icon is consistent with the style of the icon of the target application; when it is detected that the target theme exists in the theme library, the relevant information of the target theme is obtained.
  • a subject-related information acquisition device comprising: an image acquisition module configured to acquire an image of a target application icon; a subject detection module configured to be based on the image of the target application icon, Detecting whether the target theme exists in the theme library, and the style of the application icon of the target theme is consistent with the style of the target application icon; the first theme information obtaining module is configured to obtain the target theme when it is detected that the theme library exists. Information about the target topic.
  • a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the above-mentioned method for obtaining subject-related information.
  • an electronic device comprising a processor; a memory configured to store one or more programs, which, when executed by the processor, cause the processor to implement the above-mentioned How to get information about the subject.
  • FIG. 1 shows a schematic diagram of a device involved in a subject-related information acquisition solution according to an embodiment of the present disclosure
  • FIG. 2 shows a schematic structural diagram of an electronic device suitable for implementing an embodiment of the present disclosure
  • FIG. 3 schematically shows a flowchart of a method for acquiring subject-related information according to an exemplary embodiment of the present disclosure
  • Figure 4 shows a schematic diagram of scanning an image of an application icon in response to a user's operation
  • Fig. 5 shows the schematic diagram of the relative positional relationship between the application image and the corresponding text
  • Fig. 6 shows the schematic diagram of acquiring and displaying the download information of the target theme
  • FIG. 7 schematically shows a flowchart of the entire subject-related information acquisition process according to an embodiment of the present disclosure
  • FIG. 8 schematically shows a block diagram of an apparatus for obtaining subject-related information according to an exemplary embodiment of the present disclosure
  • FIG. 9 schematically shows a block diagram of an apparatus for obtaining subject-related information according to another exemplary embodiment of the present disclosure.
  • Fig. 10 schematically shows a block diagram of a subject-related information acquisition apparatus according to still another exemplary embodiment of the present disclosure.
  • Example embodiments will now be described more fully with reference to the accompanying drawings.
  • Example embodiments can be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
  • the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
  • numerous specific details are provided in order to give a thorough understanding of the embodiments of the present disclosure.
  • those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed.
  • well-known solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
  • FIG. 1 shows a schematic diagram of a device involved in a subject-related information acquisition solution according to an embodiment of the present disclosure.
  • the terminal device 1001 may be a device to acquire topic-related information, that is, the terminal device 1001 executes the topic-related information acquisition scheme described in the present disclosure.
  • the terminal device 1001 may include, but is not limited to, a mobile phone, a tablet computer, a smart wearable device such as a smart watch, and the like.
  • the terminal device 1001 can be made to acquire the image of the second application icon through the terminal device 1002 or the server 1003 .
  • the terminal device 1002 may be a mobile phone, a tablet computer, a personal computer, a smart wearable device such as a smart watch, or the like.
  • the numbers of terminal devices and servers in FIG. 1 are only illustrative. According to actual needs, there may be any number of terminal devices and servers.
  • the server 1003 may be a server cluster composed of multiple servers.
  • the terminal device 1001 may scan the display interface of the terminal device 1002, and the display interface of the terminal device 1002 displays the icon of the target application. Thus, the terminal device 1001 can acquire the image of the target application icon. Next, the terminal device 1001 searches the theme library based on the image of the target application icon to detect whether the target theme exists in the theme library, wherein the style of the application icon of the target theme is consistent with the style of the target application icon. When it is detected that there is a target topic, relevant information of the target topic is acquired.
  • the terminal device 1001 may take pictures or videos of the display interface of the terminal device 1002, and the display interface of the terminal device 1002 displays the icon of the target application.
  • the terminal device 1001 can acquire the image of the target application icon.
  • the terminal device 1001 searches the theme library based on the image of the target application icon to detect whether the target theme exists in the theme library, wherein the style of the application icon of the target theme is consistent with the style of the target application icon. When it is detected that there is a target topic, relevant information of the target topic is acquired.
  • the terminal device 1002 may perform a screen capture or screen recording operation, and send the generated image or video to the terminal device 1001, so that the terminal device 1001 may obtain the image of the target application icon.
  • the terminal device 1001 searches the theme library based on the image of the target application icon to detect whether the target theme exists in the theme library, wherein the style of the application icon of the target theme is consistent with the style of the target application icon. When it is detected that there is a target topic, relevant information of the target topic is acquired.
  • the terminal device 1001 may acquire the image of the target application icon from the server 1003 .
  • the terminal device 1001 may acquire the image of the target application icon from the web page.
  • the terminal device 1001 searches the theme library based on the image of the target application icon to detect whether the target theme exists in the theme library, wherein the style of the application icon of the target theme is consistent with the style of the target application icon.
  • relevant information of the target topic is acquired.
  • the relevant information of the target theme described in the present disclosure may be one or more of the information related to the download of the target theme, the introduction information of the target theme, and the installation program of the target theme. This is so that the user can view the topic-related information, or the terminal device 1001 automatically performs a topic switching operation, so as to switch the topic of the terminal device 1001 to the target topic.
  • the subject-related information acquisition method of the exemplary embodiment of the present disclosure is generally executed by the terminal device 1001 , and accordingly, the subject-related information acquisition apparatus described below is generally configured in the terminal device 1001 .
  • FIG. 2 shows a schematic diagram of an electronic device suitable for use in implementing exemplary embodiments of the present disclosure.
  • the terminal device described in the present disclosure (the first device described below) can be configured as shown in FIG. 2 .
  • the electronic device shown in FIG. 2 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
  • the electronic device of the present disclosure includes at least a processor and a memory, and the memory is configured to store one or more programs, which, when executed by the processor, enable the processor to realize the subject-related information of the exemplary embodiments of the present disclosure get method.
  • the electronic device 200 may include: a processor 210, an internal memory 221, an external memory interface 222, a Universal Serial Bus (USB) interface 230, a charging management module 240, and a power management module 241, battery 242, antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, audio module 270, speaker 271, receiver 272, microphone 273, headphone jack 274, sensor module 280, display screen 290, camera module 291 , an indicator 292, a motor 293, a key 294, a Subscriber Identification Module (SIM) card interface 295, and the like.
  • SIM Subscriber Identification Module
  • the sensor module 280 may include a depth sensor, a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
  • the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 200 .
  • the electronic device 200 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 210 may include one or more processing units, for example, the processor 210 may include an application processor (Application Processor, AP), a modem processor, a graphics processor (Graphics Processing Unit, GPU), an image signal processor (Image Signal Processor, ISP), controller, video codec, digital signal processor (Digital Signal Processor, DSP), baseband processor and/or neural network processor (Neural-network Processing Unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • a memory may also be provided in the processor 210 for storing instructions and data.
  • the electronic device 200 implements a display function through a GPU, a display screen 290, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 290 and the application processor.
  • the GPU is used for performing mathematical and geometric calculations and for graphics rendering. In the scenario where the present disclosure is used for implementing theme switching, the GPU can be used to realize the rendering of the theme icon style.
  • Processor 210 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the electronic device 200 can realize the shooting function through the ISP, the camera module 291, the video codec, the GPU, the display screen 290, the application processor, and the like.
  • the electronic device 200 may include one or N camera modules 291 , where N is a positive integer greater than 1. If the electronic device 200 includes N cameras, one of the N cameras is the main camera.
  • the display interface of another electronic device can be scanned or photographed by the camera module 291 to obtain an image of the icon of the target application, and then the process of obtaining the relevant information of the target theme can be realized based on the image.
  • Internal memory 221 may be used to store computer executable program code, which includes instructions.
  • the internal memory 221 may include a storage program area and a storage data area.
  • the external memory interface 222 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 200.
  • the present application also provides a computer-readable storage medium.
  • the computer-readable storage medium may be included in the electronic device described in the above-mentioned embodiments, or it may exist alone without being assembled into the electronic device.
  • the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • the computer-readable storage medium can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
  • Program code embodied on a computer-readable storage medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
  • the computer-readable storage medium carries one or more programs, which, when executed by an electronic device, cause the electronic device to implement the methods described in the following embodiments.
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions.
  • the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
  • the units involved in the embodiments of the present disclosure may be implemented in software or hardware, and the described units may also be provided in a processor. Among them, the names of these units do not constitute a limitation on the unit itself under certain circumstances.
  • the details of the solution will be described below by taking the first device implementing the subject-related information acquisition solution of the exemplary embodiment of the present disclosure as an example.
  • the first device corresponds to the above-mentioned terminal device 1001, and can be configured in the form of the device shown in FIG. 2 .
  • FIG. 3 schematically shows a flowchart of a method for acquiring subject-related information according to an exemplary embodiment of the present disclosure.
  • the method for obtaining the subject-related information may include the following steps:
  • the first device may perform a scanning operation on the interface of the second device to acquire the image of the icon of the target application.
  • the image of the target application icon is displayed on the interface of the second device.
  • the application program described in the present disclosure is the so-called APP.
  • FIG. 4 shows a schematic diagram of scanning an image of an application program icon in response to a user's operation.
  • the user can click the theme APP icon on the first device 41 to enter the theme APP.
  • the scan operation can be implemented through the configured scan control, that is, the user can click the "scan" icon.
  • the first device 41 can obtain the image of the icon of the target application program.
  • the user can also perform a scanning operation in, for example, a camera APP, etc., to scan the second device, and further obtain the image of the icon of the target application by scanning.
  • a scanning operation in, for example, a camera APP, etc., to scan the second device, and further obtain the image of the icon of the target application by scanning.
  • the present disclosure may also include a solution in which the first device identifies the second device.
  • the process of recognizing the second device can also be called the process of detecting the second device.
  • the detection method can include using a deep learning algorithm such as CNN (Convolutional Neural Network, convolutional neural network) to train a target detection model, according to the target.
  • the detection model performs object detection on the scanned image.
  • the target detection model generally includes an input layer, a hidden layer and an output layer.
  • the input layer is used to receive the scanned image
  • the hidden layer is used to process the received image
  • the output layer is used to output the result of the image processing.
  • the position and size information of the second device in the screen is determined.
  • the target detection algorithm may include SSD, Faster-RCNN, etc.
  • the purpose of target detection is to determine whether it is a terminal device.
  • the scanned image of the target application icon may be small, it cannot be further identified.
  • the first device determines the size of the scanning area that the image of the interface of the second device occupies, if the image of the interface of the second device occupies the entire size of the scanning area When the size of the scanning area exceeds the size threshold, the operation of acquiring the image of the icon of the target application is performed. If the size threshold is not exceeded, the user may be prompted on the scanning interface to adjust the position of the first device.
  • the size threshold may be, for example, 2/3 of the scanning area of the first device. However, the present disclosure does not limit the specific value of the size threshold.
  • the first device determines the size of the image of the target application icon on the interface of the second device, if the size of the image of the target application icon is If the size exceeds the icon size threshold, the operation of obtaining the image of the target application icon is performed. If the icon size threshold is not exceeded, the user may be prompted to adjust the position of the first device on the scanning interface. Similarly, the present disclosure does not limit the specific value of the icon size threshold.
  • the obtained image of the target application program icon may be blurred due to the shaking of the first device.
  • the first device can detect whether the first device is in a state of stable position, and the stable position can be understood as that the position and posture of the mobile phone have not changed in several consecutive frames. For example, it can be determined by means of a color histogram whether the first device is in a positionally stable state.
  • a color histogram corresponding to each frame of image can be generated by using multiple frames of images obtained based on the scanning operation; then, according to the color histogram corresponding to each frame of image, it is determined whether the first device is in a stable position , for example, determine whether the proportion of each color in the color histogram has changed within several consecutive frames (for example, 5 frames, 10 frames, etc.), if there is no change or the degree of change is less than a threshold, it is considered that the first device is in a stable position status. If the first device is not in a positionally stable state, the user may be prompted on the scanning interface.
  • the size of the scanning area occupied by the image of the interface of the second device may be determined, and if the size of the scanning area occupied by the image of the interface of the second device exceeds the size threshold, detection is performed. Whether the first device is in a stable position, if it is detected that the first device is in a stable position, the first device may perform an operation of acquiring the image of the target application icon.
  • the first device may acquire a video including an image of an icon of a target application.
  • the video may come from the first device recording the display interface of the second device. It may also be a video generated after the second device itself performs a screen recording operation, and the second device sends the video to the first device.
  • the video may be a video obtained by the first device from the server, which is not limited in the present disclosure.
  • the video frame may be identified and processed to obtain the image of the icon of the target application.
  • the first device may also obtain a picture containing the icon of the target application.
  • the picture may be generated by the second device taking a screenshot, in this case, the second device may send the picture to the first device.
  • the first device may obtain the picture from the server, and after obtaining the picture, may perform identification processing on the picture to obtain the image of the target application icon.
  • the number of images of the target application icon acquired in step S32 may be one or more. In the case of acquiring images of multiple target application icons, it is easy to understand that the styles of these target application icons are consistent. In addition, the style of the application icon may also be referred to as the style of the application icon.
  • the topic library refers to a collection of topics that can be queried by the first device.
  • the themes in the theme library may generally include themes that come with the first device system and themes in the installed theme APP.
  • the theme library can also be a collection of all themes including Internet resources. It can be understood that the process of detecting whether the target theme exists in the theme database is the process of searching for the target theme from the theme database.
  • the first device may compare the similarity between the image of the target application icon and the image of the application icon of each theme in the theme library, and determine whether there is a theme library according to the result of the similarity comparison target topic.
  • the image of the target application icon is marked as image A
  • the image of the application icon of a theme in the theme library is marked as image B.
  • image A The image of the target application icon
  • image B The image of the application icon of a theme in the theme library.
  • the image features of image A can be extracted.
  • the image features may include one or more of global features, local features, color features, shape features, and texture features of the image.
  • global features are helpful for retrieval at the semantic level; local features can be used for local key point matching, which helps to find local identical points; color features can make images have richer representations; shape features and texture features can Helps to identify approximate differences between images.
  • the way of extracting image features includes, but is not limited to, using a neural network.
  • the shape feature can be the output of a convolutional layer in a convolutional neural network.
  • the present disclosure does not limit the network structure and training method of the neural network.
  • image features of image B can be acquired.
  • the features of image B can be extracted in the same way as image A is extracted.
  • the image features of the image B have been stored in the storage unit corresponding to the theme library, and can be directly called when needed.
  • the image feature of image A can be converted into a vector
  • the image feature of image B can be converted into a vector
  • the similarity of the two vectors can be calculated by calculating The degree of similarity between image A and image B is determined, and the similarity between two vectors can be calculated by cosine similarity, Euclidean distance, Manhattan distance, Mahalanobis distance, etc.
  • the above process of calculating the similarity with the image of the target application icon may be performed. Then, the maximum value of the similarity is determined, and if the maximum value is greater than the first similarity threshold, the subject of the icon image corresponding to the maximum similarity is determined as the target subject. For example, among the multiple calculated similarities, the similarity between image W and image A is the largest, and then it is determined whether the similarity between image W and image A is greater than the first similarity threshold, and if it is greater, the subject corresponding to image W is determined. for the target subject.
  • whether the target theme exists in the theme library can also be detected in combination with the name of the application.
  • the first device may acquire the text image corresponding to the icon of the target application program.
  • the text area corresponding to the application is usually located below the icon of the application, and the upper border of the text area can be the lower border of the icon, and the lower border of the text area Usually in the middle of the icon's lower border and the lower icon's upper border.
  • the left (right) border of the text area is usually located where the current chart extends a certain distance to the left (right).
  • the image can be cropped to obtain the text image corresponding to the icon of the target application.
  • the first device may use the text image corresponding to the target application program icon and the image of the target application program icon to detect whether the target theme exists in the theme library.
  • text recognition can be performed on the text image to determine the name of the target application.
  • a candidate application whose name is the same as that of the target application is determined from the theme library, and a candidate application set is constructed, wherein one or more candidate applications exist in the candidate application set. Then obtain images of each candidate application program icon, compare the image of the target application program icon with the image of each candidate application program icon for similarity, and determine whether there is a target theme in the theme library according to the result of the similarity comparison.
  • the maximum value of the similarity may be determined, and if the answer of the maximum value corresponds to the second similarity threshold, then the theme of the candidate application icon corresponding to the maximum similarity is determined as target topic. For example, among the calculated similarities, the similarity between the image V of the candidate application icon and the image A is the largest, then determine whether the similarity between the image V of the candidate application icon and the image A is greater than the second similarity threshold, if If it is greater than that, the theme corresponding to the candidate application icon is determined as the target theme.
  • the method of OCR Optical Character Recognition, Optical Character Recognition
  • the first device may further preprocess the text image, and the preprocessing process includes binarization and noise reduction processing, so as to reduce the difficulty of the feature extraction algorithm and improve the recognition accuracy.
  • the text line can also be detected to obtain the inclination direction of the text, so as to correct the inclination of the text.
  • the trained feature extraction network can be used to extract the text features.
  • a sequence network such as LSTM (Long Short-Term Memory, long short-term memory network) can be used to extract the sequence features of the image to form a feature vector.
  • the feature vector of the application name of each theme in the theme library can be obtained, and the comparison is carried out to determine the candidate application program whose name is the same as that of the target application program in the theme library, and then combined with the above-mentioned image similarity comparison process, Finalize the target theme.
  • the present disclosure also provides a solution for correcting the recognized characters.
  • the first device performs text recognition on the text image to obtain the first middle name
  • the application name library may be pre-configured and may be stored in the first device or other devices capable of data communication with the first device.
  • the first intermediate name may be determined as the name of the target application.
  • the first intermediate name may be corrected to determine the name of the target application.
  • the first device may determine the name with the greatest similarity to the first intermediate name in the application name library as the second intermediate name. This process can be understood as a character alignment process.
  • the second middle name may be used as the name of the target application.
  • the result identified by OCR is "Wi-Fi only month key", which can be corrected to "WiFI master key” after being processed by this solution.
  • the first device may further determine, according to the name of the target application, whether the icon of the target application is an icon modified during theme design, wherein , the icons modified during theme design refer to the system icons and commonly used icons designed by the person designing the theme. In the case where the icon of the target application is the icon modified at the time of theme design, the operation of determining the candidate application is performed.
  • the relevant information of the target theme may be one or more of information related to the download of the target theme, introduction information of the target theme, and an installation program of the target theme.
  • the relevant information of the target theme is the installation program of the target theme.
  • the first device can automatically run the installation program to switch the current theme of the first device to the target theme.
  • the first device may obtain the installation program of the target theme from the server, for example, by means of a theme store.
  • the process of switching themes in this step does not require user participation, and is automatically executed by the first device.
  • the relevant information of the target theme is download information of the target theme, so that a download interface corresponding to the download information is displayed.
  • the target theme can be downloaded in response to the user's download operation.
  • the download information may include topic name, topic size, developer, topic source, topic popularity, and the like. This information is displayed on the download interface, which can be presented in the form of a pop-up window. On the download interface, you can configure the "Download” button. After the user clicks, the download of the target theme can be realized.
  • This scheme of downloading the theme based on the user's further operation provides the user with a confirmation stage to avoid resource consumption caused by wrong download.
  • the target theme is detected, thereby obtaining theme-related information corresponding to the icon of the target application program, thereby helping the user to view the theme-related information and/or realize the switching of the theme.
  • the process is simple and fast.
  • the present disclosure also provides a solution for assisting in determining the theme.
  • the first device can acquire an image of the target wallpaper.
  • the target wallpaper described in the exemplary embodiment of the present disclosure may be a lock screen wallpaper or a desktop wallpaper.
  • the first device may scan or record the display interface of the second device, and the display interface of the second device displays the target wallpaper. Thereby, the first device can acquire the image of the target wallpaper.
  • the second device can take screenshots or screen recordings of its own display interface, and send the pictures or videos to the first device, so that the first device can also acquire the image of the target wallpaper.
  • the first device may also acquire the image of the target wallpaper from the server.
  • the first device may detect whether there is a first candidate theme in the theme library based on the image of the target wallpaper, and the wallpaper of the first candidate theme is consistent with the target wallpaper.
  • the similarity between the image of the target wallpaper and the wallpaper of each theme in the theme library may be compared, and according to the result of the similarity comparison, it is determined whether there is a first candidate theme in the theme library.
  • features of the target wallpaper can be extracted, the features include one or more of global features, local features, color features, shape features, and texture features of the wallpaper image. Then, the characteristics of the wallpaper corresponding to each theme in the theme database are obtained, and the comparison process of the feature similarity is used to determine whether there is a first candidate theme in the theme database. It can be understood that this method of image retrieval is helpful for the expansion of the wallpaper templates of each theme in the theme library, and it is only necessary to add wallpapers to the theme library and correspond to the theme.
  • the trained neural network can be used for classification processing to determine the first candidate theme whose wallpaper is consistent with the target wallpaper from the theme library.
  • the maximum value of the similarity can be determined, and if the maximum value is greater than the third similarity threshold, the theme of the wallpaper corresponding to the maximum similarity value is determined as the first a candidate subject. For example, among the multiple calculated similarities, the similarity between wallpaper y and the target wallpaper is the largest, then determine whether the similarity between wallpaper y and the target wallpaper is greater than the third similarity threshold, and if it is greater, determine the theme corresponding to wallpaper y. as the first candidate topic.
  • relevant information of the first candidate topic is acquired.
  • the related information of the first candidate theme may be one or more of information related to the download of the first candidate theme, introduction information of the first candidate theme, and an installation program of the first candidate theme. This further helps the user to view the relevant information of the first candidate topic and/or switch the topic of the first device to the first candidate topic.
  • some embodiments of the present disclosure may also determine the second candidate topic from the topic library.
  • the second candidate theme is the theme with the greatest similarity between the image of the application icon in the theme library and the image of the target application icon. Based on the process of detecting whether there is a target theme in step S34, the second candidate theme can be determined through each similarity calculated in this process. In this case, relevant information on the second candidate topic can be acquired.
  • the related information of the second candidate theme may be one or more of information related to the download of the second candidate theme, introduction information of the second candidate theme, and an installation program of the second candidate theme. This further helps the user to view the relevant information of the second candidate topic and/or switch the topic of the first device to the second candidate topic.
  • FIG. 7 schematically shows a flow chart of the entire subject-related information acquisition process according to an embodiment of the present disclosure.
  • step S702 the first device performs APP icon positioning to determine the positions and sizes of all APP icons in the image, so as to facilitate subsequent text recognition and icon recognition.
  • a deep learning target detection method or an image edge detection method can be used to locate the APP icon.
  • the first device may crop the APP icon and the text area, so as to perform the processing of text recognition and icon recognition respectively.
  • step S706 the first device performs text recognition and correction; in step S708, the first device determines system icons and commonly used icons from the image based on the recognized text, and these icons are icons that need to be modified in style during theme design .
  • step S710 the first device performs icon image comparison to determine the similarity between the APP icon in the image and the icon in the theme library.
  • the similarity here may be the average similarity obtained after comparing the similarity between each APP icon in the image and the icon in the theme library, that is, a theme in the theme library corresponds to an average similarity.
  • step S712 it is judged whether the target theme can be determined, if yes, then step S714 is executed; if not, step S716 is executed.
  • step S714 the first device obtains relevant information of the target topic.
  • step S716 a wallpaper image is obtained, and the wallpaper similarity is compared.
  • step S718 it is judged whether the first candidate theme can be determined based on the comparison result of the similarity of the wallpapers, if yes, go to step S720; if not, go to step S722.
  • step S720 the first device obtains relevant information of the first candidate topic.
  • a second candidate theme is determined by using the similarity of the APP icons, and the second candidate theme is the theme with the greatest similarity between the icon and the obtained APP icon.
  • step S724 the first device obtains relevant information of the second candidate topic.
  • the image is analyzed to determine the subject corresponding to the image, and the related information of the subject is obtained.
  • the user it is helpful for the user to view the relevant information of the topic and/or realize the switching of the topic, and the whole process is simple and fast.
  • an apparatus for acquiring topic-related information is also provided in this exemplary embodiment.
  • FIG. 8 schematically shows a block diagram of a subject-related information acquisition apparatus of an exemplary embodiment of the present disclosure.
  • the subject-related information acquisition apparatus 8 may include an image acquisition module 81 , a subject detection module 83 , and a first subject information acquisition module 85 .
  • the theme detection module 83 may be configured to perform: compare the similarity between the image of the target application icon and the image of the application icon of each theme in the theme library; according to the result of the similarity comparison, Determine if the target theme exists in the theme library.
  • the theme detection module 83 may also be configured to perform: acquiring a text image corresponding to the icon of the target application; detecting the theme library by using the text image corresponding to the icon of the target application and the image of the icon of the target application Whether the target topic exists in .
  • the process of detecting whether a target theme exists in the theme library by the theme detection module 83 may also be configured to perform: character recognition on text images to determine the name of the target application; Determine a candidate application with the same name as the target application, build a candidate application set; obtain the image of each candidate application icon in the candidate application set; compare the image of the target application icon with the image of each candidate application icon Carry out similarity comparison; according to the result of similarity comparison, determine whether there is a target theme in the theme library.
  • the process of performing text recognition on the text image by the subject detection module 83 to determine the name of the target application may be configured to perform: text recognition on the text image to obtain the first middle name; The first intermediate name is compared with the name in the application name library; if the first intermediate name is consistent with a name in the application name library, the first intermediate name is determined as the name of the target application; if the first intermediate name is consistent with a name in the application name library If the name is inconsistent with the name in the application name library, the first intermediate name is corrected to determine the name of the target application.
  • the process in which the subject detection module 83 corrects the first intermediate name to determine the name of the target application program may be configured to perform: determining that the application program name library is most similar to the first intermediate name The name of the second middle name is used as the second middle name; if the similarity between the first middle name and the second middle name is greater than the name similarity threshold, the second middle name is used as the name of the target application.
  • the theme detection module 83 may be further configured to execute: according to the name of the target application program, determine whether the icon of the target application program is an icon modified during theme design; wherein, In the case where the icon of the target application is the icon modified at the time of theme design, the operation of determining the candidate application is performed.
  • the first theme information obtaining module 85 may be configured to perform: obtaining an installation program of the target theme, so as to run the installation program of the target theme, and switch the theme to the target theme.
  • the first theme information obtaining module 85 may be further configured to perform: obtaining download information of a target theme so as to display a download interface corresponding to the download information, and downloading the target theme in response to a user's download operation.
  • the apparatus for obtaining subject-related information is configured in the first device, and the image obtaining module 81 may be configured to perform: scanning the interface of the second device to obtain the image of the target application icon; The image of the target application icon is displayed on the interface of the second device.
  • the image acquisition module 81 may be further configured to perform: before acquiring the image of the target application program icon, determine the size of the scan area that the image of the interface of the second device occupies; if the interface of the second device occupies the size of the scanning area; If the size of the image occupying the scanning area exceeds the size threshold, the image of the icon of the target application is obtained.
  • the image acquisition module 81 may be further configured to perform: before acquiring the image of the target application program icon, determine the size of the scan area that the image of the interface of the second device occupies; if the interface of the second device occupies the size of the scanning area; If the size of the image in the scanning area exceeds the size threshold, it is detected whether the first device is in a stable position; if the first device is in a stable position, an image of the icon of the target application is acquired.
  • the process in which the image acquisition module 81 detects whether the first device is in a positionally stable state may be configured to perform: generating a color histogram corresponding to each frame of images using multiple frames of images obtained based on the scanning operation Figure; according to the color histogram corresponding to each frame of image, it is determined whether the first device is in a state of stable position.
  • the image acquisition module 81 may be further configured to perform: acquiring a video including an image of a target application icon; and acquiring an image of the target application icon from the video.
  • the topic-related information acquiring apparatus 9 may further include a second topic information acquiring module 91 .
  • the second theme information obtaining module 91 may be configured to execute: when it is detected that the target theme does not exist in the theme library, obtain the image of the target wallpaper; based on the image of the target wallpaper, detect whether the first theme exists in the theme library The candidate theme, the wallpaper of the first candidate theme is consistent with the target wallpaper; in the case of detecting that the first candidate theme exists in the theme library, relevant information of the first candidate theme is obtained.
  • the process in which the second theme information acquisition module 91 detects whether the first candidate theme exists in the theme library based on the image of the target wallpaper may be configured to perform: compare the image of the target wallpaper with each theme in the theme library Similarity comparison is performed on the images of the wallpaper; according to the result of the similarity comparison, it is determined whether there is a first candidate theme in the theme library.
  • the topic-related information acquisition apparatus 10 may further include a third topic-related information acquisition module 101 .
  • the third topic information acquisition module 101 may be configured to perform: determining a second candidate topic from the topic library, where the second candidate topic is the image of the application icon in the topic library with the greatest similarity to the image of the target application icon topic; get information about the second candidate topic.
  • the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure may be embodied in the form of software products, and the software products may be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to cause a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to an embodiment of the present disclosure.
  • a computing device which may be a personal computer, a server, a terminal device, or a network device, etc.
  • modules or units of the apparatus for action performance are mentioned in the above detailed description, this division is not mandatory. Indeed, according to embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided into multiple modules or units to be embodied.

Abstract

A method and apparatus for acquiring information related to a subject, and a computer-readable storage medium and an electronic device, which relate to the technical field of terminals. The method for acquiring information related to a subject comprises: acquiring an image of a target application program icon (S32); on the basis of the image of the target application program icon, detecting whether there is a target subject in a subject library, wherein the pattern of an application program icon of the target subject is consistent with the pattern of the target application program icon (S34); and upon detecting that there is the target subject in the subject library, acquiring information related to the target subject (S36). By means of the method, information related to a subject can be acquired conveniently and quickly.

Description

主题相关信息获取方法及装置、存储介质和电子设备Subject-related information acquisition method and device, storage medium and electronic device
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求于2020年09月21日提交的申请号为202010997678.7、名称为“主题相关信息获取方法及装置、存储介质和电子设备”的中国专利申请的优先权,该中国专利申请的全部内容通过引用全部并入本文。This application claims the priority of the Chinese patent application with the application number of 202010997678.7 and the title of "Subject-related information acquisition method and device, storage medium and electronic device" filed on September 21, 2020. The entire content of the Chinese patent application is approved by Reference is incorporated herein in its entirety.
技术领域technical field
本公开涉及终端技术领域,具体而言,涉及一种主题相关信息获取方法、主题相关信息获取装置、计算机可读存储介质和电子设备。The present disclosure relates to the technical field of terminals, and in particular, to a subject-related information acquisition method, a subject-related information acquisition apparatus, a computer-readable storage medium, and an electronic device.
背景技术Background technique
终端设备的主题可以为用户提供不同的界面显示效果,是用户展现个性化的一个重要方面。当用户想要了解他人持有终端设备的主题时,往往需要向他人询问该主题的名称,再用自己的终端设备进行主题查询,以便获取该主题的相关信息。The theme of the terminal device can provide users with different interface display effects, which is an important aspect of user presentation personalization. When a user wants to know the subject of the terminal device held by others, he often needs to ask others for the name of the subject, and then use his own terminal device to query the subject, so as to obtain relevant information of the subject.
然而,用户需要向他人询问并在终端设备上查询,可见,目前获取主题相关信息的过程繁琐,不便捷,费时又费力。However, users need to ask others and inquire on the terminal device. It can be seen that the current process of obtaining topic-related information is cumbersome, inconvenient, time-consuming and labor-intensive.
发明内容SUMMARY OF THE INVENTION
根据本公开的第一方面,提供了一种主题相关信息获取方法,包括:获取目标应用程序图标的图像;基于目标应用程序图标的图像,检测主题库中是否存在目标主题,目标主题的应用程序图标的样式与目标应用程序图标的样式一致;在检测出主题库中存在目标主题的情况下,获取目标主题的相关信息。According to a first aspect of the present disclosure, there is provided a method for obtaining theme-related information, including: obtaining an image of a target application icon; detecting whether a target theme exists in a theme library based on the image of the target application icon, and the application The style of the icon is consistent with the style of the icon of the target application; when it is detected that the target theme exists in the theme library, the relevant information of the target theme is obtained.
根据本公开的第二方面,提供了一种主题相关信息获取装置,包括:图像获取模块,被配置为获取目标应用程序图标的图像;主题检测模块,被配置为基于目标应用程序图标的图像,检测主题库中是否存在目标主题,目标主题的应用程序图标的样式与目标应用程序图标的样式一致;第一主题信息获取模块,被配置为在检测出主题库中存在目标主题的情况下,获取目标主题的相关信息。According to a second aspect of the present disclosure, there is provided a subject-related information acquisition device, comprising: an image acquisition module configured to acquire an image of a target application icon; a subject detection module configured to be based on the image of the target application icon, Detecting whether the target theme exists in the theme library, and the style of the application icon of the target theme is consistent with the style of the target application icon; the first theme information obtaining module is configured to obtain the target theme when it is detected that the theme library exists. Information about the target topic.
根据本公开的第三方面,提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述的主题相关信息获取方法。According to a third aspect of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the above-mentioned method for obtaining subject-related information.
根据本公开的第四方面,提供了一种电子设备,包括处理器;存储器,被配置为存储一个或多个程序,当一个或多个程序被处理器执行时,使得所述处理器实现上述的主题相关信息获取方法。According to a fourth aspect of the present disclosure, there is provided an electronic device, comprising a processor; a memory configured to store one or more programs, which, when executed by the processor, cause the processor to implement the above-mentioned How to get information about the subject.
附图说明Description of drawings
图1示出了本公开实施例的主题相关信息获取方案所涉设备的示意图;FIG. 1 shows a schematic diagram of a device involved in a subject-related information acquisition solution according to an embodiment of the present disclosure;
图2示出了适于用来实现本公开实施例的电子设备的结构示意图;FIG. 2 shows a schematic structural diagram of an electronic device suitable for implementing an embodiment of the present disclosure;
图3示意性示出了根据本公开的示例性实施方式的主题相关信息获取方法的流程图;FIG. 3 schematically shows a flowchart of a method for acquiring subject-related information according to an exemplary embodiment of the present disclosure;
图4示出了响应用户的操作进行应用程序图标图像扫描的示意图;Figure 4 shows a schematic diagram of scanning an image of an application icon in response to a user's operation;
图5示出了应用程序图像与对应文字相对位置关系的示意图;Fig. 5 shows the schematic diagram of the relative positional relationship between the application image and the corresponding text;
图6示出了获取到目标主题的下载信息并展示的示意图;Fig. 6 shows the schematic diagram of acquiring and displaying the download information of the target theme;
图7示意性示出了根据本公开实施例的整个主题相关信息获取过程的流程图;FIG. 7 schematically shows a flowchart of the entire subject-related information acquisition process according to an embodiment of the present disclosure;
图8示意性示出了根据本公开的示例性实施方式的主题相关信息获取装置的方框图;FIG. 8 schematically shows a block diagram of an apparatus for obtaining subject-related information according to an exemplary embodiment of the present disclosure;
图9示意性示出了根据本公开的另一示例性实施方式的主题相关信息获取装置的方框图;FIG. 9 schematically shows a block diagram of an apparatus for obtaining subject-related information according to another exemplary embodiment of the present disclosure;
图10示意性示出了根据本公开的再一示例性实施方式的主题相关信息获取装置的方 框图。Fig. 10 schematically shows a block diagram of a subject-related information acquisition apparatus according to still another exemplary embodiment of the present disclosure.
具体实施方式detailed description
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。在下面的描述中,提供许多具体细节从而给出对本公开的实施方式的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而省略所述特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知技术方案以避免喧宾夺主而使得本公开的各方面变得模糊。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments, however, can be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided in order to give a thorough understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed. In other instances, well-known solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repeated descriptions will be omitted. Some of the block diagrams shown in the figures are functional entities that do not necessarily necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
附图中所示的流程图仅是示例性说明,不是必须包括所有的步骤。例如,有的步骤还可以分解,而有的步骤可以合并或部分合并,因此实际执行的顺序有可能根据实际情况改变。另外,下面所有的术语“第一”、“第二”、“第三”仅是为了区分的目的,不应作为本公开内容的限制。The flow charts shown in the figures are merely illustrative and do not necessarily include all steps. For example, some steps can be decomposed, and some steps can be combined or partially combined, so the actual execution order may be changed according to the actual situation. In addition, all the following terms "first", "second" and "third" are for the purpose of distinction only, and should not be used as a limitation of the present disclosure.
图1示出了本公开实施例的主题相关信息获取方案所涉设备的示意图。FIG. 1 shows a schematic diagram of a device involved in a subject-related information acquisition solution according to an embodiment of the present disclosure.
参考图1,终端设备1001可以是待获取主题相关信息的设备,也就是说,终端设备1001执行本公开所述的主题相关信息获取方案。终端设备1001可以包括但不限于手机、平板电脑、例如智能手表的智能可穿戴设备等。Referring to FIG. 1 , the terminal device 1001 may be a device to acquire topic-related information, that is, the terminal device 1001 executes the topic-related information acquisition scheme described in the present disclosure. The terminal device 1001 may include, but is not limited to, a mobile phone, a tablet computer, a smart wearable device such as a smart watch, and the like.
可以通过终端设备1002或服务器1003,来使终端设备1001获取秒应用程序图标的图像。其中,终端设备1002可以是手机、平板电脑、个人计算机、例如智能手表的智能可穿戴设备等。另外,图1中的终端设备、服务器的数目仅仅是示意性的。根据实际需要,可以具有任意数目的终端设备和服务器,比如,服务器1003可以是多个服务器组成的服务器集群等。The terminal device 1001 can be made to acquire the image of the second application icon through the terminal device 1002 or the server 1003 . The terminal device 1002 may be a mobile phone, a tablet computer, a personal computer, a smart wearable device such as a smart watch, or the like. In addition, the numbers of terminal devices and servers in FIG. 1 are only illustrative. According to actual needs, there may be any number of terminal devices and servers. For example, the server 1003 may be a server cluster composed of multiple servers.
在本公开的一些实施例中,终端设备1001可以扫描终端设备1002的显示界面,终端设备1002的显示界面上显示有目标应用程序的图标。由此,终端设备1001可以获取到目标应用程序图标的图像。接下来,终端设备1001基于目标应用程序图标的图像,在主题库中进行搜索,以检测主题库中是否存在目标主题,其中,目标主题的应用程序图标的样式与目标应用程序图标的样式一致。在检测出存在目标主题的情况下,获取目标主题的相关信息。In some embodiments of the present disclosure, the terminal device 1001 may scan the display interface of the terminal device 1002, and the display interface of the terminal device 1002 displays the icon of the target application. Thus, the terminal device 1001 can acquire the image of the target application icon. Next, the terminal device 1001 searches the theme library based on the image of the target application icon to detect whether the target theme exists in the theme library, wherein the style of the application icon of the target theme is consistent with the style of the target application icon. When it is detected that there is a target topic, relevant information of the target topic is acquired.
在本公开的另一些实施例中,终端设备1001可以对终端设备1002的显示界面进行拍照或录像,终端设备1002的显示界面上显示有目标应用程序的图标。由此,终端设备1001可以获取到目标应用程序图标的图像。接下来,终端设备1001基于目标应用程序图标的图像,在主题库中进行搜索,以检测主题库中是否存在目标主题,其中,目标主题的应用程序图标的样式与目标应用程序图标的样式一致。在检测出存在目标主题的情况下,获取目标主题的相关信息。In other embodiments of the present disclosure, the terminal device 1001 may take pictures or videos of the display interface of the terminal device 1002, and the display interface of the terminal device 1002 displays the icon of the target application. Thus, the terminal device 1001 can acquire the image of the target application icon. Next, the terminal device 1001 searches the theme library based on the image of the target application icon to detect whether the target theme exists in the theme library, wherein the style of the application icon of the target theme is consistent with the style of the target application icon. When it is detected that there is a target topic, relevant information of the target topic is acquired.
在上述实施例中,终端设备1001与终端设备1002之间不存在数据通信。In the above embodiment, there is no data communication between the terminal device 1001 and the terminal device 1002 .
在本公开的再一些实施例中,终端设备1002可以执行截屏或录屏操作,并将生成的图像或视频发送给终端设备1001,由此,终端设备1001可以获取到目标应用程序图标的图像。接下来,终端设备1001基于目标应用程序图标的图像,在主题库中进行搜索,以 检测主题库中是否存在目标主题,其中,目标主题的应用程序图标的样式与目标应用程序图标的样式一致。在检测出存在目标主题的情况下,获取目标主题的相关信息。In still other embodiments of the present disclosure, the terminal device 1002 may perform a screen capture or screen recording operation, and send the generated image or video to the terminal device 1001, so that the terminal device 1001 may obtain the image of the target application icon. Next, the terminal device 1001 searches the theme library based on the image of the target application icon to detect whether the target theme exists in the theme library, wherein the style of the application icon of the target theme is consistent with the style of the target application icon. When it is detected that there is a target topic, relevant information of the target topic is acquired.
在本公开的又一些实施例中,终端设备1001可以从服务器1003获取到目标应用程序图标的图像。例如,终端设备1001可以从网页上获取目标应用程序图标的图像。接下来,终端设备1001基于目标应用程序图标的图像,在主题库中进行搜索,以检测主题库中是否存在目标主题,其中,目标主题的应用程序图标的样式与目标应用程序图标的样式一致。在检测出存在目标主题的情况下,获取目标主题的相关信息。In still other embodiments of the present disclosure, the terminal device 1001 may acquire the image of the target application icon from the server 1003 . For example, the terminal device 1001 may acquire the image of the target application icon from the web page. Next, the terminal device 1001 searches the theme library based on the image of the target application icon to detect whether the target theme exists in the theme library, wherein the style of the application icon of the target theme is consistent with the style of the target application icon. When it is detected that there is a target topic, relevant information of the target topic is acquired.
另外,本公开所述的目标主题的相关信息可以是与目标主题下载相关的信息、目标主题的介绍信息、目标主题的安装程序中的一种或多种。以便用户查看主题相关信息,或者由终端设备1001自动执行主题切换操作,以将终端设备1001的主题切换为目标主题。In addition, the relevant information of the target theme described in the present disclosure may be one or more of the information related to the download of the target theme, the introduction information of the target theme, and the installation program of the target theme. This is so that the user can view the topic-related information, or the terminal device 1001 automatically performs a topic switching operation, so as to switch the topic of the terminal device 1001 to the target topic.
需要说明的是,本公开示例性实施方式的主题相关信息获取方法一般由终端设备1001执行,相应地,下面描述的主题相关信息获取装置一般配置在终端设备1001中。It should be noted that the subject-related information acquisition method of the exemplary embodiment of the present disclosure is generally executed by the terminal device 1001 , and accordingly, the subject-related information acquisition apparatus described below is generally configured in the terminal device 1001 .
图2示出了适于用来实现本公开示例性实施方式的电子设备的示意图。可以将本公开所述的终端设备(下述第一设备)配置为如图2所示的形式。需要说明的是,图2示出的电子设备仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Figure 2 shows a schematic diagram of an electronic device suitable for use in implementing exemplary embodiments of the present disclosure. The terminal device described in the present disclosure (the first device described below) can be configured as shown in FIG. 2 . It should be noted that the electronic device shown in FIG. 2 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
本公开的电子设备至少包括处理器和存储器,存储器被配置为存储一个或多个程序,当一个或多个程序被处理器执行时,使得处理器可以实现本公开示例性实施方式的主题相关信息获取方法。The electronic device of the present disclosure includes at least a processor and a memory, and the memory is configured to store one or more programs, which, when executed by the processor, enable the processor to realize the subject-related information of the exemplary embodiments of the present disclosure get method.
具体的,如图2所示,电子设备200可以包括:处理器210、内部存储器221、外部存储器接口222、通用串行总线(Universal Serial Bus,USB)接口230、充电管理模块240、电源管理模块241、电池242、天线1、天线2、移动通信模块250、无线通信模块260、音频模块270、扬声器271、受话器272、麦克风273、耳机接口274、传感器模块280、显示屏290、摄像模组291、指示器292、马达293、按键294以及用户标识模块(Subscriber Identification Module,SIM)卡接口295等。其中传感器模块280可以包括深度传感器、压力传感器、陀螺仪传感器、气压传感器、磁传感器、加速度传感器、距离传感器、接近光传感器、指纹传感器、温度传感器、触摸传感器、环境光传感器及骨传导传感器等。Specifically, as shown in FIG. 2, the electronic device 200 may include: a processor 210, an internal memory 221, an external memory interface 222, a Universal Serial Bus (USB) interface 230, a charging management module 240, and a power management module 241, battery 242, antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, audio module 270, speaker 271, receiver 272, microphone 273, headphone jack 274, sensor module 280, display screen 290, camera module 291 , an indicator 292, a motor 293, a key 294, a Subscriber Identification Module (SIM) card interface 295, and the like. The sensor module 280 may include a depth sensor, a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
可以理解的是,本申请实施例示意的结构并不构成对电子设备200的具体限定。在本申请另一些实施例中,电子设备200可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件、软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 200 . In other embodiments of the present application, the electronic device 200 may include more or less components than shown, or combine some components, or separate some components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
处理器210可以包括一个或多个处理单元,例如:处理器210可以包括应用处理器(Application Processor,AP)、调制解调处理器、图形处理器(Graphics Processing Unit,GPU)、图像信号处理器(Image Signal Processor,ISP)、控制器、视频编解码器、数字信号处理器(Digital Signal Processor,DSP)、基带处理器和/或神经网络处理器(Neural-etwork Processing Unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。另外,处理器210中还可以设置存储器,用于存储指令和数据。The processor 210 may include one or more processing units, for example, the processor 210 may include an application processor (Application Processor, AP), a modem processor, a graphics processor (Graphics Processing Unit, GPU), an image signal processor (Image Signal Processor, ISP), controller, video codec, digital signal processor (Digital Signal Processor, DSP), baseband processor and/or neural network processor (Neural-network Processing Unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors. In addition, a memory may also be provided in the processor 210 for storing instructions and data.
电子设备200通过GPU、显示屏290及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏290和应用处理器。GPU用于执行数学和几何计算,用于图形渲染,在本公开用于实现主题切换的场景中,可以利用GPU来实现主题图标样式的渲染。处理器210可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 200 implements a display function through a GPU, a display screen 290, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 290 and the application processor. The GPU is used for performing mathematical and geometric calculations and for graphics rendering. In the scenario where the present disclosure is used for implementing theme switching, the GPU can be used to realize the rendering of the theme icon style. Processor 210 may include one or more GPUs that execute program instructions to generate or alter display information.
电子设备200可以通过ISP、摄像模组291、视频编解码器、GPU、显示屏290及应用处理器等实现拍摄功能。在一些实施例中,电子设备200可以包括1个或N个摄像模组291,N为大于1的正整数,若电子设备200包括N个摄像头,N个摄像头中有一个是主摄像头。The electronic device 200 can realize the shooting function through the ISP, the camera module 291, the video codec, the GPU, the display screen 290, the application processor, and the like. In some embodiments, the electronic device 200 may include one or N camera modules 291 , where N is a positive integer greater than 1. If the electronic device 200 includes N cameras, one of the N cameras is the main camera.
例如,可以通过摄像模组291对另一电子设备的显示界面进行扫描或拍摄,以获取目标应用程序图标的图像,进而基于该图像实现目标主题相关信息的获取过程。For example, the display interface of another electronic device can be scanned or photographed by the camera module 291 to obtain an image of the icon of the target application, and then the process of obtaining the relevant information of the target theme can be realized based on the image.
内部存储器221可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器221可以包括存储程序区和存储数据区。外部存储器接口222可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备200的存储能力。Internal memory 221 may be used to store computer executable program code, which includes instructions. The internal memory 221 may include a storage program area and a storage data area. The external memory interface 222 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 200.
本申请还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中描述的电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The present application also provides a computer-readable storage medium. The computer-readable storage medium may be included in the electronic device described in the above-mentioned embodiments, or it may exist alone without being assembled into the electronic device.
计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
计算机可读存储介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读存储介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。The computer-readable storage medium can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. Program code embodied on a computer-readable storage medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
计算机可读存储介质承载有一个或者多个程序,当上述一个或者多个程序被一个该电子设备执行时,使得该电子设备实现如下述实施例中所述的方法。The computer-readable storage medium carries one or more programs, which, when executed by an electronic device, cause the electronic device to implement the methods described in the following embodiments.
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented in special purpose hardware-based systems that perform the specified functions or operations, or can be implemented using A combination of dedicated hardware and computer instructions is implemented.
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现,所描述的单元也可以设置在处理器中。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定。The units involved in the embodiments of the present disclosure may be implemented in software or hardware, and the described units may also be provided in a processor. Among them, the names of these units do not constitute a limitation on the unit itself under certain circumstances.
下面以第一设备实现本公开示例性实施方式的主题相关信息获取方案为例,对方案中的细节进行阐述。其中,第一设备对应于上述终端设备1001,并可以被配置为如图2所示设备的形式。The details of the solution will be described below by taking the first device implementing the subject-related information acquisition solution of the exemplary embodiment of the present disclosure as an example. The first device corresponds to the above-mentioned terminal device 1001, and can be configured in the form of the device shown in FIG. 2 .
图3示意性示出了本公开的示例性实施方式的主题相关信息获取方法的流程图。参考图3,该主题相关信息获取方法可以包括以下步骤:FIG. 3 schematically shows a flowchart of a method for acquiring subject-related information according to an exemplary embodiment of the present disclosure. Referring to FIG. 3 , the method for obtaining the subject-related information may include the following steps:
S32.获取目标应用程序图标的图像。S32. Obtain an image of the target application icon.
根据本公开的一些实施例,第一设备可以对第二设备的界面进行扫描操作,以获取目标应用程序图标的图像。其中,第二设备的界面上显示有目标应用程序图标的图像。应当理解的是,本公开所述的应用程序即是通常所说的APP。According to some embodiments of the present disclosure, the first device may perform a scanning operation on the interface of the second device to acquire the image of the icon of the target application. The image of the target application icon is displayed on the interface of the second device. It should be understood that the application program described in the present disclosure is the so-called APP.
图4示出了响应用户的操作进行应用程序图标图像扫描的示意图。FIG. 4 shows a schematic diagram of scanning an image of an application program icon in response to a user's operation.
参考图4,首先,用户可以点击第一设备41上的主题APP图标,进入主题APP。接下来,在主题APP中,可以通过配置的扫描控件,来实现扫描操作,即,用户可以点击“扫描”图标。随后,在扫描的过程中,如果扫描到第二设备42的显示界面,该显示界面显示有目标应用程序图标的图像,第一设备41可以获取到目标应用程序图标的图像。Referring to FIG. 4 , first, the user can click the theme APP icon on the first device 41 to enter the theme APP. Next, in the theme APP, the scan operation can be implemented through the configured scan control, that is, the user can click the "scan" icon. Subsequently, during the scanning process, if the display interface of the second device 42 is scanned, and the display interface displays the image of the icon of the target application program, the first device 41 can obtain the image of the icon of the target application program.
除如图4示例性的场景外,用户还可以在例如相机APP等中执行扫描操作,以对第二设备进行扫描,进而也可以通过扫描的方式获取到目标应用程序图标的图像。In addition to the exemplary scenario shown in FIG. 4 , the user can also perform a scanning operation in, for example, a camera APP, etc., to scan the second device, and further obtain the image of the icon of the target application by scanning.
鉴于可能存在误识别而造成资源浪费的问题。本公开还可以包括第一设备对第二设备进行识别的方案。In view of the possibility of misidentification and waste of resources. The present disclosure may also include a solution in which the first device identifies the second device.
对第二设备进行识别的过程又可被称为对第二设备进行检测的过程,检测的方式可以包括利用CNN(Convolutional Neural Network,卷积神经网络)等深度学习算法训练目标检测模型,根据目标检测模型对扫描到的图像进行目标检测。目标检测模型一般包括输入层、隐含层和输出层,输入层用于接收扫描到的图像,隐含层用于对接收到的图像进行处理,输出层用于输出图像处理后的结果,最终确定出画面中第二设备的位置和大小信息。具体的,目标检测算法可以包括SSD、Faster-RCNN等,目标检测的目的在于确定是否为终端设备。The process of recognizing the second device can also be called the process of detecting the second device. The detection method can include using a deep learning algorithm such as CNN (Convolutional Neural Network, convolutional neural network) to train a target detection model, according to the target. The detection model performs object detection on the scanned image. The target detection model generally includes an input layer, a hidden layer and an output layer. The input layer is used to receive the scanned image, the hidden layer is used to process the received image, and the output layer is used to output the result of the image processing. The position and size information of the second device in the screen is determined. Specifically, the target detection algorithm may include SSD, Faster-RCNN, etc. The purpose of target detection is to determine whether it is a terminal device.
鉴于可能存在扫描到的目标应用程序图标的图像较小,无法进一步识别的问题。Given that the scanned image of the target application icon may be small, it cannot be further identified.
在一个实施例中,在检测到第二设备且在获取目标应用程序图标的图像之前,第一设备确定第二设备的界面的图像占扫描区域的尺寸,如果第二设备的界面的图像占整个扫描区域的尺寸超过尺寸阈值,则执行获取目标应用程序图标的图像的操作。如果未超过尺寸阈值,则可以在扫描界面上提示用户对第一设备的位置进行调整。其中,尺寸阈值可以例如为第一设备扫描区域的2/3,然而,本公开对尺寸阈值的具体取值不做限制。In one embodiment, before detecting the second device and before acquiring the image of the target application icon, the first device determines the size of the scanning area that the image of the interface of the second device occupies, if the image of the interface of the second device occupies the entire size of the scanning area When the size of the scanning area exceeds the size threshold, the operation of acquiring the image of the icon of the target application is performed. If the size threshold is not exceeded, the user may be prompted on the scanning interface to adjust the position of the first device. The size threshold may be, for example, 2/3 of the scanning area of the first device. However, the present disclosure does not limit the specific value of the size threshold.
在另一个实施例中,在检测到第二设备且在获取目标应用程序图标的图像之前,第一设备确定第二设备界面上目标应用程序图标的图像的尺寸,如果目标应用程序图标的图像的尺寸超过图标尺寸阈值,则执行获取目标应用程序图标的图像的操作。如果未超过该图标尺寸阈值,则可以在扫描界面上提示用户对第一设备的位置进行调整。类似地,本公开对图标尺寸阈值的具体取值不做限制。In another embodiment, before detecting the second device and before acquiring the image of the target application icon, the first device determines the size of the image of the target application icon on the interface of the second device, if the size of the image of the target application icon is If the size exceeds the icon size threshold, the operation of obtaining the image of the target application icon is performed. If the icon size threshold is not exceeded, the user may be prompted to adjust the position of the first device on the scanning interface. Similarly, the present disclosure does not limit the specific value of the icon size threshold.
另外,鉴于在第一设备执行扫描操作时,由于第一设备的抖动,可能出现获取到的目标应用程序图标的图像模糊的问题。In addition, in view of the fact that when the first device performs the scanning operation, the obtained image of the target application program icon may be blurred due to the shaking of the first device.
在又一个实施例中,第一设备可以检测第一设备是否处于位置稳定的状态,可以将位置稳定理解为连续若干帧内,手机的位置和姿态未发生变化。例如,可以借助于颜色直方图的方式确定出第一设备是否处于位置稳定的状态。In yet another embodiment, the first device can detect whether the first device is in a state of stable position, and the stable position can be understood as that the position and posture of the mobile phone have not changed in several consecutive frames. For example, it can be determined by means of a color histogram whether the first device is in a positionally stable state.
具体的,首先,可以利用基于扫描操作而得到的多帧图像,生成各帧图像对应的颜色直方图;接下来,根据各帧图像对应的颜色直方图,确定第一设备是否处于位置稳定的状态,如,确定连续若干帧(例如5帧、10帧等)内,颜色直方图中各颜色的占比是否发生变化,如果未发生变化或者变化程度小于一阈值,则认为第一设备处于位置稳定的状态。如果第一设备未处于位置稳定的状态,则可以在扫描界面上提示用户。Specifically, first, a color histogram corresponding to each frame of image can be generated by using multiple frames of images obtained based on the scanning operation; then, according to the color histogram corresponding to each frame of image, it is determined whether the first device is in a stable position , for example, determine whether the proportion of each color in the color histogram has changed within several consecutive frames (for example, 5 frames, 10 frames, etc.), if there is no change or the degree of change is less than a threshold, it is considered that the first device is in a stable position status. If the first device is not in a positionally stable state, the user may be prompted on the scanning interface.
在既考虑图像所占尺寸又考虑设备稳定的实施例中,可以确定第二设备的界面的图像占扫描区域的尺寸,如果第二设备的界面的图像占扫描区域的尺寸超过尺寸阈值,则检测第一设备是否处于位置稳定的状态,如果检测出第一设备处于位置稳定的状态,则第一设备可以执行获取目标应用图标的图像的操作。In an embodiment in which both the size occupied by the image and the stability of the device are considered, the size of the scanning area occupied by the image of the interface of the second device may be determined, and if the size of the scanning area occupied by the image of the interface of the second device exceeds the size threshold, detection is performed. Whether the first device is in a stable position, if it is detected that the first device is in a stable position, the first device may perform an operation of acquiring the image of the target application icon.
另外,还可以先判断第一设备是否处于位置稳定状态,再判断第二设备的界面的图像占扫描区域的尺寸是否超过尺寸阈值。或者分别对这两个进行判断,分别判断后再综合结果。In addition, it is also possible to first determine whether the first device is in a stable position, and then determine whether the size of the image of the interface of the second device occupying the scanning area exceeds the size threshold. Or judge these two separately, judge them separately, and then combine the results.
上面仅描述了第一设备利用针对第二设备的扫描操作,实现目标应用程序图标的图像的获取过程。The above only describes the process of acquiring the image of the icon of the target application program by the first device using the scanning operation for the second device.
根据本公开另一些实施例,第一设备可以获取包含目标应用程序图标的图像的视频。这个视频可以来源于第一设备对第二设备的显示界面进行录像。也可以是第二设备自身进行录屏操作后生成的视频,第二设备将该视频发送给第一设备。另外,该视频可以是第一设备从服务器获取的视频,本公开对此不做限制。According to other embodiments of the present disclosure, the first device may acquire a video including an image of an icon of a target application. The video may come from the first device recording the display interface of the second device. It may also be a video generated after the second device itself performs a screen recording operation, and the second device sends the video to the first device. In addition, the video may be a video obtained by the first device from the server, which is not limited in the present disclosure.
在第一设备获取到该视频后,可以对视频帧进行识别处理,以获取目标应用程序图标的图像。After the first device obtains the video, the video frame may be identified and processed to obtain the image of the icon of the target application.
除视频之外,第一设备还可以获取包含目标应用程序图标的图片。该图片可以是由第二设备进行截屏而生成,在这种情况下,第二设备可以将该图片发送给第一设备。或者,第一设备可以从服务器获取该图片、在获取到该图片后,可以对该图片进行识别处理,以获取目标应用程序图标的图像。In addition to the video, the first device may also obtain a picture containing the icon of the target application. The picture may be generated by the second device taking a screenshot, in this case, the second device may send the picture to the first device. Alternatively, the first device may obtain the picture from the server, and after obtaining the picture, may perform identification processing on the picture to obtain the image of the target application icon.
需要说明的是,步骤S32获取的目标应用程序图标的图像的数量可以是一个或多个。在获取多个目标应用程序图标的图像的情况下,容易理解,这些目标应用程序图标的样式一致。另外,应用程序图标的样式又可被称为应用程序图标的风格。It should be noted that, the number of images of the target application icon acquired in step S32 may be one or more. In the case of acquiring images of multiple target application icons, it is easy to understand that the styles of these target application icons are consistent. In addition, the style of the application icon may also be referred to as the style of the application icon.
S34.基于目标应用程序图标的图像,检测主题库中是否存在目标主题,目标主题的应用程序图标的样式与目标应用程序图标的样式一致。S34. Based on the image of the target application program icon, detect whether the target theme exists in the theme library, and the style of the target theme application program icon is consistent with the style of the target application program icon.
在本公开的示例性实施方式中,主题库指代第一设备能够查询到主题的集合。主题库中的主题通常可以包括第一设备系统自带的主题以及安装的主题APP中的主题。另外,主题库还可以是包括互联网资源在内的所有主题的集合。可以理解的是,检测主题库中是否存在目标主题的过程,也就是从主题库中搜索目标主题的过程。In an exemplary embodiment of the present disclosure, the topic library refers to a collection of topics that can be queried by the first device. The themes in the theme library may generally include themes that come with the first device system and themes in the installed theme APP. In addition, the theme library can also be a collection of all themes including Internet resources. It can be understood that the process of detecting whether the target theme exists in the theme database is the process of searching for the target theme from the theme database.
应当注意的是,主题库中各主题的应用程序图标的图像、名称等信息是可以直接获取到的。It should be noted that the image, name and other information of the application icon of each theme in the theme library can be obtained directly.
根据本公开的一些实施例,第一设备可以将目标应用程序图标的图像与主题库中各主题的应用程序图标的图像进行相似度比较,并根据相似度比较的结果,确定主题库中是否存在目标主题。According to some embodiments of the present disclosure, the first device may compare the similarity between the image of the target application icon and the image of the application icon of each theme in the theme library, and determine whether there is a theme library according to the result of the similarity comparison target topic.
将目标应用程序图标的图像记为图像A,并将主题库中一个主题的应用程序图标的图像记为图像B,下面以图像A与图像B的相似度比较过程为例,对目标应用程序图标的图像与主题库中各主题的应用程序图标的图像进行相似度比较的过程进行说明。The image of the target application icon is marked as image A, and the image of the application icon of a theme in the theme library is marked as image B. The following is an example of the similarity comparison process between image A and image B. The process of comparing the similarity between the image of the theme and the image of the application icon of each theme in the theme library will be explained.
首先,可以提取图像A的图像特征。图像特征可以包括图像的全局特征、局部特征、颜色特征、形状特征、纹理特征中的一种或多种。其中,全局特征有助于进行语义层面的检索;局部特征可以用于进行局部关键点匹配,有助于找出局部相同点;颜色特征可以使图像有更丰富的表示;形状特征和纹理特征可以有助于确定出图像间的大致差异。First, the image features of image A can be extracted. The image features may include one or more of global features, local features, color features, shape features, and texture features of the image. Among them, global features are helpful for retrieval at the semantic level; local features can be used for local key point matching, which helps to find local identical points; color features can make images have richer representations; shape features and texture features can Helps to identify approximate differences between images.
提取图像特征的方式包括但不限于利用神经网络,例如,形状特征可以是卷积神经网络中一卷积层的输出。本公开对神经网络的网络结构和训练方式不做限制。The way of extracting image features includes, but is not limited to, using a neural network. For example, the shape feature can be the output of a convolutional layer in a convolutional neural network. The present disclosure does not limit the network structure and training method of the neural network.
接下来,可以获取图像B的图像特征。可以采用与提取图像A的方式提取图像B的特征。或者,主题库对应的存储单元中已存储有图像B的图像特征,在需要使用时,直接调用即可。Next, the image features of image B can be acquired. The features of image B can be extracted in the same way as image A is extracted. Alternatively, the image features of the image B have been stored in the storage unit corresponding to the theme library, and can be directly called when needed.
在计算图像A的图像特征与图像B的图像特征的相似度时,可以将图像A的图像特征转换为向量,将图像B的图像特征转换为向量,由此,可以通过计算两个向量的相似度来确定图像A与图像B的相似度,而计算两个向量的相似度可以通过余弦相似度、欧氏距离、曼哈顿距离、马氏距离等方式实现。When calculating the similarity between the image feature of image A and the image feature of image B, the image feature of image A can be converted into a vector, and the image feature of image B can be converted into a vector, thus, the similarity of the two vectors can be calculated by calculating The degree of similarity between image A and image B is determined, and the similarity between two vectors can be calculated by cosine similarity, Euclidean distance, Manhattan distance, Mahalanobis distance, etc.
针对主题库中各主题的应用程序图标的图像,均可以执行上述与目标应用程序图标的图像的相似度计算过程。然后,确定出相似度的最大值,如果该最大值大于第一相似度阈值,则将该相似度最大值对应的图标图像的主题,确定为目标主题。例如,计算出的多个相似度中,图像W与图像A的相似度最大,则确定图像W与图像A的相似度是否大于第一相似度阈值,如果大于,则将图像W对应的主题确定为目标主题。For the image of the application icon of each theme in the theme library, the above process of calculating the similarity with the image of the target application icon may be performed. Then, the maximum value of the similarity is determined, and if the maximum value is greater than the first similarity threshold, the subject of the icon image corresponding to the maximum similarity is determined as the target subject. For example, among the multiple calculated similarities, the similarity between image W and image A is the largest, and then it is determined whether the similarity between image W and image A is greater than the first similarity threshold, and if it is greater, the subject corresponding to image W is determined. for the target subject.
根据本公开的另一些实施例,还可以结合应用程序的名称来检测主题库中是否存在目标主题。According to other embodiments of the present disclosure, whether the target theme exists in the theme library can also be detected in combination with the name of the application.
首先,第一设备可以获取目标应用程序图标对应的文字图像。First, the first device may acquire the text image corresponding to the icon of the target application program.
如图5所示,在界面上,应用程序对应的文字(即应用程序的名称)区域通常位于应用程序的图标的下方,并且文字区域的上边框可以是图标的下边框,文字区域的下边框通常位于该图标下边框与下方图标上边框的中间。另外,文字区域的左(右)边框通常位于 当前图表向左(右)扩展一定距离处。As shown in Figure 5, on the interface, the text area corresponding to the application (ie the name of the application) is usually located below the icon of the application, and the upper border of the text area can be the lower border of the icon, and the lower border of the text area Usually in the middle of the icon's lower border and the lower icon's upper border. In addition, the left (right) border of the text area is usually located where the current chart extends a certain distance to the left (right).
据此,可以对图像进行裁剪,即可得到目标应用程序图标对应的文字图像。Accordingly, the image can be cropped to obtain the text image corresponding to the icon of the target application.
接下来,第一设备可以利用目标应用程序图标对应的文字图像以及目标应用程序图标的图像,检测主题库中是否存在目标主题。Next, the first device may use the text image corresponding to the target application program icon and the image of the target application program icon to detect whether the target theme exists in the theme library.
具体的,可以对文字图像进行文字识别,以确定出目标应用程序的名称。从主题库中确定出名称与目标应用程序的名称相同的候选应用程序,构建候选应用程序集合,该候选应用程序集合中存在一个或多个候选应用程序。再获取各候选应用程序图标的图像,将目标应用程序图标的图像与各候选应用程序图标的图像进行相似度比较,并根据相似度比较的结果,确定主题库中是否存在目标主题。Specifically, text recognition can be performed on the text image to determine the name of the target application. A candidate application whose name is the same as that of the target application is determined from the theme library, and a candidate application set is constructed, wherein one or more candidate applications exist in the candidate application set. Then obtain images of each candidate application program icon, compare the image of the target application program icon with the image of each candidate application program icon for similarity, and determine whether there is a target theme in the theme library according to the result of the similarity comparison.
针对这些实施例确定是否存在目标主题的过程,可以确定相似度的最大值,如果该最大值答案与第二相似度阈值,则将该相似度最大值对应的候选应用程序图标的主题,确定为目标主题。例如,计算出的多个相似度中,候选应用程序图标的图像V与图像A的相似度最大,则确定候选应用程序图标的图像V与图像A的相似度是否大于第二相似度阈值,如果大于,则将该候选应用程序图标对应的主题确定为目标主题。For the process of determining whether there is a target theme in these embodiments, the maximum value of the similarity may be determined, and if the answer of the maximum value corresponds to the second similarity threshold, then the theme of the candidate application icon corresponding to the maximum similarity is determined as target topic. For example, among the calculated similarities, the similarity between the image V of the candidate application icon and the image A is the largest, then determine whether the similarity between the image V of the candidate application icon and the image A is greater than the second similarity threshold, if If it is greater than that, the theme corresponding to the candidate application icon is determined as the target theme.
就上述文字识别的过程而言,可以采用OCR(Optical Character Recognition,光学字符识别)的方法来实现。在这种情况下,在识别之前,第一设备还可以对文字图像进行预处理,预处理的过程包括二值化及降噪处理,以降低特征提取算法的难度,提高识别的精度。并且,还可以检测文本线,得到文字的倾斜方向,以便对文字进行倾斜校正。As far as the above text recognition process is concerned, the method of OCR (Optical Character Recognition, Optical Character Recognition) can be used to realize. In this case, before the recognition, the first device may further preprocess the text image, and the preprocessing process includes binarization and noise reduction processing, so as to reduce the difficulty of the feature extraction algorithm and improve the recognition accuracy. In addition, the text line can also be detected to obtain the inclination direction of the text, so as to correct the inclination of the text.
又例如,可以采用训练后的特征提取网络对文字特征进行特征提取,此处可以采用例如LSTM(Long Short-Term Memory,长短期记忆网络)的序列网络提取图像的序列特征,构成特征向量。然后,可以获取主题库中各主题的应用程序名称的特征向量,进行比对,对确定出主题库中名称与目标应用程序的名称相同的候选应用程序,再结合上述图像相似度的比较过程,最终确定出目标主题。For another example, the trained feature extraction network can be used to extract the text features. Here, a sequence network such as LSTM (Long Short-Term Memory, long short-term memory network) can be used to extract the sequence features of the image to form a feature vector. Then, the feature vector of the application name of each theme in the theme library can be obtained, and the comparison is carried out to determine the candidate application program whose name is the same as that of the target application program in the theme library, and then combined with the above-mentioned image similarity comparison process, Finalize the target theme.
考虑到文字识别可能出现误识别的情况,且用户安装应用程序的数量有限,本公开还提供了一种对识别出的文字进行校正的方案。Considering that the character recognition may be wrongly recognized and the number of application programs installed by the user is limited, the present disclosure also provides a solution for correcting the recognized characters.
首先,第一设备对文字图像进行文字识别,以得到第一中间名称;First, the first device performs text recognition on the text image to obtain the first middle name;
接下来,第一设备将第一中间名称与应用程序名称库中的名称进行比对。其中,应用程序名称库可以预先配置,并且可以存储至第一设备或能与第一设备进行数据通信的其他设备中。Next, the first device compares the first intermediate name with the names in the application name library. The application name library may be pre-configured and may be stored in the first device or other devices capable of data communication with the first device.
如果第一中间名称与应用程序名称库中的一个名称一致,则可以将第一中间名称确定为目标应用程序的名称。If the first intermediate name is consistent with a name in the application name library, the first intermediate name may be determined as the name of the target application.
如果第一中间名称与应用程序名称库中的名称均不一致,则可以对第一中间名称进行校正,以确定出目标应用程序的名称。If the first intermediate name is inconsistent with the names in the application name library, the first intermediate name may be corrected to determine the name of the target application.
针对名称校正的过程,第一设备可以确定出应用程序名称库中与第一中间名称相似度最大的名称,作为第二中间名称。可以将此过程理解为字符比对过程。For the name correction process, the first device may determine the name with the greatest similarity to the first intermediate name in the application name library as the second intermediate name. This process can be understood as a character alignment process.
如果第一中间名称与第二中间名称的相似度大于名称相似度阈值,则可以将第二中间名称作为目标应用程序的名称。If the similarity between the first middle name and the second middle name is greater than the name similarity threshold, the second middle name may be used as the name of the target application.
例如,通过OCR识别出的结果为“WiFi方能月匙”,经过本方案处理后,可以将其校正为“WiFI万能钥匙”。For example, the result identified by OCR is "Wi-Fi only month key", which can be corrected to "WiFI master key" after being processed by this solution.
如果不满足上述条件,也就是说,识别出的应用程序的名称与应用程序名称库的名称均差距较大,则可以剔除对该应用程序的文字处理过程。If the above conditions are not satisfied, that is, the name of the recognized application program is far from the name of the application program name library, the word processing process of the application program can be eliminated.
此外,考虑到在主题设计时,设计人员通常仅会对系统图标和常用图标进行主题设计。因此,在结合文字判断的实施例中,还可以结合文字判断目标应用程序是否为主题设计时修改的图标,如果是,则执行上述图像相似度的比较过程,如果不是,则终止对该目标应用程序图标的分析过程。In addition, considering that when designing themes, designers usually only theme the system icons and commonly used icons. Therefore, in the embodiment of judging in combination with words, it is also possible to judge whether the target application is an icon modified during theme design in combination with words, and if so, execute the above-mentioned image similarity comparison process, and if not, terminate the target application. Analysis process of the program icon.
也就是说,在上述确定候选应用程序之前,在本公开的又一些实施例中,第一设备还可以根据目标应用程序的名称,确定目标应用程序的图标是否为主题设计时修改的图标,其中,主题设计时修改的图标指代的设计主题的人员设计的系统图标和常用图标。在目标应用程序的图标为主题设计时修改的图标的情况下,执行确定候选应用程序的操作。That is to say, before the above-mentioned determination of candidate applications, in still other embodiments of the present disclosure, the first device may further determine, according to the name of the target application, whether the icon of the target application is an icon modified during theme design, wherein , the icons modified during theme design refer to the system icons and commonly used icons designed by the person designing the theme. In the case where the icon of the target application is the icon modified at the time of theme design, the operation of determining the candidate application is performed.
S36.在检测出主题库中存在目标主题的情况下,获取目标主题的相关信息。S36. When it is detected that the target theme exists in the theme library, obtain relevant information of the target theme.
在本公开的示例性实施方式中,目标主题的相关信息可以是与目标主题下载相关的信息、目标主题的介绍信息、目标主题的安装程序中的一种或多种。In an exemplary embodiment of the present disclosure, the relevant information of the target theme may be one or more of information related to the download of the target theme, introduction information of the target theme, and an installation program of the target theme.
根据本公开的一个实施例,目标主题的相关信息为目标主题的安装程序。第一设备在获取到安装程序后,可以自动运行该安装程序,以将第一设备当前的主题切换为目标主题。具体的,第一设备可以例如借助于主题商店从服务器获取目标主题的安装程序。According to an embodiment of the present disclosure, the relevant information of the target theme is the installation program of the target theme. After acquiring the installation program, the first device can automatically run the installation program to switch the current theme of the first device to the target theme. Specifically, the first device may obtain the installation program of the target theme from the server, for example, by means of a theme store.
此步骤切换主题的过程无需用户参与,第一设备自动执行。The process of switching themes in this step does not require user participation, and is automatically executed by the first device.
根据本公开的另一个实施例,目标主题的相关信息为目标主题的下载信息,以便显示与下载信息对应的下载界面。在该下载界面上,可以响应用户的下载操作下载目标主题。According to another embodiment of the present disclosure, the relevant information of the target theme is download information of the target theme, so that a download interface corresponding to the download information is displayed. On the download interface, the target theme can be downloaded in response to the user's download operation.
如图6所示,下载信息可以包括主题名称、主题大小、开发者、主题来源、主题热度等。这些信息显示在下载界面上,下载界面可以以弹窗的形式呈现出。在下载界面上,可以配置“下载”按钮,用户点击后,可实现目标主题的下载。As shown in FIG. 6 , the download information may include topic name, topic size, developer, topic source, topic popularity, and the like. This information is displayed on the download interface, which can be presented in the form of a pop-up window. On the download interface, you can configure the "Download" button. After the user clicks, the download of the target theme can be realized.
这种基于用户进一步操作才进行主题下载的方案,给用户提供了确认的阶段,以避免误下载造成的资源消耗。This scheme of downloading the theme based on the user's further operation provides the user with a confirmation stage to avoid resource consumption caused by wrong download.
在上述各实施例的方案中,检测到了目标主题,由此,可得到与目标应用程序图标对应的主题相关信息,由此,有助于用户查看主题相关信息以及/或者实现主题的切换,整个过程简便且快捷。In the solutions of the above embodiments, the target theme is detected, thereby obtaining theme-related information corresponding to the icon of the target application program, thereby helping the user to view the theme-related information and/or realize the switching of the theme. The process is simple and fast.
此外,在第一设备检测出主题库中不存在目标主题的情况下,本公开还提供了一种辅助确定主题的方案。In addition, when the first device detects that the target theme does not exist in the theme library, the present disclosure also provides a solution for assisting in determining the theme.
首先,第一设备可以获取目标壁纸的图像。本公开示例性实施方式所述的目标壁纸可以是锁屏壁纸或桌面壁纸。First, the first device can acquire an image of the target wallpaper. The target wallpaper described in the exemplary embodiment of the present disclosure may be a lock screen wallpaper or a desktop wallpaper.
与上述步骤S32获取目标应用程序图标的图像的过程类似,第一设备可以对第二设备的显示界面进行扫描或录像,第二设备的显示界面上显示有目标壁纸。由此,第一设备可以获取目标壁纸的图像。或者,第二设备可以对自身显示界面进行截图或录屏,将图片或视频发送给第一设备,由此,第一设备也可以获取目标壁纸的图像。另外,第一设备还可以从服务器获取目标壁纸的图像。Similar to the process of acquiring the image of the target application program icon in the above step S32, the first device may scan or record the display interface of the second device, and the display interface of the second device displays the target wallpaper. Thereby, the first device can acquire the image of the target wallpaper. Alternatively, the second device can take screenshots or screen recordings of its own display interface, and send the pictures or videos to the first device, so that the first device can also acquire the image of the target wallpaper. In addition, the first device may also acquire the image of the target wallpaper from the server.
接下来,第一设备可以基于目标壁纸的图像,检测主题库中是否存在第一候选主题,该第一候选主题的壁纸与目标壁纸一致。Next, the first device may detect whether there is a first candidate theme in the theme library based on the image of the target wallpaper, and the wallpaper of the first candidate theme is consistent with the target wallpaper.
具体的,可以将目标壁纸的图像与主题库中各主题的壁纸的图像进行相似度比较,并根据相似度比较的结果,确定主题库中是否存在第一候选主题。Specifically, the similarity between the image of the target wallpaper and the wallpaper of each theme in the theme library may be compared, and according to the result of the similarity comparison, it is determined whether there is a first candidate theme in the theme library.
一方面,可以提取目标壁纸的特征,该特征包括壁纸图像的全局特征、局部特征、颜色特征、形状特征、纹理特征中的一种或多种。再获取主题库中各主题对应壁纸的特征,利用特征相似度的比较过程确定主题库中是否存在第一候选主题。可以理解的是,这种图像检索的方式有助于主题库中各主题壁纸模板的扩展,仅需将壁纸添加至主题库,并对应主题即可。On the one hand, features of the target wallpaper can be extracted, the features include one or more of global features, local features, color features, shape features, and texture features of the wallpaper image. Then, the characteristics of the wallpaper corresponding to each theme in the theme database are obtained, and the comparison process of the feature similarity is used to determine whether there is a first candidate theme in the theme database. It can be understood that this method of image retrieval is helpful for the expansion of the wallpaper templates of each theme in the theme library, and it is only necessary to add wallpapers to the theme library and correspond to the theme.
另一方面,可以利用训练后的神经网络进行分类处理,以从主题库中确定出壁纸与目标壁纸一致的第一候选主题。On the other hand, the trained neural network can be used for classification processing to determine the first candidate theme whose wallpaper is consistent with the target wallpaper from the theme library.
针对具体确定主题库中是否存在第一候选主题的过程,可以确定出相似度的最大值,如果该最大值大于第三相似度阈值,则将该相似度最大值对应壁纸的主题,确定为第一候选主题。例如,计算出的多个相似度中,壁纸y与目标壁纸的相似度最大,则确定壁纸y与目标壁纸的相似度是否大于第三相似度阈值,如果大于,则将壁纸y对应的主题确定为 第一候选主题。For the process of specifically determining whether there is a first candidate theme in the theme library, the maximum value of the similarity can be determined, and if the maximum value is greater than the third similarity threshold, the theme of the wallpaper corresponding to the maximum similarity value is determined as the first a candidate subject. For example, among the multiple calculated similarities, the similarity between wallpaper y and the target wallpaper is the largest, then determine whether the similarity between wallpaper y and the target wallpaper is greater than the third similarity threshold, and if it is greater, determine the theme corresponding to wallpaper y. as the first candidate topic.
随后,在检测出主题库中存在第一候选主题的情况下,获取第一候选主题的相关信息。类似地,第一候选主题的相关信息可以是与第一候选主题下载相关的信息、第一候选主题的介绍信息、第一候选主题的安装程序中的一种或多种。进而有助于用户查看第一候选主题的相关信息以及/或者将第一设备的主题切换为第一候选主题。Subsequently, when it is detected that the first candidate topic exists in the topic database, relevant information of the first candidate topic is acquired. Similarly, the related information of the first candidate theme may be one or more of information related to the download of the first candidate theme, introduction information of the first candidate theme, and an installation program of the first candidate theme. This further helps the user to view the relevant information of the first candidate topic and/or switch the topic of the first device to the first candidate topic.
此外,在检测出主题库中不存在第一候选主题的情况下,本公开的一些实施例还可以从主题库中确定第二候选主题。该第二候选主题是主题库中应用程序图标的图像与目标应用程序图标的图像相似度最大的主题。基于步骤S34检测是否存在目标主题的过程,可以通过此过程中计算出的各相似度,确定出第二候选主题。在这种情况下,可以获取第二候选主题的相关信息。类似地,第二候选主题的相关信息可以是与第二候选主题下载相关的信息、第二候选主题的介绍信息、第二候选主题的安装程序中的一种或多种。进而有助于用户查看第二候选主题的相关信息以及/或者将第一设备的主题切换为第二候选主题。In addition, in the case where it is detected that the first candidate topic does not exist in the topic library, some embodiments of the present disclosure may also determine the second candidate topic from the topic library. The second candidate theme is the theme with the greatest similarity between the image of the application icon in the theme library and the image of the target application icon. Based on the process of detecting whether there is a target theme in step S34, the second candidate theme can be determined through each similarity calculated in this process. In this case, relevant information on the second candidate topic can be acquired. Similarly, the related information of the second candidate theme may be one or more of information related to the download of the second candidate theme, introduction information of the second candidate theme, and an installation program of the second candidate theme. This further helps the user to view the relevant information of the second candidate topic and/or switch the topic of the first device to the second candidate topic.
图7示意性示出了根据本公开实施例的整个主题相关信息获取过程的流程图。FIG. 7 schematically shows a flow chart of the entire subject-related information acquisition process according to an embodiment of the present disclosure.
参考图7,在步骤S702中,第一设备进行APP图标定位,以确定图像中所有APP图标的位置及大小,以便于后续文字识别和图标识别。具体的,可以采用深度学习的目标检测方法或图像边缘检测方法来实现APP图标的定位。Referring to FIG. 7 , in step S702, the first device performs APP icon positioning to determine the positions and sizes of all APP icons in the image, so as to facilitate subsequent text recognition and icon recognition. Specifically, a deep learning target detection method or an image edge detection method can be used to locate the APP icon.
在步骤S704中,第一设备可以对APP图标与文字区域进行裁剪,以便分别执行文字识别与图标识别的处理。In step S704, the first device may crop the APP icon and the text area, so as to perform the processing of text recognition and icon recognition respectively.
在步骤S706中,第一设备进行文字识别与校正;在步骤S708中,第一设备基于识别出的文字从图像中确定出系统图标和常用图标,这些图标为主题设计时需要进行样式修改的图标。In step S706, the first device performs text recognition and correction; in step S708, the first device determines system icons and commonly used icons from the image based on the recognized text, and these icons are icons that need to be modified in style during theme design .
在步骤S710中,第一设备进行图标图像比对,以确定出图像中APP图标与主题库中图标的相似度。其中,这里的相似度可以是图像中各APP图标与主题库中图标进行相似度比较后,得到的相似度平均值,即,主题库中一个主题,对应一个相似度平均值。In step S710, the first device performs icon image comparison to determine the similarity between the APP icon in the image and the icon in the theme library. The similarity here may be the average similarity obtained after comparing the similarity between each APP icon in the image and the icon in the theme library, that is, a theme in the theme library corresponds to an average similarity.
在步骤S712中,判断是否能确定出目标主题,若是,则执行步骤S714;若否,则执行步骤S716。In step S712, it is judged whether the target theme can be determined, if yes, then step S714 is executed; if not, step S716 is executed.
在步骤S714中,第一设备获取目标主题的相关信息。In step S714, the first device obtains relevant information of the target topic.
在步骤S716中,获取壁纸图像,进行壁纸相似度比对。In step S716, a wallpaper image is obtained, and the wallpaper similarity is compared.
在步骤S718中,判断是否能基于壁纸相似度的比对结果确定出第一候选主题,若是,则执行步骤S720;若否,则执行步骤S722。In step S718, it is judged whether the first candidate theme can be determined based on the comparison result of the similarity of the wallpapers, if yes, go to step S720; if not, go to step S722.
在步骤S720中,第一设备获取第一候选主题的相关信息。In step S720, the first device obtains relevant information of the first candidate topic.
在步骤S722中,利用APP图标相似度确定出第二候选主题,第二候选主题是图标与获取到的APP图标相似度最大的主题。In step S722, a second candidate theme is determined by using the similarity of the APP icons, and the second candidate theme is the theme with the greatest similarity between the icon and the obtained APP icon.
在步骤S724中,第一设备获取第二候选主题的相关信息。In step S724, the first device obtains relevant information of the second candidate topic.
综上,本公开示例性实施方式的主题相关信息获取方法,基于获取到的图像,对该图像进行分析,以确定出该图像对应的主题,并获取主题的相关信息。由此,有助于用户查看主题相关信息以及/或者实现主题的切换,整个过程简便且快捷。To sum up, in the method for obtaining subject-related information in an exemplary embodiment of the present disclosure, based on the obtained image, the image is analyzed to determine the subject corresponding to the image, and the related information of the subject is obtained. Thereby, it is helpful for the user to view the relevant information of the topic and/or realize the switching of the topic, and the whole process is simple and fast.
应当注意,尽管在附图中以特定顺序描述了本公开中方法的各个步骤,但是,这并非要求或者暗示必须按照该特定顺序来执行这些步骤,或是必须执行全部所示的步骤才能实现期望的结果。附加的或备选的,可以省略某些步骤,将多个步骤合并为一个步骤执行,以及/或者将一个步骤分解为多个步骤执行等。It should be noted that although the various steps of the methods of the present disclosure are depicted in the figures in a particular order, this does not require or imply that the steps must be performed in that particular order, or that all illustrated steps must be performed to achieve the desired the result of. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step for execution, and/or one step may be decomposed into multiple steps for execution, and the like.
进一步的,本示例实施方式中还提供了一种主题相关信息获取装置。Further, an apparatus for acquiring topic-related information is also provided in this exemplary embodiment.
图8示意性示出了本公开的示例性实施方式的主题相关信息获取装置的方框图。参考图8,根据本公开的示例性实施方式的主题相关信息获取装置8可以包括图像获取模块81、主题检测模块83和第一主题信息获取模块85。FIG. 8 schematically shows a block diagram of a subject-related information acquisition apparatus of an exemplary embodiment of the present disclosure. Referring to FIG. 8 , the subject-related information acquisition apparatus 8 according to an exemplary embodiment of the present disclosure may include an image acquisition module 81 , a subject detection module 83 , and a first subject information acquisition module 85 .
具体的,图像获取模块81可以被配置为获取目标应用程序图标的图像;主题检测模块83可以被配置为基于目标应用程序图标的图像,检测主题库中是否存在目标主题,目标主题的应用程序图标的样式与目标应用程序图标的样式一致;第一主题信息获取模块85可以被配置为在检测出主题库中存在目标主题的情况下,获取目标主题的相关信息。Specifically, the image acquisition module 81 may be configured to acquire the image of the target application icon; the theme detection module 83 may be configured to detect whether the target theme exists in the theme library based on the image of the target application icon, and the application icon of the target theme The style of the icon is consistent with the style of the target application icon; the first theme information obtaining module 85 may be configured to obtain relevant information of the target theme in the case of detecting that the target theme exists in the theme library.
根据本公开的示例性实施例,主题检测模块83可以被配置为执行:将目标应用程序图标的图像与主题库中各主题的应用程序图标的图像进行相似度比较;根据相似度比较的结果,确定主题库中是否存在目标主题。According to an exemplary embodiment of the present disclosure, the theme detection module 83 may be configured to perform: compare the similarity between the image of the target application icon and the image of the application icon of each theme in the theme library; according to the result of the similarity comparison, Determine if the target theme exists in the theme library.
根据本公开的示例性实施例,主题检测模块83还可以被配置为执行:获取目标应用程序图标对应的文字图像;利用目标应用程序图标对应的文字图像以及目标应用程序图标的图像,检测主题库中是否存在目标主题。According to an exemplary embodiment of the present disclosure, the theme detection module 83 may also be configured to perform: acquiring a text image corresponding to the icon of the target application; detecting the theme library by using the text image corresponding to the icon of the target application and the image of the icon of the target application Whether the target topic exists in .
根据本公开的示例性实施例,主题检测模块83检测主题库中是否存在目标主题的过程还可以被配置为执行:对文字图像进行文字识别,以确定出目标应用程序的名称;从主题库中确定出名称与目标应用程序的名称相同的候选应用程序,构建候选应用程序集合;获取候选应用程序集合中各候选应用程序图标的图像;将目标应用程序图标的图像与各候选应用程序图标的图像进行相似度比较;根据相似度比较的结果,确定主题库中是否存在目标主题。According to an exemplary embodiment of the present disclosure, the process of detecting whether a target theme exists in the theme library by the theme detection module 83 may also be configured to perform: character recognition on text images to determine the name of the target application; Determine a candidate application with the same name as the target application, build a candidate application set; obtain the image of each candidate application icon in the candidate application set; compare the image of the target application icon with the image of each candidate application icon Carry out similarity comparison; according to the result of similarity comparison, determine whether there is a target theme in the theme library.
根据本公开的示例性实施例,主题检测模块83对文字图像进行文字识别以确定出目标应用程序的名称的过程可以被配置为执行:对文字图像进行文字识别,以得到第一中间名称;将第一中间名称与应用程序名称库中的名称进行比对;如果第一中间名称与应用程序名称库中的一个名称一致,则将第一中间名称确定为目标应用程序的名称;如果第一中间名称与应用程序名称库中名称均不一致,则对第一中间名称进行校正,以确定出目标应用程序的名称。According to an exemplary embodiment of the present disclosure, the process of performing text recognition on the text image by the subject detection module 83 to determine the name of the target application may be configured to perform: text recognition on the text image to obtain the first middle name; The first intermediate name is compared with the name in the application name library; if the first intermediate name is consistent with a name in the application name library, the first intermediate name is determined as the name of the target application; if the first intermediate name is consistent with a name in the application name library If the name is inconsistent with the name in the application name library, the first intermediate name is corrected to determine the name of the target application.
根据本公开的示例性实施例,主题检测模块83对第一中间名称进行校正以确定出目标应用程序的名称的过程可以被配置为执行:确定应用程序名称库中与第一中间名称相似度最大的名称,作为第二中间名称;如果第一中间名称与第二中间名称的相似度大于名称相似度阈值,则将第二中间名称作为目标应用程序的名称。According to an exemplary embodiment of the present disclosure, the process in which the subject detection module 83 corrects the first intermediate name to determine the name of the target application program may be configured to perform: determining that the application program name library is most similar to the first intermediate name The name of the second middle name is used as the second middle name; if the similarity between the first middle name and the second middle name is greater than the name similarity threshold, the second middle name is used as the name of the target application.
根据本公开的示例性实施例,主题检测模块83在确定候选应用程序之前,还可以配置为执行:根据目标应用程序的名称,确定目标应用程序的图标是否为主题设计时修改的图标;其中,在目标应用程序的图标为主题设计时修改的图标的情况下,执行确定候选应用程序的操作。According to an exemplary embodiment of the present disclosure, before determining the candidate application program, the theme detection module 83 may be further configured to execute: according to the name of the target application program, determine whether the icon of the target application program is an icon modified during theme design; wherein, In the case where the icon of the target application is the icon modified at the time of theme design, the operation of determining the candidate application is performed.
根据本公开的示例性实施例,第一主题信息获取模块85可以被配置为执行:获取目标主题的安装程序,以便运行目标主题的安装程序,将主题切换为目标主题。According to an exemplary embodiment of the present disclosure, the first theme information obtaining module 85 may be configured to perform: obtaining an installation program of the target theme, so as to run the installation program of the target theme, and switch the theme to the target theme.
根据本公开的示例性实施例,第一主题信息获取模块85还可以被配置为执行:获取目标主题的下载信息,以便显示与下载信息对应的下载界面,并响应用户的下载操作下载目标主题。According to an exemplary embodiment of the present disclosure, the first theme information obtaining module 85 may be further configured to perform: obtaining download information of a target theme so as to display a download interface corresponding to the download information, and downloading the target theme in response to a user's download operation.
根据本公开的示例性实施例,主题相关信息获取装置配置于第一设备中,图像获取模块81可以被配置为执行:对第二设备的界面进行扫描操作,以获取目标应用程序图标的图像;其中,第二设备的界面上显示有目标应用程序图标的图像。According to an exemplary embodiment of the present disclosure, the apparatus for obtaining subject-related information is configured in the first device, and the image obtaining module 81 may be configured to perform: scanning the interface of the second device to obtain the image of the target application icon; The image of the target application icon is displayed on the interface of the second device.
根据本公开的示例性实施例,图像获取模块81还可以被配置为执行:在获取目标应用程序图标的图像之前,确定第二设备的界面的图像占扫描区域的尺寸;如果第二设备的界面的图像占扫描区域的尺寸超过尺寸阈值,则获取目标应用程序图标的图像。According to an exemplary embodiment of the present disclosure, the image acquisition module 81 may be further configured to perform: before acquiring the image of the target application program icon, determine the size of the scan area that the image of the interface of the second device occupies; if the interface of the second device occupies the size of the scanning area; If the size of the image occupying the scanning area exceeds the size threshold, the image of the icon of the target application is obtained.
根据本公开的示例性实施例,图像获取模块81还可以被配置为执行:在获取目标应用程序图标的图像之前,确定第二设备的界面的图像占扫描区域的尺寸;如果第二设备的界面的图像占扫描区域的尺寸超过尺寸阈值,则检测第一设备是否处于位置稳定的状态;如果第一设备处于位置稳定的状态,则获取目标应用程序图标的图像。According to an exemplary embodiment of the present disclosure, the image acquisition module 81 may be further configured to perform: before acquiring the image of the target application program icon, determine the size of the scan area that the image of the interface of the second device occupies; if the interface of the second device occupies the size of the scanning area; If the size of the image in the scanning area exceeds the size threshold, it is detected whether the first device is in a stable position; if the first device is in a stable position, an image of the icon of the target application is acquired.
根据本公开的示例性实施例,图像获取模块81检测第一设备是否处于位置稳定的状态的过程可以被配置为执行:利用基于扫描操作而得到的多帧图像,生成各帧图像对应的颜色直方图;根据各帧图像对应的颜色直方图,确定第一设备是否处于位置稳定的状态。According to an exemplary embodiment of the present disclosure, the process in which the image acquisition module 81 detects whether the first device is in a positionally stable state may be configured to perform: generating a color histogram corresponding to each frame of images using multiple frames of images obtained based on the scanning operation Figure; according to the color histogram corresponding to each frame of image, it is determined whether the first device is in a state of stable position.
根据本公开的示例性实施例,图像获取模块81还可以被配置为执行:获取包含目标应用程序图标的图像的视频;从视频中获取目标应用程序图标的图像。According to an exemplary embodiment of the present disclosure, the image acquisition module 81 may be further configured to perform: acquiring a video including an image of a target application icon; and acquiring an image of the target application icon from the video.
根据本公开的示例性实施例,参考图9,相比于主题相关信息获取装置8,主题相关信息获取装置9还可以包括第二主题信息获取模块91。According to an exemplary embodiment of the present disclosure, referring to FIG. 9 , compared with the topic-related information acquiring apparatus 8 , the topic-related information acquiring apparatus 9 may further include a second topic information acquiring module 91 .
具体的,第二主题信息获取模块91可以被配置为执行:在检测出主题库中不存在目标主题的情况下,获取目标壁纸的图像;基于目标壁纸的图像,检测主题库中是否存在第一候选主题,第一候选主题的壁纸与目标壁纸一致;在检测出主题库中存在第一候选主题的情况下,获取第一候选主题的相关信息。Specifically, the second theme information obtaining module 91 may be configured to execute: when it is detected that the target theme does not exist in the theme library, obtain the image of the target wallpaper; based on the image of the target wallpaper, detect whether the first theme exists in the theme library The candidate theme, the wallpaper of the first candidate theme is consistent with the target wallpaper; in the case of detecting that the first candidate theme exists in the theme library, relevant information of the first candidate theme is obtained.
根据本公开的示例性实施例,第二主题信息获取模块91基于目标壁纸的图像检测主题库中是否存在第一候选主题的过程可以被配置为执行:将目标壁纸的图像与主题库中各主题的壁纸的图像进行相似度比较;根据相似度比较的结果,确定主题库中是否存在第一候选主题。According to an exemplary embodiment of the present disclosure, the process in which the second theme information acquisition module 91 detects whether the first candidate theme exists in the theme library based on the image of the target wallpaper may be configured to perform: compare the image of the target wallpaper with each theme in the theme library Similarity comparison is performed on the images of the wallpaper; according to the result of the similarity comparison, it is determined whether there is a first candidate theme in the theme library.
根据本公开的示例性实施例,参考图10,相比于主题相关信息获取装置9,主题相关信息获取装置10还可以包括第三主题信息获取模块101。According to an exemplary embodiment of the present disclosure, referring to FIG. 10 , compared to the topic-related information acquisition apparatus 9 , the topic-related information acquisition apparatus 10 may further include a third topic-related information acquisition module 101 .
具体的,第三主题信息获取模块101可以被配置为执行:从主题库中确定第二候选主题,第二候选主题是主题库中应用程序图标的图像与目标应用程序图标的图像相似度最大的主题;获取第二候选主题的相关信息。Specifically, the third topic information acquisition module 101 may be configured to perform: determining a second candidate topic from the topic library, where the second candidate topic is the image of the application icon in the topic library with the greatest similarity to the image of the target application icon topic; get information about the second candidate topic.
由于本公开实施方式的主题相关信息获取装置的各个功能模块与上述方法实施方式中相同,因此在此不再赘述。Since the respective functional modules of the apparatus for obtaining subject-related information in the embodiments of the present disclosure are the same as those in the above-mentioned method embodiments, they will not be repeated here.
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、终端装置、或者网络设备等)执行根据本公开实施方式的方法。From the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure may be embodied in the form of software products, and the software products may be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to cause a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to an embodiment of the present disclosure.
此外,上述附图仅是根据本公开示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。In addition, the above-mentioned figures are merely schematic illustrations of the processes included in the methods according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the chronological order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, in multiple modules.
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of the apparatus for action performance are mentioned in the above detailed description, this division is not mandatory. Indeed, according to embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided into multiple modules or units to be embodied.
本领域技术人员在考虑说明书及实践这里公开的内容后,将容易想到本公开的其他实施例。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由权利要求指出。Other embodiments of the present disclosure will readily suggest themselves to those skilled in the art upon consideration of the specification and practice of what is disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (20)

  1. 一种主题相关信息获取方法,包括:A method for obtaining subject-related information, including:
    获取目标应用程序图标的图像;Get the image of the target application icon;
    基于所述目标应用程序图标的图像,检测主题库中是否存在目标主题,所述目标主题的应用程序图标的样式与所述目标应用程序图标的样式一致;Detecting whether a target theme exists in the theme library based on the image of the target application icon, and the style of the application icon of the target theme is consistent with the style of the target application icon;
    在检测出所述主题库中存在所述目标主题的情况下,获取所述目标主题的相关信息。When it is detected that the target theme exists in the theme library, relevant information of the target theme is acquired.
  2. 根据权利要求1所述的主题相关信息获取方法,其中,基于所述目标应用程序图标的图像,检测主题库中是否存在目标主题,包括:The method for obtaining theme-related information according to claim 1, wherein, based on the image of the target application program icon, detecting whether the target theme exists in the theme library comprises:
    将所述目标应用程序图标的图像与所述主题库中各主题的应用程序图标的图像进行相似度比较;comparing the similarity between the image of the target application icon and the image of the application icon of each theme in the theme library;
    根据相似度比较的结果,确定所述主题库中是否存在所述目标主题。According to the result of the similarity comparison, it is determined whether the target subject exists in the subject database.
  3. 根据权利要求1所述的主题相关信息获取方法,其中,基于所述目标应用程序图标的图像,检测主题库中是否存在目标主题,包括:The method for obtaining theme-related information according to claim 1, wherein, based on the image of the target application program icon, detecting whether the target theme exists in the theme library comprises:
    获取所述目标应用程序图标对应的文字图像;obtaining the text image corresponding to the icon of the target application;
    利用所述目标应用程序图标对应的文字图像以及所述目标应用程序图标的图像,检测主题库中是否存在目标主题。Using the text image corresponding to the target application program icon and the image of the target application program icon, it is detected whether there is a target theme in the theme library.
  4. 根据权利要求3所述的主题相关信息获取方法,其中,利用所述目标应用程序图标对应的文字图像以及所述目标应用程序图标的图像,检测主题库中是否存在目标主题,包括:The method for obtaining theme-related information according to claim 3, wherein detecting whether the target theme exists in the theme library by using the text image corresponding to the target application program icon and the image of the target application program icon, comprising:
    对所述文字图像进行文字识别,以确定出目标应用程序的名称;Perform text recognition on the text image to determine the name of the target application;
    从所述主题库中确定出名称与所述目标应用程序的名称相同的候选应用程序,构建候选应用程序集合;Determine a candidate application whose name is the same as that of the target application from the theme library, and construct a candidate application set;
    获取所述候选应用程序集合中各所述候选应用程序图标的图像;acquiring the image of each candidate application icon in the candidate application set;
    将所述目标应用程序图标的图像与各所述候选应用程序图标的图像进行相似度比较;comparing the similarity between the image of the target application icon and the image of each candidate application icon;
    根据相似度比较的结果,确定所述主题库中是否存在所述目标主题。According to the result of the similarity comparison, it is determined whether the target subject exists in the subject database.
  5. 根据权利要求4所述的主题相关信息获取方法,其中,对所述文字图像进行文字识别,以确定出目标应用程序的名称,包括:The method for obtaining subject-related information according to claim 4, wherein character recognition is performed on the text image to determine the name of the target application, comprising:
    对所述文字图像进行文字识别,以得到第一中间名称;performing text recognition on the text image to obtain a first middle name;
    将所述第一中间名称与应用程序名称库中的名称进行比对;comparing the first intermediate name with the names in the application name library;
    如果所述第一中间名称与所述应用程序名称库中的一个名称一致,则将所述第一中间名称确定为所述目标应用程序的名称;If the first intermediate name is consistent with a name in the application name library, determining the first intermediate name as the name of the target application;
    如果所述第一中间名称与所述应用程序名称库中名称均不一致,则对所述第一中间名称进行校正,以确定出目标应用程序的名称。If the first intermediate name is inconsistent with the name in the application name library, the first intermediate name is corrected to determine the name of the target application.
  6. 根据权利要求5所述的主题相关信息获取方法,其中,对所述第一中间名称进行校正,以确定出目标应用程序的名称,包括:The method for obtaining subject-related information according to claim 5, wherein correcting the first intermediate name to determine the name of the target application program comprises:
    确定所述应用程序名称库中与所述第一中间名称相似度最大的名称,作为第二中间名称;determining the name with the greatest similarity to the first intermediate name in the application name library as the second intermediate name;
    如果所述第一中间名称与所述第二中间名称的相似度大于名称相似度阈值,则将所述第二中间名称作为所述目标应用程序的名称。If the similarity between the first middle name and the second middle name is greater than a name similarity threshold, the second middle name is used as the name of the target application.
  7. 根据权利要求4所述的主题相关信息获取方法,其中,在确定所述候选应用程序之前,所述主题相关信息获取方法还包括:The method for acquiring topic-related information according to claim 4, wherein, before determining the candidate application program, the method for acquiring topic-related information further comprises:
    根据所述目标应用程序的名称,确定所述目标应用程序的图标是否为主题设计时修改的图标;According to the name of the target application, determine whether the icon of the target application is an icon modified during theme design;
    其中,在所述目标应用程序的图标为主题设计时修改的图标的情况下,执行确定所述 候选应用程序的操作。Wherein, when the icon of the target application is an icon modified during theme design, the operation of determining the candidate application is performed.
  8. 根据权利要求1所述的主题相关信息获取方法,其中,获取所述目标主题的相关信息包括:The method for obtaining subject-related information according to claim 1, wherein obtaining the relevant information of the target subject comprises:
    获取所述目标主题的安装程序,以便运行所述目标主题的安装程序,将主题切换为所述目标主题。The installation program of the target theme is obtained, so as to run the installation program of the target theme and switch the theme to the target theme.
  9. 根据权利要求1所述的主题相关信息获取方法,其中,获取所述目标主题的相关信息包括:The method for obtaining subject-related information according to claim 1, wherein obtaining the relevant information of the target subject comprises:
    获取所述目标主题的下载信息,以便显示与所述下载信息对应的下载界面,并响应用户的下载操作下载所述目标主题。The download information of the target theme is acquired, so as to display a download interface corresponding to the download information, and the target theme is downloaded in response to a user's download operation.
  10. 根据权利要求1所述的主题相关信息获取方法,其中,应用于第一设备,获取目标应用程序图标的图像包括:The method for obtaining theme-related information according to claim 1, wherein, applied to the first device, obtaining the image of the icon of the target application program comprises:
    对第二设备的界面进行扫描操作,以获取目标应用程序图标的图像;Scan the interface of the second device to obtain the image of the icon of the target application;
    其中,所述第二设备的界面上显示有所述目标应用程序图标的图像。The image of the target application icon is displayed on the interface of the second device.
  11. 根据权利要求10所述的主题相关信息获取方法,其中,在获取目标应用程序图标的图像之前,所述主题相关信息获取方法还包括:The method for acquiring topic-related information according to claim 10, wherein before acquiring the image of the target application icon, the method for acquiring topic-related information further comprises:
    确定所述第二设备的界面的图像占扫描区域的尺寸;determining the size of the scanning area occupied by the image of the interface of the second device;
    如果所述第二设备的界面的图像占扫描区域的尺寸超过尺寸阈值,则获取目标应用程序图标的图像。If the size of the image of the interface of the second device occupying the scanning area exceeds the size threshold, acquire the image of the icon of the target application.
  12. 根据权利要求10所述的主题相关信息获取方法,其中,在获取目标应用程序图标的图像之前,所述主题相关信息获取方法还包括:The method for acquiring topic-related information according to claim 10, wherein before acquiring the image of the target application icon, the method for acquiring topic-related information further comprises:
    确定所述第二设备的界面的图像占扫描区域的尺寸;determining the size of the scanning area occupied by the image of the interface of the second device;
    如果所述第二设备的界面的图像占扫描区域的尺寸超过尺寸阈值,则检测所述第一设备是否处于位置稳定的状态;If the size of the image of the interface of the second device occupying the scanning area exceeds a size threshold, detecting whether the first device is in a stable position;
    如果所述第一设备处于位置稳定的状态,则获取目标应用程序图标的图像。If the first device is in a positionally stable state, an image of the icon of the target application is acquired.
  13. 根据权利要求12所述的主题相关信息获取方法,其中,检测所述第一设备是否处于位置稳定的状态包括:The method for acquiring topic-related information according to claim 12, wherein detecting whether the first device is in a positionally stable state comprises:
    利用基于扫描操作而得到的多帧图像,生成各帧图像对应的颜色直方图;Using the multi-frame images obtained based on the scanning operation, the color histogram corresponding to each frame image is generated;
    根据各帧图像对应的颜色直方图,确定所述第一设备是否处于位置稳定的状态。According to the color histogram corresponding to each frame of image, it is determined whether the first device is in a state of stable position.
  14. 根据权利要求1所述的主题相关信息获取方法,其中,获取目标应用程序图标的图像包括:The method for obtaining theme-related information according to claim 1, wherein obtaining the image of the target application program icon comprises:
    获取包含所述目标应用程序图标的图像的视频;obtaining a video containing an image of the target application icon;
    从所述视频中获取所述目标应用程序图标的图像。An image of the target application icon is obtained from the video.
  15. 根据权利要求1至14中任一项所述的主题相关信息获取方法,其中,在检测出所述主题库中不存在所述目标主题的情况下,所述主题相关信息获取方法还包括:The method for acquiring topic-related information according to any one of claims 1 to 14, wherein, in the case where it is detected that the target topic does not exist in the topic database, the method for acquiring topic-related information further comprises:
    获取目标壁纸的图像;Get the image of the target wallpaper;
    基于所述目标壁纸的图像,检测所述主题库中是否存在第一候选主题,所述第一候选主题的壁纸与所述目标壁纸一致;based on the image of the target wallpaper, detecting whether there is a first candidate theme in the theme library, and the wallpaper of the first candidate theme is consistent with the target wallpaper;
    在检测出所述主题库中存在所述第一候选主题的情况下,获取所述第一候选主题的相关信息。In the case of detecting that the first candidate topic exists in the topic database, obtain relevant information of the first candidate topic.
  16. 根据权利要求15所述的主题相关信息获取方法,其中,基于所述目标壁纸的图像,检测所述主题库中是否存在第一候选主题,包括:The method for obtaining theme-related information according to claim 15, wherein, based on the image of the target wallpaper, detecting whether there is a first candidate theme in the theme library comprises:
    将所述目标壁纸的图像与所述主题库中各主题的壁纸的图像进行相似度比较;comparing the image of the target wallpaper with the images of the wallpapers of each theme in the theme library;
    根据相似度比较的结果,确定所述主题库中是否存在所述第一候选主题。According to the result of the similarity comparison, it is determined whether the first candidate topic exists in the topic database.
  17. 根据权利要求15所述的主题相关信息获取方法,其中,在检测出所述主题库中不存在所述第一候选主题的情况下,所述主题相关信息获取方法还包括:The method for acquiring topic-related information according to claim 15, wherein, in the case where it is detected that the first candidate topic does not exist in the topic database, the method for acquiring topic-related information further comprises:
    从所述主题库中确定第二候选主题,所述第二候选主题是所述主题库中应用程序图标的图像与所述目标应用程序图标的图像相似度最大的主题;determining a second candidate theme from the theme library, where the second candidate theme is the theme with the greatest similarity between the image of the application icon in the theme library and the image of the target application icon;
    获取所述第二候选主题的相关信息。Obtain relevant information of the second candidate topic.
  18. 一种主题相关信息获取装置,包括:A subject-related information acquisition device, comprising:
    图像获取模块,被配置为获取目标应用程序图标的图像;an image acquisition module, configured to acquire the image of the icon of the target application;
    主题检测模块,被配置为基于所述目标应用程序图标的图像,检测主题库中是否存在目标主题,所述目标主题的应用程序图标的样式与所述目标应用程序图标的样式一致;a theme detection module, configured to detect whether a target theme exists in the theme library based on the image of the target application icon, and the style of the application icon of the target theme is consistent with the style of the target application icon;
    第一主题信息获取模块,被配置为在检测出所述主题库中存在所述目标主题的情况下,获取所述目标主题的相关信息。The first topic information acquisition module is configured to acquire the relevant information of the target topic when it is detected that the target topic exists in the topic library.
  19. 一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实现如权利要求1至17中任一项所述的主题相关信息获取方法。A computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the subject-related information acquisition method according to any one of claims 1 to 17.
  20. 一种电子设备,包括:An electronic device comprising:
    处理器;processor;
    存储器,被配置为存储一个或多个程序,当所述一个或多个程序被所述处理器执行时,使得所述处理器实现如权利要求1至17中任一项所述的主题相关信息获取方法。a memory configured to store one or more programs which, when executed by the processor, cause the processor to implement subject-related information as claimed in any one of claims 1 to 17 get method.
PCT/CN2021/106300 2020-09-21 2021-07-14 Method and apparatus for acquiring information related to subject, and storage medium and electronic device WO2022057419A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010997678.7 2020-09-21
CN202010997678.7A CN114253437A (en) 2020-09-21 2020-09-21 Theme related information acquisition method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
WO2022057419A1 true WO2022057419A1 (en) 2022-03-24

Family

ID=80775863

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/106300 WO2022057419A1 (en) 2020-09-21 2021-07-14 Method and apparatus for acquiring information related to subject, and storage medium and electronic device

Country Status (2)

Country Link
CN (1) CN114253437A (en)
WO (1) WO2022057419A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984469A (en) * 2014-05-28 2014-08-13 深圳市金立通信设备有限公司 Application icon matching method, terminal and network system
KR20150134519A (en) * 2014-05-21 2015-12-02 주식회사 안랩 Method and apparatus for detecting icon spoofing of mobile application
CN105204709A (en) * 2015-07-22 2015-12-30 维沃移动通信有限公司 Theme switching method and device
CN109002441A (en) * 2017-06-06 2018-12-14 阿里巴巴集团控股有限公司 Determination method, the exception of Apply Names similarity apply detection method and system
CN109246302A (en) * 2018-09-13 2019-01-18 徐州新南湖科技有限公司 A kind of app theme method of adjustment and system based on mobile phone shell
KR20190008699A (en) * 2017-07-17 2019-01-25 경희대학교 산학협력단 Method, system and computer program for semantic image retrieval based on topic modeling

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140004964A (en) * 2012-07-03 2014-01-14 주식회사 케이티 Method and market server for providing application icon
CN110908565A (en) * 2018-09-18 2020-03-24 中兴通讯股份有限公司 Method, device, equipment and storage medium for customizing screen theme
KR20200102838A (en) * 2019-02-22 2020-09-01 삼성전자주식회사 Electronic device for searching content by using image and method for controlling thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150134519A (en) * 2014-05-21 2015-12-02 주식회사 안랩 Method and apparatus for detecting icon spoofing of mobile application
CN103984469A (en) * 2014-05-28 2014-08-13 深圳市金立通信设备有限公司 Application icon matching method, terminal and network system
CN105204709A (en) * 2015-07-22 2015-12-30 维沃移动通信有限公司 Theme switching method and device
CN109002441A (en) * 2017-06-06 2018-12-14 阿里巴巴集团控股有限公司 Determination method, the exception of Apply Names similarity apply detection method and system
KR20190008699A (en) * 2017-07-17 2019-01-25 경희대학교 산학협력단 Method, system and computer program for semantic image retrieval based on topic modeling
CN109246302A (en) * 2018-09-13 2019-01-18 徐州新南湖科技有限公司 A kind of app theme method of adjustment and system based on mobile phone shell

Also Published As

Publication number Publication date
CN114253437A (en) 2022-03-29

Similar Documents

Publication Publication Date Title
CN109961009B (en) Pedestrian detection method, system, device and storage medium based on deep learning
US10943106B2 (en) Recognizing text in image data
CN109299315B (en) Multimedia resource classification method and device, computer equipment and storage medium
JP7058760B2 (en) Image processing methods and their devices, terminals and computer programs
US9390340B2 (en) Image-based character recognition
WO2017045443A1 (en) Image retrieval method and system
US11455491B2 (en) Method and device for training image recognition model, and storage medium
CN109189879B (en) Electronic book display method and device
WO2019041519A1 (en) Target tracking device and method, and computer-readable storage medium
KR20160099497A (en) Method and apparatus for recognizing handwriting
US20190164002A1 (en) Electronic device recognizing text in image
CN107871001B (en) Audio playing method and device, storage medium and electronic equipment
CN112200062A (en) Target detection method and device based on neural network, machine readable medium and equipment
CN111242273B (en) Neural network model training method and electronic equipment
WO2015003606A1 (en) Method and apparatus for recognizing pornographic image
US10893203B2 (en) Photographing method and apparatus, and terminal device
US20210281744A1 (en) Action recognition method and device for target object, and electronic apparatus
WO2022033111A1 (en) Image information extraction method, training method and apparatus, medium, and electronic device
JP7231638B2 (en) Image-based information acquisition method and apparatus
WO2017107855A1 (en) Picture searching method and device
WO2023115911A1 (en) Object re-identification method and apparatus, electronic device, storage medium, and computer program product
CN108055461B (en) Self-photographing angle recommendation method and device, terminal equipment and storage medium
WO2023197648A1 (en) Screenshot processing method and apparatus, electronic device, and computer readable medium
WO2022057419A1 (en) Method and apparatus for acquiring information related to subject, and storage medium and electronic device
CN111814811A (en) Image information extraction method, training method and device, medium and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21868248

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21868248

Country of ref document: EP

Kind code of ref document: A1