WO2020221115A1 - Method and device for displaying information - Google Patents

Method and device for displaying information Download PDF

Info

Publication number
WO2020221115A1
WO2020221115A1 PCT/CN2020/086570 CN2020086570W WO2020221115A1 WO 2020221115 A1 WO2020221115 A1 WO 2020221115A1 CN 2020086570 W CN2020086570 W CN 2020086570W WO 2020221115 A1 WO2020221115 A1 WO 2020221115A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
user
input
characters
target trajectory
Prior art date
Application number
PCT/CN2020/086570
Other languages
French (fr)
Chinese (zh)
Inventor
嵇坤
Original Assignee
上海掌门科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海掌门科技有限公司 filed Critical 上海掌门科技有限公司
Publication of WO2020221115A1 publication Critical patent/WO2020221115A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Definitions

  • the embodiments of the present disclosure relate to the field of computer technology, in particular to methods and devices for displaying information.
  • users can use mobile terminals to input information.
  • the input information is usually presented on the screen of the mobile terminal in a fixed arrangement, and the form is relatively simple.
  • the embodiments of the present disclosure propose methods and devices for displaying information.
  • an embodiment of the present disclosure provides a method for displaying information, the method includes: acquiring information input by a user, determining a target track corresponding to the information input by the user, and based on the information input by the user and The target trajectory generates display information.
  • the determining the target trajectory corresponding to the information input by the user includes: in response to detecting the user's input information operation, generating prompt information, wherein the prompt information is used to prompt the user whether to arrange the input according to the target trajectory Information; in response to obtaining feedback information for the prompt information, and the feedback information represents that the user chooses to arrange the input information according to the target trajectory, and obtain the target trajectory input by the user;
  • the determining the target trajectory corresponding to the information input by the user includes: in response to detecting that the user selects an operation of arranging the input information according to the target trajectory, acquiring the target trajectory input by the user.
  • the determining the target trajectory corresponding to the information input by the user includes: acquiring position information of each point in the trajectory input by the user; and generating the target trajectory based on the position information of each point.
  • the generating the target trajectory based on the position information of each point includes: connecting the position information of each point according to the input time to generate the initial trajectory; and determining the pattern of the target trajectory based on the initial trajectory and the preset graph shape.
  • the generating display information based on the information input by the user and the target trajectory includes: arranging the information according to the pattern shape of the target trajectory, and generating display information, wherein the display range of the display information does not exceed the The range defined by the pattern shape.
  • arranging the information according to the pattern shape of the target track and generating the display information includes: determining the first number of characters that the pattern formed by the target track can contain; determining the second number contained in the information Whether the number of characters is less than or equal to the first number of characters; in response to the second number of characters being less than or equal to the first number of characters, the information is arranged in the shape of the pattern, and display information is generated.
  • arranging the information in a pattern shape and generating display information includes: responding to the second number of characters being less than or equal to the first number of characters , Reducing the pattern shape so that the number of characters that the pattern shape can accommodate matches the second number of characters; arranging the information according to the pattern shape, and generating display information.
  • the method further includes: in response to the second number of characters being greater than the first number of characters, enlarging the pattern shape so that the number of characters that the pattern shape can accommodate matches the second number of characters; Information is arranged in the shape of the pattern, and display information is generated.
  • the method further includes: in response to the second number of characters being greater than the first number of characters, extracting keywords in the information; arranging the keywords in the shape of the pattern, and generating display information.
  • the information input by the user includes at least one of the following: text information and image information.
  • the information input by the user is determined by the following steps: receiving voice information input by the user; performing voice recognition on the voice information, and using the recognized text information as the information input by the user.
  • an embodiment of the present disclosure provides an apparatus for displaying information, including: an information acquisition unit configured to acquire information input by a user; and a target trajectory determination unit configured to determine information input by the user Corresponding target trajectory; the first information display unit is configured to generate display information based on the information input by the user and the target trajectory.
  • the target trajectory determination unit includes: a prompt information generation subunit configured to generate prompt information in response to detecting a user's input information operation, wherein the prompt information is used to prompt the user whether to select the target trajectory Arrange the input information; the target track acquisition subunit is configured to respond to acquiring feedback information for the prompt information, and the feedback information represents that the user chooses to arrange the input information according to the target track to acquire the target track input by the user.
  • the target trajectory determining unit is further configured to obtain the target trajectory input by the user in response to detecting that the user selects an operation of arranging the input information according to the target trajectory.
  • the target trajectory acquisition subunit includes: a position information acquisition module configured to acquire the position information of each point in the trajectory input by the user; the target trajectory generation module is configured to generate position information based on the position information of each point Target trajectory.
  • the target trajectory generating module is further configured to connect the position information of each point according to the input time to generate an initial trajectory; based on the initial trajectory and a preset pattern, determine the pattern shape of the target trajectory.
  • the first information display unit is further configured to arrange the information according to the pattern shape of the target track and generate display information, wherein the display range of the display information does not exceed the range defined by the pattern shape .
  • the first information display unit includes: a first judgment module configured to determine the first number of characters that can be accommodated in the pattern shape formed by the target track; and a second judgment module configured to determine the location of the information. Whether the included second number of characters is less than or equal to the first number of characters; the display module is configured to arrange the information according to the pattern shape in response to the second number of characters of the information being less than or equal to the first number of characters, and Generate display information.
  • the display module is further configured to, in response to the second number of characters being less than or equal to the first number of characters, reduce the pattern shape so that the number of characters that the pattern shape can accommodate is the same as the second number of characters. Match; arrange the information according to the pattern shape, and generate display information.
  • the device further includes: a processing unit configured to, in response to the second number of characters being greater than the first number of characters, amplify the pattern shape so that the number of characters that the pattern shape can accommodate is equal to the second number of characters.
  • the number of characters matches;
  • the second information display unit is configured to arrange the information according to the pattern shape and generate display information.
  • the device further includes: a keyword extraction unit configured to extract keywords in the information in response to the second number of characters being greater than the first number of characters; and a third information display unit configured to The keywords are arranged in the shape of the pattern, and display information is generated.
  • an embodiment of the present disclosure provides an electronic device, including: one or more processors; a storage device on which one or more programs are stored; when one or more programs are processed by one or more The processor executes, so that one or more processors implement the method described in any implementation manner of the first aspect.
  • an embodiment of the present disclosure provides a computer-readable medium having a computer program stored thereon, wherein the program is executed by a processor to implement a method as in any one of the first aspect.
  • the method and device for displaying information provided by the embodiments of the present disclosure first obtain the information input by the user and determine the target track corresponding to the information input by the user. Then, based on the information input by the user and the target trajectory, display information is generated. When the user inputs information, the information input by the user is displayed according to the target track input by the user, thereby increasing the diversity and flexibility of the information displayed by the terminal device.
  • FIG. 1 is an exemplary system architecture diagram in which an embodiment of the present disclosure can be applied
  • Fig. 2 is a flowchart of an embodiment of a method for displaying information according to the present disclosure
  • Fig. 3 is a schematic diagram of an application scenario of the method for displaying information according to an embodiment of the present disclosure
  • Fig. 4 is a flowchart of another embodiment of a method for displaying information according to the present disclosure
  • Fig. 5a is a schematic diagram of information display of a method for displaying information according to an embodiment of the present disclosure
  • 5b is another schematic diagram of information display of the method for displaying information according to an embodiment of the present disclosure.
  • 5c is another schematic diagram of information display of the method for displaying information according to an embodiment of the present disclosure.
  • Fig. 6 is a schematic structural diagram of an embodiment of an apparatus for displaying information according to the present disclosure
  • FIG. 7 is a schematic structural diagram of a target trajectory determining unit according to the embodiment shown in FIG. 6 of the present disclosure.
  • FIG. 8 is a schematic structural diagram of a first information display unit according to the embodiment shown in FIG. 6 of the present disclosure.
  • Fig. 9 is a schematic structural diagram of an electronic device suitable for implementing the embodiments of the present disclosure.
  • FIG. 1 shows an exemplary architecture 100 to which an embodiment of the method for displaying information of the present disclosure can be applied.
  • the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105.
  • the network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105.
  • the network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables.
  • the terminal devices 101, 102, 103 interact with the server 105 through the network 104 to receive or send messages and so on.
  • Various communication client applications can be installed on the terminal devices 101, 102, 103, such as web browser applications, instant messaging tools, email clients, social platform software, traffic information applications, browser applications, reading applications, etc. .
  • the terminal devices 101, 102, and 103 may be hardware or software.
  • the terminal devices 101, 102, 103 can be various electronic devices that have a display screen and support communication with the server, including but not limited to smart phones, tablet computers, e-book readers, and MP3 players (Moving Picture Experts). Group Audio Layer III, Motion Picture Experts compress standard audio layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Motion Picture Experts compress standard audio layer 4) Players, laptop portable computers and desktop computers, etc.
  • the terminal devices 101, 102, and 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, software or software modules used to provide distributed services), or as a single software or software module. There is no specific limitation here.
  • the server 105 may be a server that provides various services, for example, a back-end server that provides support for information displayed on the terminal devices 101, 102, and 103.
  • the background server can analyze and process the received information, and feed back the result of the information processing to the terminal device.
  • the server can be hardware or software.
  • the server can be implemented as a distributed server cluster composed of multiple servers, or as a single server.
  • the server is software, it can be implemented as multiple software or software modules (for example, software or software modules for providing distributed services), or as a single software or software module. There is no specific limitation here.
  • the method for displaying information provided by the embodiments of the present disclosure is generally executed by a terminal device, and accordingly, the apparatus for displaying information is generally provided in the terminal device.
  • terminal devices, networks, and servers in FIG. 1 are merely illustrative. According to implementation needs, there can be any number of terminal devices, networks and servers.
  • a process 200 of an embodiment of the method for displaying information according to the present disclosure includes the following steps:
  • Step 201 Obtain information input by the user.
  • the execution subject of the method for displaying information can obtain the information input by the user.
  • the information input by the user may include text information or image information. For example, "Happy birthday to you" is a text message. English letters, etc. are also text information.
  • the information input by the user may also include image information such as photos, and may also include moving pictures taken by the user.
  • Step 202 Determine the target track corresponding to the information input by the user.
  • step 201 may be executed first and then step 202 may be executed, or step 202 may be executed first and then step 201 may be executed. That is, the above-mentioned execution subject may first obtain the information input by the user and then determine the target trajectory, or may first determine the target trajectory and then obtain the information input by the user.
  • the above-mentioned execution body may have multiple trajectories built in in advance, and then push and display the target trajectory for use by the user.
  • the target trajectory here may include patterns of various shapes, for example.
  • the above-mentioned execution subject may determine the target track corresponding to the information input by the user through the following steps:
  • the first step is to generate prompt information in response to detecting the user's input information operation.
  • the above-mentioned execution subject may generate prompt information when detecting a user's input operation.
  • the prompt information here is used to prompt the user whether to choose to arrange the input information according to the target track.
  • the terminal device when a user prepares to input information on a terminal device, the user usually touches the display screen with a finger. If the terminal device detects the operation of the user to input information, the terminal device can generate a prompt message to prompt the user whether to choose to arrange the input information according to the target track.
  • the second step is to obtain the target trajectory input by the user in response to obtaining the feedback information for the prompt information, and the feedback information represents that the user chooses to arrange the input information according to the target trajectory.
  • the above-mentioned execution subject can obtain the target trajectory input by the user.
  • the terminal device prompts the user whether to choose to arrange the input information according to the target trajectory, and the user can select the "Yes" option.
  • the terminal device can prepare to obtain the trajectory input by the user.
  • the user can input the desired target track on the terminal device.
  • the user can draw a heart-shaped pattern with his fingers on the display screen of the terminal device.
  • circular patterns, trapezoidal patterns, etc. can also be drawn, and this embodiment is not limited thereto.
  • the target track input by the terminal device obtained by the user may be the heart-shaped pattern.
  • the user may also input the target trajectory in other forms, such as inputting with a touch pen, etc. This embodiment is not limited thereto.
  • the above-mentioned execution subject may obtain the target trajectory input by the user. For example, if the user needs to input information on the terminal device, he can first click in the input field to select the input option of "arrange input information according to the target track", and then enter the target track on the input interface.
  • the above-mentioned execution subject may also determine the target track corresponding to the information input by the user through the following steps:
  • the first step is to obtain the position information of each point in the trajectory input by the user.
  • the terminal device when the user inputs a track on the terminal device, for example, the user draws a heart-shaped pattern on the display screen of the terminal device with a finger.
  • the terminal device can capture the position information of each point in the track input by the user. Specifically, when the user draws a pattern on the display screen of the terminal device, the terminal device can obtain the coordinates of each pixel point of the pattern on the display screen.
  • the second step is to generate a target trajectory based on the position information of each point.
  • the terminal device after acquiring the position information of each point, the terminal device can connect the points in sequence according to the input time, and the shape pattern formed after the connection is the target track.
  • the problem of irregular shape of the pattern may occur.
  • the drawn pattern is a circle with multiple undulations in the curve, that is, the curve is not smooth.
  • the terminal device sequentially connects the position information of each point according to the input time to generate an initial trajectory (for example, the aforementioned circle with an unsmooth curve). After that, the terminal device can compare the initial trajectory with the preset graph.
  • the preset graphics here may be, for example, a graphics group composed of multiple standard graphics.
  • the preset graphics include patterns in the shape of a circle, a heart, a square, and a body shape. Then, the terminal device compares the initial trajectory input by the user with these preset patterns one by one, and recognizes the pattern shape with the highest similarity to the initial trajectory. Finally, the pattern shape with the highest similarity is determined as the pattern shape of the target track.
  • the target trajectory can be made more standardized, thereby making the generated display information more beautiful.
  • Step 203 Generate display information based on the information input by the user and the target track.
  • the execution subject may combine the information input by the user with the target trajectory to generate display information.
  • the target trajectory is circular and the information input by the user is "Happy birthday to you"
  • the terminal device may display the target trajectory, and the words "Happy Birthday to you” are displayed in the displayed circular pattern.
  • This example only illustrates the generated display information, and this embodiment is not limited thereto.
  • the above-mentioned execution subject may determine the information input by the user through the following steps:
  • the first step is to receive the voice information input by the user.
  • the above-mentioned execution subject may receive voice information input by the user.
  • the terminal device can receive the voice message "Thank you today” input by the user through the voice receiving device installed on it.
  • the second step is to perform voice recognition on the voice information, and use the recognized text information as the information input by the user.
  • the above-mentioned execution subject may convert the voice information into text information.
  • the terminal device performs voice recognition and analysis on the voice information, converts it into text information, and uses the text information as the information input by the user to facilitate subsequent display operations. This facilitates user input and saves user time.
  • FIG. 3 is a schematic diagram 300 of an application scenario of the method for displaying information according to an embodiment of the present disclosure.
  • Xiao Ming uses his mobile phone (terminal device 302) to input information.
  • the terminal device 302 detects the user's input information operation, it generates the message "Do you choose to arrange the input information according to the target trajectory? (Prompt message 303)".
  • Xiao Ming selects "Yes" (feedback information 304).
  • the terminal device 302 can prompt Xiao Ming to input the target track.
  • Xiao Ming inputs a heart-shaped pattern (as shown by reference numeral 305) on the terminal device 302, and the message "Happy birthday to you” (as shown by reference numeral 306).
  • the terminal device 302 can combine the information with the heart-shaped pattern, that is, it can display the heart-shaped pattern (as shown by reference numeral 307) including the text information, and the text information is arranged in the pattern.
  • the information displayed by the terminal device is usually in a single horizontal or vertical row, and the information cannot be displayed according to the pattern track that the user likes, and the information display form is single.
  • the method provided by the above-mentioned embodiments of the present disclosure obtains user input information and determines the target track corresponding to the user input information. Then, according to the information input by the user and the target trajectory, display information is generated. Since the method for displaying information in this embodiment can display the information input by the user in combination with the target track input by the user, the form of the display information of the terminal device is rich and flexible.
  • FIG. 4 shows a flow 400 of another embodiment of a method for displaying information.
  • the method for displaying information, applied to a terminal device includes the following steps:
  • Step 401 Obtain information input by the user.
  • Step 402 in response to detecting the user's input information operation, generate prompt information.
  • Step 403 In response to obtaining the feedback information for the prompt information, which indicates that the user chooses to arrange the input information according to the target trajectory, obtain the target trajectory input by the user.
  • steps 401, 402, and 403 can be performed in a manner similar to the steps 201 and 202 in the previous embodiment, respectively, and the above is for the optional implementation of steps 201 and 202
  • the description of is also applicable to step 401, step 402, and step 403, and will not be repeated here.
  • Step 404 Arrange the information according to the pattern shape of the target track, and generate display information.
  • the above-mentioned execution subject may arrange the information according to the pattern shape of the target track, and generate display information.
  • the display range of the information does not exceed the range defined by the pattern shape.
  • the information input by the user is “to keep warm when the weather cools down today”.
  • the target trajectory input by the user is a heart-shaped pattern.
  • the terminal device can arrange and display the text information "Cool down in today's weather, keep warm” in the arrangement shown in FIG. 5a, or arrange and display the text information in the arrangement shown in FIG. 5b.
  • the final information form is displayed in the form of this heart-shaped pattern. This makes the forms of information display rich and diverse, and increases the diversity and flexibility of information displayed by terminal devices.
  • the information when the information is displayed, the information is arranged in the shape of the pattern formed by the target track, and the pattern may or may not be displayed at this time.
  • the lines When the pattern is displayed, the lines may be solid lines or dotted lines, and this embodiment is limited by this.
  • the display form of the information is shown in Figure 5c.
  • the above-mentioned execution subject may arrange the information according to the pattern shape of the target track and generate display information through the following steps:
  • the first step is to determine the first number of characters that can be accommodated in the pattern shape formed by the target track.
  • the execution subject may analyze and determine the area of the target trajectory. Afterwards, for a character of a preset size, the execution subject may determine how many such characters can be contained in the pattern shape, that is, the first number of characters.
  • the second step is to determine whether the number of second characters contained in the information is less than or equal to the number of first characters.
  • the execution subject may determine the second number of characters contained in the information. For example, the terminal device may determine that the number of characters contained in "Cool down today, keep warm" is 10. Assume that the number of first characters that can be accommodated in the aforementioned pattern shape is 20. The terminal device compares the second number of characters with the first number of characters, and determines whether the second number of characters is less than the first number of characters.
  • the information in response to the second number of characters being less than or equal to the first number of characters, the information is arranged in a pattern shape, and display information is generated.
  • the execution subject compares the second number of characters with the first number of characters, for example, in the second step, the first number of characters is 20, and the first number of characters is 10, and it is determined that The number of two characters 10 is less than the number of first characters 20. Then the execution subject arranges the information according to the shape of the pattern, and displays the arranged information. The information displayed here after the arrangement is the generated display information. By comparing the first number of characters with the second number of characters, it is ensured that all the information can be displayed in the pattern.
  • the execution subject may also reduce the pattern shape so that the number of characters that can be accommodated in the pattern shape matches the second number of characters.
  • the above-mentioned executive body can reduce the pattern so that it can accommodate The number of characters matches the number of characters in the message. After that, the information is arranged according to the reduced pattern shape, and the information is displayed.
  • the above-mentioned execution subject may enlarge the pattern shape to make the pattern shape accommodate the characters The number matches the second number of characters. Therefore, it is ensured that the information input by the user can be completely displayed in the pattern formed by the target track and arranged in the shape of the pattern.
  • the second number of characters of the information is 30, and the first number of characters that can be accommodated in the pattern shape is 20, the second number of characters 30 is greater than the first number of characters 20.
  • the execution subject may enlarge the pattern shape so that the number of characters that the pattern shape can accommodate is greater than or equal to 30. So that all characters of the message can be displayed.
  • the above-mentioned execution subject can also extract keywords from the information. For example, in the message "to keep warm when the weather is cooling down today", the terminal device can extract the keywords "cooling" and "keeping warm”. Then, the terminal device arranges these keywords in a pattern shape formed by the target track, and then generates display information. For example, the generated display information is these keywords arranged in the above-mentioned pattern shape. This ensures that when the user inputs too much information, the main information is not missed, and the information can be arranged in the shape of the target track.
  • the flow 400 of the method for displaying information in this embodiment embodies the arrangement of the information according to the pattern shape of the target track, and the generation of display information A step of. Therefore, the solution described in this embodiment can arrange the information input by the user according to the pattern shape formed by the target track, and then generate the display information, thereby making the information display rich and diverse, and increasing the diversity and flexibility of the terminal device display information Sex.
  • the present disclosure provides an embodiment of a device for displaying information.
  • the device embodiment corresponds to the method embodiment shown in FIG.
  • the device can be specifically applied to terminal equipment.
  • the apparatus 600 for displaying information includes an information acquiring unit 601, a target trajectory determining unit 602, and a first information displaying unit 603.
  • the information acquiring unit 601 is configured to acquire information input by the user;
  • the target trajectory determining unit 602 is configured to determine a target trajectory corresponding to the information input by the user;
  • the first information display unit 603 is configured to be based on the user The input information and target trajectory generate display information.
  • the specific processing of the information acquisition unit 601, the target trajectory determination unit 602, and the first information display unit 603 and the technical effects brought by them can be referred to the corresponding embodiment in FIG. 2 respectively.
  • the related descriptions of step 201, step 202, and step 203 in, will not be repeated here.
  • the target trajectory determining unit 602 includes a prompt information generating subunit 6021 and a target trajectory acquiring subunit 6022.
  • the prompt information generating subunit 6021 may be configured to generate prompt information in response to detecting the user's input information operation, wherein the prompt information is used to prompt the user whether to arrange the input information according to the target trajectory; the target trajectory acquisition subunit 6022.
  • the prompt information In response to obtaining feedback information for the prompt information, it indicates that the user chooses to arrange the input information according to the target trajectory to obtain the target trajectory input by the user.
  • the target trajectory determining unit may be further configured to obtain the target trajectory input by the user in response to detecting that the user selects an operation of arranging the input information according to the target trajectory.
  • the aforementioned target trajectory acquisition subunit 6022 may include a position information acquisition module and a target trajectory generation module (not shown in the figure).
  • the position information obtaining module may be configured to obtain the position information of each point in the trajectory input by the user;
  • the target trajectory generating module may be configured to generate the target trajectory based on the position information of each point.
  • the above-mentioned target trajectory generation module may be further configured to connect the position information of each point according to the input time to generate an initial trajectory; based on the initial trajectory and a preset graph, determine the target The pattern shape of the track.
  • the above-mentioned first information display unit 603 may be further configured to arrange the information according to the pattern shape of the target track, and generate display information, wherein the display range of the information is not Beyond the range defined by the pattern shape.
  • the above-mentioned first information display unit 603 may include a first judgment module 6031, a second judgment module 6032 and a display module 6033.
  • the first judgment module 6031 can be configured to determine the first number of characters that can be contained in the pattern shape formed by the target track;
  • the second judgment module 6032 can be configured to determine whether the second number of characters contained in the information is less than Or equal to the first number of characters;
  • the display module 6033 may be configured to respond to the second number of characters of the information being less than or equal to the first number of characters, arranging the information in the shape of the pattern, and generating display information.
  • the above-mentioned display module 6033 may be further configured to reduce the pattern shape to make the pattern shape in response to the second number of characters of the information being less than or equal to the first number of characters.
  • the number of characters that can be accommodated matches the second number of characters; the information is arranged in the shape of the pattern, and display information is generated.
  • the apparatus 600 for displaying information may further include a processing unit and a second information display unit (not shown in the figure).
  • the processing unit is configured to, in response to the second number of characters being greater than the first number of characters, amplify the pattern shape so that the number of characters that can be accommodated in the pattern shape matches the second number of characters;
  • a second information display unit Is configured to arrange the information in the shape of the pattern and generate display information.
  • the device 600 for displaying information may further include a keyword extraction unit and a third information display unit (not shown in the figure).
  • the keyword extraction unit is configured to extract keywords in the information in response to the second number of characters being greater than the first number of characters; the third information display unit is configured to arrange the keywords in the shape of the pattern , And generate display information.
  • An embodiment of the present disclosure provides a device for displaying information.
  • the prompt information generating unit 601 generates prompt information when detecting a user's input operation.
  • the target track acquisition unit acquires the target track input by the user when the user chooses to arrange the input information according to the target track.
  • the first information display unit 603 then displays the information according to the information input by the user and the target track. Since the apparatus for displaying information of this embodiment can display the information input by the user in combination with the target track input by the user, the form of the display information of the terminal device is rich and flexible.
  • FIG. 9 shows a schematic structural diagram of an electronic device (for example, the terminal device in FIG. 1) 900 suitable for implementing embodiments of the present disclosure.
  • the terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals ( For example, mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs and desktop computers.
  • the terminal device shown in FIG. 9 is only an example, and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
  • the electronic device 900 may include a processing device (such as a central processing unit, a graphics processor, etc.) 901, which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 902 or from a storage device 908
  • the program in the memory (RAM) 903 executes various appropriate actions and processing.
  • the RAM 903 also stores various programs and data required for the operation of the electronic device 900.
  • the processing device 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904.
  • An input/output (I/O) interface 905 is also connected to the bus 904.
  • the following devices can be connected to the I/O interface 905: including input devices 906 such as touch screen, touch panel, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD, Liquid Crystal Display) , A speaker, a vibrator, etc. output device 907; including a storage device 908 such as a hard disk; and a communication device 909.
  • the communication device 909 may allow the electronic device 900 to perform wireless or wired communication with other devices to exchange data.
  • FIG. 9 shows an electronic device 900 having various devices, it should be understood that it is not required to implement or have all the illustrated devices. It may alternatively be implemented or provided with more or fewer devices.
  • Each block shown in Figure 9 can represent one device, or can represent multiple devices as needed.
  • the process described above with reference to the flowchart can be implemented as a computer software program.
  • the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart.
  • the computer program may be downloaded and installed from the network through the communication device 909, or installed from the storage device 908, or installed from the ROM 902.
  • the processing device 901 the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
  • the computer-readable medium described in the embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two.
  • the computer-readable storage medium may be, for example, but not limited to, an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
  • the computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, and a computer-readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium.
  • the computer-readable signal medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
  • the program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the foregoing.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist alone without being assembled into the terminal device.
  • the above-mentioned computer-readable medium carries one or more programs.
  • the terminal device is caused to generate prompt information in response to detecting the user's input information operation, wherein the prompt Information is used to prompt the user whether to arrange the input information according to the target trajectory; in response to obtaining the feedback information for the prompt information, the user chooses to arrange the input information according to the target trajectory to obtain the target trajectory input by the user; based on the information input by the user and the target trajectory To generate display information.
  • the computer program code for performing the operations of the embodiments of the present disclosure can be written in one or more programming languages or a combination thereof, the programming languages including object-oriented programming languages-such as Java, Smalltalk, C++, It also includes conventional procedural programming languages-such as "C" language or similar programming languages.
  • the program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server.
  • the remote computer can be connected to the user's computer through any kind of network including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to pass Internet connection).
  • LAN local area network
  • WAN wide area network

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A method and device for displaying information. The method comprises: acquiring information input by a user (201); determining a target trajectory corresponding to the information input by the user (202); and generating display information on the basis of the information input by the user and the target trajectory (203). By means of the method, the diversity and flexibility of a terminal device displaying information is improved.

Description

用于显示信息的方法和设备Method and equipment for displaying information 技术领域Technical field
本公开的实施例涉及计算机技术领域,具体涉及用于显示信息的方法和设备。The embodiments of the present disclosure relate to the field of computer technology, in particular to methods and devices for displaying information.
背景技术Background technique
随着科技发展,移动终端成为人们出行不可少的随身携带物品。移动终端的出现,方便人们进行沟通。With the development of technology, mobile terminals have become indispensable carry-on items for people to travel. The emergence of mobile terminals facilitates people's communication.
例如,用户可以利用移动终端进行信息输入。但输入的信息通常会以固定的排列方式呈现在移动终端的屏幕上,形式比较单一。For example, users can use mobile terminals to input information. However, the input information is usually presented on the screen of the mobile terminal in a fixed arrangement, and the form is relatively simple.
发明内容Summary of the invention
本公开的实施例提出了用于显示信息的方法和设备。The embodiments of the present disclosure propose methods and devices for displaying information.
第一方面,本公开的实施例提供了一种用于显示信息的方法,该方法包括:获取用户输入的信息,确定与该用户输入的信息相对应的目标轨迹,基于该用户输入的信息和该目标轨迹,生成显示信息。In the first aspect, an embodiment of the present disclosure provides a method for displaying information, the method includes: acquiring information input by a user, determining a target track corresponding to the information input by the user, and based on the information input by the user and The target trajectory generates display information.
在一些实施例中,该确定与用户输入的信息相对应的目标轨迹包括:响应于检测到用户的输入信息操作,生成提示信息,其中,该提示信息用于提示用户是否选择根据目标轨迹排列输入信息;响应于获取到针对该提示信息的反馈信息,且所述反馈信息表征用户选择根据目标轨迹排列输入信息,获取用户输入的目标轨迹;In some embodiments, the determining the target trajectory corresponding to the information input by the user includes: in response to detecting the user's input information operation, generating prompt information, wherein the prompt information is used to prompt the user whether to arrange the input according to the target trajectory Information; in response to obtaining feedback information for the prompt information, and the feedback information represents that the user chooses to arrange the input information according to the target trajectory, and obtain the target trajectory input by the user;
在一些实施例中,该确定与用户输入的信息相对应的目标轨迹包括:响应于检测到用户选择根据目标轨迹排列输入信息的操作,获取用户输入的目标轨迹。In some embodiments, the determining the target trajectory corresponding to the information input by the user includes: in response to detecting that the user selects an operation of arranging the input information according to the target trajectory, acquiring the target trajectory input by the user.
在一些实施例中,该确定与用户输入的信息相对应的目标轨迹,包括:获取用户输入的轨迹中的各点的位置信息;基于各点的位置信息,生成目标轨迹。In some embodiments, the determining the target trajectory corresponding to the information input by the user includes: acquiring position information of each point in the trajectory input by the user; and generating the target trajectory based on the position information of each point.
在一些实施例中,该基于各点的位置信息,生成目标轨迹,包括:将各点的位置信息按输入时间进行连接,生成初始轨迹;基于该初始轨迹和预设图形,确定目标轨迹的图案形状。In some embodiments, the generating the target trajectory based on the position information of each point includes: connecting the position information of each point according to the input time to generate the initial trajectory; and determining the pattern of the target trajectory based on the initial trajectory and the preset graph shape.
在一些实施例中,该基于用户输入的信息和目标轨迹,生成显示信息,包括:将该信息按目标轨迹的图案形状进行排列,以及生成显示信息,其中,该显示信息的显示范围不超出该图案形状所限定的范围。In some embodiments, the generating display information based on the information input by the user and the target trajectory includes: arranging the information according to the pattern shape of the target trajectory, and generating display information, wherein the display range of the display information does not exceed the The range defined by the pattern shape.
在一些实施例中,将该信息按该目标轨迹的图案形状进行排列,以及生成显示信息,包括:确定目标轨迹构成的图案形状所能容纳的第一字符数;确定该信息所包含的第二字符数是否小于或者等于该第一字符数;响应于该第二字符数小于或者等于第一字符数,将该信息按该图案形状进行排列,以及生成显示信息。In some embodiments, arranging the information according to the pattern shape of the target track and generating the display information includes: determining the first number of characters that the pattern formed by the target track can contain; determining the second number contained in the information Whether the number of characters is less than or equal to the first number of characters; in response to the second number of characters being less than or equal to the first number of characters, the information is arranged in the shape of the pattern, and display information is generated.
在一些实施例中,响应于第二字符数小于或者等于第一字符数,将该信息按图案形状进行排列,以及生成显示信息,包括:响应于该第二字符数小于或者等于第一字符数,将该图案形状进行缩小以使该图案形状所能容纳的字符数与第二字符数匹配;将该信息按所述图案形状进行排列,以及生成显示信息。In some embodiments, in response to the second number of characters being less than or equal to the first number of characters, arranging the information in a pattern shape and generating display information includes: responding to the second number of characters being less than or equal to the first number of characters , Reducing the pattern shape so that the number of characters that the pattern shape can accommodate matches the second number of characters; arranging the information according to the pattern shape, and generating display information.
在一些实施例中,该方法还包括:响应于该第二字符数大于第一字符数,将该图案形状进行放大以使该图案形状所能容纳的字符数与第二字符数匹配;将该信息按该图案形状进行排列,以及生成显示信息。In some embodiments, the method further includes: in response to the second number of characters being greater than the first number of characters, enlarging the pattern shape so that the number of characters that the pattern shape can accommodate matches the second number of characters; Information is arranged in the shape of the pattern, and display information is generated.
在一些实施例中,该方法还包括:响应于该第二字符数大于第一字符数,提取该信息中的关键词;将该关键词按该图案形状进行排列,以及生成显示信息。In some embodiments, the method further includes: in response to the second number of characters being greater than the first number of characters, extracting keywords in the information; arranging the keywords in the shape of the pattern, and generating display information.
在一些实施例中,该用户输入的信息包括以下至少一项:文本信息、图像信息。In some embodiments, the information input by the user includes at least one of the following: text information and image information.
在一些实施例中,该用户输入的信息是通过以下步骤确定的:接收用户输入的语音信息;对该语音信息进行语音识别,将识别得到的文本信息作为用户输入的信息。In some embodiments, the information input by the user is determined by the following steps: receiving voice information input by the user; performing voice recognition on the voice information, and using the recognized text information as the information input by the user.
第二方面,本公开的实施例提供了一种用于显示信息的装置,包括:信息获取单元,被配置成获取用户输入的信息;目标轨迹确定单元,被配置成确定与该用户输入的信息相对应的目标轨迹;第一信息显示单元,被配置成基于用 户输入的信息和目标轨迹,生成显示信息。In a second aspect, an embodiment of the present disclosure provides an apparatus for displaying information, including: an information acquisition unit configured to acquire information input by a user; and a target trajectory determination unit configured to determine information input by the user Corresponding target trajectory; the first information display unit is configured to generate display information based on the information input by the user and the target trajectory.
在一些实施例中,该目标轨迹确定单元包括:提示信息生成子单元,被配置成响应于检测到用户的输入信息操作,生成提示信息,其中,该提示信息用于提示用户是否选择根据目标轨迹排列输入信息;目标轨迹获取子单元,被配置成响应于获取到针对该提示信息的反馈信息,且所述反馈信息表征用户选择根据目标轨迹排列输入信息,获取用户输入的目标轨迹。In some embodiments, the target trajectory determination unit includes: a prompt information generation subunit configured to generate prompt information in response to detecting a user's input information operation, wherein the prompt information is used to prompt the user whether to select the target trajectory Arrange the input information; the target track acquisition subunit is configured to respond to acquiring feedback information for the prompt information, and the feedback information represents that the user chooses to arrange the input information according to the target track to acquire the target track input by the user.
在一些实施例中,该目标轨迹确定单元进一步被配置成响应于检测到用户选择根据目标轨迹排列输入信息的操作,获取用户输入的目标轨迹。In some embodiments, the target trajectory determining unit is further configured to obtain the target trajectory input by the user in response to detecting that the user selects an operation of arranging the input information according to the target trajectory.
在一些实施例中,目标轨迹获取子单元包括:位置信息获取模块,被配置成获取用户输入的轨迹中的各点的位置信息;目标轨迹生成模块,被配置成基于各点的位置信息,生成目标轨迹。In some embodiments, the target trajectory acquisition subunit includes: a position information acquisition module configured to acquire the position information of each point in the trajectory input by the user; the target trajectory generation module is configured to generate position information based on the position information of each point Target trajectory.
在一些实施例中,该目标轨迹生成模块进一步被配置成将各点的位置信息按输入时间进行连接,生成初始轨迹;基于该初始轨迹和预设图形,确定目标轨迹的图案形状。In some embodiments, the target trajectory generating module is further configured to connect the position information of each point according to the input time to generate an initial trajectory; based on the initial trajectory and a preset pattern, determine the pattern shape of the target trajectory.
在一些实施例中,该第一信息显示单元进一步被配置成将该信息按目标轨迹的图案形状进行排列,以及生成显示信息,其中,该显示信息的显示范围不超出该图案形状所限定的范围。In some embodiments, the first information display unit is further configured to arrange the information according to the pattern shape of the target track and generate display information, wherein the display range of the display information does not exceed the range defined by the pattern shape .
在一些实施例中,该第一信息显示单元包括:第一判断模块,被配置成确定目标轨迹构成的图案形状所能容纳的第一字符数;第二判断模块,被配置成确定该信息所包含的第二字符数是否小于或者等于该第一字符数;显示模块,被配置成响应于该信息的第二字符数小于或者等于第一字符数,将该信息按该图案形状进行排列,以及生成显示信息。In some embodiments, the first information display unit includes: a first judgment module configured to determine the first number of characters that can be accommodated in the pattern shape formed by the target track; and a second judgment module configured to determine the location of the information. Whether the included second number of characters is less than or equal to the first number of characters; the display module is configured to arrange the information according to the pattern shape in response to the second number of characters of the information being less than or equal to the first number of characters, and Generate display information.
在一些实施例中,该显示模块进一步被配置成响应于该第二字符数小于或者等于第一字符数,将该图案形状进行缩小以使该图案形状所能容纳的字符数与第二字符数匹配;将该信息按所述图案形状进行排列,以及生成显示信息。In some embodiments, the display module is further configured to, in response to the second number of characters being less than or equal to the first number of characters, reduce the pattern shape so that the number of characters that the pattern shape can accommodate is the same as the second number of characters. Match; arrange the information according to the pattern shape, and generate display information.
在一些实施例中,该装置还包括:处理单元,被配置成响应于该第二字符数大于第一字符数,将该图案形状进行放大以使该图案形状所能容纳的字符数与第二字符数匹配;第二信息显示单元,被配置成将该信息按该图案形状进行排列,以及生成显示信息。In some embodiments, the device further includes: a processing unit configured to, in response to the second number of characters being greater than the first number of characters, amplify the pattern shape so that the number of characters that the pattern shape can accommodate is equal to the second number of characters. The number of characters matches; the second information display unit is configured to arrange the information according to the pattern shape and generate display information.
在一些实施例中,该装置还包括:关键词提取单元,被配置成响应于该第二字符数大于第一字符数,提取该信息中的关键词;第三信息显示单元,被配置成将该关键词按该图案形状进行排列,以及生成显示信息。In some embodiments, the device further includes: a keyword extraction unit configured to extract keywords in the information in response to the second number of characters being greater than the first number of characters; and a third information display unit configured to The keywords are arranged in the shape of the pattern, and display information is generated.
第三方面,本公开的实施例提供了一种电子设备,包括:一个或多个处理器;存储装置,其上存储有一个或多个程序;当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如第一方面任一实现方式描述的方法。In a third aspect, an embodiment of the present disclosure provides an electronic device, including: one or more processors; a storage device on which one or more programs are stored; when one or more programs are processed by one or more The processor executes, so that one or more processors implement the method described in any implementation manner of the first aspect.
第四方面,本公开的实施例提供了一种计算机可读介质,其上存储有计算机程序,其中,该程序被处理器执行时实现如第一方面中任一实现方式的方法。In a fourth aspect, an embodiment of the present disclosure provides a computer-readable medium having a computer program stored thereon, wherein the program is executed by a processor to implement a method as in any one of the first aspect.
本公开的实施例提供的用于显示信息的方法和设备,首先获取用户输入的信息以及确定与该用户输入的信息相对应的目标轨迹。然后,基于用户输入的信息和目标轨迹,生成显示信息。由于用户在输入信息时,根据用户输入的目标轨迹来显示用户输入的信息,从而增加了终端设备显示信息的多样性和灵活性。The method and device for displaying information provided by the embodiments of the present disclosure first obtain the information input by the user and determine the target track corresponding to the information input by the user. Then, based on the information input by the user and the target trajectory, display information is generated. When the user inputs information, the information input by the user is displayed according to the target track input by the user, thereby increasing the diversity and flexibility of the information displayed by the terminal device.
附图说明Description of the drawings
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本公开的其它特征、目的和优点将会变得更明显:By reading the detailed description of the non-limiting embodiments with reference to the following drawings, other features, purposes and advantages of the present disclosure will become more apparent:
图1是本公开的一个实施例可以应用于其中的示例性系统架构图;FIG. 1 is an exemplary system architecture diagram in which an embodiment of the present disclosure can be applied;
图2是根据本公开的用于显示信息的方法的一个实施例的流程图;Fig. 2 is a flowchart of an embodiment of a method for displaying information according to the present disclosure;
图3是根据本公开的实施例的用于显示信息的方法的一个应用场景的示意图;Fig. 3 is a schematic diagram of an application scenario of the method for displaying information according to an embodiment of the present disclosure;
图4是根据本公开的用于显示信息的方法的又一个实施例的流程图;Fig. 4 is a flowchart of another embodiment of a method for displaying information according to the present disclosure;
图5a是根据本公开的实施例的用于显示信息的方法的信息显示的一个示意图;Fig. 5a is a schematic diagram of information display of a method for displaying information according to an embodiment of the present disclosure;
图5b是根据本公开的实施例的用于显示信息的方法的信息显示的另一个示意图;5b is another schematic diagram of information display of the method for displaying information according to an embodiment of the present disclosure;
图5c是根据本公开的实施例的用于显示信息的方法的信息显示的再一个示意图;5c is another schematic diagram of information display of the method for displaying information according to an embodiment of the present disclosure;
图6是根据本公开的用于显示信息的装置的一个实施例的结构示意图;Fig. 6 is a schematic structural diagram of an embodiment of an apparatus for displaying information according to the present disclosure;
图7是根据本公开的图6所示的实施例的目标轨迹确定单元的结构示意图;FIG. 7 is a schematic structural diagram of a target trajectory determining unit according to the embodiment shown in FIG. 6 of the present disclosure;
图8是根据本公开的图6所示的实施例的第一信息显示单元的结构示意图;FIG. 8 is a schematic structural diagram of a first information display unit according to the embodiment shown in FIG. 6 of the present disclosure;
图9是适于用来实现本公开的实施例的电子设备的结构示意图。Fig. 9 is a schematic structural diagram of an electronic device suitable for implementing the embodiments of the present disclosure.
具体实施方式Detailed ways
下面结合附图和实施例对本公开作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The present disclosure will be further described in detail below in conjunction with the drawings and embodiments. It can be understood that the specific embodiments described here are only used to explain the related invention, but not to limit the invention. In addition, it should be noted that, for ease of description, only the parts related to the relevant invention are shown in the drawings.
需要说明的是,在不冲突的情况下,本公开中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本公开。It should be noted that the embodiments in the present disclosure and the features in the embodiments can be combined with each other if there is no conflict. Hereinafter, the present disclosure will be described in detail with reference to the drawings and in conjunction with embodiments.
图1示出了可以应用本公开的用于显示信息的方法的实施例的示例性架构100。FIG. 1 shows an exemplary architecture 100 to which an embodiment of the method for displaying information of the present disclosure can be applied.
如图1所示,系统架构100可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables.
终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103上可以安装有各种通讯客户端应用,例如网页浏览器应用、即时通信工具、邮箱客户端、社交平台软件、交通信息类应用、浏览器类应用、阅读类应用等。The terminal devices 101, 102, 103 interact with the server 105 through the network 104 to receive or send messages and so on. Various communication client applications can be installed on the terminal devices 101, 102, 103, such as web browser applications, instant messaging tools, email clients, social platform software, traffic information applications, browser applications, reading applications, etc. .
终端设备101、102、103可以是硬件,也可以是软件。当终端设备101、102、103为硬件时,可以是具有显示屏并且支持与服务器通信的各种电子设备,包括但不限于智能手机、平板电脑、电子书阅读器、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、膝上型便携计算机和台式计算机等等。当终端设备101、102、103为软件时,可以安装在上述所列举的电子设备中。其可以实现成多个软件 或软件模块(例如用来提供分布式服务的软件或软件模块),也可以实现成单个软件或软件模块。在此不做具体限定。The terminal devices 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they can be various electronic devices that have a display screen and support communication with the server, including but not limited to smart phones, tablet computers, e-book readers, and MP3 players (Moving Picture Experts). Group Audio Layer III, Motion Picture Experts compress standard audio layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Motion Picture Experts compress standard audio layer 4) Players, laptop portable computers and desktop computers, etc. When the terminal devices 101, 102, and 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, software or software modules used to provide distributed services), or as a single software or software module. There is no specific limitation here.
服务器105可以是提供各种服务的服务器,例如对终端设备101、102、103上显示的信息提供支持的后台服务器。后台服务器可以对接收到的信息进行分析和处理,并将信息处理的结果反馈给终端设备。The server 105 may be a server that provides various services, for example, a back-end server that provides support for information displayed on the terminal devices 101, 102, and 103. The background server can analyze and process the received information, and feed back the result of the information processing to the terminal device.
服务器可以是硬件,也可以是软件。当服务器为硬件时,可以实现成多个服务器组成的分布式服务器集群,也可以实现成单个服务器。当服务器为软件时,可以实现成多个软件或软件模块(例如用来提供分布式服务的软件或软件模块),也可以实现成单个软件或软件模块。在此不做具体限定。The server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster composed of multiple servers, or as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, software or software modules for providing distributed services), or as a single software or software module. There is no specific limitation here.
需要说明的是,本公开的实施例所提供的用于显示信息的方法一般由终端设备执行,相应地,用于显示信息的装置一般设置于终端设备中。It should be noted that the method for displaying information provided by the embodiments of the present disclosure is generally executed by a terminal device, and accordingly, the apparatus for displaying information is generally provided in the terminal device.
应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks, and servers in FIG. 1 are merely illustrative. According to implementation needs, there can be any number of terminal devices, networks and servers.
继续参考图2,示出了根据本公开的用于显示信息的方法的一个实施例的流程200。该用于显示信息的方法,应用于终端设备,包括以下步骤:Continuing to refer to FIG. 2, a process 200 of an embodiment of the method for displaying information according to the present disclosure is shown. The method for displaying information, applied to a terminal device, includes the following steps:
步骤201,获取用户输入的信息。Step 201: Obtain information input by the user.
在本实施例中,用于显示信息的方法的执行主体(如图1所示的终端设备101或终端设备102或终端设备103)可以获取用户输入的信息。In this embodiment, the execution subject of the method for displaying information (the terminal device 101 or the terminal device 102 or the terminal device 103 shown in FIG. 1) can obtain the information input by the user.
这里的用户输入的信息可以包括文本信息,也可以包括图像信息。例如“祝你生日快乐”为文本信息。英文字母等也为文本信息。用户输入的信息还可以包括照片等图像信息,还可以包括用户拍摄的动图等。The information input by the user here may include text information or image information. For example, "Happy birthday to you" is a text message. English letters, etc. are also text information. The information input by the user may also include image information such as photos, and may also include moving pictures taken by the user.
步骤202,确定与该用户输入的信息相对应的目标轨迹。Step 202: Determine the target track corresponding to the information input by the user.
在本实施例中,上述步骤201与步骤202的执行顺序不做具体限制。例如可以先执行步骤201再执行步骤202,也可以先执行步骤202再执行步骤201。即上述执行主体可以先获取用户输入的信息,再确定目标轨迹,也可以先确定目标轨迹,再获取用户输入的信息。In this embodiment, the execution order of the above step 201 and step 202 is not specifically limited. For example, step 201 may be executed first and then step 202 may be executed, or step 202 may be executed first and then step 201 may be executed. That is, the above-mentioned execution subject may first obtain the information input by the user and then determine the target trajectory, or may first determine the target trajectory and then obtain the information input by the user.
在本实施例中,上述执行主体可以预先内置有多个轨迹,然后推送显示目 标轨迹以提供给用户使用。这里的目标轨迹例如可以包括各种形状的图案。In this embodiment, the above-mentioned execution body may have multiple trajectories built in in advance, and then push and display the target trajectory for use by the user. The target trajectory here may include patterns of various shapes, for example.
在本实施例的一些可选的实现方式中,上述执行主体可以通过以下步骤确定与用户输入的信息相对应的目标轨迹:In some optional implementation manners of this embodiment, the above-mentioned execution subject may determine the target track corresponding to the information input by the user through the following steps:
第一步,响应于检测到用户的输入信息操作,生成提示信息。The first step is to generate prompt information in response to detecting the user's input information operation.
在本实施例中,上述执行主体可以在检测到用户的输入信息操作时,生成提示信息。其中,这里的提示信息用于提示用户是否选择根据目标轨迹排列输入信息。In this embodiment, the above-mentioned execution subject may generate prompt information when detecting a user's input operation. Among them, the prompt information here is used to prompt the user whether to choose to arrange the input information according to the target track.
例如用户在终端设备上准备输入信息时,通常用户会用手指触摸显示屏。若终端设备检测到用户输入信息的操作,终端设备可以生成提示信息,以提示用户是否选择根据目标轨迹排列输入信息。For example, when a user prepares to input information on a terminal device, the user usually touches the display screen with a finger. If the terminal device detects the operation of the user to input information, the terminal device can generate a prompt message to prompt the user whether to choose to arrange the input information according to the target track.
第二步,响应于获取到针对该提示信息的反馈信息,且该反馈信息表征用户选择根据目标轨迹排列输入信息,获取用户输入的目标轨迹。The second step is to obtain the target trajectory input by the user in response to obtaining the feedback information for the prompt information, and the feedback information represents that the user chooses to arrange the input information according to the target trajectory.
在本实施例中,若获取到针对该提示信息的反馈信息表征用户选择根据目标轨迹排列输入信息,上述执行主体可以获取用户输入的目标轨迹。In this embodiment, if the feedback information obtained for the prompt information indicates that the user chooses to arrange the input information according to the target trajectory, the above-mentioned execution subject can obtain the target trajectory input by the user.
例如,终端设备提示用户是否选择根据目标轨迹排列输入信息,用户可以选择“是”选项。此时,终端设备可以准备获取用户输入的轨迹。然后,用户可以在终端设备上输入想要的目标轨迹。作为示例,用户可以在终端设备的显示屏上用手指画出心形图案。当然也可以画出圆形图案,梯形图案等等,本实施例不以此为限制。那么,终端设备获取用户输入的目标轨迹可以为该心形图案。当然,用户还可以通过其他形式输入目标轨迹,例如用触摸笔输入等,本实施例不以此为限制。For example, the terminal device prompts the user whether to choose to arrange the input information according to the target trajectory, and the user can select the "Yes" option. At this time, the terminal device can prepare to obtain the trajectory input by the user. Then, the user can input the desired target track on the terminal device. As an example, the user can draw a heart-shaped pattern with his fingers on the display screen of the terminal device. Of course, circular patterns, trapezoidal patterns, etc. can also be drawn, and this embodiment is not limited thereto. Then, the target track input by the terminal device obtained by the user may be the heart-shaped pattern. Of course, the user may also input the target trajectory in other forms, such as inputting with a touch pen, etc. This embodiment is not limited thereto.
在本实施例的一些可选的实现方式中,若检测到用户选择根据目标轨迹排列输入信息的操作,上述执行主体可以获取用户输入的目标轨迹。例如用户若需要在终端设备上输入信息,可以先在输入栏点击选择“根据目标轨迹排列输入信息”的输入选项,然后再在输入界面输入目标轨迹。In some optional implementation manners of this embodiment, if it is detected that the user selects the operation of arranging the input information according to the target trajectory, the above-mentioned execution subject may obtain the target trajectory input by the user. For example, if the user needs to input information on the terminal device, he can first click in the input field to select the input option of "arrange input information according to the target track", and then enter the target track on the input interface.
在本实施例的一些可选的实现方式中,上述执行主体还可以通过如下步骤确定与用户输入的信息相对应的目标轨迹:In some optional implementation manners of this embodiment, the above-mentioned execution subject may also determine the target track corresponding to the information input by the user through the following steps:
第一步,获取用户输入的轨迹中的各点的位置信息。The first step is to obtain the position information of each point in the trajectory input by the user.
在该实现方式中,用户在终端设备上输入轨迹时,例如用户用手指在终端 设备的显示屏上画出心形图案。终端设备则可以捕捉用户输入的轨迹中的各点的位置信息。具体的,用户在终端设备的显示屏上画出图案时,终端设备可以获取该图案在显示屏上的各个像素点的坐标。In this implementation, when the user inputs a track on the terminal device, for example, the user draws a heart-shaped pattern on the display screen of the terminal device with a finger. The terminal device can capture the position information of each point in the track input by the user. Specifically, when the user draws a pattern on the display screen of the terminal device, the terminal device can obtain the coordinates of each pixel point of the pattern on the display screen.
第二步,基于该各点的位置信息,生成目标轨迹。The second step is to generate a target trajectory based on the position information of each point.
在该实现方式中,终端设备在获取各点的位置信息之后,可以将各点按输入的时间进行顺序连接,连接之后形成的形状图案即为目标轨迹。In this implementation manner, after acquiring the position information of each point, the terminal device can connect the points in sequence according to the input time, and the shape pattern formed after the connection is the target track.
由于用户在输入轨迹时,直接按用户的输入来确定目标轨迹可能会出现图案的形状不规范的问题。例如,用户在输入圆形轨迹时,画出的图案是曲线出现多次起伏的圆,即曲线不平滑。Because the user directly determines the target trajectory according to the user's input when inputting the trajectory, the problem of irregular shape of the pattern may occur. For example, when the user inputs a circular trajectory, the drawn pattern is a circle with multiple undulations in the curve, that is, the curve is not smooth.
在一个可选的实现方式中,终端设备在将各点的位置信息按输入时间进行顺序连接,生成初始轨迹(例如上述曲线不平滑的圆)。之后,终端设备可以将该初始轨迹与预设图形进行比较。这里的预设图形,例如可以是多个标准图形构成的图形组。例如该预设图形包括圆形、心形、方形、体型等形状的图案。然后,终端设备将用户输入的初始轨迹一一与这些预设图形进行比较,识别与该初始轨迹相似度最高的图案形状。最后,将该相似度最高的图案形状确定为目标轨迹的图案形状。In an optional implementation manner, the terminal device sequentially connects the position information of each point according to the input time to generate an initial trajectory (for example, the aforementioned circle with an unsmooth curve). After that, the terminal device can compare the initial trajectory with the preset graph. The preset graphics here may be, for example, a graphics group composed of multiple standard graphics. For example, the preset graphics include patterns in the shape of a circle, a heart, a square, and a body shape. Then, the terminal device compares the initial trajectory input by the user with these preset patterns one by one, and recognizes the pattern shape with the highest similarity to the initial trajectory. Finally, the pattern shape with the highest similarity is determined as the pattern shape of the target track.
通过该实现方式,可以使得目标轨迹更加规范,从而使得生成的显示信息更加美观。Through this implementation, the target trajectory can be made more standardized, thereby making the generated display information more beautiful.
步骤203,基于用户输入的信息和该目标轨迹,生成显示信息。Step 203: Generate display information based on the information input by the user and the target track.
在本实施例中,在获取用户输入的目标轨迹之后,上述执行主体可以将用户输入的信息与该目标轨迹结合来生成显示信息。作为示例,例如该目标轨迹为圆形,用户输入的信息为“祝你生日快乐”,则终端设备可以显示该目标轨迹,并且在显示的圆形图案中显示有“祝你生日快乐”字样。本示例只是示例性说明生成的显示信息,本实施例不以此为限制。In this embodiment, after acquiring the target trajectory input by the user, the execution subject may combine the information input by the user with the target trajectory to generate display information. As an example, for example, if the target trajectory is circular and the information input by the user is "Happy birthday to you", the terminal device may display the target trajectory, and the words "Happy Birthday to you" are displayed in the displayed circular pattern. This example only illustrates the generated display information, and this embodiment is not limited thereto.
在本实施例的一些可选的实现方式中,上述执行主体可以通过如下步骤确定用户输入的信息:In some optional implementation manners of this embodiment, the above-mentioned execution subject may determine the information input by the user through the following steps:
第一步,接收用户输入的语音信息。The first step is to receive the voice information input by the user.
在该可选的实现方式中,上述执行主体可以接收用户输入的语音信息。例如终端设备可以通过其上安装的语音接收装置接收用户输入的语音信息“今天 谢谢你”。In this optional implementation manner, the above-mentioned execution subject may receive voice information input by the user. For example, the terminal device can receive the voice message "Thank you today" input by the user through the voice receiving device installed on it.
第二步,对该语音信息进行语音识别,将识别得到的文本信息作为用户输入的信息。The second step is to perform voice recognition on the voice information, and use the recognized text information as the information input by the user.
在该可选的实现方式中,在接收到语音信息之后,上述执行主体可以将该语音信息转化为文本信息。具体地,终端设备在接收到用户输入的语音信息之后,对该语音信息进行语音识别和解析,将其转化为文本信息,将该文本信息作为用户输入的信息,以便于后续的显示操作。从而方便用户输入,节省用户时间。In this optional implementation manner, after receiving the voice information, the above-mentioned execution subject may convert the voice information into text information. Specifically, after receiving the voice information input by the user, the terminal device performs voice recognition and analysis on the voice information, converts it into text information, and uses the text information as the information input by the user to facilitate subsequent display operations. This facilitates user input and saves user time.
继续参见图3,图3是根据本公开的实施例的用于显示信息的方法的应用场景的一个示意图300。在图3的应用场景中,小明(用户301)使用其手机(终端设备302)输入信息。终端设备302在检测到用户的输入信息操作之后,生成信息“是否选择根据目标轨迹排列输入信息?(提示信息303)”。Continue to refer to FIG. 3, which is a schematic diagram 300 of an application scenario of the method for displaying information according to an embodiment of the present disclosure. In the application scenario of FIG. 3, Xiao Ming (user 301) uses his mobile phone (terminal device 302) to input information. After the terminal device 302 detects the user's input information operation, it generates the message "Do you choose to arrange the input information according to the target trajectory? (Prompt message 303)".
小明选择“是”(反馈信息304)。则终端设备302接收到该提示信息之后,可以提示小明输入目标轨迹。小明在终端设备302上输入心形图案(如附图标记305所示),以及信息“祝你生日快乐”(如附图标记306所示)。终端设备302可以将该信息与心形图案结合,即可以显示包括这些文字信息的心形图案(如附图标记307所示),文字信息在该图案中排列。Xiao Ming selects "Yes" (feedback information 304). After receiving the prompt information, the terminal device 302 can prompt Xiao Ming to input the target track. Xiao Ming inputs a heart-shaped pattern (as shown by reference numeral 305) on the terminal device 302, and the message "Happy birthday to you" (as shown by reference numeral 306). The terminal device 302 can combine the information with the heart-shaped pattern, that is, it can display the heart-shaped pattern (as shown by reference numeral 307) including the text information, and the text information is arranged in the pattern.
目前,现有技术之一通常是用户在输入信息时,终端设备显示的信息通常是单一的横排或者竖排,不能够按照用户喜欢的图案轨迹显示信息,信息显示形式单一。而本公开的上述实施例提供的方法,获取用户输入信息,以及确定与该用户输入的信息相对应的目标轨迹。之后,再根据该用户输入的信息和该目标轨迹,生成显示信息。由于本实施例的用于显示信息的方法能够结合用户输入的目标轨迹来显示用户输入的信息,使得终端设备的显示信息的形式丰富,灵活性好。Currently, one of the existing technologies is that when a user inputs information, the information displayed by the terminal device is usually in a single horizontal or vertical row, and the information cannot be displayed according to the pattern track that the user likes, and the information display form is single. The method provided by the above-mentioned embodiments of the present disclosure obtains user input information and determines the target track corresponding to the user input information. Then, according to the information input by the user and the target trajectory, display information is generated. Since the method for displaying information in this embodiment can display the information input by the user in combination with the target track input by the user, the form of the display information of the terminal device is rich and flexible.
进一步参考图4,其示出了用于显示信息的方法的又一个实施例的流程400。该用于显示信息的方法,应用于终端设备,包括以下步骤:With further reference to FIG. 4, it shows a flow 400 of another embodiment of a method for displaying information. The method for displaying information, applied to a terminal device, includes the following steps:
步骤401,获取用户输入的信息。Step 401: Obtain information input by the user.
步骤402,响应于检测到用户的输入信息操作,生成提示信息。 Step 402, in response to detecting the user's input information operation, generate prompt information.
步骤403,响应于获取到针对该提示信息的反馈信息表征用户选择根据目标轨迹排列输入信息,获取用户输入的目标轨迹。Step 403: In response to obtaining the feedback information for the prompt information, which indicates that the user chooses to arrange the input information according to the target trajectory, obtain the target trajectory input by the user.
在本实施例中,上述步骤401、步骤402、步骤403可以分别采用与前述实施例中的步骤201、步骤202类似的方式执行,并且,上文针对步骤201和步骤202中可选实现方式中的描述也适用于步骤401、步骤402和步骤403,此处不再赘述。In this embodiment, the above steps 401, 402, and 403 can be performed in a manner similar to the steps 201 and 202 in the previous embodiment, respectively, and the above is for the optional implementation of steps 201 and 202 The description of is also applicable to step 401, step 402, and step 403, and will not be repeated here.
步骤404,将该信息按目标轨迹的图案形状进行排列,以及生成显示信息。Step 404: Arrange the information according to the pattern shape of the target track, and generate display information.
在本实施例中,在获取用户输入的信息之后,上述执行主体可以将该信息按目标轨迹的图案形状进行排列,以及生成显示信息。其中,该信息的显示范围不超出该图案形状所限定的范围。In this embodiment, after acquiring the information input by the user, the above-mentioned execution subject may arrange the information according to the pattern shape of the target track, and generate display information. Wherein, the display range of the information does not exceed the range defined by the pattern shape.
作为示例,例如用户输入的信息是“今天天气降温注意保暖”。用户输入的目标轨迹是心形图案。终端设备可以将文字信息“今天天气降温注意保暖”以图5a所示的排列形式排列以及显示,也可以将该文字信息以图5b所示的排列形式排列以及显示。最终呈现的信息形式以该心形图案的形式显示。从而使得信息显示的形式丰富多样,增加终端设备显示信息的多样性和灵活性。As an example, for example, the information input by the user is “to keep warm when the weather cools down today”. The target trajectory input by the user is a heart-shaped pattern. The terminal device can arrange and display the text information "Cool down in today's weather, keep warm" in the arrangement shown in FIG. 5a, or arrange and display the text information in the arrangement shown in FIG. 5b. The final information form is displayed in the form of this heart-shaped pattern. This makes the forms of information display rich and diverse, and increases the diversity and flexibility of information displayed by terminal devices.
需要说明的是,在本实施例中,在显示该信息时,该信息以该目标轨迹构成的图案形状进行排列,此时可以显示出该图案,也可以不显示该图案。当显示该图案时,线条可以为实线,也可以为虚线,本实施例以此为限制。当不显示该图案时,信息的显示形式如图5c所示。It should be noted that, in this embodiment, when the information is displayed, the information is arranged in the shape of the pattern formed by the target track, and the pattern may or may not be displayed at this time. When the pattern is displayed, the lines may be solid lines or dotted lines, and this embodiment is limited by this. When the pattern is not displayed, the display form of the information is shown in Figure 5c.
在本实施例的一些可选的实现方式中,上述执行主体可以通过以下步骤将该信息按照目标轨迹的图案形状进行排列,以及生成显示信息:In some optional implementations of this embodiment, the above-mentioned execution subject may arrange the information according to the pattern shape of the target track and generate display information through the following steps:
第一步,确定该目标轨迹构成的图案形状所能容纳的第一字符数。The first step is to determine the first number of characters that can be accommodated in the pattern shape formed by the target track.
在该可选的实现方式中,在获取目标轨迹之后,上述执行主体可以分析确定该目标轨迹的面积。之后,对于预设大小的字符,上述执行主体可以确定该图案形状能够包含多少个这样的字符,即第一字符数。In this optional implementation manner, after acquiring the target trajectory, the execution subject may analyze and determine the area of the target trajectory. Afterwards, for a character of a preset size, the execution subject may determine how many such characters can be contained in the pattern shape, that is, the first number of characters.
第二步,确定该信息所包含的第二字符数是否小于或者等于该第一字符数。The second step is to determine whether the number of second characters contained in the information is less than or equal to the number of first characters.
在该可选的实现方式中,上述执行主体在获取到用户输入的信息之后,可以确定该信息包含的第二字符数。例如终端设备可以确定“今天天气降温注意保暖”包含的字符数为10。假设上述图案形状的所能容纳的第一字符数为20。 终端设备将该第二字符数与第一字符数比较,确定该第二字符数是否小于第一字符数。In this optional implementation manner, after obtaining the information input by the user, the execution subject may determine the second number of characters contained in the information. For example, the terminal device may determine that the number of characters contained in "Cool down today, keep warm" is 10. Assume that the number of first characters that can be accommodated in the aforementioned pattern shape is 20. The terminal device compares the second number of characters with the first number of characters, and determines whether the second number of characters is less than the first number of characters.
第三步,响应于该第二字符数小于或者等于该第一字符数,将该信息按图案形状进行排列,以及生成显示信息。In the third step, in response to the second number of characters being less than or equal to the first number of characters, the information is arranged in a pattern shape, and display information is generated.
在该可选的实现方式中,上述执行主体在将第二字符数与第一字符数进行比较之后,例如上述第二步中,第一字符数为20,第一字符数为10,确定第二字符数10小于第一字符数20。则执行主体将该信息按图案形状进行排列,以及显示该排列后的信息。这里显示该排列后的信息即为生成的显示信息。通过比较第一字符数与第二字符数,确保该信息能够全部显示在该图案内。In this optional implementation manner, after the execution subject compares the second number of characters with the first number of characters, for example, in the second step, the first number of characters is 20, and the first number of characters is 10, and it is determined that The number of two characters 10 is less than the number of first characters 20. Then the execution subject arranges the information according to the shape of the pattern, and displays the arranged information. The information displayed here after the arrangement is the generated display information. By comparing the first number of characters with the second number of characters, it is ensured that all the information can be displayed in the pattern.
作为另一个示例,在第二字符数小于第一字符数时,上述执行主体还可以将该图案形状进行缩小,以使该图案形状所能容纳的字符数与该第二字符数匹配。As another example, when the second number of characters is less than the first number of characters, the execution subject may also reduce the pattern shape so that the number of characters that can be accommodated in the pattern shape matches the second number of characters.
即当该信息的字符数小于图案形状所能容纳的字符数时,为了避免图案空出太多空白,显示出的信息不够美观,上述执行主体可以将该图案进行缩小,从而使其所能容纳的字符数与该信息的字符数匹配。之后,再将该信息按照缩小后的图案形状进行排列,并且显示出该信息。That is, when the number of characters of the information is less than the number of characters that can be accommodated by the shape of the pattern, in order to avoid too much blank space in the pattern and the displayed information is not beautiful enough, the above-mentioned executive body can reduce the pattern so that it can accommodate The number of characters matches the number of characters in the message. After that, the information is arranged according to the reduced pattern shape, and the information is displayed.
在一个可选的实现方式中,当该信息的第二字符数大于该图案形状所能容纳的字符数时,上述执行主体可以将该图案形状进行放大,以使该图案形状所能容纳的字符数与该第二字符数匹配。从而保证该用户输入的信息能够完全显示在该目标轨迹构成的图案中,且以该图案的形状进行排列。In an optional implementation manner, when the second number of characters of the information is greater than the number of characters that can be accommodated by the pattern shape, the above-mentioned execution subject may enlarge the pattern shape to make the pattern shape accommodate the characters The number matches the second number of characters. Therefore, it is ensured that the information input by the user can be completely displayed in the pattern formed by the target track and arranged in the shape of the pattern.
作为一个示例,假设该信息的第二字符数为30,该图案形状所能容纳的第一字符数为20,则该第二字符数30大于第一字符数20。此时,上述执行主体可以将该图案形状放大,以使该图案形状所能容纳的字符数大于或者等于30。从而使得该信息所有的字符能够显示。As an example, assuming that the second number of characters of the information is 30, and the first number of characters that can be accommodated in the pattern shape is 20, the second number of characters 30 is greater than the first number of characters 20. At this time, the execution subject may enlarge the pattern shape so that the number of characters that the pattern shape can accommodate is greater than or equal to 30. So that all characters of the message can be displayed.
作为另一个示例,假设该信息的第二字符数为10,该图案形状所能容纳的第一字符数为8,则该第二字符数10大于第一字符数8。此时,上述执行主体还可以从该信息中提取关键词。例如信息“今天天气降温注意保暖”中,终端设备可以提取关键词“降温”、“注意保暖”。然后,终端设备将这些关键词以目标轨迹构成的图案形状进行排列,然后生成显示信息。例如生成的显示信 息是这些按上述图案形状进行排列的关键词。从而保证在用户输入的信息过多时,不遗漏主要信息的同时还能够以目标轨迹的形状进行排列信息。As another example, suppose that the second number of characters of the information is 10, and the first number of characters that can be accommodated in the pattern shape is 8, then the second number of characters 10 is greater than the first number of characters 8. At this time, the above-mentioned execution subject can also extract keywords from the information. For example, in the message "to keep warm when the weather is cooling down today", the terminal device can extract the keywords "cooling" and "keeping warm". Then, the terminal device arranges these keywords in a pattern shape formed by the target track, and then generates display information. For example, the generated display information is these keywords arranged in the above-mentioned pattern shape. This ensures that when the user inputs too much information, the main information is not missed, and the information can be arranged in the shape of the target track.
从图4中可以看出,与图2对应的实施例相比,本实施例中的用于显示信息的方法的流程400体现了将该信息按目标轨迹的图案形状进行排列,以及生成显示信息的步骤。由此,本实施例描述的方案,可以将用户输入的信息按照目标轨迹构成的图案形状进行排列,然后生成显示信息,从而使得信息显示的形式丰富多样,增加终端设备显示信息的多样性和灵活性。It can be seen from FIG. 4 that, compared with the embodiment corresponding to FIG. 2, the flow 400 of the method for displaying information in this embodiment embodies the arrangement of the information according to the pattern shape of the target track, and the generation of display information A step of. Therefore, the solution described in this embodiment can arrange the information input by the user according to the pattern shape formed by the target track, and then generate the display information, thereby making the information display rich and diverse, and increasing the diversity and flexibility of the terminal device display information Sex.
进一步参考图6,作为对上述各图所示方法的实现,本公开提供了一种用于显示信息的装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于终端设备中。With further reference to FIG. 6, as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a device for displaying information. The device embodiment corresponds to the method embodiment shown in FIG. The device can be specifically applied to terminal equipment.
如图6所示,本实施例提供的用于显示信息的装置600包括信息获取单元601、目标轨迹确定单元602和第一信息显示单元603。其中,信息获取单元601,被配置成获取用户输入的信息;目标轨迹确定单元602,被配置成确定与该用户输入的信息相对应的目标轨迹;第一信息显示单元603,被配置成基于用户输入的信息和目标轨迹,生成显示信息。As shown in FIG. 6, the apparatus 600 for displaying information provided in this embodiment includes an information acquiring unit 601, a target trajectory determining unit 602, and a first information displaying unit 603. The information acquiring unit 601 is configured to acquire information input by the user; the target trajectory determining unit 602 is configured to determine a target trajectory corresponding to the information input by the user; the first information display unit 603 is configured to be based on the user The input information and target trajectory generate display information.
本实施例中,用于显示信息的装置600中:信息获取单元601、目标轨迹确定单元602和第一信息显示单元603的具体处理及其所带来的技术效果可分别参考图2对应实施例中的步骤201、步骤202和步骤203的相关说明,在此不再赘述。In this embodiment, in the apparatus 600 for displaying information: the specific processing of the information acquisition unit 601, the target trajectory determination unit 602, and the first information display unit 603 and the technical effects brought by them can be referred to the corresponding embodiment in FIG. 2 respectively. The related descriptions of step 201, step 202, and step 203 in, will not be repeated here.
在本实施例的一些可选的实现方式中,如图7所示,目标轨迹确定单元602包括提示信息生成子单元6021和目标轨迹获取子单元6022。其中,提示信息生成子单元6021,可以被配置成响应于检测到用户的输入信息操作,生成提示信息,其中,该提示信息用于提示用户是否选择根据目标轨迹排列输入信息;目标轨迹获取子单元6022,可以被配置成响应于获取到针对该提示信息的反馈信息表征用户选择根据目标轨迹排列输入信息,获取用户输入的目标轨迹。In some optional implementation manners of this embodiment, as shown in FIG. 7, the target trajectory determining unit 602 includes a prompt information generating subunit 6021 and a target trajectory acquiring subunit 6022. Wherein, the prompt information generating subunit 6021 may be configured to generate prompt information in response to detecting the user's input information operation, wherein the prompt information is used to prompt the user whether to arrange the input information according to the target trajectory; the target trajectory acquisition subunit 6022. In response to obtaining feedback information for the prompt information, it indicates that the user chooses to arrange the input information according to the target trajectory to obtain the target trajectory input by the user.
在本实施例的一些可选的实现方式中,该目标轨迹确定单元可以进一步被配置成响应于检测到用户选择根据目标轨迹排列输入信息的操作,获取用户输入的目标轨迹。In some optional implementations of this embodiment, the target trajectory determining unit may be further configured to obtain the target trajectory input by the user in response to detecting that the user selects an operation of arranging the input information according to the target trajectory.
在本实施例的一些可选的实现方式中,上述目标轨迹获取子单元6022可以包括位置信息获取模块和目标轨迹生成模块(图中未示出)。其中,位置信息获取模块,可以被配置成获取用户输入的轨迹中的各点的位置信息;目标轨迹生成模块,可以被配置成基于各点的位置信息,生成目标轨迹。In some optional implementations of this embodiment, the aforementioned target trajectory acquisition subunit 6022 may include a position information acquisition module and a target trajectory generation module (not shown in the figure). Wherein, the position information obtaining module may be configured to obtain the position information of each point in the trajectory input by the user; the target trajectory generating module may be configured to generate the target trajectory based on the position information of each point.
在本实施例的一些可选的实现方式中,上述目标轨迹生成模块可以进一步被配置成将各点的位置信息按输入时间进行连接,生成初始轨迹;基于该初始轨迹和预设图形,确定目标轨迹的图案形状。In some optional implementations of this embodiment, the above-mentioned target trajectory generation module may be further configured to connect the position information of each point according to the input time to generate an initial trajectory; based on the initial trajectory and a preset graph, determine the target The pattern shape of the track.
在本实施例的一些可选的实现方式中,上述第一信息显示单元603可以进一步被配置成将该信息按目标轨迹的图案形状进行排列,以及生成显示信息,其中,该信息的显示范围不超出该图案形状所限定的范围。In some optional implementations of this embodiment, the above-mentioned first information display unit 603 may be further configured to arrange the information according to the pattern shape of the target track, and generate display information, wherein the display range of the information is not Beyond the range defined by the pattern shape.
在本实施例的一些可选的实现方式中,如图8所示,上述第一信息显示单元603可以包括第一判断模块6031、第二判断模块6032和显示模块6033。其中,第一判断模块6031,可以被配置成确定目标轨迹构成的图案形状所能容纳的第一字符数;第二判断模块6032,可以被配置成确定该信息所包含的第二字符数是否小于或者等于该第一字符数;显示模块6033,可以被配置成响应于该信息的第二字符数小于或者等于第一字符数,将该信息按该图案形状进行排列,以及生成显示信息。In some optional implementation manners of this embodiment, as shown in FIG. 8, the above-mentioned first information display unit 603 may include a first judgment module 6031, a second judgment module 6032 and a display module 6033. Wherein, the first judgment module 6031 can be configured to determine the first number of characters that can be contained in the pattern shape formed by the target track; the second judgment module 6032 can be configured to determine whether the second number of characters contained in the information is less than Or equal to the first number of characters; the display module 6033 may be configured to respond to the second number of characters of the information being less than or equal to the first number of characters, arranging the information in the shape of the pattern, and generating display information.
在本实施例的一些可选的实现方式中,上述显示模块6033可以进一步被配置成响应于该信息的第二字符数小于或者等于第一字符数,将该图案形状进行缩小以使该图案形状所能容纳的字符数与第二字符数匹配;将该信息按所述图案形状进行排列,以及生成显示信息。In some optional implementation manners of this embodiment, the above-mentioned display module 6033 may be further configured to reduce the pattern shape to make the pattern shape in response to the second number of characters of the information being less than or equal to the first number of characters. The number of characters that can be accommodated matches the second number of characters; the information is arranged in the shape of the pattern, and display information is generated.
在本实施例的一些可选的实现方式中,该用于显示信息的装置600还可以包括处理单元和第二信息显示单元(图中未示出)。其中,处理单元,被配置成响应于该第二字符数大于第一字符数,将该图案形状进行放大以使该图案形状所能容纳的字符数与第二字符数匹配;第二信息显示单元,被配置成将该信息按该图案形状进行排列,以及生成显示信息。In some optional implementation manners of this embodiment, the apparatus 600 for displaying information may further include a processing unit and a second information display unit (not shown in the figure). The processing unit is configured to, in response to the second number of characters being greater than the first number of characters, amplify the pattern shape so that the number of characters that can be accommodated in the pattern shape matches the second number of characters; a second information display unit , Is configured to arrange the information in the shape of the pattern and generate display information.
在本实施例的一些可选的实现方式中,该用于显示信息的装置600还可以包括关键词提取单元和第三信息显示单元(图中未示出)。其中,关键词提取单元,被配置成响应于该第二字符数大于第一字符数,提取该信息中的关键词; 第三信息显示单元,被配置成将该关键词按该图案形状进行排列,以及生成显示信息。In some optional implementation manners of this embodiment, the device 600 for displaying information may further include a keyword extraction unit and a third information display unit (not shown in the figure). The keyword extraction unit is configured to extract keywords in the information in response to the second number of characters being greater than the first number of characters; the third information display unit is configured to arrange the keywords in the shape of the pattern , And generate display information.
本公开实施例提供的一种用于显示信息的装置,提示信息生成单元601在检测到用户的输入信息操作时,生成提示信息。目标轨迹获取单元在用户选择根据目标轨迹排列输入信息时,获取用户输入的目标轨迹。第一信息显示单元603再根据该用户输入的信息和该目标轨迹,显示该信息。由于本实施例的用于显示信息的装置能够结合用户输入的目标轨迹来显示用户输入的信息,使得终端设备的显示信息的形式丰富,灵活性好。An embodiment of the present disclosure provides a device for displaying information. The prompt information generating unit 601 generates prompt information when detecting a user's input operation. The target track acquisition unit acquires the target track input by the user when the user chooses to arrange the input information according to the target track. The first information display unit 603 then displays the information according to the information input by the user and the target track. Since the apparatus for displaying information of this embodiment can display the information input by the user in combination with the target track input by the user, the form of the display information of the terminal device is rich and flexible.
下面参考图9,其示出了适于用来实现本公开的实施例的电子设备(例如图1中的终端设备)900的结构示意图。本公开的实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图9示出的终端设备仅仅是一个示例,不应对本公开的实施例的功能和使用范围带来任何限制。Referring now to FIG. 9, it shows a schematic structural diagram of an electronic device (for example, the terminal device in FIG. 1) 900 suitable for implementing embodiments of the present disclosure. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals ( For example, mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs and desktop computers. The terminal device shown in FIG. 9 is only an example, and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
如图9所示,电子设备900可以包括处理装置(例如中央处理器、图形处理器等)901,其可以根据存储在只读存储器(ROM)902中的程序或者从存储装置908加载到随机访问存储器(RAM)903中的程序而执行各种适当的动作和处理。在RAM 903中,还存储有电子设备900操作所需的各种程序和数据。处理装置901、ROM 902以及RAM 903通过总线904彼此相连。输入/输出(I/O)接口905也连接至总线904。As shown in FIG. 9, the electronic device 900 may include a processing device (such as a central processing unit, a graphics processor, etc.) 901, which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 902 or from a storage device 908 The program in the memory (RAM) 903 executes various appropriate actions and processing. The RAM 903 also stores various programs and data required for the operation of the electronic device 900. The processing device 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904. An input/output (I/O) interface 905 is also connected to the bus 904.
通常,以下装置可以连接至I/O接口905:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置906;包括例如液晶显示器(LCD,Liquid Crystal Display)、扬声器、振动器等的输出装置907;包括例如硬盘等的存储装置908;以及通信装置909。通信装置909可以允许电子设备900与其他设备进行无线或有线通信以交换数据。虽然图9示出了具有各种装置的电子设备900,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。图9中示出的每个方框可 以代表一个装置,也可以根据需要代表多个装置。Generally, the following devices can be connected to the I/O interface 905: including input devices 906 such as touch screen, touch panel, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD, Liquid Crystal Display) , A speaker, a vibrator, etc. output device 907; including a storage device 908 such as a hard disk; and a communication device 909. The communication device 909 may allow the electronic device 900 to perform wireless or wired communication with other devices to exchange data. Although FIG. 9 shows an electronic device 900 having various devices, it should be understood that it is not required to implement or have all the illustrated devices. It may alternatively be implemented or provided with more or fewer devices. Each block shown in Figure 9 can represent one device, or can represent multiple devices as needed.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置909从网络上被下载和安装,或者从存储装置908被安装,或者从ROM902被安装。在该计算机程序被处理装置901执行时,执行本公开的实施例的方法中限定的上述功能。In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network through the communication device 909, or installed from the storage device 908, or installed from the ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
需要说明的是,本公开的实施例所述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开的实施例中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开的实施例中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(Radio Frequency,射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium described in the embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In the embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device. In the embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, and a computer-readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium. The computer-readable signal medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device . The program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the foregoing.
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该终端设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该终端设备执行时,使得该终端设备:响应于检测到 用户的输入信息操作,生成提示信息,其中,该提示信息用于提示用户是否选择根据目标轨迹排列输入信息;响应于获取到针对该提示信息的反馈信息表征用户选择根据目标轨迹排列输入信息,获取用户输入的目标轨迹;基于用户输入的信息和目标轨迹,生成显示信息。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist alone without being assembled into the terminal device. The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the terminal device, the terminal device is caused to generate prompt information in response to detecting the user's input information operation, wherein the prompt Information is used to prompt the user whether to arrange the input information according to the target trajectory; in response to obtaining the feedback information for the prompt information, the user chooses to arrange the input information according to the target trajectory to obtain the target trajectory input by the user; based on the information input by the user and the target trajectory To generate display information.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的实施例的操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言-诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言-诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)-连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。The computer program code for performing the operations of the embodiments of the present disclosure can be written in one or more programming languages or a combination thereof, the programming languages including object-oriented programming languages-such as Java, Smalltalk, C++, It also includes conventional procedural programming languages-such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any kind of network including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to pass Internet connection).
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开的实施例中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开的实施例中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present disclosure and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solution formed by the specific combination of the above technical features, and should also cover the above-mentioned inventive concept without departing from the above-mentioned inventive concept. Other technical solutions formed by any combination of technical features or equivalent features. For example, the above-mentioned features and the technical features disclosed in the embodiments of the present disclosure (but not limited to) having similar functions are replaced with each other to form a technical solution.

Claims (14)

  1. 一种用于显示信息的方法,包括:A method for displaying information, including:
    获取用户输入的信息;Obtain the information entered by the user;
    确定与所述用户输入的信息相对应的目标轨迹;Determining a target trajectory corresponding to the information input by the user;
    基于所述用户输入的信息和所述目标轨迹,生成显示信息。Based on the information input by the user and the target trajectory, display information is generated.
  2. 根据权利要求1所述的方法,其中,所述确定与所述用户输入的信息相对应的目标轨迹,包括:The method according to claim 1, wherein said determining a target trajectory corresponding to the information input by the user comprises:
    响应于检测到用户的输入信息操作,生成提示信息,其中,所述提示信息用于提示用户是否选择根据目标轨迹排列输入信息;In response to detecting the user's input information operation, generating prompt information, wherein the prompt information is used to prompt the user whether to choose to arrange the input information according to the target track;
    响应于获取到针对所述提示信息的反馈信息,且所述反馈信息表征用户选择根据目标轨迹排列输入信息,获取用户输入的目标轨迹。In response to obtaining feedback information for the prompt information, and the feedback information represents that the user chooses to arrange the input information according to the target trajectory, the target trajectory input by the user is acquired.
  3. 根据权利要求1所述的方法,其中,所述确定与所述用户输入的信息相对应的目标轨迹,包括:The method according to claim 1, wherein said determining a target trajectory corresponding to the information input by the user comprises:
    响应于检测到用户选择根据目标轨迹排列输入信息的操作,获取用户输入的目标轨迹。In response to detecting that the user chooses to arrange the input information according to the target trajectory, the target trajectory input by the user is acquired.
  4. 根据权利要求1所述的方法,其中,所述确定与所述用户输入的信息相对应的目标轨迹,包括:The method according to claim 1, wherein said determining a target trajectory corresponding to the information input by the user comprises:
    获取用户输入的轨迹中的各点的位置信息;Obtain the position information of each point in the trajectory input by the user;
    基于所述各点的位置信息,生成目标轨迹。Based on the position information of each point, a target trajectory is generated.
  5. 根据权利要求4所述的方法,其中,所述基于所述各点的位置信息,生成目标轨迹,包括:The method according to claim 4, wherein the generating the target trajectory based on the position information of the respective points comprises:
    将所述各点的位置信息按输入时间进行顺序连接,生成初始轨迹;Connect the position information of the points in sequence according to the input time to generate an initial trajectory;
    基于所述初始轨迹和预设图形,确定目标轨迹的图案形状。Based on the initial trajectory and the preset pattern, the pattern shape of the target trajectory is determined.
  6. 根据权利要求1-5任一项所述的方法,其中,所述基于所述用户输入的信息和所述目标轨迹,生成显示信息,包括:The method according to any one of claims 1 to 5, wherein the generating display information based on the information input by the user and the target trajectory comprises:
    将所述信息按所述目标轨迹的图案形状进行排列,以及生成显示信息,其中,所述显示信息的显示范围不超出所述图案形状所限定的范围。Arranging the information according to the pattern shape of the target track, and generating display information, wherein the display range of the display information does not exceed the range defined by the pattern shape.
  7. 根据权利要求6所述的方法,其中,将所述信息按所述目标轨迹的图案形状进行排列,以及生成显示信息,包括:The method according to claim 6, wherein arranging the information according to the pattern shape of the target track and generating the display information comprises:
    确定所述目标轨迹构成的图案形状所能容纳的第一字符数;Determining the first number of characters that can be accommodated in the pattern shape formed by the target track;
    确定所述信息所包含的第二字符数是否小于或者等于所述第一字符数;Determining whether the number of second characters included in the information is less than or equal to the number of first characters;
    响应于所述第二字符数小于或者等于所述第一字符数,将所述信息按所述图案形状进行排列,以及生成显示信息。In response to the second number of characters being less than or equal to the first number of characters, arranging the information in the shape of the pattern, and generating display information.
  8. 根据权利要求7所述的方法,其中,所述响应于所述第二字符数小于或者等于所述第一字符数,将所述信息按所述图案形状进行排列,以及生成显示信息,包括:7. The method according to claim 7, wherein the arranging the information according to the pattern shape in response to the second number of characters being less than or equal to the first number of characters, and generating display information comprises:
    响应于所述第二字符数小于或者等于所述第一字符数,将所述图案形状进行缩小以使所述图案形状所能容纳的字符数与所述第二字符数匹配;In response to the second number of characters being less than or equal to the first number of characters, reducing the pattern shape so that the number of characters that can be accommodated in the pattern shape matches the second number of characters;
    将所述信息按所述图案形状进行排列,以及生成显示信息。Arranging the information in the shape of the pattern, and generating display information.
  9. 根据权利要求7所述的方法,其中,所述方法还包括:The method according to claim 7, wherein the method further comprises:
    响应于所述第二字符数大于所述第一字符数,将所述图案形状进行放大以使所述图案形状所能容纳的字符数与所述第二字符数匹配;In response to the second number of characters being greater than the first number of characters, enlarging the pattern shape so that the number of characters that the pattern shape can accommodate matches the second number of characters;
    将所述信息按所述图案形状进行排列,以及生成显示信息。Arranging the information in the shape of the pattern, and generating display information.
  10. 根据权利要求7所述的方法,其中,所述方法还包括:The method according to claim 7, wherein the method further comprises:
    响应于所述第二字符数大于所述第一字符数,提取所述信息中的关键词;In response to the second number of characters being greater than the first number of characters, extracting keywords in the information;
    将所述关键词按所述图案形状进行排列,以及生成显示信息。Arranging the keywords in the shape of the pattern, and generating display information.
  11. 根据权利要求1所述的方法,其中,所述用户输入的信息包括以下至少一 项:文本信息、图像信息。The method according to claim 1, wherein the information input by the user includes at least one of the following: text information and image information.
  12. 根据权利要求1所述的方法,其中,所述用户输入的信息是通过以下步骤确定的:The method according to claim 1, wherein the information input by the user is determined through the following steps:
    接收用户输入的语音信息;Receive voice information input by the user;
    对所述语音信息进行语音识别,将识别得到的文本信息作为所述用户输入的信息。Perform voice recognition on the voice information, and use the recognized text information as the information input by the user.
  13. 一种电子设备,包括:An electronic device including:
    一个或多个处理器;One or more processors;
    存储装置,其上存储有一个或多个程序;A storage device on which one or more programs are stored;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-12中任一所述的方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1-12.
  14. 一种计算机可读介质,其上存储有计算机程序,其中,该程序被处理器执行时实现如权利要求1-12中任一所述的方法。A computer-readable medium with a computer program stored thereon, wherein the program is executed by a processor to implement the method according to any one of claims 1-12.
PCT/CN2020/086570 2019-04-29 2020-04-24 Method and device for displaying information WO2020221115A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910355444.XA CN110058781A (en) 2019-04-29 2019-04-29 Method and apparatus for showing information
CN201910355444.X 2019-04-29

Publications (1)

Publication Number Publication Date
WO2020221115A1 true WO2020221115A1 (en) 2020-11-05

Family

ID=67321724

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/086570 WO2020221115A1 (en) 2019-04-29 2020-04-24 Method and device for displaying information

Country Status (2)

Country Link
CN (1) CN110058781A (en)
WO (1) WO2020221115A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110058781A (en) * 2019-04-29 2019-07-26 上海掌门科技有限公司 Method and apparatus for showing information
CN113835604B (en) * 2020-06-08 2024-07-16 摩根触控科技(香港)有限公司 Multi-area touch input processing method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100927A (en) * 2015-08-07 2015-11-25 广州酷狗计算机科技有限公司 Bullet screen display method and device
CN106101804A (en) * 2016-06-16 2016-11-09 乐视控股(北京)有限公司 Barrage establishing method and device
CN107728905A (en) * 2017-10-12 2018-02-23 咪咕动漫有限公司 A kind of barrage display methods, device and storage medium
CN108769771A (en) * 2018-05-15 2018-11-06 北京字节跳动网络技术有限公司 Barrage display methods, device and computer readable storage medium
CN110058781A (en) * 2019-04-29 2019-07-26 上海掌门科技有限公司 Method and apparatus for showing information

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104636321B (en) * 2015-02-28 2018-01-16 广东欧珀移动通信有限公司 Text display method and device
CN108920717B (en) * 2018-07-27 2020-03-13 百度在线网络技术(北京)有限公司 Method and device for displaying information
CN109656463B (en) * 2018-12-29 2021-03-09 广州方硅信息技术有限公司 Method, device and system for generating individual expressions

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100927A (en) * 2015-08-07 2015-11-25 广州酷狗计算机科技有限公司 Bullet screen display method and device
CN106101804A (en) * 2016-06-16 2016-11-09 乐视控股(北京)有限公司 Barrage establishing method and device
CN107728905A (en) * 2017-10-12 2018-02-23 咪咕动漫有限公司 A kind of barrage display methods, device and storage medium
CN108769771A (en) * 2018-05-15 2018-11-06 北京字节跳动网络技术有限公司 Barrage display methods, device and computer readable storage medium
CN110058781A (en) * 2019-04-29 2019-07-26 上海掌门科技有限公司 Method and apparatus for showing information

Also Published As

Publication number Publication date
CN110058781A (en) 2019-07-26

Similar Documents

Publication Publication Date Title
WO2020238320A1 (en) Method and device for generating emoticon
WO2021082760A1 (en) Virtual image generation method, device, terminal and storage medium
CN107112015B (en) Discovering capabilities of third party voice-enabled resources
US10063560B2 (en) Gaze-based authentication
US20200234478A1 (en) Method and Apparatus for Processing Information
CN109993150B (en) Method and device for identifying age
US20150213127A1 (en) Method for providing search result and electronic device using the same
CN112040330B (en) Video file processing method and device, electronic equipment and computer storage medium
CN109313535B (en) Providing remote keyboard services
US10950240B2 (en) Information processing device and information processing method
WO2019011295A1 (en) Minus 1 screen content push and request method, apparatus, server and terminal
WO2020221115A1 (en) Method and device for displaying information
US20190251961A1 (en) Transcription of audio communication to identify command to device
WO2021088790A1 (en) Display style adjustment method and apparatus for target device
CN110046571B (en) Method and device for identifying age
KR20170000722A (en) Electronic device and method for recognizing speech thereof
US20240134501A1 (en) Prompt method and apparatus based on document sharing, device, and medium
US20190087391A1 (en) Human-machine interface for collaborative summarization of group conversations
CN109918530A (en) Method and apparatus for pushing image
US11818491B2 (en) Image special effect configuration method, image recognition method, apparatus and electronic device
CN109934142A (en) Method and apparatus for generating the feature vector of video
CN107066864B (en) Application icon display method and device
CN112307393A (en) Information issuing method and device and electronic equipment
CN112309387A (en) Method and apparatus for processing information
CN110377842A (en) Voice remark display methods, system, medium and electronic equipment

Legal Events

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

Ref document number: 20799578

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 03.02.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20799578

Country of ref document: EP

Kind code of ref document: A1