[go: up one dir, main page]

CN115016710B - App Recommendation Method - Google Patents

App Recommendation Method Download PDF

Info

Publication number
CN115016710B
CN115016710B CN202111339273.5A CN202111339273A CN115016710B CN 115016710 B CN115016710 B CN 115016710B CN 202111339273 A CN202111339273 A CN 202111339273A CN 115016710 B CN115016710 B CN 115016710B
Authority
CN
China
Prior art keywords
application
picture
ocr
icon
user
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
CN202111339273.5A
Other languages
Chinese (zh)
Other versions
CN115016710A (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 CN202111339273.5A priority Critical patent/CN115016710B/en
Publication of CN115016710A publication Critical patent/CN115016710A/en
Application granted granted Critical
Publication of CN115016710B publication Critical patent/CN115016710B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/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
    • 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
    • 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

Landscapes

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

Abstract

The application program recommending method is provided. The method comprises the following steps: the electronic equipment responds to a first operation of a user on a first picture in a first application, a first icon is displayed in a first area of the first application, and the first icon is an application icon of a second application; responding to a second operation of a user on a second picture in the first application, and displaying a second icon for character recognition in a second area of the first application; responding to a third operation of the user on the second icon, displaying a third icon in a third area of the first application, wherein the third icon is an application icon of the third application; and responding to a fourth operation of the user on the third picture in the second application, and displaying a fourth icon in a fourth area of the second application. According to the application program recommending method, the electronic equipment can conduct application recommending based on the text contained in the picture, the user does not need to exit from the current 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

应用程序推荐方法App Recommendation Method

技术领域technical field

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

背景技术Background technique

当前,手机、平板等智能终端类电子设备中通常安装有大量应用。用户在使用这类电子设备时,经常有查看图片、甚至提取图片中文本的需求。例如:查看社交类应用朋友圈中好友分享的美食图片时,美食图片中包含店家地址,用户想要提取店家地址到导航类应用中查看店家的具体位置。此时,用户需要退出朋友圈,从主界面中的大量应用中查找导航类应用,然后打开查找到的某一个导航类应用后手动录入店家地址,操作过程繁琐、耗时长,用户使用体验差。Currently, a large number of applications are usually installed in smart terminal electronic devices such as mobile phones and tablets. When using such electronic devices, users often have the need to view pictures and even extract text from pictures. For example: when viewing a food picture shared by a friend in Moments of a social application, the food picture contains the address of the store, and the user wants to extract the address of the store and view the specific location of the store in a navigation application. At this time, the user needs to exit Moments, search for navigation applications from a large number of applications on the main interface, and then open a navigation application found and manually enter the store address. The operation process is cumbersome and time-consuming, and the user experience is poor.

发明内容Contents of the invention

本申请提供一种应用程序推荐方法,能够对图片进行OCR识别,基于OCR识别结果为用户推荐应用,无需用户从电子设备中安装的大量应用程序中手动查找目标应用程序,能够提升用户体验。The present application provides an application recommendation method, which can perform OCR recognition on pictures, and recommend applications to users based on the OCR recognition results, without requiring users to manually search for target applications from a large number of applications installed in electronic devices, which can improve user experience.

在一些实施例中,电子设备可基于图片所处的场景确定对图片主动OCR后进行应用推荐,还是由用户触发对图片OCR后进行应用推荐,一方面,由于会进行应用推荐,用户从推荐的应用中查找目标应用即可,无需用户从电子设备中安装的大量应用程序中手动查找目标应用,能够提升用户体验。第二方面,用户选定目标应用后可从OCR识别结果中提取文本粘贴至目标应用中,无需用户手动录入文本。第三方面,电子设备依据图片所处场景判定是否主动对图片进行OCR,并非盲目对图片进行OCR进行应用推荐,可避免盲目推荐打扰用户的问题。In some embodiments, the electronic device can determine based on the scene where the picture is located to recommend an application after active OCR of the picture, or whether the user triggers the application recommendation after OCR of the picture. It is only necessary to search for the target application in the application, and the user does not need to manually search for the target application from a large number of application programs installed in the electronic device, which can improve user experience. In the second aspect, after the user selects the target application, the text can be extracted from the OCR recognition result and pasted into the target application, without the user needing to manually enter the text. In the third aspect, the electronic device determines whether to actively perform OCR on the picture according to the scene where the picture is located, instead of blindly performing OCR on the picture for application recommendation, which can avoid the problem of disturbing users due to blind recommendation.

第一方面,本申请提供一种应用推荐方法,应用于电子设备,其中,该方法包括:电子设备响应于用户对第一应用中第一图片的第一操作如点击、选中或者复制等操作,在第一应用的第一区域显示第一图标,第一图标为第二应用的应用图标,其中,第一图片包含第一文本;其中,第一区域中可以通过侧边栏或应用列表的形式显示第一图标;电子设备响应于用户对第一应用中第二图片的第二操作如点击、复制或者选中等操作,在第一应用的第二区域显示第二图标,第二图标为文字识别的图标,其中,第二图片包含第二文本,第二图标即下文中的OCR按钮,文字识别又可称为对图片进行OCR;电子设备响应于用户对第二图标的第三操作如点击、长按等操作,在第一应用的第三区域显示第三图标,第三图标为第三应用的应用图标,第二应用与第三应用不同;其中,第三区域中可以通过侧边栏或应用列表的形式显示第三图标;电子设备响应于用户对第二应用中第三图片的第四操作如点击、选中或者复制等操作,在第二应用的第四区域显示第四图标,第三图标为第四应用的应用图标,其中,第一图片包含第一文本,其中,第四区域可以通过侧边栏或应用列表的形式显示第三图标,第一应用与第二应用不同,第四应用与第二应用及第三应用不同。In a first aspect, the present application provides an application recommendation method applied to an electronic device, wherein the method includes: the electronic device responds to the user's first operation on the first picture in the first application, such as clicking, selecting, or copying, etc., The first icon is displayed in the first area of the first application, and the first icon is the application icon of the second application, wherein the first picture contains the first text; wherein, the first area can be displayed in the form of a sidebar or an application list Displaying the first icon; the electronic device displays the second icon in the second area of the first application in response to the user's second operation on the second picture in the first application, such as clicking, copying or selecting, and the second icon is text recognition icon, wherein the second picture contains the second text, the second icon is the OCR button hereinafter, and text recognition can also be referred to as performing OCR on the picture; the electronic device responds to the user's third operation on the second icon, such as clicking, Long press and other operations will display a third icon in the third area of the first application, the third icon is the application icon of the third application, and the second application is different from the third application; where in the third area, you can use the sidebar or The third icon is displayed in the form of an application list; the electronic device displays the fourth icon in the fourth area of the second application in response to the user's fourth operation on the third picture in the second application, such as clicking, selecting, or copying. The icon is the application icon of the fourth application, wherein the first picture contains the first text, and the fourth area can display the third icon in the form of a sidebar or an application list, the first application is different from the second application, and the fourth The application is different from the second application and the third application.

该种应用程序推荐方式,电子设备可基于图片所处的场景确定对图片主动OCR后进行应用推荐,还是由用户触发对图片OCR后进行应用推荐,无需用户退出当前应用后从电子设备已安装的大量应用中查找目标应用,操作便捷且能够节省应用查找所耗时间。并且不会盲目主动对图片进行OCR进行应用推荐,可避免打扰用户。In this application recommendation method, the electronic device can determine the application recommendation after the active OCR of the image based on the scene where the image is located, or the application recommendation after the user triggers the OCR of the image. Find the target application in a large number of applications, the operation is convenient and can save the time spent on application search. And it will not blindly and actively perform OCR on pictures to recommend applications, which can avoid disturbing users.

根据第一方面的应用程序推荐方法,电子设备响应于用户对第一应用中第一图片的第一操作,在第一应用的第一区域显示第一图标,包括:电子设备响应于用户对第一应用中第一图片的第一操作,在第一应用的第一区域显示第一图标,且高亮显示第一图片包含的第一文本。该种高亮显示第一文本的方式,能够提示用户OCR识别已完成,所显示的第一文本可被选中、复制或选中等。According to the application program recommendation method of the first aspect, the electronic device displays the first icon in the first area of the first application in response to the user's first operation on the first picture in the first application, including: the electronic device responds to the user's first operation on the first application The first operation of the first picture in an application displays the first icon in the first area of the first application, and highlights the first text included in the first picture. This way of highlighting the first text can prompt the user that the OCR recognition has been completed, and the displayed first text can be selected, copied or selected.

根据第一方面,或者以上第一方面的任意一种实现方式,电子设备响应于用户对第一应用中第一图片的第一操作,在第一应用的第一区域显示第一图标包括:电子设备响应于用户对通讯类应用的聊天界面中的第一图片的单击操作,全屏显示第一图片,并在第一图片中显示侧边栏,侧边栏中包括第二应用的第一图标。侧边栏可以显示在界面中的任意适当的位置处,例如:界面左侧、界面右侧等。通讯类应用的聊天界面中的图片为用户主动发布的图片,这类图片中包含有用信息的概率较大,因此在用户查看图片时主动对图片进行OCR,进行应用推荐,无需用户手动触发OCR,操作便捷,能够提升用户体验。According to the first aspect, or any implementation manner of the above first aspect, the displaying the first icon in the first area of the first application by the electronic device in response to the user's first operation on the first picture in the first application includes: In response to the user's click operation on the first picture in the chat interface of the communication application, the device displays the first picture in full screen, and displays a sidebar in the first picture, and the sidebar includes the first icon of the second application . The sidebar can be displayed at any appropriate position in the interface, for example: the left side of the interface, the right side of the interface, and so on. The pictures in the chat interface of communication applications are pictures posted by users actively. Such pictures have a high probability of containing useful information. Therefore, when users view pictures, they actively perform OCR on the pictures and recommend applications without the need for users to manually trigger OCR. The operation is convenient and can improve the user experience.

根据第一方面,或者以上第一方面的任意一种实现方式,电子设备在第一文本包含地址的情况下,显示的侧边栏中包括地图应用图标、购物应用图标以及打车应用图标。该种推荐规则,所推荐的应用与用户期望匹配度高,便于用户快速查找到目标应用。According to the first aspect, or any implementation manner of the above first aspect, when the first text contains an address, the electronic device displays a map application icon, a shopping application icon, and a taxi application icon in the sidebar. With this type of recommendation rule, the recommended application matches the user's expectations with a high degree of matching, which is convenient for the user to quickly find the target application.

根据第一方面,或者以上第一方面的任意一种实现方式,电子设备在第一文本包含电话号码的情况下,显示的侧边栏中包括服务列表,服务列表包括:呼叫电话选项、发送消息选项、添加到通讯录选项以及拷贝选项。该种在侧边栏中推荐服务列表的方式,提供多个与电话号码关联的服务选项供用户选择,便于用户快速查找的目标应用。According to the first aspect, or any implementation of the above first aspect, when the first text contains a phone number, the electronic device displays a service list in the sidebar, and the service list includes: call options, send messages option, Add to Contacts option, and Copy option. This way of recommending the service list in the sidebar provides multiple service options associated with the phone number for the user to choose, which is convenient for the user to quickly find the target application.

根据第一方面,或者以上第一方面的任意一种实现方式,电子设备响应于用户对第一应用中第二图片的第二操作,在第一应用的第二区域显示第二图标包括:电子设备响应于用户对通讯类应用的订阅号中的第二图片的单击操作,全屏显示第二图片;响应于用户对第二图片的长按操作,在第二图片的第二区域悬浮显示第二图标。长按操作的时长可由本领域技术人员灵活设置,在此不做具体限制,例如:设置为2秒、1.5秒或者1秒等。通讯类应用的订阅号中的图片并非用户主动发布的图片,这类图片中包含有用信息的概率较小,因此在用户查看图片时不主动对图片进行OCR,而是由用户选择是否对图片进行OCR,可避免盲目对图片进行OCR进行应用推荐打扰用户。According to the first aspect, or any implementation manner of the above first aspect, the displaying the second icon in the second area of the first application by the electronic device in response to the user's second operation on the second picture in the first application includes: electronically In response to the user's click operation on the second picture in the subscription account of the communication application, the device displays the second picture in full screen; in response to the user's long press operation on the second picture, the device displays the second Two icon. The duration of the long press operation can be flexibly set by those skilled in the art, and there is no specific limitation here, for example, it is set to 2 seconds, 1.5 seconds or 1 second. The pictures in the subscription account of the communication application are not pictures posted by the user actively. The probability of such pictures containing useful information is low. OCR can avoid disturbing users by blindly performing OCR on pictures for application recommendation.

根据第一方面,或者以上第一方面的任意一种实现方式,电子设备响应于用户对第二图标的第三操作,在第一应用的第三区域显示第三图标包括:电子设备响应于用户对第二图标的点击操作,在第二图片的第三区域显示第三图标。用户通过点击第二图标即可触发电子设备对图片进行OCR,并基于OCR识别结果进行应用推荐,操作便捷。According to the first aspect, or any implementation of the above first aspect, the electronic device responds to the user's third operation on the second icon, and displaying the third icon in the third area of the first application includes: the electronic device responds to the user The click operation on the second icon displays the third icon in the third area of the second picture. By clicking the second icon, the user can trigger the electronic device to perform OCR on the picture, and recommend applications based on the OCR recognition result, which is convenient to operate.

根据第一方面,或者以上第一方面的任意一种实现方式,电子设备响应于用户对第一应用中第四图片的第五操作例如点击、长按、双指点击等操作,在第一应用的第五区域显示第二图标,第二图标为文字识别的图标,其中,第四图片包含第三文本;电子设备响应于用户对第二图标的第六操作,高亮显示第四图片中包含的第三文本。该种应用程序推荐方法,对图片主动进行OCR后,基于OCR识别结果即第三文本进行应用推荐,便于用户查找想要切换的目标应用,并且高亮显示OCR识别结果,以提示用户对图片的OCR已完成,可对OCR识别结果进行复制、选中、点击等操作。According to the first aspect, or any implementation manner of the above first aspect, the electronic device responds to the user’s fifth operation on the fourth picture in the first application, such as clicking, long pressing, and two-finger clicking, etc., in the first application The second icon is displayed in the fifth area of , and the second icon is an icon for character recognition, wherein the fourth picture contains the third text; in response to the user's sixth operation on the second icon, the electronic device highlights the fourth picture containing of the third text. In this application recommendation method, after actively performing OCR on the picture, the application is recommended based on the OCR recognition result, that is, the third text, which is convenient for the user to find the target application to be switched, and the OCR recognition result is highlighted to remind the user of the picture. OCR has been completed, and operations such as copying, selecting, and clicking can be performed on the OCR recognition result.

第二方面,本申请又提供一种应用推荐方法,应用于电子设备,该方法包括:电子设备接收用户对第一应用的第一界面中图片的第一操作;响应于第一操作,解析第图片的位置标志;依据解析到的位置标志判定图片对应的场景类型,其中,场景类型包括:高概率场景和低概率场景;在场景类型为高概率场景的情况下,对图片进行OCR,并基于OCR识别结果进行应用程序推荐;在场景类型为低概率场景的情况下,在接收到用户触发OCR的第二操作后,对图片进行OCR。In a second aspect, the present application further provides an application recommendation method applied to an electronic device, the method comprising: the electronic device receives a user's first operation on a picture in the first interface of the first application; in response to the first operation, parsing the second The location mark of the picture; determine the scene type corresponding to the picture according to the parsed position mark, wherein the scene type includes: a high probability scene and a low probability scene; when the scene type is a high probability scene, OCR is performed on the picture, and based on The OCR recognition result is used for application recommendation; in the case that the scene type is a low-probability scene, after receiving the second operation of triggering OCR by the user, OCR is performed on the picture.

该种应用程序推荐方法,一方面,由于会进行应用推荐,用户从推荐的应用中查找目标应用即可,无需用户从电子设备中安装的大量应用程序中手动查找目标应用,能够提升用户体验。第二方面,电子设备依据图片所处场景判定是否主动对图片进行OCR,并非盲目对图片进行OCR进行应用推荐,可避免盲目推荐打扰用户的问题。In this application program recommendation method, on the one hand, since the application recommendation will be performed, the user only needs to find the target application from the recommended applications, and the user does not need to manually search for the target application from a large number of application programs installed in the electronic device, which can improve user experience. In the second aspect, the electronic device determines whether to actively perform OCR on the picture according to the scene where the picture is located, instead of blindly performing OCR on the picture for application recommendation, which can avoid the problem of disturbing users due to blind recommendation.

根据第一方面的应用程序推荐方法,电子设备依据位置标志判定图片对应的概率类型包括:电子设备将位置标志与数据库中预存的高概率场景的位置标志进行比对;存在与该位置标志匹配的目标位置标志的情况下,确定图片对应的场景类型为高概率场景。位置标志可以包含应用标识与界面标识,通过位置标志判定图片对应的概率类型的方式,计算量小确准确度高。According to the application program recommendation method of the first aspect, the electronic device determines the probability type corresponding to the picture according to the position mark, including: the electronic device compares the position mark with the position mark of the high-probability scene pre-stored in the database; In the case of the target position mark, it is determined that the scene type corresponding to the picture is a high-probability scene. The location mark can include the application mark and the interface mark, and the method of determining the probability type corresponding to the picture through the position mark has a small amount of calculation and high accuracy.

根据第一方面,或者以上第一方面的任意一种实现方式,电子设备对图片进行OCR,并基于OCR识别结果进行应用程序推荐包括:电子设备对图片进行OCR,得到OCR识别结果;确定OCR识别结果中是否包含预设实体;在OCR识别结果中包含预设实体的情况下,确定所包含的预设实体匹配的应用推荐信息,其中,推荐信息包括:至少一个应用或服务列表,服务列表中包含至少一个服务选项;在放大后的图片上显示推荐信息,且高亮显示OCR识别结果。预设实体可以由本领域技术人员灵活设置预存在系统中,预设实体至少包括:电话号码、地址以及口令类文本。该应用推荐方法,基于预设实体为用户进行应用推荐,所推荐的应用与用户期望查找的应用匹配度高。According to the first aspect, or any implementation method of the above first aspect, performing OCR on the picture by the electronic device, and recommending an application program based on the OCR recognition result includes: performing OCR on the picture by the electronic device to obtain the OCR recognition result; determining the OCR recognition Whether the preset entity is included in the result; in the case that the preset entity is included in the OCR recognition result, determine the application recommendation information matched by the included preset entity, wherein the recommendation information includes: at least one application or service list, in the service list Include at least one service option; display recommended information on the enlarged image, and highlight OCR recognition results. The preset entities can be flexibly set and pre-stored in the system by those skilled in the art, and the preset entities at least include: phone numbers, addresses, and password-like texts. The application recommendation method recommends applications for users based on preset entities, and the recommended applications have a high degree of matching with the applications that users expect to find.

根据第一方面,或者以上第一方面的任意一种实现方式,在电子设备确定OCR识别结果中是否包含预设实体之后,该方法还包括:电子设备在OCR识别结果中不包含预设实体的情况下,电子设备在放大后的图片上高亮显示OCR识别结果。该种高亮显示OCR识别结果的方式,一方面可提示用户OCR已完成,另一方面可提示用户可对OCR识别结果进行复制、选中、点击等操作。According to the first aspect, or any implementation manner of the above first aspect, after the electronic device determines whether the OCR recognition result contains the preset entity, the method further includes: the electronic device does not contain the preset entity in the OCR recognition result In this case, the electronic device highlights the OCR recognition result on the enlarged picture. This method of highlighting the OCR recognition result can, on the one hand, prompt the user that the OCR has been completed, and on the other hand, prompt the user to perform operations such as copying, selecting, and clicking on the OCR recognition result.

根据第一方面,或者以上第一方面的任意一种实现方式,在场景类型为低概率场景的情况下,电子设备在接收到用户触发OCR的第二操作后,对图片进行OCR包括:在场景类型为低概率场景的情况下,电子设备放大显示图片,不主动对图片进行OCR;在接收到用户对图片的第三操作例如长按操作、滑动操作或者双击操作的情况下,显示第一按钮,其中,第一按钮用于触发对图片进行OCR;判断第一预设时长内是否接收到对第一按钮的第四操作,其中,第四操作至少包括:点击;在第一预设时长内接收到对第一按钮的第四操作的情况下,对图片进行OCR;基于OCR识别结果进行应用程序推荐。该种用户主动触发对图片进行OCR的方式,操作便捷。According to the first aspect, or any implementation of the above first aspect, when the scene type is a low-probability scene, after the electronic device receives the second operation of triggering OCR by the user, performing OCR on the picture includes: When the type is a low-probability scene, the electronic device enlarges and displays the picture, and does not actively perform OCR on the picture; when receiving the third operation of the user on the picture, such as a long press operation, a sliding operation, or a double-click operation, display the first button , wherein the first button is used to trigger the OCR of the picture; it is judged whether a fourth operation on the first button is received within the first preset duration, wherein the fourth operation at least includes: clicking; within the first preset duration When the fourth operation on the first button is received, OCR is performed on the picture; application program recommendation is performed based on the OCR recognition result. This method in which the user actively triggers the OCR of the image is easy to operate.

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

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

附图说明Description of drawings

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

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

图3为示例性示出的一种对聊天界面中的图片主动OCR后进行应用推荐的界面示意图;FIG. 3 is a schematic diagram of an interface for recommending applications after active OCR of pictures in the chat interface;

图4为示例性示出的一种对朋友圈中的图片主动OCR后进行应用推荐的界面示意图;FIG. 4 is a schematic diagram of an interface for recommending applications after actively OCRing pictures in Moments;

图5为示例性示出的另一种对朋友圈中的图片主动OCR后进行应用推荐的界面示意图;FIG. 5 is another schematic diagram of an interface for recommending applications after actively OCRing pictures in Moments;

图6为示例性示出的另一种对聊天界面中的图片主动OCR后进行应用推荐的界面示意图;FIG. 6 is a schematic diagram of another interface for recommending applications after active OCR of pictures in the chat interface;

图7为示例性示出的一种查看订阅号中图片过程的界面示意图;Fig. 7 is an exemplary interface diagram showing a process of viewing pictures in a subscription account;

图8A为示例性示出的一种对订阅号中的图片被动OCR后进行应用推荐的界面示意图;FIG. 8A is an exemplary interface diagram for recommending applications after passive OCR of pictures in a subscription account;

图8B为示例性示出的又一种对订阅号中的图片被动OCR后进行应用推荐的界面示意图;Fig. 8B is another schematic diagram of an interface for recommending applications after passive OCR of pictures in the subscription account;

图9为示例性示出的基于图片进行应用推荐时用户与设备间交互的流程图;FIG. 9 is an exemplary flow chart showing the interaction between the user and the device when recommending applications based on pictures;

图10为示例性示出的应用程序推荐方法的流程示意图;FIG. 10 is a schematic flowchart of an exemplary application recommendation method;

图11为示例性示出的主动OCR触发过程与被动OCR触发过程的流程图。FIG. 11 is a flow chart of an exemplary active OCR triggering process and a passive OCR triggering process.

具体实施方式Detailed ways

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

本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。The term "and/or" in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and there exists alone B these three situations.

本申请实施例的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一目标对象和第二目标对象等是用于区别不同的目标对象,而不是用于描述目标对象的特定顺序。The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order of objects. For example, the first target object, the second target object, etc. are used to distinguish different target objects, rather than describing a specific order of the target objects.

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

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

本申请实施例中的应用程序推荐方法,针对被查看的图片所处的场景不同,会区分光学字符识别(Optical Character Recognition,OCR)的触发方式,一种方式为由电子设备主动对图片进行OCR,另一种方式为由电子设备被动对图片进行OCR,OCR识别结果显示在图片上,并且可被直接选中、点击、复制等。是否主动对图片进行OCR取决于图片的来源,若图片为通讯类应用中,用户主动推送的图片(如聊天界面中的图片、朋友圈中动态分享的图片等),则查看该图片时判定图片来源于高概率场景,主动对图片进行OCR识别。除了高概率场景下的图片外其他场景下的图片,均被动对图片进行OCR识别。The application recommendation method in the embodiment of the present application will distinguish the triggering mode of Optical Character Recognition (OCR) according to the different scenes of the picture being viewed. One way is that the electronic device actively performs OCR on the picture , another way is to passively perform OCR on the picture by the electronic device, and the OCR recognition result is displayed on the picture, and can be directly selected, clicked, copied, etc. Whether to actively perform OCR on the picture depends on the source of the picture. If the picture is a picture actively pushed by the user in a communication application (such as a picture in the chat interface, a picture dynamically shared in Moments, etc.), the picture will be judged when viewing the picture. Originated from high-probability scenes, it actively performs OCR recognition on pictures. Except for pictures in high-probability scenes, pictures in other scenes are passively recognized by OCR.

在对图片进行OCR后,无论是主动OCR还是被动OCR,系统均可对OCR识别结果进行分析,确定OCR识别结果中是否包含预设实体,若包含则基于包含的预设实体进行应用推荐。After OCR is performed on the picture, no matter it is active OCR or passive OCR, the system can analyze the OCR recognition result to determine whether the OCR recognition result contains preset entities, and if so, recommend applications based on the included preset entities.

本申请实施例中的应用程序推荐方法可以应用于将同一电子设备的一个应用中的图片包含的文本提取到另一个应用中的场景。The method for recommending an application program in the embodiment of the present application may be applied to a scenario where text contained in a picture in one application of the same electronic device is extracted into another application.

在一个示例中,该场景例如可以是:将图片的OCR识别结果中的文本提取到某一应用中。其中,图片可以来源于图库、实时截屏、浏览器、邮件、通讯类应用如微信、QQ等等应用。本申请实施例对图片的来源不做限制。对文本提取的操作可以包括但不限于:复制后粘贴、选中后自动粘贴或选中后手动粘贴等。In an example, the scenario may be, for example, extracting text from an OCR recognition result of a picture into an application. Among them, the picture can come from a gallery, a real-time screenshot, a browser, an email, a communication application such as WeChat, QQ, and the like. The embodiment of this application does not limit the source of the picture. Operations on text extraction may include but not limited to: copy and paste, select and paste automatically, or select and paste manually.

举例来说,社交类应用的聊天界面中显示有一个快递的照片,该照片中有地址信息,用户想要将该地址信息添加到某一购物应用的收货地址中。此时,可以应用本申请实施例中的应用程序推荐方法,将照片中的地址信息提取到购物类应用的收货地址中。For example, a photo of a courier is displayed on the chat interface of a social application, and the photo contains address information, 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 may be applied to extract the address information in the photo into the delivery address of the shopping application.

需要说明的是,以上示例仅为对本申请实施例应用场景的示意性说明。本申请实施例对于图片的来源应用(即包含该图片的应用)和去向应用(即需要粘贴用户选中的目标文本的应用)不做限制。It should be noted that the above examples are only schematic descriptions of application scenarios of the embodiments of the present application. The embodiment of the present application does not limit the source application of the picture (that is, the application containing the picture) and the destination application (that is, the application that needs to paste the target text selected by the user).

本文中,应用程序可以简称为应用。Herein, an application program may be simply referred to as an application.

本申请实施例中的应用交互方法可以应用于电子设备。该电子设备例如可以是手机、平板等。下面以电子设备100为例,对应用本申请实施例中的应用交互方法的电子设备的硬件结构和软件结构进行说明。The application interaction method in the embodiments of the present application may be applied to electronic devices. The electronic device may be, for example, a mobile phone, a tablet, and the like. The following takes the electronic device 100 as an example to describe the hardware structure and software structure of the electronic device to which the application interaction method in the embodiment of the present application is applied.

图1为示例性示出的电子设备100的结构示意图。应该理解的是,图1所示电子设备100仅是电子设备的一个范例,并且电子设备100可以具有比图中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图1中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。FIG. 1 is a schematic structural diagram of an electronic device 100 exemplarily shown. It should be understood that the electronic device 100 shown in FIG. 1 is only an example of an electronic device, and the electronic device 100 may have more or fewer components than those shown in the figure, and two or more components may be combined , or can have different component configurations. The various components shown in FIG. 1 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.

请参见图1,电子设备100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。1, the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, and a battery 142 , antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193 , a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.

电子设备100的软件系统可以采用分层架构、事件驱动架构、微核架构、微服务架构,或云架构。本申请实施例以分层架构的安卓(Android)系统为例,示例性说明电子设备100的软件结构。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In this embodiment of the present application, the software structure of the electronic device 100 is exemplarily described by taking an Android system with a layered architecture as an example.

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

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

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

如图2所示,应用程序层的应用程序包可以包括传感器、相机、图库、OCR引擎、应用推荐、三方应用、截屏等应用程序。As shown in Figure 2, the application package of the application layer may include applications such as sensors, cameras, image galleries, OCR engines, application recommendations, third-party applications, and screenshots.

其中,OCR引擎用于对图片进行OCR,得到图片的OCR识别结果,OCR识别结果中包括可选择、可复制的来自于图片的文本信息。其中的图片可以是截屏应用所得到的截屏图片,也可以是相机应用拍照所得的照片,还可以是图库中存储的图片,等等,本申请实施例对图片来源不做限制。Wherein, the OCR engine is used to perform OCR on the picture to obtain an OCR recognition result of the picture, and the OCR recognition result includes text information from the picture that can be selected and copied. The picture may be a screenshot 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 picture.

应用推荐用于根据OCR识别结果,预测与OCR识别结果相关的应用,并将预测的应用推荐给用户。三方应用用于提供图片或者提供可选择、可复制的文本信息。一种可选的实施例中,应用程序层还可以包括应用交互模块,用于执行将文本内容粘贴到目标应用中的相关操作。The application recommendation is used to predict an application related to the OCR recognition result according to the OCR recognition result, and recommend the predicted application to the user. Third-party applications are used to provide pictures or provide text information that can be selected and copied. In an optional embodiment, the application program layer may further include an application interaction module, configured to perform related operations of pasting text content into the target application.

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

如图2所示,应用程序框架层可以包括视图系统、资源管理器、窗口管理器、活动管理器等。As shown in Figure 2, the application framework layer may include a view system, a resource manager, a window manager, an activity manager, and the like.

其中,视图系统包括可视控件,例如显示文本的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文本的视图以及显示图片的视图。Wherein, the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and the like. The view system can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.

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

窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小、判断是否有状态栏、锁定屏幕、截取屏幕等。A window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.

活动管理器用于管理各个应用程序的生命周期以及导航回退功能,负责Android的主线程创建,各个应用程序的生命周期的维护。The activity manager is used to manage the life cycle of each application program and the navigation fallback function, and is responsible for creating the main thread of Android and maintaining the life cycle of each application program.

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

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

应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application program layer and the application program framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

系统库可以包括多个功能模块,例如表面管理器(surface manager)等。The system library may include multiple functional modules, such as a surface manager (surface manager) and the like.

表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.

内核层是硬件和软件之间的层。内核层可以包含显示驱动、传感器驱动等模块。The kernel layer is the layer between hardware and software. The kernel layer can contain modules such as display drivers and sensor drivers.

可以理解的是,图2示出的软件结构中的层以及各层中包含的部件,并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的层,以及每个层中可以包括更多或更少的部件,本申请不做限定。It can be understood that the layers in the software structure shown in FIG. 2 and the components included in each layer do not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer layers than shown, and each layer may include more or fewer components, which is not limited in the present application.

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

本申请实施例提供的应用程序推荐方法,对于用户查看的视频,无论视频来源何处例如相册中的视频、应用程序中的视频或者广告视频等,均禁止对其触发OCR,禁止触发OCR包括禁止主动对其进行ORC、禁止被动对其进行OCR即用户触发设备对其进行OCR。对于用户查看的图片,首先需要判定图片中是否包含文本,若图片中不包含文本,即便进行ORC后也无OCR结果,因此不触发OCR。对于包含文本的图片,基于图片所处界面判定图片处于低概率场景还是高概率场景下,高概率场景主动对图片进行OCR,低概率场景被动对图片进行OCR。对于高低概率的判定规则参照后续相关说明,例如:在通讯类应用中,对于用户主动推动的图片,查看图片时可判定为高概率场景。这是由于用户主动发布的图片包含有用信息的概率更大,用户从中提取文本的概率更高,因此主动对其进行OCR,无需等待用户触发OCR,即可节省时间又可缩减操作步骤。无论是系统主动OCR还是被动OCR,在对图片执行OCR过程中均会对图片中的文本进行分析,查找文本中是否包含预设实体例如:地址、电话号码或者口令类文本,若包含则进行应用推荐,若不包含,则不进行应用推荐。进行应用推荐时,可以推荐应用图标或者服务列表,服务列表中包含多个服务选项。In the application recommendation method provided by the embodiment of this application, no matter where the video is viewed by the user, such as a video in an album, a video in an application, or an advertisement video, etc., it is prohibited to trigger OCR for the video viewed by the user. Prohibiting triggering OCR includes prohibiting Actively perform ORC on it, and prohibit passive OCR on it, that is, the user triggers the device to perform OCR on it. For the picture viewed by the user, it is first necessary to determine whether the picture contains text. If the picture does not contain text, there will be no OCR result even after ORC, so OCR will not be triggered. For a picture containing text, it is determined whether the picture is in a low-probability scene or a high-probability scene based on the interface where the picture is located. The high-probability scene actively performs OCR on the picture, and the low-probability scene passively performs OCR on the picture. For the determination rules of high and low probability, please refer to the subsequent related instructions. For example, in communication applications, for pictures actively promoted by users, it can be judged as high probability scenes when viewing pictures. This is because the pictures posted by the user have a higher probability of containing useful information, and the user has a higher probability of extracting text from them. Therefore, OCR is actively performed on it without waiting for the user to trigger OCR, which can save time and reduce operation steps. Regardless of the system's active OCR or passive OCR, the text in the image will be analyzed during the OCR process of the image to find out whether the text contains preset entities such as addresses, phone numbers, or passwords, and apply them if they are included Recommendation, if not included, no application recommendation will be made. When recommending an application, an application icon or a service list may be recommended, and the service list includes multiple service options.

下面结合图9中示例性示出的基于图片进行应用推荐时用户与设备间交互的流程图,对本申请实施例的应用程序推荐方法进行说明,如图9所示,该应用程序推荐方法可包括如下步骤:The application recommendation method in the embodiment of the present application will be described below in conjunction with the flowchart of interaction between the user and the device when the application recommendation based on pictures is exemplarily shown in FIG. 9 . As shown in FIG. 9 , the application recommendation method may include Follow the steps below:

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

图片可以来源于图库、实时截屏、浏览器、邮件、通讯类应用如微信、QQ等等,本申请实施例中对图片的来源不做限制,其中,APP即应用程序。设备接收到用户点击APP中图片的操作后,全屏或放大显示被点击的图片。The pictures can come from a gallery, real-time screenshots, browsers, emails, and communication applications such as WeChat, QQ, etc. In this embodiment of the application, there is no limitation on the source of the pictures, and the APP is an application program. After the device receives the user's operation of clicking the picture in the APP, it will display the clicked picture in full screen or enlarged.

用户对图片的点击可以包括:单击、双击或者双指点击等,在此不做具体限制。此外,除了点击图片外,还可以通过长按、滑动等操作触发设备执行S2。The user's click on the picture may include: single click, double click, or two-finger click, etc., which is not specifically limited here. In addition, in addition to clicking on the picture, the device can also be triggered to execute S2 through operations such as long pressing and sliding.

S2:解析被点击图片的位置标志,与数据库位置标志比对,区分高低概率场景。S2: Analyze the position mark of the clicked picture, compare it with the position mark of the database, and distinguish high and low probability scenes.

本申请实施例中的应用推荐方法由端侧输入、应用程序框架以及端侧输出三部分交互实现,端侧输入、端侧输出主要执行与用户的交互及界面的显示,应用程序框架执行应用推荐的内部逻辑,为便于后续阅读本实施例中将三个部分统称为设备。The application recommendation method in the embodiment of this application is implemented by three parts: device-side input, application program framework, and device-side output. The device-side input and device-side output mainly perform interaction with users and interface display, and the application program framework performs application recommendation. For the convenience of subsequent reading, the three parts are collectively referred to as devices in this embodiment.

位置标志用于指示xx应用中的xx界面,位置标志中可包含应用标识和界面标识。设备接收到用户点击APP的图片后,确定前台开启的应用以及当前显示的界面,基于所确定的应用和界面信息可解析图片的位置标志。The location flag is used to indicate the xx interface in the xx application, and the location flag may include an application identifier and an interface identifier. After the device receives the picture of the APP clicked by the user, it determines the application opened in the foreground and the currently displayed interface, and can analyze the position mark of the picture based on the determined application and interface information.

数据库中与预存有高概率场景对应的位置标志,在解析到被点击图片的位置标志后,将其与数据库中预存的位置标志进行比对,若数据库中存在与解析到的位置标志匹配的位置标志,则确定图片当前所处场景为高概率场景;若数据库中不存在与解析到的位置标志匹配的位置标志,则确定图片当前所处场景为低概率场景。The position mark corresponding to the pre-stored high-probability scene in the database, after parsing the position mark of the clicked picture, compare it with the pre-stored position mark in the database, if there is a position in the database that matches the parsed position mark flag, it is determined that the current scene of the picture is a high-probability scene; if there is no position mark matching the parsed position mark in the database, it is determined that the current scene of the picture is a low-probability scene.

数据库中预存的高概率场景对应的位置标志可由本领域技术人员灵活设置,本申请实施例中对此不做具体限定。例如:可设置为通讯类应用下用户可以主动推送图片的界面如聊天界面、动态分享界面等对应的位置标志为高概率场景。用户主动推送并不仅仅指本电子设备用户,还包括其他电子设备用户。例如:用户通讯类软件中的好友均可以视为用户。The location markers corresponding to the high-probability scenes prestored in the database can be flexibly set by those skilled in the art, and this is not specifically limited in this embodiment of the present application. For example, it can be set as a high-probability scene for an interface where the user can actively push pictures under the communication application, such as a chat interface, a dynamic sharing interface, and the like. User active push does not only refer to users of this electronic device, but also includes users of other electronic devices. For example: friends in the user's communication software can be regarded as users.

S3:生成判定结果。S3: Generate a determination result.

判定结果包括:高概率场景、低概率场景。在判定结果为高概率场景的情况下,执行主动对图片进行OCR和应用程序推荐分支,直接跳转至S6执行S6及后续步骤;在判定结果为低概率场景的情况下,执行被动对图片进行OCR和应用程序推荐分支即S4-S7。Judgment results include: high-probability scenarios and low-probability scenarios. If the judgment result is a high-probability scene, perform active OCR on the picture and the application recommendation branch, and directly jump to S6 to execute S6 and subsequent steps; if the judgment result is a low-probability scene, perform passive OCR on the picture OCR and application recommendation branches are S4-S7.

S4:低概率场景下,用户长按图片2s,系统弹出OCR按钮。S4: In a low-probability scenario, the user presses and holds the picture for 2 seconds, and the system pops up the OCR button.

需要说明的是,对图片的长按时长并不局限于2s,具体数值可由本领域技术人员灵活设置,例如3秒、或者1.5秒等。OCR按钮又可称为第一按钮,OCR按钮被用户点击后可触发系统对图片进行OCR。It should be noted that the duration of the long press on the picture is not limited to 2s, and the specific value can be flexibly set by those skilled in the art, such as 3 seconds or 1.5 seconds. The OCR button can also be called the first button. After the OCR button is clicked by the user, the system can be triggered to perform OCR on the picture.

触发系统弹出OCR按钮的操作也不局限于长按图片,还可以包括但不限于:双指按压;预设时长内连续N次点击图片,其中N大于等于2或者在图片中滑动预设轨迹等。The operation that triggers the pop-up OCR button of the system is not limited to long press on the picture, but can also include but not limited to: press with two fingers; click on the picture N times in a row within the preset duration, where N is greater than or equal to 2 or slide the preset track in the picture, etc. .

如果设备在屏幕上弹出OCR按钮后第一预设时长内没有检测到点击OCR按钮的操作,可以确认用户没有对图片进行OCR触发系统进行应用推荐的需求。此时,设备可以在设备屏幕上主动停止显示OCR按钮,即OCR识别按钮从图片界面中消失。第一预设时长可由本领域技术人员灵活设置,例如:设置为2秒、3秒、5秒等,本申请实施例中对此不做具体限制。If the device does not detect the operation of clicking the OCR button within the first preset period of time after the OCR button pops up on the screen, it can be confirmed that the user does not need to perform OCR on the picture to trigger the system to recommend an application. At this time, the device may actively stop displaying the OCR button on the device screen, that is, the OCR recognition button disappears from the image interface. The first preset duration can be flexibly set by those skilled in the art, for example, set to 2 seconds, 3 seconds, 5 seconds, etc., which is not specifically limited in this embodiment of the present application.

在一个示例性的实现过程中,如果用户没有对图片进行OCR触发系统进行应用推荐的需求,用户也可以点击当前界面中OCR按钮外的任意一处。此时,设备检测到用户对OCR按钮外的任意一处的点击操作,可以在设备屏幕上停止显示OCR按钮。这种方式中,设备基于用户操作被动停止显示OCR按钮。In an exemplary implementation process, if the user does not need to OCR trigger the system to recommend applications for pictures, the user can also click any place other than the OCR button in the current interface. At this time, the device detects that the user clicks any place other than the OCR button, and may stop displaying the OCR button on the device screen. In this way, the device passively stops displaying the OCR button based on user actions.

当然,在另一个示例性的实现过程中,如果用户没有对图片进行OCR触发系统进行应用推荐的需求,设备还可以将OCR按钮一直保持在未开启状态。Of course, in another exemplary implementation process, if the user does not require the OCR triggering system to recommend applications for pictures, the device may also keep the OCR button in the off state.

对于OCR按钮的样式可由本领域技术人员灵活设置,本申请实施例中对此不做具体限制。一种示例性的OCR按钮显示方式可以为,OCR按钮弹出后置灰显示,用户点击OCR按钮后取消置灰,以便于用户区分OCR按钮是否被选中。The style of the OCR button can be flexibly set by those skilled in the art, and is not specifically limited in this embodiment of the present application. An exemplary display manner of the OCR button may be that the OCR button pops up and is grayed out, and the user clicks the OCR button and cancels the graying, so that the user can distinguish whether the OCR button is selected.

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

对OCR的点击操作可以包括但不限于:单击、双击等。点击仅是示例性的列举了一种选中OCR按钮的操作,在实际实现过程中还可以长按操作。The click operation for OCR may include but not limited to: single click, double click, etc. Clicking is merely an example of an operation for selecting the OCR button, and a long-press operation may also be performed in an actual implementation process.

S6:对图片进行OCR,识别图片中包含的文本。S6: OCR is performed on the picture, and the text contained in the picture is recognized.

S5-S6为用户点击OCR按钮后,系统才对图片进行OCR识别的过程。该种过程可避免盲目对图片进行OCR占用设备处理资源的问题。在实际实现过程中,也可以在接收到用户对图片的点击操作后便在后台对图片进行OCR识别,识别后依然弹出OCR按钮,在接收到用户点击OCR按钮后无需再耗时执行对图片进行OCR直接显示预先识别到的OCR结果即可,响应速度快。S5-S6 is the process that the system performs OCR recognition on the picture after the user clicks the OCR button. This process can avoid the problem of blindly OCRing pictures and occupying device processing resources. In the actual implementation process, it is also possible to perform OCR recognition on the picture in the background after receiving the user's click operation on the picture, and the OCR button will still pop up after the recognition. OCR can directly display the pre-recognized OCR results, and the response speed is fast.

S7:生成并解析图片OCR识别结果。S7: Generate and analyze the image OCR recognition result.

对图片进行OCR识别的识别结果为图片中包含的文本,识别完成后在全屏显示的图片上高亮显示文本。在高亮显示的文本中包含预设实体的情况下,在侧边栏推送应用信息。在高亮显示的文本中不包含预设实体的情况下,则不推荐应用信息。所推送的应用可以以悬浮球、悬浮窗、侧边栏、应用列表的形式显示,所推送的应用信息可以为应用图标或服务列表,服务列表中包含多个服务选项。The recognition result of the OCR recognition of the picture is the text contained in the picture. After the recognition is completed, the text is highlighted on the picture displayed in full screen. Push application information in the sidebar when the highlighted text contains preset entities. In the case where the highlighted text does not contain preset entities, it is not recommended to apply the information. The pushed application can be displayed in the form of a floating ball, a floating window, a sidebar, or an application list, and the pushed application information can be an application icon or a service list, and the service list includes multiple service options.

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

不同预设实体对应的推荐应用不同,对于推荐规则可由本领域技术人员灵活设置,一种示例性地推荐规则列表可以包括:The recommendation applications corresponding to different preset entities are different, and the recommendation rules can be flexibly set by those skilled in the art. An exemplary list of recommendation rules can include:

地址推荐地图类应用、购物类应用以及打车类应用;外文推荐单个翻译类应用、快递单号推荐购物类应用、淘口令推荐淘宝应用、抖音口令推荐抖音应用等。Addresses recommend map apps, shopping apps, and taxi apps; foreign languages recommend single translation apps, courier tracking numbers recommend shopping apps, Taobao passwords recommend Taobao apps, Douyin passwords recommend Douyin apps, etc.

电话号码对应推荐第一服务列表,可以包括但不限于:“呼叫电话”、“发送消息”、“添加到通讯录”以及“拷贝”服务选项。身份证号码对应推荐第二服务列表,可以包括但不限于“添加到通讯录”“、拷贝”、“分享”以及“上一个切换应用”服务选项。The phone number corresponds to the recommended first service list, which may include but not limited to: "call phone", "send message", "add to address book" and "copy" service options. The ID card number corresponds to the recommended second service list, which may include but not limited to "add to address book", "copy", "share" and "previous switching application" service options.

码可以包括但不限于支付码、身份识别二维码等,码对应推荐第三服务列表,可以包括但不限于:“在xxx应用中打开”、“在浏览器中打开”、“拷贝链接”、“分享”以及“添加到备忘录”等服务选项。网址对应推荐第四服务列表,可以包括但不限于:“打开链接”、“添加到链接列表”、“拷贝链接”以及“分享”等服务选项。邮箱地址对应推荐第五服务列表,可以包括但不限于:“新建邮箱”、“拷贝”以及“分享”等服务选项。Codes may include but not limited to payment codes, identification QR codes, etc. Codes correspond to the recommended third service list, which may include but not limited to: "open in xxx app", "open in browser", "copy link" , "Share" and "Add to Notes" and other service options. The URL corresponds to the recommended fourth service list, which may include but not limited to: "Open Link", "Add to Link List", "Copy Link", and "Share" and other service options. The email address corresponds to the recommended fifth service list, which may include but not limited to: service options such as "create email", "copy" and "share".

一种示例性的显示方式中,在预设实体下方添加下划线,对于添加下划线的预设实体用户点击该预设实体或者其下方的下划线即可将选中该预设实体,操作方便。In an exemplary display mode, an underline is added below the preset entity, and the user clicks on the underlined preset entity or the underline below it to select the preset entity, which is convenient to operate.

图片上高亮显示的文本为可选择、可点击、可复制的状态,用户可以从中提取全部或部分文本内容。The highlighted text on the picture is selectable, clickable, and copyable, and users can extract all or part of the text content from it.

下面参照图3至图6对主动对图片进行OCR和应用程序推荐分支进行说明。The branch of actively performing OCR on pictures and recommending applications will be described below with reference to FIGS. 3 to 6 .

图3为示例性示出的一种对聊天界面中的图片主动OCR后进行应用推荐的界面示意图。FIG. 3 is a schematic diagram of an interface that exemplarily shows an interface for recommending applications after active OCR of pictures in a chat interface.

如图3(a)所示,用户A即“我”在通讯类应用的聊天界面中点击图片a时,设备解析图片a的位置标志,将位置标志与数据库中管理的高概率位置标志进行比对,确定图片a的位置标志在数据库管理的高概率位置标志内,确定对图片a进行主动OCR。对图片a进行主动OCR后得到OCR识别结果为“北京市海淀区××路××公园”。如图3(b)所示,图片a放大显示后,OCR识别结果“北京市海淀区××路××公园”高亮显示。As shown in Figure 3(a), when user A, that is, "I", clicks picture a in the chat interface of a communication application, the device analyzes the location marker of picture a, and compares the location marker with the high-probability location markers managed in the database. Yes, it is determined that the position marker of the picture a is within the high-probability position markers managed by the database, and it is determined to perform active OCR on the picture a. After performing active OCR on picture a, the OCR recognition result is "XX Park, ×× Road, Haidian District, Beijing". As shown in Figure 3(b), after picture a is enlarged and displayed, the OCR recognition result "XX Park, ×× Road, Haidian District, Beijing" is highlighted.

需要说明的是,图3(b)图中仅是示例性的以高亮的形式突出显示OCR识别结果的一种方式。在实际实现过程中,本领域技术人员可以灵活设置,对于OCR识别结果突出显示的方式不做具体限制。It should be noted that FIG. 3( b ) is only an exemplary way of highlighting the OCR recognition result in a highlighted form. In the actual implementation process, those skilled in the art can flexibly set, and there is no specific limitation on the manner of highlighting the OCR recognition result.

例如,在一个示例中,可为OCR识别结果中的字符添加边框,以表示OCR识别结果为可选择、可点击或者可复制状态。在另一个示例中,可以为OCR识别结果中的字符添加边框并在边框中填充与图片背景不同的底色等。For example, in one example, a border may be added to the characters in the OCR recognition result to indicate that the OCR recognition result is selectable, clickable or copyable. In another example, a frame may be added to the characters in the OCR recognition result and the frame may be filled with a background color different from that of the picture background.

设备主动对图片a进行OCR识别得到文本“北京市海淀区××路××公园”,识别到的文本进行分析,确定该文本为地址属于预设实体,从系统中预设的推荐规则列表中查找地址对应的推荐应用为地图类应用、购物类应用以及打车类应用,在侧边栏推荐地图类应用、购物类应用以及打车类应用。The device actively performs OCR recognition on the picture a to get the text "×× Park, Haidian District ×× Road, Beijing". After analyzing the recognized text, it is determined that the text is an address belonging to a preset entity. From the list of recommended rules preset in the system The recommended applications corresponding to the search address are map applications, shopping applications, and taxi-hailing applications, and map applications, shopping applications, and taxi-hailing applications are recommended in the sidebar.

系统分别从这三类应用中确定目标应用“地图类应用A”、“购物类应用B”以及“打车类应用C”,生成包含“地图类应用A”、“购物类应用B”以及“打车类应用C”图标的任务栏301,显示有任务栏的界面示意图如图3(b)所示。任务栏中除包括推荐的多个应用图标外,还可以包括添加按钮302。用户可点击任务栏中推荐的任意一个应用图标,触发系统开启被点击的应用图标对应的第二应用的界面,在显示第二应用的界面后,用户可手动拖动识别到的地址“北京市海淀区××路××公园”至第二应用的界面中进行导航。系统也可以在显示第二应用的界面后,自动将识别到的地址“北京市海淀区××路××公园”至第二应用的界面中进行导航。其中,任务栏又可称为侧边栏或者应用列表。The system respectively determines the target applications "map application A", "shopping application B" and "taxi application C" from these three types of applications, and generates the target application including "map application A", "shopping application B" and "taxi application C". The taskbar 301 of the class application C" icon, and the schematic diagram of the interface displaying the taskbar is shown in FIG. 3( b ). In addition to including multiple recommended application icons, the task bar may also include an add button 302 . The user can click any application icon recommended in the taskbar to trigger the system to open the interface of the second application corresponding to the clicked application icon. After the interface of the second application is displayed, the user can manually drag the recognized address "Beijing Haidian District ×× Road ×× Park" to navigate in the interface of the second application. After displaying the interface of the second application, the system may automatically navigate the recognized address "XX Park, ×× Road, Haidian District, Beijing" to the interface of the second application. Wherein, the task bar may also be called a side bar or an application list.

相应地,当想要在任务栏中显示“地图类应用A”、“购物类应用B”以及“打车类应用C”以外的其他应用(例如地图类应用D)的应用图标时,用户可以点击添加按钮302,此时,任务栏从上到下可以依次显示“购物类应用B”、“打车类应用C”以及“地图类应用D”。用户可通过点击添加按钮302切换任务栏中推荐的应用图标。任务栏301也可视为一个悬浮窗,悬浮窗又可视为第一图标。Correspondingly, when wanting to display application icons of other applications (such as map application D) other than "map application A", "shopping application B" and "taxi application C" in the task bar, the user can click The button 302 is added. At this time, the task bar may display "shopping application B", "taxi-hailing application C" and "map application D" in sequence from top to bottom. The user can switch the recommended application icons in the taskbar by clicking the add button 302 . The task bar 301 can also be regarded as a floating window, and the floating window can be regarded as the first icon.

需要说明的是,若设备中仅安装有一个地图类应用、一个购物类应用以及一个打车类应用,任务栏在进行应用推荐时可仅显示一个地图类应用、一个购物类应用以及一个打车类应用的图标,由于无其他应用可切换推荐,因此可不显示添加按钮302。It should be noted that if only one map application, one shopping application, and one taxi application are installed on the device, the taskbar may only display one map application, one shopping application, and one taxi application when recommending applications. icon, since there is no other application to switch to the recommendation, the add button 302 may not be displayed.

本申请实施例中,任务栏对应的控件位于屏幕的最上层,这样,可以避免推荐的应用列表被设备屏幕上的其他界面覆盖,影响后续从推荐应用列表中选择应用图标的操作。In the embodiment of the present application, the control corresponding to the task bar is located at the top of the screen, so that the recommended application list can be prevented from being covered by other interfaces on the device screen, which will affect the subsequent operation of selecting an application icon from the recommended application list.

需要理解的是,以上的根据对图片主动OCR后得到的地址确定推荐应用列表的方式仅为示意性举例,本申请实施例中,对于任务栏中图标、添加按钮的排列方式、样式以及任务栏的显示位置不做具体限制。It should be understood that the above method of determining the recommended application list based on the address obtained after the active OCR of the picture is only a schematic example. The display position of is not specifically limited.

图3中所示的主动对图片进行OCR后进行应用推荐的方式,无需用户手动触发OCR流程便主动为用户推荐应用,由于为用户推荐了应用,因此无需用户从桌面中大量的应用中查找目标应用,操作便捷且可节省应用查找所耗时间。As shown in Figure 3, the method of actively recommending applications after OCR of images does not require users to manually trigger the OCR process to actively recommend applications for users. Since applications are recommended for users, users do not need to search for targets from a large number of applications on the desktop. The application is easy to operate and saves time spent on searching for applications.

图4为示例性示出的一种对朋友圈中的图片主动OCR后进行应用推荐的界面示意图,其中,通讯类应用中的朋友圈可视为动态分享界面。Fig. 4 is an exemplary diagram showing an interface for recommending applications after actively OCRing pictures in the circle of friends, wherein the circle of friends in the communication application can be regarded as a dynamic sharing interface.

如图4(a)所示,用户即“我”在通讯类应用的朋友圈中点击自己分享的图片b时,设备解析图片b的位置标志,将位置标志与数据库中管理的高概率位置标志进行比对,确定图片b的位置标志在数据库管理的高概率位置标志内,确定对图片b进行主动OCR。对图片b进行主动OCR后得到OCR识别结果为“Xixi:/啊FfthxKgYVSh微史高治的光辉岁月全套…更多信息”。如图4(b)所示,图片b全屏显示后,OCR识别结果“Xixi:/啊FfthxKgYVSh微史高治的光辉岁月全套…更多信息”高亮显示。As shown in Figure 4(a), when the user "I" clicks on the picture b shared by myself in the circle of friends of the communication application, the device analyzes the location mark of the picture b, and compares the location mark with the high-probability position mark managed in the database. After comparison, it is determined that the location marker of picture b is within the high-probability location marker managed by the database, and it is determined to perform active OCR on picture b. After performing active OCR on picture b, the OCR recognition result is "Xixi:/ah FfthxKgYVSh Wei Shi Gaozhi's glory days full set...more information". As shown in Figure 4(b), after picture b is displayed in full screen, the OCR recognition result "Xixi:/ah FfthxKgYVSh Wei Shi Gaozhi's glory days full set... more information" is highlighted.

设备识别到OCR识别结果为一个淘口令,从预设推荐规则中查找淘口令对应的应用为淘宝口令,生成包含“淘宝应用”图标的任务栏401,显示有任务栏的界面示意图如图4(c)所示。任务栏中除包括推荐的“淘宝应用”图标外,还可以包括添加按钮402。用户可点击“淘宝应用”图标,触发系统开启淘宝应用进入淘宝应用的主界面。The device recognizes that the OCR recognition result is a Taobao password, finds the application corresponding to the Taobao password from the preset recommendation rules as the Taobao password, and generates a task bar 401 containing the icon of "Taobao application", and the schematic diagram of the interface showing the task bar is shown in Figure 4 ( c) as shown. In addition to the recommended "Taobao application" icon, the taskbar may also include an add button 402 . The user can click the "Taobao application" icon to trigger the system to open the Taobao application and enter the main interface of the Taobao application.

对于任务栏以及任务栏中添加按钮402的功能,参照图3中的相关说明即可,在此不再赘述。For the taskbar and the function of the add button 402 in the taskbar, please refer to the relevant description in FIG. 3 , which will not be repeated here.

需要说明的是,图4(c)中将推荐的应用图标添加至侧边栏中进行推荐仅是一个示例,在实际实现过程中,推荐的应用图标还可以以悬浮球或者悬浮窗的形式。无论侧边栏、悬浮球还是悬浮窗均可以视为一个显示区域。本申请实施例中,对显示区域的显示位置、尺寸以及形状不做具体限制。It should be noted that adding the recommended application icon to the sidebar for recommendation in FIG. 4(c) is just an example. In actual implementation, the recommended application icon can also be in the form of a floating ball or a floating window. No matter the sidebar, floating ball or floating window can be regarded as a display area. In the embodiment of the present application, no specific limitation is imposed on the display position, size, and shape of the display area.

图4中所示的主动对图片进行OCR后进行应用推荐的方式,无需用户手动触发OCR流程便主动为用户推荐应用,由于为用户推荐了应用,因此无需用户从桌面中大量的应用中查找目标应用,操作便捷且可节省应用查找所耗时间。As shown in Figure 4, the method of actively recommending applications after OCR of images does not require users to manually trigger the OCR process to actively recommend applications for users. Since applications are recommended for users, users do not need to search for targets from a large number of applications on the desktop. The application is easy to operate and saves time spent on searching for applications.

图5为示例性示出的另一种对朋友圈中的图片主动OCR后进行应用推荐的界面示意图。FIG. 5 is an exemplary schematic diagram of another interface for recommending applications after active OCR of pictures in the circle of friends.

如图5(a)所示,用户在通讯类应用的朋友圈中点击好友“联系人乙”分享的图片c时,设备解析图片c的位置标志,将位置标志与数据库中管理的高概率位置标志进行比对,确定图片c的位置标志在数据库管理的高概率位置标志内,确定对图片c进行主动OCR。对图片c进行主动OCR后得到OCR识别结果为“Xixi:/啊FfthxKgYVSh微史高治的光辉岁月全套…更多信息”。如图5(b)所示,图片b全屏显示后,OCR识别结果“Xixi:/啊FfthxKgYVSh微史高治的光辉岁月全套…更多信息”高亮显示,并且在任务栏501中显示推荐的“淘宝应用”图标以及添加按钮502。用户可点击“淘宝应用”图标,触发系统开启淘宝应用进入淘宝应用的主界面。As shown in Figure 5(a), when the user clicks on the picture c shared by the friend "Contact B" in the circle of friends of the communication application, the device analyzes the position mark of the picture c, and compares the position mark with the high probability position managed in the database. The marks are compared to determine that the position mark of the picture c is within the high-probability position marks managed by the database, and it is determined to perform active OCR on the picture c. After performing active OCR on picture c, the OCR recognition result is "Xixi:/ah FfthxKgYVSh Wei Shi Gaozhi's glory days full set...more information". As shown in Figure 5(b), after picture b is displayed in full screen, the OCR recognition result "Xixi:/ah FfthxKgYVSh Wei Shi Gaozhi's glory days full set... more information" is highlighted, and the recommended one is displayed in the task bar 501 “Taobao application” icon and add button 502 . The user can click the "Taobao application" icon to trigger the system to open the Taobao application and enter the main interface of the Taobao application.

对于设备如何依据OCR识别结果确定推荐淘宝应用、任务栏以及添加按钮的相关说明参照对图4中的相关说明即可,在此不再赘述。For the relevant description of how the device determines the recommended Taobao application, task bar and add button according to the OCR recognition result, please refer to the relevant description in FIG. 4 , and will not repeat them here.

图5中所示的在识别到用户在通讯类应用中,对用户主动推送的图片,主动进行OCR后进行应用推荐的方式,无需用户手动触发OCR流程便主动为用户推荐应用,由于为用户推荐了应用,因此无需用户从桌面中大量的应用中查找目标应用,操作便捷且可节省应用查找所耗时间。As shown in Figure 5, after recognizing that the user is in the communication application, the user actively pushes the picture, and then actively recommends the application after OCR. The user does not need to manually trigger the OCR process to actively recommend applications for the user. The application is selected, so there is no need for the user to search for the target application from a large number of applications on the desktop, the operation is convenient and the time spent on application search can be saved.

图3-图5中均为主动对图片OCR后,OCR识别结果中包含预设实体如:口令类、地址时,基于OCR识别结果中包含的预设实体进行应用推荐的方案。在实际应用过程中,主动对图片进行OCR识别后,OCR识别结果中可能不包含预设实体,该种情况下则不进行应用推荐,下面参照图6对该种情况进行说明。Figures 3-5 are all schemes for recommending applications based on the preset entities contained in the OCR recognition results when the OCR recognition results of the pictures contain preset entities such as passwords and addresses after active OCR of the pictures. In the actual application process, after actively performing OCR recognition on the picture, the OCR recognition result may not contain the preset entity. In this case, no application recommendation will be performed. The situation will be described below with reference to FIG. 6 .

图6为示例性示出的一种对聊天界面中的图片主动OCR后进行应用推荐的界面示意图。FIG. 6 is a schematic diagram of an interface for recommending applications after actively OCRing pictures in a chat interface.

如图6(a)所示,用户在通讯类应用的聊天界面中点击图片d时,设备解析图片d的位置标志,将位置标志与数据库中管理的高概率位置标志进行比对,确定图片d的位置标志在数据库管理的高概率位置标志内,确定对图片d进行主动OCR。对图片d进行主动OCR后得到OCR识别结果为“手机的主要功能为通讯,方便人们的沟通。现在的智能手机,还有娱乐、导航、购物等功能”。如图6(b)所示,图片b全屏显示后,OCR识别结果“手机的主要功能为通讯,方便人们的沟通。现在的智能手机,还有娱乐、导航、购物等功能”高亮显示,无应用推荐。As shown in Figure 6(a), when the user clicks on the picture d in the chat interface of the communication application, the device analyzes the position mark of the picture d, compares the position mark with the high-probability position mark managed in the database, and determines the position mark of the picture d The location markers of are within the high-probability location markers managed by the database, and it is determined to perform active OCR on the picture d. After active OCR of picture d, the OCR recognition result is "the main function of the mobile phone is communication, which is convenient for people to communicate. Today's smart phones also have entertainment, navigation, shopping and other functions." As shown in Figure 6(b), after picture b is displayed in full screen, the OCR recognition result "The main function of the mobile phone is communication, which is convenient for people to communicate. Today's smart phones also have entertainment, navigation, shopping and other functions" are highlighted, No app recommendations.

图6(b)中全屏显示图片d仅是一种放大显示图片d的示例,在实际实现过程中,还可以将图片d放大预设倍数,放大后的图片d不占满屏幕。需要说明的是,图6中仅是示例性的列举了对于聊天界面中的图片不包含预设实体时,虽然主动执行OCR但是不进行应用推荐。该种在确定OCR识别结果中不包含预设实体的情况下,不进行应用推荐的规则同样可适用于其他场景下主动OCR图片的应用推荐,以及各被动OCR的图片的应用推荐的场景。The full-screen display of picture d in Figure 6(b) is just an example of zooming in on picture d. In actual implementation, picture d can also be enlarged by a preset multiple, so that the enlarged picture d does not occupy the entire screen. It should be noted that, in FIG. 6 , it is only an example that when the picture in the chat interface does not contain a preset entity, although the OCR is actively performed, no application recommendation is performed. The rule of not recommending an application when it is determined that the OCR recognition result does not contain a preset entity is also applicable to the application recommendation of active OCR pictures in other scenarios and the application recommendation of passive OCR pictures.

图6中所示的在识别到用户在通讯类应用中,对用户主动推送的图片,主动进行OCR后,由于OCR识别结果中不包含预设实体,为避免盲目推荐应用干扰用户,所以不进行应用推荐。但由于图片d中的文本已经完成了OCR,因此图片d中所示的OCR结果为可复制、选中的状态,用户可根据需求从显示的OCR识别结果中提取文本。所提取的文本可直接粘贴到用户开启的目标应用中,无需用户手动录入文本信息,操作便捷且节省时间。As shown in Figure 6, after recognizing that the user is actively pushing the picture in the communication application, after actively performing OCR, since the OCR recognition result does not contain the preset entity, in order to avoid blindly recommending the application to interfere with the user, it is not performed. App recommendations. However, since the text in picture d has been OCRed, the OCR result shown in picture d can be copied and selected, and users can extract text from the displayed OCR recognition results according to their needs. The extracted text can be directly pasted into the target application opened by the user, without the need for the user to manually enter the text information, which is convenient and time-saving.

下面参照图7至图8对被动对图片进行OCR和应用程序推荐分支进行说明。The branch of passively performing OCR on pictures and recommending applications will be described below with reference to FIG. 7 to FIG. 8 .

图7为示例性示出的一种查看订阅号中图片过程的界面示意图。图8A为示例性示出的一种对订阅号中的图片被动OCR后进行应用推荐的界面示意图;图8B为示例性示出的又一种对订阅号中的图片被动OCR后进行应用推荐的界面示意图。Fig. 7 is an exemplary interface diagram showing a process of viewing pictures in a subscription account. Fig. 8A is a schematic diagram of an interface for recommending applications after passive OCR of pictures in a subscription account; Fig. 8B is an example of another interface for recommending applications after passive OCR of pictures in a subscription account Interface diagram.

本示例中以在订阅号中查看图片时,触发图片被动OCR分支为例进行说明,图片被动OCR对应的场景有很多例如用户点击查看浏览器中的图片时触发图片被动OCR、例如用户查看公众号中的图片时触发图片被动OCR、再例如用户查看文件中的图片时触发图片被动OCR等,除了设备数据库中预存的高概率场景外的其他场景均视为低概率场景,在此不再一一列举。In this example, when viewing a picture in a subscription account, the passive OCR branch of the picture is triggered as an example. There are many scenarios corresponding to the passive OCR of the picture. For example, when the user clicks to view the picture in the browser, the passive OCR of the picture is triggered. The passive OCR of the image is triggered when the image in the file is triggered, and the passive OCR of the image is triggered when the user views the image in the file, etc., except for the high-probability scene pre-stored in the device database, other scenes are regarded as low-probability scenes. enumerate.

如图7(a)所示,订阅号信息主界面中包含多个订阅号如“天通苑文化艺术中心”“超市发生活”等,用户点击“超市发生活”下的图片e进入“超市发生活”订阅号中的“私厨快报-高汤面”栏,此时成功进入了订阅号。As shown in Figure 7(a), the main interface of the subscription number information contains multiple subscription numbers such as "Tiantongyuan Culture and Art Center", "Supermarket Fat Life", etc., and the user clicks the picture e under "Supermarket Fat Life" to enter the "Supermarket Fat Life" In the "Private Kitchen Express - High Soup Noodles" column in the subscription account, you have successfully entered the subscription account at this time.

进入订阅号后,用户点击查看图片e时,设备接收用户对图片e的点击操作,设备解析图片e的位置标志,将位置标志与数据库中管理的高概率位置标志进行比对,确定图片e的位置标志不在数据库管理的高概率位置标志内,确定对图片e进行被动OCR,因此在接收到用户对图片e的点击操作时,放大显示图片e不对其进行OCR,此时,放大后的图片e中的文本“高汤面”为不可选择、复制、点击的状态。如图7(f)所示,用户想要对图片e进行OCR时,可长按图片中的任意区域,触发系统显示如图8A(a)中所示的OCR按钮801,用户可点击OCR按钮801触发设备对图片e进行OCR,设备对图片e进行OCR后高亮显示OCR结果“高汤面”,显示有OCR结果的界面示意图如图8A(b)所示。对OCR按钮的选中操作并不局限于图8A(a)中所示的点击,还可以包括但不限于:长按、双指点击或者滑动操作等,本申请实施例对此不做具体限制。After entering the subscription account, when the user clicks to view the picture e, the device receives the user's click operation on the picture e, and the device analyzes the position mark of the picture e, compares the position mark with the high-probability position mark managed in the database, and determines the position mark of the picture e. The position mark is not in the high-probability position marks managed by the database, and it is determined to perform passive OCR on the picture e. Therefore, when the user clicks on the picture e, the picture e is enlarged and displayed without OCR. At this time, the enlarged picture e The text "Noodle Soup" in is in a state that cannot be selected, copied, or clicked. As shown in Figure 7(f), when the user wants to perform OCR on the picture e, he can press and hold any area in the picture, the trigger system will display the OCR button 801 as shown in Figure 8A(a), and the user can click the OCR button Step 801 triggers the device to perform OCR on the picture e, and after performing OCR on the picture e, the device highlights the OCR result "Noodles in Broth", and a schematic diagram of the interface displaying the OCR result is shown in Figure 8A(b). The selection operation of the OCR button is not limited to the click shown in FIG. 8A(a), but may also include but not limited to: long press, two-finger click or slide operation, etc., which is not specifically limited in this embodiment of the present application.

OCR按钮用于触发设备对图片进行OCR。需要说明的是,本申请实施例各附图中所示的OCR按钮仅是一种示例,本申请实施例中对OCR按钮的样式、显示位置以及尺寸不做具体限制。由于图片e的OCR识别结果为“高汤面”不属于预设的口令类、地址或者电话号码等预设实体,因此设备不基于OCR识别结果为“高汤面”进行应用程序推荐,相应地在8A(b)所示的界面中未显示应用程序推荐信息。The OCR button is used to trigger the device to perform OCR on the picture. It should be noted that the OCR button shown in the drawings of the embodiment of the present application is only an example, and the style, display position and size of the OCR button are not specifically limited in the embodiment of the present application. Since the OCR recognition result of picture e is "Noodles in Soup" which does not belong to preset entities such as passwords, addresses, or phone numbers, the device does not recommend applications for "Noodles in Soup" based on the OCR recognition result. Correspondingly, in 8A Application recommendation information is not displayed in the interface shown in (b).

图8B为示例性示出的又一种对订阅号中的图片被动OCR后进行应用推荐的界面示意图。FIG. 8B is a schematic diagram of another interface for recommending applications after passive OCR of pictures in the subscription account.

以用户在订阅号中查看的图片e为图8B(a)中所示的图片为例,用户按照图7中所示的流程进入订阅号查看图片e,并长按放大显示后的图片e后,设备在图片e上悬浮显示OCR按钮,用户点击OCR按钮后,触发设备对图片e进行OCR,设备对图片e进行OCR后高亮显示OCR结果“面馆电话:151xxxx”,显示有OCR结果的界面示意图如图8B(b)所示。设备对OCR结果“面馆电话:151xxxx”进行文本分析,确定OCR结果为电话号码,将其与系统中预存的各预设实体进行比对,确定电话号码为预设实体,进一步依据推荐规则确定电话号码对应的推荐信息为第一服务列表802,在放大后的图片e上显示第一服务列表802,显示有第一服务列表的界面如图8B(b)所示。第一服务列表802中包括:第一服务列表中包括:“呼叫电话151xx”、“发送消息”、“添加到通讯录”以及“拷贝”服务选项,显示有第一服务列表80用户可点击任意一个服务选项触发系统跳转至该服务选项对应的目标界面中,用户可手动或者由系统自动将电话“151xxxx”添加至目标界面中的目标输入框中。所推荐的服务列表可以以悬浮窗的形式显示,悬浮窗中显示所推荐的各服务选项。对放大后的图片e的长按时长可以由本领域技术人员灵活设置,本申请实施例中对此不做具体限制。例如:设置为2s、3s或者1.5s等。Take the picture e viewed by the user in the subscription account as the picture shown in Figure 8B(a) as an example, the user enters the subscription account to view the picture e according to the process shown in Figure 7, and presses and holds the enlarged picture e. , the device displays the OCR button floating on the picture e. After the user clicks the OCR button, the device is triggered to perform OCR on the picture e. After the device performs OCR on the picture e, the OCR result is highlighted, "noodle shop phone: 151xxxx", and the interface with the OCR result The schematic diagram is shown in Fig. 8B(b). The device conducts text analysis on the OCR result "noodle shop phone: 151xxxx", determines that the OCR result is a phone number, compares it with the preset entities stored in the system, determines that the phone number is a preset entity, and further determines the phone number according to the recommendation rules The recommended information corresponding to the number is the first service list 802, and the first service list 802 is displayed on the enlarged picture e, and the interface displaying the first service list is shown in FIG. 8B(b). Include in the first service list 802: Include in the first service list: " call phone 151xx ", " send message ", " add to address book " and " copy " service option, show that first service list 80 users can click any A service option triggers the system to jump to the target interface corresponding to the service option, and the user can manually or automatically add the phone number "151xxxx" to the target input box in the target interface. The recommended service list may be displayed in the form of a floating window, and each recommended service option is displayed in the floating window. The duration of the long press on the enlarged picture e can be flexibly set by those skilled in the art, and is not specifically limited in this embodiment of the present application. For example: set to 2s, 3s or 1.5s, etc.

需要说明的是,本申请实施例各附图中所述显示的推荐应用、服务列表等推荐信息均为示意性举例,基于OCR识别结果进行应用推荐的具体规则可由本领域技术人员灵活预设在设备中。图7-图8中所示的在识别到用户查看图片并非通讯类应用中,用户主动推送的图片时,设备被动对图片进行OCR,由用户手动控制设备对图片进行OCR,可避免设备盲目对图片主动进行OCR推荐应用干扰用户。在用户主观意愿对图片进行OCR时,再由用户对图片执行长按、点击OCR按钮等操作,触发设备对图片进行OCR并基于OCR识别结果进行应用程序推荐,用户无需再退出当前应用从主界面中显示的大量应用程序中查找目标应用,操作便捷且可节省查找目标应用所耗时长,能够提示用户体验。It should be noted that the recommended applications, service lists and other recommended information displayed in the drawings of the embodiments of the present application are schematic examples, and specific rules for application recommendation based on OCR recognition results can be flexibly preset by those skilled in the art in in the device. As shown in Figure 7-8, when it is recognized that the user is viewing a picture that is not a communication application, when the user actively pushes the picture, the device passively performs OCR on the picture, and the user manually controls the device to perform OCR on the picture, which can prevent the device from blindly Actively performing OCR on pictures to recommend apps interferes with users. When the user subjectively wishes to perform OCR on the picture, the user performs operations such as long pressing the picture or clicking the OCR button to trigger the device to perform OCR on the picture and recommend applications based on the OCR recognition results. The user does not need to exit the current application from the main interface. Finding the target application among a large number of applications displayed in , the operation is convenient and can save the time spent in finding the target application, and can prompt the user experience.

下面结合图10和图11,对本申请实施例的应用程序推荐方法的流程进行说明。其中,图10为示例性示出的应用程序推荐方法的流程示意图;图11为示例性示出的主动OCR触发过程与被动OCR触发过程的流程图。The flow of the application program recommendation method according to the embodiment of the present application will be described below with reference to FIG. 10 and FIG. 11 . Wherein, FIG. 10 is a schematic flowchart of an exemplary application recommendation method; FIG. 11 is an exemplary flowchart of an active OCR triggering process and a passive OCR triggering process.

如图10所示,应用程序推荐方法流程主要包括:设备接收用户触发查看图片的操作,其中,触发查看图片的操作可以包括但不限于:对图片的单击操作、双击操作等。设备解析被查看图片的位置标志,设备将解析到的位置标志与数据库中预存的高概率场景的位置标志进行比对,确定用户对图片执行OCR的概率类别。其中,概率类别包括:高概率和低概率。As shown in FIG. 10 , the process of the application recommendation method mainly includes: the device receives an operation triggered by the user to view pictures, wherein the operation triggered to view pictures may include but not limited to: single-click operation, double-click operation, etc. on the picture. The device analyzes the position mark of the viewed picture, and the device compares the parsed position mark with the position mark of the high-probability scene pre-stored in the database, and determines the probability category for the user to perform OCR on the picture. Among them, the probability category includes: high probability and low probability.

在确定用户对图片执行OCR的概率类别为高概率时,放大图片并主动对图片进行OCR,在放大后的图片中高亮显示OCR识别结果。设备依据OCR识别结果,进行应用推荐,应用程序推荐流程结束。对于依据OCR识别结果,进行应用推荐的具体方式,参照实施例中的前述相关内容即可,在此不再赘述。When it is determined that the probability category for the user to perform OCR on the picture is high probability, zoom in on the picture and actively perform OCR on the picture, and highlight the OCR recognition result in the enlarged picture. The device recommends applications based on the OCR recognition results, and the application recommendation process ends. For a specific manner of recommending an application based on the OCR recognition result, refer to the above-mentioned related content in the embodiment, and details will not be repeated here.

在确定用户对图片执行OCR的概率类别为低概率时,确定对图片执行被动OCR,被动OCR流程为:放大图片,在接收到用户对图片的长按操作时,显示OCR按钮;判断用户是否触发OCR按钮,若是,响应于用户触发OCR按钮的操作,对图片进行OCR,高亮显示OCR识别结果,依据OCR识别结果进行应用推荐;若用户在第一预设时长内未接收到用户触发OCR按钮的操作,结束应用程序推荐流程。When it is determined that the probability category of the user performing OCR on the picture is low probability, it is determined to perform passive OCR on the picture. The passive OCR process is: zoom in on the picture, and display the OCR button when receiving the user's long press operation on the picture; determine whether the user triggers OCR button, if yes, in response to the operation of the user triggering the OCR button, OCR is performed on the picture, the OCR recognition result is highlighted, and the application recommendation is made according to the OCR recognition result; if the user does not receive the user triggering the OCR button within the first preset time period operation to end the application recommendation process.

本申请实施例提供的依据图片的位置标志判定对图片执行主动OCR还是被动OCR的方式,可以避免盲目为图片进行OCR后进行应用程序推荐,对用户造成干扰。The method of determining whether to perform active OCR or passive OCR on a picture according to the position mark of the picture provided by the embodiment of the present application can avoid blindly performing OCR on the picture and recommending an application program, causing interference to the user.

图11示例性示出了主动OCR触发过程与被动OCR触发过程的流程图,下面参照图11对这两个触发过程进行说明。FIG. 11 exemplarily shows a flowchart of an active OCR triggering process and a passive OCR triggering process. The two triggering processes will be described below with reference to FIG. 11 .

如图11所示,主动OCR触发过程包括:设备响应于单击图片的操作,全屏显示图片,对图片进行OCR后,高亮显示图片中的文字即OCR识别结果。在OCR识别结果中包含地址、电话号码或者口令类文本的情况下,弹出侧边应用栏,推荐相关应用。在OCR识别结果中不包含预设实体即OCR识别结果为普通文本时,不做应用推荐。As shown in Figure 11, the active OCR triggering process includes: the device responds to the operation of clicking the picture, displays the picture in full screen, and after performing OCR on the picture, highlights the text in the picture, which is the OCR recognition result. When the OCR recognition result contains address, phone number or password text, a side application bar will pop up to recommend related applications. When the OCR recognition result does not contain the preset entity, that is, when the OCR recognition result is ordinary text, no application recommendation is made.

被动OCR触发过程包括:响应于单击图片的操作,全屏显示图片。当用户单击图片时,图片还原成放大前的尺寸,不触发OCR。用户长按2s图片触发OCR,屏幕侧边弹出OCR按钮,用户点击OCR按钮,设备对图片进行OCR识别,高亮显示图片中的文字即OCR识别结果。在OCR识别结果中包含地址、电话号码或者口令类文本的情况下,弹出侧边应用栏,推荐相关应用。在OCR识别结果中不包含预设实体即OCR识别结果为普通文本时,不做应用推荐。The passive OCR triggering process includes: displaying the picture in full screen in response to the operation of clicking the picture. When the user clicks on the picture, the picture will be restored to its original size without triggering OCR. The user presses and holds the picture for 2 seconds to trigger OCR, and the OCR button pops up on the side of the screen. When the user clicks the OCR button, the device performs OCR recognition on the picture, and the highlighted text in the picture is the OCR recognition result. When the OCR recognition result contains address, phone number or password text, a side application bar will pop up to recommend related applications. When the OCR recognition result does not contain the preset entity, that is, when the OCR recognition result is ordinary text, no application recommendation is made.

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

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

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

本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的屏幕录制方法。This embodiment also provides a computer program product, which, when running on a computer, causes the computer to execute the above-mentioned related steps, so as to realize the screen recording method in the above-mentioned embodiment.

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

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

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

作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。A unit described as a separate component may or may not be physically separated, and a component shown as a unit may be one physical unit or multiple physical units, which may be located in one place or distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

本申请各个实施例的任意内容,以及同一实施例的任意内容,均可以自由组合。对上述内容的任意组合均在本申请的范围之内。Any content of each embodiment of the present application, as well as any content of the same embodiment, can be freely combined. Any combination of the above contents is within the scope of the present application.

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

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

Claims (14)

1.一种应用程序推荐方法,应用于电子设备,其特征在于,包括:1. A method for recommending an application program, applied to an electronic device, characterized in that it comprises: 响应于用户对第一应用中第一图片的第一操作,确定所述电子设备前台开启的应用以及当前显示的界面;In response to the user's first operation on the first picture in the first application, determine the application opened in the foreground of the electronic device and the currently displayed interface; 根据当前前台开启的应用和当前显示的界面的界面信息,解析所述第一图片的位置标志,所述位置标志包含应用标识和界面标识;According to the interface information of the application opened in the current foreground and the currently displayed interface, analyze the position mark of the first picture, the position mark includes the application mark and the interface mark; 依据所述第一图片的位置标志判定所述第一图片对应的场景类型,其中,所述场景类型包括:高概率场景和低概率场景;Determine the scene type corresponding to the first picture according to the position mark of the first picture, wherein the scene type includes: a high probability scene and a low probability scene; 在所述第一图片对应的场景类型为高概率场景的情况下,对所述第一图片进行OCR,并基于OCR识别结果在所述第一应用的第一区域显示第一图标,所述第一图标为第二应用的应用图标,其中,所述第一图片包含第一文本;When the scene type corresponding to the first picture is a high-probability scene, OCR is performed on the first picture, and a first icon is displayed in a first area of the first application based on an OCR recognition result, and the first icon is displayed in the first area of the first application. An icon is an application icon of the second application, wherein the first picture contains the first text; 响应于用户对第一应用中第二图片的第七操作,确定所述电子设备前台开启的应用以及当前显示的界面;In response to the user's seventh operation on the second picture in the first application, determine the application opened in the foreground of the electronic device and the currently displayed interface; 根据当前前台开启的应用和当前显示的界面的界面信息,解析所述第二图片的位置标志;Analyzing the position mark of the second picture according to the interface information of the currently opened application in the foreground and the currently displayed interface; 依据所述第二图片的位置标志判定所述第二图片对应的场景类型;determining the scene type corresponding to the second picture according to the position mark of the second picture; 在所述第二图片对应的场景类型为低概率场景的情况下,响应于用户对第一应用中第二图片的第二操作,在所述第一应用的第二区域显示第二图标,所述第二图标为文字识别的图标,其中,所述第二图片包含第二文本;In the case that the scene type corresponding to the second picture is a low-probability scene, in response to the user's second operation on the second picture in the first application, a second icon is displayed in the second area of the first application, so The second icon is an icon for text recognition, wherein the second picture contains a second text; 响应于用户对所述第二图标的第三操作,在所述第一应用的第三区域显示第三图标,所述第三图标为第三应用的应用图标,其中,所述第二应用与所述第三应用不同;In response to a third operation performed by the user on the second icon, a third icon is displayed in a third area of the first application, where the third icon is an application icon of a third application, where the second application is the same as the said third application is different; 响应于用户对第二应用中第三图片的第四操作,在所述第二应用的第四区域显示第四图标,所述第四图标为第四应用的应用图标,其中,所述第三图片包含第三文本,其中,所述第一应用与所述第二应用不同,所述第四应用与所述第二应用及所述第三应用不同。In response to the user's fourth operation on the third picture in the second application, a fourth icon is displayed in a fourth area of the second application, and the fourth icon is an application icon of the fourth application, wherein the third The picture includes third text, wherein the first application is different from the second application, and the fourth application is different from the second application and the third application. 2.根据权利要求1所述的方法,其特征在于,所述响应于用户对第一应用中第一图片的第一操作,在所述第一应用的第一区域显示第一图标的步骤,包括:2. The method according to claim 1, wherein the step of displaying the first icon in the first area of the first application in response to the user's first operation on the first picture in the first application, include: 所述响应于用户对第一应用中第一图片的第一操作,在所述第一应用的第一区域显示第一图标,且高亮显示所述第一图片包含的第一文本。In response to the user's first operation on the first picture in the first application, the first icon is displayed in the first area of the first application, and the first text included in the first picture is highlighted. 3.根据权利要求1所述的方法,其特征在于,所述响应于用户对第一应用中第一图片的第一操作,在所述第一应用的第一区域显示第一图标的步骤,包括:3. The method according to claim 1, wherein the step of displaying the first icon in the first area of the first application in response to the user's first operation on the first picture in the first application, include: 响应于用户对通讯类应用的聊天界面中的第一图片的单击操作,全屏显示所述第一图片,并在所述第一图片中显示侧边栏,所述侧边栏中包括第二应用的第一图标。In response to the user's click operation on the first picture in the chat interface of the communication application, the first picture is displayed in full screen, and a sidebar is displayed in the first picture, and the sidebar includes the second picture. The first icon of the application. 4.根据权利要求3所述的方法,其特征在于:4. The method according to claim 3, characterized in that: 在所述第一文本包含地址的情况下,显示的所述侧边栏中包括地图应用图标、购物应用图标以及打车应用图标。When the first text contains an address, the displayed sidebar includes a map application icon, a shopping application icon, and a taxi application icon. 5.根据权利要求3所述的方法,其特征在于:5. The method according to claim 3, characterized in that: 在所述第一文本包含电话号码的情况下,显示的所述侧边栏中包括服务列表,所述服务列表包括:呼叫电话选项、发送消息选项、添加到通讯录选项以及拷贝选项。In the case that the first text contains a phone number, the displayed sidebar includes a service list, and the service list includes: an option to call a phone, an option to send a message, an option to add to an address book, and an option to copy. 6.根据权利要求1所述的方法,其特征在于,所述响应于用户对第一应用中第二图片的第二操作,在所述第一应用的第二区域显示第二图标的步骤,包括:6. The method according to claim 1, wherein the step of displaying a second icon in the second area of the first application in response to the user's second operation on the second picture in the first application, include: 响应于用户对通讯类应用的订阅号中的第二图片的单击操作,全屏显示所述第二图片;In response to the user's click operation on the second picture in the subscription account of the communication application, displaying the second picture in full screen; 响应于用户对所述第二图片的长按操作,在所述第二图片的第二区域悬浮显示第二图标。In response to the user's long press operation on the second picture, a second icon is displayed in a floating manner in the second area of the second picture. 7.根据权利要求6所述的方法,其特征在于,所述响应于用户对所述第二图标的第三操作,在所述第一应用的第三区域显示第三图标的步骤,包括:7. The method according to claim 6, wherein the step of displaying the third icon in the third area of the first application in response to the third operation of the second icon by the user comprises: 响应于用户对所述第二图标的点击操作,在所述第二图片的第三区域显示第三图标。In response to a user's click operation on the second icon, a third icon is displayed in a third area of the second picture. 8.根据权利要求3所述的方法,其特征在于,8. The method of claim 3, wherein, 响应于用户对第一应用中第四图片的第五操作,在所述第一应用的第五区域显示第二图标,所述第二图标为文字识别的图标,其中,所述第四图片包含第三文本;In response to the user's fifth operation on the fourth picture in the first application, a second icon is displayed in the fifth area of the first application, the second icon is an icon for character recognition, wherein the fourth picture contains third text; 响应于用户对所述第二图标的第六操作,高亮显示所述第四图片中包含的所述第三文本。In response to a sixth user operation on the second icon, the third text contained in the fourth picture is highlighted. 9.一种应用程序推荐方法,应用于电子设备,其特征在于,包括:9. A method for recommending an application, applied to an electronic device, comprising: 接收用户对第一应用的第一界面中图片的第一操作;receiving a user's first operation on the picture in the first interface of the first application; 响应于所述第一操作,确定所述电子设备前台开启的应用以及当前显示的界面;In response to the first operation, determine the application opened in the foreground of the electronic device and the currently displayed interface; 根据当前前台开启的应用和当前显示的界面的界面信息,解析所述图片的位置标志,所述位置标志包含应用标识和界面标识;According to the interface information of the application currently opened in the foreground and the currently displayed interface, analyze the position mark of the picture, the position mark includes the application mark and the interface mark; 依据所述位置标志判定所述图片对应的场景类型,其中,所述场景类型包括:高概率场景和低概率场景;Determining the scene type corresponding to the picture according to the position mark, wherein the scene type includes: a high probability scene and a low probability scene; 在所述场景类型为高概率场景的情况下,对所述图片进行OCR,并基于OCR识别结果进行应用程序推荐;When the scene type is a high-probability scene, OCR is performed on the picture, and an application program recommendation is performed based on the OCR recognition result; 在所述场景类型为低概率场景的情况下,在接收到用户触发OCR的第二操作后,对图片进行OCR。In a case where the scene type is a low-probability scene, OCR is performed on the picture after receiving a second operation of triggering OCR by the user. 10.根据权利要求9所述的方法,其特征在于,所述依据所述位置标志判定所述图片对应的概率类型的步骤,包括:10. The method according to claim 9, wherein the step of determining the probability type corresponding to the picture according to the location marker comprises: 将所述位置标志与数据库中预存的高概率场景的位置标志进行比对;Comparing the position mark with the position mark of the high probability scene pre-stored in the database; 存在与所述位置标志匹配的目标位置标志的情况下,确定所述图片对应的场景类型为高概率场景。If there is a target position marker matching the position marker, it is determined that the scene type corresponding to the picture is a high-probability scene. 11.根据权利要求9所述的方法,其特征在于,对所述图片进行OCR,并基于OCR识别结果进行应用程序推荐的步骤,包括:11. The method according to claim 9, wherein the step of performing OCR on the picture and recommending an application based on the OCR recognition result comprises: 对所述图片进行OCR,得到OCR识别结果;Performing OCR on the picture to obtain an OCR recognition result; 确定所述OCR识别结果中是否包含预设实体;Determine whether the OCR recognition result contains a preset entity; 在所述OCR识别结果中包含预设实体的情况下,确定所述预设实体匹配的应用推荐信息,其中,所述推荐信息包括:至少一个应用或服务列表,所述服务列表中包含至少一个服务选项;In the case that the OCR recognition result contains a preset entity, determine the application recommendation information matched by the preset entity, wherein the recommendation information includes: at least one application or service list, and the service list contains at least one service options; 在放大后的所述图片上显示所述推荐信息,且高亮显示所述OCR识别结果。The recommendation information is displayed on the enlarged image, and the OCR recognition result is highlighted. 12.根据权利要求11所述的方法,其特征在于,所述方法还包括:12. The method of claim 11, further comprising: 在所述OCR识别结果中不包含预设实体的情况下,在放大后的所述图片上高亮显示所述OCR识别结果。If the OCR recognition result does not contain a preset entity, the OCR recognition result is highlighted on the enlarged image. 13.根据权利要求9所述的方法,其特征在于,在所述场景类型为低概率场景的情况下,在接收到用户触发OCR的第二操作后,对图片进行OCR的步骤,包括:13. The method according to claim 9, wherein when the scene type is a low-probability scene, after receiving the second operation of triggering OCR by the user, the step of performing OCR on the picture comprises: 在所述场景类型为低概率场景的情况下,放大显示所述图片;In the case that the scene type is a low-probability scene, zoom in and display the picture; 在接收到用户对所述图片的第三操作的情况下,显示第一按钮,其中,所述第一按钮用于触发对图片进行OCR,其中,所述第三操作至少包括:长按;In the case of receiving a third user operation on the picture, displaying a first button, wherein the first button is used to trigger OCR on the picture, wherein the third operation includes at least: long press; 判断第一预设时长内是否接收到对所述第一按钮的第四操作;judging whether a fourth operation on the first button is received within the first preset time period; 在第一预设时长内接收到对所述第一按钮的第四操作的情况下,对图片进行OCR;In the case that a fourth operation on the first button is received within the first preset duration, OCR is performed on the picture; 基于OCR识别结果进行应用程序推荐。App recommendation based on OCR recognition results. 14.一种计算机可读存储介质,包括计算机程序,其特征在于,当所述计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求1-13中任意一项所述的应用程序推荐方法。14. A computer-readable storage medium, comprising a computer program, characterized in that, when the computer program is run on an electronic device, the electronic device is made to execute the application according to any one of claims 1-13 Program recommended method.
CN202111339273.5A 2021-11-12 2021-11-12 App Recommendation Method Active CN115016710B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111339273.5A CN115016710B (en) 2021-11-12 2021-11-12 App Recommendation Method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111339273.5A CN115016710B (en) 2021-11-12 2021-11-12 App Recommendation Method

Publications (2)

Publication Number Publication Date
CN115016710A CN115016710A (en) 2022-09-06
CN115016710B true CN115016710B (en) 2023-06-16

Family

ID=83064440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111339273.5A Active CN115016710B (en) 2021-11-12 2021-11-12 App Recommendation Method

Country Status (1)

Country Link
CN (1) CN115016710B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116095232B (en) * 2022-12-16 2025-02-07 维沃移动通信有限公司 Information display method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110955364A (en) * 2019-11-22 2020-04-03 维沃移动通信有限公司 Application program recommendation method and electronic equipment
JP2020113901A (en) * 2019-01-11 2020-07-27 京セラドキュメントソリューションズ株式会社 Image processing apparatus and image processing system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8373724B2 (en) * 2009-01-28 2013-02-12 Google Inc. Selective display of OCR'ed text and corresponding images from publications on a client device
CN111566690A (en) * 2018-03-27 2020-08-21 华为技术有限公司 Method and device for recommending application based on scene
CN108874976B (en) * 2018-06-08 2021-06-01 Oppo(重庆)智能科技有限公司 Search content recommendation method and device, terminal device and storage medium
CN112835495B (en) * 2019-11-22 2023-04-07 华为技术有限公司 Method and device for opening application program and terminal equipment
CN114332887A (en) * 2019-12-26 2022-04-12 腾讯科技(深圳)有限公司 Image processing method and device, computer equipment and storage medium
CN112882623B (en) * 2021-02-09 2022-08-05 维沃移动通信有限公司 Text processing method and device, electronic equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020113901A (en) * 2019-01-11 2020-07-27 京セラドキュメントソリューションズ株式会社 Image processing apparatus and image processing system
CN110955364A (en) * 2019-11-22 2020-04-03 维沃移动通信有限公司 Application program recommendation method and electronic equipment

Also Published As

Publication number Publication date
CN115016710A (en) 2022-09-06

Similar Documents

Publication Publication Date Title
US11460983B2 (en) Method of processing content and electronic device thereof
US11847292B2 (en) Method of processing content and electronic device thereof
KR102309175B1 (en) Scrapped Information Providing Method and Apparatus
EP3371693B1 (en) Method and electronic device for managing operation of applications
US20220075518A1 (en) Fast Data Copying Method and Electronic Device
US20140160049A1 (en) Clipboard function control method and apparatus of electronic device
WO2016095689A1 (en) Recognition and searching method and system based on repeated touch-control operations on terminal interface
CN112230909A (en) Data binding method, device and equipment of small program and storage medium
KR102625254B1 (en) Electronic device and method providing information associated with image to application through input unit
CN113360062A (en) Display control method and device, electronic equipment and readable storage medium
CN112948844B (en) Control method and device and electronic equipment
WO2016173307A1 (en) Message copying method and device, and smart terminal
CN113268182A (en) Application icon management method and electronic equipment
CN115016710B (en) App Recommendation Method
WO2023082817A1 (en) Application program recommendation method
CN115033153B (en) Application recommendation methods and electronic devices
CN111752398A (en) Verification code input method, device, electronic device and readable storage medium
CN114077371B (en) Information display method, device, electronic equipment and storage medium
CN107862728B (en) Picture label adding method and device and computer readable storage medium
CN114398128A (en) Information display method and device
CN117808015B (en) Translation method, electronic device and computer storage medium
CN112732464B (en) Pasting method, device and electronic equipment
CN107659720A (en) A kind of information processing method, electronic equipment and computer-readable storage medium
CN116360668A (en) Screen recognition method, device, equipment and storage medium
CN118760373A (en) Operation determination method and device

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