Information processing method and information processing device

Through information processing methods and equipment, the matching results and image identifiers of hand-drawn pictures are directly generated and selected, which solves the problem of cumbersome interactions in the process of sharing hand-drawn pictures and improves the user experience.

CN114791783BActive Publication Date: 2024-09-17LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210271925.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-18
Publication Date
2024-09-17
Estimated Expiration
2042-03-18

AI Technical Summary

Technical Problem

When sharing hand-drawn pictures, users need to draw and save them in the sketchpad application and then share them in social networking or document editing software, resulting in cumbersome interactions and poor user experience.

Method used

Through information processing methods and equipment, the trajectory input by the user is obtained, recognized and matched, images are generated, candidates are output, including matching results and image identification, and can be selected directly in the application to avoid multiple interactions.

Benefits of technology

While ensuring the diversity of information content, it simplifies the interaction between users and applications, improves user experience, and reduces operating steps.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114791783B
    Figure CN114791783B
Patent Text Reader

Abstract

The embodiment of the present application discloses an information processing method and an information processing device, the method comprising: obtaining user input, the user input representing at least one trajectory; performing recognition based on the trajectory, obtaining at least one matching result based on standard database matching; recording at least one trajectory, generating an image including at least one trajectory; and outputting candidate items, the candidate items including at least one matching result and an identification of the image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information processing technology, and in particular to an information processing method and an information processing device. Background Art

[0002] With the continuous development of computer technology, the forms of information content when people communicate, exchange and share are becoming more and more diverse, including but not limited to text, pictures, animations, etc.

[0003] However, if a user wants to share a hand-drawn picture, he needs to draw it in an application such as a drawing board, and then save it as a picture file in the storage before using or sharing it in another application (such as social software, document editing software, etc.). This method is cumbersome to interact and has a poor user experience. Summary of the invention

[0004] In view of this, an embodiment of the present application provides an information processing method and an information processing device.

[0005] The technical solution of this application is implemented as follows:

[0006] The present application provides an information processing method, including:

[0007] obtaining a user input, the user input representing at least one trajectory;

[0008] Identify using the trajectory and obtain at least one matching result based on standard database matching;

[0009] recording the at least one trajectory and generating an image including the at least one trajectory;

[0010] A candidate item is output, the candidate item including the at least one matching result and an identification of the image.

[0011] The present application also provides an information processing device, including:

[0012] A display screen, wherein the display screen is used to output content to be displayed;

[0013] A memory for storing executable information processing instructions;

[0014] The processor is used to implement the information processing method provided in the embodiment of the present application when executing the executable information processing instructions stored in the memory.

[0015] An embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are configured to execute the steps of the above-mentioned information processing method.

[0016] The embodiment of the present application provides an information processing method and an information processing device. By adopting the technical solution, first, user input is obtained, and the user input represents at least one track; then, the track is used for identification, and at least one matching result is obtained based on standard database matching; the at least one track is recorded, and an image including the at least one track is generated; finally, a candidate item is output, and the candidate item includes the at least one matching result and the identification of the image. In this way, based on at least one track input by the user, at least one matching result can be obtained, and an image including the at least one track can be obtained at the same time, so that the output candidate items of the application include at least one matching result and the identification of the image. When the user uses it, the matching result or the identification of the image can be directly selected in the candidate items. While ensuring the diversification of the information content, multiple interactions between the user and the application are avoided, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A flowchart of an information processing method provided in an embodiment of the present application;

[0018] Figure 2 A schematic diagram of a display interface for a candidate item provided in an embodiment of the present application;

[0019] FIG. 3A to FIG. 3B A schematic diagram of a display process of a candidate item provided in an embodiment of the present application;

[0020] FIG. 4A to FIG. 4C A schematic diagram of another display process of candidate items provided in an embodiment of the present application;

[0021] Figure 5 A flowchart of a hand-drawn information sharing method provided in an embodiment of the present application;

[0022] Figure 6 A flowchart of another hand-drawn information sharing method provided in an embodiment of the present application;

[0023] Figure 7 A schematic diagram of a hand-drawn information generation interface provided in an embodiment of the present application;

[0024] Figure 8 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application;

[0025] Fig. 9 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0027] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0028] In the following description, reference is made to “some embodiments\other embodiments”, which describe a subset of all possible embodiments, but it can be understood that “some embodiments\other embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0030] In the related art, sharing information in the form of pictures, animations, etc. has become more and more popular among users. Through the trajectory input by the user, the image information (picture or animation) corresponding to the trajectory can be generated. When socializing, the picture or animation can be sent to other users or displayed. However, in the related art, the user needs to first input the trajectory in the information input interface of the application that can generate image information, save the corresponding image information after the trajectory is generated, and then share it on the social application. In this process, multiple operations are required, and it is difficult for users to get a good experience.

[0031] Based on the problems existing in the related technologies, an embodiment of the present application provides an information processing method, which can avoid multiple interactions between users and applications while ensuring the diversification of information content forms, thereby improving the user experience.

[0032] The information processing method provided in the embodiment of the present application is applied to an information processing device. The method provided in the embodiment of the present application can be implemented by a computer program, and when the computer program is executed, each step in the information processing method provided in the embodiment of the present application is completed. In some embodiments, the computer program can be executed by a processor in an information processing device.

[0033] The following describes the information processing method provided by the embodiment of the present application. Figure 1 FIG. 1 is a flow chart of an information processing method provided in an embodiment of the present application, and the method comprises the following steps:

[0034] S101. Obtain user input.

[0035] It should be noted that in practice, the timing of obtaining user input can be when the input method application starts, directly enter the handwriting input mode, or after switching from other input modes to the handwriting input mode, obtain the input trajectory of the user on the input interface corresponding to the handwriting input method. The user can input the trajectory on the input interface of the handwriting input method by means of finger touch or stylus touch.

[0036] Obtaining user input can be understood as obtaining the input information when the user performs an input operation, and the input information can include the trajectory information of the input operation. In some embodiments, the user input represents at least one trajectory. The trajectory of the user input can be a character trajectory, a graphic trajectory, etc. For example, if the user intends to input the character "八", during the input process, it may include the character trajectory of a left-falling stroke "丿" and the character trajectory of a right-falling stroke "ヽ"; if the user intends to input a graphic heart shape The corresponding image trajectory during the input process may include an arc.

[0037] In some embodiments, the trajectory of the user input can be one or more. One trajectory corresponds to one continuous input, and multiple trajectories correspond to multiple non-continuous inputs. Continuous input can be when the user inputs on the input interface by means of finger touch or stylus touch, and the finger or stylus does not leave the input interface and continues to input until the input is completed. For example, for text input, when the user inputs the character "一", there may be only one input trajectory of "一"; when the user inputs the character "今", there may be four non-continuous input trajectories of "丿", "ヽ", "、", and "フ". Of course, for characters with less complex strokes, the user can also complete the input through one continuous input. For the input of graphic shapes, the user can also obtain one trajectory through continuous input, or obtain multiple trajectories through multiple non-continuous inputs. The number of trajectories of the user input is only an exemplary description and is not specifically limited here.

[0038] S102. Identify with the trajectory and obtain at least one matching result based on matching in the standard database.

[0039] It should be noted that the standard database can be a database storing a large amount of character data and graphic data. The character data can be characters, numbers, punctuation marks, strokes, etc., and the graphic data can be shapes such as hearts, circles, etc., and can also include emoticon graphics. After obtaining the trajectory input by the user, the input trajectory can be recognized, and the recognition result can be matched with the character data or graphic data in the standard database to obtain the matching degree between the trajectory and the character data or graphic data in the standard database, and the matching result corresponding to the trajectory can be determined through the matching degree. The matching result of the trajectory can be the top N characters or graphics with a matching degree greater than the matching threshold and the highest matching degree.

[0040] In some embodiments, the recognition and matching of the trajectory can be real-time, that is, the recognition and matching are performed while the user inputs the trajectory. For example, when the user is inputting the character "今", when the input trajectory is "丿", the recognized matching results corresponding to this trajectory may include "人", "么", "少", etc. When the user continues to input the trajectory "ヽ", the recognized matching results corresponding to the input trajectory may include "八", "只", etc., until the user finishes inputting all the strokes of the character "今", and the recognized matching result corresponding to the entire input trajectory includes the character "今".

[0041] In some embodiments, the matching results obtained based on the standard database can include one or more. The types of matching results can include characters and graphics, and the number of matching results can be one or more. For example, when the trajectory input by the user is "○", the corresponding matching results may include characters such as "口", "日", ".", etc., and may also include graphics etc. In practice, the number of characters and images can both include one or more.

[0042] S103. Record at least one trajectory and generate an image including at least one trajectory.

[0043] In some embodiments, during the process of recognizing the trajectory input by the user, the input trajectory will be recorded and an image corresponding to the trajectory will be generated. The image can be a static image or a dynamic image. When the user's one input only includes one input trajectory, the image generated based on this input trajectory includes the shape corresponding to the trajectory. When the user's one input includes multiple trajectories, an image corresponding to each input trajectory can be generated. If the generated image is a dynamic picture, each trajectory corresponds to generating one frame of the dynamic image. After the user finishes inputting multiple trajectories, the multiple generated frames of images constitute a dynamic image.

[0044] It should be noted that, unlike step S102, after recording the trajectory input by the user, the trajectory is not identified and matched, but a corresponding image is directly generated based on the trajectory, and the image includes the trajectory input by the user, that is, the shape of the trajectory input by the user is consistent with the shape corresponding to the generated image.

[0045] In some embodiments, step S102 and step S103 may be executed simultaneously, that is, while the trajectory input by the user is identified and matched, an image corresponding to the trajectory is generated; in other embodiments, step S102 may be executed before step S103, or after step S103.

[0046] S104: Output candidate items.

[0047] In some embodiments, the candidate includes at least one matching result and an image identifier. The image identifier may be a thumbnail corresponding to the image, a dynamic GIF image, etc., or an image identifier option, which indicates that an image has been generated based on the user's input trajectory, and the user may select the image identifier, through which the image identifier may be sent or displayed.

[0048] In actual application, after obtaining candidate items based on the trajectory input by the user, the candidate items can be output and displayed in the candidate area of ​​the handwriting input method application program to facilitate the user to make a selection.

[0049] In the information processing method provided in the embodiment of the present application, user input is first obtained, and the user input represents at least one track; then the track is used for identification, and at least one matching result is obtained based on standard database matching; at least one track is also recorded, and an image including at least one track is generated; and a candidate item is output, and the candidate item includes at least one matching result and an image identifier. In this way, based on at least one track input by the user, at least one matching result can be obtained, and an image including the at least one track can be obtained at the same time, so that the output candidate items of the application include at least one matching result and an image identifier, and when the user uses it, the matching result or the image identifier can be directly selected in the candidate item, and multiple interactions between the user and the application are avoided while ensuring the diversification of the information content form, thereby improving the user experience.

[0050] In some embodiments of the present application, obtaining user input, that is, step S101, can be implemented by the following steps S1011 and S1012, and each step is described below.

[0051] S1011. Obtain the Nth trajectory.

[0052] It should be noted that N is an integer greater than or equal to 1. When N is 1, it means obtaining the first trajectory input by the user. When N is 5, it means obtaining the fifth trajectory input by the user. The Nth trajectory only represents the order corresponding to the trajectories during the input process, and is not a limitation on the number of trajectories input by the user. During a single input by the user, multiple trajectories input by the user can be continuously obtained. In chronological order, the arrangement order corresponding to the trajectory input earlier is greater than the arrangement order corresponding to the trajectory input later.

[0053] S1012. Before the Nth trajectory reaches the disappearance time, obtain the (N + 1)th trajectory.

[0054] It should be noted that the disappearance time can be any positive number set in advance. For example, the disappearance time can be set to 0.5 seconds, 1 second, etc. In implementation, timing can be started after receiving the Nth trajectory input, and the timing duration can be recorded. When the timing duration reaches the preset disappearance time, it is determined that the Nth trajectory reaches the disappearance time. During the disappearance time, the trajectories input by the user will not disappear. When the previous trajectory (for example, the Nth trajectory) has not disappeared, the user can continue to input to obtain the current input trajectory (for example, corresponding to the (N + 1)th trajectory). Only the trajectory obtained before the previous trajectory disappears is used as the subsequent trajectory during the current user input process.

[0055] In some embodiments, when the Nth trajectory reaches the disappearance time, it indicates that the user input is completed. That is, when the user inputs the Nth trajectory and does not continue to input the (N + 1)th trajectory within the disappearance time, it indicates that a single input process of the user ends.

[0056] Exemplarily, when N is 1 and the disappearance time is 0.5 seconds, the first trajectory input by the user is "one". Within 0.5 seconds, no second trajectory is input. Then, in this input process, only one trajectory is included. Based on this trajectory, recognition and matching are performed to obtain the corresponding matching result, and a corresponding picture is generated based on this trajectory. When the first trajectory input by the user is "one" and within 0.5 seconds, that is, before the first trajectory disappears, the second input trajectory "|" is obtained. After the second trajectory is input, the first trajectory reaches the disappearance time of 0.5 seconds. Then, in this input process, two input trajectories are included. These two trajectories are recognized, and finally, the matching result corresponding to the combination of these two trajectories is obtained. The picture generated based on these two trajectories also includes the shapes corresponding to these two trajectories.

[0057] In some embodiments of the present application, recognition is performed based on the trajectory, and at least one matching result is obtained by matching with a standard database. That is, step S102 can be implemented by at least one of the following methods. Each implementation method is described below.

[0058] The first implementation method is to perform recognition based on the trajectory and obtain at least one character based on character database matching.

[0059] It should be noted that the character database matching can be one of the standard databases, the character database can be a database storing character information, the character database can store character information such as text, numbers, punctuation marks, etc., the character database can be pre-established, and the character database includes more complete character information, so that after the user inputs the trajectory, it is easy to obtain more and more accurate matching results for the user to choose.

[0060] For example, when the trajectory input by the user is "2", the trajectory is recognized and matched with the characters in the character database. Depending on the degree of matching, the matching results may include characters such as "2", "z", "red", and "empty".

[0061] The second implementation method is to perform recognition based on trajectories and match at least one graphic based on a graphic database.

[0062] It should be noted that the graphic database can also be a standard database, a graphic database can be a database storing graphic information, a graphic database can store graphic shapes, expressions and other information, and a graphic database can also be pre-established. After obtaining the trajectory input by the user, the trajectory can be identified to obtain a graphic that matches the graphic database. For example, if the trajectory input by the user is "☉", the recognition results obtained may include """, And other graphics.

[0063] In some embodiments, step S102 can be implemented by the first implementation method mentioned above, or by the second implementation method mentioned above, or can be implemented based on both the first implementation method and the second implementation method. That is, when identifying the trajectory input by the user, matching can be performed based on the character database and the image database at the same time to obtain character matching results and graphic matching results.

[0064] It is understandable that when the trajectory is recognized, character matching results and graphic matching results can be obtained by matching the character database and the graphic database, thereby providing users with richer information content and improving the user experience.

[0065] In some embodiments of the present application, when identifying a trajectory, if the N+1th trajectory is obtained, the Nth trajectory is combined with the N+1th trajectory for identification.

[0066] It should be noted that if the N+1th track is obtained after the Nth track is obtained and before the Nth track reaches the disappearance time, the Nth track and the N+1th track are combined and recognized. On the one hand, the recognition of each track is real-time. On the other hand, for an input process including multiple tracks, multiple tracks will be combined and recognized, that is, the current track input by the user will be recognized in real time, and the next track input by the user will be combined and recognized with the current track. For example, if the user intends to input the English word "hello", five tracks input by the user may be obtained. After the first track input by the user is obtained, the recognized matching result may be the character "h". Before the first track disappears, the second track input by the user is obtained. The first track and the second track are recognized as a character "he". Before the first track and the second track disappear, the third track input by the user is obtained. The first track, the second track and the third track are combined and recognized, and the recognition result is the character "hel". And so on, until the fifth track input by the user is obtained, the English word "hello" is recognized.

[0067] In some embodiments, the combined recognition of the Nth trajectory and the N+1th trajectory does not only refer to the combined recognition of two adjacent trajectories. A user input process may include more than two trajectories, for example, three trajectories. When performing recognition, when N is 1, the first trajectory and the second trajectory are combined and recognized to obtain a recognition result. When N is 2, the first trajectory, the second trajectory, and the third trajectory are combined and recognized. That is, the Nth trajectory can be a combination of multiple trajectories input by the user, not just the previous trajectory of the N+1th trajectory.

[0068] In some embodiments of the present application, recording the at least one trajectory and generating an image including the at least one trajectory, that is, step S103, can be implemented through steps S1031 and S1032, and each step is described in detail below.

[0069] S1031. Identify the type of application, where the application includes an input box and the cursor is located in the input box.

[0070] It should be noted that the input box of the application can be used to display characters, graphics, images, etc. in the candidate items. For social software such as instant messaging applications, the input box can be an area for inputting information. For document editing programs such as Notepad, the input box can be the location where the document is displayed. When the cursor is located in the input box of the application, the application can send a command to the input method application to start the input method application and enter the handwriting input mode, and obtain the user input trajectory based on the user's handwriting input.

[0071] S1032: If the type of the application meets the image condition, record at least one trajectory and generate an image including the at least one trajectory.

[0072] In some embodiments, after obtaining the trajectory of the user input, it is determined whether the application interacting with the input method application meets the image condition, that is, it is determined whether the application supports using the image generated based on the trajectory as input, or receiving the image sent by the input method application and displaying it in the application. If it is determined that the application meets the image condition, one or more trajectories input by the user can be recorded, and a corresponding image can be generated based on the one or more trajectories.

[0073] In other embodiments, if the type of application does not meet the image condition, at least one trajectory input by the user will not be recorded, and the image will not be generated. In this case, the candidate items will not include the image identifier, and the candidate items may only include characters, graphics, etc. obtained after identification and matching based on the trajectory.

[0074] It can be understood that by judging whether the application meets the image condition, it can be determined whether to record the trajectory input by the user and generate a corresponding image. When the application meets the image condition, the trajectory is recorded, and a corresponding image is generated based on the recorded trajectory, so that the candidate items include not only characters and graphics, but also images, ensuring the diversity of information styles in the candidate items and providing users with more choices.

[0075] In some embodiments of the present application, outputting the candidate items, i.e., step S104, can be implemented by steps S1041A and S1042A:

[0076] S1041A: If at least one matching result does not include a matching result that satisfies the exact matching condition, the identification of the image is used as a first choice of candidate items.

[0077] In some embodiments, candidate items can be displayed in a candidate area of ​​an input method application. After the trajectory input by the user is recognized, if no matching result that meets the exact matching condition is obtained from the standard database, that is, no exact matching result is obtained, fuzzy matching can be performed on the recognized trajectory to obtain a fuzzy matching result.

[0078] It should be noted that the exact match condition can be used to determine whether the matching result is accurate. When the exact match condition is met, an exact match result can be obtained. When the exact match condition is not met, a fuzzy match result can also be obtained. The exact match result and the fuzzy match result indicate the degree of matching. The exact match condition can be greater than the matching threshold. The matching threshold can be pre-set, representing the similarity between the identified trajectory and the characters or graphics in the standard database. In practice, the matching threshold can be set to 0.9, that is, when the trajectory is identified and matched, if the matching value corresponding to a certain matching result obtained is greater than 0.9, then the matching result is determined to be a matching result that meets the exact match condition, that is, an exact match result; when the matching value corresponding to the matching result is less than or equal to 0.9, then the matching result is considered to be a fuzzy match result.

[0079] In some embodiments, if an exact match result is obtained by matching the trajectory, the exact match result can be used as the first option, and the image identifier can be used as a second option or as other non-first option. In practice, the exact match result can include one or more. When the exact match result includes multiple, the multiple exact match results can be sorted according to the size of the matching threshold to determine the first option, the second option, the third option, etc. in the candidate items, and so on.

[0080] In some embodiments, the candidate items may include multiple items, and the first item in the candidate items is located at the first position of the candidate area, for example, Figure 2 The figure shows a schematic diagram of a display interface of candidate items provided in an embodiment of the present application. When a user inputs a trajectory, the matching results obtained based on the trajectory may include: Figure 2 The first candidate (i.e., the first choice among the candidates) character "S" shown in the candidate area of ​​the handwriting input method may include the second candidate number "5", and may also include the third candidate: the image identifier "Live Photo" corresponding to the image generated based on the trajectory, etc., among which the first candidate is an exact match result. Further, if the user selects the first candidate, the character "S" will be displayed in the input box of the application; if the user selects the second candidate, the number "5" will be displayed in the input box of the application; if the user selects the third candidate, the image corresponding to the image identifier will be displayed in the input box of the application.

[0081] In some embodiments, for example, if the trajectory input by the user is similar to a heart shape, the first candidate item obtained after identifying the trajectory may be as follows: Figure 3A The heart-shaped graphic data shown in the candidate area of ​​the handwriting input method The second candidate may be an image identifier generated based on the trajectory, such as Figure 3AThe image label “Live Photo” is shown in the candidate area of ​​the handwriting input method. When the user clicks the image label “Live Photo”, Figure 3B The dynamic image corresponding to the image identifier can be displayed in the input box of the application (such as an instant messaging application) shown in .

[0082] In other embodiments, if the trajectory matching does not obtain an exact match result but only a fuzzy match result, the identifier of the image generated based on the trajectory can be used as the first choice. For example, when the user inputs the trajectory information, he inputs a circular trajectory and multiple line trajectories around the circular trajectory. If the exact match result corresponding to the trajectory cannot be obtained from the standard database, the image identifier "Live Photo" corresponding to the image generated based on the trajectory can be used as the fuzzy match result. The image identifier "Live Photo" can be used as the first choice among the candidate items and presented in the following manner: Figure 4A The first candidate area of ​​the handwriting input method shown in FIG; when the user clicks the image logo "Live Photo", Figure 4B The image is displayed as shown in the input box of the application (such as an instant messaging application) shown in the figure, and when the user clicks the "Send" control, the image is displayed as shown in the figure Figure 4C An image resembling a sun is displayed in a chat interface of the application shown (eg, an instant messaging application).

[0083] It is understandable that when no exact match result is obtained after identifying and matching the trajectory input by the user, it can be inferred that the user's intention may be to generate an image based on the input trajectory, and the image logo is used as the first option among the candidates for the user to select. In practice, for input method applications, the user can select the image logo by clicking the Enter key, the Space bar, etc., providing the user with a more convenient and richer experience.

[0084] S1042A: Output candidate items in the order of image identification and at least one matching result.

[0085] In some embodiments, when it is determined that the matching results do not include matching results that meet the exact matching conditions, the identification of the image is determined as the first choice among the candidate items. At the same time, based on the recognition and matching of the trajectory, a fuzzy matching result can be obtained, and the fuzzy matching result includes one or more. In implementation, if the fuzzy matching results include multiple ones, the arrangement order of the candidate items can be determined according to the size of the matching value corresponding to each fuzzy matching result. A feasible way can be that the larger the matching value, the closer the corresponding fuzzy matching result is. For example, the fuzzy matching results include two, the matching value corresponding to the fuzzy matching result a is 0.5, and the matching value corresponding to the fuzzy matching result b is 0.6, then the fuzzy matching result b may be used as the second candidate, and the fuzzy matching result a may be used as the third candidate.

[0086] In some other embodiments of the present application, outputting the candidate items, namely step S104, can also be implemented by the following steps S1041B and S1042B, and each step is described in detail below.

[0087] S1041B. Identify the type of application, where the application is an application that supports candidate items as input.

[0088] It should be noted that the application can be an application that interacts with the input method application. If the application supports taking candidate items as input, the candidate items can be sent to the application and displayed in the application. After obtaining the matching result corresponding to the trajectory, the characters or graphics in the candidate items can be output and displayed in the candidate area of ​​the input method. Based on the user's selection of the candidate items, the corresponding candidate items are displayed in the application.

[0089] In some embodiments, if the application does not support candidate items as input, even if corresponding matching results are obtained based on the trajectory of the user input, the candidate items will not be output and may not be displayed in the candidate area of ​​the input method.

[0090] In some embodiments, the candidate applications as input may include social applications, and may include document editing applications, such as Notepad, Word, etc. These applications are all applications that support characters and graphics as input.

[0091] S1042B: If the type of the application meets the image condition, the output candidate includes an image identifier.

[0092] It should be noted that the image condition may be whether the application supports the function corresponding to the image generated based on the trajectory, that is, whether the application can receive and display the image sent by the input method. If the application meets the image condition, the identification of the image generated based on the trajectory can be output as a candidate.

[0093] In other embodiments, if the application does not meet the image condition, the image generated based on the trajectory will not be used as a candidate, that is, the logo of the generated image will not be displayed in the candidate area corresponding to the input method application.

[0094] In some embodiments, generating an image based on a trajectory can be implemented by an independent application or a corresponding functional module, and the image condition can be determined from a whitelist of applications. If the whitelist of applications includes an application for generating an image based on a trajectory or an application corresponding to the functional module, it can be determined that the application meets the image condition.

[0095] In some embodiments, if it is determined that the application meets the image condition and the user selects the identifier of the image in the candidate items, the image can be used as input to display a preview effect of the image in the input box of the application. The image can include a static image or a dynamic image.

[0096] In some embodiments, for example, for instant messaging software, after an image (such as a dynamic image) is displayed in the input box of the application, the dynamic image can also be sent to the other user by receiving a click operation of the current user on the send control, so as to display the animation effect of the dynamic image in the corresponding session window of the instant messaging software.

[0097] It can be understood that by judging whether the application meets the image conditions, it can be determined whether to display the image generated based on the trajectory as a candidate in the display area, thereby avoiding the situation where the application uses the identification of the image generated based on the trajectory as an invalid candidate when the image conditions are not supported. When the user confirms the selection of the image identification, the image corresponding to the image identification will not be displayed in the corresponding position of the application, which will bring a bad experience to the user.

[0098] In an embodiment of the present application, a user input is obtained, and the user input represents at least one track; identification is performed based on the track, and at least one matching result is obtained based on standard database matching; at least one track is recorded, and an image including at least one track is generated; and a candidate item is output, and the candidate item includes at least one matching result and an image identifier. In this way, based on at least one track input by the user, at least one matching result can be obtained, and an image including the at least one track can be obtained at the same time, so that the output candidate items of the application include at least one matching result and an image identifier. When the user uses it, the matching result or the image identifier can be directly selected from the candidate items, and multiple interactions between the user and the application can be avoided while ensuring the diversification of the information content form, thereby improving the user experience.

[0099] In some embodiments, the function of generating images based on trajectories can be implemented by an image processing application or an image processing module independent of the input method application. When the handwriting input state of the input method application is entered, the input method application is controlled to send a request message to start the image function to the image processing application or the image processing module, thereby starting the image processing application or the image processing module.

[0100] In other embodiments, a handwriting function start control is provided in the handwriting input box corresponding to the handwriting input method. When it is determined that the current state of the handwriting function start control is an enabled state, for example, the user clicks on the control, the input method application is controlled to send a request message to the image processing application or the image processing module to start the hand-drawing function. After the image processing application or the image processing module is started, the trajectory input by the user can be recorded, and a corresponding image can be generated based on the trajectory for saving.

[0101] Next, the implementation process of the application embodiment in the actual application scenario is introduced.

[0102] In some embodiments, Figure 5 As shown, it is a flow chart of a hand-drawing information sharing method provided in an embodiment of the present application. The hand-drawing information sharing method provided in an embodiment of the present application is applied to a hand-drawing information sharing system 1, which includes: a hand-drawing information generation system 11, a system input method module 12, and a system input management subsystem 13. The hand-drawing information sharing method provided in an embodiment of the present application can be implemented by the following steps S201 to S203, and each step is described in detail below.

[0103] S201, determine that the current box is a text box (corresponding to the input box in other embodiments).

[0104] It should be noted that in the system input management subsystem (eg, Android system input management subsystem), if it is determined that the application presents a text box, it is determined that content needs to be entered in the text box, thereby invoking the system input method or input method application.

[0105] S202, judging the state of the pen holding button, if the button is in an enabled state, obtaining a trajectory of the user input (corresponding to at least one trajectory in other embodiments).

[0106] When determining whether to call the system input method, for example, when the application presents a text box and the cursor flashes in the text box, if a hand-drawn function key of the stylus that has established a communication connection with the system input method receives a press operation, a handwriting input box is presented and the user input trajectory is obtained.

[0107] S203: Generate and send a hand-drawn picture based on the trajectory.

[0108] After obtaining the trajectory input by the user, the trajectory can be sent to the hand-drawn information generation system, and the hand-drawn information generation system generates a corresponding hand-drawn picture, which corresponds to an image including at least one trajectory in other embodiments.

[0109] It can be understood that the embodiment of the present application determines whether the hand-drawing function needs to be called based on the state of the hand-drawing function key of the key pen. When it is determined that the state of the hand-drawing function key is enabled, the hand-drawing information function can be directly started to complete the generation of the hand-drawn picture. The hand-drawn picture can be a static picture or an animation. The handwriting input in the input method of the embodiment of the present application is embedded with the recording of handwriting trajectories and the generation of hand-drawn images so that the user can not only match characters and graphics (for example, standard emoticon symbols) in the process of inputting into any input box, but also provide hand-drawn images. It effectively improves the user's input efficiency and reduces the cumbersome interaction of jumping back and forth between different applications. The hand-drawn image includes at least one of a static image and a dynamic image. The static image is the final hand-drawn image formed according to the recorded handwriting trajectory, and the dynamic image is used to show the process of forming the final hand-drawn image. The dynamic image includes an image of the handwriting trajectory at each moment and a final hand-drawn image formed according to the recorded handwriting trajectory.

[0110] like Figure 6 As shown, it is a flow chart of another hand-drawn information sharing method provided in an embodiment of the present application. The hand-drawn information sharing method provided in an embodiment of the present application can be implemented by the following steps S301 to S303, and each step is described in detail below.

[0111] S301: Determine the handwriting input mode for entering the system input method, and present a hand-drawn function control in a candidate area of ​​the handwriting input method.

[0112] In some embodiments, Figure 7 As shown, it is a schematic diagram of a hand-drawn information generation interface provided by this application, such as Figure 7 As shown, the handwriting input mode for entering the system input method can be determined by presenting a text box of the application. When the cursor is located in the text box, the system input method is started and the handwriting input mode is entered. After that, a handwriting function control (corresponding to the handwriting input method) is presented in the candidate area of ​​the handwriting input method. Figure 7 Live Msg control in the drawing), when receiving the user's operation on the hand-drawing function control, it is determined that the hand-drawing function control is in an enabled state, and the hand-drawing information generation system can be started.

[0113] S302: Obtain a trajectory input by a user, and generate a hand-drawn picture corresponding to the trajectory.

[0114] In the handwriting input area of ​​the system input method, the trajectory of the user's input can be obtained, and the trajectory can be recorded and sent to the hand-drawn information generation system. The hand-drawn information generation system generates a hand-drawn picture corresponding to the trajectory, and presents the picture identifier corresponding to the hand-drawn picture (corresponding to the identifier of the image in other embodiments) in the candidate area of ​​the system input method.

[0115] In some embodiments, the image identifier corresponding to the hand-drawn image can be used as the preferred option for the candidate area or as a non-preferred option. The image identifier can be a thumbnail corresponding to the hand-drawn image or other identifier used to indicate that the hand-drawn image has been generated. Figure 7 The Live Msg logo shown in the figure, at this time Live Msg is not a hand-drawn function control, but only serves as a picture logo corresponding to the hand-drawn picture.

[0116] S303: Send the hand-drawn picture.

[0117] When a user clicks or touches an image identifier corresponding to a hand-drawn image, the hand-drawn image may be presented in a text box of the application or sent to the application for storage.

[0118] In some embodiments, when the system input method is started and the handwriting input mode is entered, a handwriting function control for the user to enable the handwriting function may be presented on the handwriting input method interface. The handwriting function control may be as follows: Figure 7 The hand-drawn function control Live Msg is presented in the candidate area shown. In this way, for new users who have not used the hand-drawn information function, the hand-drawn function can be quickly started by clicking or touching the hand-drawn function control. When the user enters a trajectory, not only can the characters and graphics of the trajectory entered by the user be matched, but also a hand-drawn picture can be generated based on the trajectory entered by the user.

[0119] In other embodiments, Figure 7The hand-drawing function control Live Msg shown can be used as a control to lock the hand-drawing function. When the user clicks the text box and starts the system input method, the hand-drawing function control Live Msg can be presented in the interface of the system input method. When the user clicks or touches the hand-drawing function control, the hand-drawing function is directly started, and the handwriting input function is shielded, that is, after the user inputs the trajectory, no character and graphic matching is performed, and only the hand-drawn picture is generated based on the trajectory. In this case, when the user triggers the hand-drawing function control, the hand-drawing function is locked, and the handwriting input matching is no longer performed. However, the input trajectory is still performed through the same input area as in the above embodiment. It's just that the input method no longer matches characters and standardized graphics such as expressions, but only records the input trajectory to generate a hand-drawn image (static or dynamic). The user can unlock the hand-drawing function after clicking the hand-drawing function control Live Msg again. Alternatively, the user automatically unlocks the hand-drawing function by adding a hand-drawn image to the input box. Alternatively, the user automatically unlocks the hand-drawing function after adding a hand-drawn image to the input box and executing the send instruction. Alternatively, the input method automatically unlocks the hand-drawing function after switching to background operation or closing.

[0120] It can be understood that the handwriting input in the input method of the embodiment of the present application is embedded with recording handwriting trajectories and generating hand-drawn images so that the user can not only match characters and graphics (for example, standard emoticon identifiers) in the process of inputting into any input box, but also provide hand-drawn images. The user's input efficiency is effectively improved, and the cumbersome interaction of jumping back and forth between different applications is reduced. The hand-drawn image includes at least one of a static image and a dynamic image. The static image is the final hand-drawn image formed according to the recorded handwriting trajectory, and the dynamic image is used to show the process of forming the final hand-drawn image. The dynamic image includes an image of the handwriting trajectory at each moment and a final hand-drawn image formed according to the recorded handwriting trajectory. By setting a hand-drawn function control in the candidate area of ​​the system input method, when the hand-drawn function control is triggered, the hand-drawn information system can be directly started to complete the recording of the user input trajectory and the generation of hand-drawn pictures. After the hand-drawn picture is generated, the picture identifier corresponding to the hand-drawn picture is presented in the candidate area of ​​the system input method. When the user clicks the picture identifier, the hand-drawn image will be sent out or saved.

[0121] The present application also provides an information processing device, Figure 8 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the information processing device 400 includes:

[0122] The acquisition module 401 is used to obtain user input, where the user input represents at least one trajectory.

[0123] The recognition module 402 is used to perform recognition based on the trajectory and obtain at least one matching result based on standard database matching.

[0124] The image generation module 403 is configured to record the at least one trajectory and generate an image including the at least one trajectory.

[0125] The output module 404 is used to output candidate items, where the candidate items include the at least one matching result and the identifier of the image.

[0126] In some embodiments of the present application, the acquisition module 401 is further used to obtain the Nth trajectory; before the Nth trajectory reaches the disappearance time, obtain the N+1th trajectory, where N is an integer greater than or equal to 1, and the Nth trajectory reaching the disappearance time indicates that the user input is completed.

[0127] In some embodiments of the present application, the recognition module 402 is further used to perform recognition based on a trajectory and obtain at least one character based on a character database match, and is further used to perform recognition based on a trajectory and match at least one graphic based on a graphic database.

[0128] In some embodiments of the present application, the identification module 402 is further configured to determine that if an N+1th trajectory is obtained, the Nth trajectory is combined with the N+1th trajectory for identification.

[0129] In some embodiments of the present application, the output module 404 is further used to determine that if the at least one matching result does not include a matching result that satisfies the exact matching condition, the identification of the image is used as the first choice of the candidate items; and the candidate items are output in the order of the image identification and the at least one matching result.

[0130] In some embodiments of the present application, the output module 404 is further used to identify the type of application, which is an application that supports candidate items as input; if the type of application meets the image condition, the output candidate items include the identifier of the image.

[0131] In some embodiments of the present application, the image generation module 403 is also used to identify the type of application, where the application is an application that includes an input box and the cursor is located in the input box; if the type of the application meets the image condition, the at least one trajectory is recorded and an image including the at least one trajectory is generated.

[0132] The present application also provides an information processing device, Fig. 9 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application is shown in FIG. Fig. 9As shown, the information processing device 500 includes: a display 501, a memory 502 and a processor 503, and the display 501, the memory 502 and the processor 503 are connected via a communication bus 504. Among them, the display 501, the display screen is used to output the content to be displayed; the memory 502 is used to store executable information processing instructions; the processor 503 is used to implement the method provided in the embodiment of the present application when executing the executable information processing instructions stored in the memory, for example, to implement the information processing method provided in the embodiment of the present application.

[0133] In the embodiment of the present application, the processor 503 may be at least one of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a central processing unit (CPU), a controller, a microcontroller, and a microprocessor. It is understandable that for different devices, the electronic device used to implement the above-mentioned processor function may also be other, and the embodiment of the present application does not specifically limit this.

[0134] In an embodiment of the present application, the processor 503 is used to obtain user input, wherein the user input represents at least one trajectory; perform recognition based on the trajectory and obtain at least one matching result based on standard database matching; record the at least one trajectory and generate an image including the at least one trajectory; and output candidate items, wherein the candidate items include the at least one matching result and an identifier of the image.

[0135] The embodiment of the present application also provides a computer-readable storage medium storing executable information processing instructions, which are used to cause the processor 503 to execute and implement the method provided by the embodiment of the present application, for example, the executable information processing method provided by the embodiment of the present application. Exemplarily, the information processing method instructions in the present embodiment can be stored on a storage medium such as a CD, a hard disk, a USB flash drive, etc. When the program instructions corresponding to an information processing method in the storage medium are read or executed by an electronic device, the information processing method described in any of the above embodiments can be implemented.

[0136] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.

[0137] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices or computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable information processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable information processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0138] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable information processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0139] These computer program instructions can also be loaded onto a computer or other programmable information processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0140] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims

1. An information processing method, include: obtaining a user input, the user input representing at least one trajectory; Identify using the trajectory and obtain at least one matching result based on standard database matching; recording the at least one trajectory and generating a dynamic image including the at least one trajectory; The dynamic image is used to display the at least one trajectory combination process; Outputting a candidate item, wherein the candidate item includes the at least one matching result and an identifier of the dynamic image.

2. The method according to claim 1, wherein obtaining user input, include: Get the Nth trajectory; Before the Nth track reaches the disappearance time, an N+1th track is obtained, wherein N is an integer greater than or equal to 1, and the Nth track reaching the disappearance time indicates that the user input is completed.

3. The method according to claim 2, wherein the identification is performed based on the trajectory, and at least one matching result is obtained based on standard database matching. include: Recognize using the trajectory and obtain at least one character based on character database matching; and / or, Recognition is performed based on trajectories, and at least one graph is matched based on a graph database.

4. The method according to claim 3, wherein the identification is performed by using a trajectory. include: If the N+1th trajectory is obtained, the Nth trajectory is combined with the N+1th trajectory for identification.

5. The method according to claim 1, wherein the output candidate items are: include: If the at least one matching result does not include a matching result that satisfies an exact matching condition, taking the identifier of the dynamic image as a first choice of the candidate items; The candidate items are outputted in the order of the identifier of the dynamic image and the at least one matching result.

6. The method according to claim 1, wherein the output candidate items are: include: identifying a type of application, the application being an application that supports the candidate as input; If the type of the application meets the image condition, the output candidate includes the identifier of the dynamic image.

7. The method according to claim 1, wherein the recording of the at least one trajectory generates a dynamic image including the at least one trajectory. include: Identify the type of application, where the application includes an input box and a cursor is located in the input box; If the type of the application meets the image condition, the at least one trajectory is recorded, and a dynamic image including the at least one trajectory is generated.

8. An information processing device, include: A display screen, the display screen is used to output content to be displayed; A memory for storing executable information processing instructions; A processor, configured to implement the method according to any one of claims 1 to 7 when executing the executable information processing instructions stored in the memory.