WO2022057535A1 - 信息展示方法及装置、存储介质及电子设备 - Google Patents

信息展示方法及装置、存储介质及电子设备 Download PDF

Info

Publication number
WO2022057535A1
WO2022057535A1 PCT/CN2021/112348 CN2021112348W WO2022057535A1 WO 2022057535 A1 WO2022057535 A1 WO 2022057535A1 CN 2021112348 W CN2021112348 W CN 2021112348W WO 2022057535 A1 WO2022057535 A1 WO 2022057535A1
Authority
WO
WIPO (PCT)
Prior art keywords
font
bitmap
category
target
text
Prior art date
Application number
PCT/CN2021/112348
Other languages
English (en)
French (fr)
Inventor
刘鹏宇
李英杰
雷利平
Original Assignee
京东方科技集团股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 京东方科技集团股份有限公司 filed Critical 京东方科技集团股份有限公司
Priority to US17/914,409 priority Critical patent/US11928419B2/en
Publication of WO2022057535A1 publication Critical patent/WO2022057535A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/169Annotation, e.g. comment data or footnotes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/171Editing, e.g. inserting or deleting by use of digital ink
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/084Backpropagation, e.g. using gradient descent

Definitions

  • the present disclosure relates to the technical field of information display, and in particular, to an information display method and apparatus, a computer-readable storage medium, and an electronic device.
  • an information display method comprising:
  • determining a target font conversion model corresponding to the target font category in a model library wherein the model library includes font conversion models corresponding to multiple font categories;
  • the initial bitmap of the standard text is converted into a target bitmap corresponding to the target font category and displayed on the display device page.
  • the method before responding to a user's writing operation on the display device page, the method further includes:
  • determining a standard character corresponding to the writing operation according to a writing trajectory of the writing operation in response to a user's writing operation on the display device page, determining a standard character corresponding to the writing operation according to a writing trajectory of the writing operation, and generating the The initial bitmap corresponding to standard text, including:
  • generating the initial bitmap of the standard text includes:
  • the initial bitmap is obtained by rendering according to the vector outline shape.
  • the method further includes:
  • an area to be annotated is determined, and a selection interface of the candidate display font category is displayed in the to-be-annotated area.
  • the determining a target font category to be written in response to a user's selection operation on one of the at least one candidate display font categories displayed on the display device page includes:
  • the target font category is determined in response to a user's touch operation on a category in the candidate display font category presentation interface.
  • the display device page has a font category of an initially displayed font, and the font category of the initially displayed text is a standard font, and the method further includes:
  • the first font conversion model is used to convert the bitmap of the initially displayed text into the first bitmap corresponding to the first font category.
  • acquiring the bitmap of the displayed text in response to the user's first font conversion operation on the initially displayed text includes:
  • bitmaps of the initially displayed characters to be converted are respectively acquired.
  • using the first font conversion model to convert the bitmap of the initially displayed text into the first bitmap corresponding to the first font category includes:
  • the target font conversion model is used to convert the initial bitmap of the standard text into a target bitmap corresponding to the target font category and display it on the display device page
  • the The method also includes:
  • the initial bitmap is converted into a second bitmap corresponding to a second font category by using the second font conversion model, and the target bitmap is replaced.
  • the input of the font conversion model is a bitmap corresponding to a standard font
  • the output is a bitmap corresponding to a category of candidate display fonts.
  • an information display device comprising:
  • the selection module determines the target font category to be written in response to the user's operation on the display device page
  • a determining module for determining a target font conversion model corresponding to the target font category in a model library, wherein the model library includes font conversion models corresponding to multiple candidate display font categories;
  • an input module in response to a user's writing operation on the display device page, determining a standard character corresponding to the writing operation according to the writing track of the writing operation, and generating an initial bitmap corresponding to the standard character;
  • the conversion module uses the target font conversion model to convert the initial bitmap of the standard text into a target bitmap corresponding to the target font category and display it on the display device page.
  • a computer-readable storage medium is provided, and when the program is executed by a processor, the information display method according to any one of the above-mentioned items is implemented.
  • an electronic device comprising:
  • a memory for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement information as described in any of the above Show method.
  • FIG. 1 schematically shows a flowchart of an information display method in an exemplary embodiment of the present disclosure
  • FIG. 2 schematically shows a schematic diagram of displaying a device page in an annotation scenario in an exemplary embodiment of the present disclosure
  • FIG. 3 schematically shows a flow chart of model library acquisition in an exemplary embodiment of the present disclosure
  • FIG. 4 schematically shows a flow chart of converting initially displayed text by taking an electronic whiteboard as an example in an exemplary embodiment of the present disclosure
  • FIG. 5 schematically shows a schematic diagram of the composition of an information display apparatus in an exemplary embodiment of the present disclosure
  • FIG. 6 schematically shows a schematic structural diagram of a computer system suitable for implementing an electronic device according to an exemplary embodiment of the present disclosure
  • FIG. 7 schematically illustrates a schematic diagram of a computer-readable storage medium according to some embodiments of the present disclosure.
  • Example embodiments will now be described more fully with reference to the accompanying drawings.
  • Example embodiments can be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
  • the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
  • an information display method is first provided, which can be applied to a display device with an intelligent interactive function, for example, applied to an electronic whiteboard system, where the text input by a user on the electronic whiteboard can be displayed through the above information
  • the method is converted to the personalized font display set and selected by the user.
  • the above-mentioned information presentation method may comprise the following steps:
  • S130 in response to a user's writing operation on the display device page, determine a standard character corresponding to the writing operation according to the writing track of the writing operation, and generate an initial bitmap corresponding to the standard character;
  • the user when inputting text on the touch display device, the user can first determine the target font category, and then according to the target font category in the model library Determine the target font conversion model, and use the target font conversion model to convert the initial bitmap of the standard text corresponding to the user's writing operation into the target bitmap corresponding to the target font category and display it on the display device page. On the one hand, it can be displayed on the touch display device.
  • the target bitmap of the target font category is generated through the pre-trained font conversion model, without setting a complete target font category library, which reduces the storage pressure on the server; on the other hand, through the The font conversion model can be trained with a small amount of data, and personalized fonts for a variety of users can be designed, avoiding the copyright problem caused by using the existing complete font library.
  • step S110 the target font category to be written is determined in response to the user's operation on the display device page.
  • the server may determine the target font category to be written in response to the user's operation on the display device page, specifically, the response may be on the display device page.
  • the personalized font is not specifically limited in this example implementation.
  • the above information display method can be applied to an annotation scenario, and the server can first respond to the user's operation of initiating annotation, determine an area 211 to be annotated on the display device page 210, and The annotation area displays a selection interface 212 for candidate display font categories. Then, the server can respond to the user's first operation on the candidate font selection interface 212 to display multiple candidate display font categories, and finally, the server can respond to the user's touch operation on a category in the candidate display font category display interface to determine the above target. Font category.
  • the font selection interface 212 may be displayed outside the to-be-annotated area 211 , and an arrow is used to indicate that the font-selection interface 212 is a font for selecting annotated text in the to-be-annotated area 211 category.
  • fonts there are many ways to select fonts. For example, a variety of candidate display font categories are displayed directly in the preset area of the above-mentioned display device page, and the user can select the target font category by clicking, or the user can input the font by voice.
  • the target font category is determined by the method, and for another example, a correspondence between gestures and candidate font categories is set in the display device, and the user selects different target font categories through different gestures.
  • the selection method is specifically limited.
  • the confusion between the initial display text and the annotation text can be avoided.
  • the user continues to complete the remaining work after completing the annotation, and the user can clearly distinguish the annotation text from the initial display text during playback display.
  • the above-mentioned font selection interface can respond to the selection operations of different users, that is, multiple users can use different fonts to annotate at the same time, that is, the area to be annotated can include multiple, at this time, different users use different fonts to annotate, It can distinguish the annotation text of each user well, and at the same time, it can meet the needs of different users and improve the user experience.
  • a target font conversion model corresponding to the target font category is determined in a model library, wherein the model library includes font conversion models corresponding to multiple font categories.
  • the model library can be obtained by training the initial model, which can specifically include the following steps S310 to S320, which are described in detail below:
  • step S310 a bitmap corresponding to the standard font is provided as an input, and the bitmap corresponding to the candidate display font category is an output initial model;
  • an initial model may be provided first, the input of the initial model is a bitmap corresponding to a standard font, and the output is a bitmap of a candidate display font category.
  • the initial model may use a top-down convolutional neural network model, or a fully connected neural network model, a recurrent neural network model, etc., which are not specifically limited in this exemplary embodiment.
  • step S320 the initial model is trained by using the bitmap of the standard font and the bitmap of the candidate display font as training data to obtain a variety of font conversion models corresponding to the candidate display fonts, and according to the various font conversion models converting the model to build the model library;
  • training data can be obtained first, and bitmaps of standard fonts of multiple characters and bitmaps of candidate display font categories corresponding to the multiple characters can be obtained as training data; the training of the initial model is completed by using the above training.
  • font conversion models corresponding to multiple candidate display fonts can be obtained, and the multiple font conversions can be encapsulated into the above model library.
  • the bitmaps of the standard fonts of the above multiple characters are used as input, the errors are compared between the output and the bitmaps of the candidate display font categories corresponding to the multiple characters, and the loss adopted by the convolutional neural network of the above initial model is determined.
  • function to calculate the loss function value Specifically, the MSE loss function can be used to calculate the loss function value.
  • the Momentum algorithm can be used to optimize the convolutional neural network in the initial model and adjust the parameters of the convolutional neural network. The parameter with the smallest loss function value is used as the final parameter value of the convolutional neural network in the initial model, the training of the initial model is completed, and the font conversion model is obtained.
  • the server may match a font conversion model corresponding to the target font category in the model library as the target font conversion model according to the target font category selected in the above step S110.
  • step S130 in response to a user's writing operation on the display device page, a standard character corresponding to the writing operation is determined according to the writing trajectory of the writing operation, and an initial bitmap corresponding to the standard character is generated.
  • the standard font is the font initially displayed on the page of the display device, which may be commonly used font formats such as Song type, Kai type, etc., or can be customized according to user needs, which is not used in this example implementation. Specific restrictions.
  • the bitmap is made up of individual dots of pixels. These points can be arranged and dyed differently to form a pattern.
  • the initial bitmap is the bitmap corresponding to standard text.
  • the server may respond to the user's writing operation on the display device page, detect the movement trajectory of the above-mentioned writing operation, and determine the standard text corresponding to the writing operation according to the movement trajectory. Specifically, the server may first obtain the Standard text file library, obtain the standard text corresponding to the writing track in the standard text file library according to the above-mentioned writing trajectory, and then use the standard text file library to determine the vector outline shape corresponding to the above standard text; Then, the writing is obtained by rendering the vector outline shape. Operates the standard bitmap of the corresponding standard text.
  • the font size, font line thickness, font color, etc. of the target font file category may be determined first.
  • the font color can include multiple colors, such as black. Red, green, etc., can also be customized according to requirements, which are not specifically limited in this example implementation.
  • the thickness of the font line can also include multiple types, which can be customized according to the needs of the user, which is not specifically limited in this example implementation. Referring to the relevant settings of the font size in the related art, it can also be customized according to requirements, which is not specifically limited in this exemplary implementation.
  • step S140 the initial bitmap of the standard text is converted into a target bitmap corresponding to the target font category by using the target font conversion model and displayed on the display device page.
  • a target font conversion model can be used to convert the initial bitmap of the standard font into a target bitmap corresponding to the target font category and display it in the above displayed on the Devices page.
  • the font of the initial display text displayed on the display device page may be a standard font
  • the server may respond to the user's selection of a font.
  • At least one operation of initially displaying text respectively obtaining a plurality of bitmaps of the initially displayed text, and responding to the user's first font conversion operation on the first initially displayed text, determining the first font conversion operation corresponding to the first font conversion operation in the above-mentioned candidate display font category.
  • a font category and at the same time determine a first font conversion model corresponding to the first font conversion category in the model library; then use the first font conversion model to convert the bitmaps of a plurality of initially displayed fonts into the first bitmap respectively; then Determine the position information of the bitmap of each initial display text, use the position information to arrange the plurality of first bitmaps obtained, and finally, replace the bitmap of the above-mentioned initial display text with the arranged first bitmap to complete the initial display text. conversion.
  • the font category configured inside the device is displayed, that is, the above standard font, which can be commonly used font formats such as Song Ti and Kai Ti, or can be customized according to user needs.
  • the above standard font which can be commonly used font formats such as Song Ti and Kai Ti, or can be customized according to user needs.
  • the embodiment There is no specific limitation in the embodiment.
  • step S401 may be executed, the electronic After the whiteboard is started, the initialization process is performed in the background: the font stylization algorithm is initialized, which uses a font conversion model.
  • the input data of the model is the bitmap of standard fonts during training, and the output data is the bitmap of the desired candidate display font.
  • step S402 can be executed, the electronic whiteboard background initializes the FreeType font engine library (FT_Library); and steps S403 and S404 can be executed, the whiteboard background uses the FreeType font engine library to load the font conversion used by the font stylization algorithm
  • the font file used by the input data in the model namely the standard font file library mentioned above, completes the initialization of the electronic whiteboard.
  • step S405 may be performed, where the user selects the initial display text to be converted on the whiteboard writing interface; after selection, steps S406 and S407 may be performed, and the whiteboard interface pops up a font selection interface for candidate display fonts near the currently selected text
  • the font size selection interface is displayed for the user to select the appropriate font size
  • Step S408 and step S409 can be performed, the electronic whiteboard background loads the corresponding first font conversion model according to the first font category selected by the user; and the font size of the rendering is set, specifically, the electronic whiteboard background
  • the font size that needs to be displayed sets the size of the first font category in the FreeType font engine library; then steps S410 and S411 can be executed to start the rendering process, and then step S412 can be executed, and the electronic whiteboard background presses the button for the text to be rendered
  • the whiteboard background queries the character of the input initial display text through the FreeType font engine library, and the corresponding font index in the set standard font file library; Go to step S413 to determine the font in the above step S401 Whether the format is the specified size, if the font format loaded when the FreeType font engine library is initialized is not a fixed-size font, then perform steps S414 and S415, and obtain the vector outline of the corresponding font of the character through the FreeType font engine library according to the current font index. shape; then step S416 is executed, the electronic whiteboard background renders the vector outline shape through the FreeType font engine library to obtain a bitmap of the initial displayed text.
  • a vector outline shape is a vector diagram of a font outline, also known as an object-oriented image or a drawing image, mathematically defined as a series of points connected by lines.
  • Graphical elements in a vector file are called objects.
  • Each object is a self-contained entity with properties such as color, shape, outline, size, and screen position.
  • step S416 is directly executed, and the bitmap of the initially displayed text is obtained through the FreeType font engine library according to the current font index.
  • steps S417 and S18 may be performed in the electronic whiteboard background to input the bitmap of the initial font into the first font conversion model for font conversion to obtain the first bitmap and output.
  • step S419 is executed to determine whether the last character of the initially displayed text is rendered. If the rendering is completed, steps S420 and S421 are executed.
  • the electronic whiteboard background converts all the characters in the initial displayed text. , splicing the obtained first image into a single bitmap according to the arrangement before the initial display text; the whiteboard interface hides and displays the selected initial display text and displays the spliced first image in the display position of the initial display text, If the rendering is completed, return to step S411 until the conversion of all the initially displayed characters is completed.
  • the second font conversion operation of the target font can be obtained, and the initial bitmap corresponding to the target title can be obtained.
  • the bitmap is obtained from the initial bitmap through the target font conversion model, and the initial bitmap can be stored after conversion, so the initial bitmap corresponding to the target bitmap can be directly obtained.
  • a second font category corresponding to the second character conversion operation can be obtained, a second font conversion model corresponding to the second font category can be determined in the above model library, and the initial bitmap can be converted into a second font by using the second font conversion model. and replace the above target bitmap with a second bitmap to complete the text conversion of the target font.
  • the information display apparatus 500 includes: a selection module 510 , a determination module 520 , an input module 530 , and a conversion module 540 .
  • the selection module 510 can be used to determine the target font category to be written in response to the user's operation on the display device page; the determination module 520 can be used to determine the target font corresponding to the target font category in the model library conversion model, wherein the model library includes font conversion models corresponding to various candidate display font categories; the input module 530 can be used to respond to the user's writing operation on the display device page, and determine according to the writing trajectory of the writing operation Standard text corresponding to the writing operation, and generate an initial bitmap corresponding to the standard text; the conversion module 540 can be used to use the target font conversion model to convert the initial bitmap of the standard text into a target font class corresponding to The target bitmap is displayed on the display device page.
  • each functional module of the information display device of the exemplary embodiment of the present disclosure corresponds to the steps of the above-mentioned exemplary embodiment of the information display method, for details not disclosed in the embodiment of the device of the present disclosure, please refer to the above-mentioned information display method of the present disclosure. example.
  • modules or units of the apparatus for action performance are mentioned in the above detailed description, this division is not mandatory. Indeed, according to embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided into multiple modules or units to be embodied.
  • an electronic device capable of realizing the above information display is also provided.
  • aspects of the present disclosure may be implemented as a system, method or program product. Therefore, various aspects of the present disclosure can be embodied in the following forms: a complete hardware embodiment, a complete software embodiment (including firmware, microcode, etc.), or a combination of hardware and software aspects, which may be collectively referred to herein as an embodiment "circuit", “module” or "system”.
  • FIG. 6 An electronic device 600 according to such an embodiment of the present disclosure is described below with reference to FIG. 6 .
  • the electronic device 600 shown in FIG. 6 is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.
  • electronic device 600 takes the form of a general-purpose computing device.
  • Components of the electronic device 600 may include, but are not limited to: the above-mentioned at least one processing unit 610 , the above-mentioned at least one storage unit 620 , a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610 ), and a display unit 640 .
  • the storage unit stores program codes, and the program codes can be executed by the processing unit 610, so that the processing unit 610 executes various exemplary methods according to the present disclosure described in the above-mentioned “Exemplary Methods” section of this specification. Example steps.
  • the processing unit 610 may perform step S110 as shown in FIG.
  • the electronic device can implement the various steps shown in FIG. 1 to FIG. 4 .
  • the storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 621 and/or a cache storage unit 622 , and may further include a read only storage unit (ROM) 623 .
  • RAM random access storage unit
  • ROM read only storage unit
  • the storage unit 620 may also include a program/utility 624 having a set (at least one) of program modules 625 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, An implementation of a network environment may be included in each or some combination of these examples.
  • the bus 630 may be representative of one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local area using any of a variety of bus structures bus.
  • the electronic device 600 may also communicate with one or more external devices 670 (eg, keyboards, pointing devices, Bluetooth devices, etc.), with one or more devices that enable a user to interact with the electronic device 600, and/or with Any device (eg, router, modem, etc.) that enables the electronic device 600 to communicate with one or more other computing devices. Such communication may occur through input/output (I/O) interface 650 . Also, the electronic device 600 may communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network such as the Internet) through a network adapter 660 . As shown, network adapter 660 communicates with other modules of electronic device 600 via bus 630 . It should be appreciated that, although not shown, other hardware and/or software modules may be used in conjunction with electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives and data backup storage systems.
  • the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure may be embodied in the form of software products, and the software products may be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.) or on a network , including several instructions to cause a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to an embodiment of the present disclosure.
  • a computing device which may be a personal computer, a server, a terminal device, or a network device, etc.
  • a computer-readable storage medium on which a program product capable of implementing the above-described method of the present specification is stored.
  • various aspects of the present disclosure may also be implemented in the form of a program product including program code for causing the program product to run on a terminal device when the program product is run on a terminal device.
  • the terminal device performs the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "Example Method" section of this specification.
  • a program product 700 for implementing the above-described method is described according to an embodiment of the present disclosure, which may adopt a portable compact disc read only memory (CD-ROM) and include program code, and may be stored in a terminal device, such as a personal run on the computer.
  • CD-ROM compact disc read only memory
  • the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • the program product may employ any combination of one or more readable media.
  • the readable medium may be a readable signal medium or a readable storage medium.
  • the readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
  • a computer readable signal medium may include a propagated data signal in baseband or as part of a carrier wave with readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a readable signal medium can also be any readable medium, other than a readable storage medium, that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
  • Program code embodied on a readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
  • Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural Programming Language - such as the "C" language or similar programming language.
  • the program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server execute on.
  • the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (eg, using an Internet service provider business via an Internet connection).
  • LAN local area network
  • WAN wide area network
  • an external computing device eg, using an Internet service provider business via an Internet connection

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Biomedical Technology (AREA)
  • Computing Systems (AREA)
  • Molecular Biology (AREA)
  • Evolutionary Computation (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Biophysics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

一种信息展示方法及装置、计算机可读存储介质及电子设备,方法包括:响应用户对显示设备页面上的操作确定待书写的目标字体类别(S110);在包括多种字体类别对应的字体转换模型的模型库中确定与目标字体类别对应的目标字体转换模型(S120),响应用户在显示设备页面上的书写操作,根据书写操作的书写轨迹确定与书写操作对应的标准文字,并生成标准文字对应的初始位图(S130);利用目标字体转换模型将标准文字的初始位图转换成目标字体类别对应的目标位图并显示在显示设备页面上(S140)。提升现实效果,减少服务器存储压力,避免了使用现有的完整字体库造成的版权问题。

Description

信息展示方法及装置、存储介质及电子设备
交叉引用
本公开要求于2020年9月21日提交的申请号为202010993918.6名称为“信息展示方法及装置、存储介质及电子设备”的中国专利申请的优先权,该中国专利申请的全部内容通过引用全部并入本文。
技术领域
本公开涉及信息展示技术领域,具体而言,涉及一种信息展示方法及装置、计算机可读存储介质及电子设备。
背景技术
随着触控显示领域的快速发展,采用手写的方式在触控显示设备上输入文字的应用也越来越广泛。
但是,现有技术中的触控显示设备中大多针对手写笔迹进行显示渲染与优化,而对印刷体的输入显示功能则未集成或多调用系统自身的字体显示,造成现有触控显示设备中印刷体显示风格单一,显示效果较差。
因此,有必要涉及一种新的信息展示方法。
需要说明的是,在上述背景技术部分公开的信息仅用于加强对本公开的背景的理解,因此可以包括不构成对本领域普通技术人员已知的现有技术的信息。
发明内容
根据本公开的第一方面,提供了一种信息展示方法,包括:
响应用户对显示设备页面上的操作确定待书写的目标字体类别;
在模型库中确定与所述目标字体类别对应的目标字体转换模型,其中,所述模型库包括多种字体类别对应的字体转换模型;
响应用户在所述显示设备页面上的书写操作,根据所述书写操作的书写轨迹确定与所述书写操作对应的标准文字,并生成所述标准文字对应的初始位图;
利用所述目标字体转换模型将所述标准文字的初始位图转换成目标字体类别对应的目标位图并显示在所述显示设备页面上。
在本公开的一种示例性实施例中,响应用户在所述显示设备页面上的书写操作之前,所述方法还包括:
确定所述目标字体类别的字体大小、字体线条粗细、字体颜色以及字体倾斜角度。
在本公开的一种示例性实施例中,所述响应用户在所述显示设备页面上的书写操作,根据所述书写操作的书写轨迹确定与所述书写操作对应的标准文字,并生成所述标准文字对应的初始位图,包括:
响应用户的文字书写操作,根据所述书写轨迹在所述标准字体文件库匹配所述文字书写操作对应的标准文字;
生成所述标准文字的初始位图。
在本公开的一种示例性实施例中,生成所述标准文字的初始位图,包括:
在所述标准字体文件库获取所述标准文字的矢量轮廓形状;
根据所述矢量轮廓形状进行渲染得到所述初始位图。
在本公开的一种示例性实施例中,所述方法还包括:
响应用户的启动批注操作,确定待批注区域,并在所述待批注区域显示所述候选显示字体类别的选择界面。
在本公开的一种示例性实施例中,所述响应用户对显示设备页面上显示的至少一个候选显示字体类别中的一个类别的选择操作确定待书写的目标字体类别,包括:
响应用户对所述字体选择界面的第一操作,展示所述候选显示字体类别;
响应用户对候选显示字体类别展示界面中的一个类别的触控操作,确定所述目标字体类别。
在本公开的一种示例性实施例中,所述显示设备页面具有一初始显示字体的字体类别,所述初始显示文字的字体类别为标准字体,所述方法还包括:
响应用户对初始显示文字的第一字体转换操作,获取所述初始显示文字的位图,并确定所述第一字体转换操作在所述候选显示字体类别中对应的第一字体类别;
在所模型库中确定与所述第一字体类别对应的第一字体转换模型;
利用所述第一字体转换模型将所述初始显示文字的位图转换为第一字体类别对应的第一位图。
在本公开的一种示例性实施例中,所述响应用户对初始显示文字的第一字体转换操作,获取所述显示文字的位图,包括:
选取至少一个待转换初始显示文字;
响应用户对至少一个所述待转换初始显示文字的字体转换操作,分别获取所述待转换初始显示文字的位图。
在本公开的一种示例性实施例中,利用所述第一字体转换模型将所述初始显示文字的位图转换为第一字体类别对应的第一位图,包括:
确定所述至少一个待转换初始显示文字的位图的位置信息;
利用所述第一字体转换模型将所述初始显示文字的位图转换成第一位图;
根据所述位置信息对至少一个所述第一位图进行排列,并采用排列后的第一位图替换所述待转换初始显示文字的位图。
在本公开的一种示例性实施例中,利用所述目标字体转换模型将所述标准文字的初始位图转换成目标字体类别对应的目标位图并显示在所述显示设备页面上之后,所述方法还包括:
响应用户对目标字体的第二字体转换操作,获取所述目标位图对应的初始位图;
确定所述第二字体转换操作在所述候选显示字体类别中对应的第二字体类别,并在模型库中确定与所述第二字体类别对应的第二字体转换模型;
利用所述第二字体转换模型将所述初始位图转换为第二字体类别对应的第二位图并替换所述目标位图。
在本公开的一种示例性实施例中,所述字体转换模型的输入为标准字体对应的位图,输出为候选显示字体类别对应的位图。
根据本公开的第一方面,提供了一种信息展示装置,包括:
选择模块,响应用户对显示设备页面上的操作确定待书写的目标字体类别;
确定模块,在模型库中确定与所述目标字体类别对应的目标字体转换模型,其中,所述模型库包括多种候选显示字体类别对应的字体转换模型;
输入模块,响应用户在所述显示设备页面上的书写操作,根据所述书写操作的书写轨迹确定与所述书写操作对应的标准文字,并生成所述标准文字对应的初始位图;
转换模块,利用所述目标字体转换模型将所述标准文字的初始位图转换成目标字体类别对应的目标位图并显示在所述显示设备页面上。
根据本公开的第一方面,提供了一种计算机可读存储介质,所述程序被处理器执行时实现如上述任意一项所述的信息展示方法。
根据本公开的第一方面,提供了一种电子设备,包括:
处理器;以及
存储器,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如上述任意一项所述的信息展示方法。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。在附图中:
图1示意性示出本公开示例性实施例中信息展示方法的流程图;
图2示意性示出本公开示例性实施例中批注场景下显示设备页面的示意图;
图3示意性示出本公开示例性实施例中模型库获取的流程图;
图4示意性示出本公开示例性实施例中以电子白板为例对初始显示文字进行转换的流程图;
图5示意性示出本公开示例性实施例中一种信息展示装置的组成示意图;
图6示意性示出了适于用来实现本公开示例性实施例的电子设备的计算机系统的结构示意图;
图7示意性示出了根据本公开的一些实施例的计算机可读存储介质的示意图。
具体实施方式
现在将参照附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。
此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。
在本示例性实施例中,首先提供了一种信息展示方法,可以应用于具有智能交互功能的显示设备,例如,应用在电子白板系统,可以将用户在电子白板上输入的文字通过上述信息展示方法转换为用户设置并选取的个性化字体显示。参照图1中所示,上述的 信息展示方法可以包括以下步骤:
S110,响应用户对显示设备页面上的操作确定待书写的目标字体类别;
S120,在模型库中确定与所述目标字体类别对应的目标字体转换模型,其中,所述模型库包括多种字体类别对应的字体转换模型;
S130,响应用户在所述显示设备页面上的书写操作,根据所述书写操作的书写轨迹确定与所述书写操作对应的标准文字,并生成所述标准文字对应的初始位图;
S140,利用所述目标字体转换模型将所述标准文字的初始位图转换成目标字体类别对应的目标位图并显示在所述显示设备页面上。
根据本示例性实施例中所提供的信息展示方法中,相较于现有技术,在触控显示设备上输入文字时,首先可以由用户确定目标字体类别,然后根据目标字体类别在模型库中确定目标字体转换模型,利用目标字体转换模型将用户书写操作对应的标准文字的初始位图转换成目标字体类别对应的目标位图并展示在显示设备页面上,一方面可以在触控显示设备上显示多样化的字体,提升显示效果;另一方面,通过预先训练的字体转换模型生成目标字体类别的目标位图,无需设置完整的目标字体类别库,减少了服务器存储压力;再一方面,通过少量的数据即可完成对字体转换模型的训练,可以设计多种用户的个性化字体,避免了使用现有的完整字体库造成的版权问题。
下面,将结合附图及实施例对本示例性实施例中的信息展示方法的各个步骤进行更详细的说明。
在步骤S110中,响应用户对显示设备页面上的操作确定待书写的目标字体类别。
在本公开的一种示例实施例中,当用户需要在显示设备页面上输入文字时,服务器可以响应用户对显示设备页面上的操作确定待书写的目标字体类别,具体可以为响应在显示设备页面上的至少一个候选显示字体类别中的选择操作,将与选择操作对应的候选显示字体类别确定为目标字体类别,其中候选显示字体类别包括至少多种,可以是现有的字体,也可以是用户的个性化字体,在本示例实施方式中不做具体限定。
在本示例实施方式中,参照图2所示,上述信息展示方法可以应用在批注场景式,服务器可以首先响应用户的启动批注操作,在显示设备页面210上确定一个待批注区域211,并在待批注区域显示候选显示字体类别的选择界面212。然后服务器可以响应用户对上述候选字体选择界面212的第一操作,展示多种候选显示字体类别,最后,服务器可以响应用户对候选显示字体类别展示界面中的一个类别的触控操作,确定上述目标字体类别。
在本公开的另一种示例实施方式中,上述字体选择界面212可以显示在上述待批注区域211之外,采用箭头的方式指示字体选择界面212是用于选取待批注区域211内批注文字的字体类别的。
需要说明的是,字体选择的方式可以包括多种,例如,直接在上述显示设备页面的预设区域显示多种候选显示字体类别,用户通过点击即可选定目标字体类别,或者用户 通过语音输入的方式确定目标字体类别,再例如,在显示设备中设置有手势与候选字体类别之间的对应关系,用户通过手势的不同选取不同的目标字体类别,在本示例实施方式中不对目标字体类别的选取方式进行具体限定。
在批注场景下采用本方法时,可以避免初始显示文字与批注文字混淆,例如,用户在完成批注后继续完成剩下的工作,在回放展示时,用户可以清楚的区分批注文字与初始显示文字。
其次,上述的字体选择界面可以响应不同用户的选择操作,即多个用户可以采用不同的字体同时进行批注,即待批注区域可以包括多个,此时,不同的用户采用不同的字体进行批注,能够很好的区分各个用户的批注文字,同时,能满足不同用户的需求,提升用户体验。
在步骤S120中,在模型库中确定与所述目标字体类别对应的目标字体转换模型,其中,所述模型库包括多种字体类别对应的字体转换模型。
参照图3所示,模型库可以由初始模型训练得到,具体可以包括如下步骤S310至S320,以下详细进行阐述:
在步骤S310中,提供一以标准字体对应的位图为输入,候选显示字体类别对应的位图为输出的初始模型;
在本示例实施方式中,首先可以提供一个初始模型,初始模型的输入为标准字体对应的位图,输出为候选显示字体类别的位图。
在本示例实施方式中,初始模型可以采用自上而下的卷积神经网络模型,也可以采用全连接神经网络模型、循环神经网络模型等,在本示例实施方式中不做具体限定。
在步骤S320中,并以所述标准字体的位图和候选显示字体的位图作为训练数据训练所述初始模型得到多种所述候选显示字体对应的字体转换模型,并根据多种所述字体转换模型建立所述模型库;
在本示例实施方式中,可以首先获取训练数据,获取多个文字的标准字体的位图以及上述多个文字对应的候选显示字体类别的位图作为训练数据;利用上述训练完成对初始模型的训练,可以得到多个候选显示字体对应的字体转换模型,将多个字体转换进行封装成上述模型库。
具体而言,将上述多个文字的标准字体的位图作为输入,将输出与多个文字对应的候选显示字体类别的位图进行误差对比,并确定上述初始模型的卷积神经网络采用的损失函数,计算损失函数值,具体可以采用MSE损失函数计算损失函数值,在完成对损失函数值的计算后,可以采用Momentum算法优化初始模型中的卷积神经网络,调整卷积神经网络的参数,将损失函数值最小的参数作为该初始模型中卷积神经网络的最终参数值,完成对初始模型的训练,得到字体转换模型。
在本示例实施方式中,服务器可以根据上述步骤S110中选取的目标字体类别在模型库中匹配与目标字体类别对应的字体转换模型作为目标字体转换模型。
在步骤S130中,响应用户在所述显示设备页面上的书写操作,根据所述书写操作的书写轨迹确定与所述书写操作对应的标准文字,并生成所述标准文字对应的初始位图。
在本公开的一种示例实施方式中,标准字体为显示设备页面初始显示的字体,可以是例如宋体、楷体等常用字体格式,也可以根据用户需求进行自定义,在本示例实施方式中不做具体限定。
在本示例实施方式中,位图为是由像素的单个点组成的。这些点可以进行不同的排列和染色以构成图样,初始位图为标准文字对应的位图。
在本示例实施方式中,服务器可以响应用户在显示设备页面上的书写操作,检测上述书写操作的运动轨迹,并根据运动轨迹确定与书写操作对应的标准文字,具体而言,服务器可以首先获取以标准文字文件库,根据上述书写轨迹在标准文字文件库中获取与书写轨迹对应的标准文字,然后利用标准文字文件库确定上述标准文字对应的矢量轮廓形状;然后通过对矢量轮廓形状的渲染得到书写操作对应的标准文字的标准位图。
在本示例实施方式中,在用户进行书写操作时,可以首先确定目标字体文件类别的字体大小,字体线条粗细字体颜色等。其中字体颜色可以包括多种,例如黑色。红色、绿色等,也可以根据需求进行自定义,在本示例实施方式中不做具体限定。
在本示例实施方式中,字体线条的粗细也可以以包括多种,可以根据用户的需求进行自定义,在本示例实施方式中不做具体限定,其次,字体大小也可以是设置多种,可以参照相关技术中字体大小的相关设置,也可以根据需求进行自定义,在本示例实施方式中不做具体限定。
在步骤S140中,利用所述目标字体转换模型将所述标准文字的初始位图转换成目标字体类别对应的目标位图并显示在所述显示设备页面上。
在本公开的一种示例实施方式中,在获取到上述标准字体的初始位图后,可以采用目标字体转换模型将标准字体的初始位图转换为目标字体类别对应的目标位图并显示在上述显示设备页面上。
在本公开的一种示例实施方式中,在上述显示设备页面上显示的初始显示文字的字体可以是标准字体,在用户需要对显示设备页面上已经存在的字体进行转换时,服务器可以响应用户选取至少一个初始显示文字的操作,分别获取多个初始显示文字的位图,并响应用户对第初始显示文字的第一字体转换操作,确定第一字体转换操作在上述候选显示字体类别中对应的第一字体类别,同时在模型库中确定与第一字体转换类别相对应的第一字体转换模型;然后利用第一字体转换模型分别将多个初始显示字体的位图转换为第一位图;之后确定各个初始显示文字的位图的位置信息,利用位置信息对得到的多个第一位图进行排列,最后,采用排列后的第一位图替换上述初始显示文字的位图完成对初始显示文字的转换。
在本示例实施方式中,初始显示字体的字体类别时显示设备内部配置的字体类别,即上述标准字体,可以是例如宋体、楷体等常用字体格式,也可以根据用户需求进行自 定义,在本示例实施方式中不做具体限定。
下面通过一具体的实施例对上述信息展示方法中对初始显示字体进行字体转换的流程进行进一步的说明。
具体而言,在本示例实施方式中,参照图4所示,以显示设备为电子白板为例做具体说明,响应用户对初始显示字体的第一字体转换操作,首先,可以执行步骤S401,电子白板启动后在后台进行初始化流程:初始化字体风格化算法,该算法使用字体转换模型,该模型训练时输入数据为标准字体的位图,输出数据为所需的候选显示字体的位图,例如,某书法字体图像;然后,可以执行步骤S402,电子白板后台初始化FreeType字体引擎库(FT_Library);以及可以执行步骤S403和步骤S404,白板后台使用FreeType字体引擎库载入字体风格化算法使用的字体转换模型中输入数据所使用的字体文件,即上述标准字体文件库,完成电子白板的初始化。
其次,可以执行步骤S405,用户在白板书写界面选择要进行转换的初始显示文字;选定后可以执行步骤S406和步骤S407,白板界面在当前选中的文字附近弹窗显示候选显示字体的字体选择界面供用户选择要将文字转换为何种字体(如书法体、楷体、手写体等),同时显示字体大小选择界面,供用户选择合适的字体大小;待完成对第一字体类型以及字体大小的选择操作之后;可以执行步骤S408和步骤S409,电子白板后台根据用户所选择的第一字体类别加载相对应的第一字体转换模型;并设置渲染的字体尺寸,具体而言,电子白板后台根据用户所选择的需要显示的字体大小对FreeType字体引擎库设置第一字体类别的尺寸;之后可以执行步骤S410和步骤S411,开始渲染过程,然后可以执行步骤S412,电子白板后台对用户所选择所需渲染的文字按单个字符分别渲染:白板后台通过FreeType字体引擎库对输入的初始显示文字的字符查询该字符,在设置的标准字体文件库中所对应的字型索引;执行步骤S413,判断上述步骤S401中的字体格式是否为规定尺寸,若FreeType字体引擎库初始化时载入的字体格式不为固定尺寸字体,则执行步骤S414和S415,根据当前的字型索引通过FreeType字体引擎库获取字符对应字型的矢量轮廓形状;然后执行步骤S416,电子白板后台通过FreeType字体引擎库对该矢量轮廓形状渲染得到初始显示文字的位图。
在本示例实施方式中,矢量轮廓形状是字体轮廓的矢量图,矢量图也称为面向对象的图像或绘图图像,在数学上定义为一系列由线连接的点。矢量文件中的图形元素称为对象。每个对象都是一个自成一体的实体,它具有颜色、形状、轮廓、大小和屏幕位置等属性。
若如FreeType字体引擎库初始化时载入的字体格式为固定尺寸字体,则直接执行步骤S416,根据当前的字型索引通过FreeType字体引擎库获取初始显示文字的位图。
之后,可以执行步骤S417和S18电子白板后台将初始字形的位图输入第一字体转换模型进行字体转换得到获取第一位图并输出。在输出第一位图后,执行步骤S419,判断是否渲染到初始显示文字的最后一个字符,若渲染完成,则执行步骤S420和S421, 电子白板后台将该段初始显示文字中所有文字进行转换后,将得到的第一位图按初始显示文字之前的排列方式拼接为单个位图;白板界面将选中的初始显示文字隐藏显示并将拼接后的第一位图显示在初始显示文字的显示位置,若为渲染完成,则返回至步骤S411,直至完成对所有初始显示文字的转换。
在本公开的一种示例实施方式中,当用户需要对得到的目标文字类别的字体进行转换时,可以获取上述目标字体的第二字体转换操作,获取目标为题对应的初始位图,由于目标位图是由初始位图经过目标字体转换模型得到的,可以在转换后存储初始位图,因此可以直接获取到目标位图对应的初始位图。
然后可以获取第二文字转换操作对应的第二字体类别,并在上述模型库中确定与第二字体类别对应的第二字体转换模型,利用第二字体转换模型将初始位图转换为第二位图并采用第二位图替换上述目标位图,完成对目标字体的文字转换。
以下介绍本公开的装置实施例,可以用于执行本公开上述的信息展示方法。此外,在本公开的示例性实施方式中,还提供了一种信息展示装置。参照图5所示,所述信息展示装置500包括:选择模块510,确定模块520,输入模块530,和转换模块540。
其中,所述选择模块510可以用于响应用户对显示设备页面上的操作确定待书写的目标字体类别;所述确定模块520可以用于在模型库中确定与所述目标字体类别对应的目标字体转换模型,其中,所述模型库包括多种候选显示字体类别对应的字体转换模型;输入模块530可以用于响应用户在所述显示设备页面上的书写操作,根据所述书写操作的书写轨迹确定与所述书写操作对应的标准文字,并生成所述标准文字对应的初始位图;转换模块540可以用于利用所述目标字体转换模型将所述标准文字的初始位图转换成目标字体类别对应的目标位图并显示在所述显示设备页面上。
由于本公开的示例实施例的信息展示装置的各个功能模块与上述信息展示方法的示例实施例的步骤对应,因此对于本公开装置实施例中未披露的细节,请参照本公开上述的信息展示方法的实施例。
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。
此外,在本公开的示例性实施例中,还提供了一种能够实现上述信息展示的电子设备。
所属技术领域的技术人员能够理解,本公开的各个方面可以实现为系统、方法或程序产品。因此,本公开的各个方面可以具体实现为以下形式,即:完全的硬件实施例、完全的软件实施例(包括固件、微代码等),或硬件和软件方面结合的实施例,这里可以统称为“电路”、“模块”或“系统”。
下面参照图6来描述根据本公开的这种实施例的电子设备600。图6显示的电子设 备600仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图6所示,电子设备600以通用计算设备的形式表现。电子设备600的组件可以包括但不限于:上述至少一个处理单元610、上述至少一个存储单元620、连接不同系统组件(包括存储单元620和处理单元610)的总线630、显示单元640。
其中,所述存储单元存储有程序代码,所述程序代码可以被所述处理单元610执行,使得所述处理单元610执行本说明书上述“示例性方法”部分中描述的根据本公开各种示例性实施例的步骤。例如,所述处理单元610可以执行如图1中所示的步骤S110:响应用户对显示设备页面上的操作确定待书写的目标字体类别;S120:在模型库中确定与所述目标字体类别对应的目标字体转换模型,其中,所述模型库包括多种字体类别对应的字体转换模型;S130:响应用户在所述显示设备页面上的书写操作,根据所述书写操作的书写轨迹确定与所述书写操作对应的标准文字,并生成所述标准文字对应的初始位图;S140:利用所述目标字体转换模型将所述标准文字的初始位图转换成目标字体类别对应的目标位图并显示在所述显示设备页面上。
又如,所述的电子设备可以实现如图1至图4所示的各个步骤。
存储单元620可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)621和/或高速缓存存储单元622,还可以进一步包括只读存储单元(ROM)623。
存储单元620还可以包括具有一组(至少一个)程序模块625的程序/实用工具624,这样的程序模块625包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。
总线630可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。
电子设备600也可以与一个或多个外部设备670(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备600交互的设备通信,和/或与使得该电子设备600能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口650进行。并且,电子设备600还可以通过网络适配器660与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器660通过总线630与电子设备600的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备600使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。
通过以上的实施例的描述,本领域的技术人员易于理解,这里描述的示例实施例可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施例的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性 存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、终端装置、或者网络设备等)执行根据本公开实施例的方法。
在本公开的示例性实施例中,还提供了一种计算机可读存储介质,其上存储有能够实现本说明书上述方法的程序产品。在一些可能的实施例中,本公开的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在终端设备上运行时,所述程序代码用于使所述终端设备执行本说明书上述“示例性方法”部分中描述的根据本公开各种示例性实施例的步骤。
参照图7,描述了根据本公开的实施例的用于实现上述方法的程序产品700,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在终端设备,例如个人电脑上运行。然而,本公开的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。
所述程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。
计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。
可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。
可以以一种或多种程序设计语言的任意组合来编写用于执行本公开操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。
此外,上述附图仅是根据本公开示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其他实施例。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限。。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限。

Claims (15)

  1. 一种信息展示方法,其中,包括:
    响应用户对显示设备页面上的操作确定待书写的目标字体类别;
    在模型库中确定与所述目标字体类别对应的目标字体转换模型,其中,所述模型库包括多种字体类别对应的字体转换模型;
    响应用户在所述显示设备页面上的书写操作,根据所述书写操作的书写轨迹确定与所述书写操作对应的标准文字,并生成所述标准文字对应的初始位图;
    利用所述目标字体转换模型将所述标准文字的初始位图转换成目标字体类别对应的目标位图并显示在所述显示设备页面上。
  2. 根据权利要求1所述的方法,其中,响应用户对显示设备页面上的操作确定待书写的目标字体类别,包括:
    响应用户对显示设备页面上显示的至少一个候选显示字体类别中的一个类别的选择操作确定待书写的目标字体类别。
  3. 根据权利要求1所述的方法,其中,响应用户在所述显示设备页面上的书写操作之前,所述方法还包括:
    确定所述目标字体类别的字体大小、字体线条粗细、字体颜色以及字体倾斜角度。
  4. 根据权利要求1所述的方法,其中,所述响应用户在所述显示设备页面上的书写操作,根据所述书写操作的书写轨迹确定与所述书写操作对应的标准文字,并生成所述标准文字对应的初始位图,包括:
    响应用户的文字书写操作,根据所述书写轨迹在所述标准字体文件库匹配所述文字书写操作对应的标准文字;
    生成所述标准文字的初始位图。
  5. 根据权利要求4所述的方法,其中,生成所述标准文字的初始位图,包括:
    在所述标准字体文件库获取所述标准文字的矢量轮廓形状;
    根据所述矢量轮廓形状进行渲染得到所述初始位图。
  6. 根据权利要求2所述的方法,其中,所述方法还包括:
    响应用户的启动批注操作,确定待批注区域,并在所述待批注区域显示所述候选显示字体类别的选择界面。
  7. 根据权利要求6所述的方法,其中,所述响应用户对显示设备页面上显示的至少一个候选显示字体类别中的一个类别的选择操作确定待书写的目标字体类别,包括:
    响应用户对所述字体选择界面的第一操作,展示所述候选显示字体类别;
    响应用户对候选显示字体类别展示界面中的一个类别的触控操作,确定所述目标字体类别。
  8. 根据权利要求1所述的方法,其中,所述显示设备页面具有一初始显示字体的字体类别,所述初始显示文字的字体类别为标准字体,所述方法还包括:
    响应用户对初始显示文字的第一字体转换操作,获取所述初始显示文字的位图,并确定所述第一字体转换操作在所述候选显示字体类别中对应的第一字体类别;
    在所模型库中确定与所述第一字体类别对应的第一字体转换模型;
    利用所述第一字体转换模型将所述初始显示文字的位图转换为第一字体类别对应的第一位图。
  9. 根据权利要求8所述的方法,其中,所述响应用户对初始显示文字的第一字体转换操作,获取所述显示文字的位图,包括:
    选取至少一个待转换初始显示文字;
    响应用户对至少一个所述待转换初始显示文字的字体转换操作,分别获取所述待转换初始显示文字的位图。
  10. 根据权利要求9所述的方法,其中,利用所述第一字体转换模型将所述初始显示文字的位图转换为第一字体类别对应的第一位图,包括:
    确定所述至少一个待转换初始显示文字的位图的位置信息;
    利用所述第一字体转换模型将所述初始显示文字的位图转换成第一位图;
    根据所述位置信息对至少一个所述第一位图进行排列,并采用排列后的第一位图替换所述待转换初始显示文字的位图。
  11. 根据权利要求1所述的方法,其中,利用所述目标字体转换模型将所述标准文字的初始位图转换成目标字体类别对应的目标位图并显示在所述显示设备页面上之后,所述方法还包括:
    响应用户对目标字体的第二字体转换操作,获取所述目标位图对应的初始位图;
    确定所述第二字体转换操作在所述候选显示字体类别中对应的第二字体类别,并在模型库中确定与所述第二字体类别对应的第二字体转换模型;
    利用所述第二字体转换模型将所述初始位图转换为第二字体类别对应的第二位图并替换所述目标位图。
  12. 根据权利要求1所述的方法,其中,所述字体转换模型的输入为标准字体对应的 位图,输出为候选显示字体类别对应的位图。
  13. 一种信息展示装置,其中,包括:
    选择模块,响应用户对显示设备页面上的操作确定待书写的目标字体类别;
    确定模块,在模型库中确定与所述目标字体类别对应的目标字体转换模型,其中,所述模型库包括多种字体类别对应的字体转换模型;
    输入模块,响应用户在所述显示设备页面上的书写操作,根据所述书写操作的书写轨迹确定与所述书写操作对应的标准文字,并生成所述标准文字对应的初始位图;
    转换模块,利用所述目标字体转换模型将所述标准文字的初始位图转换成目标字体类别对应的目标位图并显示在所述显示设备页面上。
  14. 一种计算机可读存储介质,其上存储有计算机程序,其中,所述程序被处理器执行时实现如权利要求1至12中任一项所述的信息展示方法。
  15. 一种电子设备,其中,包括:
    处理器;以及
    存储器,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如权利要求1至12中任一项所述的信息展示方法。
PCT/CN2021/112348 2020-09-21 2021-08-12 信息展示方法及装置、存储介质及电子设备 WO2022057535A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/914,409 US11928419B2 (en) 2020-09-21 2021-08-12 Information display method and apparatus, and storage medium and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010993918.6 2020-09-21
CN202010993918.6A CN112115678B (zh) 2020-09-21 2020-09-21 信息展示方法及装置、存储介质及电子设备

Publications (1)

Publication Number Publication Date
WO2022057535A1 true WO2022057535A1 (zh) 2022-03-24

Family

ID=73801415

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/112348 WO2022057535A1 (zh) 2020-09-21 2021-08-12 信息展示方法及装置、存储介质及电子设备

Country Status (3)

Country Link
US (1) US11928419B2 (zh)
CN (1) CN112115678B (zh)
WO (1) WO2022057535A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115796119A (zh) * 2023-02-02 2023-03-14 合肥高维数据技术有限公司 基于渲染效果的字体校准方法

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112115678B (zh) * 2020-09-21 2024-04-12 京东方科技集团股份有限公司 信息展示方法及装置、存储介质及电子设备
CN113392250B (zh) * 2021-06-30 2024-01-12 合肥高维数据技术有限公司 一种基于深度学习的矢量图检索方法及系统
CN113625985B (zh) * 2021-08-25 2024-01-23 京东方科技集团股份有限公司 智能黑板的显示方法、装置以及智能黑板
CN113515919B (zh) * 2021-09-14 2022-01-07 北京江融信科技有限公司 一种生成中文TrueType字体的方法及系统
CN114330236A (zh) * 2021-12-29 2022-04-12 北京字跳网络技术有限公司 文字生成方法、装置、电子设备及存储介质
CN114582301B (zh) * 2022-03-08 2024-07-23 康键信息技术(深圳)有限公司 一种信息显示方法、装置、电子设备及存储介质
CN114791843A (zh) * 2022-06-22 2022-07-26 武汉海微科技有限公司 文字显示方法、装置、设备及存储介质
US20240143160A1 (en) * 2022-10-31 2024-05-02 Optoma Corporation Electronic whiteboard system and operation method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789484A (zh) * 2012-06-28 2012-11-21 奇智软件(北京)有限公司 一种网页信息处理方法和装置
US20150073779A1 (en) * 2013-09-06 2015-03-12 Samsung Electronics Co., Ltd. Method of converting user handwriting into text information and electronic device for performing the same
CN106384094A (zh) * 2016-09-18 2017-02-08 北京大学 一种基于书写风格建模的中文字库自动生成方法
CN107391015A (zh) * 2017-07-19 2017-11-24 广州视源电子科技股份有限公司 一种智能平板的控制方法、装置、设备及存储介质
CN111242840A (zh) * 2020-01-15 2020-06-05 上海眼控科技股份有限公司 手写体字符生成方法、装置、计算机设备和存储介质
CN112115678A (zh) * 2020-09-21 2020-12-22 京东方科技集团股份有限公司 信息展示方法及装置、存储介质及电子设备

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05232926A (ja) * 1992-02-19 1993-09-10 Brother Ind Ltd 文字記号発生装置
US20020124029A1 (en) * 2001-03-02 2002-09-05 Gwinn John Glen Method and apparatus for creating, embedding and using a searchable font
CN101008887A (zh) * 2006-01-28 2007-08-01 朗迅科技公司 打印工具
JP4715550B2 (ja) * 2006-02-28 2011-07-06 富士ゼロックス株式会社 プリンタドライバおよびその印刷制御方法、印刷装置
KR100787308B1 (ko) * 2006-11-06 2007-12-21 주식회사 현대오토넷 엘씨디에 표시할 비트맵 폰트 변환 방법
US8413051B2 (en) * 2008-10-20 2013-04-02 Celartem, Inc. Contextually previewing fonts
JP5418018B2 (ja) * 2009-06-29 2014-02-19 セイコーエプソン株式会社 出力制御データ生成装置、データ生成方法およびプログラム
CN101625848B (zh) 2009-07-28 2011-06-22 宁波新然电子信息科技发展有限公司 面向嵌入式平台的矢量字库实现方法
US8624900B2 (en) * 2010-04-09 2014-01-07 Red Hat, Inc. Plug-in architecture for dynamic font rendering enablement
CN104462068B (zh) * 2013-09-12 2017-11-07 北大方正集团有限公司 字符转换系统和字符转换方法
CN104731390A (zh) * 2013-12-18 2015-06-24 深圳富泰宏精密工业有限公司 保存原笔迹手写字的系统及方法
CN104298504A (zh) 2014-09-22 2015-01-21 无锡梵天信息技术股份有限公司 基于FreeType字体引擎的实现字体绘制的方法
US20160314377A1 (en) * 2015-04-23 2016-10-27 Monotype Imaging Inc. Using Similarity for Grouping Fonts and Individuals for Recommendations
US10467329B2 (en) * 2016-01-04 2019-11-05 Expressy, LLC System and method for employing kinetic typography in CMC
JP6812141B2 (ja) * 2016-05-31 2021-01-13 キヤノン株式会社 情報処理装置、情報処理方法およびプログラム
US10956572B2 (en) * 2016-08-22 2021-03-23 Hackproof Technologies Inc. Domain-specific hardwired web browser machine
CN107644006B (zh) 2017-09-29 2020-04-03 北京大学 一种基于深度神经网络的手写体中文字库自动生成方法
CN110597444B (zh) 2018-06-12 2021-03-09 广州视源电子科技股份有限公司 一种书写笔迹显示方法、装置、终端设备及存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789484A (zh) * 2012-06-28 2012-11-21 奇智软件(北京)有限公司 一种网页信息处理方法和装置
US20150073779A1 (en) * 2013-09-06 2015-03-12 Samsung Electronics Co., Ltd. Method of converting user handwriting into text information and electronic device for performing the same
CN106384094A (zh) * 2016-09-18 2017-02-08 北京大学 一种基于书写风格建模的中文字库自动生成方法
CN107391015A (zh) * 2017-07-19 2017-11-24 广州视源电子科技股份有限公司 一种智能平板的控制方法、装置、设备及存储介质
CN111242840A (zh) * 2020-01-15 2020-06-05 上海眼控科技股份有限公司 手写体字符生成方法、装置、计算机设备和存储介质
CN112115678A (zh) * 2020-09-21 2020-12-22 京东方科技集团股份有限公司 信息展示方法及装置、存储介质及电子设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115796119A (zh) * 2023-02-02 2023-03-14 合肥高维数据技术有限公司 基于渲染效果的字体校准方法
CN115796119B (zh) * 2023-02-02 2023-04-18 合肥高维数据技术有限公司 基于渲染效果的字体校准方法

Also Published As

Publication number Publication date
US20230351093A1 (en) 2023-11-02
CN112115678B (zh) 2024-04-12
US11928419B2 (en) 2024-03-12
CN112115678A (zh) 2020-12-22

Similar Documents

Publication Publication Date Title
WO2022057535A1 (zh) 信息展示方法及装置、存储介质及电子设备
US9547439B2 (en) Dynamically-positioned character string suggestions for gesture typing
US20190095040A1 (en) Electronic device operating according to pressure state of touch input and method thereof
CN105308551B (zh) 用于连续手势输入的多图形键盘
US5260697A (en) Computer with separate display plane and user interface processor
US20030182630A1 (en) Method for gestural interpretation in a system for selecting and arranging visible material in document images
US20180107651A1 (en) Unsupported character code detection mechanism
WO2013097129A1 (zh) 联系人搜索方法、装置及其应用的移动终端
US20130283198A1 (en) Display controlling apparatus
KR102075433B1 (ko) 필기 입력 장치 및 그 제어 방법
US20230266870A1 (en) Glyph-aware text selection
CN107977155B (zh) 一种手写识别方法、装置、设备和存储介质
US10664072B2 (en) Multi-stroke smart ink gesture language
US11269430B2 (en) Stylus ink parameter setting
WO2017000898A1 (zh) 软件图标显示方法和装置
US10614595B2 (en) Assigning textures to graphical keyboards based on thematic textures of applications
CN107851096A (zh) 用于提供翻译服务的用户终端装置及其控制方法
US20190369935A1 (en) Electronic whiteboard, electronic whiteboard system and control method thereof
US20170236318A1 (en) Animated Digital Ink
CN107391015A (zh) 一种智能平板的控制方法、装置、设备及存储介质
US10514841B2 (en) Multi-layered ink object
US20160042545A1 (en) Display controller, information processing apparatus, display control method, computer-readable storage medium, and information processing system
JP7148172B2 (ja) 字幕表示処理プログラム、字幕表示処理装置、サーバ。
US10930045B2 (en) Digital ink based visual components
US20240168575A1 (en) Input support apparatus, method, computer-readable medium, and input system

Legal Events

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

Ref document number: 21868363

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21868363

Country of ref document: EP

Kind code of ref document: A1

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

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

122 Ep: pct application non-entry in european phase

Ref document number: 21868363

Country of ref document: EP

Kind code of ref document: A1