WO2023082817A1 - Application program recommendation method - Google Patents

Application program recommendation method Download PDF

Info

Publication number
WO2023082817A1
WO2023082817A1 PCT/CN2022/118236 CN2022118236W WO2023082817A1 WO 2023082817 A1 WO2023082817 A1 WO 2023082817A1 CN 2022118236 W CN2022118236 W CN 2022118236W WO 2023082817 A1 WO2023082817 A1 WO 2023082817A1
Authority
WO
WIPO (PCT)
Prior art keywords
text
application
user
icon
preset
Prior art date
Application number
PCT/CN2022/118236
Other languages
French (fr)
Chinese (zh)
Inventor
毛璐
王晨博
潘宇欣
孙甜甜
李一博
Original Assignee
荣耀终端有限公司
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 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2023082817A1 publication Critical patent/WO2023082817A1/en

Links

Images

Classifications

    • 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
    • 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
    • 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
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/62Text, e.g. of license plates, overlay texts or captions on TV images

Definitions

  • the present application relates to the field of terminal equipment, and in particular to a method for recommending application programs.
  • the present application provides a method for recommending an application, by which an application can be recommended based on a text selected by a user, without requiring the user to manually search for a target application from a large number of applications installed in an electronic device, thereby improving user experience.
  • the electronic device may display the second text on the display interface of the first application in response to the user's first operation on the first text displayed on the display interface of the first application, such as copying, selecting, clicking or long pressing.
  • the first icon corresponding to the application recommends application information to the user in the form of the first icon, and the user performs the second operation on the first icon, which triggers the electronic device to display the interface of the second application, without requiring the user to exit the first application. Searching for the second application in the application, the operation is convenient and can save the time spent by the user in searching for the application.
  • the user can also adjust the selected text, and the electronic device responds to the user's third operation on the first text and the second text, and displays on the display interface the third application corresponding to the text analysis of the first text and the second text. the second icon; the electronic device responds to the user's fourth operation on the second icon, and displays the interface of the third application corresponding to the second icon, and the user can flexibly adjust the selected text to trigger the system to recommend different applications.
  • the operation is convenient and It can improve the fun of app recommendation.
  • the present application provides a method for recommending an application, which is applied to an electronic device, wherein the method includes: the electronic device displays the first text and the second text on the display interface of the first application; the electronic device responds to the The first operation of the user on the first text displays the first icon corresponding to the second application on the display interface of the first application, so as to recommend the second application to the user.
  • the first icon can be executed
  • the second operation is, for example, a click operation, and the electronic device displays the interface of the second application corresponding to the first icon in response to the user's second operation on the first icon.
  • both the first operation and the third operation may include but not limited to: click, copy, select or long press operation
  • the first application may include but not limited to: gallery, real-time screenshot, browser, memo and short message, etc.
  • the third operation can be performed on the text displayed on the display interface of the first application again, and the electronic device responds to the user's third operation on the first text and the second text , the second icon corresponding to the third application is displayed on the display interface, wherein the second icon is obtained according to the text analysis of the first text and the second text; when the user wants to switch to the third application, the second icon can be executed
  • the electronic device displays the interface of the third application corresponding to the second icon in response to the user's fourth operation on the second icon.
  • both the fourth operation and the second operation may include but not limited to: single click, double click, or long press.
  • the electronic device can recommend applications to the user according to the text selected by the user, and the user can trigger the electronic device to open the corresponding application by performing a second operation on the recommended application icon, without the need for the user to log out of the first application and start the application from the electronic device. Find the target application from a large number of applications installed on the device, which is convenient to operate and can save the time spent on application search.
  • the first text includes: plain text or text recognized by image OCR.
  • Sources of plain text may include, but are not limited to: browsers, memos, and short messages.
  • the source of the picture may include but not limited to: gallery, real-time screenshot, browser or social software, etc.
  • This application recommendation method can not only perform application recommendation for plain text, but also can perform application recommendation for text in pictures, and has strong universality.
  • the method before the electronic device displays the first text and the second text on the display interface of the first application, the method further includes: the electronic device responds to the user at the first The fifth operation on a picture in an application is to display the picture in the display interface of the first application; if the picture includes text, display a first button, wherein the first button is used to trigger OCR recognition of the displayed picture to obtain The first text and the second text; when the user wants to obtain the text recognized by OCR, the sixth operation can be performed on the first button.
  • the first button the electronic device responds to the sixth operation of the first button by the user, and highlights it in the display interface The first text and the second text recognized by OCR are displayed.
  • the fifth operation may include but not limited to operations such as single click, double click, long press, and two-finger click
  • the sixth operation may include but not limited to operations such as single click, double click, or long press.
  • the electronic device when the electronic device highlights the first text and the second text on the display interface, the electronic device highlights the first text obtained by performing OCR recognition on the picture on the display interface.
  • a text and a second text and display an underline under the first text and the second text, wherein the first text and the second text are preset entities, and the preset entities may include but not limited to: address, code, ID number , phone number, courier tracking number, website, email address, foreign language, Taobao password or Douyin password.
  • This method of adding an underline to the preset entity for display is convenient for the user to intuitively know which preset entities are, on the other hand, the user can click on some preset entities or the underline to select the preset entity without using the cursor Move and select multi-text text in the text, which is convenient for users to operate. It should be noted that, for non-preset entities in the OCR recognition results, they can be highlighted but not underlined.
  • the method further includes: canceling display of the first icon on the display interface when the electronic device detects that the user performs a third operation on the second text.
  • canceling the display of the icon of the last recommended application during the process of adjusting the selected text since the icon is canceled, the text that the user wants to select will not be blocked, which is convenient for the user to operate.
  • the method further includes: the electronic device responds to the user's seventh operation on the third text and the second text, and displays the second text corresponding to the second application on the display interface.
  • An icon and a third icon corresponding to the fourth application wherein, the first text includes the third text, and the first icon and the third icon are obtained according to the text analysis of the first text and the third text;
  • the eighth operation of the icon is to display the interface of the fourth application corresponding to the third icon; in response to the user's third operation on the first text and the second text, the electronic device displays the second icon corresponding to the third application on the display interface, wherein , the second icon is obtained according to the text analysis of the first text and the second text; in response to the user's fourth operation on the second icon, an interface of the second application corresponding to the first icon is displayed.
  • the seventh operation may be the same as the first operation in the foregoing manner, and the eighth operation may be the same as the second operation in the foregoing manner, which will not be repeated here.
  • this application program recommendation method when the third text selected by the user is not related to the first text, the electronic device performs text analysis on the third text to determine the fourth application, and performs text analysis on the first text to determine the second application. application, and then recommend the third icon of the fourth application and the first icon of the second application, without requiring the user to manually search for icons.
  • the electronic device performs text analysis on the first text and the second text to determine the third application, and recommends the second icon corresponding to the third application.
  • the application recommendation method is flexible and diverse. .
  • the electronic device when the electronic device displays the first icon corresponding to the second application on the display interface of the first application in response to the user's first operation on the first text, it includes : The electronic device displays a floating ball on a display interface of the first application in response to a user's click operation on the first text, wherein the floating ball includes a first icon of the second application obtained by performing text analysis on the first text.
  • the first icon of the second application is displayed in the form of a floating ball.
  • the floating display of the floating ball can always be kept at the top of the screen to avoid being covered by other content; on the other hand, the floating ball covers a small screen area, which can avoid excessive coverage Image content; the third is to directly display the first icon of the second application to be more eye-catching, which is convenient for the user to determine whether the second application is an application to be switched.
  • the electronic device displays the first icon corresponding to the second application on the display interface of the first application in response to the user's first operation on the first text, including: In response to the user's click operation on the first text, the electronic device displays a floating window on the display interface of the first application, the floating window includes service options obtained by performing text analysis on the first text, and the service options include at least the service options corresponding to the second application. Service options. In this method of recommending a matching service option list according to the first text selected by the user, multiple service options are recommended at the same time, which is convenient for the user to find the target option from the recommended service options.
  • the first operation includes: click, copy, select and long press.
  • Clicking can include but not limited to: single-finger click, single-finger double-click, two-finger click, etc.
  • Copying can include moving the cursor in the text and selecting the first text to display a menu bar containing copy options. The user clicks the copy option to complete the first text copy.
  • There is no specific limitation on the specific duration of the long press for example: long press for 1 second, 2 seconds or 3 seconds. This way of setting the first operation in a variety of ways makes the setting of the first operation more flexible.
  • the electronic device displays the first icon corresponding to the second application on the display interface of the first application in response to the user's first operation on the first text, including: In response to the user's selection operation on the first text, the electronic device displays a floating ball corresponding to the second application on the display interface of the first application, wherein the first text includes a plurality of combinable preset entities, and the floating ball includes the second The first icon corresponding to the second application.
  • this application recommendation method when it is recognized that the first text contains a plurality of combinable preset entities, only one application is recommended, that is, the first icon corresponding to the second application, and the recommendation result is more accurate, which is convenient for the user to select.
  • the electronic device displays the first icon corresponding to the second application on the display interface of the first application in response to the user's first operation on the first text, including: In response to the user's selection operation on the first text, the electronic device displays a floating window on the display interface of the first application, wherein the first text includes multiple non-combinable preset entities, the floating window includes multiple application icons, and multiple The application icons include at least the first icon of the second application.
  • this application recommendation method when it is recognized that the first text contains multiple non-combinable preset entities, since the user’s true intention is uncertain, multiple application recommendations are recommended for the user to choose, which is convenient for the user to select the second entity that the user wants to switch to. application.
  • the electronic device displays the first icon corresponding to the second application on the display interface of the first application in response to the user's first operation on the first text, including: In response to the user's copy operation on the first text, the electronic device displays a floating window on the display interface of the first application, the floating window includes multiple application icons, and the multiple application icons include the first icon corresponding to the second application.
  • this application recommendation method when the copied first text does not contain preset entities, since the user’s true intention is not sure, multiple application recommendations are recommended for the user to choose, which is convenient for the user to select the second desired switch. application.
  • the second operation includes: single click, double click and long press.
  • Single-click can include but not limited to: single-finger single-click, double-finger single-click, double-click can also include but not limited to: single-finger double-click, two-finger double-click, there is no specific limit for the specific duration of long press, for example: long press Press for 1 second, 2 seconds or 3 seconds, etc.
  • This way of setting the second operation in a variety of ways makes the setting of the second operation more flexible.
  • the present application further provides a method for recommending an application program, the method is applied to an electronic device, and the method includes: the electronic device responds to the user's first operation on the first text in the first application, such as clicking, long pressing or copying , identify the preset entity contained in the first text; in the case of the preset entity contained in the first text, determine the information to be recommended based on the preset entity contained in the first text; if the preset entity is not contained in the first text In the case of , the information to be recommended is determined based on the content of the first text, wherein the information to be recommended includes: an application icon or a list of services; the first icon is displayed on the display interface of the first application, and the first icon corresponds to the information to be recommended .
  • This application program recommendation method recommends an application or service list based on the first text selected by the user.
  • the method before the electronic device responds to the user's first operation on the first text in the first application, the method further includes: the electronic device responds to the user's second operation on the picture in the first application Operations such as: click, long press and other operations to display a picture in the display interface of the first application; identify whether the picture contains text; if the picture contains text, perform OCR recognition on the picture to obtain the second text; display the second text A button, wherein the first button is used to trigger the display of the second text; when the user previews the OCR recognition result, the third operation can be performed on the first button, and the electronic device responds to the user's third operation on the first button, and displays The second text is highlighted in the interface, where the second text includes the first text.
  • This method of OCR recognition of pictures is simple and convenient to operate.
  • determining the information to be recommended by the electronic device based on the preset entities contained in the first text includes: In the case of a single preset entity included in a text, the electronic device determines a second application or service list that matches the preset entity included in the first text. In this way of recommending a single application or service list based on a single preset entity, the recommended content is more in line with user expectations.
  • the default entity is the Taobao password. When the user checks the Taobao password, it is very likely that he wants to open the Taobao application, so the Taobao application is recommended to the user. There is no need for users to manually find the Taobao application from the desktop.
  • determining the information to be recommended by the electronic device based on the preset entities contained in the first text includes: When a text contains multiple preset entities, the electronic device determines whether the multiple preset entities can be combined; if the multiple preset entities can be combined, a third application is determined based on the multiple preset entities.
  • this application recommendation method when it is recognized that the first text contains a plurality of combinable preset entities, only one application, that is, the second application, is recommended, and the recommendation result is more accurate, which is convenient for the user to select. For example: when it is recognized that the first text includes a name, a phone number, and an address, it is determined that the user is likely to want to switch to a shopping application, and therefore a shopping application is recommended.
  • the electronic device determines that multiple preset entities cannot be combined, respectively determine the fourth application that each of the included preset entities matches, and convert the determined Multiple fourth applications are determined as recommended information.
  • this application recommendation method when it is recognized that the first text contains multiple non-combinable preset entities, since the user's real intention is uncertain, multiple application recommendations are recommended for the user to choose, so that the user can select the desired application. For example, when the first text includes foreign language, Taobao password and address, since these three preset entities cannot be combined, the application translation application, map application and shopping application corresponding to each preset entity are respectively recommended.
  • determining the information to be recommended based on the content of the first text includes: the electronic device in the first text In the case of not including the preset entity, perform feature extraction on the first text; determine the first application classification and the second application classification matching the first text based on the extracted features; filter out the first preset from the first application classification The number of fifth applications; the second preset number of sixth applications are filtered out from the second application category; the fifth application and the sixth application are determined as information to be recommended.
  • the first preset number is greater than the second preset number, and the specific values of the first preset number and the second preset number can be flexibly set by those skilled in the art, and there is no specific limitation in this solution.
  • this application recommendation method when the first text does not contain a preset entity, since the user's true intention is uncertain, multiple application recommendations are recommended for the user to choose, so that the user can select the second application desired to switch.
  • the first icon includes: a floating ball or a floating window.
  • the screen area covered by the floating ball is small, and the floating window can display more content.
  • the electronic device can adaptively select the first icon style according to the content of the information to be recommended.
  • the preset entity may include but not limited to: address, code, ID number, phone number, courier number, website, email address, foreign language, Taobao password Or Douyin password.
  • the preset entities can be flexibly adjusted by those skilled in the art. Multiple preset entities are set, and corresponding application recommendation information is preset for each preset entity, so as to facilitate reliable application recommendation for users during use.
  • the present application provides a computer-readable medium for storing a computer program, the computer program including instructions for executing the method in any possible implementation of the first aspect or the second aspect, or including using Instructions for executing the method in any possible implementation manner of the first aspect or the second aspect.
  • the present application provides a computer program, the computer program includes instructions for executing the method in any possible implementation of the first aspect or the second aspect, or includes instructions for executing the method of the first aspect or the second aspect An instruction for a method in any possible implementation of an aspect.
  • FIG. 1 is a schematic diagram of a hardware structure of an exemplary electronic device
  • FIG. 2 is a schematic diagram of a software structure of an exemplary electronic device
  • FIG. 3 is a schematic diagram of an interface for performing OCR recognition on pictures in a gallery
  • FIG. 4A is a schematic diagram of an interface for application recommendation based on a single preset entity
  • Fig. 4B is an exemplary interface schematic diagram showing a service list recommendation based on a single preset entity
  • FIG. 5 is a schematic diagram of an interface for recommending applications based on the Taobao password
  • FIG. 6 is a sequence flow chart of interaction between a user and a device when recommending an application based on a single preset entity in a picture
  • Fig. 7 is an exemplary diagram showing a change in the interface when recommending applications based on multiple associated preset entities selected by the user twice successively;
  • Fig. 8 is another schematic diagram of interface changes when recommending applications based on multiple preset entities selected twice by the user;
  • FIG. 9 is an exemplary diagram showing a change in the interface when recommending an application list based on multiple non-associated preset entities selected by the user twice successively;
  • Fig. 10 is a sequence flow chart of the interaction between the user and the device when recommending applications based on multiple preset entities in the picture;
  • Fig. 11 is a schematic diagram of an interface for recommending applications based on pictures that do not contain preset entities
  • FIG. 12 is a sequence flow chart of the interaction between the user and the device when recommending applications based on picture content.
  • first and second in the description and claims of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order of objects.
  • first target object, the second target object, etc. are used to distinguish different target objects, rather than describing a specific order of the target objects.
  • words such as “exemplary” or “for example” are used as examples, illustrations or illustrations. Any embodiment or design scheme described as “exemplary” or “for example” in the embodiments of the present application shall not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Rather, the use of words such as “exemplary” or “such as” is intended to present related concepts in a concrete manner.
  • multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.
  • the method for recommending application programs in the embodiments of the present application may be applied to a scenario where text in a first application of the same electronic device is copied to a second application.
  • the scenario may be, for example, copying and pasting text from applications such as a browser, memo, email, and WeChat into other applications that are different from the source application of the text.
  • applications such as a browser, memo, email, and WeChat into other applications that are different from the source application of the text.
  • text within the application can be directly selected, copied, or clicked.
  • the scenario may be, for example: copying and pasting target text in an optical character recognition (Optical Character Recognition, OCR) recognition result of a picture into an application.
  • OCR optical Character Recognition
  • the pictures can come from the gallery, real-time screenshots, browsers, WeChat, QQ and other applications.
  • the embodiment of this application does not limit the source of the picture.
  • the text in the application comes from the OCR recognition result of the picture, and the text in the picture cannot be directly selected before OCR recognition.
  • a courier photo contains information such as address information, phone number, recipient, etc., and the user wants to add the address information to the delivery address of a shopping application.
  • the application recommendation method in the embodiment of this application can be applied, and the address information in the photo can be pasted into the delivery address of the shopping application.
  • the application of optical character recognition technology can recognize the character strings in the picture. These recognized character strings are the OCR recognition results of the pictures as text.
  • the target text selected by the user in the OCR recognition results can be called the first text, the second text etc.
  • the character string can be further judged whether it is a preset entity, such as: address, code, ID number, phone number, courier number, website, email address, foreign language, Taobao password or Douyin password etc., the user can single-select or multi-select the preset entities in the OCR recognition result, and the user can select and copy the non-preset entities in the OCR recognition result to select the target text.
  • an application may also be called an application program
  • an application corresponding to a target application or a target service may also be called an application triggered by the system after the user clicks on a recommended icon
  • the application currently displaying the picture may also be called the first application.
  • the target text selected by the user may have the following situations: first, it contains a single preset entity; second, it contains multiple preset entities with association relationships; third, it contains multiple preset entities without association relationships. Fourth, it does not contain default entities.
  • the system will use different recommendation methods to recommend applications or service lists.
  • the system recommends a single application or service list; when the target text contains multiple preset entities with associated relationships, the system recommends a single application or service list;
  • the taskbar which may also be called a recommended application list, and in the case that the target text does not contain the preset entity, the system recommends the taskbar.
  • the task bar includes multiple recommended applications.
  • FIG. 1 is a schematic structural diagram of an electronic device 100 exemplarily shown. It should be understood that the electronic device 100 shown in FIG. 1 is only an example of an electronic device, and the electronic device 100 may have more or fewer components than those shown in the figure, and two or more components may be combined , or can have different component configurations.
  • the various components shown in FIG. 1 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142 , antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193 , a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
  • the embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .
  • FIG. 2 is a schematic block diagram showing the software structure of the electronic device 100 according to the embodiment of the present application.
  • the layered architecture of the electronic device 100 divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
  • the Android system is divided into four layers, which are application program layer, application program framework layer, Android runtime (Android runtime) and system library, and kernel layer respectively from top to bottom.
  • the application layer can consist of a series of application packages.
  • the application package may include applications such as sensors, cameras, image galleries, OCR engines, application recommendation modules, third-party applications, and screenshots.
  • the OCR engine can be used to perform OCR recognition on the picture, and recognize the preset entity in the OCR recognition result;
  • the picture can be a screenshot obtained by a screenshot application, or a photo taken by a camera application, or a gallery
  • the pictures stored in , etc., the embodiment of this application does not limit the source of the pictures.
  • the application recommendation is used to predict an application or service list related to the target text content according to the target text content, and recommend the predicted application to the user.
  • Third-party applications are used to provide pictures or provide text information that can be selected and copied.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a view system, a resource manager, a window manager, an activity manager, and the like.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and the like.
  • the view system can be used to build applications.
  • a display interface can consist of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • a window manager is used to manage window programs.
  • the window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • the activity manager is used to manage the life cycle of each application program and the navigation fallback function, and is responsible for creating the main thread of Android and maintaining the life cycle of each application program.
  • Android runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
  • the core library includes two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android (Android).
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application program layer and the application program framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library may include multiple functional modules, such as a surface manager (surface manager) and the like.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer can contain modules such as display drivers and sensor drivers.
  • the layers in the software structure shown in FIG. 2 and the components included in each layer do not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer layers than shown, and each layer may include more or fewer components, which is not limited in the present application.
  • the electronic device will be referred to as a device for short in the following text. It should be understood that the devices mentioned herein can have the same hardware structure (such as the hardware structure shown in FIG. 1 ) and the same software structure (such as the software structure shown in FIG. 2 ) as the electronic device 100 in the foregoing embodiments. ).
  • the specific flow of the application recommendation method of the present application is described by taking three scenarios, namely, that the target text selected by the user contains a single entity, multiple entities, and no entity, as examples.
  • FIG. 6 is an exemplary diagram showing a sequence flow chart of interaction between a user and a device when recommending an application based on a single entity in a picture.
  • the process of recommending an application includes the following steps:
  • S1 The user clicks picture a in the gallery.
  • S2 The device displays the picture a on the device screen in response to clicking the picture a.
  • the user can perform the operation of clicking the picture in various situations, thereby displaying the picture on the device screen.
  • the device here may be, for example, a mobile phone, a tablet, and the like.
  • the device is a mobile phone as an example for illustration. It should be understood that the description in this document taking a mobile phone as an example is also applicable to other non-mobile devices, such as a tablet.
  • S3 The device detects whether there are texts in the picture a, and if there are texts, obtains the OCR recognition result of the picture a.
  • FIG. 3 is a schematic diagram of an interface for performing OCR recognition on pictures in a gallery.
  • the user can click the "Gallery" icon in the main interface of the mobile phone (see (a) of Figure 3), and after clicking the "Gallery” icon, enter the "Gallery” icon. ”
  • the internal interface of the application, the interface display at this time is shown in Figure 3 (b).
  • the "Gallery” includes picture a, picture 1, picture 2, picture 3, picture n and other pictures.
  • the user can continue to click on the picture on the interface shown in (b) of FIG. 3 . For example, suppose the user clicks on picture a.
  • the mobile phone displays the picture a on the screen of the mobile phone in response to clicking on the picture a, as shown in FIG. 3( c ).
  • Figures (a) to (c) in FIG. 3 are illustrated by taking the access to the image display interface from the gallery as an example. It should be noted that the present application does not limit the way of entering the image display interface. For example, in other embodiments of the present application, it is also possible to enter the picture display interface by clicking on the screenshot picture after taking a screenshot, or to enter the picture display interface by clicking on a picture in the web page during web browsing, or to enter the picture display interface through During the chatting process of social communication software, click the picture in the chat interface to enter the picture display interface. You can also enter the picture display interface by clicking the picture in the circle of friends or the official account, etc., and will not list them here. .
  • the application recommendation method in the embodiment of the present application further detects whether there is text in the picture a. If there is text in picture a, get the OCR recognition result of picture a. If there is no text in the picture a, the flow of the application recommendation method in the embodiment of the present application ends.
  • the device may obtain the OCR recognition result of picture a in various ways.
  • the device may directly read the OCR recognition result of picture a from the storage data of picture a.
  • the device can call the OCR engine of the application layer shown in Figure 2 to perform real-time OCR recognition of picture a, from the OCR
  • the OCR recognition result of picture a is obtained from the output data of the engine.
  • the OCR engine is used to perform OCR recognition on the picture, and output the OCR recognition result of the picture.
  • the OCR recognition button that pops up on the device screen is not turned on.
  • the device interface at this time please refer to (d) of FIG. 3 .
  • characters such as text in picture a cannot be selected or copied.
  • the user may click the OCR button to trigger subsequent operations of highlighting the OCR recognition result and adding an underline to the preset entity contained in the OCR recognition result.
  • the device may actively stop displaying the OCR button on the device screen, that is, the OCR identification button disappears from the interface of picture a.
  • the preset duration can be flexibly set by those skilled in the art, for example: set to 2 seconds, 3 seconds, 5 seconds, etc., which is not specifically limited in this embodiment of the present application.
  • the user can also click anywhere other than the OCR button.
  • the device detects that the user clicks any place other than the OCR button, and may stop displaying the OCR button on the device screen. In this way, the device passively stops displaying the OCR button based on user actions.
  • the device can also keep the OCR button in the off state.
  • the device detects the user's click operation on the OCR button, which can confirm that the user has the need to select the target text from the OCR recognition results to trigger the system to recommend applications.
  • the click operation on the OCR button is not limited to the single click operation shown in FIG. 3d, and may also be a double click or long press operation.
  • Preset entity information is managed in the system, and the preset entity information can be stored in the form of a list.
  • Preset entities may include but are not limited to: name, address, code, ID card number, phone number, courier number, website, email address, foreign language, Taobao password or Douyin password, etc.
  • the preset entities can be added, deleted or modified flexibly by those skilled in the art.
  • FIG. 3( e ) is only an exemplary way of displaying the OCR recognition result and highlighting the preset entities in the OCR recognition result.
  • those skilled in the art can set it flexibly, and the present application does not limit the display mode of the OCR recognition result.
  • a border is added to the characters in the OCR recognition result to indicate that the OCR recognition result is selectable, clickable or copyable.
  • a frame may be added to the characters in the OCR recognition result and the frame may be filled with a background color different from that of the picture background.
  • the OCR recognition results in Figure 3(e) include three preset entities: "recipient: xxx”, “telephone: 151xxxxxx”, “xx building, xx Road, Haidian District, Beijing”, and add to these three preset entities Underline to remind the user which of the recognized OCR recognition results are preset entities.
  • FIG. 3( e ) it is only an example of emphasizing the preset entity by adding an underline to the preset entity for illustration.
  • the device may display in other preset emphatic display methods. For example, the device can highlight entities with a color that distinguishes them from non-preset entities, or set a background color for entities that is different from other non-preset entity texts in the OCR recognition results, etc.
  • the emphatic display mode of the default entity is not limited.
  • the entity recognition method can be realized based on NLU (Natural Language Understanding, natural language understanding) technology.
  • NLU Natural Language Understanding, natural language understanding
  • the NLU system can be set in the OCR engine, or can be set separately in other functional modules. In the embodiment of the present application, the NLU system is set in the OCR engine as an example for illustration.
  • the NLU system imitates the basic way humans understand language, that is, sentence segmentation, word segmentation, etc., and cuts the text into a series of semantic and grammatical units.
  • segmentation methods such as N-gram algorithm and byte pair encoding
  • the string units divided into are not words.
  • the word "token” is usually used to represent the string unit obtained by text segmentation.
  • the NLU system uses text representation models such as word vector space models and distributed representation models to obtain a numerical vector or matrix.
  • This matrix is the numerical representation of the text.
  • Many algorithms in the field of artificial intelligence can only deal with numerical data.
  • some algorithms, such as the text similarity calculation method based on the bag of words model can directly process string sequences, and can also deal with text representations in the form of numerical vectors. Therefore, people often use exponential vectors or matrices as a unified textual representation within a system.
  • the NLU system will represent data based on text, use classification algorithms, sequence labeling methods, etc., to calculate "key information" in the text, such as entities, triples, intentions, events, and so on.
  • the OCR recognition result can be used as the text to be segmented
  • the NLU system can be used to identify the file to be segmented, and recognize the preset entity contained in the OCR recognition result.
  • the user can select a preset entity by clicking on any position of the preset entity or the underline corresponding to the preset entity.
  • S8 The device recommends a single application or service list according to the selected preset entity in response to the operation of selecting the preset entity.
  • the preset entity selected by the user is the target text selected by the user.
  • the system recommends a single application or service list based on the single preset entity.
  • the preset entity selected by the user is different, and the single application or service list recommended based on the preset entity is different.
  • the system can preset the correspondence between preset entities and applications, preset entities and service lists, and the correspondence can be stored in the storage area in the form of a list or in other forms.
  • the list can be named as The recommendation rule list, it should be noted that in the embodiment of the present application, there is no limitation on the specific name of the list including the correspondence between preset entities and applications, preset entities and service lists.
  • Figure 4A is a schematic diagram of an interface for application recommendation based on a single preset entity.
  • the user clicks " ⁇ Building, ⁇ Road, Haidian District, Beijing"
  • the system determines that the preset entity selected by the user is an address, searches for the recommended application corresponding to the address from the recommendation rule list, finds that the recommended application is a map application, and the system can select one or more of the map applications installed on the device. Multiple map apps for recommendations.
  • An exemplary schematic diagram of an interface displaying a single map application is shown in FIG. 4A(b).
  • a recommended single application icon "Map Application A” 401 is floating and displayed, and the user can click "Map Application A” Trigger the system to open the map application A, and then add "XX Building, ⁇ Road, Haidian District, Beijing” to the map application A to view the navigation route.
  • the icon of a single application may be displayed in the form of a floating ball, and the recommended application icons are included in the floating ball.
  • the system determines that a map application needs to be recommended and searches for a map application from the map applications installed in the device for final recommendation, it can randomly select a map application from the map applications installed in the device for the final recommendation; Regarding the frequency of use of each map application, a map application with the highest frequency of use is selected for final recommendation, which is not specifically limited in this embodiment of the present application.
  • FIG. 4A(b) is only a schematic diagram of an interface for recommending a single application, and the icons of multiple recommended single applications are not limited to being displayed on the right side of the interface, and may also be displayed on the interface to the left, middle, or any other appropriate location.
  • the icon of a single application can also be displayed in the taskbar.
  • the relevant description of the taskbar please refer to the relevant introduction of the taskbar when recommending multiple applications below.
  • FIG. 4B is another schematic diagram of an interface for application recommendation based on a single preset entity.
  • the user clicks on the preset entity "Phone: 151xxxxxxx"
  • the system determines that the preset entity selected by the user is a phone number, searches for the recommended application corresponding to the phone number from the recommendation rule list, and finds out that the phone number corresponds to the recommended first service list.
  • the first service list includes: call phone service options, send Messaging service options, Add to Contacts service options, and Copy service options. After finding the first service list, the system recommends the first service list in the interface.
  • An exemplary schematic diagram of the interface displaying the first service list is shown in Fig.
  • the first service list 402 includes: "call phone”, “send message”, “add to address book” and “copy” service options, the user can click on any service option to trigger the system to jump to this In the target interface corresponding to the service option, the user can manually or automatically add "Phone: 151xxxxxxx” to the target input box in the target interface.
  • the recommended service list may be displayed in the form of a floating window, and each recommended service option is displayed in the floating window.
  • FIG. 4A uses the address in the OCR recognition result of the picture selected by the user to recommend a single map application
  • FIG. 4B uses the phone number in the OCR recognition result of the picture selected by the user to recommend the first service list as an example for illustration.
  • FIG. 5 which is an exemplary interface for recommending applications based on Taobao passwords, the process of recommending Taobao applications by the system for the Taobao passwords in the OCR recognition results of pictures selected by users will be described.
  • the terminal receives the user's selection of "Xixi:/ah FfthxKgYVSh Wei Shi Gaozhi's glory days full set ... more information" to determine that the target text selected by the user is the Taobao password, and search for the application or service list corresponding to the Taobao password from the recommendation rule list, and determine that the Taobao password corresponds to the Taobao application through the search. Therefore, the system recommends Taobao in the interface Application, an exemplary schematic diagram of the interface displaying the recommended Taobao application is shown in Figure 5(c).
  • the "Taobao application” icon is displayed floating on the right side of the interface, and the user can click the "Taobao application” icon to trigger a system jump In the Taobao application, the user can manually or automatically add the Taobao password selected by the user to the corresponding interface in the Taobao application.
  • Fig. 4A, Fig. 4B and Fig. 5 are only examples showing the corresponding relationship between the three entities and the application or service list.
  • the specific corresponding relationship contained in the recommended rule list can be flexibly set by those skilled in the art.
  • Exemplary correspondences included in the recommended rule list may include:
  • Address recommends a single map app
  • a foreign language recommends a single translation app
  • a courier number recommends a shopping app
  • a Taobao password recommends a Taobao app
  • a Douyin password recommends a Douyin app, etc.
  • the phone number corresponds to the recommended first service list, which may include but not limited to: “call phone”, “send message”, “add to address book” and “copy” service options.
  • the ID card number corresponds to the recommended second service list, which may include but not limited to "add to address book”, “copy”, “share” and "previous switching application” service options.
  • Codes may include but not limited to payment codes, identification QR codes, etc. Codes correspond to the recommended third service list, which may include but not limited to: “open in xxx app”, “open in browser”, “copy link” , “Share” and “Add to Notes” and other service options.
  • the URL corresponds to the recommended fourth service list, which may include but not limited to: “Open Link”, “Add to Link List”, “Copy Link”, and “Share” and other service options.
  • the email address corresponds to the recommended fifth service list, which may include but not limited to: service options such as “create email”, "copy” and “share”.
  • the embodiment of this application provides a way to recommend an application or service list based on a single preset entity selected by the user.
  • the OCR recognition result can be selected and copied. Displayed to the user, the user can directly select the target text, so that the target text can be added to the corresponding input box in the target application or service later, without the need for the user to manually enter the target text, which is convenient to operate and can avoid the problem of user editing errors.
  • the system lists a single application or service based on the single preset entity selected by the user, and the user clicks on the service option in the recommended application or service list to jump to the target interface without After the user copies the target text, he leaves the gallery and performs tedious operations manually to enter the target interface.
  • FIG. 10 is an exemplary flow chart showing the interaction between the user and the device when recommending applications based on multiple preset entities in the picture.
  • the application recommendation process includes the following steps:
  • S1 The user clicks picture b in the gallery.
  • S2 The device displays picture b on the device screen in response to clicking picture b.
  • S3 The device detects whether there are texts in the picture b, and if there are texts, obtains the OCR recognition result of the picture b.
  • S1 to S6 shown in FIG. 10 are the process of performing OCR recognition on picture b in the gallery, recognizing preset entities in the OCR recognition result, and displaying the OCR recognition result. For this process, it is enough to refer to the specific description of S1 to S6 in FIG. 6 , which will not be repeated here.
  • FIG. 7 is an exemplary schematic diagram of interface changes when recommending applications based on multiple associated preset entities selected by the user twice successively.
  • the schematic diagram of the interface showing picture b is shown in Fig. 7(a)
  • the OCR recognition result of picture b in the interface is highlighted and an underline is added under the preset entities "Recipient: xxx", "Phone: 151xxxxxx”, "xx Building, xx Road, Haidian District, Beijing”.
  • the user can control the cursor on the screen with a finger to select multiple preset entities, as shown in Figure 7(b), there are cursors at the start position and end position of the preset entity selected by the user's finger, and the selected preset entity Assuming that the background fill color of the entity has changed to indicate that the preset entity circled by the cursor has been selected, after the user completes the action of selecting the preset entity, as shown in Figure 7(b), the system displays the function menu bar, the function The menu bar includes functional options such as "Select All", "Cut” and "Copy".
  • the selected target text in Fig. 7(b) can be regarded as the first text.
  • Fig. 7(b) is only an exemplary way of selecting multiple preset entities.
  • the user can click each preset entity successively within the second preset duration, Multiple preset entities are thus selected.
  • the second preset duration is a shorter duration, for example: 1 second or 1.5 seconds.
  • S8 The device determines whether the multiple preset entities can be combined in response to the selection operation on the multiple preset entities.
  • the system recognizes the number of preset entities contained in the target text, and when it recognizes that multiple preset entities are included, for example, as shown in Figure 7(b) contains 2 preset entities, it determines the number of preset entities contained in the target text Whether there is an association relationship, if the determination result indicates that there is an association relationship, the recommended single application is determined based on each preset entity with the association relationship. Determining whether the preset entities can be combined means determining whether the preset entities have an association relationship. If multiple preset entities have an association relationship, it is determined that they can be combined; otherwise, it is determined that they cannot be combined.
  • the system stores associations with preset entities, and the associations between preset entities can be stored in an association list, and each association includes multiple preset entities and the type of application recommended by the association.
  • the system recognizes the preset entity of the target text selected by the user, it determines the N preset entities contained in the target text, and searches for the matching relationship of the N preset entities from the list of association relationships. If there is, determine the N preset entities
  • the entity is a preset entity that can be associated; otherwise, if it does not exist, it is determined that the N preset entities are non-associated default entities.
  • N is an integer greater than or equal to 2.
  • the association relationship list can be combined with the recommendation rule list, or can exist independently.
  • the specific content included in the association relationship list can be flexibly set and modified by those skilled in the art, and is not specifically limited in this embodiment of the present application.
  • the relationship list may include: the first relationship: name-phone-address-shopping application, the second relationship: name-ID number-ticket swiping applet, etc.
  • the device recommends a single application based on the combined entity; if the multiple entities cannot be combined, the device recommends a taskbar containing multiple applications based on the multiple entities.
  • a target application may be selected from the applications of the application type installed in the device for recommendation.
  • Screening rules can be set by those skilled in the art according to actual needs, for example: random screening, screening based on application usage frequency, etc. can be set.
  • the system recommends a single application.
  • a single application program is recommended.
  • the recommended application matches the user's expectations with a high degree of matching, and the user directly clicks on the recommended application.
  • the icon can be used to enter the target application, and the user does not need to exit from the current interface, and then manually find the target application from the desktop to enter the target application, which is convenient to operate.
  • FIG. 8 is a schematic diagram illustrating another interface change when application recommendation is performed based on multiple preset entities selected by the user twice successively.
  • FIG. 8(a) The schematic diagram of the interface showing picture b is shown in Figure 8(a).
  • the OCR recognition result of picture b is highlighted and displayed in the preset entities "Recipient: xxx", "Phone: 151xxxxxx”, "Beijing Add an underline under "XX Building, XX Road, Haidian District”.
  • the user selects "Tel: 151xxxxxx”, "xx Building, xx Road, Haidian District, Beijing” as the target text, and after the user completes the preset entity selection action, as shown in Figure 8(b),
  • the system displays a function menu bar, which includes options such as "Select All", “Cut” and "Copy”.
  • the device judges that the two preset entities "Phone: 151xxxxxx” and "xx Building, xx Road, Haidian District, Beijing” are phone numbers and addresses, and the two cannot be associated. It is determined that the phone number corresponds to the recommended phone application, and the address corresponds to the recommended navigation application. As shown in FIG. 8( c ), the icon of the phone application and the icon of the navigation application A are recommended in the task bar 801 .
  • an add button 802 may also be displayed in the task bar 801 , and for the description of the add button 802 , please refer to the above-mentioned relevant description, and details will not be repeated here.
  • the two preset entities selected by the user “Tel: 151xxxxxx” and “xx Building, xx Road, Haidian District, Beijing”, remain selected.
  • the user may click on the recommended application icon in the taskbar to trigger the system to enter the application corresponding to the selected application icon.
  • the application recommendation method based on multiple pre-associated preset entities provided by this application, when the multiple pre-set entities selected by the user are non-associated entities, respectively based on the selected pre-set entities
  • the user can adjust the selected target text after completing a recommendation. If the adjusted target text contains multiple preset entities that can be associated, the system will recommend a single application. It can be seen that when the system recommends applications, it does not only recommend based on the number of preset entities selected by the user, but also considers the associability of the selected preset entities.
  • FIG. 9 is a schematic diagram of interface changes when recommending applications based on multiple non-associated preset entities selected by the user twice successively.
  • the picture b containing English, Taobao password and address is taken as an example for illustration.
  • Figure 9(a) to Figure 9(b) is the process in which the user selects multiple preset entities in the displayed OCR recognition results, the process can refer to the relevant descriptions in Figure 7(a) to (b), and will not be described here Let me repeat.
  • underlines are only added to preset entities, and non-default entities are not underlined.
  • the "receipt address" is not a preset entity, and no underline is added below these four words.
  • the user selects three preset entities: "Name: TOM”, "Xixi:/ah FfthxKgYVSh Wei Shi Gaozhi's Glorious Years Complete Set...More Information” and " ⁇ Building ⁇ Road, Haidian District, Beijing”, and the system determines that the three The preset entities are foreign language, Tao password and address. Matching these three preset entities with the association relationship stored in the association relationship list, the association relationship cannot be matched, so these three preset entities are determined to be non-association presets entity.
  • the system finds from the list of recommendation rules that the recommended application corresponding to the foreign language is a translation application, the recommended application corresponding to the Taobao password is a shopping application such as Taobao application, and the recommended application corresponding to the address is a map application.
  • Determine target applications "translation application A”, “map application B” and “shopping application C”, and generate a task bar 901 including "translation application A”, "map application B” and “shopping application C” a schematic diagram of an interface displaying a task bar is shown in FIG. 9( c ).
  • the sorting of the recommended application icons in the taskbar is consistent with the sorting of the selected preset entities in the picture.
  • the task bar may also include an add button 902 .
  • the user when wanting to display application icons of other applications (such as translation application B) other than “translation application A”, “map application B” and “shopping application C” in the taskbar, the user can click The button 902 is added.
  • the taskbar may display "shopping application C", “map application B” and “translation application D” sequentially from top to bottom.
  • the user can switch the recommended application icons in the task bar by clicking the add button 902 .
  • the task bar 901 can also be regarded as a floating window.
  • control corresponding to the task bar is located at the top of the screen, so that the recommended application list can be prevented from being covered by other interfaces on the device screen, which will affect the subsequent operation of selecting an application from the recommended application list.
  • the target text selected by the user contains multiple non-associated preset entities
  • multiple application programs are recommended.
  • the recommended applications are strongly related to the preset entities selected by the user, providing
  • the task bar contains multiple applications for the user to choose. After the user determines the target application from the recommended applications, he can directly click the corresponding application icon to enter the target application. There is no need for the user to exit from the current interface and then manually search for the target application from the desktop. After application, enter the target application, and the operation is convenient.
  • Fig. 12 is an exemplary flow chart showing the interaction between the user and the device when recommending an application based on picture content, the application recommending process includes the following steps:
  • S2 The device displays the picture c on the device screen in response to clicking the picture c.
  • S3 The device detects whether there are texts in the picture c, and if there are texts, obtains the OCR recognition result of the picture c.
  • S1 to S6 shown in FIG. 12 are the process of performing OCR recognition on picture c in the gallery and displaying the OCR recognition result. For this process, it is enough to refer to the specific description of S1 to S6 in FIG. 6 , which will not be repeated here.
  • Figure 11 is an exemplary schematic diagram of an interface for recommending applications based on pictures that do not contain preset entities.
  • the schematic diagram of the interface that displays picture c is shown in Figure 11(a).
  • c's OCR recognition result "The main function of the mobile phone is communication, which is convenient for people to communicate. Today's smart phones also have entertainment, navigation, shopping and other functions" are highlighted. Since the OCR recognition result does not contain preset entities, there is no Underline characters.
  • Fig. 11(b) is the process for the user to select the target text from the displayed OCR recognition results.
  • the device performs feature extraction on the target text, matches multiple applications based on the extracted features, and displays a task bar containing the multiple applications.
  • An exemplary method of matching multiple applications based on the extracted features is: predicting the extracted text features based on the application classification model, and the prediction result is a score corresponding to each application classification. A higher score indicates that the extracted text features are consistent with The higher the classification matching degree of the application is.
  • the first application category with the highest score and the second application category with the second highest score are selected from the predicted scores corresponding to each application category. Judging whether the number of applications under the first application category installed in the device is greater than the first preset number, for example 3, if yes, then filter out the first preset number of applications from the first application category as applications to be recommended, if not , all the applications contained in the first application category are regarded as the applications to be recommended under the first application category.
  • the application classification can be flexibly set by those skilled in the art, which is not specifically limited in this embodiment of the present application.
  • application classification may include: video applications, social applications, map applications, and shopping applications.
  • the first preset number is greater than the second preset number.
  • the applications under the first application category can be sorted according to the user's usage frequency of the application within a preset time period, the currently activated application, and other conditions, and the top one can be selected.
  • a preset number of applications are used as applications to be recommended.
  • applications to be recommended can be screened from the second application category.
  • the system determines the recommended shopping and social applications based on the target text selected by the user "The main function of the mobile phone is communication, which facilitates people's communication. Today's smart phones also have functions such as entertainment, navigation, and shopping." , since the shopping applications installed in the device only include shopping application B, and the social applications installed in the device only include social applications A and C, so when recommending applications, as shown in Figure 11(d), in the task bar 1101 Icons of shopping application B, social application A and social application C are displayed in .
  • the task bar 1101 includes a plurality of recommended application icons and an add button 1102 .
  • the add button 1102 please refer to the above-mentioned relevant descriptions, and details will not be repeated here.
  • the social application is the first application category
  • the first preset number is 3
  • the shopping application is the second application category
  • the second preset number is 2, and there are 3 social networking applications installed in the device, respectively A, C, and D, and shopping apps B and E are installed in the devices, then when recommending apps, social apps A, C, and D and shopping apps B and E are all recommended apps.
  • the number of application icons is limited, so only some of the recommended application icons can be displayed, and the rest can be hidden, and then displayed one by one after receiving the user's click operation on the add button 1102 .
  • the user selects the target text in the picture OCR recognition result and the system recommends the application according to the target text selected by the user as an example for illustration.
  • the user can also select, copy and click the text content in the memo, short message and other interfaces, and trigger the system to recommend applications based on the target text selected by the user.
  • the electronic device includes hardware and/or software modules corresponding to each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions in combination with the embodiments for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
  • This embodiment also provides a computer storage medium, the computer storage medium stores computer instructions, and when the computer instructions are run on the electronic device, the electronic device executes the above-mentioned related method steps to implement the application program recommendation method in the above-mentioned embodiment .
  • This embodiment also provides a computer program product, which, when running on a computer, causes the computer to execute the above related steps, so as to implement the method for recommending an application in the above embodiment.
  • the electronic device, computer storage medium, computer program product or chip provided in this embodiment is all used to execute the corresponding method provided above, therefore, the beneficial effects it can achieve can refer to the corresponding method provided above The beneficial effects in the method will not be repeated here.
  • the disclosed devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined or It may be integrated into another device, or some features may be omitted, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • a unit described as a separate component may or may not be physically separated, and a component shown as a unit may be one physical unit or multiple physical units, which may be located in one place or distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • the functions described in the embodiments of the present application may be implemented by hardware, software, firmware or any combination thereof.
  • the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium.
  • Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • a storage media may be any available media that can be accessed by a general purpose or special purpose computer.

Abstract

The present application provides an application program recommendation method. The method comprises: an electronic device displays a first text and a second text on a display interface of a first application; in response to a first operation of a user on the first text, a first icon corresponding to a second application is displayed on the display interface; in response to a second operation of the user on the first icon, the electronic device displays an interface of the second application corresponding to the first icon; the user can also adjust a selected file, and in response to a third operation of the user on the first text and the second text, the electronic device displays a second icon corresponding to a third application on the display interface; and in response to a fourth operation of the user on the second icon, the electronic device displays an interface of the third application corresponding to the second icon. By means of the application program recommendation method, the electronic device can directly recommend an application according to a text selected by a user, such that the user does not need to exit the first application and search for a target application from a large number of applications in a desktop, the operation is convenient, and the time consumed by the user for searching for the application can be saved.

Description

应用程序推荐方法App Recommendation Method
本申请要求于2021年11月12日提交中国专利局、申请号为202111341981.2、申请名称为“应用程序推荐方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application with application number 202111341981.2 and application title "Application Recommendation Method" filed with the China Patent Office on November 12, 2021, the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请涉及终端设备领域,尤其涉及一种应用程序推荐方法。The present application relates to the field of terminal equipment, and in particular to a method for recommending application programs.
背景技术Background technique
当前,手机、平板等智能终端类电子设备中通常安装有大量应用。用户在使用这类电子设备时,经常遇到针对文本或者图片中的内容查找应用的需求,例如:文本中包含地址用户想要查找地图类应用对其进行导航。此时,用户需要退出当前文本从主界面中包含的大量应用中查找导航应用,操作过程繁琐,耗费长,导致用户体验较差。Currently, a large number of applications are usually installed in smart terminal electronic devices such as mobile phones and tablets. When using such electronic devices, users often encounter the need to find applications for content in text or pictures, for example, the text contains addresses and the user wants to find a map application for navigation. At this time, the user needs to exit the current text and search for the navigation application from a large number of applications contained in the main interface. The operation process is cumbersome and time-consuming, resulting in poor user experience.
发明内容Contents of the invention
本申请提供一种应用程序推荐方法,通过该应用程序推荐方法能够基于用户选中的文本进行应用程序推荐,无需用户从电子设备中安装的大量应用程序中手动查找目标应用程序,能够提升用户体验。The present application provides a method for recommending an application, by which an application can be recommended based on a text selected by a user, without requiring the user to manually search for a target application from a large number of applications installed in an electronic device, thereby improving user experience.
在一些实施例中,电子设备可响应于用户对第一应用的显示界面上显示的第一文本的第一操作如复制、选中、单击或者长按,在第一应用的显示界面显示第二应用对应的第一图标,以第一图标的形式向用户推荐应用信息,用户对第一图标执行第二操作,触发电子设备显示第二应用的界面,无需用户退出第一应用,从桌面中大量的应用中查找第二应用,操作便捷且可节省用户查找应用所耗时间。不仅如此,用户还可以调整选中的文本,电子设备响应于用户对第一文本和第二文本的第三操作,在显示界面显示对第一文本和第二文本进行文本分析得到的第三应用对应的第二图标;电子设备响应于用户对第二图标的第四操作,显示第二图标对应的第三应用的界面,用户能够灵活地调整选中的文本触发系统进行不同应用的推荐,操作便捷且可提升应用推荐的趣味性。In some embodiments, the electronic device may display the second text on the display interface of the first application in response to the user's first operation on the first text displayed on the display interface of the first application, such as copying, selecting, clicking or long pressing. The first icon corresponding to the application recommends application information to the user in the form of the first icon, and the user performs the second operation on the first icon, which triggers the electronic device to display the interface of the second application, without requiring the user to exit the first application. Searching for the second application in the application, the operation is convenient and can save the time spent by the user in searching for the application. Not only that, the user can also adjust the selected text, and the electronic device responds to the user's third operation on the first text and the second text, and displays on the display interface the third application corresponding to the text analysis of the first text and the second text. the second icon; the electronic device responds to the user's fourth operation on the second icon, and displays the interface of the third application corresponding to the second icon, and the user can flexibly adjust the selected text to trigger the system to recommend different applications. The operation is convenient and It can improve the fun of app recommendation.
第一方面,本申请提供一种应用程序推荐方法,该方法应用于电子设备,其中,该方法包括:电子设备在第一应用的显示界面上显示第一文本和第二文本;电子设备响应于用户对第一文本的第一操作,在第一应用的显示界面显示第二应用对应的第一图标,以向用户推荐第二应用,用户想要打开第二应用时,可对第一图标执行第二操作例如单击操作,电子设备响应于用户对第一图标的第二操作,显示第一图标对应的第二应用的界面。其中,第一操作、第三操作均可以包括但不限于:点击、复制、选中或者长按操作,第一应用可以包括但不限于:图库、实时截屏、浏览器、备忘录以及短信息等。用户想要调整选中的文本触发电子设备重新进行应用推荐时,可重新对第一应用的显示界面显示的文本执行第三操作,电子设备响应于用户对第一文本和第二文本的第三操作,在显示界面显示第三应用对应的第二图标,其中,第二图标是根据对第一文本和第二文本的文本分析得到;用户想要切换至第三应用时,可对第二图标执行第四操作,电子设备响应于用户对第二图标的 第四操作,显示第二图标对应的第三应用的界面。其中,第四操作、第二操作均可以包括但不限于:单击、双击或长按等。In a first aspect, the present application provides a method for recommending an application, which is applied to an electronic device, wherein the method includes: the electronic device displays the first text and the second text on the display interface of the first application; the electronic device responds to the The first operation of the user on the first text displays the first icon corresponding to the second application on the display interface of the first application, so as to recommend the second application to the user. When the user wants to open the second application, the first icon can be executed The second operation is, for example, a click operation, and the electronic device displays the interface of the second application corresponding to the first icon in response to the user's second operation on the first icon. Wherein, both the first operation and the third operation may include but not limited to: click, copy, select or long press operation, and the first application may include but not limited to: gallery, real-time screenshot, browser, memo and short message, etc. When the user wants to adjust the selected text to trigger the electronic device to re-recommend the application, the third operation can be performed on the text displayed on the display interface of the first application again, and the electronic device responds to the user's third operation on the first text and the second text , the second icon corresponding to the third application is displayed on the display interface, wherein the second icon is obtained according to the text analysis of the first text and the second text; when the user wants to switch to the third application, the second icon can be executed In a fourth operation, the electronic device displays the interface of the third application corresponding to the second icon in response to the user's fourth operation on the second icon. Wherein, both the fourth operation and the second operation may include but not limited to: single click, double click, or long press.
该种应用程序推荐的方式,电子设备可依据用户选中的文本向用户推荐应用,用户对推荐的应用图标执行第二操作即可触发电子设备开启相应的应用,无需用户退出第一应用后从电子设备已安装的大量应用中查找目标应用,操作便捷且能够节省应用查找所耗时间。In this way of application program recommendation, the electronic device can recommend applications to the user according to the text selected by the user, and the user can trigger the electronic device to open the corresponding application by performing a second operation on the recommended application icon, without the need for the user to log out of the first application and start the application from the electronic device. Find the target application from a large number of applications installed on the device, which is convenient to operate and can save the time spent on application search.
根据第一方面的应用程序推荐方法,第一文本包括:纯文本或图片OCR识别得到的文本。纯文本的来源可以包括但不限于:浏览器、备忘录以及短信息等。图片的来源可以包括但不限于:图库、实时截屏、浏览器或社交类软件等。该种应用推荐方法,不仅可为纯文本进行应用推荐还可以为图片中的文本进行应用推荐,普适性强。According to the application program recommendation method of the first aspect, the first text includes: plain text or text recognized by image OCR. Sources of plain text may include, but are not limited to: browsers, memos, and short messages. The source of the picture may include but not limited to: gallery, real-time screenshot, browser or social software, etc. This application recommendation method can not only perform application recommendation for plain text, but also can perform application recommendation for text in pictures, and has strong universality.
根据第一方面,或者以上第一方面的任意一种实现方式,在电子设备在第一应用的显示界面上显示第一文本和第二文本之前,该方法还包括:电子设备响应于用户在第一应用中对图片的第五操作,在第一应用的显示界面中显示该图片;在该图片中包括文本的情况下,显示第一按钮,其中,第一按钮用于触发显示图片OCR识别得到第一文本和第二文本;用户想要获取OCR识别得到文本时,可对第一按钮执行第六操作第一按钮,电子设备响应于用户对第一按钮的第六操作,在显示界面中高亮显示OCR识别得到的第一文本和第二文本。第五操作可以包括但不限于:单击、双击、长按、双指点击等操作,第六操作可以包括但不限于:单击、双击或者长按等操作。该种对图片进行OCR识别的方式,操作简单便捷。According to the first aspect, or any implementation manner of the above first aspect, before the electronic device displays the first text and the second text on the display interface of the first application, the method further includes: the electronic device responds to the user at the first The fifth operation on a picture in an application is to display the picture in the display interface of the first application; if the picture includes text, display a first button, wherein the first button is used to trigger OCR recognition of the displayed picture to obtain The first text and the second text; when the user wants to obtain the text recognized by OCR, the sixth operation can be performed on the first button. The first button, the electronic device responds to the sixth operation of the first button by the user, and highlights it in the display interface The first text and the second text recognized by OCR are displayed. The fifth operation may include but not limited to operations such as single click, double click, long press, and two-finger click, and the sixth operation may include but not limited to operations such as single click, double click, or long press. This method of OCR recognition of pictures is simple and convenient to operate.
根据第一方面,或者以上第一方面的任意一种实现方式,电子设备在显示界面中高亮显示第一文本和第二文本时,电子设备在显示界面中高亮显示对图片进行OCR识别得到的第一文本和第二文本,且在第一文本和第二文本下显示下划线,其中,第一文本和第二文本为预设实体,预设实体可以包括但不限于:地址、码、身份证号码、电话号码、快递单号、网址、邮箱地址、外文、淘口令或者抖音口令。该种在预设实体下添加下划线进行显示的方法,一方面,便于用户直观获知哪些是预设实体,另一方面,用户可点击部分预设实体或者下划线即可选中预设实体,无需通过光标在文本中移动选取多文字文本,便于用户操作。需要说明的是,对于OCR识别结果中的非预设实体,可以高亮显示但不在其下方添加下划线。According to the first aspect, or any implementation manner of the above first aspect, when the electronic device highlights the first text and the second text on the display interface, the electronic device highlights the first text obtained by performing OCR recognition on the picture on the display interface. A text and a second text, and display an underline under the first text and the second text, wherein the first text and the second text are preset entities, and the preset entities may include but not limited to: address, code, ID number , phone number, courier tracking number, website, email address, foreign language, Taobao password or Douyin password. This method of adding an underline to the preset entity for display, on the one hand, is convenient for the user to intuitively know which preset entities are, on the other hand, the user can click on some preset entities or the underline to select the preset entity without using the cursor Move and select multi-text text in the text, which is convenient for users to operate. It should be noted that, for non-preset entities in the OCR recognition results, they can be highlighted but not underlined.
根据第一方面,或者以上第一方面的任意一种实现方式,该方法还包括:电子设备检测到用户对第二文本执行第三操作时,在显示界面中取消显示第一图标。该种在调整选中的文本过程中取消显示上一次推荐的应用的图标的方式,由于图标取消显示,因此不会遮挡住用户想要选中的文本,便于用户操作。According to the first aspect, or any implementation manner of the above first aspect, the method further includes: canceling display of the first icon on the display interface when the electronic device detects that the user performs a third operation on the second text. In this method of canceling the display of the icon of the last recommended application during the process of adjusting the selected text, since the icon is canceled, the text that the user wants to select will not be blocked, which is convenient for the user to operate.
根据第一方面,或者以上第一方面的任意一种实现方式,该方法还包括:电子设备响应于用户对第三文本和第二文本的第七操作,在显示界面显示第二应用对应的第一图标和第四应用对应的第三图标;其中,第一文本包括第三文本,第一图标与第三图标是根据对第一文本和第三文本的文本分析得到;响应于用户对第三图标的第八操作,显示第三图标对应的第四应用的界面;电子设备响应于用户对第一文本和第二文本的第三操作,在显示界面显示第三应用对应的第二图标,其中,第二图标是根据对第一文本和第二文本的文本分析得到;响应于用户对第二图标的第四操作,显示第一图标对应的第二应用的界面。According to the first aspect, or any implementation manner of the above first aspect, the method further includes: the electronic device responds to the user's seventh operation on the third text and the second text, and displays the second text corresponding to the second application on the display interface. An icon and a third icon corresponding to the fourth application; wherein, the first text includes the third text, and the first icon and the third icon are obtained according to the text analysis of the first text and the third text; The eighth operation of the icon is to display the interface of the fourth application corresponding to the third icon; in response to the user's third operation on the first text and the second text, the electronic device displays the second icon corresponding to the third application on the display interface, wherein , the second icon is obtained according to the text analysis of the first text and the second text; in response to the user's fourth operation on the second icon, an interface of the second application corresponding to the first icon is displayed.
第七操作可以与上述方式中的第一操作相同,第八操作可以与上述方式中的第二操作相同,在此不再赘述。该种应用程序推荐方式中,在用户选中的第三文本与第一文本不具有关联性时,电子设备分别对第三文本进行文本分析确定第四应用,对第一文本进行文本分析确定第二应用,然后推荐第四应用第三图标和第二应用的第一图标,无需用户手动查找图标。在用户选中的第一文本与第二文本具有关联性时,电子设备对第一文本和第二文本进行文本分析确定第三应用,推荐第三应用对应的第二图标,应用程序推荐方式灵活多样。The seventh operation may be the same as the first operation in the foregoing manner, and the eighth operation may be the same as the second operation in the foregoing manner, which will not be repeated here. In this application program recommendation method, when the third text selected by the user is not related to the first text, the electronic device performs text analysis on the third text to determine the fourth application, and performs text analysis on the first text to determine the second application. application, and then recommend the third icon of the fourth application and the first icon of the second application, without requiring the user to manually search for icons. When the first text selected by the user is related to the second text, the electronic device performs text analysis on the first text and the second text to determine the third application, and recommends the second icon corresponding to the third application. The application recommendation method is flexible and diverse. .
根据第一方面,或者以上第一方面的任意一种实现方式,电子设备响应于用户对第一文本的第一操作,在第一应用的显示界面显示第二应用对应的第一图标时,包括:电子设备响应于用户对第一文本的点击操作,在第一应用的显示界面显示悬浮球,其中,悬浮球中包括对第一文本进行文本分析得到的第二应用的第一图标。以悬浮球的形式显示第二应用的第一图标,一方面由于悬浮球悬浮显示可始终保持位于屏幕最上层避免被其他内容遮盖;第二方面悬浮球覆盖屏幕区域较小,可避免过多覆盖图片内容;第三直接显示第二应用的第一图标更加引人注目,便于用户判定第二应用是否为与切换的应用。According to the first aspect, or any implementation manner of the above first aspect, when the electronic device displays the first icon corresponding to the second application on the display interface of the first application in response to the user's first operation on the first text, it includes : The electronic device displays a floating ball on a display interface of the first application in response to a user's click operation on the first text, wherein the floating ball includes a first icon of the second application obtained by performing text analysis on the first text. The first icon of the second application is displayed in the form of a floating ball. On the one hand, the floating display of the floating ball can always be kept at the top of the screen to avoid being covered by other content; on the other hand, the floating ball covers a small screen area, which can avoid excessive coverage Image content; the third is to directly display the first icon of the second application to be more eye-catching, which is convenient for the user to determine whether the second application is an application to be switched.
根据第一方面,或者以上第一方面的任意一种实现方式,电子设备响应于用户对第一文本的第一操作,在第一应用的显示界面显示第二应用对应的第一图标,包括:电子设备响应于用户对第一文本的点击操作,在第一应用的显示界面显示悬浮窗,悬浮窗中包括对第一文本进行文本分析得到的服务选项,服务选项中至少包括第二应用对应的服务选项。该种依据用户选中的第一文本推荐匹配的服务选项列表的方式,同时推荐多个服务选项,便于用户从推荐的服务选项中查找到目标选项。According to the first aspect, or any implementation manner of the above first aspect, the electronic device displays the first icon corresponding to the second application on the display interface of the first application in response to the user's first operation on the first text, including: In response to the user's click operation on the first text, the electronic device displays a floating window on the display interface of the first application, the floating window includes service options obtained by performing text analysis on the first text, and the service options include at least the service options corresponding to the second application. Service options. In this method of recommending a matching service option list according to the first text selected by the user, multiple service options are recommended at the same time, which is convenient for the user to find the target option from the recommended service options.
根据第一方面,或者以上第一方面的任意一种实现方式,第一操作包括:点击、复制、选中以及长按。点击可以包括但不限于:单指单击、单指双击、双指点击等,复制可以包括光标在文本中移动选中第一文本后显示包含复制选项的菜单栏,用户点击复制选项完成对第一文本的复制。对于长按的具体时长在此不做具体限制,例如:长按1秒、2秒或者3秒等。该种将第一操作设置为多样化的方式,使得第一操作的设置更加灵活。According to the first aspect, or any implementation manner of the above first aspect, the first operation includes: click, copy, select and long press. Clicking can include but not limited to: single-finger click, single-finger double-click, two-finger click, etc. Copying can include moving the cursor in the text and selecting the first text to display a menu bar containing copy options. The user clicks the copy option to complete the first text copy. There is no specific limitation on the specific duration of the long press, for example: long press for 1 second, 2 seconds or 3 seconds. This way of setting the first operation in a variety of ways makes the setting of the first operation more flexible.
根据第一方面,或者以上第一方面的任意一种实现方式,电子设备响应于用户对第一文本的第一操作,在第一应用的显示界面显示第二应用对应的第一图标,包括:电子设备响应于用户对第一文本的选中操作,在第一应用的显示界面显示第二应用对应的悬浮球,其中,第一文本中包括多个可组合的预设实体,悬浮球中包括第二应用对应的第一图标。该种应用推荐方式,识别到第一文本中包含多个可组合的预设实体时,仅推荐一个应用即第二应用对应的第一图标,推荐结果更加精准,便于用户选择。According to the first aspect, or any implementation manner of the above first aspect, the electronic device displays the first icon corresponding to the second application on the display interface of the first application in response to the user's first operation on the first text, including: In response to the user's selection operation on the first text, the electronic device displays a floating ball corresponding to the second application on the display interface of the first application, wherein the first text includes a plurality of combinable preset entities, and the floating ball includes the second The first icon corresponding to the second application. In this application recommendation method, when it is recognized that the first text contains a plurality of combinable preset entities, only one application is recommended, that is, the first icon corresponding to the second application, and the recommendation result is more accurate, which is convenient for the user to select.
根据第一方面,或者以上第一方面的任意一种实现方式,电子设备响应于用户对第一文本的第一操作,在第一应用的显示界面显示第二应用对应的第一图标,包括:电子设备响应于用户对第一文本的选中操作,在第一应用的显示界面显示悬浮窗,其中,第一文本中包括多个不可组合的预设实体,悬浮窗中包括多个应用图标,多个应用图标至少包括第二应用的第一图标。该种应用推荐方式,识别到第一文本中包含多个不可组合的预设实体时,由于不确定用户的真实意图,因此推荐多个应用推荐供用户选择,便于用户选择到期望切换的第二应用。According to the first aspect, or any implementation manner of the above first aspect, the electronic device displays the first icon corresponding to the second application on the display interface of the first application in response to the user's first operation on the first text, including: In response to the user's selection operation on the first text, the electronic device displays a floating window on the display interface of the first application, wherein the first text includes multiple non-combinable preset entities, the floating window includes multiple application icons, and multiple The application icons include at least the first icon of the second application. In this application recommendation method, when it is recognized that the first text contains multiple non-combinable preset entities, since the user’s true intention is uncertain, multiple application recommendations are recommended for the user to choose, which is convenient for the user to select the second entity that the user wants to switch to. application.
根据第一方面,或者以上第一方面的任意一种实现方式,电子设备响应于用户对第一 文本的第一操作,在第一应用的显示界面显示第二应用对应的第一图标,包括:电子设备响应于用户对第一文本的复制操作,在第一应用的显示界面显示悬浮窗,悬浮窗中包括多个应用图标,多个应用图标包括第二应用对应的第一图标。该种应用程序推荐方式,在复制的第一文本中不包含预设实体的情况下,由于不确定用户的真实意图,因此推荐多个应用推荐供用户选择,便于用户选择到期望切换的第二应用。According to the first aspect, or any implementation manner of the above first aspect, the electronic device displays the first icon corresponding to the second application on the display interface of the first application in response to the user's first operation on the first text, including: In response to the user's copy operation on the first text, the electronic device displays a floating window on the display interface of the first application, the floating window includes multiple application icons, and the multiple application icons include the first icon corresponding to the second application. In this application recommendation method, when the copied first text does not contain preset entities, since the user’s true intention is not sure, multiple application recommendations are recommended for the user to choose, which is convenient for the user to select the second desired switch. application.
根据第一方面,或者以上第一方面的任意一种实现方式,第二操作包括:单击、双击以及长按。单击可以包括但不限于:单手指单击、双手指单击,双击也可以包括但不限于:单手指双击、双手指双击,对于长按的具体时长在此不做具体限制,例如:长按1秒、2秒或者3秒等。该种将第二操作设置为多样化的方式,使得第二操作的设置更加灵活。According to the first aspect, or any implementation manner of the above first aspect, the second operation includes: single click, double click and long press. Single-click can include but not limited to: single-finger single-click, double-finger single-click, double-click can also include but not limited to: single-finger double-click, two-finger double-click, there is no specific limit for the specific duration of long press, for example: long press Press for 1 second, 2 seconds or 3 seconds, etc. This way of setting the second operation in a variety of ways makes the setting of the second operation more flexible.
第二方面,本申请又提供一种应用程序推荐方法,该方法应用于电子设备,该方法包括:电子设备响应于用户在第一应用对第一文本的第一操作例如点击、长按或复制,识别第一文本中包含的预设实体;在第一文本中包含预设实体的情况下,基于第一文本中包含的预设实体确定待推荐信息;在第一文本中不包含预设实体的情况下,基于第一文本的内容确定待推荐信息,其中,待推荐信息包括:应用图标或服务列表;在第一应用的显示界面中显示第一图标,第一图标与待推荐信息相对应。In a second aspect, the present application further provides a method for recommending an application program, the method is applied to an electronic device, and the method includes: the electronic device responds to the user's first operation on the first text in the first application, such as clicking, long pressing or copying , identify the preset entity contained in the first text; in the case of the preset entity contained in the first text, determine the information to be recommended based on the preset entity contained in the first text; if the preset entity is not contained in the first text In the case of , the information to be recommended is determined based on the content of the first text, wherein the information to be recommended includes: an application icon or a list of services; the first icon is displayed on the display interface of the first application, and the first icon corresponds to the information to be recommended .
该种应用程序推荐方法,基于用户选中的第一文本进行应用或者服务列表推荐,用户从推荐中点击第二应用即可触发电子设备开启第二应用,无需用户退出第一应用后从电子设备已安装的大量应用中查找第二应用,操作便捷且能够节省应用查找所耗时间。This application program recommendation method recommends an application or service list based on the first text selected by the user. The user clicks on the second application from the recommendation to trigger the electronic device to open the second application. Searching for a second application among a large number of installed applications is convenient and can save time spent on application search.
根据第二方面的应用程序推荐方法,电子设备在响应于用户在第一应用对第一文本的第一操作之前,该方法还包括:电子设备响应于用户在第一应用中对图片的第二操作例如:点击、长按等操作,在第一应用的显示界面中显示图片;识别图片中是否包含文本;在图片中包括文本的情况下,对图片进行OCR识别,得到第二文本;显示第一按钮,其中,第一按钮用于触发显示第二文本;用户预查看OCR识别结果时,可对第一按钮执行第三操作,电子设备响应于用户对第一按钮的第三操作,在显示界面中高亮显示第二文本,其中,第二文本包括第一文本。该种对图片进行OCR识别的方式,操作简单便捷。According to the application program recommendation method of the second aspect, before the electronic device responds to the user's first operation on the first text in the first application, the method further includes: the electronic device responds to the user's second operation on the picture in the first application Operations such as: click, long press and other operations to display a picture in the display interface of the first application; identify whether the picture contains text; if the picture contains text, perform OCR recognition on the picture to obtain the second text; display the second text A button, wherein the first button is used to trigger the display of the second text; when the user previews the OCR recognition result, the third operation can be performed on the first button, and the electronic device responds to the user's third operation on the first button, and displays The second text is highlighted in the interface, where the second text includes the first text. This method of OCR recognition of pictures is simple and convenient to operate.
根据第一方面,或者以上第一方面的任意一种实现方式,在第一文本中包含预设实体的情况下,电子设备基于第一文本中包含的预设实体确定待推荐信息包括:在第一文本中包含的单个预设实体的情况下,电子设备确定第一文本中所包含该预设实体匹配的第二应用或者服务列表。该种基于单个预设实体推荐单个应用或者服务列表的方式,所推荐的内容与用户期望值更加匹配。例如:预设实体为淘口令,用户查看淘口令时极有可能想要开启淘宝应用,因此将淘宝应用推荐给用户。无需用户再从桌面中手动查找淘宝应用。According to the first aspect, or any implementation manner of the above first aspect, in the case that the first text contains preset entities, determining the information to be recommended by the electronic device based on the preset entities contained in the first text includes: In the case of a single preset entity included in a text, the electronic device determines a second application or service list that matches the preset entity included in the first text. In this way of recommending a single application or service list based on a single preset entity, the recommended content is more in line with user expectations. For example, the default entity is the Taobao password. When the user checks the Taobao password, it is very likely that he wants to open the Taobao application, so the Taobao application is recommended to the user. There is no need for users to manually find the Taobao application from the desktop.
根据第一方面,或者以上第一方面的任意一种实现方式,在第一文本中包含预设实体的情况下,电子设备基于第一文本中包含的预设实体确定待推荐信息包括:在第一文本中包含多个预设实体的情况下,电子设备确定多个预设实体是否可组合;在多个预设实体可组合的情况下,基于多个预设实体确定一个第三应用。该种应用推荐方式,识别到第一文本中包含多个可组合的预设实体时,仅推荐一个应用即第二应用,推荐结果更加精准,便于用户选择。例如:识别到第一文本中包括姓名、电话号码以及地址时,判定用户极有可能想要切换到购物类应用,因此推荐购物类应用。According to the first aspect, or any implementation manner of the above first aspect, in the case that the first text contains preset entities, determining the information to be recommended by the electronic device based on the preset entities contained in the first text includes: When a text contains multiple preset entities, the electronic device determines whether the multiple preset entities can be combined; if the multiple preset entities can be combined, a third application is determined based on the multiple preset entities. In this application recommendation method, when it is recognized that the first text contains a plurality of combinable preset entities, only one application, that is, the second application, is recommended, and the recommendation result is more accurate, which is convenient for the user to select. For example: when it is recognized that the first text includes a name, a phone number, and an address, it is determined that the user is likely to want to switch to a shopping application, and therefore a shopping application is recommended.
根据第一方面,或者以上第一方面的任意一种实现方式,电子设备在确定多个预设实 体不可组合的情况下,分别确定包含的各预设实体匹配的第四应用,将所确定的多个第四应用确定为推荐信息。该种应用推荐方式,识别到第一文本中包含多个不可组合的预设实体时,由于不确定用户的真实意图,因此推荐多个应用推荐供用户选择,便于用户选择到期望切换的应用。例如:第一文本中包括外文、淘口令以及地址时,由于这三个预设实体不可组合,因此分别推荐各预设实体对应的应用翻译类应用、地图类应用以及购物类应用。According to the first aspect, or any implementation manner of the above first aspect, when the electronic device determines that multiple preset entities cannot be combined, respectively determine the fourth application that each of the included preset entities matches, and convert the determined Multiple fourth applications are determined as recommended information. In this application recommendation method, when it is recognized that the first text contains multiple non-combinable preset entities, since the user's real intention is uncertain, multiple application recommendations are recommended for the user to choose, so that the user can select the desired application. For example, when the first text includes foreign language, Taobao password and address, since these three preset entities cannot be combined, the application translation application, map application and shopping application corresponding to each preset entity are respectively recommended.
根据第二方面,或者以上第二方面的任意一种实现方式,在第一文本中不包含预设实体的情况下,基于第一文本的内容确定待推荐信息包括:电子设备在第一文本中不包含的预设实体的情况下,对第一文本进行特征提取;基于提取的特征确定第一文本匹配的第一应用分类和第二应用分类;从第一应用分类下筛选出第一预设数量的第五应用;从第二应用分类下筛选出第二预设数量的第六应用;第五应用和第六应用,确定为待推荐信息。其中,第一预设数量大于第二预设数量,第一预设数量、第二预设数量的具体数值可由本领域技术人员灵活设置,本方案中对此不做具体限制。该种应用程序推荐方式,在第一文本中不包含预设实体的情况下,由于不确定用户的真实意图,因此推荐多个应用推荐供用户选择,便于用户选择到期望切换的第二应用。According to the second aspect, or any implementation of the above second aspect, in the case that the first text does not contain a preset entity, determining the information to be recommended based on the content of the first text includes: the electronic device in the first text In the case of not including the preset entity, perform feature extraction on the first text; determine the first application classification and the second application classification matching the first text based on the extracted features; filter out the first preset from the first application classification The number of fifth applications; the second preset number of sixth applications are filtered out from the second application category; the fifth application and the sixth application are determined as information to be recommended. Wherein, the first preset number is greater than the second preset number, and the specific values of the first preset number and the second preset number can be flexibly set by those skilled in the art, and there is no specific limitation in this solution. In this application recommendation method, when the first text does not contain a preset entity, since the user's true intention is uncertain, multiple application recommendations are recommended for the user to choose, so that the user can select the second application desired to switch.
根据第二方面,或者以上第二方面的任意一种实现方式,第一图标包括:悬浮球或悬浮窗。悬浮球遮挡屏幕面积小,悬浮窗中可显示的内容较多,电子设备可依据待推荐信息的内容多少来适应性选择第一图标样式。According to the second aspect, or any implementation manner of the above second aspect, the first icon includes: a floating ball or a floating window. The screen area covered by the floating ball is small, and the floating window can display more content. The electronic device can adaptively select the first icon style according to the content of the information to be recommended.
根据第二方面,或者以上第二方面的任意一种实现方式,预设实体可以包括但不限于:地址、码、身份证号码、电话号码、快递单号、网址、邮箱地址、外文、淘口令或者抖音口令。预设实体可以由本领域技术人员灵活调整。设置多个预设实体,为每个预设实体预先设置对应的应用推荐信息,便于在用户使用过程中,为用户进行可靠的应用推荐。According to the second aspect, or any implementation method of the above second aspect, the preset entity may include but not limited to: address, code, ID number, phone number, courier number, website, email address, foreign language, Taobao password Or Douyin password. The preset entities can be flexibly adjusted by those skilled in the art. Multiple preset entities are set, and corresponding application recommendation information is preset for each preset entity, so as to facilitate reliable application recommendation for users during use.
第三方面,本申请提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行第一方面或第二方面的任意可能的实现方式中的方法的指令,或包括用于执行第一方面或第二方面的任意可能的实现方式中的方法的指令。In a third aspect, the present application provides a computer-readable medium for storing a computer program, the computer program including instructions for executing the method in any possible implementation of the first aspect or the second aspect, or including using Instructions for executing the method in any possible implementation manner of the first aspect or the second aspect.
第四方面,本申请提供了一种计算机程序,该计算机程序包括用于执行第一方面或第二方面的任意可能的实现方式中的方法的指令,或包括用于执行第一方面或第二方面的任意可能的实现方式中的方法的指令。In a fourth aspect, the present application provides a computer program, the computer program includes instructions for executing the method in any possible implementation of the first aspect or the second aspect, or includes instructions for executing the method of the first aspect or the second aspect An instruction for a method in any possible implementation of an aspect.
附图说明Description of drawings
图1为示例性示出的电子设备的硬件结构示意图;FIG. 1 is a schematic diagram of a hardware structure of an exemplary electronic device;
图2为示例性示出的电子设备的软件结构示意图;FIG. 2 is a schematic diagram of a software structure of an exemplary electronic device;
图3为示例性示出的一种对图库中的图片进行OCR识别的界面示意图;FIG. 3 is a schematic diagram of an interface for performing OCR recognition on pictures in a gallery;
图4A为示例性示出的一种基于单预设实体进行应用推荐的界面示意图;FIG. 4A is a schematic diagram of an interface for application recommendation based on a single preset entity;
图4B为示例性示出的一种基于单预设实体进行服务列表推荐的界面示意图;Fig. 4B is an exemplary interface schematic diagram showing a service list recommendation based on a single preset entity;
图5为示例性示出的一种基于淘口令进行应用推荐的界面示意图;FIG. 5 is a schematic diagram of an interface for recommending applications based on the Taobao password;
图6为示例性示出的基于图片中的单个预设实体进行应用推荐时用户与设备间交互的时序流程图;FIG. 6 is a sequence flow chart of interaction between a user and a device when recommending an application based on a single preset entity in a picture;
图7为示例性示出的一种基于用户先后两次选中的多个关联预设实体进行应用推荐时界面变化示意图;Fig. 7 is an exemplary diagram showing a change in the interface when recommending applications based on multiple associated preset entities selected by the user twice successively;
图8为示例性示出的又一种基于用户先后两次选中的多个预设实体进行应用推荐时界面变化示意图;Fig. 8 is another schematic diagram of interface changes when recommending applications based on multiple preset entities selected twice by the user;
图9为示例性示出的一种基于用户先后两次选中的多个非关联预设实体进行应用列表推荐时界面变化示意图;FIG. 9 is an exemplary diagram showing a change in the interface when recommending an application list based on multiple non-associated preset entities selected by the user twice successively;
图10为示例性示出的基于图片中的多个预设实体进行应用推荐时用户与设备间交互的时序流程图;Fig. 10 is a sequence flow chart of the interaction between the user and the device when recommending applications based on multiple preset entities in the picture;
图11为示例性示出的一种基于不包含预设实体的图片进行应用推荐的界面示意图;Fig. 11 is a schematic diagram of an interface for recommending applications based on pictures that do not contain preset entities;
图12为示例性示出的基于图片内容进行应用推荐时用户与设备间交互的时序流程图。FIG. 12 is a sequence flow chart of the interaction between the user and the device when recommending applications based on picture content.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。The term "and/or" in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and there exists alone B these three situations.
本申请实施例的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一目标对象和第二目标对象等是用于区别不同的目标对象,而不是用于描述目标对象的特定顺序。The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order of objects. For example, the first target object, the second target object, etc. are used to distinguish different target objects, rather than describing a specific order of the target objects.
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations or illustrations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application shall not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.
在本申请实施例的描述中,除非另有说明,“多个”的含义是指两个或两个以上。例如,多个处理单元是指两个或两个以上的处理单元;多个系统是指两个或两个以上的系统。In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more. For example, multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.
本申请实施例中的应用程序推荐方法,可以应用于将同一电子设备的第一应用中的文本复制到第二应用中的场景。The method for recommending application programs in the embodiments of the present application may be applied to a scenario where text in a first application of the same electronic device is copied to a second application.
在一个示例中,该场景例如可以是:将浏览器、备忘录、邮件、微信等应用中的文本复制粘贴到与文本的来源应用不同的其他应用中。本示例中,应用中的文本能够被直接选择、复制或者点击。In an example, the scenario may be, for example, copying and pasting text from applications such as a browser, memo, email, and WeChat into other applications that are different from the source application of the text. In this example, text within the application can be directly selected, copied, or clicked.
在另一个示例中,该场景例如可以是:将图片的光学字符识别(Optical Character Recognition,OCR)识别结果中的目标文字复制粘贴到某一应用中。其中,图片可以来源于图库、实时截屏、浏览器、微信、QQ等等应用。本申请实施例对图片的来源不做限制。本示例中,应用中的文本来源于图片的OCR识别结果,未OCR识别之前图片中的文本不能被直接选择。In another example, the scenario may be, for example: copying and pasting target text in an optical character recognition (Optical Character Recognition, OCR) recognition result of a picture into an application. Among them, the pictures can come from the gallery, real-time screenshots, browsers, WeChat, QQ and other applications. The embodiment of this application does not limit the source of the picture. In this example, the text in the application comes from the OCR recognition result of the picture, and the text in the picture cannot be directly selected before OCR recognition.
举例来说,一个快递的照片中有地址信息、电话、收件人等信息,用户想要将该地址信息添加到某一购物类应用的收货地址中。此时,可以应用本申请实施例中的应用程序推 荐方法,将照片中的地址信息粘贴到购物类应用的收货地址中。For example, a courier photo contains information such as address information, phone number, recipient, etc., and the user wants to add the address information to the delivery address of a shopping application. At this time, the application recommendation method in the embodiment of this application can be applied, and the address information in the photo can be pasted into the delivery address of the shopping application.
应用光学字符识别技术,可以识别出图片中的字符串,这些被识别出的字符串即图片的OCR识别结果为文本,用户在OCR识别结果中选中的目标文字可称为第一文本、第二文本等。在图片的OCR识别结果中,字符串可以被进一步判定是否为预设实体,例如:地址、码、身份证号码、电话号码、快递单号、网址、邮箱地址、外文、淘口令或者抖音口令等,用户可以单选或者多选OCR识别结果中的预设实体,用户可以对OCR识别结果的非预设实体进行选择、复制等操作以选中目标文字。选中目标文字后,用户通常希望将目标文字粘贴到某个应用或者某个服务的文本输入框中,系统将依据目标文字进行应用或者服务列表推荐,以便用户选择目标应用或目标服务,将目标文字粘贴到目标应用或目标服务中。其中,应用又可称为应用程序,目标应用、目标服务对应的应用也可称为用户对推荐的图标进行点击后触发系统开启的应用,当前显示该图片的应用又可称为第一应用。The application of optical character recognition technology can recognize the character strings in the picture. These recognized character strings are the OCR recognition results of the pictures as text. The target text selected by the user in the OCR recognition results can be called the first text, the second text etc. In the OCR recognition result of the picture, the character string can be further judged whether it is a preset entity, such as: address, code, ID number, phone number, courier number, website, email address, foreign language, Taobao password or Douyin password etc., the user can single-select or multi-select the preset entities in the OCR recognition result, and the user can select and copy the non-preset entities in the OCR recognition result to select the target text. After selecting the target text, the user usually wants to paste the target text into the text input box of an application or a service, and the system will recommend the application or service list based on the target text, so that the user can select the target application or service, and paste the target text Paste into the target application or target service. Wherein, an application may also be called an application program, an application corresponding to a target application or a target service may also be called an application triggered by the system after the user clicks on a recommended icon, and the application currently displaying the picture may also be called the first application.
用户选中的目标文字可能存在如下几种情况:第一、包含单个预设实体,第二、包含多个具有关联关系的预设实体,第三、包含多个不具有关联关系的预设实体,第四、不包含预设实体。根据目标文字中包含的预设实体的情况不同,系统会采用不同的推荐方式进行应用或者服务列表推荐。目标文字中包含单个预设实体的情况下,系统推荐单个应用或者服务列表;目标文字中包含多个具有关联关系的预设实体的情况下,系统推荐单个应用或者服务列表;目标文字中包含多个不具有关联关系预设实体的情况下,系统推荐任务栏又可称为推荐应用列表,目标文字中不包含预设实体的情况下,系统推荐任务栏。其中,任务栏中包含所推荐的多个应用。各种情况下进行应用或者服务列表的推荐流程及具体推荐内容,详见下文中的相关描述。The target text selected by the user may have the following situations: first, it contains a single preset entity; second, it contains multiple preset entities with association relationships; third, it contains multiple preset entities without association relationships. Fourth, it does not contain default entities. Depending on the preset entities contained in the target text, the system will use different recommendation methods to recommend applications or service lists. When the target text contains a single preset entity, the system recommends a single application or service list; when the target text contains multiple preset entities with associated relationships, the system recommends a single application or service list; In the case that there is no preset entity of association relationship, the system recommends the taskbar, which may also be called a recommended application list, and in the case that the target text does not contain the preset entity, the system recommends the taskbar. Wherein, the task bar includes multiple recommended applications. For the recommendation process and specific recommendation content of the application or service list under various circumstances, please refer to the relevant description below.
本申请实施例中的应用交互方法可以应用于电子设备。该电子设备例如可以是手机、平板等。图1为示例性示出的电子设备100的结构示意图。应该理解的是,图1所示电子设备100仅是电子设备的一个范例,并且电子设备100可以具有比图中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图1中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。The application interaction method in the embodiments of the present application may be applied to electronic devices. The electronic device may be, for example, a mobile phone, a tablet, and the like. FIG. 1 is a schematic structural diagram of an electronic device 100 exemplarily shown. It should be understood that the electronic device 100 shown in FIG. 1 is only an example of an electronic device, and the electronic device 100 may have more or fewer components than those shown in the figure, and two or more components may be combined , or can have different component configurations. The various components shown in FIG. 1 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
请参见图1,电子设备100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。Referring to Fig. 1, the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142 , antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193 , a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
电子设备100的软件系统可以采用分层架构、事件驱动架构、微核架构、微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .
图2为示例性示出的本申请实施例的电子设备100的软件结构框图。FIG. 2 is a schematic block diagram showing the software structure of the electronic device 100 according to the embodiment of the present application.
电子设备100的分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层、应用程序框架层、安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture of the electronic device 100 divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, which are application program layer, application program framework layer, Android runtime (Android runtime) and system library, and kernel layer respectively from top to bottom.
应用程序层可以包括一系列应用程序包。The application layer can consist of a series of application packages.
如图2所示,应用程序包可以包括传感器、相机、图库、OCR引擎、应用推荐模块、三方应用、截图等应用程序。As shown in Figure 2, the application package may include applications such as sensors, cameras, image galleries, OCR engines, application recommendation modules, third-party applications, and screenshots.
其中,OCR引擎可用于对图片进行OCR识别,并对OCR识别结果中的预设实体进行识别;图片可以是截屏应用所得到的截屏图片,也可以是相机应用拍照所得的照片,还可以是图库中存储的图片,等等,本申请实施例对图片来源不做限制。Among them, the OCR engine can be used to perform OCR recognition on the picture, and recognize the preset entity in the OCR recognition result; the picture can be a screenshot obtained by a screenshot application, or a photo taken by a camera application, or a gallery The pictures stored in , etc., the embodiment of this application does not limit the source of the pictures.
应用推荐用于根据目标文字内容,预测与目标文字内容相关的应用或者服务列表,并将预测的应用推荐给用户。三方应用用于提供图片或者提供可选择、可复制的文本信息。The application recommendation is used to predict an application or service list related to the target text content according to the target text content, and recommend the predicted application to the user. Third-party applications are used to provide pictures or provide text information that can be selected and copied.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图2所示,应用程序框架层可以包括视图系统、资源管理器、窗口管理器、活动管理器等。As shown in Figure 2, the application framework layer may include a view system, a resource manager, a window manager, an activity manager, and the like.
其中,视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。Wherein, the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and the like. The view system can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
资源管理器为应用程序提供各种资源,比如本地化字符串,图标、图片、布局文件、视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小、判断是否有状态栏、锁定屏幕、截取屏幕等。A window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
活动管理器用于管理各个应用程序的生命周期以及导航回退功能,负责Android的主线程创建,各个应用程序的生命周期的维护。The activity manager is used to manage the life cycle of each application program and the navigation fallback function, and is responsible for creating the main thread of Android and maintaining the life cycle of each application program.
Android runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓(Android)的核心库。The core library includes two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android (Android).
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application program layer and the application program framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块,例如表面管理器(surface manager)等。The system library may include multiple functional modules, such as a surface manager (surface manager) and the like.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
内核层是硬件和软件之间的层。内核层可以包含显示驱动、传感器驱动等模块。The kernel layer is the layer between hardware and software. The kernel layer can contain modules such as display drivers and sensor drivers.
可以理解的是,图2示出的软件结构中的层以及各层中包含的部件,并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的层,以及每个层中可以包括更多或更少的部件,本申请不做限定。It can be understood that the layers in the software structure shown in FIG. 2 and the components included in each layer do not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer layers than shown, and each layer may include more or fewer components, which is not limited in the present application.
为描述方便,本文后续将电子设备简称为设备。应当理解,本文中所提及的设备均可具有与前述实施例中的电子设备100相同的硬件结构(例如图1所示的硬件结构)以相同 的软件结构(例如图2所示的软件结构)。For the convenience of description, the electronic device will be referred to as a device for short in the following text. It should be understood that the devices mentioned herein can have the same hardware structure (such as the hardware structure shown in FIG. 1 ) and the same software structure (such as the software structure shown in FIG. 2 ) as the electronic device 100 in the foregoing embodiments. ).
本申请实施例中分别从用户选中的目标文字包含单个实体、多个实体以及不包含实体这三种场景为例,对本申请的应用推荐方法的具体流程进行说明。In the embodiment of the present application, the specific flow of the application recommendation method of the present application is described by taking three scenarios, namely, that the target text selected by the user contains a single entity, multiple entities, and no entity, as examples.
下面结合图3至图6,对用户选中的目标文字包含单个实体时,进行应用推荐的流程进行说明。图6为示例性示出的基于图片中的单个实体进行应用推荐时,用户与设备间交互的时序流程图,该应用推荐流程包括如下步骤:The process of recommending an application when the target text selected by the user contains a single entity is described below with reference to FIGS. 3 to 6 . FIG. 6 is an exemplary diagram showing a sequence flow chart of interaction between a user and a device when recommending an application based on a single entity in a picture. The process of recommending an application includes the following steps:
S1:用户点击图库中的图片a。S1: The user clicks picture a in the gallery.
S2:设备响应于点击图片a,在设备屏幕上显示图片a。S2: The device displays the picture a on the device screen in response to clicking the picture a.
用户可以在多种情况下执行点击图片的操作,从而在设备屏幕上显示图片。这里的设备例如可以是手机、平板等。本文中以设备为手机为例进行说明。应当理解的是,本文中以手机为例所进行的说明同样适用于其他非手机的设备,例如平板等。The user can perform the operation of clicking the picture in various situations, thereby displaying the picture on the device screen. The device here may be, for example, a mobile phone, a tablet, and the like. In this document, the device is a mobile phone as an example for illustration. It should be understood that the description in this document taking a mobile phone as an example is also applicable to other non-mobile devices, such as a tablet.
S3:设备检测图片a中是否存在文字,如果存在文字,获取图片a的OCR识别结果。S3: The device detects whether there are texts in the picture a, and if there are texts, obtains the OCR recognition result of the picture a.
例如,图3为对图库中的图片进行OCR识别的界面示意图。请参见图3,在一个示例性的实现方式中,用户可以点击手机的主界面中的“图库”图标(请参见图3的(a)图),点击“图库”图标后,进入到“图库”应用的内部界面,此时的界面显示如图3的(b)图所示。请参见3的(b)图,“图库”中包括图片a、图片1、图片2、图片3、图片n等图片。用户可以继续在图3的(b)图所示界面上进行点击图片的操作,例如,假设用户点击了图片a。For example, FIG. 3 is a schematic diagram of an interface for performing OCR recognition on pictures in a gallery. Please refer to Figure 3. In an exemplary implementation, the user can click the "Gallery" icon in the main interface of the mobile phone (see (a) of Figure 3), and after clicking the "Gallery" icon, enter the "Gallery" icon. ” The internal interface of the application, the interface display at this time is shown in Figure 3 (b). Please refer to figure (b) of 3, the "Gallery" includes picture a, picture 1, picture 2, picture 3, picture n and other pictures. The user can continue to click on the picture on the interface shown in (b) of FIG. 3 . For example, suppose the user clicks on picture a.
此时,手机响应于点击图片a,在手机屏幕上显示图片a,如图3(c)图所示。图3中的(a)图~(c)图以从图库进入到图片显示界面为例进行了说明,需要说明的是,本申请并不限制进入到图片显示界面的方式。例如,在本申请其他实施例中,还可以通过截屏后点击截屏图片的方式进入到图片显示界面,还可以通过在浏览网页过程中点击网页中的图片的方式进入到图片显示界面,还可以通过社交通信软件聊天过程中点击聊天界面中的图片的方式进入到图片显示界面,还可以通过在朋友圈、公众号发文中点击图片的方式进入到图片显示界面等等,此处不再一一列举。At this time, the mobile phone displays the picture a on the screen of the mobile phone in response to clicking on the picture a, as shown in FIG. 3( c ). Figures (a) to (c) in FIG. 3 are illustrated by taking the access to the image display interface from the gallery as an example. It should be noted that the present application does not limit the way of entering the image display interface. For example, in other embodiments of the present application, it is also possible to enter the picture display interface by clicking on the screenshot picture after taking a screenshot, or to enter the picture display interface by clicking on a picture in the web page during web browsing, or to enter the picture display interface through During the chatting process of social communication software, click the picture in the chat interface to enter the picture display interface. You can also enter the picture display interface by clicking the picture in the circle of friends or the official account, etc., and will not list them here. .
请继续参见图3,在显示图片a后,本申请实施例的应用推荐方法进一步检测图片a中是否存在文字。如果图片a中存在文字,获取图片a的OCR识别结果。如果图片a中不存在文字,本申请实施例的应用推荐方法流程结束。Please continue to refer to FIG. 3 , after the picture a is displayed, the application recommendation method in the embodiment of the present application further detects whether there is text in the picture a. If there is text in picture a, get the OCR recognition result of picture a. If there is no text in the picture a, the flow of the application recommendation method in the embodiment of the present application ends.
本申请实施例中,设备可以通过多种方式来获取图片a的OCR识别结果。In the embodiment of the present application, the device may obtain the OCR recognition result of picture a in various ways.
在一个示例性的实现过程中,如果图片a的存储数据中包括图片a的OCR识别结果,设备可以直接从图片a的存储数据中读取图片a的OCR识别结果。In an exemplary implementation process, if the storage data of picture a includes the OCR recognition result of picture a, the device may directly read the OCR recognition result of picture a from the storage data of picture a.
在另一个示例性的实现过程中,如果图片a的存储数据中不包括图片a的OCR识别结果,设备可以调用图2所示应用程序层的OCR引擎对图片a进行实时的OCR识别,从OCR引擎的输出数据中获取到图片a的OCR识别结果。In another exemplary implementation process, if the stored data of picture a does not include the OCR recognition result of picture a, the device can call the OCR engine of the application layer shown in Figure 2 to perform real-time OCR recognition of picture a, from the OCR The OCR recognition result of picture a is obtained from the output data of the engine.
其中,OCR引擎用于对图片进行OCR识别,输出图片的OCR识别结果。Wherein, the OCR engine is used to perform OCR recognition on the picture, and output the OCR recognition result of the picture.
S4:如果获取到图片a的OCR识别结果,在设备屏幕上弹出OCR按钮。S4: If the OCR recognition result of picture a is obtained, an OCR button pops up on the screen of the device.
本步骤中设备屏幕上所弹出的OCR识别按钮处于未开启状态。此时的设备界面请参见图3的(d)图。在用户未点击图3的(d)图中OCR识别按钮的情况下,图片a中的文字等字符是不可选择、不可复制的。In this step, the OCR recognition button that pops up on the device screen is not turned on. For the device interface at this time, please refer to (d) of FIG. 3 . When the user does not click the OCR recognition button in (d) of FIG. 3 , characters such as text in picture a cannot be selected or copied.
这时,用户可以点击OCR按钮,以触发后续高亮显示OCR识别结果以及对OCR识别结果中包含的预设实体添加下划线的操作。At this time, the user may click the OCR button to trigger subsequent operations of highlighting the OCR recognition result and adding an underline to the preset entity contained in the OCR recognition result.
如果设备在屏幕上弹出OCR按钮后预设时长内没有检测到点击OCR按钮的操作,可以确认用户没有从OCR识别结果中选中目标文字、触发系统进行应用推荐的需求。此时,设备可以在设备屏幕上主动停止显示OCR按钮,即OCR识别按钮从图片a的界面上消失。预设时长可由本领域技术人员灵活设置,例如:设置为2秒、3秒、5秒等,本申请实施例中对此不做具体限制。If the device does not detect the operation of clicking the OCR button within the preset period of time after the OCR button pops up on the screen, it can be confirmed that the user has not selected the target text from the OCR recognition results to trigger the system to recommend applications. At this time, the device may actively stop displaying the OCR button on the device screen, that is, the OCR identification button disappears from the interface of picture a. The preset duration can be flexibly set by those skilled in the art, for example: set to 2 seconds, 3 seconds, 5 seconds, etc., which is not specifically limited in this embodiment of the present application.
在一个示例性的实现过程中,如果用户没有从OCR识别结果中选中目标文字、触发系统进行应用推荐的需求,用户也可以点击OCR按钮外的任意一处。此时,设备检测到用户对OCR按钮外的任意一处的点击操作,可以在设备屏幕上停止显示OCR按钮。这种方式中,设备基于用户操作被动停止显示OCR按钮。In an exemplary implementation process, if the user does not need to select the target text from the OCR recognition result to trigger the system to recommend an application, the user can also click anywhere other than the OCR button. At this time, the device detects that the user clicks any place other than the OCR button, and may stop displaying the OCR button on the device screen. In this way, the device passively stops displaying the OCR button based on user actions.
当然,在另一个示例性的实现过程中,如果用户无从OCR识别结果中选中目标文字、触发系统进行应用推荐的需求,设备还可以将OCR按钮一直保持在未开启状态。Of course, in another exemplary implementation process, if the user does not need to select the target text from the OCR recognition result and trigger the system to recommend the application, the device can also keep the OCR button in the off state.
S5:用户点击OCR按钮。S5: the user clicks the OCR button.
设备检测到用户对OCR按钮的点击操作,可以确认用户有从OCR识别结果中选中目标文字触发系统进行应用推荐的需求。The device detects the user's click operation on the OCR button, which can confirm that the user has the need to select the target text from the OCR recognition results to trigger the system to recommend applications.
对OCR按钮的点击操作并不局限于图3d中所示的单击操作,还可以为双击或长按操作等。The click operation on the OCR button is not limited to the single click operation shown in FIG. 3d, and may also be a double click or long press operation.
S6:设备响应于对OCR按钮的点击操作,在设备屏幕上高亮显示图片a的OCR识别结果,并为识别到的预设实体添加下滑线。S6: In response to the click operation on the OCR button, the device highlights the OCR recognition result of the picture a on the device screen, and adds an underline to the recognized preset entity.
系统中管理有预设实体信息,预设实体信息可以以列表的形式存储。预设实体可以包括但不限于:姓名、地址、码、身份证号码、电话号码、快递单号、网址、邮箱地址、外文、淘口令或者抖音口令等。预设实体可以由本领域技术人员灵活地增删或者修改。Preset entity information is managed in the system, and the preset entity information can be stored in the form of a list. Preset entities may include but are not limited to: name, address, code, ID card number, phone number, courier number, website, email address, foreign language, Taobao password or Douyin password, etc. The preset entities can be added, deleted or modified flexibly by those skilled in the art.
用户点击OCR按钮后的界面请参见图3的(e)图。此时,OCR识别结果高亮显示,并且在预设实体下方添加有下划线。图3的(e)图中所显示的OCR识别结果中的字符为可选择、可点击、可复制的状态。Refer to (e) of FIG. 3 for the interface after the user clicks the OCR button. At this point, the OCR recognition result is highlighted, and an underline is added under the preset entity. The characters in the OCR recognition result shown in (e) of FIG. 3 are selectable, clickable, and copyable.
需要说明的是,图3(e)图中仅是示例性的显示OCR识别结果以及对OCR识别结果中的预设实体进行突出显示的方式。在实际实现过程中,本领域技术人员可以灵活设置,本申请对于OCR识别结果的显示方式不作限制。It should be noted that, FIG. 3( e ) is only an exemplary way of displaying the OCR recognition result and highlighting the preset entities in the OCR recognition result. In the actual implementation process, those skilled in the art can set it flexibly, and the present application does not limit the display mode of the OCR recognition result.
例如,在一个示例中,对于OCR识别结果中的字符添加边框,以表示OCR识别结果为可选择、可点击或者可复制状态。在另一个示例中,可以为OCR识别结果中的字符添加边框并在边框中填充与图片背景不同的底色等。For example, in one example, a border is added to the characters in the OCR recognition result to indicate that the OCR recognition result is selectable, clickable or copyable. In another example, a frame may be added to the characters in the OCR recognition result and the frame may be filled with a background color different from that of the picture background.
图3(e)图中OCR识别结果中包括“收件人:xxx”、“电话:151xxxxxx”、“北京市海淀区xx路xx大厦”三个预设实体,对这三个预设实体添加下划线,以提示用户识别到的OCR识别结果中哪些为预设实体。需要说明的是,图3(e)图中仅是以为预设实体添加下划线以着重显示预设实体为例进行说明,在实际实现过程中,设备可以以其他预设的着重显示方式进行显示。例如,设备可以以区分于非预设实体的颜色高亮显示实体、或者为实体设置与OCR识别结果中的其他非预设实体文字设置不同的底色,等等,本申请对OCR识别结果中预设实体的着重显示方式不作限制。The OCR recognition results in Figure 3(e) include three preset entities: "recipient: xxx", "telephone: 151xxxxxx", "xx building, xx Road, Haidian District, Beijing", and add to these three preset entities Underline to remind the user which of the recognized OCR recognition results are preset entities. It should be noted that, in FIG. 3( e ), it is only an example of emphasizing the preset entity by adding an underline to the preset entity for illustration. In the actual implementation process, the device may display in other preset emphatic display methods. For example, the device can highlight entities with a color that distinguishes them from non-preset entities, or set a background color for entities that is different from other non-preset entity texts in the OCR recognition results, etc. The emphatic display mode of the default entity is not limited.
实体识别方法可基于NLU(Natural Language Understanding,自然语言理解)技术实现。NLU系统可设置在OCR引擎中,也可以单独设置在其他功能模块中,本申请实施例中以NLU系统设置在OCR引擎中为例进行说明。The entity recognition method can be realized based on NLU (Natural Language Understanding, natural language understanding) technology. The NLU system can be set in the OCR engine, or can be set separately in other functional modules. In the embodiment of the present application, the NLU system is set in the OCR engine as an example for illustration.
NLU系统模仿人类理解语言的基本方式,即断句、分词等,将文本切割为一系列具有语义、语法的单元。当然也有一些切分方式不符合人类的直觉,比如N-gram算法、字节对编码等切分方法,切分成的字符串单元不是词语。为此通常用“token”这个单词来表示文本切分得到的字符串单元。The NLU system imitates the basic way humans understand language, that is, sentence segmentation, word segmentation, etc., and cuts the text into a series of semantic and grammatical units. Of course, there are also some segmentation methods that do not conform to human intuition, such as segmentation methods such as N-gram algorithm and byte pair encoding, and the string units divided into are not words. For this reason, the word "token" is usually used to represent the string unit obtained by text segmentation.
NLU系统会基于token序列,使用词向量空间模型、分布式表示模型等文本表示模型,得到一个数值向量或者矩阵。这个矩阵就是文本的数值化表示。人工智能领域的很多算法只能处理数值类型的数据。而有些算法,比如基于词袋模型的文本相似度计算方法,可以直接处理字符串序列,也可以应对以数值向量形式文本表示。因此,大家经常在一个系统内使用指数向量或矩阵作为统一的文本表示形式。NLU系统就会基于文本表示数据,使用分类算法、序列标注方法等等,计算得到文本中的“关键信息”,比如实体、三元组、意图、事件等等。本申请实施例中,可将OCR识别结果作为待切分文本,采用NLU系统对待切分文件进行识别,识别出OCR识别结果中包含的预设实体。Based on the token sequence, the NLU system uses text representation models such as word vector space models and distributed representation models to obtain a numerical vector or matrix. This matrix is the numerical representation of the text. Many algorithms in the field of artificial intelligence can only deal with numerical data. And some algorithms, such as the text similarity calculation method based on the bag of words model, can directly process string sequences, and can also deal with text representations in the form of numerical vectors. Therefore, people often use exponential vectors or matrices as a unified textual representation within a system. The NLU system will represent data based on text, use classification algorithms, sequence labeling methods, etc., to calculate "key information" in the text, such as entities, triples, intentions, events, and so on. In the embodiment of the present application, the OCR recognition result can be used as the text to be segmented, and the NLU system can be used to identify the file to be segmented, and recognize the preset entity contained in the OCR recognition result.
S7:用户在OCR识别结果中点击选中单个预设实体。S7: The user clicks to select a single preset entity in the OCR recognition result.
在界面中显示图片a的OCR识别结果后,用户可通过点击预设实体的任意位置或者预设实体对应下划线,来选中一个预设实体。After the OCR recognition result of picture a is displayed in the interface, the user can select a preset entity by clicking on any position of the preset entity or the underline corresponding to the preset entity.
S8:设备响应于对预设实体的选中操作,依据被选中的预设实体推荐单个应用或服务列表。S8: The device recommends a single application or service list according to the selected preset entity in response to the operation of selecting the preset entity.
用户选中的预设实体即为用户选中的目标文字,用户选中单个预设实体的情况下,系统基于单个预设实体推荐单个应用或服务列表。用户选择的预设实体不同,则基于预设实体推荐的单个应用或服务列表不同。The preset entity selected by the user is the target text selected by the user. When the user selects a single preset entity, the system recommends a single application or service list based on the single preset entity. The preset entity selected by the user is different, and the single application or service list recommended based on the preset entity is different.
系统中可预先设置预设实体与应用、预设实体与服务列表之间的对应关系,该对应关系可以以列表的形式或者其他形式存储在存储区域中,为便于后续描述可以将该列表命名为推荐规则列表,需要说明的是,本申请实施例中对包含预设实体与应用、预设实体与服务列表之间的对应关系的列表的具体名称不做限定。系统在确定用户选中的单个预设实体的情况下,可从推荐列表中查询用户选中的预设实体对应的应用或者服务列表进行推荐显示。The system can preset the correspondence between preset entities and applications, preset entities and service lists, and the correspondence can be stored in the storage area in the form of a list or in other forms. For the convenience of subsequent descriptions, the list can be named as The recommendation rule list, it should be noted that in the embodiment of the present application, there is no limitation on the specific name of the list including the correspondence between preset entities and applications, preset entities and service lists. When the system determines a single preset entity selected by the user, the system may query the list of applications or services corresponding to the preset entity selected by the user from the recommendation list for recommended display.
请参照图4A,图4A为示例性示出的一种基于单预设实体进行应用推荐的界面示意图,如图4A(a)所示,用户点击“北京市海淀区××路××大厦”这一实体,系统判定用户选中的该预设实体为地址,从推荐规则列表中查找地址对应的推荐应用,查找到推荐应用为地图应用,系统可从设备已安装的各地图应用中选择一个或多个地图应用进行推荐。一种示例性的显示单个地图应用的界面示意图如图4A(b)所示,在界面的右侧悬浮显示有推荐的单个应用的图标“地图应用A”401,用户可点击“地图应用A”触发系统打开地图应用A,后续在地图应用A中添加“北京市海淀区××路××大厦”,查看导航路线。单个应用的图标可以以悬浮球的形式进行显示,在悬浮球中包含所推荐的应用的图标。Please refer to Figure 4A. Figure 4A is a schematic diagram of an interface for application recommendation based on a single preset entity. As shown in Figure 4A(a), the user clicks "×× Building, ×× Road, Haidian District, Beijing" For this entity, the system determines that the preset entity selected by the user is an address, searches for the recommended application corresponding to the address from the recommendation rule list, finds that the recommended application is a map application, and the system can select one or more of the map applications installed on the device. Multiple map apps for recommendations. An exemplary schematic diagram of an interface displaying a single map application is shown in FIG. 4A(b). On the right side of the interface, a recommended single application icon "Map Application A" 401 is floating and displayed, and the user can click "Map Application A" Trigger the system to open the map application A, and then add "XX Building, ×× Road, Haidian District, Beijing" to the map application A to view the navigation route. The icon of a single application may be displayed in the form of a floating ball, and the recommended application icons are included in the floating ball.
系统在确定需推荐地图应用,从设备中安装的各地图应用中查找一个地图应用进行最 终推荐时,可从设备中以安装的各地图应用中随机选择一个地图应用进行最终推荐;还可以按照用户对各地图应用的使用频率,选择一个使用频率最高的地图应用进行最终推荐,本申请实施例中对此不作具体限制。When the system determines that a map application needs to be recommended and searches for a map application from the map applications installed in the device for final recommendation, it can randomly select a map application from the map applications installed in the device for the final recommendation; Regarding the frequency of use of each map application, a map application with the highest frequency of use is selected for final recommendation, which is not specifically limited in this embodiment of the present application.
需要说明的是,图4A(b)中仅是示例性示出的一种推荐单个应用的界面示意图,多推荐的单个应用的图标并不局限于显示在界面的右侧,还可以显示在界面的左侧、中间或者其他任意适当的位置处。单个应用的图标还可以显示在任务栏中,对于任务栏的相关说明,参照下文中进行多应用推荐时对任务栏的相关介绍即可。It should be noted that FIG. 4A(b) is only a schematic diagram of an interface for recommending a single application, and the icons of multiple recommended single applications are not limited to being displayed on the right side of the interface, and may also be displayed on the interface to the left, middle, or any other appropriate location. The icon of a single application can also be displayed in the taskbar. For the relevant description of the taskbar, please refer to the relevant introduction of the taskbar when recommending multiple applications below.
请参照图4B,图4B为示例性示出的又一种基于单预设实体进行应用推荐的界面示意图,如图4B(a)所示,用户点击“电话:151xxxxxxx”这一预设实体,系统判定用户选中的该预设实体为电话号码,从推荐规则列表中查找电话号码对应的推荐应用,查找到电话号码对应推荐第一服务列表,第一服务列表中包括:呼叫电话服务选项、发送消息服务选项、添加到通讯录服务选项以及拷贝服务选项。在查找到第一服务列表后,系统在界面中推荐第一服务列表,一种示例性的显示第一服务列表的界面示意图如图4B(b)所示,在界面的右侧悬浮显示有推荐的第一服务列表402,第一服务列表中包括:“呼叫电话”、“发送消息”、“添加到通讯录”以及“拷贝”服务选项,用户可点击任意一个服务选项触发系统跳转至该服务选项对应的目标界面中,用户可手动或者由系统自动将“电话:151xxxxxxx”添加至目标界面中的目标输入框中。所推荐的服务列表可以以悬浮窗的形式显示,悬浮窗中显示所推荐的各服务选项。Please refer to FIG. 4B. FIG. 4B is another schematic diagram of an interface for application recommendation based on a single preset entity. As shown in FIG. 4B(a), the user clicks on the preset entity "Phone: 151xxxxxxx", The system determines that the preset entity selected by the user is a phone number, searches for the recommended application corresponding to the phone number from the recommendation rule list, and finds out that the phone number corresponds to the recommended first service list. The first service list includes: call phone service options, send Messaging service options, Add to Contacts service options, and Copy service options. After finding the first service list, the system recommends the first service list in the interface. An exemplary schematic diagram of the interface displaying the first service list is shown in Fig. The first service list 402, the first service list includes: "call phone", "send message", "add to address book" and "copy" service options, the user can click on any service option to trigger the system to jump to this In the target interface corresponding to the service option, the user can manually or automatically add "Phone: 151xxxxxxx" to the target input box in the target interface. The recommended service list may be displayed in the form of a floating window, and each recommended service option is displayed in the floating window.
图4A以用户选中图片的OCR识别结果中的地址,推荐单个地图应用,图4B以用户选中图片的OCR识别结果中的电话号码,推荐第一服务列表为例进行说明的说明。下面参照图5示例性示出的一种基于淘口令进行应用推荐的界面示意图,对用户选中图片的OCR识别结果中的淘口令,系统推荐淘宝应用的过程进行说明。FIG. 4A uses the address in the OCR recognition result of the picture selected by the user to recommend a single map application, and FIG. 4B uses the phone number in the OCR recognition result of the picture selected by the user to recommend the first service list as an example for illustration. Referring to FIG. 5 , which is an exemplary interface for recommending applications based on Taobao passwords, the process of recommending Taobao applications by the system for the Taobao passwords in the OCR recognition results of pictures selected by users will be described.
请参照图3中对图片进行OCR识别的过程,OCR引擎对包含淘口令“Xixi:/啊FfthxKgYVSh微史高治的光辉岁月全套…更多信息”的图片进行OCR识别后,如图5(a)所示,在界面中高亮显示OCR识别结果,并在预设实体“Xixi:/啊FfthxKgYVSh微史高治的光辉岁月全套…更多信息”下添加下划线。如图5(b)所示,用户点击“Xixi:/啊FfthxKgYVSh微史高治的光辉岁月全套…更多信息”,终端接收到用户选中“Xixi:/啊FfthxKgYVSh微史高治的光辉岁月全套…更多信息”的指令,确定用户选中的目标文字为淘口令,从推荐规则列表中查找淘口令对应的应用或者服务列表,通过查找确定淘口令对应淘宝应用,因此,系统在界面中推荐淘宝应用,一种示例性的显示所推荐的淘宝应用的界面示意图如图5(c)所示,在界面的右侧悬浮显示“淘宝应用”图标,用户可点击“淘宝应用”图标触发系统跳转至淘宝应用中,用户可手动或者由系统自动将用户选中的淘口令添加至淘宝应用中的相应界面中。Please refer to the process of OCR recognition of the picture in Figure 3. After the OCR engine performs OCR recognition on the picture containing the Taobao password "Xixi:/ah FfthxKgYVSh Wei Shi Gaozhi's Glorious Years Full Set...more information", as shown in Figure 5 (a ), highlight the OCR recognition result in the interface, and add an underline under the preset entity "Xixi:/ah FfthxKgYVSh Micro Scrooge's Glory Years Full Set...More Information". As shown in Figure 5(b), the user clicks "Xixi:/ah FfthxKgYVSh full set of Wei Shi Gaozhi's glory days... more information", and the terminal receives the user's selection of "Xixi:/ah FfthxKgYVSh Wei Shi Gaozhi's glory days full set ... more information" to determine that the target text selected by the user is the Taobao password, and search for the application or service list corresponding to the Taobao password from the recommendation rule list, and determine that the Taobao password corresponds to the Taobao application through the search. Therefore, the system recommends Taobao in the interface Application, an exemplary schematic diagram of the interface displaying the recommended Taobao application is shown in Figure 5(c). The "Taobao application" icon is displayed floating on the right side of the interface, and the user can click the "Taobao application" icon to trigger a system jump In the Taobao application, the user can manually or automatically add the Taobao password selected by the user to the corresponding interface in the Taobao application.
图4A、图4B以及图5仅是示例性示出了三种实体与应用或服务列表之间的对应关系,对于推荐规则列表中包含的具体对应关系,可由本领域技术人员灵活设置,一种示例性地推荐规则列表包含的对应关系可以包括:Fig. 4A, Fig. 4B and Fig. 5 are only examples showing the corresponding relationship between the three entities and the application or service list. The specific corresponding relationship contained in the recommended rule list can be flexibly set by those skilled in the art. Exemplary correspondences included in the recommended rule list may include:
地址推荐单个地图类应用、外文推荐单个翻译类应用、快递单号推荐购物类应用、淘口令推荐淘宝应用、抖音口令推荐抖音应用等。Address recommends a single map app, a foreign language recommends a single translation app, a courier number recommends a shopping app, a Taobao password recommends a Taobao app, a Douyin password recommends a Douyin app, etc.
电话号码对应推荐第一服务列表,可以包括但不限于:“呼叫电话”、“发送消息”、 “添加到通讯录”以及“拷贝”服务选项。身份证号码对应推荐第二服务列表,可以包括但不限于“添加到通讯录”“、拷贝”、“分享”以及“上一个切换应用”服务选项。The phone number corresponds to the recommended first service list, which may include but not limited to: "call phone", "send message", "add to address book" and "copy" service options. The ID card number corresponds to the recommended second service list, which may include but not limited to "add to address book", "copy", "share" and "previous switching application" service options.
码可以包括但不限于支付码、身份识别二维码等,码对应推荐第三服务列表,可以包括但不限于:“在xxx应用中打开”、“在浏览器中打开”、“拷贝链接”、“分享”以及“添加到备忘录”等服务选项。网址对应推荐第四服务列表,可以包括但不限于:“打开链接”、“添加到链接列表”、“拷贝链接”以及“分享”等服务选项。邮箱地址对应推荐第五服务列表,可以包括但不限于:“新建邮箱”、“拷贝”以及“分享”等服务选项。Codes may include but not limited to payment codes, identification QR codes, etc. Codes correspond to the recommended third service list, which may include but not limited to: "open in xxx app", "open in browser", "copy link" , "Share" and "Add to Notes" and other service options. The URL corresponds to the recommended fourth service list, which may include but not limited to: "Open Link", "Add to Link List", "Copy Link", and "Share" and other service options. The email address corresponds to the recommended fifth service list, which may include but not limited to: service options such as "create email", "copy" and "share".
本申请实施例提供的基于用户选中的单个预设实体进行应用或服务列表推荐的方式,一方面,系统自动对图片中的文本进行OCR识别后,将OCR识别结果以可选定、复制的状态显示给用户,用户可直接选定目标文字,以便后续将目标文字添加至目标应用或目标服务中的对应输入框中,无需用户手动录入目标文字,操作便捷且可避免用户编辑出错的问题。第二方面,用户在选中单个预设实体后,系统基于用户选中的单个预设实体进行单个应用或者服务列表,用户点击推荐的应用或服务列表中的服务选项即可跳转到目标界面,无需用户拷贝目标文字后,从图库中离开手动执行繁琐的操作进入到目标界面。The embodiment of this application provides a way to recommend an application or service list based on a single preset entity selected by the user. On the one hand, after the system automatically performs OCR recognition on the text in the picture, the OCR recognition result can be selected and copied. Displayed to the user, the user can directly select the target text, so that the target text can be added to the corresponding input box in the target application or service later, without the need for the user to manually enter the target text, which is convenient to operate and can avoid the problem of user editing errors. In the second aspect, after the user selects a single preset entity, the system lists a single application or service based on the single preset entity selected by the user, and the user clicks on the service option in the recommended application or service list to jump to the target interface without After the user copies the target text, he leaves the gallery and performs tedious operations manually to enter the target interface.
下面结合图7至图10,对用户选中的目标文字包含多个预设实体时,进行应用推荐的流程进行说明。图10为示例性示出的基于图片中的多个预设实体进行应用推荐时用户与设备间交互的时序流程图,该应用推荐流程包括如下步骤:The following describes the process of recommending applications when the target text selected by the user contains multiple preset entities with reference to FIGS. 7 to 10 . FIG. 10 is an exemplary flow chart showing the interaction between the user and the device when recommending applications based on multiple preset entities in the picture. The application recommendation process includes the following steps:
S1:用户点击图库中的图片b。S1: The user clicks picture b in the gallery.
S2:设备响应于点击图片b,在设备屏幕上显示图片b。S2: The device displays picture b on the device screen in response to clicking picture b.
S3:设备检测图片b中是否存在文字,如果存在文字,获取图片b的OCR识别结果。S3: The device detects whether there are texts in the picture b, and if there are texts, obtains the OCR recognition result of the picture b.
S4:如果获取到图片b的OCR识别结果,在设备屏幕上弹出OCR按钮。S4: If the OCR recognition result of picture b is obtained, an OCR button pops up on the screen of the device.
S5:用户点击OCR按钮。S5: the user clicks the OCR button.
S6:设备响应于对OCR按钮的点击操作,在设备屏幕上高亮显示图片b的OCR识别结果,并为识别到的预设实体添加下滑线。S6: In response to the click operation on the OCR button, the device highlights the OCR recognition result of the picture b on the device screen, and adds an underline to the recognized preset entity.
图10中所示的S1至S6为对图库中的图片b进行OCR识别、对OCR识别结果中预设实体的识别以及显示OCR识别结果的过程。对于该过程,参照对图6中的S1至S6的具体说明即可,在此不再赘述。S1 to S6 shown in FIG. 10 are the process of performing OCR recognition on picture b in the gallery, recognizing preset entities in the OCR recognition result, and displaying the OCR recognition result. For this process, it is enough to refer to the specific description of S1 to S6 in FIG. 6 , which will not be repeated here.
S7:在OCR识别结果中点击选中多个预设实体。S7: Click to select multiple preset entities in the OCR recognition result.
请参照图7,图7为示例性示出的一种基于用户先后两次选中的多个关联预设实体进行应用推荐时的界面变化示意图,显示有图片b的界面示意图如图7(a)所示,在界面中图片b的OCR识别结果高亮显示且在预设实体“收件人:xxx”、“电话:151xxxxxx”、“北京市海淀区xx路xx大厦”下方添加下划线。用户可通过手指在屏幕中控制光标选中多个预设实体,如图7(b)所示,被用户手指选中的预设实体的起始位置与截止位置处均有光标,且被选中的预设实体的背景填充色发生了变化,以表示被光标圈起的预设实体已被选中,在用户完成预设实体选中动作后,如图7(b)所示,系统显示功能菜单栏,功能菜单栏中包括“全选”、“剪切”以及“复制”等功能选项。图7(b)中被选中的目标文字可视为第一文本。Please refer to Fig. 7, which is an exemplary schematic diagram of interface changes when recommending applications based on multiple associated preset entities selected by the user twice successively. The schematic diagram of the interface showing picture b is shown in Fig. 7(a) As shown, the OCR recognition result of picture b in the interface is highlighted and an underline is added under the preset entities "Recipient: xxx", "Phone: 151xxxxxx", "xx Building, xx Road, Haidian District, Beijing". The user can control the cursor on the screen with a finger to select multiple preset entities, as shown in Figure 7(b), there are cursors at the start position and end position of the preset entity selected by the user's finger, and the selected preset entity Assuming that the background fill color of the entity has changed to indicate that the preset entity circled by the cursor has been selected, after the user completes the action of selecting the preset entity, as shown in Figure 7(b), the system displays the function menu bar, the function The menu bar includes functional options such as "Select All", "Cut" and "Copy". The selected target text in Fig. 7(b) can be regarded as the first text.
需要说明的是,图7(b)仅是一种示例性的选中多个预设实体的方式,在实际实现 过程中,用户还可以通过在第二预设时长内先后点击各预设实体,从而选定多个预设实体。第二预设时长为一个较短的时长,例如:1秒或者1.5秒等。It should be noted that Fig. 7(b) is only an exemplary way of selecting multiple preset entities. In the actual implementation process, the user can click each preset entity successively within the second preset duration, Multiple preset entities are thus selected. The second preset duration is a shorter duration, for example: 1 second or 1.5 seconds.
S8:设备响应于对多个预设实体的选中操作,判断多个预设实体是否可组合。S8: The device determines whether the multiple preset entities can be combined in response to the selection operation on the multiple preset entities.
系统识别目标文字中包含的预设实体的个数,识别出包含多个预设实体例如图7(b)中所示包含2个预设实体时,判定目标文字中包含的多个预设实体是否具有关联关系,在判定结果为其具有关联关系的情况下,基于具有关联关系的各预设实体确定推荐的单个应用。判定预设实体是否可组合即判定预设实体是否具有关联关系,若多个预设实体具有关联关系,则确定可组合;反之,确定不可组合。The system recognizes the number of preset entities contained in the target text, and when it recognizes that multiple preset entities are included, for example, as shown in Figure 7(b) contains 2 preset entities, it determines the number of preset entities contained in the target text Whether there is an association relationship, if the determination result indicates that there is an association relationship, the recommended single application is determined based on each preset entity with the association relationship. Determining whether the preset entities can be combined means determining whether the preset entities have an association relationship. If multiple preset entities have an association relationship, it is determined that they can be combined; otherwise, it is determined that they cannot be combined.
系统中存储有具有预设实体间的关联关系,预设实体间的关联关系可存储在关联关系列表中,每个关联关系包括多个预设实体以及该关联关系推荐的应用类型。系统对用户选中的目标文字进行预设实体识别后,确定目标文字中包含的N个预设实体,从关联关系列表中查找N个预设实体匹配的关联关系,若存在确定这N个预设实体为可关联预设实体;反之若不存在,确定这N个预设实体为不可关联预设实体。其中,N为大于等于2的整数。The system stores associations with preset entities, and the associations between preset entities can be stored in an association list, and each association includes multiple preset entities and the type of application recommended by the association. After the system recognizes the preset entity of the target text selected by the user, it determines the N preset entities contained in the target text, and searches for the matching relationship of the N preset entities from the list of association relationships. If there is, determine the N preset entities The entity is a preset entity that can be associated; otherwise, if it does not exist, it is determined that the N preset entities are non-associated default entities. Wherein, N is an integer greater than or equal to 2.
关联关系列表可以与推荐规则列表合并,也可以单独存在。关联关系列表中包含的具体内容可以由本领域技术人员灵活设置、修改,本申请实施例中对此不做具体限制。例如:关联关系列表中可包括:第一关联关系:姓名-电话-地址-购物类应用,第二关联关系:姓名-身份证号码-刷票小程序等。The association relationship list can be combined with the recommendation rule list, or can exist independently. The specific content included in the association relationship list can be flexibly set and modified by those skilled in the art, and is not specifically limited in this embodiment of the present application. For example, the relationship list may include: the first relationship: name-phone-address-shopping application, the second relationship: name-ID number-ticket swiping applet, etc.
S9:若多个实体可组合,设备则基于组合后的实体推荐单个应用;若多个实体不可组合,设备则基于该多个实体推荐包含多个应用的任务栏。S9: If the multiple entities can be combined, the device recommends a single application based on the combined entity; if the multiple entities cannot be combined, the device recommends a taskbar containing multiple applications based on the multiple entities.
在确定用户选中的目标文字中包含的N个预设实体为可关联预设实体的情况下,再从关联关系列表中查找N个预设实体间的关联关系对应的推荐应用类型。在确定应用类型后,可从设备中已安装的该应用类型的各应用中筛选出一个目标应用进行推荐。When it is determined that the N preset entities included in the target text selected by the user are associated preset entities, then search for the recommended application type corresponding to the association relationship between the N preset entities from the association relationship list. After the application type is determined, a target application may be selected from the applications of the application type installed in the device for recommendation.
筛选规则可由本领域技术人员根据实际需求进行设置,例如:可设置为随机筛选、依据应用使用频率筛选等。Screening rules can be set by those skilled in the art according to actual needs, for example: random screening, screening based on application usage frequency, etc. can be set.
继续参照图7(c)由于“收件人:xxx”、“电话:151xxxxxx”这2个预设实体被系统判定为具有关联关系的预设实体,通过查找关联关系列表可确定这2个预设实体对应电话应用,因此系统在推荐时仅显示电话应用图标701。用户可点击电话应用图标701进入电话应用的界面,拨打电话。如图7(c)所示,在完成单个应用推荐后,用户选中的目标文字依然处于选中高亮显示并且在预设实体下方添加有下划线,以便用户后续再重新选择预设实体触发系统进行下一轮应用推荐。Continue to refer to Figure 7(c) Since the two preset entities "recipient: xxx" and "telephone: 151xxxxxx" are determined by the system as preset entities with an association relationship, these two preset entities can be determined by searching the association relationship list Assume that the entity corresponds to the phone application, so the system only displays the phone application icon 701 when recommending. The user can click the phone application icon 701 to enter the interface of the phone application and make a call. As shown in Figure 7(c), after completing a single application recommendation, the target text selected by the user is still highlighted and underlined under the preset entity, so that the user can re-select the preset entity to trigger the system to download. A round of app recommendations.
用户在选定“收件人:xxx”、“电话:151xxxxxx”这2个预设实体触发系统进行应用推荐后,若想调整选中的目标文字触发系统重新进行应用推荐,可以如图7(d)中所示手动调节光标调整选中的目标文字,将选中的目标文字调整为“收件人:xxx”、“电话:151xxxxxx”、“北京市海淀区xx路xx大厦”,在调整选中的目标文字的过程中上一次推荐的电话应用图标701消失。本具体实例中“北京市海淀区xx路xx大厦”为用户选中的新增文本可视为第二文本。After the user selects "recipient: xxx" and "telephone: 151xxxxxx" to trigger the system for application recommendation, if he wants to adjust the selected target text to trigger the system to make application recommendation again, he can do it as shown in Figure 7(d ) to manually adjust the cursor to adjust the selected target text, and adjust the selected target text to "Recipient: xxx", "Phone: 151xxxxxx", "xx Building, xx Road, Haidian District, Beijing", and adjust the selected target text During the writing process, the phone application icon 701 recommended last time disappears. In this specific example, "xx Building, xx Road, Haidian District, Beijing" is the newly added text selected by the user, which may be regarded as the second text.
继续参照图7(e)由于“收件人:xxx”、“电话:151xxxxxx”、“北京市海淀区xx路xx大厦”这三个预设实体被系统判定为具有关联关系的预设实体,通过查找关联关系列表可确定这三个预设实体对应购物类应用,因此系统在推荐时仅推荐单个购物类应用 例如“购物类应用B”701。Continuing to refer to Figure 7(e) Since the three preset entities "recipient: xxx", "telephone: 151xxxxxx" and "xx building, xx Road, Haidian District, Beijing" are determined by the system as preset entities with a relationship, It can be determined that these three preset entities correspond to shopping applications by looking up the association relationship list, so the system only recommends a single shopping application such as "shopping application B" 701 when recommending.
如图7所示,本申请提供的基于多个可关联的预设实体进行应用推荐的方式,无论用户选定2个还是3个甚至更多个预设实体,选中的预设实体为可关联的情况下,系统进推荐单个应用。As shown in Figure 7, in the application recommendation method based on multiple associable preset entities provided by this application, whether the user selects 2 or 3 or more preset entities, the selected preset entities are associable In the case of , the system recommends a single application.
图7中所示的该种在判定用户选中的目标文字包含多个可关联的预设实体时,推荐单个应用程序的方式,所推荐的应用与用户期望匹配度高,用户直接点击推荐的应用图标进入目标应用即可,无需用户从当前界面中退出,再从桌面中手动查找目标应用后进入目标应用,操作便捷。As shown in Figure 7, when it is determined that the target text selected by the user contains multiple preset entities that can be associated, a single application program is recommended. The recommended application matches the user's expectations with a high degree of matching, and the user directly clicks on the recommended application. The icon can be used to enter the target application, and the user does not need to exit from the current interface, and then manually find the target application from the desktop to enter the target application, which is convenient to operate.
请参照图8,图8为示例性示出的又一种基于用户先后两次选中的多个预设实体进行应用推荐时的界面变化示意图。Please refer to FIG. 8 . FIG. 8 is a schematic diagram illustrating another interface change when application recommendation is performed based on multiple preset entities selected by the user twice successively.
显示有图片b的界面示意图如图8(a)所示,在界面中图片b的OCR识别结果高亮显示且在预设实体“收件人:xxx”、“电话:151xxxxxx”、“北京市海淀区xx路xx大厦”下方添加下划线。如图8(b)所示,用户选中“电话:151xxxxxx”、“北京市海淀区xx路xx大厦”作为目标文字,在用户完成预设实体选中动作后,如图8(b)所示,系统显示功能菜单栏,功能菜单栏中包括“全选”、“剪切”以及“复制”等功能选项。图8中被选中的目标文字可视为第一文本。设备判定“电话:151xxxxxx”、“北京市海淀区xx路xx大厦”两个预设实体为电话号码和地址,二者不可关联,分别确定电话号码对应推荐电话应用,地址对应推荐导航类应用,如图8(c)所示在任务栏801中推荐电话应用图标和导航应用A的图标。此外任务栏801中还可以显示添加按钮802,对于添加按钮802的说明参照前述相关说明即可,在此不再赘述。The schematic diagram of the interface showing picture b is shown in Figure 8(a). In the interface, the OCR recognition result of picture b is highlighted and displayed in the preset entities "Recipient: xxx", "Phone: 151xxxxxx", "Beijing Add an underline under "XX Building, XX Road, Haidian District". As shown in Figure 8(b), the user selects "Tel: 151xxxxxx", "xx Building, xx Road, Haidian District, Beijing" as the target text, and after the user completes the preset entity selection action, as shown in Figure 8(b), The system displays a function menu bar, which includes options such as "Select All", "Cut" and "Copy". The selected target text in FIG. 8 can be regarded as the first text. The device judges that the two preset entities "Phone: 151xxxxxx" and "xx Building, xx Road, Haidian District, Beijing" are phone numbers and addresses, and the two cannot be associated. It is determined that the phone number corresponds to the recommended phone application, and the address corresponds to the recommended navigation application. As shown in FIG. 8( c ), the icon of the phone application and the icon of the navigation application A are recommended in the task bar 801 . In addition, an add button 802 may also be displayed in the task bar 801 , and for the description of the add button 802 , please refer to the above-mentioned relevant description, and details will not be repeated here.
进行应用推荐后,用户选中的“电话:151xxxxxx”、“北京市海淀区xx路xx大厦”两个预设实体依然保持选中状态。用户可点击任务栏中推荐的应用图标,触发系统进入被选中应用图标对应的应用。After app recommendation, the two preset entities selected by the user, "Tel: 151xxxxxx" and "xx Building, xx Road, Haidian District, Beijing", remain selected. The user may click on the recommended application icon in the taskbar to trigger the system to enter the application corresponding to the selected application icon.
不仅如此,用户在选定“电话:151xxxxxx”、“北京市海淀区xx路xx大厦”这2个不可关联预设实体触发系统进行应用推荐后,若想调整选中的目标文字触发系统重新进行应用推荐,可以如图8(d)中所示手动调节光标调整选中的目标文字,将选中的目标文字调整为“收件人:xxx”、“电话:151xxxxxx”、“北京市海淀区xx路xx大厦”,在调整选中的目标文字的过程中上一次推荐的任务栏801消失。本具体实例中“收件人xxx”为用户选中的新增文本可视为第二文本。Not only that, after the user selects "Tel: 151xxxxxx" and "xx Building, xx Road, Haidian District, Beijing" for application recommendation, if the user wants to adjust the selected target text to trigger the system to re-apply Recommended, you can manually adjust the cursor to adjust the selected target text as shown in Figure 8(d), and adjust the selected target text to "Recipient: xxx", "Tel: 151xxxxxx", "xx Road, Haidian District, Beijing Building", the last recommended task bar 801 disappears during the process of adjusting the selected target text. In this specific example, the newly added text selected by the user as "recipient xxx" can be regarded as the second text.
继续参照图8(e)由于“收件人:xxx”、“电话:151xxxxxx”、“北京市海淀区xx路xx大厦”这三个预设实体被系统判定为具有关联关系的预设实体,通过查找关联关系列表可确定这三个预设实体对应购物类应用,因此系统在推荐时仅推荐单个购物类应用例如“购物类应用B”。Continuing to refer to Figure 8(e) Since the three preset entities "recipient: xxx", "telephone: 151xxxxxx", and "xx building, xx Road, Haidian District, Beijing" are determined by the system to be preset entities with a relationship, It can be determined that these three preset entities correspond to shopping applications by looking up the association relationship list, so the system only recommends a single shopping application such as "shopping application B" when recommending.
如图8所示,本申请提供的基于多个可关联的预设实体进行应用推荐的方式,在用户选中的多个预设实体为不可关联实体时,分别基于被选中的各预设实体进行应用推荐,在完成一次推荐后用户可对选中的目标文字进行调整,调整后的目标文字中包含多个可关联预设实体的情况下,系统进推荐单个应用。可见,系统推荐应用时并非仅依据用户选中的预设实体的个数进行推荐,还会考虑到被选中的预设实体的可关联性。As shown in Figure 8, the application recommendation method based on multiple pre-associated preset entities provided by this application, when the multiple pre-set entities selected by the user are non-associated entities, respectively based on the selected pre-set entities For application recommendation, the user can adjust the selected target text after completing a recommendation. If the adjusted target text contains multiple preset entities that can be associated, the system will recommend a single application. It can be seen that when the system recommends applications, it does not only recommend based on the number of preset entities selected by the user, but also considers the associability of the selected preset entities.
请参照图9,图9为示例性示出的一种基于用户先后两次选中的多个非关联预设实体 进行应用推荐时的界面变化示意图。图9中以包含英文、淘口令以及地址的图片为图片b为例进行说明。图9(a)至图9(b)为用户在显示的OCR识别结果中选中多个预设实体的过程,该过程参照图7(a)至(b)的相关说明即可,在此不再赘述。显示的OCR结果中,仅为预设实体添加下划线,非预设实体则不添加下划线如图9(a)中的“收货地址”不是预设实体,则这四个文字下方不添加下划线。Please refer to Fig. 9, which is a schematic diagram of interface changes when recommending applications based on multiple non-associated preset entities selected by the user twice successively. In FIG. 9, the picture b containing English, Taobao password and address is taken as an example for illustration. Figure 9(a) to Figure 9(b) is the process in which the user selects multiple preset entities in the displayed OCR recognition results, the process can refer to the relevant descriptions in Figure 7(a) to (b), and will not be described here Let me repeat. In the displayed OCR results, underlines are only added to preset entities, and non-default entities are not underlined. As shown in Figure 9(a), the "receipt address" is not a preset entity, and no underline is added below these four words.
用户选中“Name:TOM”、“Xixi:/啊FfthxKgYVSh微史高治的光辉岁月全套…更多信息”以及“北京市海淀区××路××大厦”三个预设实体,系统判定这三个预设实体为外文、淘口令和地址,将这三个预设实体与关联关系列表中存储的关联关系进行匹配,无法匹配到关联关系,因此确定这三个预设实体为非关联预设实体。系统从推荐规则列表中分别查找外文对应的推荐应用为翻译类应用,淘口令对应的推荐应用为购物类应用如淘宝应用,地址对应的推荐应用为地图类应用,系统分别从这三类应用中确定目标应用“翻译类应用A”、“地图类应用B”以及“购物类应用C”,生成包含“翻译类应用A”、“地图类应用B”以及“购物类应用C”的任务栏901,显示有任务栏的界面示意图如图9(c)所示。任务栏中推荐的各应用图标的排序与被选中的预设实体在图片中的排序一致。任务栏中除包括推荐的多个应用外,还可以包括添加按钮902。The user selects three preset entities: "Name: TOM", "Xixi:/ah FfthxKgYVSh Wei Shi Gaozhi's Glorious Years Complete Set...More Information" and "×× Building ×× Road, Haidian District, Beijing", and the system determines that the three The preset entities are foreign language, Tao password and address. Matching these three preset entities with the association relationship stored in the association relationship list, the association relationship cannot be matched, so these three preset entities are determined to be non-association presets entity. The system finds from the list of recommendation rules that the recommended application corresponding to the foreign language is a translation application, the recommended application corresponding to the Taobao password is a shopping application such as Taobao application, and the recommended application corresponding to the address is a map application. Determine target applications "translation application A", "map application B" and "shopping application C", and generate a task bar 901 including "translation application A", "map application B" and "shopping application C" , a schematic diagram of an interface displaying a task bar is shown in FIG. 9( c ). The sorting of the recommended application icons in the taskbar is consistent with the sorting of the selected preset entities in the picture. In addition to multiple recommended applications, the task bar may also include an add button 902 .
相应地,当想要在任务栏中显示“翻译类应用A”、“地图类应用B”以及“购物类应用C”以外的其他应用(例如翻译类应用B)的应用图标时,用户可以点击添加按钮902,此时,任务栏从上到下可以依次显示“购物类应用C”“地图类应用B”以及“翻译类应用D”。用户可通过点击添加按钮902切换任务栏中推荐的应用图标。任务栏901也可视为一个悬浮窗。Correspondingly, when wanting to display application icons of other applications (such as translation application B) other than "translation application A", "map application B" and "shopping application C" in the taskbar, the user can click The button 902 is added. At this time, the taskbar may display "shopping application C", "map application B" and "translation application D" sequentially from top to bottom. The user can switch the recommended application icons in the task bar by clicking the add button 902 . The task bar 901 can also be regarded as a floating window.
需要说明的是,继续参照图9,若设备中仅安装有一个翻译类应用、一个地图类应用以及一个购物类应用,任务栏在进行应用推荐时可仅显示一个翻译类应用、一个地图类应用以及一个购物类应用的图标,由于无其他应用可切换推荐,因此可不显示添加按钮902。It should be noted that, continuing to refer to Figure 9, if only one translation application, one map application, and one shopping application are installed in the device, only one translation application and one map application may be displayed on the taskbar when recommending applications. As well as an icon of a shopping application, the add button 902 may not be displayed because there is no other application to switch between recommendations.
继续参照图9(d),用户在选定图9(c)中所示的三个不关联预设实体触发系统进行应用推荐后,若想调整选中的目标文字触发系统重新进行应用推荐,可以如图9(d)中所示手动调节光标调整选中的目标文字,将选中的目标文字调整为“收货地址:北京市海淀区xx路xx大厦”,在调整选中的目标文字的过程中上一次推荐的任务栏901消失,系统基于用户调整后的目标文字“收货地址:北京市海淀区xx路xx大厦”推荐地图类应用B。Continuing to refer to Figure 9(d), after the user selects the three unrelated preset entity trigger systems shown in Figure 9(c) for application recommendation, if he wants to adjust the selected target text trigger system to make application recommendation again, he can As shown in Figure 9(d), manually adjust the cursor to adjust the selected target text, and adjust the selected target text to "receipt address: xx Building, xx Road, Haidian District, Beijing". The recommended task bar 901 disappears once, and the system recommends map application B based on the user-adjusted target text "delivery address: xx building, xx Road, Haidian District, Beijing".
图9中所示的应用推荐方法,用户在从图片OCR识别结果中选定目标文字触发系统进行一次应用推荐后,还可以调整选中的目标文字触发系统再进行一次应用推荐,在调整选中的目标文字过程中,前一次应用推荐信息消失。需要说明的是,上述仅是以调整一次目标文字为例进行说明,在实际实现过程中,用户可以调整两次甚至更多次目标文字,每次调整目标文字均可触发系统重新进行应用推荐。In the application recommendation method shown in Figure 9, after the user selects the target text from the image OCR recognition results to trigger the system to make an application recommendation, he can also adjust the selected target text to trigger the system to make another application recommendation. After adjusting the selected target During the writing process, the previous application recommendation information disappears. It should be noted that the above is only an example of adjusting the target text once. In the actual implementation process, the user can adjust the target text twice or more, and each adjustment of the target text can trigger the system to re-recommend the application.
本申请实施例中,任务栏对应的控件位于屏幕的最上层,这样,可以避免推荐应用列表被设备屏幕上的其他界面覆盖,影响后续从推荐应用列表中选择应用的操作。In the embodiment of the present application, the control corresponding to the task bar is located at the top of the screen, so that the recommended application list can be prevented from being covered by other interfaces on the device screen, which will affect the subsequent operation of selecting an application from the recommended application list.
需要理解的是,以上的根据目标文字内容确定推荐应用列表的方式仅为示意性举例,本申请实施例对于根据目标文字内容确定推荐应用列表的具体方式不做限定。It should be understood that the above method of determining the recommended application list according to the target text content is only an illustrative example, and the embodiment of the present application does not limit the specific method of determining the recommended application list according to the target text content.
图9中所示的该种在判定用户选中的目标文字包含多个非关联的预设实体时,推荐多 个应用程序的方式,所推荐的应用与用户选中的预设实体关联性强,提供包含多个应用的任务栏供用户选择,用户从推荐的多个应用中确定目标应用后,直接点击对应应用图标进入目标应用即可,无需用户从当前界面中退出,再从桌面中手动查找目标应用后进入目标应用,操作便捷。As shown in FIG. 9 , when it is determined that the target text selected by the user contains multiple non-associated preset entities, multiple application programs are recommended. The recommended applications are strongly related to the preset entities selected by the user, providing The task bar contains multiple applications for the user to choose. After the user determines the target application from the recommended applications, he can directly click the corresponding application icon to enter the target application. There is no need for the user to exit from the current interface and then manually search for the target application from the desktop. After application, enter the target application, and the operation is convenient.
下面结合图11至图12,对用户选中的目标文字不包含预设实体时,进行应用推荐的流程进行说明。图12为示例性示出的基于图片内容进行应用推荐时用户与设备间交互的时序流程图,该应用推荐流程包括如下步骤:The following describes the process of recommending an application when the target text selected by the user does not contain a preset entity with reference to FIGS. 11 to 12 . Fig. 12 is an exemplary flow chart showing the interaction between the user and the device when recommending an application based on picture content, the application recommending process includes the following steps:
S1:用户点击图库中的图片c。S1: The user clicks picture c in the gallery.
S2:设备响应于点击图片c,在设备屏幕上显示图片c。S2: The device displays the picture c on the device screen in response to clicking the picture c.
S3:设备检测图片c中是否存在文字,如果存在文字,获取图片c的OCR识别结果。S3: The device detects whether there are texts in the picture c, and if there are texts, obtains the OCR recognition result of the picture c.
S4:如果获取到图片c的OCR识别结果,在设备屏幕上弹出OCR按钮。S4: If the OCR recognition result of picture c is obtained, an OCR button pops up on the screen of the device.
S5:用户点击OCR按钮。S5: the user clicks the OCR button.
S6:设备响应于对OCR按钮的点击操作,在设备屏幕上高亮显示图片c的OCR识别结果。S6: In response to the click operation on the OCR button, the device highlights the OCR recognition result of picture c on the device screen.
图12中所示的S1至S6为对图库中的图片c进行OCR识别以及显示OCR识别结果的过程。对于该过程,参照对图6中的S1至S6的具体说明即可,在此不再赘述。S1 to S6 shown in FIG. 12 are the process of performing OCR recognition on picture c in the gallery and displaying the OCR recognition result. For this process, it is enough to refer to the specific description of S1 to S6 in FIG. 6 , which will not be repeated here.
S7:用户在OCR识别结果中选中复制目标文字。S7: The user selects the copy target text in the OCR recognition result.
请参照图11,图11为示例性示出的一种基于不包含预设实体的图片进行应用推荐的界面示意图,显示有图片c的界面示意图如图11(a)所示,在界面中图片c的OCR识别结果“手机的主要功能为通讯,方便人们的沟通。现在的智能手机,还有娱乐、导航、购物等功能”高亮显示,由于OCR识别结果中不包含预设实体,因此没有字符下添加下划线。Please refer to Figure 11. Figure 11 is an exemplary schematic diagram of an interface for recommending applications based on pictures that do not contain preset entities. The schematic diagram of the interface that displays picture c is shown in Figure 11(a). c's OCR recognition result "The main function of the mobile phone is communication, which is convenient for people to communicate. Today's smart phones also have entertainment, navigation, shopping and other functions" are highlighted. Since the OCR recognition result does not contain preset entities, there is no Underline characters.
图11(b)为用户从所显示的OCR识别结果中选中目标文字的过程,该过程的相关说明参照图11(b)中的相关说明即可,在此不再赘述。如图11(c)所示,用户点击功能菜单栏中的“复制”选项以选定光标圈起的目标文字,系统接收到用户对“复制”选项的点击操作,复制用户选中的目标文字。Fig. 11(b) is the process for the user to select the target text from the displayed OCR recognition results. For the relevant description of this process, please refer to the relevant description in Fig. 11(b), and details will not be repeated here. As shown in Figure 11(c), the user clicks the "Copy" option in the function menu bar to select the target text circled by the cursor, and the system receives the user's click operation on the "Copy" option, and copies the target text selected by the user.
S8:设备响应于复制目标文字的操作,识别到目标文字中不包含预设实体。S8: In response to the operation of copying the target text, the device recognizes that the target text does not contain a preset entity.
识别目标文字中是否包含预设实体的方式,参照图6中S6下的相关说明即可,在此不再赘述。For the method of identifying whether the target text contains a preset entity, refer to the relevant description under S6 in FIG. 6 , and details will not be repeated here.
S9:设备对目标文字进行特征提取,基于提取的特征匹配多个应用,并显示包含该多个应用的任务栏。S9: The device performs feature extraction on the target text, matches multiple applications based on the extracted features, and displays a task bar containing the multiple applications.
一种示例性的基于提取的特征匹配多个应用的方式为:基于应用分类模型对提取的文字特征进行预测,预测结果为各应用分类对应的分值,分值越高说明提取的文字特征与该应用分类匹配度越高。依据预测得到的各应用分类对应的分值从中选取分值最高的第一应用分类,和分值第二高的第二应用分类。判断设备中所安装的第一应用分类下的应用数量是否大于第一预设数量例如3个,若是,则从第一应用分类下筛选出第一预设数量的应用作为待推荐应用,若否,则将第一应用分类下包含的应用均作为第一应用分类下的待推荐应用。判断设备中所安装的第二应用分类下的应用数量是否大于第二预设数量例如2个,若是则从第二应用分类下筛选出第二预设数量的应用作为第二应用分类下的待推荐应用, 若否,则将第二应用分类下包含的应用均作为第二应用分类下的待推荐应用。最后将第一应用分类下的待推荐应用和第二应用分类下的待推荐应用作为推荐应用,显示包含推荐应用图标的任务栏。应用分类可由本领域技术人员灵活设置,本申请实施例中对此不做具体限制。例如:应用分类可包括:视频类应用、社交类应用、地图图类应用以及购物类应用等。An exemplary method of matching multiple applications based on the extracted features is: predicting the extracted text features based on the application classification model, and the prediction result is a score corresponding to each application classification. A higher score indicates that the extracted text features are consistent with The higher the classification matching degree of the application is. The first application category with the highest score and the second application category with the second highest score are selected from the predicted scores corresponding to each application category. Judging whether the number of applications under the first application category installed in the device is greater than the first preset number, for example 3, if yes, then filter out the first preset number of applications from the first application category as applications to be recommended, if not , all the applications contained in the first application category are regarded as the applications to be recommended under the first application category. Determine whether the number of applications under the second application category installed in the device is greater than a second preset number, for example, 2, and if so, filter out the second preset number of applications from the second application category as pending applications under the second application category. Recommended applications, if not, all the applications included in the second application classification are regarded as the applications to be recommended under the second application classification. Finally, the applications to be recommended under the first application category and the applications to be recommended under the second application category are used as recommended applications, and a task bar containing recommended application icons is displayed. The application classification can be flexibly set by those skilled in the art, which is not specifically limited in this embodiment of the present application. For example, application classification may include: video applications, social applications, map applications, and shopping applications.
其中,第一预设数量大于第二预设数量。从第一应用分类下筛选待推荐应用时,可通过用户在预设时间段内对应用的使用频次、目前激活应用等条件对第一应用分类下的应用进行排序,选择排序在前的第一预设数量的应用作为待推荐应用。同理,可从第二应用分类下筛选待推荐应用。Wherein, the first preset number is greater than the second preset number. When filtering applications to be recommended from the first application category, the applications under the first application category can be sorted according to the user's usage frequency of the application within a preset time period, the currently activated application, and other conditions, and the top one can be selected. A preset number of applications are used as applications to be recommended. Similarly, applications to be recommended can be screened from the second application category.
继续参照图11,系统基于用户选定的目标文字“手机的主要功能为通讯,方便人们的沟通。现在的智能手机,还有娱乐、导航、购物等功能”确定推荐购物类应用和社交类应用,由于设备中安装的购物类应用仅包括购物类应用B,设备中安装的社交类应用仅包括社交类应用A和C,因此在应用推荐时如图11(d)所示,在任务栏1101中显示有购物类应用B、社交类应用A和社交类应用C的图标。任务栏1101中除包括多个推荐应用的图标外还包括以及添加按钮1102,对于任务栏1101以及添加按钮1102的介绍,参照前述相关说明即可,在此不再赘述。Continuing to refer to Figure 11, the system determines the recommended shopping and social applications based on the target text selected by the user "The main function of the mobile phone is communication, which facilitates people's communication. Today's smart phones also have functions such as entertainment, navigation, and shopping." , since the shopping applications installed in the device only include shopping application B, and the social applications installed in the device only include social applications A and C, so when recommending applications, as shown in Figure 11(d), in the task bar 1101 Icons of shopping application B, social application A and social application C are displayed in . The task bar 1101 includes a plurality of recommended application icons and an add button 1102 . For the introduction of the task bar 1101 and the add button 1102 , please refer to the above-mentioned relevant descriptions, and details will not be repeated here.
需要说明的是,若确定社交类应用为第一应用分类第一预设数量为3,购物类应用为第二应用分类第二预设数量为2,设备中安装有3个社交类应用分别为A、C以及D,设备中安装有购物类应用B和E,则在应用推荐时社交类应用分别为A、C以及D以及购物类应用B和E均作为推荐应用,由于任务栏中所显示的应用图标数量受限,因此可仅显示部分推荐应用的图标,剩余部分隐藏,在接收到用户对添加按钮1102的点击操作后,再逐个显示。It should be noted that if it is determined that the social application is the first application category, the first preset number is 3, and the shopping application is the second application category, the second preset number is 2, and there are 3 social networking applications installed in the device, respectively A, C, and D, and shopping apps B and E are installed in the devices, then when recommending apps, social apps A, C, and D and shopping apps B and E are all recommended apps. The number of application icons is limited, so only some of the recommended application icons can be displayed, and the rest can be hidden, and then displayed one by one after receiving the user's click operation on the add button 1102 .
需要说明的是,上述实施例中仅是以用户在图片OCR识别结果中选中目标文字,系统依据用户选定的目标文字进行应用推荐为例进行说明。在实际实现过程中,用户也可以对备忘录、短消息等界面中的文本内容进行选中、复制点击等操作,触发系统依据用户选定的目标文字进行应用推荐。It should be noted that, in the above embodiment, the user selects the target text in the picture OCR recognition result and the system recommends the application according to the target text selected by the user as an example for illustration. In the actual implementation process, the user can also select, copy and click the text content in the memo, short message and other interfaces, and trigger the system to recommend applications based on the target text selected by the user.
可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。It can be understood that, in order to realize the above functions, the electronic device includes hardware and/or software modules corresponding to each function. Combining the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions in combination with the embodiments for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。Wherein, all relevant content of each step involved in the above-mentioned method embodiment can be referred to the function description of the corresponding function module, and will not be repeated here.
本实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的应用程序推荐方法。This embodiment also provides a computer storage medium, the computer storage medium stores computer instructions, and when the computer instructions are run on the electronic device, the electronic device executes the above-mentioned related method steps to implement the application program recommendation method in the above-mentioned embodiment .
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的应用程序推荐方法。This embodiment also provides a computer program product, which, when running on a computer, causes the computer to execute the above related steps, so as to implement the method for recommending an application in the above embodiment.
其中,本实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Wherein, the electronic device, computer storage medium, computer program product or chip provided in this embodiment is all used to execute the corresponding method provided above, therefore, the beneficial effects it can achieve can refer to the corresponding method provided above The beneficial effects in the method will not be repeated here.
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can understand that for the convenience and brevity of the description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be assigned by different Completion of functional modules means that the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or It may be integrated into another device, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。A unit described as a separate component may or may not be physically separated, and a component shown as a unit may be one physical unit or multiple physical units, which may be located in one place or distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
本申请各个实施例的任意内容,以及同一实施例的任意内容,均可以自由组合。对上述内容的任意组合均在本申请的范围之内。Any content of each embodiment of the present application, as well as any content of the same embodiment, can be freely combined. Any combination of the above contents is within the scope of the present application.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should be aware that, in the foregoing one or more examples, the functions described in the embodiments of the present application may be implemented by hardware, software, firmware or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.

Claims (21)

  1. 一种应用程序推荐方法,应用于电子设备,其特征在于,包括:A method for recommending applications, applied to electronic devices, characterized in that it includes:
    在第一应用的显示界面上显示第一文本和第二文本;displaying the first text and the second text on the display interface of the first application;
    响应于用户对所述第一文本的第一操作,在所述显示界面显示第二应用对应的第一图标,其中,所述第一图标是根据对所述第一文本的文本分析得到;In response to a user's first operation on the first text, displaying a first icon corresponding to the second application on the display interface, wherein the first icon is obtained according to text analysis of the first text;
    响应于用户对所述第一图标的第二操作,显示所述第一图标对应的所述第二应用的界面;In response to a user's second operation on the first icon, display an interface of the second application corresponding to the first icon;
    响应于用户对所述第一文本和所述第二文本的第三操作,在所述显示界面显示第三应用对应的第二图标,其中,所述第二图标是根据对所述第一文本和所述第二文本的文本分析得到;In response to a user's third operation on the first text and the second text, displaying a second icon corresponding to the third application on the display interface, wherein the second icon is based on the first text and the text analysis of the second text is obtained;
    响应于用户对所述第二图标的第四操作,显示所述第二图标对应的所述第三应用的界面。In response to a user's fourth operation on the second icon, an interface of the third application corresponding to the second icon is displayed.
  2. 根据权利要求1所述的方法,其特征在于:The method according to claim 1, characterized in that:
    所述第一文本包括:纯文本或图片OCR识别得到的文本。The first text includes: plain text or text recognized by image OCR.
  3. 根据权利要求2所述的方法,其特征在于,在第一应用的显示界面上显示第一文本和第二文本之前,所述方法还包括:The method according to claim 2, wherein, before displaying the first text and the second text on the display interface of the first application, the method further comprises:
    响应于用户在第一应用中对图片的第五操作,在所述第一应用的显示界面中显示所述图片;In response to the user's fifth operation on the picture in the first application, displaying the picture on the display interface of the first application;
    在所述图片中包括文本的情况下,显示第一按钮,其中,所述第一按钮用于触发显示所述图片OCR识别得到的第一文本和第二文本;In the case that the picture includes text, a first button is displayed, wherein the first button is used to trigger display of the first text and the second text recognized by OCR of the picture;
    所述在第一应用的显示界面上显示第一文本和第二文本包括:The displaying the first text and the second text on the display interface of the first application includes:
    响应于用户对所述第一按钮的第六操作,在所述显示界面中高亮显示所述第一文本和所述第二文本,其中,所述第六操作至少包括:单击。In response to a sixth operation performed by the user on the first button, the first text and the second text are highlighted in the display interface, wherein the sixth operation at least includes: clicking.
  4. 根据权利要求3所述的方法,其特征在于,在所述显示界面中高亮显示所述第一文本和所述第二文本的步骤,包括:The method according to claim 3, wherein the step of highlighting the first text and the second text in the display interface comprises:
    在所述显示界面中高亮显示所述第一文本和所述第二文本,且在所述第一文本和所述第二文本下显示下划线,其中,所述第一文本和所述第二文本为预设实体,所述预设实体包括:地址、码、身份证号码、电话号码、快递单号、网址、邮箱地址、外文、淘口令或者抖音口令。In the display interface, the first text and the second text are highlighted, and an underline is displayed under the first text and the second text, wherein the first text and the second text It is a preset entity, and the preset entity includes: address, code, ID number, phone number, courier number, website, email address, foreign language, Taobao password or Douyin password.
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    检测到用户对所述第二文本执行第三操作时,在所述显示界面中取消显示所述第一图标。When it is detected that the user performs a third operation on the second text, the display of the first icon is canceled in the display interface.
  6. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    响应于用户对所述第三文本和所述第二文本的第七操作,在所述显示界面显示第二应用对应的第一图标和第四应用对应的第三图标;其中,所述第一文本包括所述第三文本,所述第一图标与所述第三图标是根据对所述第一文本和所述第三文本的文本分析得到;In response to the user's seventh operation on the third text and the second text, a first icon corresponding to the second application and a third icon corresponding to the fourth application are displayed on the display interface; wherein, the first The text includes the third text, and the first icon and the third icon are obtained according to text analysis of the first text and the third text;
    响应于用户对所述第三图标的第八操作,显示所述第三图标对应的所述第四应用的界面;In response to an eighth operation performed by the user on the third icon, displaying an interface of the fourth application corresponding to the third icon;
    响应于用户对所述第一文本和所述第二文本的第三操作,在所述显示界面显示第三应用对应的第二图标,其中,所述第二图标是根据对所述第一文本和所述第二文本的文本分析得到;In response to a user's third operation on the first text and the second text, displaying a second icon corresponding to the third application on the display interface, wherein the second icon is based on the first text and the text analysis of the second text is obtained;
    响应于用户对所述第二图标的第四操作,显示所述第一图标对应的所述第二应用的界面。In response to a user's fourth operation on the second icon, an interface of the second application corresponding to the first icon is displayed.
  7. 根据权利要求4所述的方法,其特征在于,响应于用户对所述第一文本的第一操作,在所述显示界面显示第二应用对应的第一图标,包括:The method according to claim 4, wherein in response to the user's first operation on the first text, displaying the first icon corresponding to the second application on the display interface includes:
    响应于用户对所述第一文本的点击操作,在所述显示界面显示悬浮球,其中,所述悬浮球中包括对所述第一文本进行文本分析得到的第二应用的第一图标。In response to the user's click operation on the first text, a floating ball is displayed on the display interface, wherein the floating ball includes a first icon of the second application obtained by performing text analysis on the first text.
  8. 根据权利要求4所述的方法,其特征在于,响应于用户对所述第一文本的第一操作,在所述显示界面显示第二应用对应的第一图标,包括:The method according to claim 4, wherein in response to the user's first operation on the first text, displaying the first icon corresponding to the second application on the display interface includes:
    响应于用户对所述第一文本的点击操作,在所述显示界面显示悬浮窗,所述悬浮窗中包括对所述第一文本进行文本分析得到的服务选项,所述服务选项中至少包括所述第二应用对应的服务选项。In response to the user's click operation on the first text, a floating window is displayed on the display interface, the floating window includes service options obtained by performing text analysis on the first text, and the service options include at least the Service options corresponding to the second application.
  9. 根据权利要求1所述的方法,其特征在于,响应于用户对所述第一文本的第一操作,在所述显示界面显示第二应用对应的第一图标,包括:The method according to claim 1, wherein in response to the user's first operation on the first text, displaying the first icon corresponding to the second application on the display interface includes:
    响应于用户在对所述第一文本的选中操作,在所述第一应用的显示界面显示第二应用对应的悬浮球,其中,所述第一文本中包括多个可组合的预设实体,所述悬浮球中包括所述第二应用对应第一图标。In response to the user's selection operation on the first text, a floating ball corresponding to the second application is displayed on the display interface of the first application, wherein the first text includes a plurality of combinable preset entities, The floating ball includes the first icon corresponding to the second application.
  10. 根据权利要求1所述的方法,其特征在于,响应于用户对所述第一文本的第一操作,在所述显示界面显示第二应用对应的第一图标,包括:The method according to claim 1, wherein in response to the user's first operation on the first text, displaying the first icon corresponding to the second application on the display interface includes:
    响应于用户对所述第一文本的选中操作,在所述第一应用的显示界面显示悬浮窗,其中,所述第一文本中包括多个不可组合的预设实体,所述悬浮窗中包括多个应用图标,所述多个应用图标至少包括所述第二应用对应的第一图标。In response to the user's selection operation on the first text, a floating window is displayed on the display interface of the first application, wherein the first text includes a plurality of non-combinable preset entities, and the floating window includes A plurality of application icons, the plurality of application icons at least including the first icon corresponding to the second application.
  11. 根据权利要求1所述的方法,其特征在于,响应于用户对所述第一文本的第一操作,在所述显示界面显示第二应用对应的第一图标,包括:The method according to claim 1, wherein in response to the user's first operation on the first text, displaying the first icon corresponding to the second application on the display interface includes:
    响应于用户对所述第一文本的复制操作,在所述第一应用的显示界面显示悬浮窗,所述悬浮窗中包括多个应用图标,所述多个应用图标包括所述第二应用对应的第一图标。In response to the user's copy operation on the first text, a floating window is displayed on the display interface of the first application, the floating window includes a plurality of application icons, and the plurality of application icons include the corresponding text of the second application. number one icon.
  12. 根据权利要求1所述的方法,其特征在于,所述第二操作包括:单击、双击以及长按。The method according to claim 1, wherein the second operation comprises: single click, double click and long press.
  13. 一种应用程序推荐方法,应用于电子设备,其特征在于,所述方法包括:An application program recommendation method applied to electronic equipment, characterized in that the method includes:
    响应于用户在第一应用对第一文本的第一操作,识别所述第一文本中包含的预设实体;Responding to a user's first operation on the first text in the first application, identifying a preset entity contained in the first text;
    在所述第一文本中包含预设实体的情况下,基于所述第一文本中包含的预设实体确定待推荐信息;In the case that the first text contains a preset entity, determining information to be recommended based on the preset entity contained in the first text;
    在所述第一文本中不包含预设实体的情况下,基于所述第一文本的内容确定待推荐信息,其中,所述待推荐信息包括:应用图标或服务列表;If the first text does not contain a preset entity, determine information to be recommended based on content of the first text, where the information to be recommended includes: an application icon or a service list;
    在所述第一应用的显示界面中显示第一图标,所述第一图标与所述待推荐信息相对 应。A first icon is displayed on the display interface of the first application, and the first icon corresponds to the information to be recommended.
  14. 根据权利要求13所述的方法,其特征在于,在所述响应于用户在第一应用对第一文本的第一操作之前,所述方法还包括:The method according to claim 13, wherein before the responding to the user's first operation on the first text in the first application, the method further comprises:
    响应于用户在第一应用中对图片的第二操作,在第一应用的显示界面中显示所述图片;displaying the picture on the display interface of the first application in response to the user's second operation on the picture in the first application;
    识别所述图片中是否包含文本;identify whether the picture contains text;
    在所述图片中包括文本的情况下,对所述图片进行OCR识别,得到第二文本;In the case that the picture includes text, performing OCR recognition on the picture to obtain a second text;
    显示第一按钮,其中,所述第一按钮用于触发显示所述第二文本;displaying a first button, wherein the first button is used to trigger display of the second text;
    响应于用户对所述第一按钮的第三操作,在所述显示界面中高亮显示所述第二文本,其中,所述第二文本包括所述第一文本。In response to a third operation of the first button by the user, the second text is highlighted in the display interface, wherein the second text includes the first text.
  15. 根据权利要求13所述的方法,其特征在于,在所述第一文本中包含预设实体的情况下,基于所述第一文本中包含的预设实体确定待推荐信息包括:The method according to claim 13, wherein in the case that the first text contains preset entities, determining the information to be recommended based on the preset entities contained in the first text includes:
    在所述第一文本中包含的单个预设实体的情况下,确定所述预设实体匹配的第二应用或者服务列表。In the case of a single preset entity contained in the first text, a second application or service list matching the preset entity is determined.
  16. 根据权利要求13所述的方法,其特征在于,在所述第一文本中包含预设实体的情况下,基于所述第一文本中包含的预设实体确定待推荐信息包括:The method according to claim 13, wherein in the case that the first text contains preset entities, determining the information to be recommended based on the preset entities contained in the first text includes:
    在所述第一文本中包含多个预设实体的情况下,确定所述多个预设实体是否可组合;If the first text contains multiple preset entities, determine whether the multiple preset entities are combinable;
    在所述多个预设实体可组合的情况下,基于所述多个预设实体确定一个第三应用。In the case that the multiple preset entities are combinable, a third application is determined based on the multiple preset entities.
  17. 根据权利要求16所述的方法,其特征在于,在确定所述多个预设实体是否可组合之后,所述方法还包括:The method according to claim 16, wherein after determining whether the plurality of preset entities can be combined, the method further comprises:
    在所述多个预设实体不可组合的情况下,分别确定包含的各所述预设实体匹配的第四应用。In the case that the plurality of preset entities cannot be combined, respectively determine a fourth application that each of the included preset entities matches.
  18. 根据权利要求13所述的方法,其特征在于,在所述第一文本中不包含预设实体的情况下,基于所述第一文本的内容确定待推荐信息包括:The method according to claim 13, wherein when the first text does not contain a preset entity, determining the information to be recommended based on the content of the first text includes:
    在所述第一文本中不包含的预设实体的情况下,对所述第一文本进行特征提取;In the case of a preset entity not included in the first text, perform feature extraction on the first text;
    基于提取的特征确定所述第一文本匹配的第一应用分类和第二应用分类;determining a first application classification and a second application classification of the first text match based on the extracted features;
    从所述第一应用分类下筛选出第一预设数量的第五应用;Filter out a first preset number of fifth applications from the first application category;
    从所述第二应用分类下筛选出第二预设数量的第六应用;Screen out a second preset number of sixth applications from the second application category;
    所述第五应用和所述第六应用,确定为待推荐信息。The fifth application and the sixth application are determined as information to be recommended.
  19. 根据权利要求13所述的方法,其特征在于,所述第一图标包括:悬浮球或悬浮窗。The method according to claim 13, wherein the first icon comprises: a floating ball or a floating window.
  20. 根据权利要求13所述的方法,其特征在于,所述预设实体包括:地址、码、身份证号码、电话号码、快递单号、网址、邮箱地址、外文、淘口令或者抖音口令。The method according to claim 13, wherein the preset entity includes: address, code, ID number, telephone number, express delivery number, website, email address, foreign language, Taobao password or Douyin password.
  21. 一种计算机可读存储介质,包括计算机程序,其特征在于,当所述计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求1-20中任意一项所述的应用程序推荐方法。A computer-readable storage medium, comprising a computer program, characterized in that, when the computer program is run on an electronic device, the electronic device is made to execute the recommended application program according to any one of claims 1-20 method.
PCT/CN2022/118236 2021-11-12 2022-09-09 Application program recommendation method WO2023082817A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111341981.2A CN116126197A (en) 2021-11-12 2021-11-12 Application program recommendation method
CN202111341981.2 2021-11-12

Publications (1)

Publication Number Publication Date
WO2023082817A1 true WO2023082817A1 (en) 2023-05-19

Family

ID=86305017

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/118236 WO2023082817A1 (en) 2021-11-12 2022-09-09 Application program recommendation method

Country Status (2)

Country Link
CN (1) CN116126197A (en)
WO (1) WO2023082817A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116992152A (en) * 2023-08-28 2023-11-03 荣耀终端有限公司 Application recommendation method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105278970A (en) * 2014-06-16 2016-01-27 中兴通讯股份有限公司 Data processing method, device and terminal
CN106023994A (en) * 2016-04-29 2016-10-12 杭州华橙网络科技有限公司 Speech processing method, device and system
CN109299363A (en) * 2018-09-26 2019-02-01 北京安云世纪科技有限公司 Content acquisition method, device, computer equipment and the storage medium of pushed information
US20190079665A1 (en) * 2015-12-09 2019-03-14 Alibaba Group Holding Limited Data processing method, apparatus, and smart terminal
CN111344671A (en) * 2017-11-10 2020-06-26 三星电子株式会社 Electronic device and operation method thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108470041B (en) * 2018-02-12 2021-01-08 维沃移动通信有限公司 Information searching method and mobile terminal
CN110968654B (en) * 2018-09-29 2023-10-20 阿里巴巴集团控股有限公司 Address category determining method, equipment and system for text data
CN110232156B (en) * 2019-05-31 2022-08-19 腾讯科技(深圳)有限公司 Information recommendation method and device based on long text
CN110188278A (en) * 2019-05-31 2019-08-30 三角兽(北京)科技有限公司 Application program recommended method, device, electronic equipment and computer readable storage medium
CN112307315A (en) * 2019-08-02 2021-02-02 广州三星通信技术研究有限公司 Intelligent service recommendation method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105278970A (en) * 2014-06-16 2016-01-27 中兴通讯股份有限公司 Data processing method, device and terminal
US20190079665A1 (en) * 2015-12-09 2019-03-14 Alibaba Group Holding Limited Data processing method, apparatus, and smart terminal
CN106023994A (en) * 2016-04-29 2016-10-12 杭州华橙网络科技有限公司 Speech processing method, device and system
CN111344671A (en) * 2017-11-10 2020-06-26 三星电子株式会社 Electronic device and operation method thereof
CN109299363A (en) * 2018-09-26 2019-02-01 北京安云世纪科技有限公司 Content acquisition method, device, computer equipment and the storage medium of pushed information

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116992152A (en) * 2023-08-28 2023-11-03 荣耀终端有限公司 Application recommendation method and electronic equipment

Also Published As

Publication number Publication date
CN116126197A (en) 2023-05-16

Similar Documents

Publication Publication Date Title
US11460983B2 (en) Method of processing content and electronic device thereof
US11423209B2 (en) Device, method, and graphical user interface for classifying and populating fields of electronic forms
US11017045B2 (en) Personalized user experience and search-based recommendations
US9398142B2 (en) Mobile computing terminal with more than one lock screen and method of using the same
CN110785756A (en) Data content filter
CN108369600B (en) Web browser extensions
US20130139113A1 (en) Quick action for performing frequent tasks on a mobile device
US10551998B2 (en) Method of displaying screen in electronic device, and electronic device therefor
AU2010327453A1 (en) Method and apparatus for providing user interface of portable device
US20190369825A1 (en) Electronic device and method for providing information related to image to application through input unit
KR20210005199A (en) Device, method, and graphical user interface for managing authentication credentials for user accounts
CN108604152A (en) unread message reminding method and terminal
US20140089841A1 (en) Device and method for providing application interface based on writing input
CN107220377B (en) Search method, electronic device, and computer storage medium
WO2023082817A1 (en) Application program recommendation method
WO2016173307A1 (en) Message copying method and device, and smart terminal
US11630688B2 (en) Method and apparatus for managing content across applications
CN113849092A (en) Content sharing method and device and electronic equipment
CN111935353B (en) Mobile terminal and short message display method thereof
EP4293607A1 (en) Electronic device and method for providing sticker on basis of content input
EP4220364A1 (en) Method for presenting interface information, and electronic device
CN113138676B (en) Expression symbol display method and device
EP3163475B1 (en) Electronic device and method of searching data records
CN107203382A (en) A kind of information demonstrating method and terminal
WO2017100357A1 (en) Method, system, and device for processing data in connection with an application

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: 22891622

Country of ref document: EP

Kind code of ref document: A1