[go: up one dir, main page]

CN116126197B - Application Recommendation Method - Google Patents

Application Recommendation Method Download PDF

Info

Publication number
CN116126197B
CN116126197B CN202111341981.2A CN202111341981A CN116126197B CN 116126197 B CN116126197 B CN 116126197B CN 202111341981 A CN202111341981 A CN 202111341981A CN 116126197 B CN116126197 B CN 116126197B
Authority
CN
China
Prior art keywords
text
application
user
icon
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111341981.2A
Other languages
Chinese (zh)
Other versions
CN116126197A (en
Inventor
毛璐
王晨博
潘宇欣
孙甜甜
李一博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202111341981.2A priority Critical patent/CN116126197B/en
Priority to PCT/CN2022/118236 priority patent/WO2023082817A1/en
Publication of CN116126197A publication Critical patent/CN116126197A/en
Application granted granted Critical
Publication of CN116126197B publication Critical patent/CN116126197B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Multimedia (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides an application program recommending method. The method comprises the following steps: the electronic equipment displays a first text and a second text on a display interface of a first application; responding to a first operation of a user on a first text, and displaying a first icon corresponding to a second application on a display interface; the electronic equipment responds to a second operation of the user on the first icon, and displays an interface of a second application corresponding to the first icon; the user can also adjust the selected file, and the electronic equipment responds to a third operation of the user on the first text and the second text and displays a second icon corresponding to a third application on the display interface; and the electronic equipment responds to the fourth operation of the user on the second icon, and displays an interface of a third application corresponding to the second icon. According to the application program recommending method, the electronic equipment directly carries out application recommending according to the text selected by the user, the user does not need to exit the first application, the target application is searched from a large number of applications in the desktop, the operation is convenient, and the time for searching the application by the user can be saved.

Description

应用程序推荐方法Application Recommendation Method

技术领域Technical Field

本申请涉及终端设备领域,尤其涉及一种应用程序推荐方法。The present application relates to the field of terminal devices, and in particular to an application recommendation method.

背景技术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, if the text contains an address, the user wants to find a map application to navigate to it. At this time, the user needs to exit the current text and search for a navigation application from a large number of applications contained in the main interface. The operation process is cumbersome and time-consuming, resulting in a poor user experience.

发明内容Summary of the invention

本申请提供一种应用程序推荐方法,通过该应用程序推荐方法能够基于用户选中的文本进行应用程序推荐,无需用户从电子设备中安装的大量应用程序中手动查找目标应用程序,能够提升用户体验。The present application provides an application recommendation method, through which application recommendation can be performed based on text selected by a user, without the need for the user to manually search for the target application from a large number of applications installed in the electronic device, thereby improving the user experience.

在一些实施例中,电子设备可响应于用户对第一应用的显示界面上显示的第一文本的第一操作如复制、选中、单击或者长按,在第一应用的显示界面显示第二应用对应的第一图标,以第一图标的形式向用户推荐应用信息,用户对第一图标执行第二操作,触发电子设备显示第二应用的界面,无需用户退出第一应用,从桌面中大量的应用中查找第二应用,操作便捷且可节省用户查找应用所耗时间。不仅如此,用户还可以调整选中的文本,电子设备响应于用户对第一文本和第二文本的第三操作,在显示界面显示对第一文本和第二文本进行文本分析得到的第三应用对应的第二图标;电子设备响应于用户对第二图标的第四操作,显示第二图标对应的第三应用的界面,用户能够灵活地调整选中的文本触发系统进行不同应用的推荐,操作便捷且可提升应用推荐的趣味性。In some embodiments, the electronic device can respond 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, and display the first icon corresponding to the second application on the display interface of the first application, recommend application information to the user in the form of the first icon, and the user performs a second operation on the first icon, triggering the electronic device to display the interface of the second application, without the user exiting the first application, and searching for the second application from a large number of applications on the desktop, which is convenient and can save the user time spent searching for applications. 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 the second icon corresponding to the third application obtained by text analysis of the first text and the second text on the display interface; 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. The user can flexibly adjust the selected text to trigger the system to recommend different applications, which is convenient and can enhance the fun of application recommendation.

第一方面,本申请提供一种应用程序推荐方法,该方法应用于电子设备,其中,该方法包括:电子设备在第一应用的显示界面上显示第一文本和第二文本;电子设备响应于用户对第一文本的第一操作,在第一应用的显示界面显示第二应用对应的第一图标,以向用户推荐第二应用,用户想要打开第二应用时,可对第一图标执行第二操作例如单击操作,电子设备响应于用户对第一图标的第二操作,显示第一图标对应的第二应用的界面。其中,第一操作、第三操作均可以包括但不限于:点击、复制、选中或者长按操作,第一应用可以包括但不限于:图库、实时截屏、浏览器、备忘录以及短信息等。用户想要调整选中的文本触发电子设备重新进行应用推荐时,可重新对第一应用的显示界面显示的文本执行第三操作,电子设备响应于用户对第一文本和第二文本的第三操作,在显示界面显示第三应用对应的第二图标,其中,第二图标是根据对第一文本和第二文本的文本分析得到;用户想要切换至第三应用时,可对第二图标执行第四操作,电子设备响应于用户对第二图标的第四操作,显示第二图标对应的第三应用的界面。其中,第四操作、第二操作均可以包括但不限于:单击、双击或长按等。In a first aspect, the present application provides an application recommendation method, which is applied to an electronic device, wherein the method includes: the electronic device displays a first text and a second text on a display interface of a first application; the electronic device displays a first icon corresponding to the second application on the display interface of the first application in response to a first operation of the user on the first text, so as to recommend the second application to the user; when the user wants to open the second application, the second operation, such as a single-click operation, can be performed on the first icon, and the electronic device displays the interface of the second application corresponding to the first icon in response to the second operation of the user on the first icon. Wherein, the first operation and the third operation can include but are not limited to: click, copy, select or long press operation, and the first application can include but are 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 displays the second icon corresponding to the third application on the display interface in response to the third operation of the user on the first text and the second text, wherein the second icon is obtained based on the text analysis of the first text and the second text; when the user wants to switch to the third application, the fourth operation can be performed on the second icon, and the electronic device displays the interface of the third application corresponding to the second icon in response to the fourth operation of the user on the second icon. The fourth operation and the second operation may include but are not limited to: single click, double click or long press, etc.

该种应用程序推荐的方式,电子设备可依据用户选中的文本向用户推荐应用,用户对推荐的应用图标执行第二操作即可触发电子设备开启相应的应用,无需用户退出第一应用后从电子设备已安装的大量应用中查找目标应用,操作便捷且能够节省应用查找所耗时间。With this method of application recommendation, the electronic device can recommend applications to the user based on the text selected by the user. The user can trigger the electronic device to open the corresponding application by performing a second operation on the recommended application icon. The user does not need to exit the first application and then search for the target application from a large number of applications installed on the electronic device. The operation is convenient and can save time spent on application search.

根据第一方面的应用程序推荐方法,第一文本包括:纯文本或图片OCR识别得到的文本。纯文本的来源可以包括但不限于:浏览器、备忘录以及短信息等。图片的来源可以包括但不限于:图库、实时截屏、浏览器或社交类软件等。该种应用推荐方法,不仅可为纯文本进行应用推荐还可以为图片中的文本进行应用推荐,普适性强。According to the application recommendation method of the first aspect, the first text includes: plain text or text obtained by OCR recognition of a picture. The source of the plain text may include but is not limited to: a browser, a memo, and a short message. The source of the picture may include but is not limited to: a gallery, a real-time screenshot, a browser, or a social software. This application recommendation method can not only recommend applications for plain text but also for text in a picture, and has strong universality.

根据第一方面,或者以上第一方面的任意一种实现方式,在电子设备在第一应用的显示界面上显示第一文本和第二文本之前,该方法还包括:电子设备响应于用户在第一应用中对图片的第五操作,在第一应用的显示界面中显示该图片;在该图片中包括文本的情况下,显示第一按钮,其中,第一按钮用于触发显示图片OCR识别得到第一文本和第二文本;用户想要获取OCR识别得到文本时,可对第一按钮执行第六操作第一按钮,电子设备响应于用户对第一按钮的第六操作,在显示界面中高亮显示OCR识别得到的第一文本和第二文本。第五操作可以包括但不限于:单击、双击、长按、双指点击等操作,第六操作可以包括但不限于:单击、双击或者长按等操作。该种对图片进行OCR识别的方式,操作简单便捷。According to the first aspect, or any implementation of the first aspect above, 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 displays the picture in the display interface of the first application in response to the user's fifth operation on the picture in the first application; when the picture includes text, the first button is displayed, wherein the first button is used to trigger the display of the first text and the second text obtained by OCR recognition of the picture; when the user wants to obtain the text obtained by OCR recognition, the first button can be operated. The electronic device responds to the user's sixth operation on the first button, and highlights the first text and the second text obtained by OCR recognition in the display interface. The fifth operation may include but is not limited to: single-click, double-click, long press, two-finger click and other operations, and the sixth operation may include but is not limited to: single-click, double-click or long press and other operations. This method of performing OCR recognition on pictures is simple and convenient to operate.

根据第一方面,或者以上第一方面的任意一种实现方式,电子设备在显示界面中高亮显示第一文本和第二文本时,电子设备在显示界面中高亮显示对图片进行OCR识别得到的第一文本和第二文本,且在第一文本和第二文本下显示下划线,其中,第一文本和第二文本为预设实体,预设实体可以包括但不限于:地址、码、身份证号码、电话号码、快递单号、网址、邮箱地址、外文、淘口令或者抖音口令。该种在预设实体下添加下划线进行显示的方法,一方面,便于用户直观获知哪些是预设实体,另一方面,用户可点击部分预设实体或者下划线即可选中预设实体,无需通过光标在文本中移动选取多文字文本,便于用户操作。需要说明的是,对于OCR识别结果中的非预设实体,可以高亮显示但不在其下方添加下划线。According to the first aspect, or any implementation of the first aspect above, when the electronic device highlights the first text and the second text in the display interface, the electronic device highlights the first text and the second text obtained by OCR recognition of the image in the display interface, and displays an underline under the first text and the second text, wherein the first text and the second text are preset entities, and the preset entity may include but is not limited to: address, code, ID number, telephone number, express number, website, email address, foreign language, Taobao password or Douyin password. This method of adding an underline under the preset entity for display, on the one hand, is convenient for users to intuitively know which are the preset entities, and on the other hand, the user can click on some preset entities or underlines to select the preset entity, without moving the cursor in the text to select multi-text text, which is convenient for user operation. It should be noted that for non-preset entities in the OCR recognition results, they can be highlighted but not underlined below them.

根据第一方面,或者以上第一方面的任意一种实现方式,该方法还包括:电子设备检测到用户对第二文本执行第三操作时,在显示界面中取消显示第一图标。该种在调整选中的文本过程中取消显示上一次推荐的应用的图标的方式,由于图标取消显示,因此不会遮挡住用户想要选中的文本,便于用户操作。According to the first aspect, or any implementation of the first aspect above, the method further includes: when the electronic device detects that the user performs a third operation on the second text, canceling the display of the first icon in the display interface. In this manner 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 from display, the text that the user wants to select will not be obscured, which facilitates the user's operation.

根据第一方面,或者以上第一方面的任意一种实现方式,该方法还包括:电子设备响应于用户对第三文本和第二文本的第七操作,在显示界面显示第二应用对应的第一图标和第四应用对应的第三图标;其中,第一文本包括第三文本,第一图标与第三图标是根据对第一文本和第三文本的文本分析得到;响应于用户对第三图标的第八操作,显示第三图标对应的第四应用的界面;电子设备响应于用户对第一文本和第二文本的第三操作,在显示界面显示第三应用对应的第二图标,其中,第二图标是根据对第一文本和第二文本的文本分析得到;响应于用户对第二图标的第四操作,显示第一图标对应的第二应用的界面。According to the first aspect, or any implementation of the first aspect above, the method also includes: the electronic device displays a first icon corresponding to the second application and a third icon corresponding to the fourth application on the display interface in response to the user's seventh operation on the third text and the second text; wherein the first text includes the third text, and the first icon and the third icon are obtained based on text analysis of the first text and the third text; in response to the user's eighth operation on the third icon, the interface of the fourth application corresponding to the third icon is displayed; the electronic device displays a second icon corresponding to the third application on the display interface in response to the user's third operation on the first text and the second text, wherein the second icon is obtained based on text analysis of the first text and the second text; in response to the user's fourth operation on the second icon, the 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 above method, and the eighth operation may be the same as the second operation in the above method, which will not be repeated here. In this application 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, and then recommends the third icon of the fourth application and the first icon of the second application, without the user having 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 of the first aspect above, 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 the display interface of the first application in response to the user's click operation on the first text, wherein the floating ball includes the first icon of the second application obtained by performing text analysis on the first text. Displaying the first icon of the second application in the form of a floating ball, on the one hand, can always remain at the top of the screen to avoid being covered by other content due to the floating display of the floating ball; on the other hand, the floating ball covers a smaller screen area to avoid excessive coverage of image content; third, directly displaying the first icon of the second application is more eye-catching, which is convenient for users to determine whether the second application is the application to be switched.

根据第一方面,或者以上第一方面的任意一种实现方式,电子设备响应于用户对第一文本的第一操作,在第一应用的显示界面显示第二应用对应的第一图标,包括:电子设备响应于用户对第一文本的点击操作,在第一应用的显示界面显示悬浮窗,悬浮窗中包括对第一文本进行文本分析得到的服务选项,服务选项中至少包括第二应用对应的服务选项。该种依据用户选中的第一文本推荐匹配的服务选项列表的方式,同时推荐多个服务选项,便于用户从推荐的服务选项中查找到目标选项。According to the first aspect, or any implementation of the first aspect above, the electronic device displays a first icon corresponding to a second application on a display interface of the first application in response to a first operation of a user on a first text, including: the electronic device displays a floating window on the display interface of the first application in response to a click operation of the user on the first text, the floating window includes service options obtained by text analysis of the first text, and the service options at least include service options corresponding to the second application. This method of recommending a matching service option list based on the first text selected by the user recommends multiple service options at the same time, making it easier for the user to find the target option from the recommended service options.

根据第一方面,或者以上第一方面的任意一种实现方式,第一操作包括:点击、复制、选中以及长按。点击可以包括但不限于:单指单击、单指双击、双指点击等,复制可以包括光标在文本中移动选中第一文本后显示包含复制选项的菜单栏,用户点击复制选项完成对第一文本的复制。对于长按的具体时长在此不做具体限制,例如:长按1秒、2秒或者3秒等。该种将第一操作设置为多样化的方式,使得第一操作的设置更加灵活。According to the first aspect, or any implementation of the first aspect above, the first operation includes: click, copy, select, and long press. Clicking may include but is not limited to: single-finger single click, single-finger double click, double-finger click, etc. Copying may include the cursor moving in the text to select the first text and then displaying a menu bar containing a copy option, and the user clicks the copy option to complete the copying of the first text. There is no specific restriction on the specific duration of the long press, for example: long press for 1 second, 2 seconds or 3 seconds, etc. This method of setting the first operation in a diversified manner makes the setting of the first operation more flexible.

根据第一方面,或者以上第一方面的任意一种实现方式,电子设备响应于用户对第一文本的第一操作,在第一应用的显示界面显示第二应用对应的第一图标,包括:电子设备响应于用户对第一文本的选中操作,在第一应用的显示界面显示第二应用对应的悬浮球,其中,第一文本中包括多个可组合的预设实体,悬浮球中包括第二应用对应的第一图标。该种应用推荐方式,识别到第一文本中包含多个可组合的预设实体时,仅推荐一个应用即第二应用对应的第一图标,推荐结果更加精准,便于用户选择。According to the first aspect, or any implementation of the first aspect above, the electronic device displays a 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: the electronic device displays a floating ball corresponding to the second application on the display interface of the first application in response to the user's selection operation on the first text, wherein the first text includes multiple combinable preset entities, and the floating ball includes the first icon corresponding to the second application. This application recommendation method, when recognizing that the first text contains multiple combinable preset entities, only recommends one application, namely the first icon corresponding to the second application, and the recommendation result is more accurate and convenient for users to choose.

根据第一方面,或者以上第一方面的任意一种实现方式,电子设备响应于用户对第一文本的第一操作,在第一应用的显示界面显示第二应用对应的第一图标,包括:电子设备响应于用户对第一文本的选中操作,在第一应用的显示界面显示悬浮窗,其中,第一文本中包括多个不可组合的预设实体,悬浮窗中包括多个应用图标,多个应用图标至少包括第二应用的第一图标。该种应用推荐方式,识别到第一文本中包含多个不可组合的预设实体时,由于不确定用户的真实意图,因此推荐多个应用推荐供用户选择,便于用户选择到期望切换的第二应用。According to the first aspect, or any implementation of the first aspect above, the electronic device displays a first icon corresponding to a second application on the display interface of the first application in response to a first operation of a user on a first text, including: the electronic device displays a floating window on the display interface of the first application in response to a selection operation of the user on the first text, wherein the first text includes a plurality of non-combinable preset entities, the floating window includes a plurality of application icons, and the plurality of application icons include at least the first icon of the second application. This application recommendation method, when recognizing that the first text contains a plurality of non-combinable preset entities, recommends a plurality of application recommendations for the user to select because the user's true intention is uncertain, so as to facilitate the user to select the second application to which he or she wishes to switch.

根据第一方面,或者以上第一方面的任意一种实现方式,电子设备响应于用户对第一文本的第一操作,在第一应用的显示界面显示第二应用对应的第一图标,包括:电子设备响应于用户对第一文本的复制操作,在第一应用的显示界面显示悬浮窗,悬浮窗中包括多个应用图标,多个应用图标包括第二应用对应的第一图标。该种应用程序推荐方式,在复制的第一文本中不包含预设实体的情况下,由于不确定用户的真实意图,因此推荐多个应用推荐供用户选择,便于用户选择到期望切换的第二应用。According to the first aspect, or any implementation of the first aspect above, the electronic device displays a first icon corresponding to a second application on a display interface of a first application in response to a first operation of a user on a first text, including: the electronic device displays a floating window on a display interface of the first application in response to a copy operation of the user on the first text, 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 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 to which he or she wishes to switch.

根据第一方面,或者以上第一方面的任意一种实现方式,第二操作包括:单击、双击以及长按。单击可以包括但不限于:单手指单击、双手指单击,双击也可以包括但不限于:单手指双击、双手指双击,对于长按的具体时长在此不做具体限制,例如:长按1秒、2秒或者3秒等。该种将第二操作设置为多样化的方式,使得第二操作的设置更加灵活。According to the first aspect, or any implementation of the first aspect above, the second operation includes: single click, double click, and long press. Single click may include but is not limited to: single finger single click, double finger single click, double click may also include but is not limited to: single finger double click, double finger double click, and there is no specific restriction on the specific duration of long press, for example: long press for 1 second, 2 seconds or 3 seconds, etc. This method of setting the second operation in a diversified manner makes the setting of the second operation more flexible.

第二方面,本申请又提供一种应用程序推荐方法,该方法应用于电子设备,该方法包括:电子设备响应于用户在第一应用对第一文本的第一操作例如点击、长按或复制,识别第一文本中包含的预设实体;在第一文本中包含预设实体的情况下,基于第一文本中包含的预设实体确定待推荐信息;在第一文本中不包含预设实体的情况下,基于第一文本的内容确定待推荐信息,其中,待推荐信息包括:应用图标或服务列表;在第一应用的显示界面中显示第一图标,第一图标与待推荐信息相对应。In a second aspect, the present application further provides an application recommendation method, which is applied to an electronic device, and the method includes: the electronic device identifies a preset entity contained in a first text in response to a user's first operation on a first text in a first application, such as click, long press, or copy; when the first text contains the preset entity, determining the information to be recommended based on the preset entity contained in the first text; when the first text does not contain the preset entity, determining the information to be recommended based on the content of the first text, wherein the information to be recommended includes: an application icon or a service list; displaying a first icon in the display interface of the first application, the first icon corresponding to the information to be recommended.

该种应用程序推荐方法,基于用户选中的第一文本进行应用或者服务列表推荐,用户从推荐中点击第二应用即可触发电子设备开启第二应用,无需用户退出第一应用后从电子设备已安装的大量应用中查找第二应用,操作便捷且能够节省应用查找所耗时间。This application recommendation method recommends an application or service list based on the first text selected by the user. The user can trigger the electronic device to open the second application by clicking on the second application from the recommendation. The user does not need to exit the first application and then search for the second application from a large number of applications installed on the electronic device. The operation is convenient and can save time spent on application search.

根据第二方面的应用程序推荐方法,电子设备在响应于用户在第一应用对第一文本的第一操作之前,该方法还包括:电子设备响应于用户在第一应用中对图片的第二操作例如:点击、长按等操作,在第一应用的显示界面中显示图片;识别图片中是否包含文本;在图片中包括文本的情况下,对图片进行OCR识别,得到第二文本;显示第一按钮,其中,第一按钮用于触发显示第二文本;用户预查看OCR识别结果时,可对第一按钮执行第三操作,电子设备响应于用户对第一按钮的第三操作,在显示界面中高亮显示第二文本,其中,第二文本包括第一文本。该种对图片进行OCR识别的方式,操作简单便捷。According to the application 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, such as: click, long press, etc., and displays the picture in the display interface of the first application; identifies whether the picture contains text; if the picture includes text, performs OCR recognition on the picture to obtain the second text; displays the first 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 highlights the second text in the display interface, wherein the second text includes the first text. This method of performing OCR recognition on pictures is simple and convenient to operate.

根据第一方面,或者以上第一方面的任意一种实现方式,在第一文本中包含预设实体的情况下,电子设备基于第一文本中包含的预设实体确定待推荐信息包括:在第一文本中包含的单个预设实体的情况下,电子设备确定第一文本中所包含该预设实体匹配的第二应用或者服务列表。该种基于单个预设实体推荐单个应用或者服务列表的方式,所推荐的内容与用户期望值更加匹配。例如:预设实体为淘口令,用户查看淘口令时极有可能想要开启淘宝应用,因此将淘宝应用推荐给用户。无需用户再从桌面中手动查找淘宝应用。According to the first aspect, or any implementation of the first aspect above, in the case where a preset entity is included in the first text, the electronic device determines the information to be recommended based on the preset entity included in the first text, including: in the case of a single preset entity included in the first text, the electronic device determines a second application or service list that matches the preset entity contained in the first text. In this method 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 preset entity is a Taobao password, and the user is very likely to want to open the Taobao application when viewing the Taobao password, so the Taobao application is recommended to the user. The user no longer needs to manually search for the Taobao application from the desktop.

根据第一方面,或者以上第一方面的任意一种实现方式,在第一文本中包含预设实体的情况下,电子设备基于第一文本中包含的预设实体确定待推荐信息包括:在第一文本中包含多个预设实体的情况下,电子设备确定多个预设实体是否可组合;在多个预设实体可组合的情况下,基于多个预设实体确定一个第三应用。该种应用推荐方式,识别到第一文本中包含多个可组合的预设实体时,仅推荐一个应用即第二应用,推荐结果更加精准,便于用户选择。例如:识别到第一文本中包括姓名、电话号码以及地址时,判定用户极有可能想要切换到购物类应用,因此推荐购物类应用。According to the first aspect, or any implementation of the first aspect above, when the first text contains a preset entity, the electronic device determines the information to be recommended based on the preset entity contained in the first text, including: when the first text contains multiple preset entities, the electronic device determines whether the multiple preset entities are combinable; when the multiple preset entities are combinable, a third application is determined based on the multiple preset entities. This application recommendation method, when it is recognized that the first text contains multiple combinable preset entities, only one application, namely the second application, is recommended, and the recommendation result is more accurate and convenient for users to choose. 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 very likely to want to switch to a shopping application, so a shopping application is recommended.

根据第一方面,或者以上第一方面的任意一种实现方式,电子设备在确定多个预设实体不可组合的情况下,分别确定包含的各预设实体匹配的第四应用,将所确定的多个第四应用确定为推荐信息。该种应用推荐方式,识别到第一文本中包含多个不可组合的预设实体时,由于不确定用户的真实意图,因此推荐多个应用推荐供用户选择,便于用户选择到期望切换的应用。例如:第一文本中包括外文、淘口令以及地址时,由于这三个预设实体不可组合,因此分别推荐各预设实体对应的应用翻译类应用、地图类应用以及购物类应用。According to the first aspect, or any implementation of the first aspect above, when the electronic device determines that multiple preset entities cannot be combined, it separately determines the fourth applications that match each preset entity contained therein, and determines the determined multiple fourth applications as recommendation information. This application recommendation method, when it is recognized that the first text contains multiple preset entities that cannot be combined, because the user's true intention is uncertain, multiple application recommendations are recommended for the user to choose, so that the user can choose the application to which he or she wishes to switch. 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 recommended respectively.

根据第二方面,或者以上第二方面的任意一种实现方式,在第一文本中不包含预设实体的情况下,基于第一文本的内容确定待推荐信息包括:电子设备在第一文本中不包含的预设实体的情况下,对第一文本进行特征提取;基于提取的特征确定第一文本匹配的第一应用分类和第二应用分类;从第一应用分类下筛选出第一预设数量的第五应用;从第二应用分类下筛选出第二预设数量的第六应用;第五应用和第六应用,确定为待推荐信息。其中,第一预设数量大于第二预设数量,第一预设数量、第二预设数量的具体数值可由本领域技术人员灵活设置,本方案中对此不做具体限制。该种应用程序推荐方式,在第一文本中不包含预设实体的情况下,由于不确定用户的真实意图,因此推荐多个应用推荐供用户选择,便于用户选择到期望切换的第二应用。According to the second aspect, or any implementation of the second aspect above, 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: when the electronic device does not contain the preset entity in the first text, extracting features from the first text; determining the first application category and the second application category that match the first text based on the extracted features; screening out a first preset number of fifth applications from the first application category; screening out a second preset number of sixth applications from the second application category; the fifth application and the sixth application are determined as the information to be recommended. Among them, 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 no specific restrictions are made 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 choose the second application to which he or she wishes to switch.

根据第二方面,或者以上第二方面的任意一种实现方式,第一图标包括:悬浮球或悬浮窗。悬浮球遮挡屏幕面积小,悬浮窗中可显示的内容较多,电子设备可依据待推荐信息的内容多少来适应性选择第一图标样式。According to the second aspect, or any implementation of the second aspect above, the first icon includes: a floating ball or a floating window. The floating ball covers a small screen area, and the floating window can display more content. The electronic device can adaptively select the first icon style according to the amount of content of the information to be recommended.

根据第二方面,或者以上第二方面的任意一种实现方式,预设实体可以包括但不限于:地址、码、身份证号码、电话号码、快递单号、网址、邮箱地址、外文、淘口令或者抖音口令。预设实体可以由本领域技术人员灵活调整。设置多个预设实体,为每个预设实体预先设置对应的应用推荐信息,便于在用户使用过程中,为用户进行可靠的应用推荐。According to the second aspect, or any implementation of the second aspect above, the preset entity may include but is not limited to: address, code, ID number, telephone number, express number, website, email address, foreign language, Taobao password or Douyin password. The preset entity can be flexibly adjusted by those skilled in the art. Set up multiple preset entities, and pre-set corresponding application recommendation information for each preset entity, so as to facilitate reliable application recommendations for users during user use.

第三方面,本申请提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行第一方面或第二方面的任意可能的实现方式中的方法的指令,或包括用于执行第一方面或第二方面的任意可能的实现方式中的方法的指令。In a third aspect, the present application provides a computer-readable medium for storing a computer program, the computer program comprising instructions for executing a method in any possible implementation of the first aspect or the second aspect, or comprising instructions for executing a method in any possible implementation of the first aspect or the second aspect.

第四方面,本申请提供了一种计算机程序,该计算机程序包括用于执行第一方面或第二方面的任意可能的实现方式中的方法的指令,或包括用于执行第一方面或第二方面的任意可能的实现方式中的方法的指令。In a fourth aspect, the present application provides a computer program comprising instructions for executing a method in any possible implementation of the first aspect or the second aspect, or comprising instructions for executing a method in any possible implementation of the first aspect or the second aspect.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为示例性示出的电子设备的硬件结构示意图;FIG1 is a schematic diagram showing a hardware structure of an electronic device;

图2为示例性示出的电子设备的软件结构示意图;FIG. 2 is a schematic diagram showing an exemplary software structure of an electronic device;

图3为示例性示出的一种对图库中的图片进行OCR识别的界面示意图;FIG3 is a schematic diagram of an interface for performing OCR recognition on pictures in a gallery;

图4A为示例性示出的一种基于单预设实体进行应用推荐的界面示意图;FIG4A is a schematic diagram of an interface for exemplarily showing application recommendation based on a single preset entity;

图4B为示例性示出的一种基于单预设实体进行服务列表推荐的界面示意图;FIG4B is a schematic diagram of an interface for recommending a service list based on a single preset entity;

图5为示例性示出的一种基于淘口令进行应用推荐的界面示意图;FIG5 is a schematic diagram of an interface for recommending applications based on a Taobao password;

图6为示例性示出的基于图片中的单个预设实体进行应用推荐时用户与设备间交互的时序流程图;FIG6 is a timing flow chart showing an example of the interaction between a user and a device when making an application recommendation based on a single preset entity in a picture;

图7为示例性示出的一种基于用户先后两次选中的多个关联预设实体进行应用推荐时界面变化示意图;FIG. 7 is a schematic diagram showing an exemplary interface change when application recommendation is performed based on multiple associated preset entities selected twice by a user;

图8为示例性示出的又一种基于用户先后两次选中的多个预设实体进行应用推荐时界面变化示意图;FIG8 is a schematic diagram showing another exemplary interface change when application recommendations are made based on multiple preset entities selected twice by a user;

图9为示例性示出的一种基于用户先后两次选中的多个非关联预设实体进行应用列表推荐时界面变化示意图;FIG9 is a schematic diagram showing an exemplary interface change when an application list is recommended based on multiple non-associated preset entities selected twice by a user;

图10为示例性示出的基于图片中的多个预设实体进行应用推荐时用户与设备间交互的时序流程图;FIG10 is a timing flow chart showing an example of interaction between a user and a device when making application recommendations based on multiple preset entities in a picture;

图11为示例性示出的一种基于不包含预设实体的图片进行应用推荐的界面示意图;FIG11 is a schematic diagram of an interface for recommending applications based on pictures that do not contain preset entities;

图12为示例性示出的基于图片内容进行应用推荐时用户与设备间交互的时序流程图。FIG. 12 is a timing flow chart showing an example of the interaction between a user and a device when making application recommendations based on image content.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。The term "and/or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

本申请实施例的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一目标对象和第二目标对象等是用于区别不同的目标对象,而不是用于描述目标对象的特定顺序。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, a first target object and a second target object are used to distinguish different target objects rather than to describe a specific order of target objects.

在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

在本申请实施例的描述中,除非另有说明,“多个”的含义是指两个或两个以上。例如,多个处理单元是指两个或两个以上的处理单元;多个系统是指两个或两个以上的系统。In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more than two. For example, multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.

本申请实施例中的应用程序推荐方法,可以应用于将同一电子设备的第一应用中的文本复制到第二应用中的场景。The application recommendation method in the embodiment of the present application can be applied to a scenario where text in a first application of the same electronic device is copied to a second application.

在一个示例中,该场景例如可以是:将浏览器、备忘录、邮件、微信等应用中的文本复制粘贴到与文本的来源应用不同的其他应用中。本示例中,应用中的文本能够被直接选择、复制或者点击。In one example, the scenario may be: copying and pasting text in an application such as a browser, a memo, an email, or WeChat into another application different from the source application of the text. In this example, the text in the application can be directly selected, copied, or clicked.

在另一个示例中,该场景例如可以是:将图片的光学字符识别(OpticalCharacter Recognition,OCR)识别结果中的目标文字复制粘贴到某一应用中。其中,图片可以来源于图库、实时截屏、浏览器、微信、QQ等等应用。本申请实施例对图片的来源不做限制。本示例中,应用中的文本来源于图片的OCR识别结果,未OCR识别之前图片中的文本不能被直接选择。In another example, the scenario may be, for example, copying and pasting the target text in the optical character recognition (OCR) result of the image into an application. The image may come from a gallery, real-time screenshot, browser, WeChat, QQ, and other applications. The embodiment of the present application does not limit the source of the image. In this example, the text in the application comes from the OCR recognition result of the image, and the text in the image cannot be directly selected before OCR recognition.

举例来说,一个快递的照片中有地址信息、电话、收件人等信息,用户想要将该地址信息添加到某一购物类应用的收货地址中。此时,可以应用本申请实施例中的应用程序推荐方法,将照片中的地址信息粘贴到购物类应用的收货地址中。For example, a photo of a courier contains address information, phone number, recipient information, 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 the present application can be applied to paste the address information in the photo into the delivery address of the shopping application.

应用光学字符识别技术,可以识别出图片中的字符串,这些被识别出的字符串即图片的OCR识别结果为文本,用户在OCR识别结果中选中的目标文字可称为第一文本、第二文本等。在图片的OCR识别结果中,字符串可以被进一步判定是否为预设实体,例如:地址、码、身份证号码、电话号码、快递单号、网址、邮箱地址、外文、淘口令或者抖音口令等,用户可以单选或者多选OCR识别结果中的预设实体,用户可以对OCR识别结果的非预设实体进行选择、复制等操作以选中目标文字。选中目标文字后,用户通常希望将目标文字粘贴到某个应用或者某个服务的文本输入框中,系统将依据目标文字进行应用或者服务列表推荐,以便用户选择目标应用或目标服务,将目标文字粘贴到目标应用或目标服务中。其中,应用又可称为应用程序,目标应用、目标服务对应的应用也可称为用户对推荐的图标进行点击后触发系统开启的应用,当前显示该图片的应用又可称为第一应用。By applying optical character recognition technology, the character strings in the image can be identified. These identified character strings, i.e., the OCR recognition results of the image, are texts. The target text selected by the user in the OCR recognition results can be referred to as the first text, the second text, etc. In the OCR recognition results of the image, the character string can be further determined whether it is a preset entity, such as: address, code, ID number, telephone number, express number, website, email address, foreign language, Taobao password or Douyin password, etc. The user can select a single or multiple preset entities in the OCR recognition results. The user can select, copy, and other operations on the non-preset entities of the OCR recognition results 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. The system will recommend an application or service list based on the target text so that the user can select the target application or target service and paste the target text into the target application or target service. Among them, the application can also be referred to as an application program, and the application corresponding to the target application and the target service can also be referred to as the application that the system starts after the user clicks on the recommended icon. The application currently displaying the image can also be referred to as the first application.

用户选中的目标文字可能存在如下几种情况:第一、包含单个预设实体,第二、包含多个具有关联关系的预设实体,第三、包含多个不具有关联关系的预设实体,第四、不包含预设实体。根据目标文字中包含的预设实体的情况不同,系统会采用不同的推荐方式进行应用或者服务列表推荐。目标文字中包含单个预设实体的情况下,系统推荐单个应用或者服务列表;目标文字中包含多个具有关联关系的预设实体的情况下,系统推荐单个应用或者服务列表;目标文字中包含多个不具有关联关系预设实体的情况下,系统推荐任务栏又可称为推荐应用列表,目标文字中不包含预设实体的情况下,系统推荐任务栏。其中,任务栏中包含所推荐的多个应用。各种情况下进行应用或者服务列表的推荐流程及具体推荐内容,详见下文中的相关描述。The target text selected by the user may be in the following situations: first, it contains a single preset entity; second, it contains multiple preset entities with an associated relationship; third, it contains multiple preset entities that are not associated; fourth, it does not contain a preset entity. Depending on the preset entities contained in the target text, the system will use different recommendation methods to recommend application 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 an associated relationship, the system recommends a single application or service list; when the target text contains multiple preset entities that are not associated, the system recommends a taskbar, which can also be called a recommended application list. When the target text does not contain a preset entity, the system recommends a taskbar. Among them, the taskbar contains multiple recommended applications. For the recommendation process and specific recommendation content of the application or service list in various situations, please see the relevant description below.

本申请实施例中的应用交互方法可以应用于电子设备。该电子设备例如可以是手机、平板等。图1为示例性示出的电子设备100的结构示意图。应该理解的是,图1所示电子设备100仅是电子设备的一个范例,并且电子设备100可以具有比图中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图1中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。The application interaction method in the embodiment of the present application can be applied to an electronic device. The electronic device can be, for example, a mobile phone, a tablet, etc. FIG. 1 is a schematic diagram of the structure 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, may combine two or more components, or may 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等。1 , the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a 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, a 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-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.

图2为示例性示出的本申请实施例的电子设备100的软件结构框图。FIG. 2 is a block diagram showing a software structure of the electronic device 100 according to an embodiment of the present application.

电子设备100的分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层、应用程序框架层、安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture of the electronic device 100 divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer.

应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.

如图2所示,应用程序包可以包括传感器、相机、图库、OCR引擎、应用推荐模块、三方应用、截图等应用程序。As shown in FIG. 2 , the application package may include applications such as sensors, cameras, gallery, OCR engine, application recommendation module, third-party applications, and screenshots.

其中,OCR引擎可用于对图片进行OCR识别,并对OCR识别结果中的预设实体进行识别;图片可以是截屏应用所得到的截屏图片,也可以是相机应用拍照所得的照片,还可以是图库中存储的图片,等等,本申请实施例对图片来源不做限制。Among them, the OCR engine can be used to perform OCR recognition on images and identify preset entities in the OCR recognition results; the image can be a screenshot image obtained by a screenshot application, a photo taken by a camera application, or a picture stored in a gallery, etc. The embodiment of the present application does not limit the source of the image.

应用推荐用于根据目标文字内容,预测与目标文字内容相关的应用或者服务列表,并将预测的应用推荐给用户。三方应用用于提供图片或者提供可选择、可复制的文本信息。Application recommendation is used to predict the application or service list related to the target text content based on the target text content, and recommend the predicted application to the user. Third-party applications are used to provide pictures or selectable and copyable text information.

应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

如图2所示,应用程序框架层可以包括视图系统、资源管理器、窗口管理器、活动管理器等。As shown in FIG. 2 , 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, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying pictures.

资源管理器为应用程序提供各种资源,比如本地化字符串,图标、图片、布局文件、视频文件等等。The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小、判断是否有状态栏、锁定屏幕、截取屏幕等。The window manager is used to manage window programs. The window manager can obtain the display screen size, 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 and the navigation fallback function. It is responsible for creating the Android main thread and maintaining the life cycle of each application.

Android runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓(Android)的核心库。The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the core library of Android.

应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application 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, etc.

表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provide 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 driver and sensor driver.

可以理解的是,图2示出的软件结构中的层以及各层中包含的部件,并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的层,以及每个层中可以包括更多或更少的部件,本申请不做限定。It is understandable that the layers in the software structure shown in FIG2 and the components contained 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 in the figure, and each layer may include more or fewer components, which is not limited in the present application.

为描述方便,本文后续将电子设备简称为设备。应当理解,本文中所提及的设备均可具有与前述实施例中的电子设备100相同的硬件结构(例如图1所示的硬件结构)以相同的软件结构(例如图2所示的软件结构)。For ease of description, the electronic device is referred to as a device in the following text. It should be understood that the devices mentioned in this text can have the same hardware structure (such as the hardware structure shown in Figure 1) and the same software structure (such as the software structure shown in Figure 2) as the electronic device 100 in the above embodiment.

本申请实施例中分别从用户选中的目标文字包含单个实体、多个实体以及不包含实体这三种场景为例,对本申请的应用推荐方法的具体流程进行说明。In the embodiments of the present application, the specific process of the application recommendation method of the present application is explained by taking three scenarios as examples, namely, the target text selected by the user contains a single entity, multiple entities, and does not contain an entity.

下面结合图3至图6,对用户选中的目标文字包含单个实体时,进行应用推荐的流程进行说明。图6为示例性示出的基于图片中的单个实体进行应用推荐时,用户与设备间交互的时序流程图,该应用推荐流程包括如下步骤:The following is a description of the process of recommending applications when the target text selected by the user contains a single entity, in conjunction with Figures 3 to 6. Figure 6 is an exemplary sequential flow chart of the interaction between the user and the device when recommending applications based on a single entity in a picture. The application recommendation process includes the following steps:

S1:用户点击图库中的图片a。S1: The user clicks on picture a in the gallery.

S2:设备响应于点击图片a,在设备屏幕上显示图片a。S2: In response to clicking on picture a, the device displays picture a on the device screen.

用户可以在多种情况下执行点击图片的操作,从而在设备屏幕上显示图片。这里的设备例如可以是手机、平板等。本文中以设备为手机为例进行说明。应当理解的是,本文中以手机为例所进行的说明同样适用于其他非手机的设备,例如平板等。The user can perform the operation of clicking on the picture in various situations, so that the picture is displayed on the device screen. The device here can be, for example, a mobile phone, a tablet, etc. This article takes the mobile phone as an example for description. It should be understood that the description of the mobile phone as an example in this article is also applicable to other non-mobile devices, such as a tablet, etc.

S3:设备检测图片a中是否存在文字,如果存在文字,获取图片a的OCR识别结果。S3: The device detects whether there is text in image a. If there is text, the OCR recognition result of image a is obtained.

例如,图3为对图库中的图片进行OCR识别的界面示意图。请参见图3,在一个示例性的实现方式中,用户可以点击手机的主界面中的“图库”图标(请参见图3的(a)图),点击“图库”图标后,进入到“图库”应用的内部界面,此时的界面显示如图3的(b)图所示。请参见3的(b)图,“图库”中包括图片a、图片1、图片2、图片3、图片n等图片。用户可以继续在图3的(b)图所示界面上进行点击图片的操作,例如,假设用户点击了图片a。For example, FIG3 is a schematic diagram of an interface for performing OCR recognition on images in a gallery. Referring to FIG3, in an exemplary implementation, a user can click on the "Gallery" icon in the main interface of a mobile phone (see FIG3 (a)). After clicking on the "Gallery" icon, the user enters the internal interface of the "Gallery" application, and the interface display at this time is shown in FIG3 (b). Referring to FIG3 (b), the "Gallery" includes pictures such as picture a, picture 1, picture 2, picture 3, and picture n. The user can continue to click on pictures on the interface shown in FIG3 (b). For example, assuming that the user clicks on picture a.

此时,手机响应于点击图片a,在手机屏幕上显示图片a,如图3(c)图所示。图3中的(a)图~(c)图以从图库进入到图片显示界面为例进行了说明,需要说明的是,本申请并不限制进入到图片显示界面的方式。例如,在本申请其他实施例中,还可以通过截屏后点击截屏图片的方式进入到图片显示界面,还可以通过在浏览网页过程中点击网页中的图片的方式进入到图片显示界面,还可以通过社交通信软件聊天过程中点击聊天界面中的图片的方式进入到图片显示界面,还可以通过在朋友圈、公众号发文中点击图片的方式进入到图片显示界面等等,此处不再一一列举。At this time, the mobile phone responds to clicking on picture a and displays picture a on the mobile phone screen, as shown in Figure 3(c). Figures (a) to (c) in Figure 3 are explained by taking the example of entering the picture display interface from the gallery. It should be noted that the present application does not limit the method of entering the picture display interface. For example, in other embodiments of the present application, you can also enter the picture display interface by clicking on the screenshot image after taking a screenshot, you can also enter the picture display interface by clicking on the picture in the web page while browsing the web page, you can also enter the picture display interface by clicking on the picture in the chat interface during the chat of the social communication software, you can also enter the picture display interface by clicking on the picture in the circle of friends or the public account post, etc., which will not be listed one by one here.

请继续参见图3,在显示图片a后,本申请实施例的应用推荐方法进一步检测图片a中是否存在文字。如果图片a中存在文字,获取图片a的OCR识别结果。如果图片a中不存在文字,本申请实施例的应用推荐方法流程结束。Please continue to refer to FIG. 3. After displaying picture a, the application recommendation method of the embodiment of the present application further detects whether there is text in picture a. If there is text in picture a, the OCR recognition result of picture a is obtained. If there is no text in picture a, the application recommendation method process of the embodiment of the present application ends.

本申请实施例中,设备可以通过多种方式来获取图片a的OCR识别结果。In the embodiment of the present application, the device can obtain the OCR recognition result of image a in a variety of 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 can 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 storage 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 on picture a, and obtain the OCR recognition result of picture a from the output data of the OCR engine.

其中,OCR引擎用于对图片进行OCR识别,输出图片的OCR识别结果。Among them, the OCR engine is used to perform OCR recognition on the image and output the OCR recognition result of the image.

S4:如果获取到图片a的OCR识别结果,在设备屏幕上弹出OCR按钮。S4: If the OCR recognition result of image a is obtained, an OCR button pops up on the device screen.

本步骤中设备屏幕上所弹出的OCR识别按钮处于未开启状态。此时的设备界面请参见图3的(d)图。在用户未点击图3的(d)图中OCR识别按钮的情况下,图片a中的文字等字符是不可选择、不可复制的。In this step, the OCR recognition button popped up on the device screen is in an unactivated state. Please refer to FIG3 (d) for the device interface at this time. If the user does not click the OCR recognition button in FIG3 (d), the text and other characters in the image a cannot be selected or copied.

这时,用户可以点击OCR按钮,以触发后续高亮显示OCR识别结果以及对OCR识别结果中包含的预设实体添加下划线的操作。At this time, the user can click the OCR button to trigger the subsequent operation of highlighting the OCR recognition result and underlining the preset entity included 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 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 and triggered the system to recommend applications. At this time, the device can actively stop displaying the OCR button on the device screen, that is, the OCR recognition button disappears from the interface of picture a. The preset time can be flexibly set by those skilled in the art, for example: set to 2 seconds, 3 seconds, 5 seconds, etc., and there is no specific limitation on this in the embodiments of the present application.

在一个示例性的实现过程中,如果用户没有从OCR识别结果中选中目标文字、触发系统进行应用推荐的需求,用户也可以点击OCR按钮外的任意一处。此时,设备检测到用户对OCR按钮外的任意一处的点击操作,可以在设备屏幕上停止显示OCR按钮。这种方式中,设备基于用户操作被动停止显示OCR按钮。In an exemplary implementation process, if the user does not select the target text from the OCR recognition results and trigger the system to recommend an application, the user can also click anywhere outside the OCR button. At this time, the device detects the user's click operation on any place outside the OCR button and can stop displaying the OCR button on the device screen. In this way, the device passively stops displaying the OCR button based on the user's operation.

当然,在另一个示例性的实现过程中,如果用户无从OCR识别结果中选中目标文字、触发系统进行应用推荐的需求,设备还可以将OCR按钮一直保持在未开启状态。Of course, in another exemplary implementation process, if the user has no need to select target text from the OCR recognition results and trigger the system to make application recommendations, the device can also keep the OCR button in an unactivated state.

S5:用户点击OCR按钮。S5: The user clicks the OCR button.

设备检测到用户对OCR按钮的点击操作,可以确认用户有从OCR识别结果中选中目标文字触发系统进行应用推荐的需求。The device detects the user's click operation on the OCR button, and can confirm that the user has a need to select target text from the OCR recognition results to trigger the system to make application recommendations.

对OCR按钮的点击操作并不局限于图3d中所示的单击操作,还可以为双击或长按操作等。The click operation on the OCR button is not limited to the single click operation shown in FIG. 3 d , and may also be a double click or a 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 image a on the device screen and adds a downward line to the recognized preset entity.

系统中管理有预设实体信息,预设实体信息可以以列表的形式存储。预设实体可以包括但不限于:姓名、地址、码、身份证号码、电话号码、快递单号、网址、邮箱地址、外文、淘口令或者抖音口令等。预设实体可以由本领域技术人员灵活地增删或者修改。The system manages preset entity information, which can be stored in the form of a list. The preset entity may include but is not limited to: name, address, code, ID number, phone number, express number, website, email address, foreign language, Taobao password or Douyin password, etc. The preset entity can be flexibly added, deleted or modified by those skilled in the art.

用户点击OCR按钮后的界面请参见图3的(e)图。此时,OCR识别结果高亮显示,并且在预设实体下方添加有下划线。图3的(e)图中所显示的OCR识别结果中的字符为可选择、可点击、可复制的状态。Please refer to Figure 3 (e) for the interface after the user clicks the OCR button. At this time, the OCR recognition result is highlighted and an underline is added under the preset entity. The characters in the OCR recognition result shown in Figure 3 (e) are selectable, clickable, and copyable.

需要说明的是,图3(e)图中仅是示例性的显示OCR识别结果以及对OCR识别结果中的预设实体进行突出显示的方式。在实际实现过程中,本领域技术人员可以灵活设置,本申请对于OCR识别结果的显示方式不作限制。It should be noted that FIG. 3(e) is only an exemplary method of displaying the OCR recognition result and highlighting the preset entity in the OCR recognition result. In the actual implementation process, those skilled in the art can flexibly set it, and this application does not limit the display method 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 border can be added to the characters in the OCR recognition result and filled with a background color different from the image 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", "Tel: 151xxxxxx", and "xx Building, xx Road, Haidian District, Beijing". These three preset entities are underlined to prompt the user which of the preset entities in the OCR recognition results are recognized. It should be noted that Figure 3(e) only uses the example of underlining the preset entities to emphasize the preset entities. In the actual implementation process, the device can display in other preset emphasized display methods. For example, the device can highlight the entity with a color that is different from non-preset entities, or set a background color for the entity that is different from other non-preset entity texts in the OCR recognition results, etc. The present application does not limit the emphasized display method of preset entities in the OCR recognition results.

实体识别方法可基于NLU(Natural Language Understanding,自然语言理解)技术实现。NLU系统可设置在OCR引擎中,也可以单独设置在其他功能模块中,本申请实施例中以NLU系统设置在OCR引擎中为例进行说明。The entity recognition method can be implemented based on NLU (Natural Language Understanding) technology. The NLU system can be set in the OCR engine or 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 explanation.

NLU系统模仿人类理解语言的基本方式,即断句、分词等,将文本切割为一系列具有语义、语法的单元。当然也有一些切分方式不符合人类的直觉,比如N-gram算法、字节对编码等切分方法,切分成的字符串单元不是词语。为此通常用“token”这个单词来表示文本切分得到的字符串单元。The NLU system imitates the basic way humans understand language, i.e., sentence segmentation and word segmentation, to divide text into a series of units with semantics and grammar. Of course, some segmentation methods do not conform to human intuition, such as the N-gram algorithm, byte pair encoding and other segmentation methods, and the string units obtained by segmentation are not words. For this reason, the word "token" is usually used to represent the string units obtained by text segmentation.

NLU系统会基于token序列,使用词向量空间模型、分布式表示模型等文本表示模型,得到一个数值向量或者矩阵。这个矩阵就是文本的数值化表示。人工智能领域的很多算法只能处理数值类型的数据。而有些算法,比如基于词袋模型的文本相似度计算方法,可以直接处理字符串序列,也可以应对以数值向量形式文本表示。因此,大家经常在一个系统内使用指数向量或矩阵作为统一的文本表示形式。NLU系统就会基于文本表示数据,使用分类算法、序列标注方法等等,计算得到文本中的“关键信息”,比如实体、三元组、意图、事件等等。本申请实施例中,可将OCR识别结果作为待切分文本,采用NLU系统对待切分文件进行识别,识别出OCR识别结果中包含的预设实体。Based on the token sequence, the NLU system uses a text representation model such as a word vector space model and a distributed representation model 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 process 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 text representation form in a system. The NLU system will use classification algorithms, sequence labeling methods, etc. based on the text representation data to calculate the "key information" in the text, such as entities, triples, intentions, events, etc. 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 to identify the preset entities 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 image a is displayed in the interface, the user can select a preset entity by clicking any position of the preset entity or the corresponding underline of the preset entity.

S8:设备响应于对预设实体的选中操作,依据被选中的预设实体推荐单个应用或服务列表。S8: In response to the selection operation of the preset entity, the device recommends a single application or a service list according to the selected 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. If the preset entity selected by the user is different, the single application or service list recommended based on the preset entity is different.

系统中可预先设置预设实体与应用、预设实体与服务列表之间的对应关系,该对应关系可以以列表的形式或者其他形式存储在存储区域中,为便于后续描述可以将该列表命名为推荐规则列表,需要说明的是,本申请实施例中对包含预设实体与应用、预设实体与服务列表之间的对应关系的列表的具体名称不做限定。系统在确定用户选中的单个预设实体的情况下,可从推荐列表中查询用户选中的预设实体对应的应用或者服务列表进行推荐显示。The system can pre-set the correspondence between the preset entity and the application, the preset entity and the service list, and the correspondence can be stored in the storage area in the form of a list or other forms. For the convenience of subsequent description, the list can be named as a recommendation rule list. It should be noted that the specific name of the list containing the correspondence between the preset entity and the application, the preset entity and the service list is not limited in the embodiment of the present application. When the system determines the single preset entity selected by the user, it can query the application or service list corresponding to the preset entity selected by the user from the recommendation list for recommendation display.

请参照图4A,图4A为示例性示出的一种基于单预设实体进行应用推荐的界面示意图,如图4A(a)所示,用户点击“北京市海淀区××路××大厦”这一实体,系统判定用户选中的该预设实体为地址,从推荐规则列表中查找地址对应的推荐应用,查找到推荐应用为地图应用,系统可从设备已安装的各地图应用中选择一个或多个地图应用进行推荐。一种示例性的显示单个地图应用的界面示意图如图4A(b)所示,在界面的右侧悬浮显示有推荐的单个应用的图标“地图应用A”401,用户可点击“地图应用A”触发系统打开地图应用A,后续在地图应用A中添加“北京市海淀区××路××大厦”,查看导航路线。单个应用的图标可以以悬浮球的形式进行显示,在悬浮球中包含所推荐的应用的图标。Please refer to FIG. 4A , which is a schematic diagram of an interface for recommending applications based on a single preset entity. As shown in FIG. 4A (a), the user clicks on the entity “×× Road, ×× Building, Haidian District, Beijing”, and the system determines that the preset entity selected by the user is an address, and searches for the recommended application corresponding to the address from the recommendation rule list. The recommended application is found to be a map application, and the system can select one or more map applications from the map applications installed on the device for recommendation. An exemplary schematic diagram of an interface for displaying a single map application is shown in FIG. 4A (b), where the icon “Map Application A” 401 of a recommended single application is displayed in a floating manner on the right side of the interface. The user can click on “Map Application A” to trigger the system to open Map Application A, and then add “×× Road, ×× Building, Haidian District, Beijing” to Map Application A to view the navigation route. The icon of a single application can be displayed in the form of a floating ball, and the floating ball contains the icon of the recommended application.

系统在确定需推荐地图应用,从设备中安装的各地图应用中查找一个地图应用进行最终推荐时,可从设备中以安装的各地图应用中随机选择一个地图应用进行最终推荐;还可以按照用户对各地图应用的使用频率,选择一个使用频率最高的地图应用进行最终推荐,本申请实施例中对此不作具体限制。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 may randomly select a map application from the map applications installed in the device for final recommendation; it may also select a map application with the highest frequency of use for final recommendation based on the frequency of use of each map application by the user. There is no specific limitation on this in the embodiments of the present application.

需要说明的是,图4A(b)中仅是示例性示出的一种推荐单个应用的界面示意图,多推荐的单个应用的图标并不局限于显示在界面的右侧,还可以显示在界面的左侧、中间或者其他任意适当的位置处。单个应用的图标还可以显示在任务栏中,对于任务栏的相关说明,参照下文中进行多应用推荐时对任务栏的相关介绍即可。It should be noted that FIG. 4A(b) is only an exemplary interface diagram for recommending a single application. The icons of multiple recommended single applications are not limited to being displayed on the right side of the interface, but can also be displayed on the left side, in the middle, or in any other appropriate location. The icons of single applications can also be displayed in the taskbar. For the relevant description of the taskbar, please refer to the relevant introduction to the taskbar when recommending multiple applications below.

请参照图4B,图4B为示例性示出的又一种基于单预设实体进行应用推荐的界面示意图,如图4B(a)所示,用户点击“电话:151xxxxxxx”这一预设实体,系统判定用户选中的该预设实体为电话号码,从推荐规则列表中查找电话号码对应的推荐应用,查找到电话号码对应推荐第一服务列表,第一服务列表中包括:呼叫电话服务选项、发送消息服务选项、添加到通讯录服务选项以及拷贝服务选项。在查找到第一服务列表后,系统在界面中推荐第一服务列表,一种示例性的显示第一服务列表的界面示意图如图4B(b)所示,在界面的右侧悬浮显示有推荐的第一服务列表402,第一服务列表中包括:“呼叫电话”、“发送消息”、“添加到通讯录”以及“拷贝”服务选项,用户可点击任意一个服务选项触发系统跳转至该服务选项对应的目标界面中,用户可手动或者由系统自动将“电话:151xxxxxxx”添加至目标界面中的目标输入框中。所推荐的服务列表可以以悬浮窗的形式显示,悬浮窗中显示所推荐的各服务选项。Please refer to FIG. 4B, which is another exemplary interface diagram for recommending applications based on a single preset entity. As shown in FIG. 4B (a), the user clicks on the preset entity "Phone: 151xxxxxxx", and the system determines that the preset entity selected by the user is a phone number, and searches for the recommended application corresponding to the phone number from the recommendation rule list, and finds the recommended first service list corresponding to the phone number. The first service list includes: call phone service options, send message service options, add to address book service options, and copy service options. After finding the first service list, the system recommends the first service list in the interface. An exemplary interface diagram for displaying the first service list is shown in FIG. 4B (b). The recommended first service list 402 is displayed in a floating manner on the right side of the interface. 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 the target interface corresponding to the service option. The user can manually or the system can automatically add "Phone: 151xxxxxxx" to the target input box in the target interface. The recommended service list can be displayed in the form of a floating window, and the recommended service options are displayed in the floating window.

图4A以用户选中图片的OCR识别结果中的地址,推荐单个地图应用,图4B以用户选中图片的OCR识别结果中的电话号码,推荐第一服务列表为例进行说明的说明。下面参照图5示例性示出的一种基于淘口令进行应用推荐的界面示意图,对用户选中图片的OCR识别结果中的淘口令,系统推荐淘宝应用的过程进行说明。Figure 4A uses an address in the OCR recognition result of a picture selected by a user to recommend a single map application, and Figure 4B uses a phone number in the OCR recognition result of a picture selected by a user to recommend a first service list as an example. The following is a schematic diagram of an interface for recommending applications based on a Taobao password, with reference to Figure 5, to illustrate the process of the system recommending Taobao applications when a Taobao password in the OCR recognition result of a picture selected by a user.

请参照图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 performing OCR recognition on the image in FIG3 . After the OCR engine performs OCR recognition on the image containing the Taobao password “Xixi:/啊FfthxKgYVSh微史高治的光辉岁月全套…更多更多”, as shown in FIG5(a), the OCR recognition result is highlighted in the interface and an underline is added under the preset entity “Xixi:/啊FfthxKgYVSh微史高治的光辉岁月全套…更多更多”. As shown in FIG5(b), the user clicks “Xixi:/啊FfthxKgYVSh微史高治光辉岁月全套…更多更多”, and the terminal receives the instruction that the user has selected “Xixi:/啊FfthxKgYVSh微史高治光辉岁月全套…更多更多”, determines that the target text selected by the user is a Taobao password, searches the list of applications or services corresponding to the Taobao password from the list of recommended rules, and determines that the Taobao password corresponds to the Taobao application through the search. Therefore, the system recommends the Taobao application in the interface. An exemplary interface diagram for displaying the recommended Taobao application is shown in FIG5(c). A “Taobao application” icon is displayed in suspension on the right side of the interface. The user can click the “Taobao application” icon to trigger the system to jump to the Taobao application. The user can manually or the system can 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 exemplary illustrations of the correspondence between three entities and the application or service list. The specific correspondence included in the recommendation rule list can be flexibly set by those skilled in the art. An exemplary correspondence included in the recommendation rule list may include:

地址推荐单个地图类应用、外文推荐单个翻译类应用、快递单号推荐购物类应用、淘口令推荐淘宝应用、抖音口令推荐抖音应用等。The address recommends a single map application, the foreign language recommends a single translation application, the express delivery number recommends shopping applications, the Taobao password recommends Taobao applications, the Douyin password recommends Douyin applications, etc.

电话号码对应推荐第一服务列表,可以包括但不限于:“呼叫电话”、“发送消息”、“添加到通讯录”以及“拷贝”服务选项。身份证号码对应推荐第二服务列表,可以包括但不限于“添加到通讯录”“、拷贝”、“分享”以及“上一个切换应用”服务选项。The first service list recommended for the phone number may include but is not limited to the service options of "Call Phone", "Send Message", "Add to Contacts" and "Copy". The second service list recommended for the ID card number may include but is not limited to the service options of "Add to Contacts", "Copy", "Share" and "Previous Switch App".

码可以包括但不限于支付码、身份识别二维码等,码对应推荐第三服务列表,可以包括但不限于:“在xxx应用中打开”、“在浏览器中打开”、“拷贝链接”、“分享”以及“添加到备忘录”等服务选项。网址对应推荐第四服务列表,可以包括但不限于:“打开链接”、“添加到链接列表”、“拷贝链接”以及“分享”等服务选项。邮箱地址对应推荐第五服务列表,可以包括但不限于:“新建邮箱”、“拷贝”以及“分享”等服务选项。The code may include but is not limited to payment code, identity recognition QR code, etc. The code corresponds to the recommended third service list, which may include but is not limited to: "Open in xxx application", "Open in browser", "Copy link", "Share" and "Add to memo" and other service options. The URL corresponds to the recommended fourth service list, which may include but is 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 is not limited to: "Create a new email", "Copy" and "Share" and other service options.

本申请实施例提供的基于用户选中的单个预设实体进行应用或服务列表推荐的方式,一方面,系统自动对图片中的文本进行OCR识别后,将OCR识别结果以可选定、复制的状态显示给用户,用户可直接选定目标文字,以便后续将目标文字添加至目标应用或目标服务中的对应输入框中,无需用户手动录入目标文字,操作便捷且可避免用户编辑出错的问题。第二方面,用户在选中单个预设实体后,系统基于用户选中的单个预设实体进行单个应用或者服务列表,用户点击推荐的应用或服务列表中的服务选项即可跳转到目标界面,无需用户拷贝目标文字后,从图库中离开手动执行繁琐的操作进入到目标界面。The embodiment of the present application provides a method for recommending a list of applications or services 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 image, the OCR recognition result is displayed to the user in a selectable and copyable state. The user can directly select the target text so that the target text can be subsequently added to the corresponding input box in the target application or target service. The user does not need to manually enter the target text, which is convenient to operate and can avoid the problem of user editing errors. On the other hand, after the user selects a single preset entity, the system makes a single application or service list based on the single preset entity selected by the user. The user can jump to the target interface by clicking on the service option in the recommended application or service list. The user does not need to copy the target text and leave the gallery to manually perform tedious operations to enter the target interface.

下面结合图7至图10,对用户选中的目标文字包含多个预设实体时,进行应用推荐的流程进行说明。图10为示例性示出的基于图片中的多个预设实体进行应用推荐时用户与设备间交互的时序流程图,该应用推荐流程包括如下步骤:The following is a description of the process of recommending applications when the target text selected by the user contains multiple preset entities, in conjunction with Figures 7 to 10. Figure 10 is a time sequence flow chart of the interaction between the user and the device when recommending applications based on multiple preset entities in a picture, and the application recommendation process includes the following steps:

S1:用户点击图库中的图片b。S1: The user clicks on image b in the gallery.

S2:设备响应于点击图片b,在设备屏幕上显示图片b。S2: In response to clicking on picture b, the device displays picture b on the device screen.

S3:设备检测图片b中是否存在文字,如果存在文字,获取图片b的OCR识别结果。S3: The device detects whether there is text in image b. If there is text, the OCR recognition result of image b is obtained.

S4:如果获取到图片b的OCR识别结果,在设备屏幕上弹出OCR按钮。S4: If the OCR recognition result of image b is obtained, an OCR button pops up on the device screen.

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 image b on the device screen and adds a downward line to the recognized preset entity.

图10中所示的S1至S6为对图库中的图片b进行OCR识别、对OCR识别结果中预设实体的识别以及显示OCR识别结果的过程。对于该过程,参照对图6中的S1至S6的具体说明即可,在此不再赘述。S1 to S6 shown in Figure 10 are the process of performing OCR recognition on the image b in the gallery, recognizing the preset entity in the OCR recognition result, and displaying the OCR recognition result. For this process, refer to the specific description of S1 to S6 in Figure 6, which will not be repeated here.

S7:在OCR识别结果中点击选中多个预设实体。S7: Click to select multiple preset entities in the OCR recognition results.

请参照图7,图7为示例性示出的一种基于用户先后两次选中的多个关联预设实体进行应用推荐时的界面变化示意图,显示有图片b的界面示意图如图7(a)所示,在界面中图片b的OCR识别结果高亮显示且在预设实体“收件人:xxx”、“电话:151xxxxxx”、“北京市海淀区xx路xx大厦”下方添加下划线。用户可通过手指在屏幕中控制光标选中多个预设实体,如图7(b)所示,被用户手指选中的预设实体的起始位置与截止位置处均有光标,且被选中的预设实体的背景填充色发生了变化,以表示被光标圈起的预设实体已被选中,在用户完成预设实体选中动作后,如图7(b)所示,系统显示功能菜单栏,功能菜单栏中包括“全选”、“剪切”以及“复制”等功能选项。图7(b)中被选中的目标文字可视为第一文本。Please refer to FIG. 7 , which is a schematic diagram showing an exemplary interface change when an application is recommended based on multiple associated preset entities selected twice by the user. The schematic diagram of the interface showing picture b is shown in FIG. 7(a). In the interface, the OCR recognition result of picture b is highlighted and underlined under the preset entities "Recipient: xxx", "Tel: 151xxxxxx", and "xx Building, xx Road, Haidian District, Beijing". The user can use his finger to control the cursor on the screen to select multiple preset entities. As shown in FIG. 7(b), there are cursors at the starting position and the ending position of the preset entity selected by the user's finger, and the background fill color of the selected preset entity changes to indicate that the preset entity circled by the cursor has been selected. After the user completes the preset entity selection action, as shown in FIG. 7(b), the system displays a function menu bar, which includes function 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 method of selecting multiple preset entities. In actual implementation, the user can also select multiple preset entities by clicking on each preset entity in turn within the second preset time. The second preset time is a shorter time, such as 1 second or 1.5 seconds.

S8:设备响应于对多个预设实体的选中操作,判断多个预设实体是否可组合。S8: In response to the selection operation on the multiple preset entities, the device determines whether the multiple preset entities are combinable.

系统识别目标文字中包含的预设实体的个数,识别出包含多个预设实体例如图7(b)中所示包含2个预设实体时,判定目标文字中包含的多个预设实体是否具有关联关系,在判定结果为其具有关联关系的情况下,基于具有关联关系的各预设实体确定推荐的单个应用。判定预设实体是否可组合即判定预设实体是否具有关联关系,若多个预设实体具有关联关系,则确定可组合;反之,确定不可组合。The system identifies the number of preset entities contained in the target text. When it identifies that the target text contains multiple preset entities, such as two preset entities as shown in FIG7(b), it determines whether the multiple preset entities contained in the target text have an associated relationship. If the determination result is that the target text has an associated relationship, a recommended single application is determined based on each preset entity with an associated relationship. Determining whether the preset entities are combinable is to determine whether the preset entities have an associated relationship. If the multiple preset entities have an associated relationship, it is determined that the preset entities are combinable; otherwise, it is determined that the preset entities are not combinable.

系统中存储有具有预设实体间的关联关系,预设实体间的关联关系可存储在关联关系列表中,每个关联关系包括多个预设实体以及该关联关系推荐的应用类型。系统对用户选中的目标文字进行预设实体识别后,确定目标文字中包含的N个预设实体,从关联关系列表中查找N个预设实体匹配的关联关系,若存在确定这N个预设实体为可关联预设实体;反之若不存在,确定这N个预设实体为不可关联预设实体。其中,N为大于等于2的整数。The system stores associations between preset entities, which can be stored in an association list. Each association includes multiple preset entities and the application type recommended by the association. After the system performs preset entity recognition on the target text selected by the user, it determines the N preset entities contained in the target text, searches for associations matching the N preset entities from the association list, and if they exist, determines that the N preset entities are associable preset entities; otherwise, if they do not exist, determines that the N preset entities are non-associable preset entities. Wherein, N is an integer greater than or equal to 2.

关联关系列表可以与推荐规则列表合并,也可以单独存在。关联关系列表中包含的具体内容可以由本领域技术人员灵活设置、修改,本申请实施例中对此不做具体限制。例如:关联关系列表中可包括:第一关联关系:姓名-电话-地址-购物类应用,第二关联关系:姓名-身份证号码-刷票小程序等。The association list can be combined with the recommendation rule list or exist separately. The specific content included in the association list can be flexibly set and modified by those skilled in the art, and there is no specific limitation on this in the embodiments of the present application. For example, the association list may include: the first association: name-phone number-address-shopping application, the second association: 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 task bar 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 associable preset entities, the recommended application type corresponding to the association relationship between the N preset entities is searched from the association relationship list. After the application type is determined, a target application can be selected from the applications of the application type installed in the device for recommendation.

筛选规则可由本领域技术人员根据实际需求进行设置,例如:可设置为随机筛选、依据应用使用频率筛选等。The screening rules can be set by those skilled in the art according to actual needs, for example, they can be set to random screening, screening based on application usage frequency, etc.

继续参照图7(c)由于“收件人:xxx”、“电话:151xxxxxx”这2个预设实体被系统判定为具有关联关系的预设实体,通过查找关联关系列表可确定这2个预设实体对应电话应用,因此系统在推荐时仅显示电话应用图标701。用户可点击电话应用图标701进入电话应用的界面,拨打电话。如图7(c)所示,在完成单个应用推荐后,用户选中的目标文字依然处于选中高亮显示并且在预设实体下方添加有下划线,以便用户后续再重新选择预设实体触发系统进行下一轮应用推荐。Continuing to refer to FIG7(c), since the two preset entities "Recipient: xxx" and "Phone: 151xxxxxx" are determined by the system to be preset entities with an associated relationship, it can be determined that these two preset entities correspond to the phone application by searching the associated relationship list, 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 FIG7(c), after completing the recommendation of a single application, the target text selected by the user is still highlighted and underlined under the preset entity, so that the user can reselect the preset entity later to trigger the system to make the next round of application recommendations.

用户在选定“收件人:xxx”、“电话:151xxxxxx”这2个预设实体触发系统进行应用推荐后,若想调整选中的目标文字触发系统重新进行应用推荐,可以如图7(d)中所示手动调节光标调整选中的目标文字,将选中的目标文字调整为“收件人:xxx”、“电话:151xxxxxx”、“北京市海淀区xx路xx大厦”,在调整选中的目标文字的过程中上一次推荐的电话应用图标701消失。本具体实例中“北京市海淀区xx路xx大厦”为用户选中的新增文本可视为第二文本。After the user selects the two preset entities "Recipient: xxx" and "Tel: 151xxxxxx" to trigger the system to recommend applications, if the user wants to adjust the selected target text to trigger the system to recommend applications again, the user can manually adjust the cursor to adjust the selected target text as shown in FIG7(d), and adjust the selected target text to "Recipient: xxx", "Tel: 151xxxxxx", "xx Building, xx Road, Haidian District, Beijing". During the process of adjusting the selected target text, the last recommended phone application icon 701 disappears. In this specific example, "xx Building, xx Road, Haidian District, Beijing" is the newly added text selected by the user and can be regarded as the second text.

继续参照图7(e)由于“收件人:xxx”、“电话:151xxxxxx”、“北京市海淀区xx路xx大厦”这三个预设实体被系统判定为具有关联关系的预设实体,通过查找关联关系列表可确定这三个预设实体对应购物类应用,因此系统在推荐时仅推荐单个购物类应用例如“购物类应用B”701。Continuing with reference to FIG7(e), since the three preset entities “Recipient: xxx”, “Tel: 151xxxxxx”, and “xx Building, xx Road, Haidian District, Beijing” are determined by the system to be preset entities with associated relationships, it can be determined that the three preset entities correspond to shopping applications by searching the associated relationship list. Therefore, the system only recommends a single shopping application, such as “Shopping Application B” 701.

如图7所示,本申请提供的基于多个可关联的预设实体进行应用推荐的方式,无论用户选定2个还是3个甚至更多个预设实体,选中的预设实体为可关联的情况下,系统进推荐单个应用。As shown in FIG. 7 , the present application provides a method for recommending applications based on multiple associable preset entities. Regardless of whether the user selects 2, 3 or even more preset entities, if the selected preset entities are associable, the system recommends a single application.

图7中所示的该种在判定用户选中的目标文字包含多个可关联的预设实体时,推荐单个应用程序的方式,所推荐的应用与用户期望匹配度高,用户直接点击推荐的应用图标进入目标应用即可,无需用户从当前界面中退出,再从桌面中手动查找目标应用后进入目标应用,操作便捷。The method shown in Figure 7 recommends a single application when it is determined that the target text selected by the user contains multiple associable preset entities. The recommended application has a high degree of match with the user's expectations. The user can directly click the recommended application icon to enter the target application. The user does not need to exit the current interface and then manually search for the target application from the desktop to enter the target application. The operation is convenient.

请参照图8,图8为示例性示出的又一种基于用户先后两次选中的多个预设实体进行应用推荐时的界面变化示意图。Please refer to FIG. 8 , which is a schematic diagram showing another exemplary interface change when application recommendations are made based on multiple preset entities selected twice by the user.

显示有图片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 the image b is shown in FIG8(a). In the interface, the OCR recognition result of the image b is highlighted and underlined under the preset entities "Recipient: xxx", "Telephone: 151xxxxxx", and "xx Building, xx Road, Haidian District, Beijing". As shown in FIG8(b), the user selects "Telephone: 151xxxxxx", and "xx Building, xx Road, Haidian District, Beijing" as the target text. After the user completes the action of selecting the preset entity, as shown in FIG8(b), the system displays a function menu bar, which includes function options such as "Select All", "Cut", and "Copy". The selected target text in FIG8 can be regarded as the first text. The device determines that the two preset entities "Telephone: 151xxxxxx" and "xx Building, xx Road, Haidian District, Beijing" are a telephone number and an address, which cannot be associated. The device determines that the telephone number corresponds to a recommended telephone application and the address corresponds to a recommended navigation application. As shown in FIG8(c), the telephone application icon and the navigation application A icon are recommended in the task bar 801. In addition, an add button 802 may be displayed in the task bar 801 . For the description of the add button 802 , please refer to the aforementioned related description, which will not be repeated here.

进行应用推荐后,用户选中的“电话:151xxxxxx”、“北京市海淀区xx路xx大厦”两个预设实体依然保持选中状态。用户可点击任务栏中推荐的应用图标,触发系统进入被选中应用图标对应的应用。After the application is recommended, the two preset entities selected by the user, "Telephone: 151xxxxxx" and "XX Building, XX Road, Haidian District, Beijing", remain selected. The user can click 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”为用户选中的新增文本可视为第二文本。Moreover, after the user selects the two unassociated preset entities "Tel: 151xxxxxx" and "xx Building, xx Road, Haidian District, Beijing" to trigger the system to recommend applications, if the user wants to adjust the selected target text to trigger the system to recommend applications again, the user can manually adjust the cursor to adjust the selected target text as shown in FIG8(d), and adjust the selected target text to "Recipient: xxx", "Tel: 151xxxxxx", "xx Building, xx Road, Haidian District, Beijing". During the process of adjusting the selected target text, the last recommended task bar 801 disappears. In this specific example, "Recipient xxx" is the newly added text selected by the user and can be regarded as the second text.

继续参照图8(e)由于“收件人:xxx”、“电话:151xxxxxx”、“北京市海淀区xx路xx大厦”这三个预设实体被系统判定为具有关联关系的预设实体,通过查找关联关系列表可确定这三个预设实体对应购物类应用,因此系统在推荐时仅推荐单个购物类应用例如“购物类应用B”。Continuing with reference to FIG8(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 associated relationships, it can be determined that these three preset entities correspond to shopping applications by searching the associated relationship list. Therefore, the system only recommends a single shopping application, such as "Shopping Application B", when recommending.

如图8所示,本申请提供的基于多个可关联的预设实体进行应用推荐的方式,在用户选中的多个预设实体为不可关联实体时,分别基于被选中的各预设实体进行应用推荐,在完成一次推荐后用户可对选中的目标文字进行调整,调整后的目标文字中包含多个可关联预设实体的情况下,系统进推荐单个应用。可见,系统推荐应用时并非仅依据用户选中的预设实体的个数进行推荐,还会考虑到被选中的预设实体的可关联性。As shown in FIG8 , the present application provides a method for recommending applications based on multiple associable preset entities. When the multiple preset entities selected by the user are non-associable entities, application recommendations are made based on each selected preset entity. After completing a recommendation, the user can adjust the selected target text. When the adjusted target text contains multiple associable preset entities, the system recommends 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 Figure 9, which is a schematic diagram of the interface changes when an application is recommended based on multiple non-associated preset entities selected twice by the user. Figure 9 takes the picture containing English, Taobao password and address as picture b as an example for explanation. Figures 9(a) to 9(b) show the process of the user selecting multiple preset entities in the displayed OCR recognition results. This process can be referred to the relevant description of Figures 7(a) to (b), and will not be repeated here. In the displayed OCR results, only the preset entities are underlined, and non-preset entities are not underlined. For example, if the "delivery address" in Figure 9(a) is not a preset entity, then these four words will not be underlined.

用户选中“Name:TOM”、“Xixi:/啊FfthxKgYVSh微史高治的光辉岁月全套…更多信息”以及“北京市海淀区××路××大厦”三个预设实体,系统判定这三个预设实体为外文、淘口令和地址,将这三个预设实体与关联关系列表中存储的关联关系进行匹配,无法匹配到关联关系,因此确定这三个预设实体为非关联预设实体。系统从推荐规则列表中分别查找外文对应的推荐应用为翻译类应用,淘口令对应的推荐应用为购物类应用如淘宝应用,地址对应的推荐应用为地图类应用,系统分别从这三类应用中确定目标应用“翻译类应用A”、“地图类应用B”以及“购物类应用C”,生成包含“翻译类应用A”、“地图类应用B”以及“购物类应用C”的任务栏901,显示有任务栏的界面示意图如图9(c)所示。任务栏中推荐的各应用图标的排序与被选中的预设实体在图片中的排序一致。任务栏中除包括推荐的多个应用外,还可以包括添加按钮902。The user selects three preset entities, "Name: TOM", "Xixi:/啊FfthxKgYVSh微史高治光辉岁月全套…更多更多" and "××路××楼", Haidian District, Beijing". The system determines that these three preset entities are foreign languages, Taobao passwords and addresses. The system matches these three preset entities with the associations stored in the association list. No associations can be matched, so the three preset entities are determined to be non-association preset entities. The system searches the recommendation rule list for the recommended applications corresponding to the foreign languages, which are translation applications, the recommended applications corresponding to the Taobao passwords, which are shopping applications such as Taobao applications, and the recommended applications corresponding to the addresses, which are map applications. The system determines the target applications "translation application A", "map application B" and "shopping application C" from these three types of applications, and generates a task bar 901 containing "translation application A", "map application B" and "shopping application C". The interface diagram showing the task bar is shown in FIG9(c). The order of the application icons recommended in the task bar is consistent with the order of the selected preset entities in the picture. In addition to the recommended multiple applications, the task bar can also include an add button 902.

相应地,当想要在任务栏中显示“翻译类应用A”、“地图类应用B”以及“购物类应用C”以外的其他应用(例如翻译类应用B)的应用图标时,用户可以点击添加按钮902,此时,任务栏从上到下可以依次显示“购物类应用C”“地图类应用B”以及“翻译类应用D”。用户可通过点击添加按钮902切换任务栏中推荐的应用图标。任务栏901也可视为一个悬浮窗。Accordingly, when the user wants to display application icons of other applications (e.g., translation application B) other than "translation application A", "map application B", and "shopping application C" in the taskbar, the user can click the add button 902. At this time, the taskbar can display "shopping application C", "map application B", and "translation application D" from top to bottom. The user can switch the recommended application icons in the taskbar by clicking the add button 902. The taskbar 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, the taskbar may only display icons of one translation application, one map application and one shopping application when recommending applications. Since there are no other applications to switch for recommendation, the add button 902 may not be displayed.

继续参照图9(d),用户在选定图9(c)中所示的三个不关联预设实体触发系统进行应用推荐后,若想调整选中的目标文字触发系统重新进行应用推荐,可以如图9(d)中所示手动调节光标调整选中的目标文字,将选中的目标文字调整为“收货地址:北京市海淀区xx路xx大厦”,在调整选中的目标文字的过程中上一次推荐的任务栏901消失,系统基于用户调整后的目标文字“收货地址:北京市海淀区xx路xx大厦”推荐地图类应用B。Continuing with reference to FIG9(d), after the user selects the three unrelated preset entities shown in FIG9(c) to trigger the system for application recommendation, if the user wants to adjust the selected target text to trigger the system to re-recommend application, the user can manually adjust the cursor to adjust the selected target text as shown in FIG9(d). The selected target text is adjusted to "Delivery address: xx Building, xx Road, Haidian District, Beijing". During the process of adjusting the selected target text, the last recommended task bar 901 disappears. The system recommends map application B based on the target text "Delivery address: xx Building, xx Road, Haidian District, Beijing" adjusted by the user.

图9中所示的应用推荐方法,用户在从图片OCR识别结果中选定目标文字触发系统进行一次应用推荐后,还可以调整选中的目标文字触发系统再进行一次应用推荐,在调整选中的目标文字过程中,前一次应用推荐信息消失。需要说明的是,上述仅是以调整一次目标文字为例进行说明,在实际实现过程中,用户可以调整两次甚至更多次目标文字,每次调整目标文字均可触发系统重新进行应用推荐。In the application recommendation method shown in FIG9 , after the user selects the target text from the image OCR recognition result to trigger the system to recommend an application once, the user can also adjust the selected target text to trigger the system to recommend an application again. During the adjustment of the selected target text, the previous application recommendation information disappears. It should be noted that the above is only explained by adjusting the target text once. In the actual implementation process, the user can adjust the target text twice or even more times, and each adjustment of the target text can trigger the system to recommend applications again.

本申请实施例中,任务栏对应的控件位于屏幕的最上层,这样,可以避免推荐应用列表被设备屏幕上的其他界面覆盖,影响后续从推荐应用列表中选择应用的操作。In the embodiment of the present application, the control corresponding to the taskbar is located at the top layer of the screen, so that the recommended application list can be prevented from being covered by other interfaces on the device screen, affecting 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中所示的该种在判定用户选中的目标文字包含多个非关联的预设实体时,推荐多个应用程序的方式,所推荐的应用与用户选中的预设实体关联性强,提供包含多个应用的任务栏供用户选择,用户从推荐的多个应用中确定目标应用后,直接点击对应应用图标进入目标应用即可,无需用户从当前界面中退出,再从桌面中手动查找目标应用后进入目标应用,操作便捷。The method shown in Figure 9 recommends multiple applications when it is determined that the target text selected by the user contains multiple non-related preset entities. The recommended applications are strongly associated with the preset entities selected by the user, and a task bar containing multiple applications is provided for the user to choose. After the user determines the target application from the multiple recommended applications, he or she can directly click on the corresponding application icon to enter the target application. The user does not need to exit from the current interface and then manually search for the target application from the desktop to enter the target application. The operation is convenient.

下面结合图11至图12,对用户选中的目标文字不包含预设实体时,进行应用推荐的流程进行说明。图12为示例性示出的基于图片内容进行应用推荐时用户与设备间交互的时序流程图,该应用推荐流程包括如下步骤:The following is a description of the process of recommending applications when the target text selected by the user does not contain a preset entity, in conjunction with Figures 11 and 12. Figure 12 is a time sequence flow chart showing the interaction between the user and the device when recommending applications based on image content. The application recommendation process includes the following steps:

S1:用户点击图库中的图片c。S1: The user clicks on image c in the gallery.

S2:设备响应于点击图片c,在设备屏幕上显示图片c。S2: In response to clicking on picture c, the device displays picture c on the device screen.

S3:设备检测图片c中是否存在文字,如果存在文字,获取图片c的OCR识别结果。S3: The device detects whether there is text in the image c. If there is text, the OCR recognition result of the image c is obtained.

S4:如果获取到图片c的OCR识别结果,在设备屏幕上弹出OCR按钮。S4: If the OCR recognition result of the image c is obtained, an OCR button pops up on the device screen.

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 the image 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 the picture c in the gallery and displaying the OCR recognition result. For this process, please refer to the specific description of S1 to S6 in Fig. 6, which will not be repeated here.

S7:用户在OCR识别结果中选中复制目标文字。S7: The user selects and copies target text in the OCR recognition result.

请参照图11,图11为示例性示出的一种基于不包含预设实体的图片进行应用推荐的界面示意图,显示有图片c的界面示意图如图11(a)所示,在界面中图片c的OCR识别结果“手机的主要功能为通讯,方便人们的沟通。现在的智能手机,还有娱乐、导航、购物等功能”高亮显示,由于OCR识别结果中不包含预设实体,因此没有字符下添加下划线。Please refer to Figure 11, which is an exemplary diagram of an interface for recommending applications based on a picture that does not contain a preset entity. The interface diagram showing picture c is shown in Figure 11(a), in which the OCR recognition result of picture c "The main function of a mobile phone is communication, which facilitates communication between people. Today's smart phones also have entertainment, navigation, shopping and other functions" is highlighted. Since the OCR recognition result does not contain a preset entity, no characters are underlined.

图11(b)为用户从所显示的OCR识别结果中选中目标文字的过程,该过程的相关说明参照图11(b)中的相关说明即可,在此不再赘述。如图11(c)所示,用户点击功能菜单栏中的“复制”选项以选定光标圈起的目标文字,系统接收到用户对“复制”选项的点击操作,复制用户选中的目标文字。FIG11(b) shows the process of the user selecting the target text from the displayed OCR recognition results. The relevant description of the process can be referred to the relevant description in FIG11(b), which will not be repeated here. As shown in FIG11(c), the user clicks the "Copy" option in the function menu bar to select the target text circled by the cursor. 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下的相关说明即可,在此不再赘述。The method of identifying whether the target text contains the preset entity can be referred to the relevant description under S6 in Figure 6, which will not be repeated here.

S9:设备对目标文字进行特征提取,基于提取的特征匹配多个应用,并显示包含该多个应用的任务栏。S9: The device extracts features of the target text, matches multiple applications based on the extracted features, and displays a task bar including the multiple applications.

一种示例性的基于提取的特征匹配多个应用的方式为:基于应用分类模型对提取的文字特征进行预测,预测结果为各应用分类对应的分值,分值越高说明提取的文字特征与该应用分类匹配度越高。依据预测得到的各应用分类对应的分值从中选取分值最高的第一应用分类,和分值第二高的第二应用分类。判断设备中所安装的第一应用分类下的应用数量是否大于第一预设数量例如3个,若是,则从第一应用分类下筛选出第一预设数量的应用作为待推荐应用,若否,则将第一应用分类下包含的应用均作为第一应用分类下的待推荐应用。判断设备中所安装的第二应用分类下的应用数量是否大于第二预设数量例如2个,若是则从第二应用分类下筛选出第二预设数量的应用作为第二应用分类下的待推荐应用,若否,则将第二应用分类下包含的应用均作为第二应用分类下的待推荐应用。最后将第一应用分类下的待推荐应用和第二应用分类下的待推荐应用作为推荐应用,显示包含推荐应用图标的任务栏。应用分类可由本领域技术人员灵活设置,本申请实施例中对此不做具体限制。例如:应用分类可包括:视频类应用、社交类应用、地图图类应用以及购物类应用等。An exemplary method of matching multiple applications based on extracted features is: predicting the extracted text features based on the application classification model, and the prediction result is the score corresponding to each application classification. The higher the score, the higher the matching degree between the extracted text features and the application classification. According to the predicted scores corresponding to each application classification, the first application classification with the highest score and the second application classification with the second highest score are selected. It is judged whether the number of applications under the first application classification installed in the device is greater than the first preset number, such as 3. If so, the first preset number of applications are screened out from the first application classification as the applications to be recommended. If not, all the applications contained in the first application classification are used as the applications to be recommended under the first application classification. It is judged whether the number of applications under the second application classification installed in the device is greater than the second preset number, such as 2. If so, the second preset number of applications are screened out from the second application classification as the applications to be recommended under the second application classification. If not, all the applications contained in the second application classification are used as the applications to be recommended under the second application classification. Finally, the applications to be recommended under the first application classification and the applications to be recommended under the second application classification 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, and no specific restrictions are made in the embodiments of the present application. For example, application categories may include: video applications, social applications, map applications, and shopping applications, etc.

其中,第一预设数量大于第二预设数量。从第一应用分类下筛选待推荐应用时,可通过用户在预设时间段内对应用的使用频次、目前激活应用等条件对第一应用分类下的应用进行排序,选择排序在前的第一预设数量的应用作为待推荐应用。同理,可从第二应用分类下筛选待推荐应用。Wherein, the first preset number is greater than the second preset number. When filtering the applications to be recommended from the first application category, the applications under the first application category can be sorted according to conditions such as the frequency of application use by the user within a preset time period, currently activated applications, etc., and the first preset number of applications ranked first are selected as the applications to be recommended. Similarly, the applications to be recommended can be filtered from the second application category.

继续参照图11,系统基于用户选定的目标文字“手机的主要功能为通讯,方便人们的沟通。现在的智能手机,还有娱乐、导航、购物等功能”确定推荐购物类应用和社交类应用,由于设备中安装的购物类应用仅包括购物类应用B,设备中安装的社交类应用仅包括社交类应用A和C,因此在应用推荐时如图11(d)所示,在任务栏1101中显示有购物类应用B、社交类应用A和社交类应用C的图标。任务栏1101中除包括多个推荐应用的图标外还包括以及添加按钮1102,对于任务栏1101以及添加按钮1102的介绍,参照前述相关说明即可,在此不再赘述。Continuing to refer to FIG. 11 , the system determines to recommend shopping applications and social applications based on the target text selected by the user, "The main function of a mobile phone is communication, which facilitates people's communication. Today's smart phones also have entertainment, navigation, shopping and other functions." 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, when recommending applications, as shown in FIG. 11 (d), icons of shopping application B, social application A and social application C are displayed in the task bar 1101. In addition to the icons of multiple recommended applications, the task bar 1101 also includes an add button 1102. For the introduction of the task bar 1101 and the add button 1102, please refer to the above-mentioned related descriptions, which 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 first preset number of social applications as the first application category is 3, and the second preset number of shopping applications as the second application category is 2, there are 3 social applications A, C and D installed in the device, and shopping applications B and E are installed in the device, then when recommending applications, the social applications A, C and D and shopping applications B and E are recommended applications. Since the number of application icons displayed in the taskbar is limited, only some of the icons of the recommended applications may be displayed, and the rest are hidden. After the user clicks on the add button 1102, they are displayed one by one.

需要说明的是,上述实施例中仅是以用户在图片OCR识别结果中选中目标文字,系统依据用户选定的目标文字进行应用推荐为例进行说明。在实际实现过程中,用户也可以对备忘录、短消息等界面中的文本内容进行选中、复制点击等操作,触发系统依据用户选定的目标文字进行应用推荐。It should be noted that the above embodiment is only described by taking the example that the user selects the target text in the image OCR recognition result, and the system recommends applications based on the target text selected by the user. In the actual implementation process, the user can also select, copy and click on the text content in the memo, short message and other interfaces to trigger the system to recommend applications based on the target text selected by the user.

可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。It is understandable that, in order to realize the above functions, the electronic device includes hardware and/or software modules corresponding to the execution of each function. In combination with 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 function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.

其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here.

本实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的应用程序推荐方法。This embodiment also provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the application recommendation method in the above-mentioned embodiment.

本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的应用程序推荐方法。This embodiment also provides a computer program product. When the computer program product runs on a computer, it enables the computer to execute the above-mentioned related steps to implement the application recommendation method in the above-mentioned embodiment.

其中,本实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above and will not be repeated here.

通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present 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 content is within the scope of the present application.

本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims (15)

1. An application recommendation method applied to an electronic device, the method comprising:
Responding to a first operation of a user on a first text in a first application, and identifying a preset entity contained in the first text;
under the condition that a preset entity is contained in the first text, determining information to be recommended based on the preset entity contained in the first text;
under the condition that the first text does not contain a preset entity, determining information to be recommended based on the content of the first text, wherein the information to be recommended comprises: an application icon or a list of services;
Displaying a first icon in a display interface of the first application, wherein the first icon corresponds to the information to be recommended;
Under the condition that the first text contains a preset entity, determining the information to be recommended based on the preset entity contained in the first text comprises the following steps:
determining a second application or service list matched with a preset entity under the condition of a single preset entity contained in the first text;
determining whether the plurality of preset entities can be combined or not based on an association relationship list under the condition that the first text contains the plurality of preset entities; the association list comprises association relations among preset entities;
Determining a third application based on the preset entities under the condition that the preset entities can be combined;
And respectively determining fourth applications matched with the included preset entities under the condition that the preset entities cannot be combined.
2. The method of claim 1, wherein prior to the responding to the first user operation on the first text at the first application, the method further comprises:
responding to a second operation of a user on the picture in the first application, and displaying the picture in a display interface of the first application;
identifying whether the picture contains text;
Performing OCR (optical character recognition) on the picture to obtain a second text under the condition that the picture comprises the text;
displaying a first button, wherein the first button is used for triggering the display of the second text;
And responding to a third operation of the first button by a user, and highlighting the second text in the display interface, wherein the second text comprises the first text.
3. The method of claim 1, wherein determining information to be recommended based on the content of the first text without including a preset entity in the first text comprises:
extracting features of the first text under the condition that a preset entity is not included in the first text;
Determining a first application classification and a second application classification for the first text match based on the extracted features;
screening a first preset number of fifth applications from the first application classification;
screening a second preset number of sixth applications from the second application classification;
and the fifth application and the sixth application are determined to be information to be recommended.
4. The method of claim 1, wherein the first icon comprises: a floating ball or a floating window.
5. The method of claim 1, wherein the preset entity comprises: address, code, identification number, telephone number, courier number, web address, mailbox address, foreign language, panning password, or shaking password.
6. An application program recommending method applied to an electronic device is characterized by comprising the following steps:
displaying the first text and the second text on a display interface of the first application;
Responding to a first operation of a user on the first text, and displaying a first icon corresponding to a second application on the display interface, wherein the first icon is obtained according to text analysis of the first text;
responding to a second operation of the user on the first icon, and displaying an interface of the second application corresponding to the first icon;
when detecting that a user executes a third operation on the second text, canceling displaying the first icon in the display interface;
Responding to a third operation of the user on the first text and the second text, and displaying a second icon corresponding to a third application on the display interface, wherein the second icon is obtained according to text analysis of the first text and the second text;
Responding to a fourth operation of the user on the second icon, and displaying an interface of the third application corresponding to the second icon;
The method for displaying the first icon corresponding to the second application on the display interface in response to the first operation of the user on the first text comprises the following steps:
Responding to the selection operation of a user on the first text, and displaying a suspension ball corresponding to a second application on a display interface of the first application, wherein the first text comprises a plurality of combinable preset entities, and the suspension ball comprises a first icon corresponding to the second application;
Or responding to the selection operation of the user on the first text, displaying a floating window on a display interface of the first application, wherein the first text comprises a plurality of uncombinable preset entities, the floating window comprises a plurality of application icons, and the plurality of application icons at least comprise first icons corresponding to the second application.
7. The method according to claim 6, wherein:
The first text includes: plain text or picture OCR recognizes the resulting text.
8. The method of claim 7, wherein prior to displaying the first text and the second text on the display interface of the first application, the method further comprises:
Responding to a fifth operation of a user on a picture in a first application, and displaying the picture in a display interface of the first application;
displaying a first button under the condition that the picture comprises texts, wherein the first button is used for triggering and displaying a first text and a second text obtained by OCR recognition 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 of the first button by the user, highlighting the first text and the second text in the display interface, wherein the sixth operation includes at least: clicking.
9. The method of claim 8, wherein highlighting the first text and the second text in the display interface comprises:
Highlighting the first text and the second text in the display interface, and displaying 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 comprise: address, code, identification number, telephone number, courier number, web address, mailbox address, foreign language, panning password, or shaking password.
10. The method of claim 6, wherein the method further comprises:
Responding to seventh operations of the user on the third text and the second text, and displaying a first icon corresponding to the second application and a third icon corresponding to the fourth application on the display interface; the first text comprises 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;
responding to eighth operation of the user on the third icon, and displaying an interface of the fourth application corresponding to the third icon;
Responding to a third operation of the user on the first text and the second text, and displaying a second icon corresponding to a third application on the display interface, wherein the second icon is obtained according to text analysis of the first text and the second text;
And responding to a fourth operation of the user on the second icon, and displaying an interface of the second application corresponding to the first icon.
11. The method of claim 9, wherein displaying a first icon corresponding to a second application on the display interface in response to a first operation of the first text by a user comprises:
And responding to clicking operation of the user on the first text, and displaying a suspension ball on the display interface, wherein the suspension ball comprises a first icon of a second application obtained by text analysis of the first text.
12. The method of claim 9, wherein displaying a first icon corresponding to a second application on the display interface in response to a first operation of the first text by a user comprises:
and responding to clicking operation of the user on the first text, displaying a floating window on the display interface, wherein the floating window comprises service options obtained by text analysis of the first text, and the service options at least comprise service options corresponding to the second application.
13. The method of claim 6, wherein displaying a first icon corresponding to a second application on the display interface in response to a first operation of the first text by a user comprises:
And responding to the copying operation of the user on the first text, displaying a floating window on a display interface of the first application, wherein the floating window comprises a plurality of application icons, and the plurality of application icons comprise first icons corresponding to the second application.
14. The method of claim 6, wherein the second operation comprises: single click, double click, long press.
15. A computer readable storage medium comprising a computer program, characterized in that the computer program, when run on an electronic device, causes the electronic device to perform the application recommendation method according to any one of claims 1-14.
CN202111341981.2A 2021-11-12 2021-11-12 Application Recommendation Method Active CN116126197B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111341981.2A CN116126197B (en) 2021-11-12 2021-11-12 Application Recommendation Method
PCT/CN2022/118236 WO2023082817A1 (en) 2021-11-12 2022-09-09 Application program recommendation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111341981.2A CN116126197B (en) 2021-11-12 2021-11-12 Application Recommendation Method

Publications (2)

Publication Number Publication Date
CN116126197A CN116126197A (en) 2023-05-16
CN116126197B true CN116126197B (en) 2024-06-14

Family

ID=86305017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111341981.2A Active CN116126197B (en) 2021-11-12 2021-11-12 Application Recommendation Method

Country Status (2)

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

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116992152B (en) * 2023-08-28 2024-07-26 荣耀终端有限公司 Application recommendation method and electronic device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108470041A (en) * 2018-02-12 2018-08-31 维沃移动通信有限公司 A kind of information search method and mobile terminal
CN110232156A (en) * 2019-05-31 2019-09-13 三角兽(北京)科技有限公司 Information recommendation method and device based on long text

Family Cites Families (8)

* 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
CN106855796A (en) * 2015-12-09 2017-06-16 阿里巴巴集团控股有限公司 A kind of data processing method, device and intelligent terminal
CN106023994B (en) * 2016-04-29 2020-04-03 杭州华橙网络科技有限公司 Voice processing method, device and system
KR20190053675A (en) * 2017-11-10 2019-05-20 삼성전자주식회사 Electronic apparatus and operating method thereof
CN109299363A (en) * 2018-09-26 2019-02-01 北京安云世纪科技有限公司 Content acquisition method, device, computer equipment and the storage medium of pushed information
CN110968654B (en) * 2018-09-29 2023-10-20 阿里巴巴集团控股有限公司 Address category determining method, equipment and system for text data
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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108470041A (en) * 2018-02-12 2018-08-31 维沃移动通信有限公司 A kind of information search method and mobile terminal
CN110232156A (en) * 2019-05-31 2019-09-13 三角兽(北京)科技有限公司 Information recommendation method and device based on long text

Also Published As

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

Similar Documents

Publication Publication Date Title
US11423209B2 (en) Device, method, and graphical user interface for classifying and populating fields of electronic forms
RU2632144C1 (en) Computer method for creating content recommendation interface
KR102625254B1 (en) Electronic device and method providing information associated with image to application through input unit
CN115033142B (en) Application interaction method and electronic equipment
KR20210005199A (en) Device, method, and graphical user interface for managing authentication credentials for user accounts
CN112230909A (en) Data binding method, device and equipment of small program and storage medium
WO2016095689A1 (en) Recognition and searching method and system based on repeated touch-control operations on terminal interface
CN108604152A (en) unread message reminding method and terminal
CN111954079B (en) Image processing method, device, electronic equipment and medium
CN108829371A (en) Interface control method, device, storage medium and electronic equipment
CN106354570A (en) Method and device for copying and pasting account information
CN113849092A (en) Content sharing method and device and electronic equipment
CN115033153B (en) Application recommendation methods and electronic devices
CN118012302A (en) Interface display method, device, electronic equipment and readable storage medium
CN107220377B (en) Search method, electronic device, and computer storage medium
CN113268182A (en) Application icon management method and electronic equipment
CN116126197B (en) Application Recommendation Method
CN115016710B (en) App Recommendation Method
CN113138676B (en) Expression symbol display method and device
WO2023179454A1 (en) Service calling method and electronic device
CN107203382A (en) A kind of information demonstrating method and terminal
CN112328339A (en) Notification message display method and device, storage medium and electronic equipment
CN117171188B (en) Search method, device, electronic device and readable storage medium
CN107659720A (en) A kind of information processing method, electronic equipment and computer-readable storage medium
CN113805706B (en) A text input method, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China