CN117850654A - Method, device and storage medium for displaying content - Google Patents

Method, device and storage medium for displaying content Download PDF

Info

Publication number
CN117850654A
CN117850654A CN202211206210.7A CN202211206210A CN117850654A CN 117850654 A CN117850654 A CN 117850654A CN 202211206210 A CN202211206210 A CN 202211206210A CN 117850654 A CN117850654 A CN 117850654A
Authority
CN
China
Prior art keywords
content
closed
display
touch screen
displaying
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211206210.7A
Other languages
Chinese (zh)
Inventor
全赛彬
田韫
杨阳
冷继南
郑文植
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202211206210.7A priority Critical patent/CN117850654A/en
Priority to PCT/CN2023/101417 priority patent/WO2024066505A1/en
Publication of CN117850654A publication Critical patent/CN117850654A/en
Pending legal-status Critical Current

Links

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
    • 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/04886Interaction 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 by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Abstract

A method for displaying content is applied to an electronic device with a touch screen, wherein a first closed graph is displayed on the touch screen, and the method comprises the following steps: acquiring a first handwriting track input by a user in a first closed graph; displaying a first handwriting track on a touch screen; obtaining first content according to the first handwriting track; determining a first display format of the first content, wherein the first display format comprises a first display position of the first content in the first closed graph, and the first display position is different from a display position of the first handwriting track on the touch screen; and displaying the first content on the touch screen in a first display format. Therefore, through identifying the content input by the user on the electronic equipment and adjusting the display position of the content input by the user, displayed by the electronic equipment, can be positioned at a proper position, and the user experience is improved.

Description

Method, device and storage medium for displaying content
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, and a storage medium for displaying content.
Background
Electronic equipment (such as an interactive electronic whiteboard) with a touch screen is advanced education or conference auxiliary man-machine interaction equipment, and can be matched with tools such as a projector, a computer and the like to realize functions such as dust-free writing, random writing and the like. With the popularity of online conferences, electronic whiteboards are also becoming increasingly popular. The electronic equipment not only has the traditional text writing function, but also can provide rich derivative functions such as graphics, tables, documents, audio and video. The user can write in the table provided by the electronic whiteboard, and then the electronic whiteboard displays the content written by the user. However, the content displayed on the touch screen is always consistent with the content input by the user, so that when the content format input by the user has a problem, manual adjustment is often required, and the user experience is greatly affected.
Disclosure of Invention
In order to solve the problems in the prior art, the embodiment of the application provides a method, a device, a storage medium, a computing device and a product containing a computer program for displaying content, which can realize that the format of the content input by handwriting of a user on the electronic device is more uniform or attractive, improve the visual experience of the user and improve the convenience of the user during use.
In a first aspect, the present application provides a method for displaying content, applied to an electronic device having a touch screen, where a first closed figure is displayed on the touch screen, the method comprising: acquiring a first handwriting track input by a user in a first closed graph; displaying a first handwriting track on a touch screen; obtaining first content according to the first handwriting track; determining a first display format of the first content, wherein the first display format comprises a first display position of the first content in the first closed graph, and the first display position is different from a display position of the first handwriting track on the touch screen; and displaying the first content on the touch screen in a first display format.
Thus, when a user performs handwriting input on the touch screen of the electronic device, handwriting input by the user can be displayed on the touch screen, and first content input by the user can be obtained according to the handwriting. Further, a display format including a display position of the first content can be determined, and the first content is displayed according to the display position, so that the content input by the user displayed by the electronic equipment is in a proper position, the user can conveniently check, and convenience in use is improved for the user.
In some possible implementations, the first content is obtained by optical character recognition (optical character recognition, OCR) of the first handwriting track.
In some possible implementations, the first content is an alphanumeric, numerical, or pattern.
In some possible implementations, after displaying the first handwriting track and before displaying the first content, the method further includes: and stopping displaying the first handwriting track on the touch screen.
Therefore, when the first content is displayed, the interference of the handwriting track on the first content is avoided, and the user experience is improved.
In some possible implementations, determining the first display format of the first content includes: the first display position is determined based on a content-to-Ziegler or predefined content-to-Ziegler of the first closed figure, the content-to-Ziegler including any one of left-hand alignment, right-hand alignment, center-hand alignment, both-end alignment, and scatter-hand alignment.
In this way, when the first content is displayed, the display position can be determined by determining the alignment Ziegler type, so that the first content can be displayed at an appropriate position in the closed graph, and the use experience of a user is improved.
In some possible implementations, the first display format further includes a first display size of the first content. Therefore, the size of the first content displayed by the electronic equipment is in a size suitable for a user to view, and user experience is improved.
In some possible implementations, the first display size is different from a display size of the first handwriting track on the touch screen.
In some possible implementations, determining the first display format of the first content includes: determining a first display size according to a predefined content size specification of the first closed figure; or determining the first display size according to the display size of the first handwriting track on the touch screen.
In this way, the first content may be displayed in the first closed figure with a suitable size without affecting the user experience because the word is too large or too small.
In some possible implementations, the first display format further includes: the display color of the first content.
In some possible implementations, the first content is text, and the first display format further includes a font of the first content.
In some possible implementations, the method further includes: acquiring a second handwriting track input by a user in the first closed graph; obtaining second content according to the second handwriting track; determining a second display format according to the first display format, wherein the second display format comprises a second display position of the first content and the second content in the first closed graph; and displaying the first content and the second content on the touch screen in a second display format.
Therefore, the content of the user in the second input and the content of the first input can form a whole, and the whole is displayed at a proper position, so that the use habit of the user can be met.
In some possible implementations, before displaying the first content and the second content on the touch screen in the second display format, the method further includes: displaying a second handwriting track on the touch screen; and stopping displaying the second handwriting track on the touch screen after a preset time period.
In some possible implementations, the second display position is determined by the first content pair ziegler; determining a second display format from the first display format, comprising: a second display position is determined for the Ziegler from the first content.
In some possible implementations, the second display format includes a second display size of the first content and the second content, the second display size being the same as the first display size.
In some possible implementations, a second closed figure is further displayed on the touch screen, and the method further includes: acquiring a third handwriting track input by a user in the second closed graph; obtaining third content according to the third handwriting track; determining a third display format of third content, wherein the third display format comprises a third display position of the third content in the second closed graph, and the third display position is obtained according to the Ziegler type or the predefined content pair Ziegler type of the content of the second closed graph; and displaying the third content on the touch screen in a third display format.
In some possible implementations, the content alignment format of the first closed figure is consistent with the content alignment of the second closed figure. In this way, the content in the two closed figures can be kept in a uniform alignment format, so that the content looks more neat.
In some possible implementations, the third display format further includes a third display size of the third content, the third display size being consistent with the first display size. In this way, the content in the two closed figures can be kept in a uniform size specification, for example, the same word size, so that the content can be seen more orderly.
In some possible implementations, before displaying the third content on the touch screen in the third display format, the method further includes: displaying a third handwriting track on the touch screen; and stopping displaying the third handwriting track on the touch screen after the preset time period.
In some possible implementations, the method further includes: responding to a fourth handwriting track input by a user in the second closed graph, and adjusting the second closed graph; obtaining fourth content according to the fourth handwriting track; determining a fourth display format of the third content and the fourth content according to the enlarged second closed graph and the third display format, wherein the fourth display format comprises a fourth display position of the third content and the fourth content in the enlarged second closed graph, and the fourth display position is obtained according to a Ziegler type or a pre-defined content pair Ziegler type of the content of the second closed graph; and displaying the third content and the fourth content on the touch screen in a fourth display format. Therefore, when the content input by the user is more or the handwritten word of the user is larger, the content input by the user is contained in the second closed graph, and the second closed graph is enlarged at the moment, so that the content input by the user is in the closed graph, and the use habit of the user is met.
In some possible implementations, before displaying the third content and the fourth content on the touch screen in the fourth display format, the method further includes: displaying the enlarged second closed graph on the touch screen; displaying a fourth handwriting track on the touch screen; and stopping displaying the fourth handwriting track on the touch screen after the preset time period.
In some possible implementations, the first closed figure and the second closed figure are rectangular, and the first closed figure and the second closed figure are aligned, the method further comprising: according to the enlarged second closed figure, the first closed figure is enlarged, so that the enlarged first closed figure is aligned with the enlarged second closed figure; determining a fifth display format of the first content in the enlarged first closed figure, wherein the fifth display format comprises the display position of the first content in the enlarged first closed figure; and displaying the first content on the touch screen in a fifth display format.
Under the condition that the first closed graph and the second closed graph are rectangular and the first closed graph and the second closed graph are aligned, the first closed graph and the second closed graph can be regarded as a table with two cells, and therefore after one cell is adjusted, the other cell is adjusted synchronously according to the adjusted cell, and the two cells are still aligned, so that the use habit of a user is met.
In some possible implementations, the method further includes: in response to the user deleting the fourth content in the second closed figure, turning down the second closed figure; and displaying the third content on the touch screen in a third display format.
In some possible implementations, the method further includes: according to the reduced second closed figure, reducing the first closed figure so that the reduced first closed figure is aligned with the reduced second closed figure; determining a sixth display format of the first content in the reduced first closed figure, wherein the sixth display format comprises the display position of the first content in the reduced first closed figure; and displaying the first content on the touch screen in a sixth display format.
In some possible implementations, the first content includes a plurality of identifications having a sequential relationship, determining a first display format of the first content includes: performing line feed processing on the first content according to the plurality of identifiers; and determining a first display position of the first content after the line feed processing according to the content of the first closed graph and the Ziegler type or the predefined content. In this way, the input content is fed in the first content and the second content, so that the user can more conveniently view the displayed content.
In some possible implementations, a third closed figure is further displayed on the touch screen, the first closed figure, the second closed figure, and the third closed figure are rectangular, the first closed figure, the second closed figure, and the third closed figure are aligned, the first content and the third content include identifiers having a sequential relationship, and the method further includes: the fifth content is populated in the third closed figure such that the first content, the third content, and the fifth content include identifications having a sequential relationship. Thus, when the first content and the second content comprise the identifiers with the sequence relation, the manual input of the user can be omitted by automatically filling the content in the third closed graph, and the use efficiency of the user is improved.
In some possible implementations, the identification of a sequential relationship is a number having a sequentially increasing relationship or a sequentially decreasing relationship; or letters having a sequentially increasing relationship or a sequentially decreasing relationship.
In some possible implementations, a third closed figure is further displayed on the touch screen, the first closed figure, the second closed figure, and the third closed figure are rectangular, the first closed figure, the second closed figure, and the third closed figure are aligned, the first content and the third content are numbers, and the method further includes: and filling fifth content in the third closed graph, wherein the fifth content is a number, and the fifth content is calculated by the first content and the third content according to a preset formula.
Therefore, under the condition that the first content and the second content are numbers, the numbers input by the user can be automatically calculated, the operation of the user for calculating can be omitted, the time of the user is saved, and the use efficiency of the user is improved.
In a second aspect, the present application provides a method for displaying content, applied to an electronic device having a touch screen, where a first closed figure is displayed on the touch screen, the method including: acquiring a first handwriting track input by a user in a first closed graph; displaying a first handwriting track on a touch screen; adjusting the display position of the first handwriting track in the first closed graph according to the content in the first closed graph in a Ziegler type or predefined content alignment format; and displaying the first handwriting track on the touch screen according to the adjusted display position.
Therefore, when a user performs handwriting input on the touch screen of the electronic equipment, handwriting input by the user can be displayed on the touch screen, and the display position of the handwriting is adjusted, so that the content input by the user, displayed by the electronic equipment, is at a proper position, the handwriting style of the user is reserved, the user can conveniently check, and the convenience of the user in use is improved.
In some possible implementations, the method further includes: according to the predefined display size, adjusting the display size of the first handwriting track; displaying the first handwriting track on the touch screen at the adjusted display position, including: and displaying the first handwriting track on the touch screen according to the adjusted display position and the adjusted display size.
It will be appreciated that the various possible embodiments of the first aspect described above may be applied directly or indirectly to the method of the second aspect and that the same or similar technical effects may be obtained.
In a third aspect, the present application provides an apparatus for displaying content, disposed on an electronic device having a touch screen, where a first closed figure is displayed on the touch screen, the apparatus may include: the acquisition module is used for acquiring a first handwriting track input by a user in the first closed graph; the display module is used for displaying the first handwriting track on the touch screen; the processing module is used for obtaining first content according to the first handwriting track; the processing module is further used for determining a first display format of the first content, wherein the first display format comprises a first display position of the first content in the first closed graph, and the first display position is different from a display position of the first handwriting track on the touch screen; and the display module is also used for displaying the first content on the touch screen in the first display format.
In some possible implementations, the first content is obtained by optical character recognition (optical character recognition, OCR) of the first handwriting track.
In some possible implementations, the first content is an alphanumeric, numerical, or pattern.
In some possible implementations, after displaying the first handwriting track and before displaying the first content, the display module is further configured to stop displaying the first handwriting track on the touch screen.
In some possible implementations, the processing module is further configured to: the first display position is determined based on a content alignment of the first closed figure or a predefined content alignment of the first closed figure, the content alignment comprising any one of left alignment, right alignment, center alignment, both ends alignment, and scatter alignment.
In some possible implementations, the first display format further includes a first display size of the first content.
In some possible implementations, the first display size is different from a display size of the first handwriting track on the touch screen.
In some possible implementations, the processing module is further configured to: determining a first display size according to a predefined content size specification of the first closed figure; or determining the first display size according to the display size of the first handwriting track on the touch screen.
In some possible implementations, the first display format further includes: the display color of the first content.
In some possible implementations, the first content is text, and the first display format further includes a font of the first content.
In some possible implementations, the processing module is further configured to: acquiring a second handwriting track input by a user in the first closed graph; obtaining second content according to the second handwriting track; determining a second display format according to the first display format, wherein the second display format comprises a second display position of the first content and the second content in the first closed graph; the display module is also used for displaying the first content and the second content on the touch screen in a second display format.
In some possible implementations, before displaying the first content and the second content on the touch screen in the second display format, the display module is further configured to: displaying a second handwriting track on the touch screen; and stopping displaying the second handwriting track on the touch screen after a preset time period.
In some possible implementations, the second display position is determined by the first content pair ziegler; the processing module is also configured to determine a second display position based on the first content pair.
In some possible implementations, the second display format includes a second display size of the first content and the second content, the second display size being the same as the first display size.
In some possible implementations, a second closed graph is further displayed on the touch screen, and the acquisition module is further configured to acquire a third handwriting track input by the user in the second closed graph; the processing module is also used for obtaining third content according to the third handwriting track; determining a third display format of the third content, wherein the third display format comprises a third display position of the third content in the second closed graph, and the third display position is obtained from the content of the second closed graph to the Ziegler type or the predefined content to the Ziegler type; the display module is also used for displaying third content on the touch screen in a third display format.
In some possible implementations, the content alignment format of the first closed figure is consistent with the content alignment of the second closed figure.
In some possible implementations, the third display format further includes a third display size of the third content, the third display size being consistent with the first display size.
In some possible implementations, the display module is further configured to display a third handwriting track on the touch screen before displaying the third content on the touch screen in the third display format; and stopping displaying the third handwriting track on the touch screen after the preset time period.
In some possible implementations, the processing module is further configured to: responding to a fourth handwriting track input by a user in the second closed graph, and adjusting the second closed graph; obtaining fourth content according to the fourth handwriting track; determining a fourth display format of the third content and the fourth content according to the enlarged second closed graph and the third display format, wherein the fourth display format comprises a fourth display position of the third content and the fourth content in the enlarged second closed graph, and the fourth display position is obtained according to the Ziegler type or the pre-defined content pair Ziegler type of the content of the second closed graph; the display module is also used for displaying the third content and the fourth content on the touch screen in a fourth display format.
In some possible implementations, before displaying the third content and the fourth content on the touch screen in the fourth display format, the display module is further configured to: displaying the enlarged second closed graph on the touch screen; displaying a fourth handwriting track on the touch screen; and stopping displaying the fourth handwriting track on the touch screen after the preset time period.
In some possible implementations, the first closed figure and the second closed figure are rectangular, and the first closed figure and the second closed figure are aligned, and the processing module is further configured to: according to the enlarged second closed figure, the first closed figure is enlarged, so that the enlarged first closed figure is aligned with the enlarged second closed figure; determining a fifth display format of the first content in the enlarged first closed figure, wherein the fifth display format comprises the display position of the first content in the enlarged first closed figure; the display module is also used for displaying the first content on the touch screen in a fifth display format.
In some possible implementations, the processing module is further configured to: in response to the user deleting the fourth content in the second closed figure, turning down the second closed figure; the display module is also used for displaying third content on the touch screen in a third display format.
In some possible implementations, the processing module is further configured to: according to the reduced second closed figure, reducing the first closed figure so that the reduced first closed figure is aligned with the reduced second closed figure; determining a sixth display format of the first content in the reduced first closed figure, wherein the sixth display format comprises the display position of the first content in the reduced first closed figure; the display module is also used for displaying the first content on the touch screen in a sixth display format.
In some possible implementations, the first content includes a plurality of identifications having a sequential relationship, and the processing module is further configured to: performing line feed processing on the first content according to the plurality of identifiers; and determining a first display position of the first content after the line feed processing according to the Ziegler type or the predefined content pair of the first closed graph.
In some possible implementations, a third closed figure is further displayed on the touch screen, the first closed figure, the second closed figure and the third closed figure are rectangular, the first closed figure, the second closed figure and the third closed figure are aligned, the first content and the third content are identifiers having a sequential relationship, and the processing module is further configured to: and filling the fifth content in the third closed graph so that the first content, the third content and the fifth content are identifiers with sequential relation.
In some possible implementations, the identification of a sequential relationship is a number having a sequentially increasing relationship or a sequentially decreasing relationship; or letters having a sequentially increasing relationship or a sequentially decreasing relationship.
In some possible implementations, a third closed figure is further displayed on the touch screen, the first closed figure, the second closed figure and the third closed figure are rectangular, the first closed figure, the second closed figure and the third closed figure are aligned, the first content and the third content are numbers, and the processing module is further configured to: and filling fifth content in the third closed graph, wherein the fifth content is a number, and the fifth content is calculated by the first content and the third content according to a preset formula.
In a fourth aspect, the present application provides an apparatus for displaying content, disposed on an electronic device having a touch screen, on which a first closed figure is displayed, the apparatus comprising: the acquisition module is used for acquiring a first handwriting track input by a user in the first closed graph; the display module is used for displaying the first handwriting track on the touch screen; the processing module is used for adjusting the display position of the first handwriting track in the first closed graph according to the content in the first closed graph in a Ziegler mode or a predefined content in the first closed graph; and the display module is also used for displaying the first handwriting track on the touch screen according to the adjusted display position.
In some possible implementations, the processing module is further configured to: according to the predefined display size, adjusting the display size of the first handwriting track; the display module is also used for: and displaying the first handwriting track on the touch screen according to the adjusted display position and the adjusted display size.
In a fifth aspect, the present application provides a computer readable storage medium comprising computer readable instructions which, when read and executed by a computer, cause the computer to perform the method of any one of the first and/or second aspects.
In a sixth aspect, the present application provides a computing device comprising a processor and a memory, wherein the memory has stored therein computer program instructions which, when executed by the processor, perform the method of any of the first and/or second aspects.
In a seventh aspect, the present application provides a product comprising a computer program which, when run on a processor, causes the processor to perform the method of any of the first and/or second aspects.
It will be appreciated that the advantages of the third to seventh aspects may be found in the relevant description of the first and second aspects, and are not described here again.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an application scenario provided in an embodiment of the present application;
fig. 2 is a schematic diagram of an electronic device according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a display provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of a method for displaying content according to an embodiment of the present application;
FIG. 5 is a schematic view of the effect of displaying content according to the embodiment of the present application;
FIG. 6 is a schematic diagram of a font outsourcing frame provided by an embodiment of the present application;
fig. 7 is a schematic diagram of a method for displaying second content by an electronic device according to an embodiment of the present application;
fig. 8 is an effect schematic diagram of displaying second content by an electronic device according to an embodiment of the present application;
FIG. 9 is a schematic diagram of a display of content outside a graphic dragged into the graphic according to an embodiment of the present application;
FIG. 10 is a schematic diagram of a content alignment provided by an embodiment of the present application;
FIG. 11 is a schematic diagram of a method for displaying content in a second closed figure according to an embodiment of the present application;
FIG. 12 is a schematic diagram of a method for providing a second closed graphic display according to an embodiment of the present application;
FIG. 13 is a schematic diagram of a graphic resizing provided in embodiments of the present application;
FIG. 14 is a schematic diagram of a graphic resizing after completion of an input provided in an embodiment of the present application;
FIG. 15 is a schematic diagram of one implementation of resizing a graphic provided in embodiments of the present application;
FIG. 16 is a schematic diagram of automatic filling of graphical content provided by an embodiment of the present application;
FIG. 17 is a schematic diagram of automatic calculation of graphic content according to an embodiment of the present application;
FIG. 18 is a schematic diagram of automatic calculation of user-selected content provided in an embodiment of the present application;
FIG. 19 is a schematic diagram of another automatic calculation of user-selected content provided by an embodiment of the present application;
FIG. 20 is a schematic diagram of a content display apparatus provided herein;
fig. 21 is a schematic view of another content display apparatus provided as described herein.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The term "and/or" herein is an association relationship describing an associated object, and means that there may be three relationships, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. The symbol "/" herein indicates that the associated object is or is a relationship, e.g., A/B indicates A or B.
The terms "first" and "second" and the like in the description and in the claims are used for distinguishing between different objects and not for describing a particular sequential order of objects. For example, the first response message and the second response message, etc. are used to distinguish between different response messages, and are not used to describe a particular order of response messages.
In the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the description of the embodiments of the present application, unless otherwise specified, the meaning of "a plurality of" means two or more, for example, a plurality of processing units means two or more processing units and the like; the plurality of elements means two or more elements and the like.
For the purpose of facilitating an understanding of the embodiments of the present application, reference will now be made to the following description of specific embodiments, taken in conjunction with the accompanying drawings, which are not intended to limit the embodiments of the invention.
The technical scheme of the content display method disclosed by the application can be applied to the electronic equipment provided with the touch screen. In some embodiments of the present application, the electronic device may be a portable electronic device with a processor, such as a cell phone, a tablet computer, a wearable device (such as a smart watch, etc.) with wireless communication functionality, an in-vehicle device, etc. Exemplary embodiments of portable electronic devices include, but are not limited to, piggy-backOr other operating system. The portable electronic device may also be a portable electronic device such as a Laptop computer (Laptop) or the like having a touch-sensitive surface, such as a touch panel or the like. It should be appreciated that in other embodiments of the present application, the electronic device may not be a portable device, and may be, for example, an electronic whiteboard, such as a cabinet electronic whiteboard or a wall-mounted electronic whiteboard, or may be a desktop computer, such as a PC, or may be a television, or the like.
Fig. 1 schematically illustrates an application scenario provided in an embodiment of the present application. The application scenario includes the user 100 and the electronic device 200, and the electronic device 200 includes a touch screen. Alternatively, a plurality of applications may be installed in the electronic device 200, such as video conferencing, screen writing, whiteboard, file management, cameras, images, etc. applications. For example, taking a case that the user 100 selects a whiteboard application in the electronic device 200 to write characters, when the user 100 writes one or more characters on the whiteboard, the electronic device 200 may adjust a display format of content (for example, characters or patterns) input by handwriting of the user 100 by using the content display method provided in the embodiment of the present application, and display the content input by the user 100 on the touch screen in the adjusted display format. At this time, the user 100 can see the content displayed on the touch screen in the adjustment display format, so that the content displayed on the touch screen is more uniform or attractive, the visual experience of the user is improved, and the convenience of the user in use is improved.
It should be noted that fig. 1 only schematically provides an application scenario, and does not limit the application scenario configuration of the method for displaying content provided in the present application. For example, in one possible scenario, the electronic device 200 with the processor is separate from the touch screen, and the electronic device 200 and the touch screen may be connected by wired or wireless means. The touch screen may be used to obtain an operation instruction of the user 100, send the instruction to the processor in a wired or wireless manner for execution, and the processor returns the execution result to the touch screen for display. The method for displaying contents provided by the application can be suitable for more scenes, and is not listed one by one.
Based on the application scenario shown in fig. 1, an embodiment of the present application provides an electronic device. Referring to fig. 2, the electronic device may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (universal serial bus, USB) interface 230, a charge management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 251, a wireless communication module 252, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, keys 290, a motor 291, an indicator 292, a camera 293, a display 294, a user identification module (subscriber identification module, SIM) card interface 295, and the like. The sensor module 280 may include a pressure sensor 280A, a gyroscope sensor 280B, a barometric pressure sensor 280C, an acceleration sensor 280D, a proximity light sensor 280E, an ambient light sensor 280F, a fingerprint sensor 280G, a temperature sensor 280H, and a touch sensor 280I, although the electronic device 200 may include other sensors such as a magnetic sensor, a distance sensor, a bone conduction sensor, and the like.
It should be noted that the antennas 1 and 2 shown in fig. 2 are examples, and other antennas may be included in other embodiments. It should be understood that the electronic device shown in fig. 2 is only one example and is not limiting of the electronic device. For example, the electronic device 200 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes some of the components of the electronic device 200 in detail with reference to fig. 2:
the processor 210 in fig. 2 may include one or more processing units, for example, the processor 210 may include an application processor (application processor, AP), a baseband processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP) and/or a neural-network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors. The controller may be a neural hub and a command center of the electronic device 200, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 210 for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may hold instructions or data that is just used or recycled by the processor 210, such as the memory may store program code for the method of displaying content. If the processor 210 needs to reuse the instruction or data, it can be called directly from the memory, so that repeated accesses can be avoided, latency of the processor 210 can be reduced, and thus efficiency of the system can be improved.
The processor 210 may execute the method for displaying content provided herein, and the processor 210 may initiate a function corresponding to the operation of the user in response to the operation of the touch screen by the user. When the processor 210 integrates different devices, such as a CPU and a GPU, the CPU and the GPU may cooperate to execute the display content method provided in the present application, so as to obtain a faster processing efficiency.
The external memory interface 220 may be used to connect an external memory card, such as a Micro SD card, that may enable expansion of the memory capabilities of the electronic device 200. The external memory card communicates with the processor 210 via the external memory interface 220 to enable data storage functions. For example, a file such as a picture, a video, or the like may be stored in an external memory card.
The internal memory 221 may be used to store computer executable program code that includes instructions. The internal memory 221 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) and the like required for at least one function of the operating system, for example, a program code of a method of displaying contents. The storage data area may store data created during use of the electronic device 200 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 221 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 210 performs various functional applications and data processing of the electronic device 200 by executing instructions stored in the internal memory 221 and/or instructions stored in a memory provided in the processor.
In some embodiments, processor 210 may include one or more interfaces. For example, the interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, etc.
The I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 210 may contain multiple sets of I2C buses. The processor 210 may be coupled to the touch sensor 280K, charger, flash, camera 293, etc., respectively, through different I2C bus interfaces. For example: the processor 210 may couple the touch sensor 280K through an I2C interface, so that the processor 210 communicates with the touch sensor 280K through an I2C bus interface to implement a touch function of the electronic device 200.
The I2S interface may be used for audio communication. In some embodiments, processor 210 may contain multiple sets of I2S buses. The processor 210 may be coupled to the audio module 270 via an I2S bus to enable communication between the processor 210 and the audio module 270. In some embodiments, the audio module 270 may communicate audio signals to the wireless communication module 252 via the I2S interface to implement a function of answering a call via a bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 270 and the wireless communication module 252 may be coupled by a PCM bus interface. In some embodiments, audio module 270 may also communicate audio signals to wireless communication module 252 via a PCM interface to enable answering a phone call via a bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 210 with the wireless communication module 252. For example: the processor 210 communicates with the bluetooth module in the wireless communication module 252 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 270 may transmit audio signals to the wireless communication module 252 through a UART interface, implementing the function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 210 to peripheral devices such as the display 294, the camera 293, and the like. The MIPI interfaces include camera serial interfaces (camera serial interface, CSI), display serial interfaces (display serial interface, DSI), and the like. In some embodiments, processor 210 and camera 293 communicate through a CSI interface to implement the photographing functions of electronic device 200. The processor 210 and the display 294 communicate via a DSI interface to implement the display functionality of the electronic device 200.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 210 with the camera 293, display 294, wireless communication module 252, audio module 270, sensor module 280, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
The USB interface 230 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 230 may be used to connect a charger to charge the electronic device 200, or may be used to transfer data between the electronic device 200 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the connection relationships between the modules illustrated in the embodiments of the present application are only illustrative, and do not limit the structure of the electronic device 200. In other embodiments of the present application, the electronic device 200 may also use different interfacing manners, or a combination of multiple interfacing manners, as in the above embodiments.
The charge management module 240 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 240 may receive a charging input of a wired charger through the USB interface 230. In some wireless charging embodiments, the charge management module 240 may receive wireless charging input through a wireless charging coil of the electronic device 200. The charging management module 240 may also power the electronic device 200 through the power management module 241 while charging the battery 242.
The power management module 241 is used for connecting the battery 242, and the charge management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and/or the charge management module 240 and provides power to the processor 210, the internal memory 221, the display 294, the camera 293, the wireless communication module 252, and the like. The power management module 241 may also be configured to monitor battery capacity, battery cycle times, battery health (leakage, impedance), and other parameters. In other embodiments, the power management module 241 may also be disposed in the processor 210. In other embodiments, the power management module 241 and the charge management module 240 may also be disposed in the same device.
The wireless communication function of the electronic device 200 can be realized by the antenna 1, the antenna 2, the mobile communication module 251, the wireless communication module 252, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 200 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 251 may provide a solution for wireless communication including 2G/3G/4G/5G, etc. applied to the electronic device 200. The mobile communication module 251 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 251 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 251 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 251 may be provided in the processor 210. In some embodiments, at least some of the functional modules of the mobile communication module 251 may be disposed in the same device as at least some of the modules of the processor 210.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 270A, receiver 270B, etc.), or displays images or video through display screen 294. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 251 or other functional module, independent of the processor 210.
The wireless communication module 252 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 200. The wireless communication module 252 may be one or more devices that integrate at least one communication processing module. The wireless communication module 252 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 210. The wireless communication module 252 may also receive a signal to be transmitted from the processor 210, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 251 of electronic device 200 are coupled, and antenna 2 and wireless communication module 252 are coupled, such that electronic device 200 may communicate with a network and other devices via wireless communication techniques. The wireless communication techniques may include the global system for mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), new radio access techniques (new radio access technology, NR), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others.
Alternatively, the GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device 200 implements display functions through a GPU, a display screen 294, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or change display information.
The display 294 is used to display images, videos, and the like. The display 294 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously learn itself. Applications such as intelligent cognition of the electronic device 200 may be implemented by the NPU, for example: image recognition, face recognition, voice recognition, text understanding, and the like.
The pressure sensor 280A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 280A may be disposed on display 294. The pressure sensor 280A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. When a force is applied to the pressure sensor 280A, the capacitance between the electrodes changes. The electronic device 200 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display panel 294, the electronic apparatus 200 detects the touch operation intensity from the pressure sensor 280A. The electronic device 200 may also calculate the location of the touch based on the detection signal of the pressure sensor 280A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions.
The gyro sensor 280B may be used to determine a motion gesture of the electronic device 200. In some embodiments, the angular velocity of electronic device 200 about three axes (i.e., x, y, and z axes) may be determined by gyroscope sensor 280B. The gyro sensor 280B may be used for photographing anti-shake. The gyro sensor 280B may also be used for navigating, somatosensory game scenes.
The air pressure sensor 280C is used to measure air pressure. In some embodiments, the electronic device 200 calculates altitude from barometric pressure values measured by the barometric pressure sensor 280C, aiding in positioning and navigation.
The acceleration sensor 280D may detect the magnitude of acceleration of the electronic device 200 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 200 is stationary. The electronic device can also be used for identifying the gesture of the electronic device, and can be applied to the applications of switching of horizontal and vertical screens, pedometers and the like.
Proximity light sensor 280E may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 200 emits infrared light outwards through the light emitting diode. The electronic device 200 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that an object is in the vicinity of the electronic device 200. When insufficient reflected light is detected, the electronic device 200 may determine that there is no object in the vicinity of the electronic device 200. The electronic device 200 can detect that the user holds the electronic device 200 close to the ear by using the proximity light sensor 280E, so as to automatically extinguish the screen for the purpose of saving power. The proximity light sensor 280E may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 280F is used to sense ambient light level. The electronic device 200 may adaptively adjust the brightness of the display 294 based on the perceived ambient light level. The ambient light sensor 280F may also be used to automatically adjust white balance during photographing. Ambient light sensor 280F may also cooperate with proximity light sensor 280E to detect whether electronic device 200 is in a pocket to prevent false touches.
The fingerprint sensor 280G is used to collect a fingerprint. The electronic device 200 can utilize the collected fingerprint characteristics to realize fingerprint unlocking, access an application lock, fingerprint photographing, fingerprint incoming call answering and the like. For example, the fingerprint sensor may be disposed on the front side (below the display screen 294) of the electronic apparatus 200, or the fingerprint sensor may be disposed on the back side (below the rear camera) of the electronic apparatus 200. In addition, the fingerprint recognition function may also be implemented by configuring a fingerprint sensor in the touch screen, that is, the fingerprint sensor may be integrated with the touch screen to implement the fingerprint recognition function of the electronic device 200. In this case, the fingerprint sensor may be disposed in the touch screen, may be a part of the touch screen, or may be otherwise disposed in the touch screen.
In addition, the fingerprint sensor can be realized as a full-panel fingerprint sensor, so that the touch screen can be seen as a panel capable of collecting fingerprints at any position. In some embodiments, the fingerprint sensor may process the collected fingerprint (e.g., whether the fingerprint is verified) and send the processed fingerprint to the processor 210, and the processor 210 may perform corresponding processing according to the fingerprint processing result. In other embodiments, the fingerprint sensor may also send the collected fingerprint to the processor 210 for processing (e.g., fingerprint verification, etc.) by the processor 210. The fingerprint sensor in the present application may employ any type of sensing technology including, but not limited to, optical, capacitive, piezoelectric, or ultrasonic sensing technologies, and the like.
The temperature sensor 280H is used to detect temperature. In some embodiments, the electronic device 200 performs a temperature processing strategy using the temperature detected by the temperature sensor 280H. For example, when the temperature reported by temperature sensor 280H exceeds a threshold, electronic device 200 performs a reduction in the performance of a processor located in the vicinity of temperature sensor 280H in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the electronic device 200 heats the battery 242 to avoid the low temperature causing the electronic device 200 to be abnormally shut down. In other embodiments, when the temperature is below a further threshold, the electronic device 200 performs boosting of the output voltage of the battery 242 to avoid abnormal shutdown caused by low temperatures.
The touch sensor 280I is also referred to as a "touch panel". The touch sensor 280I may be disposed on the display screen 294, and the touch sensor 280I and the display screen 294 form a touch screen, which is also referred to as a "touch screen". The touch sensor 280I is used to detect a touch operation acting on or near it. The touch sensor may communicate the detected touch operation to the application processor to determine the type of touch event. Visual output related to touch operations may be provided through the display 294. In other embodiments, the touch sensor 280I may also be disposed on a surface of the electronic device 200 at a different location than the display 294.
Next, a method of displaying content provided in the embodiment of the present application will be described based on the content in fig. 1 and 2.
Illustratively, FIG. 3 shows a schematic diagram of a display. As shown in fig. 3 (a), a closed figure 11 is displayed on a touch screen (not shown) of the electronic device, and the closed figure is composed of 4 rectangular figures, each of which may be referred to as a cell in the closed figure 11. The user can input "figure", "shape", "text" and "word" by handwriting in the cells 111, 112, 113, 114, respectively. The electronic device may then perform optical symbology recognition (optical character recognition, OCR) based on the trajectory of the user's handwriting input and display text in the corresponding cell after recognition, i.e., display content as shown in fig. 3 (B). As shown in fig. 3 (B), although the electronic device displays the content of the handwriting input of the user, the position and size of the handwriting input text of the user are not changed. At this time, the user is required to manually adjust the print body recognized by OCR. In some embodiments, OCR refers to the process of translating shapes into computer characters by an electronic device using a character recognition method, that is, the process of scanning text data by the electronic device, analyzing and processing image files, and obtaining characters and panel information. The identified printed body is displayed at the writing place of the characters, but the size and the position of the characters are not changed.
As is clear from the above description, the electronic device recognizes only the content handwritten by the user as a print after OCR recognition, but the electronic device does not adjust the size and position of the text, and the content handwritten by the user in the graphic is not aligned, which is not beautiful and affects the user experience.
In view of this, the embodiment of the application provides a method for displaying content, in which an electronic device identifies content input by handwriting of a user, and adjusts a format of the content input by handwriting of the user in a closed graph provided by a touch screen of the electronic device, so that the format of the content input by handwriting of the user on the electronic device is kept relatively uniform, and user experience is improved. Methods provided by embodiments of the present application are described in detail below with reference to the accompanying drawings.
Illustratively, FIG. 4 shows a method of displaying content. As shown in fig. 4, the method may include:
s41: and acquiring a first handwriting track input by a user in a first closed graph displayed on a touch screen of the electronic equipment, and displaying the first handwriting track on the touch screen.
In this embodiment, a first closed figure is displayed on a touch screen of the electronic device, where the first closed figure refers to a shape that can be defined by a contour in a two-dimensional plane, and is a limited identifiable shape, such as a rectangle, a diamond, a circle, a trapezoid, and the like. The first closed figure may be an existing figure or a figure which is hand-painted by a user. The user performs handwriting input in the first closed graph, the handwriting input content can be any text (Chinese characters, letters, numbers, etc.), pattern, etc., and the size of the content input by the user can be not fixed. The first closed figure may be a blank figure or a figure with existing content. While the user is handwriting input content, the electronic device can acquire tracks of the input content of the user in the first closed graph, and the tracks are displayed on the touch screen.
It should be understood that the first handwriting track may be a track corresponding to one text or one pattern, or may be tracks corresponding to a plurality of texts or a plurality of patterns, which is not limited in this application.
As shown in fig. 5 (a), an enclosed graphic is displayed on the touch screen of the electronic device, where the enclosed graphic is a rectangle, and 4 characters are input by handwriting in the rectangle, and after the electronic device obtains the track handwritten by the user, the track may be displayed in the rectangle.
S42: and obtaining the first content according to the first handwriting track. The first content may be obtained by performing OCR recognition on the first handwriting track, and each individual in the first content may be a sub-content of the first content.
In this embodiment, the electronic device obtains a track of handwriting input content of the user in the first closed graph, and performs OCR recognition on the track to obtain the first content input by the user.
For example, with continued reference to fig. 5, the electronic device obtains a track of the first content input by the user through handwriting in the first closed figure (rectangle), performs OCR recognition on the track of the handwriting of the user, and may obtain 4 words, namely "graphic characters", which are input by the user, and the 4 words, namely "graphic characters", are the first content input by the user, where each single word (such as "graphic" word) is a sub-content of the first content.
S43: a first display format of the first content is determined, which may include a first display position of the first content in the first closed figure. The first display position may be different from the display position of the first handwriting track on the touch screen.
In this embodiment, after obtaining the first content handwritten by the user, the electronic device may further obtain a first display format of the first content. The first display format may include a first display position of the first content in the first graphic, and the touch screen may display the first content according to position information provided by the first display position.
In some embodiments, determining the first display format of the first content may include: the first display position is determined based on a content-to-Ziegler or predefined content-to-Ziegler of the first closed figure, the content-to-Ziegler including any one of left-justification, center-justification, right-justification, both-end justification, and scatter-justification.
In this embodiment, the first display position may be determined according to the content pair ziegler of the first closed figure, for example, if there is already centrally aligned content in the first closed figure, then the electronic device determines that the first content input by the user may also be centrally aligned, that is, the first content is displayed in the middle of the first closed figure. The first display position may also be determined for a ziegler based on predefined content. For example, if the first closed figure of the user-input content predefines the alignment format as left-aligned, the electronic device may determine that the first display position of the user-input first content is to the left of the first closed figure.
As a possible implementation manner, after the electronic device acquires the first content, a key feature included in the first content may be detected and identified, and a ziegler-type is determined according to the key feature. The key features refer to that a part of sub-content with a certain specific rule exists in the first content, for example, ordered numbers such as ' 1 ', ' 2 ', ' 3 ', or ' XX ', etc. are all started by ' content, etc.
For example, the electronic device obtains that the first content input by the user in the first closed graph is 3 lines of characters, the previous character of each line of characters is respectively a number of "1", "2", "3", or "(1)", "(2)", "(3)", or "a", "B", "C", etc., the number may be used as a key feature of the first content, and the alignment type may be determined to be left alignment according to the key feature (number). For another example, the electronic device may determine that the pair of ziegler is aligned to the right when detecting that the key feature of the first content in the first closed figure is that the first content includes a figure and a text, the figure is on the left side and the text is on the right side.
In some embodiments, the first display format may further include a first display size of the first content.
In this embodiment, the first display size refers to the size of characters, patterns, numerals, or the like corresponding to the first content. If the first content input by the user is text, the first display size may be in units of a font size, the larger the font size, the smaller the text, the largest font size is "first size", and the smallest font size is "eighth size", for example, small four, five, etc. Of course, a dot (may be referred to as a point, pt) may be used as a unit, and when the dot is used as a unit, the larger the dot value, the larger the character, the largest dot value may be 72, and the smallest dot value may be 5. The first display size may be determined from an outer box of the first content, the outer box being a box capable of completely enclosing the first content. The outer frame may be a regular pattern, such as a circle (an outer frame surrounding a "test" word as shown in fig. 6), a rectangle (an outer frame surrounding a "text" word as shown in fig. 6), a diamond (an outer frame surrounding a "word as shown in fig. 6), or an irregular pattern. The first display size may be the same as or different from the display size of the first handwriting track on the touch screen. When the touch screen of the electronic device displays the first content, the first content can be displayed according to the size information indicated by the first display size. For example, the first display size is 18 points (pt), which means that when the touch screen of the electronic device displays the first content, the size of the first content is 18 points, and when the touch screen of the electronic device displays the first content, the first content can be displayed with the size of 18 points.
In some embodiments, determining the first display format of the first content may further include: determining a first display size according to a predefined content size specification of the first closed figure; or determining the first display size according to the display size of the first handwriting track on the touch screen.
In this embodiment, after obtaining the first content handwritten by the user, the electronic device may further obtain a first display size of the first content. The first display size may be preset by the first closed figure, for example, the electronic device presets that the content in the first closed figure is kept at 16 points (pt), and when the electronic device displays the first content, the electronic device may display the first content in a 16-point size manner. The first display size may also be determined based on a display size of the first handwriting track on the touch screen. For example, if the display size of the first handwriting track is 18 points when the user handwriting, the second display size may be determined to be 18 points, and further, when the electronic device displays the first content, the first content may be displayed in a manner of 18 points. The first display size may be consistent with the display size of the first handwriting track on the touch screen, or have a relationship with the first display size (for example, the first display size may be half of the display size of the first handwriting track, that is, the display size of the first handwriting track is 18 points, and the first display size may be 9 points), and so on.
In some embodiments, the first display format may further include a display color of the first content.
In this embodiment, the first display format may further include a display color of the first content, and the first content is displayed according to the color. For example, if the display color in the first display format is black, the touch screen may display the color of the first content as black when the first content is displayed.
In some embodiments, the first content is alphanumeric and the first display format may further include a font for the first content.
In this embodiment, the content input by the user is text or number, and the first display format may further include a font of the first content, and the first content is displayed according to the font. For example, if the font in the first display format is a regular script, the touch screen may display the font of the first content as a regular script when the first content is displayed.
In some embodiments, the first content includes a plurality of identifications having a sequential relationship, and determining the first display format of the first content may include: and carrying out line feed processing on the first content according to the plurality of identifiers, and determining a first display position of the first content after the line feed processing according to the Ziegler type or the pre-defined content pair Ziegler type of the content of the first closed graph.
In this embodiment, the first content input by the user includes a plurality of identifiers, and the identifiers have a sequential relationship, so the electronic device may wrap the first content according to the identifiers, and each identifier is used as a header of each row. For example, the first content input by the user is "1. Development 2. Test 3. Verification", the electronic device determines that the first content input by the user includes identifiers such as "1", "2", "3", and these identifiers are identifiers having a sequential relationship, and the electronic device may split the first content into 3 lines, each line of content beginning with the identifier such as "1", "2", "3", and the 3 lines of content are "1. Development", "2. Test", "3. Verification", respectively.
S44: and displaying the first content on the touch screen in a first display format.
In this embodiment, after determining the first display format and the first content, the electronic device displays the first content in the first display format on the touch screen. After displaying the first handwriting track, displaying the first handwriting track may be stopped on a touch screen of the electronic device before displaying the first content.
For example, with continued reference to fig. 5 (B), the electronic device determines that the first content is "graphic text", and the first display format is "regular script, 18pt, black, and centered display", and displays 4 words of "graphic text" in the manner of regular script, 18pt, black, and centered display in the closed graphic (rectangle).
In this embodiment, when a user performs handwriting input on a touch screen of an electronic device, handwriting input by the user may be displayed on the touch screen, and first content input by the user may be obtained according to the handwriting. Further, a display format of a display position containing the first content can be determined, and the first content is displayed according to the display position, so that the content input by a user displayed by the electronic equipment is in a proper position, the user can conveniently check the content, and convenience in use of the user is improved.
In some embodiments, after displaying the first content input by the user in the first closed graph, the electronic device may further input the second content in the first closed graph, and the electronic device may display the first content and the second content in their entirety through the touch screen. When the user inputs the second content by handwriting, the electronic device can acquire a second handwriting track input by handwriting of the user and identify the handwriting track to obtain the second content. In some embodiments, the user may also enter the second content by other means, such as: input through an external device such as a keyboard, or content dragged into the enclosed graphic by the user from outside the first enclosed graphic, etc.
Illustratively, fig. 7 shows a process in which the electronic device displays the second content. Wherein, S71 and S72 in fig. 7 may refer to the descriptions in the foregoing steps S41-S42, and are not repeated here. As shown in fig. 7, the process of displaying the second content by the electronic device may include the steps of:
s71: and acquiring a second handwriting track input by a user in the first closed graph.
S72: and obtaining second content according to the second handwriting track.
S73: a second display format is determined based on the first display format, the second display format including a second display position of the first content and the second content in the first closed figure.
In this embodiment, a first closed figure is displayed on the touch screen, and a first content is displayed in the first closed figure, where the electronic device has acquired a second content input by a user. The electronic device may determine the second display format based on the first display format within the first enclosed graphic. Illustratively, the second display format may be, but is not limited to being, the same as the first display format. The second display format is used for indicating to display the first content and the second content according to the second display format in the first closed graph of the touch screen.
For example, as shown in fig. 8 (a), a rectangle is displayed on the touch screen, and the rectangle has the first content displayed therein as a "figure" word; after the user inputs a piece in the rectangle, the electronic equipment performs OCR recognition according to the track of the piece word handwritten by the user, so as to obtain a piece word as the second content input by the user. The "figure" word and the "sheet" word are displayed in the first closed figure according to the determined first display format, and as shown in fig. 8 (B), the electronic device may display the "sheet" on the touch screen in the same format as the display format of the "figure". For another example, as shown in fig. 9 (a), the existing content in the first closed figure is a "figure" word, and there is a "piece" word outside the figure, so that the user can drag the "piece" word into the first closed figure where the "figure" word is located. At this time, the electronic device may first acquire the track of the "piece" word dragged by the user, and then perform OCR recognition on the acquired track, to obtain the second content dragged by the user as the "piece" word. Then, as shown in fig. 9 (B), the electronic device may determine a second display format of the "graph" word and the "tile" word according to the first display format of the first content "graph" word, and display the "graph" word and the "tile" word in the second display format on its touch screen.
In some embodiments, the second display position may be determined by a pair of ziegler-type of the first content. Determining the second display format from the first display format may include: a second display position is determined for the Ziegler from the first content. For example, the display location of the first content is centered in the form, the alignment format is centered, and the electronic device can determine that the second display location is also centered in the form.
In some embodiments, the identifier in the second content has a sequential relationship with the identifier in the first content, and the whole of the first content and the second content is subjected to line feed processing according to the sequential relationship of the identifiers, and meanwhile, the matching ziegler formula is determined according to key characteristics in the first content and the second content.
In this embodiment, the electronic device acquires the first content and the second content, and the electronic device may integrate the first content and the second content. The first content comprises a first identifier, the second content comprises a second identifier, the first identifier and the second identifier have a sequential relationship, and the first identifier and the second identifier can be used as key features of the whole content. And wrapping the whole content according to the sequence relation of the first identifier and the second identifier, and determining an alignment format according to the key characteristics.
For example, referring to fig. 10, as shown in fig. 10 (a), the first content existing in the first closed graph is "1. Development", the first content is centrally displayed, the user handwriting-inputs the second content at the lower position of "1. Development" is "2. Measurement", the electronic device detects and identifies the second content input by the user, and has "1" and "2" in the first content respectively, and the numbers are used as key features, and the second display format is determined to include left alignment, as shown in fig. 10 (B). For another example, as shown in fig. 10 (C), the first content existing in the first closed figure is "1. Develop 2. Test", the second content is "3. Verify" in the rear position of "2. Test", the electronic device detects and recognizes the second content input by the user, and has "1", "2", "3" in the first content, respectively, and uses the number as a key feature, determines that the second display format is aligned to the left, and performs a line-changing process on "3. Verify", as in fig. 10 (D). For another example, as shown in fig. 10 (E), the first content existing in the first closed figure is "1. Development", the user manually inputs the second content at the position below "1. Development" is "2. Test 3. Verification", the electronic device detects and identifies the second content input by the user, and has "1", "2", "3" respectively in the original first content, and uses the number as a key feature to determine that the second display format is left aligned, and at the same time, performs a line-changing process on "2. Test 3. Verification", as in fig. 10 (F).
In some embodiments, the second display format includes a second display size of the first content and the second content, the second display size being the same as the first display size.
S74: and displaying the first content and the second content on the touch screen in a second display format.
In this embodiment, after determining the second display format, the electronic device may display the first content and the second content on the touch screen in the second display format. The specific display manner may refer to the aforementioned step S44, and will not be described herein.
In this embodiment, the user inputs the second content in the first closed graph having the first content, the electronic device may determine the second display format according to the display format of the existing first content, and display the first content and the second content in the second display format, so that the newly input content in the first closed graph and the original content may keep the same format, and further conform to the habit of the user.
In some embodiments, the touch screen may have not only the first closed figure but also the second closed figure, and the user may also input content in the second closed figure.
Illustratively, fig. 11 shows a process of displaying content in a second closed figure. Here, S111, S112, S113 and S114 in fig. 11 may refer to the descriptions in the foregoing steps S41, S42, S43 and S44, and are not repeated here.
As shown in fig. 11, the process of displaying the content may include the steps of:
s111: and acquiring a third handwriting track input by the user in the second closed graph.
S112: and obtaining third content according to the third handwriting track.
S113: determining a third display format of the third content, wherein the third display format comprises a third display position of the third content in the second closed graph, and the third display position is obtained according to the Ziegler type or the predefined content pair Ziegler type of the content of the second closed graph.
S114: and displaying the third content on the touch screen in a third display format.
In this embodiment, a second closed figure may be present in addition to the first closed figure. Each closed graph is a single individual, the content display in each closed graph can be in a single format, and the display formats of the two closed graphs can be the same or different. For example, the third display format further includes a third display size of the third content, which may or may not be consistent with the first display size. Of course, the content of the second closed figure may or may not be aligned in a consistent manner with the content of the first closed figure. The embodiment can provide diversified display schemes for users and improve the use interests of the users. And when the display sizes of the third content and the first content are equal. When the two closed figures are consistent, the content in the two closed figures can be ensured to keep a consistent specification, and the display effect on the touch screen can be more neat.
In some embodiments, the touch screen displays a first closed figure and a second closed figure, and the second closed figure displays a third content, at which time the user can input a fourth content in the second closed figure. In some cases, the fourth content input by the user is more, or the word writing is larger when the user inputs the fourth content, the second closed figure cannot accommodate the third content and the fourth content, and at this time, the second closed figure can be enlarged.
Illustratively, FIG. 12 shows a method of displaying content. As shown in fig. 12, the method of displaying content may include the steps of:
s121: and in response to the fourth handwriting track input by the user in the second closed figure, the second closed figure is enlarged.
In this embodiment, the user inputs the fourth content in the second closed figure (the third content already exists in the second closed figure), the electronic device obtains the fourth handwriting track input by the user, and the electronic device enlarges the second closed figure in response to the handwriting track. For example, referring to fig. 13, the user handwriting-inputs two words of "literature" in the second closed figure, the words exceeding the boundary of the second closed figure, and the second closed figure may be enlarged at this time, so that the two words of "literature" are in the second closed figure.
Specifically, the electronic device may acquire the fourth handwriting track, determine a minimum outer frame of the fourth handwriting track, and determine whether a boundary of the minimum outer frame exceeds a threshold of the second closed graph boundary line. The threshold value of the boundary line may be equal to or smaller than the size of the boundary line of the second closed figure. When the electronic device determines that the boundary of the minimum outer frame of the fourth handwriting track does not exceed the threshold value of the boundary line of the second closed figure, it determines that the fourth handwriting track is already located in the second closed figure, and the second closed figure may not be adjusted. When the electronic device determines that the boundary of the minimum outer frame of the fourth handwriting track exceeds the threshold value of the boundary line of the second closed graph, the fourth handwriting track is determined to exceed the boundary of the second closed graph, and the second closed graph needs to be enlarged so that the fourth handwriting track is in the second closed graph.
For example, referring to fig. 14, as shown in fig. 14, the user inputs four words "development test" in the second closed graph, the electronic whiteboard obtains handwriting input tracks of the four words, and determines the minimum outer frame according to the handwriting input tracks of the four words. Fig. 14 (a) shows a case where the boundary of the minimum outer frame exceeds the boundary of the second closed figure, and fig. 14 (C) shows a case where the boundary of the minimum outer frame does not exceed the boundary of the second closed figure, but exceeds the threshold of the boundary of the second closed figure. It will be appreciated that when the boundary of the minimum bounding box exceeds the boundary line of the second closed figure, then the boundary of the minimum bounding box must exceed the threshold of the boundary line of the second closed figure. The boundary line of the second closed figure may be adjusted in size such that the boundary of the minimum outer frame is smaller than the threshold value of the boundary line of the second closed figure, that is, as shown in (B) and (D) of fig. 14.
As one possible implementation, the second closed figure may be enlarged according to the content input by the user after the user completes input (completing the input state, for example, in the case of handwriting input by the user, the user has lifted the pen), for example, as shown in fig. 13, the user inputs "literature" in the second closed figure, and after completing input, the electronic device enlarges the second closed figure. The second closed figure may also be scaled up in real time as the user inputs. For example, as shown in fig. 15, if the electronic device determines that the current contact point on the touch screen is smaller than the threshold value from the boundary of the second closed figure when the user performs handwriting input, the boundary of the second closed figure is expanded along with the moving direction of the current contact point.
S122: and obtaining fourth content according to the fourth handwriting track.
S123: and determining a fourth display format of the third content and the fourth content according to the enlarged second closed graph and the third display format, wherein the fourth display format comprises a fourth display position of the third content and the fourth content in the enlarged second closed graph, and the fourth display position is obtained according to the content of the second closed graph and the Ziegler type or the predefined content.
S124: and displaying the third content and the fourth content on the touch screen in a fourth display format.
The steps S122 to S124 may refer to the steps S42 to S44, and are not repeated here.
In this embodiment, when the content input by the user in the second closed figure is more or the font is larger, the second closed figure cannot completely display the content in the closed figure, and at this time, the second closed figure can be enlarged, so that the content input by the user is kept in the closed figure, thereby improving the visual experience of the user.
In some embodiments, the first closed figure and the second closed figure may be rectangular, and the first closed figure and the second closed figure are aligned, and the first closed figure may be enlarged according to the enlarged second closed figure. If the second closed graph and the first closed graph are two rectangles which are horizontally displayed side by side, the alignment can be the height alignment of the two rectangles; if the second closed figure and the first closed figure are two rectangles displayed side by side in the longitudinal direction, the alignment may be the width alignment of the two rectangles.
In this embodiment, the first closed figure may be enlarged according to the enlarged second closed figure, so that the enlarged first closed figure is aligned with the enlarged second closed figure.
Correspondingly, the method for displaying content provided in the embodiment of the present application may further determine a fifth display format of the first content in the enlarged first closed graph, where the fifth display format includes a display position of the first content in the enlarged first closed graph, and display the first content on the touch screen in the fifth display format.
In some embodiments, the user may also delete the fourth content in the second closed figure, and the electronic device may turn down the second closed figure in response to a deletion operation by the user.
Correspondingly, the electronic equipment can also reduce the first closed figure according to the reduced second closed figure, so that the reduced closed figure and the reduced second closed figure still maintain an aligned state.
In this embodiment, the first closed figure and the second closed figure are rectangular, and the first closed figure and the second closed figure are aligned, so that the first closed figure and the second closed figure can be regarded as a table with two cells, and after one cell is adjusted, the other cell is adjusted synchronously according to the adjusted cell, so that the two cells still keep aligned, and the use habit of a user is met.
In some embodiments, the touch screen of the electronic device displays a first closed figure, a second closed figure, and a third closed figure. The first, second, and third closed figures may all be rectangular, and the first, second, and third closed figures are aligned with one another. The first content is displayed in the first closed graph, the third content is displayed in the second closed graph, the first content and the third content are identifiers with a sequence relation, and the method for displaying the content can further comprise: and filling the fifth content in the third closed graph so that the first content, the third content and the fifth content are identifiers with sequential relation. Wherein the identification of a sequential relationship may be a number having a sequentially increasing relationship or a sequentially decreasing relationship. Alternatively, letters having a sequentially increasing relationship or a sequentially decreasing relationship may be used.
In this embodiment, after acquiring the first content and the third content input by the user, the electronic device identifies the first content and the third content input by the user, and determines that the first content and the third content are identifiers having a sequential relationship. The identification may be a number or a letter.
For example, referring to fig. 16, 3 rectangles aligned with each other are displayed on the touch screen, and are a first closed figure, a second closed figure, and a third closed figure, where the first closed figure has a first content of "1", and the second closed figure has a third content of "2". After the electronic device acquires the '1' and the '2', the '1' and the '2' are the identifiers with the sequential relation, and then '3' is automatically filled in the third closed graph.
As a possible implementation, the first content and the third content are purely digital, and the first content and the third content are in a preset sequence. Wherein, the preset sequence refers to a sequence of numbers, for example, the numbers are continuous numbers, the numbers are in an arithmetic sequence, and the like. At this time, the electronic device may automatically fill the number in the third closed figure, where the filled number is kept in the same preset sequence as the first content and the second content.
As one possible implementation, the electronic device may pop up a prompt box asking the user whether to fill the third closed figure, and after the user selects to determine to automatically fill, the electronic device fills the third closed figure.
In some embodiments, the touch screen of the electronic device displays a first closed figure, a second closed figure, and a third closed figure. The first, second, and third closed figures may all be rectangular, and the first, second, and third closed figures are aligned with one another. The first closed graph is internally provided with a first content, the second closed graph is internally provided with a third content, and the first content and the third content are numbers. The method for displaying the content at this time may further include: and filling fifth content in the third closed graph, wherein the fifth content is a number, and the fifth content is calculated by the first content and the third content according to a preset formula.
In this embodiment, the first content and the third content are pure numbers, the user inputs a mathematical function in the third closed graph, and the electronic device may calculate the first content and the third content according to the mathematical function input by the user, and fill the calculation result into the third closed graph to replace the mathematical function input by the user. For example, the electronic device recognizes that the mathematical function input by the user is "=sum", indicating that the user desires to SUM the contents in the first closed figure and the second closed figure, the electronic device recognizes that the content input by the user is "=average", indicating that the user desires to AVERAGE the contents in the first closed figure and the second closed figure, and the electronic device recognizes that the content input by the user is "=divide", indicating that the user desires to perform the safe division calculation on the contents in the first closed figure and the second closed figure. When neither the row nor the column in which the mathematical function is located has a number, a null value may be returned to the user.
Illustratively, as shown in fig. 17 (a), the first content is "1200", the third content is "1500", the user inputs the mathematical function of "sum" in the third closed figure, and the electronic device confirms that the user desires to sum the first content and the third content, and adds the first content and the third content to obtain a calculation result "2700", and fills this calculation result "2700" into the third closed figure, instead of "sum" input by the user, i.e., (B) in fig. 17.
In some embodiments, the electronic device may also calculate the number selected by the user.
In this embodiment, the user selects the first closed figure and the second closed figure, and the first content in the first closed figure and the third content in the second closed figure are both numerals. The electronic equipment responds to the selection operation of the user, and displays prompt information which is used for displaying a calculation method characterized by at least one mathematical formula. And the electronic equipment calculates the first content and the third content selected by the user according to the calculation method selected by the user, and fills the calculation result into the third closed graph.
Illustratively, as shown in fig. 18 (a), the user selects a first closed figure having a first content "1200" and a second closed figure having a third content "1500". The electronic equipment pops up a prompt box, wherein the prompt box is an option of summation, average, product and quotient, and each option corresponds to a calculation formula. The user may select "sum", i.e., sum the first content and the third content, resulting in a calculation result "2700". And filling the calculation result into a third closed graph.
As one possible implementation, the electronic device supports voice input, and after the user selects the first closed figure and the second closed figure, the user can input by voice to perform a computing operation. The computation of the user input by voice may include, but is not limited to, summing, differencing, averaging, quotient, product, mean square error, and the like.
Illustratively, as shown in fig. 19 (a), the user selects a first closed figure having a first content "1200" and a second closed figure having a third content "1500". After the user selects the graphics, the user can input "sum" in a voice manner, and the electronic device calculates the contents in the first graphics and the second graphics according to the calculation method of voice input of the user, so as to obtain a calculation result "2700". The calculation result "2700" is filled in the third closed figure.
In this embodiment, the content input by the user in the closed graph is a number, the user can select a calculation mode, the electronic device can automatically calculate the number input by the user according to the calculation mode selected by the user, the process of self calculation of the user is omitted, and the convenience of use of the user is improved.
In the method for displaying content provided in the embodiments, after the handwriting track is displayed on the touch screen, OCR recognition is performed on the handwriting track to obtain a recognized content. In some situations, however, the user does not want to translate his or her own written word into a print, but rather, to preserve his or her own handwriting style. Therefore, the embodiment of the application also provides another method for displaying the content, which can be applied to the electronic equipment with the touch screen, and the first closed graph is displayed on the touch screen. The method for displaying content can include:
and acquiring a first handwriting track input by a user in the first closed graph.
And displaying the first handwriting track on the touch screen.
And adjusting the display position of the first handwriting track in the first closed graph according to the content of the first closed graph in a Ziegler mode or a predefined content in a Ziegler mode.
And displaying the first handwriting track on the touch screen at the adjusted display position.
The embodiments of the method for displaying content provided in this embodiment may refer to the foregoing embodiments of performing OCR recognition on handwriting, which are not described herein.
In some embodiments, the display size of the first handwriting track may also be adjusted according to a predefined display size, so as to better conform to the viewing habit of the user. The displaying the first handwriting track on the touch screen with the adjusted display position at this time may include: and displaying the first handwriting track on the touch screen with the adjusted display position and the adjusted display size.
It should be understood that the sequence numbers of the steps in the foregoing embodiments do not imply that the execution sequence of the steps is determined by the functions and internal logic of the steps, and should not be limited to the implementation process of the embodiments of the present application. The number of the first closed figure, the second closed figure and the third closed figure in the embodiment does not limit the number of the figures, the number of the closed figures can be increased or decreased according to the need, for example, a plurality of aligned rectangles (one of the closed figures) can form a table, and a user can input contents in the table. In addition, in some possible implementations, each step in the foregoing embodiments may be selectively performed according to practical situations, and may be partially performed or may be performed entirely, which is not limited herein. All or part of any features of any of the embodiments of the present application may be freely, and arbitrarily combined without conflict. The combined technical scheme is also within the scope of the application.
Based on the method in the above embodiment, the embodiment of the present application further provides a device for displaying content.
Illustratively, fig. 20 shows a structure of an apparatus for displaying contents. The device for displaying the content can be deployed on electronic equipment with a touch screen, and the touch screen is displayed with a first closed graph. As shown in fig. 20, the apparatus 2000 for displaying contents may include: an acquiring module 2001, configured to acquire a first handwriting track input by a user in a first closed figure; the display module 2002 is used for displaying a first handwriting track on the touch screen; a processing module 2003, configured to obtain a first content according to the first handwriting track; the processing module 2003 is further configured to determine a first display format of the first content, where the first display format includes a first display position of the first content in the first closed graph, and the first display position is different from a display position of the first handwriting track on the touch screen; the display module 2002 is further configured to display the first content on the touch screen in the first display format.
In some possible implementations, the first content is obtained by performing optical character recognition on the first handwriting track.
In some possible implementations, the first content is an alphanumeric, numerical, or pattern.
In some possible implementations, after displaying the first handwriting track and before displaying the first content, the display module 2002 is further configured to stop displaying the first handwriting track on the touch screen.
In some possible implementations, the processing module 2003 is further configured to: the first display position is determined according to a content alignment format of the first closed figure or a predefined content alignment formula, the content alignment formula including any one of left alignment, right alignment, center alignment, both ends alignment, and scatter alignment.
In some possible implementations, the first display format further includes a first display size of the first content.
In some possible implementations, the first display size is different from a display size of the first handwriting track on the touch screen.
In some possible implementations, the processing module 2003 is further configured to: determining a first display size according to a predefined content size specification of the first closed figure; or determining the first display size according to the display size of the first handwriting track on the touch screen.
In some possible implementations, the first display format further includes: the display color of the first content.
In some possible implementations, the first content is text, and the first display format further includes a font of the first content.
In some possible implementations, the processing module 2003 is further configured to: acquiring a second handwriting track input by a user in the first closed graph; obtaining second content according to the second handwriting track; determining a second display format according to the first display format, wherein the second display format comprises a second display position of the first content and the second content in the first closed graph; the display module 2002 is further configured to display the first content and the second content on the touch screen in a second display format.
In some possible implementations, before displaying the first content and the second content on the touch screen in the second display format, the display module 2002 is further configured to: displaying a second handwriting track on the touch screen; and stopping displaying the second handwriting track on the touch screen after a preset time period.
In some possible implementations, the second display position is determined by the first content pair ziegler; the processing module 2003 is also used to determine a second display position for the Ziegler based on the first content.
In some possible implementations, the second display format includes a second display size of the first content and the second content, the second display size being the same as the first display size.
In some possible implementations, the touch screen further displays a second closed figure, and the acquiring module 2001 is further configured to acquire a third handwriting track input by the user in the second closed figure; the processing module 2003 is further configured to obtain third content according to a third handwriting track; determining a third display format of the third content, wherein the third display format comprises a third display position of the third content in the second closed graph, and the third display position is obtained according to a content alignment format of the second closed graph or a predefined content alignment Ziegler type; the display module 2002 is further configured to display third content on the touch screen in a third display format.
In some possible implementations, the content alignment format of the first closed figure is consistent with the content alignment of the second closed figure.
In some possible implementations, the third display format further includes a third display size of the third content, the third display size being consistent with the first display size.
In some possible implementations, the display module 2002 is further configured to display a third handwriting track on the touch screen before displaying the third content on the touch screen in the third display format; and stopping displaying the third handwriting track on the touch screen after the preset time period.
In some possible implementations, the processing module 2003 is further configured to: responding to a fourth handwriting track input by a user in the second closed graph, and adjusting the second closed graph; obtaining fourth content according to the fourth handwriting track; determining a fourth display format of the third content and the fourth content according to the enlarged second closed graph and the third display format, wherein the fourth display format comprises a fourth display position of the third content and the fourth content in the enlarged second closed graph, and the fourth display position is obtained according to the Ziegler type or the pre-defined content pair Ziegler type of the content of the second closed graph; the display module 2002 is further configured to display the third content and the fourth content on the touch screen in a fourth display format.
In some possible implementations, before displaying the third content and the fourth content on the touch screen in the fourth display format, the display module 2002 is further configured to: displaying the enlarged second closed graph on the touch screen; displaying a fourth handwriting track on the touch screen; and stopping displaying the fourth handwriting track on the touch screen after the preset time period.
In some possible implementations, the first closed figure and the second closed figure are rectangular, and the first closed figure and the second closed figure are aligned, and the processing module 2003 is further configured to: according to the enlarged second closed figure, the first closed figure is enlarged, so that the enlarged first closed figure and the enlarged second closed figure are aligned; determining a fifth display format of the first content in the enlarged first closed graph, wherein the fifth display format comprises a display position of the first content in the enlarged first closed graph; the display module 2002 is further configured to display the first content on the touch screen in a fifth display format.
In some possible implementations, the processing module 2003 is further configured to: in response to the user deleting the fourth content in the second closed figure, turning down the second closed figure; the display module 2002 is further configured to display third content on the touch screen in a third display format.
In some possible implementations, the processing module 2003 is further configured to: according to the reduced second closed figure, reducing the first closed figure so that the reduced first closed figure is aligned with the reduced second closed figure; determining a sixth display format of the first content in the reduced first closed figure, wherein the sixth display format comprises the display position of the first content in the reduced first closed figure; the display module 2002 is further configured to display the first content on the touch screen in a sixth display format.
In some possible implementations, the first content includes a plurality of identifications having a sequential relationship, and the processing module 2003 is further configured to: performing line feed processing on the first content according to the plurality of identifiers; and determining a first display position of the first content after the line feed processing according to the content alignment format of the first closed figure or the pre-defined content pair.
In some possible implementations, a third closed figure is further displayed on the touch screen, where the first closed figure, the second closed figure, and the third closed figure are rectangular, and the first closed figure, the second closed figure, and the third closed figure are aligned, and the first content and the third content are identifiers having a sequential relationship, and the processing module 2003 is further configured to: and filling the fifth content in the third closed graph so that the first content, the third content and the fifth content are identifiers with sequential relation.
In some possible implementations, the identification of a sequential relationship is a number having a sequentially increasing relationship or a sequentially decreasing relationship; or letters having a sequentially increasing relationship or a sequentially decreasing relationship.
In some possible implementations, a third closed figure is further displayed on the touch screen, the first closed figure, the second closed figure, and the third closed figure are rectangular, the first closed figure, the second closed figure, and the third closed figure are aligned, the first content and the third content are numbers, and the processing module 2003 is further configured to: and filling fifth content in the third closed graph, wherein the fifth content is a number, and the fifth content is calculated by the first content and the third content according to a preset formula.
It should be understood that, the foregoing apparatus is used to perform the method in the foregoing embodiment, and the corresponding program modules in the apparatus implement principles and technical effects similar to those described in the foregoing method, and reference may be made to the corresponding processes in the foregoing method for the operation of the apparatus, which are not repeated herein.
Based on the method in the above embodiment, the embodiment of the present application further provides an apparatus for displaying content.
Fig. 21 illustrates the structure of yet another apparatus for displaying contents, by way of example. The device for displaying the content can be deployed in an electronic device with a touch screen, and the touch screen is displayed with a first closed graph. As shown in fig. 21, the apparatus 2100 for displaying content may include: an obtaining module 2101, configured to obtain a first handwriting track input by a user in a first closed graph; a display module 2102 for displaying a first handwriting track on a touch screen; a processing module 2103 for adjusting a display position of the first handwriting track in the first closed figure according to the content in the first closed figure for a ziegler type or a predefined content for a ziegler type; the display module 2102 is further configured to display a first handwriting track on the touch screen with the adjusted display position.
In some possible implementations, the processing module 2103 is further configured to: according to the predefined display size, adjusting the display size of the first handwriting track; the display module 2102 is further configured to: and displaying the first handwriting track on the touch screen according to the adjusted display position and the adjusted display size.
It should be understood that, the foregoing apparatus is used to perform the method in the foregoing embodiment, and the corresponding program modules in the apparatus implement principles and technical effects similar to those described in the foregoing method, and reference may be made to the corresponding processes in the foregoing method for the operation of the apparatus, which are not repeated herein.
It is to be appreciated that the processor in embodiments of the present application may be a central processing unit (central processing unit, CPU), but may also be other general purpose processors, digital signal processors (digital signal processor, DSP), application specific integrated circuits (application specific integrated circuit, ASIC), field programmable gate arrays (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The general purpose processor may be a microprocessor, but in the alternative, it may be any conventional processor.
The method steps in the embodiments of the present application may be implemented by hardware, or may be implemented by a processor executing software instructions. The software instructions may be comprised of corresponding software modules that may be stored in random access memory (random access memory, RAM), flash memory, read-only memory (ROM), programmable ROM (PROM), erasable programmable PROM (EPROM), electrically erasable programmable EPROM (EEPROM), registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. 1. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC.
In the above embodiments, the implementation may be in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted across a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
It will be appreciated that the various numerical numbers referred to in the embodiments of the present application are merely descriptive expedient and are not intended to limit the scope of the embodiments of the present application.

Claims (23)

1. A method for displaying content, applied to an electronic device having a touch screen on which a first closed figure is displayed, the method comprising:
acquiring a first handwriting track input by a user in the first closed graph;
displaying the first handwriting track on the touch screen;
obtaining first content according to the first handwriting track;
determining a first display format of the first content, wherein the first display format comprises a first display position of the first content in the first closed graph, and the first display position is different from a display position of the first handwriting track on the touch screen;
and displaying the first content on the touch screen in the first display format.
2. The method of claim 1, wherein the determining the first display format of the first content comprises:
the first display position is determined according to a content alignment ziegler or a predefined content alignment ziegler of the first closed figure, wherein the content alignment ziegler comprises any one of left alignment, middle alignment, right alignment, two-end alignment and scattered alignment.
3. The method of claim 1 or 2, wherein the first display format further comprises a first display size of the first content.
4. The method of claim 3, wherein the first display size is different from a display size of the first handwriting track on the touch screen.
5. The method of claim 3 or 4, wherein the determining the first display format of the first content comprises:
determining the first display size according to a predefined content size specification of the first closed figure; or determining the first display size according to the display size of the first handwriting track on the touch screen.
6. The method of any one of claims 1-5, further comprising:
acquiring a second handwriting track input by a user in the first closed graph;
obtaining second content according to the second handwriting track;
determining a second display format according to the first display format, wherein the second display format comprises a second display position of the first content and the second content in the first closed graph;
and displaying the first content and the second content on the touch screen in the second display format.
7. The method of claim 6, wherein the second display position is determined by the first content versus ziegler;
the determining a second display format according to the first display format includes:
and determining the second display position according to the first content pair Ziegler type.
8. The method of claim 6 or 7, wherein the second display format includes a second display size of the first content and the second content, the second display size being the same as the first display size.
9. The method of any of claims 2-8, wherein a second closed figure is further displayed on the touch screen, the method further comprising:
acquiring a third handwriting track input by a user in the second closed graph;
obtaining third content according to the third handwriting track;
determining a third display format of the third content, wherein the third display format comprises a third display position of the third content in the second closed graph, and the third display position is obtained according to the content pair Ziegler type of the second closed graph or the predefined content pair Ziegler type;
and displaying the third content on the touch screen in the third display format.
10. The method of claim 9, wherein the content-to-ziegler of the first enclosed area is consistent with the content-to-ziegler of the second enclosed graphic.
11. The method of claim 9 or 10, wherein the third display format further comprises a third display size of the third content, the third display size being consistent with the first display size.
12. The method according to any one of claims 9-11, characterized in that the method further comprises:
responding to a fourth handwriting track input by a user in the second closed graph, and adjusting the second closed graph;
obtaining fourth content according to the fourth handwriting track;
determining a fourth display format of the third content and the fourth content according to the enlarged second closed graph and the third display format, wherein the fourth display format comprises a fourth display position of the third content and the fourth content in the enlarged second closed graph, and the fourth display position is obtained according to the content of the second closed graph or the predefined content;
and displaying the third content and the fourth content on the touch screen in the fourth display format.
13. The method according to claim 12, wherein: the first closed figure and the second closed figure are rectangular, and the first closed figure and the second closed figure are aligned, the method further comprising:
according to the enlarged second closed figure, the first closed figure is enlarged, so that the enlarged first closed figure is aligned with the enlarged second closed figure;
determining a fifth display format of the first content in the enlarged first closed figure, wherein the fifth display format comprises a display position of the first content in the enlarged first closed figure;
and displaying the first content on the touch screen in the fifth display format.
14. The method of any of claims 1-13, wherein the first content includes a plurality of identifications having a sequential relationship, and wherein determining the first display format of the first content comprises:
performing line feed processing on the first content according to the plurality of identifiers;
and determining a first display position of the first content after the line feed processing according to the content pair Ziegler type or the predefined content pair Ziegler type of the first closed graph.
15. The method of any of claims 9-13, wherein a third closed figure is further displayed on the touch screen, the first closed figure, the second closed figure, and the third closed figure are rectangular, and the first closed figure, the second closed figure, and the third closed figure are aligned, the first content and the third content including an identifier having a sequential relationship, the method further comprising:
and filling fifth content in the third closed graph, so that the first content, the third content and the fifth content comprise identifiers with sequential relations.
16. The method of claim 14 or 15, wherein the identification of a sequential relationship is a number having a sequentially increasing relationship or a sequentially decreasing relationship; or letters having a sequentially increasing relationship or a sequentially decreasing relationship.
17. The method of any of claims 9-13, wherein a third closed figure is further displayed on the touch screen, the first closed figure, the second closed figure, and the third closed figure are rectangular, and the first closed figure, the second closed figure, and the third closed figure are aligned, the first content and the third content are numbers, the method further comprising:
And filling fifth content in the third closed graph, wherein the fifth content is a number, and the fifth content is obtained by calculating the first content and the third content according to a preset formula.
18. A method for displaying content, applied to an electronic device having a touch screen on which a first closed figure is displayed, the method comprising:
acquiring a first handwriting track input by a user in the first closed graph;
displaying the first handwriting track on the touch screen;
adjusting the display position of the first handwriting track in the first closed graph according to the content of the first closed graph in a Ziegler manner or a pre-defined content in a Ziegler manner;
and displaying the first handwriting track on the touch screen according to the adjusted display position.
19. The method of claim 18, wherein the method further comprises:
adjusting the display size of the first handwriting track according to a predefined display size;
the displaying the first handwriting track on the touch screen at the adjusted display position includes:
and displaying the first handwriting track on the touch screen according to the adjusted display position and the adjusted display size.
20. An apparatus for displaying content, disposed on an electronic device having a touch screen on which a first closed graphic is displayed, the apparatus comprising:
the acquisition module is used for acquiring a first handwriting track input by a user in the first closed graph;
the display module is used for displaying the first handwriting track on the touch screen;
the processing module is used for obtaining first content according to the first handwriting track;
the processing module is further configured to determine a first display format of the first content, where the first display format includes a first display position of the first content in the first closed graph, and the first display position is different from a display position of the first handwriting track on the touch screen;
and the display module is further used for displaying the first content on the touch screen in the first display format.
21. An apparatus for displaying content, disposed on an electronic device having a touch screen on which a first closed graphic is displayed, the apparatus comprising:
the acquisition module is used for acquiring a first handwriting track input by a user in the first closed graph;
The display module is used for displaying the first handwriting track on the touch screen;
the processing module is used for adjusting the display position of the first handwriting track in the first closed graph according to the content in the first closed graph in a Ziegler mode or a predefined content in a Ziegler mode;
and the display module is also used for displaying the first handwriting track on the touch screen according to the adjusted display position.
22. A computing device comprising a processor and a memory, wherein the memory has stored therein computer program instructions that, when executed by the processor, perform the method of any of claims 1-19.
23. A computer readable storage medium comprising computer readable instructions which, when read and executed by a computer, cause the computer to perform the method of any of claims 1-19.
CN202211206210.7A 2022-09-30 2022-09-30 Method, device and storage medium for displaying content Pending CN117850654A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211206210.7A CN117850654A (en) 2022-09-30 2022-09-30 Method, device and storage medium for displaying content
PCT/CN2023/101417 WO2024066505A1 (en) 2022-09-30 2023-06-20 Content display method and apparatus, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211206210.7A CN117850654A (en) 2022-09-30 2022-09-30 Method, device and storage medium for displaying content

Publications (1)

Publication Number Publication Date
CN117850654A true CN117850654A (en) 2024-04-09

Family

ID=90475916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211206210.7A Pending CN117850654A (en) 2022-09-30 2022-09-30 Method, device and storage medium for displaying content

Country Status (2)

Country Link
CN (1) CN117850654A (en)
WO (1) WO2024066505A1 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114461057A (en) * 2020-11-09 2022-05-10 华为技术有限公司 VR display control method, electronic device and computer readable storage medium
CN114740986A (en) * 2021-01-07 2022-07-12 华为技术有限公司 Handwriting input display method and related equipment
CN115048027A (en) * 2022-05-06 2022-09-13 合肥讯飞读写科技有限公司 Handwriting input method, device, system, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2024066505A1 (en) 2024-04-04

Similar Documents

Publication Publication Date Title
US20210195109A1 (en) Method for controlling camera and electronic device therefor
US20220121413A1 (en) Screen Control Method, Electronic Device, and Storage Medium
WO2020019873A1 (en) Image processing method and apparatus, terminal and computer-readable storage medium
WO2021036715A1 (en) Image-text fusion method and apparatus, and electronic device
KR102359276B1 (en) Method and apparatus for controlling white balance function of electronic device
CN112506386A (en) Display method of folding screen and electronic equipment
CN110647881A (en) Method, device, equipment and storage medium for determining card type corresponding to image
CN111105474B (en) Font drawing method, font drawing device, computer device and computer readable storage medium
CN108647566B (en) Method and terminal for identifying skin characteristics
CN110377914B (en) Character recognition method, device and storage medium
CN110163192B (en) Character recognition method, device and readable medium
CN113343709B (en) Method for training intention recognition model, method, device and equipment for intention recognition
WO2022022406A1 (en) Always-on display method and electronic device
CN117850654A (en) Method, device and storage medium for displaying content
CN113591514B (en) Fingerprint living body detection method, fingerprint living body detection equipment and storage medium
WO2021254510A1 (en) Method for determining screenshot area, and related apparatus
CN111723615B (en) Method and device for judging matching of detected objects in detected object image
CN113721827A (en) Floating keyboard display method, electronic equipment and storage medium
CN116343247B (en) Form image correction method, device and equipment
EP4235371A1 (en) Method for sharing input device, electronic devices, and system
CN110929675B (en) Image processing method, device, computer equipment and computer readable storage medium
WO2022252821A1 (en) Method and medium for recognizing edit handwriting of stylus, and electronic device
CN116048444B (en) Application display method and terminal equipment
CN114615520B (en) Subtitle positioning method, subtitle positioning device, computer equipment and medium
CN117762286A (en) Cursor display method and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination