CN109782924B - Compound code writing page generation method and device, and storage medium and device - Google Patents

Compound code writing page generation method and device, and storage medium and device Download PDF

Info

Publication number
CN109782924B
CN109782924B CN201910021585.8A CN201910021585A CN109782924B CN 109782924 B CN109782924 B CN 109782924B CN 201910021585 A CN201910021585 A CN 201910021585A CN 109782924 B CN109782924 B CN 109782924B
Authority
CN
China
Prior art keywords
page
control key
preset
code
key area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910021585.8A
Other languages
Chinese (zh)
Other versions
CN109782924A (en
Inventor
张显靖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tengqianli Technology Co ltd
Original Assignee
Shenzhen Tengqianli Technology 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 Shenzhen Tengqianli Technology Co ltd filed Critical Shenzhen Tengqianli Technology Co ltd
Priority to CN201910021585.8A priority Critical patent/CN109782924B/en
Publication of CN109782924A publication Critical patent/CN109782924A/en
Application granted granted Critical
Publication of CN109782924B publication Critical patent/CN109782924B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method, equipment, a storage medium and a device for generating a composite code writing page, wherein the method comprises the following steps: acquiring preset page layout information; obtaining position information corresponding to a control key area in a preset writing page according to the preset page layout information; and laying point reading codes in the control key area according to the position information, and laying handwriting codes in the rest area of the preset writing page to generate a composite code writing page. According to the handwriting input method and device, the handwriting codes are laid in the handwriting area in the preset writing page, so that the handwriting of the handwriting pen in the handwriting area is recorded, the point reading codes are laid in the control key area in the preset writing page, when the handwriting pen clicks any point in the control key area, the control action corresponding to the control key area can be identified, the appointed control action can be realized without the need of a user to draw a circle or a pair of hooks, the convenience and the rapidness are realized, and the user experience is improved.

Description

Compound code writing page generation method and device, and storage medium and device
Technical Field
The invention relates to the technical field of point reading, in particular to a method, equipment, a storage medium and a device for generating a composite code writing page.
Background
The hand-written code is formed based on the Anoto lattice coordinate coding theory, a lattice coordinate is formed by a plurality of fine code points, each code point has 4 selectable positions, namely, the upper position, the lower position, the left position and the right position, and 36 code points are arranged according to a 6X6 mode to form a lattice. Each code point represents coordinate information, and 4 code points are available for 36 code points 36 A permutation and combination mode, that is, one Anoto lattice can represent 0 to 4 36 Any number in between.
Because each code point in the handwriting code represents different coordinate information, when the handwriting of the handwriting pen strokes over a writing page containing the handwriting code, the handwriting which is the same as the handwriting on the writing page is presented on a terminal connected with the handwriting pen. However, if all the handwriting codes in a fixed area are given the same function in a page (e.g. mailing or turning pages for the page), when a direct point (direct) is in this area, it does not necessarily fall on the handwriting codes in the fixed area, and thus it cannot be identified; one circle or one opposite hook needs to be drawn in the area, so that the handwritten code in the area can be encircled, and the coordinate information corresponding to the handwritten code can be identified, so that the function is realized, the operation is complex, and therefore, the technical problem that the control function of the page writing can not be realized directly in a point mode in the prior art is solved.
Disclosure of Invention
The invention mainly aims to provide a method, equipment, a storage medium and a device for generating a composite code writing page, and aims to solve the technical problem that the control function of the writing page cannot be realized directly in a point mode in the prior art.
In order to achieve the above object, the present invention provides a method for generating a composite code writing page, comprising the following steps:
acquiring preset page layout information;
obtaining position information corresponding to a control key area in a preset writing page according to the preset page layout information;
and laying point reading codes in the control key area according to the position information, and laying handwriting codes in the rest area of the preset writing page to generate a composite code writing page.
Preferably, the laying of the point reading code in the control key region according to the position information and the laying of the handwriting code in the remaining region of the preset writing page to generate a composite code writing page specifically includes:
establishing a first corresponding relation between the control key area and the control action, and establishing a second corresponding relation between the point reading code and the control action;
searching the point reading code corresponding to the control key area according to the first corresponding relation and the second corresponding relation;
and paving a plurality of point reading codes in the control key region according to the position information, and paving different handwriting codes in the rest region of the preset writing page so as to generate a composite code writing page.
Preferably, after the step of laying a plurality of point reading codes in the control key region according to the position information and laying different handwritten codes in the remaining region of the preset writing page to generate a composite code writing page, the method for generating a composite code writing page further includes:
monitoring a click event input on the compound code writing page by a user;
when a click event input by the user on the composite code writing page is monitored, judging whether a click position corresponding to the click event belongs to the control key area;
and if the click position belongs to the control key area, executing a target control action corresponding to the click event.
Preferably, if the click position belongs to the control key region, executing a target control action corresponding to the click event, specifically including:
if the click position belongs to the control key area, shooting the click position to obtain a target code point image;
identifying target point code reading in the target code point image;
and searching a target control action corresponding to the target point code reading in the second corresponding relation, and executing the target control action.
Preferably, after determining whether the click position corresponding to the click event belongs to the control key region, the method for generating a composite code written page further includes:
and if the click position does not belong to the control key area, receiving the writing event input by the user in the remaining area, and recording a writing track according to the writing event.
Preferably, the obtaining of the position information corresponding to the control key region in the preset writing page according to the preset page layout information specifically includes:
extracting control key layout information from the preset page layout information;
and positioning a control key area in a preset writing page according to the control key layout information to obtain position information corresponding to the control key area.
Preferably, the positioning a control key region in a preset writing page according to the control key layout information to obtain position information corresponding to the control key region specifically includes:
extracting shape information, key point coordinates and size information of a control key area from the control key layout information;
and positioning a control key area in a preset writing page according to the shape information, the key point coordinates and the size information to obtain position information corresponding to the control key area.
In addition, to achieve the above object, the present invention also provides a composite code written page generating device, including: the device comprises a memory, a processor and a compound code writing page generation program which is stored on the memory and can run on the processor, wherein the compound code writing page generation program realizes the steps of the compound code writing page generation method when being executed by the processor.
In addition, to achieve the above object, the present invention further provides a storage medium, in which a composite code written page generation program is stored, and the composite code written page generation program, when executed by a processor, implements the steps of the composite code written page generation method as described above.
In addition, to achieve the above object, the present invention also provides a composite code writing page generating device, including:
the information acquisition module is used for acquiring preset page layout information;
the area positioning module is used for acquiring position information corresponding to a control key area in a preset writing page according to the preset page layout information;
and the page generation module is used for laying point reading codes in the control key area according to the position information and laying handwriting codes in the rest area of the preset writing page so as to generate a composite code writing page.
In the invention, the layout information of the preset page is obtained; obtaining position information corresponding to a control key area in a preset writing page according to the preset page layout information; and laying point reading codes in the control key area according to the position information, and laying handwriting codes in the rest area of the preset writing page to generate a composite code writing page. According to the handwriting input method and device, the handwriting codes are laid in the handwriting area in the preset writing page, so that the handwriting of the handwriting pen in the handwriting area is recorded, the point reading codes are laid in the control key area in the preset writing page, when the handwriting pen clicks any point in the control key area, the control action corresponding to the control key area can be identified, the appointed control action can be realized without the need of a user to draw a circle or a pair of hooks, the convenience and the rapidness are realized, and the user experience is improved.
Drawings
Fig. 1 is a schematic structural diagram of a composite code written page generating device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for generating a composite code written page according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for generating a composite code written page according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for generating a composite code written page according to a third embodiment of the present invention;
FIG. 5 is a functional block diagram of a composite code written page generating device according to a first embodiment of the present invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a composite code written page generating device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the composite written page generating apparatus may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the composite code written page generating device and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include an operating system, a network communication module, a user interface module, and a compound code writing page generating program therein.
In the composite code writing page generating device shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting peripheral devices; the composite code written page generation device calls the composite code written page generation program stored in the memory 1005 through the processor 1001, and executes the composite code written page generation method provided by the embodiment of the present invention.
The composite code written page generation apparatus calls, through the processor 1001, the composite code written page generation program stored in the memory 1005, and performs the following operations:
acquiring preset page layout information;
obtaining position information corresponding to a control key area in a preset writing page according to the preset page layout information;
and laying point reading codes in the control key area according to the position information, and laying handwriting codes in the rest area of the preset writing page to generate a composite code writing page.
Further, the processor 1001 may call the compound code written page generation program stored in the memory 1005, and further perform the following operations:
establishing a first corresponding relation between the control key area and the control action, and establishing a second corresponding relation between the point reading code and the control action;
searching a point reading code corresponding to the control key area according to the first corresponding relation and the second corresponding relation;
and paving a plurality of point reading codes in the control key area according to the position information, and paving different handwriting codes in the rest area of the preset writing page to generate a composite code writing page.
Further, the processor 1001 may call the compound code written page generation program stored in the memory 1005, and further perform the following operations:
monitoring a click event input on the composite code writing page by a user;
when a click event input by the user on the composite code writing page is monitored, judging whether a click position corresponding to the click event belongs to the control key area;
and if the click position belongs to the control key area, executing a target control action corresponding to the click event.
Further, the processor 1001 may call the compound code written page generation program stored in the memory 1005, and further perform the following operations:
if the click position belongs to the control key area, shooting the click position to obtain a target code point image;
identifying a target point code reading in the target code point image;
and searching a target control action corresponding to the target point reading code in the second corresponding relation, and executing the target control action.
Further, the processor 1001 may call the compound code written page generation program stored in the memory 1005, and further perform the following operations:
and if the click position does not belong to the control key area, receiving the writing event input by the user in the remaining area, and recording a writing track according to the writing event.
Further, the processor 1001 may call the compound code written page generation program stored in the memory 1005, and further perform the following operations:
extracting control key layout information from the preset page layout information;
and positioning a control key area in a preset writing page according to the control key layout information to obtain position information corresponding to the control key area.
Further, the processor 1001 may call the compound code written page generation program stored in the memory 1005, and further perform the following operations:
extracting shape information, key point coordinates and size information of a control key area from the control key layout information;
and positioning a control key area in a preset writing page according to the shape information, the key point coordinates and the size information to obtain position information corresponding to the control key area.
In the embodiment, the preset page layout information is obtained; obtaining position information corresponding to a control key area in a preset writing page according to the preset page layout information; and laying point reading codes in the control key area according to the position information, and laying handwriting codes in the rest area of the preset writing page to generate a composite code writing page. The handwriting code is laid in the handwriting area of this embodiment in the preset page of writing to the record writing pen is in the writing handwriting in handwriting area to through laying some reading codes in the control key area of presetting in writing the page, click as the writing pen during arbitrary point in the control key area, homoenergetic discerns the control action that the control key area corresponds need not the user and makes a round or draw and can realize appointed control action to colluding, and convenient and fast has improved user experience and has felt.
Based on the hardware structure, the embodiment of the method for generating the composite code writing page is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for generating a composite code written page according to a first embodiment of the present invention.
In a first embodiment, the method for generating a compound code writing page comprises the following steps:
step S10: and acquiring preset page layout information.
It should be noted that, in the conventional code point writing pages, only a single kind of code point, such as a handwriting code or a point reading code, is generally laid. The handwriting code can record handwriting, however, when the control action is set for the fixed area in the handwriting code, because the click operation of the user is difficult to identify, the user needs to draw a circle or a hook in the area, so that the handwriting code in the area can be enclosed, the control action corresponding to the handwriting code is identified, and the operation is relatively complex. The dot-read code is regularly placed in the longitudinal direction and the transverse direction of a dot matrix to record information and is formed by a plurality of repeated units, the existing dot-read code on the market at present has an OID (Optical Identification code), the principle is that a fixed area is identified through a series of reference points, a fixed number of Identification codes are distributed in the area, the positions of the Identification codes are different and represent different IDs (Identification numbers), the IDs of all the Identification codes are combined to form a complete ID, the ID records complete information in the fixed area, and all code points of the dot-read code in the fixed area correspond to the same information. Therefore, the handwriting code and the point reading code are integrated into the same writing page, and the preset control action can be realized in a clicking mode while writing handwriting is recorded. In order to integrate the handwritten code and the point-reading code into the same writing page, preset page layout information is acquired in advance, so that the combination mode of the handwritten code and the point-reading code is determined according to the preset page layout information.
Step S20: and obtaining position information corresponding to a control key area in a preset writing page according to the preset page layout information.
It can be understood that the preset page layout information includes handwriting area layout information and control key layout information, the handwriting area layout information includes a position of a handwriting area in a page, the control key layout information includes a position of a control key area in the page, the control key area is a key area corresponding to a control action in page content, any point in the control key area is clicked, the system executes the control action corresponding to the control key area, for example, the system executes an action of turning a current page to a next page by clicking the page turning control key area.
In a specific implementation, the preset writing page is a writing page to be integrated with the handwritten code and the point reading code, and after the handwritten code and the point reading code are laid in the preset writing page, a composite code writing page is generated. Because the size of the first page in the preset page layout information may not be the same as the size of the second page of the preset writing page, a proportionality coefficient between the size of the first page and the size of the second page is calculated, and the size of the control key region is adjusted through the proportionality coefficient, so that the position information corresponding to the control key region in the preset writing page is obtained.
Step S30: and laying point reading codes in the control key area according to the position information, and laying handwriting codes in the rest area of the preset writing page to generate a composite code writing page.
It should be noted that, because each code point in the handwriting code represents different information, when the handwriting of the handwriting pen passes through a writing page containing the handwriting code, the coordinate information corresponding to the handwriting code is identified, so that the handwriting same as the handwriting on the writing page is presented on the terminal connected with the handwriting pen; when handwriting of the handwriting pen clicks a control key area containing the handwriting code, the coordinate information corresponding to the handwriting code is difficult to recognize. Therefore, in order to enable the user to click the writing page to implement the control action, according to the fact that all code points of the point reading code correspond to the same information in a fixed area, in this embodiment, the point reading code is laid in the control key area, so that when the stylus pen clicks the control key area containing the point reading code, the coordinate information corresponding to the point reading code can be identified, and the control action corresponding to the control key area is executed.
In a specific implementation, after the position information of the control key area is acquired, a point reading code is laid in the control key area according to the position information, and a handwriting code is laid in the remaining area, namely a handwriting area, in the preset writing page, so as to generate a composite code writing page.
In this embodiment, lay the handwriting code through the handwriting area in presetting the writing page to the record pen is in the writing handwriting in handwriting area, and through laying some reading codes in the control key area in presetting the writing page, click when the pen that writes when arbitrary point in the control key area, homoenergetic discerns the control action that the control key area corresponds need not the user and marks or mark and can realize appointed control action to colluding, and convenient and fast has improved user experience and has felt.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for generating a composite code written page according to a second embodiment of the present invention, and the method for generating a composite code written page according to the second embodiment of the present invention is provided based on the embodiment illustrated in fig. 2.
In the second embodiment, the step S30 specifically includes:
step S301: and establishing a first corresponding relation between the control key area and the control action, and establishing a second corresponding relation between the point reading code and the control action.
It should be noted that different control key regions correspond to different control actions, and different point reading codes represent different coordinate information, so as to correspond to different control actions, and therefore, all the control key regions, control actions, and point reading codes are obtained, a first corresponding relationship between a control key region and a control action is established according to page content, and a second corresponding relationship between a point reading code and a control action is established, so that when a stylus pen clicks a target control key region, a corresponding target point reading code can be identified, and a corresponding target control action is accurately searched and executed.
Step S302: and searching the point reading code corresponding to the control key area according to the first corresponding relation and the second corresponding relation.
It can be understood that the control action corresponding to the control key region is searched according to the first corresponding relationship, and the point reading code corresponding to the control action is searched according to the second corresponding relationship, so as to obtain the point reading code corresponding to the control key region.
Step S303: and paving a plurality of point reading codes in the control key region according to the position information, and paving different handwriting codes in the rest region of the preset writing page so as to generate a composite code writing page.
It should be noted that after finding the click-to-read code corresponding to the control key region, laying a corresponding click-to-read code in the control key region according to the position information of the control key region, and laying different handwriting codes in the remaining region of the preset writing page, so as to generate a composite code writing page.
Further, after the step S303, the method for generating a composite code writing page further includes:
monitoring a click event input on the composite code writing page by a user;
when a click event input by the user on the composite code writing page is monitored, judging whether a click position corresponding to the click event belongs to the control key area;
and if the click position belongs to the control key area, executing a target control action corresponding to the click event.
And if the click position does not belong to the control key area, receiving the writing event input in the residual area by the user, and recording a writing track according to the writing event.
It can be understood that, after the composite written page is generated, in the process of using the composite written page, a click event input by a user on the composite written page is monitored, and when the click event input by the user on the composite written page is monitored, whether a click position corresponding to the click event belongs to the control key region is determined. If the click position belongs to the control key area, executing a target control action corresponding to the click event; and if the click position does not belong to the control key area, the user writes instead of executing the control action, receiving the writing event input by the user in the residual area, and recording a writing track according to the writing event.
Further, if the click position belongs to the control key region, executing a target control action corresponding to the click event, specifically including:
if the click position belongs to the control key area, shooting the click position to obtain a target code point image;
identifying target point code reading in the target code point image;
and searching a target control action corresponding to the target point code reading in the second corresponding relation, and executing the target control action.
If the click position belongs to the control key area, controlling a camera in the stylus pen to shoot the click position to obtain a target code point image; and identifying target point reading codes in the target code point image, and searching corresponding target control actions in the second corresponding relation according to the target point reading codes so as to execute the target control actions.
In this embodiment, by establishing the first corresponding relationship between the control key region and the control action and establishing the second corresponding relationship between the click code and the control action, the target control key region corresponding to the click event can be accurately identified, so as to identify the target point code reading corresponding to the target control key region, and further accurately search and execute the corresponding target control action.
Referring to fig. 4, fig. 4 is a flowchart illustrating a method for generating a composite code written page according to a third embodiment of the present invention, and the method for generating a composite code written page according to the third embodiment of the present invention is provided based on the embodiment illustrated in fig. 3.
In the third embodiment, the step S20 specifically includes:
step S201: and extracting control key layout information from the preset page layout information.
It should be noted that the preset page layout information includes handwriting area layout information and control key layout information, the handwriting area layout information includes a position of a handwriting area in a page, and the control key layout information includes a position of a control key area in the page, in this embodiment, the control key layout information is extracted from the preset page layout information, so as to determine a laying range of a point reading code according to the control key layout information in the subsequent step.
Step S202: and positioning a control key area in a preset writing page according to the control key layout information to obtain position information corresponding to the control key area.
It can be understood that the preset writing page is a writing page to be integrated with the handwritten code and the point reading code, and after the handwritten code and the point reading code are laid in the preset writing page, a composite code writing page is generated. Because the size of a first page in the preset page layout information may not be the same as the size of a second page of the preset writing page, a proportionality coefficient between the size of the first page and the size of the second page is calculated, the size of the control key region is adjusted through the proportionality coefficient, current control key layout information conforming to the size of the preset writing page is obtained, the control key region in the preset writing page is positioned according to the current control key layout information, and position information corresponding to the control key region in the preset writing page is obtained.
Further, the step S202 specifically includes:
extracting shape information, key point coordinates and size information of a control key area from the control key layout information;
and positioning a control key area in a preset writing page according to the shape information, the key point coordinates and the size information to obtain position information corresponding to the control key area.
It should be noted that, when the shape information of the control key region is a rectangle, the key point coordinates are coordinates of four vertices of the rectangle, and the size information is the length and width of the rectangle, the control key region in the preset writing page can be located according to the shape information, the key point coordinates, and the size information, so as to obtain the position information corresponding to the control key region.
In this embodiment, control key layout information such as shape information, key point coordinates, and size information of a control key region is extracted from the preset page layout information, the control key region in a preset writing page is located according to the control key layout information, and position information corresponding to the control key region is obtained, so that the accuracy of the position information is improved, and the recognition rate of subsequent code reading is improved.
In addition, an embodiment of the present invention further provides a storage medium, where a composite code written page generation program is stored on the storage medium, and when executed by a processor, the composite code written page generation program implements the following operations:
acquiring preset page layout information;
obtaining position information corresponding to a control key area in a preset writing page according to the preset page layout information;
and laying point reading codes in the control key area according to the position information, and laying handwriting codes in the rest area of the preset writing page to generate a composite code writing page.
Further, the compound code written page generating program when executed by the processor further realizes the following operations:
establishing a first corresponding relation between the control key area and the control action, and establishing a second corresponding relation between the point reading code and the control action;
searching the point reading code corresponding to the control key area according to the first corresponding relation and the second corresponding relation;
and paving a plurality of point reading codes in the control key area according to the position information, and paving different handwriting codes in the rest area of the preset writing page to generate a composite code writing page.
Further, the compound code written page generating program further realizes the following operations when being executed by the processor:
monitoring a click event input on the composite code writing page by a user;
when a click event input by the user on the composite code writing page is monitored, judging whether a click position corresponding to the click event belongs to the control key area;
and if the click position belongs to the control key area, executing a target control action corresponding to the click event.
Further, the compound code written page generating program further realizes the following operations when being executed by the processor:
if the click position belongs to the control key area, shooting the click position to obtain a target code point image;
identifying a target point code reading in the target code point image;
and searching a target control action corresponding to the target point code reading in the second corresponding relation, and executing the target control action.
Further, the compound code written page generating program when executed by the processor further realizes the following operations:
and if the click position does not belong to the control key area, receiving the writing event input by the user in the remaining area, and recording a writing track according to the writing event.
Further, the compound code written page generating program when executed by the processor further realizes the following operations:
extracting control key layout information from the preset page layout information;
and positioning a control key area in a preset writing page according to the control key layout information to obtain position information corresponding to the control key area.
Further, the compound code written page generating program further realizes the following operations when being executed by the processor:
extracting shape information, key point coordinates and size information of a control key area from the control key layout information;
and positioning a control key area in a preset writing page according to the shape information, the key point coordinates and the size information to obtain position information corresponding to the control key area.
In this embodiment, lay the handwriting code through the handwriting area in presetting the writing page to the record pen is in the writing handwriting in handwriting area, and through laying some reading codes in the control key area in presetting the writing page, click when the pen that writes when arbitrary point in the control key area, homoenergetic discerns the control action that the control key area corresponds need not the user and marks or mark and can realize appointed control action to colluding, and convenient and fast has improved user experience and has felt.
Referring to fig. 5, fig. 5 is a functional block diagram of a composite code written page generation device according to a first embodiment of the present invention, and the first embodiment of the composite code written page generation device according to the present invention is provided based on the composite code written page generation method.
In this embodiment, the composite code written page generating device includes:
the information obtaining module 10 is configured to obtain preset page layout information.
It should be noted that, in the conventional code point writing page, only a single kind of code point is generally laid, for example, a handwritten code or a point-reading code. The handwriting code can record handwriting, however, when the control action is set for the fixed area in the handwriting code, because the click operation of the user is difficult to identify, the user needs to draw a circle or a hook in the area, so that the handwriting code in the area can be enclosed, the control action corresponding to the handwriting code is identified, and the operation is relatively complex. The dot reading code is formed by a plurality of repeating units and is regularly placed in the longitudinal direction and the transverse direction of a dot matrix to record information, the existing dot reading code on the market at present has an OID (Optical Identification code), the principle is that a fixed area is identified through a series of datum points, a fixed number of Identification codes are distributed in the area, the positions of the Identification codes are different and represent different IDs (Identification numbers), the IDs of all the Identification codes are combined to form a complete ID, the ID records in the fixed area are complete information, and all code points of the dot reading code in the fixed area correspond to the same information. Therefore, the handwriting code and the point reading code are integrated into the same writing page, and the preset control action can be realized in a clicking mode while writing handwriting is recorded. In order to integrate the handwritten code and the read code into the same writing page, preset page layout information is acquired in advance, so that the combination mode of the handwritten code and the read code is determined according to the preset page layout information.
And the area positioning module 20 is configured to obtain position information corresponding to a control key area in a preset writing page according to the preset page layout information.
It can be understood that the preset page layout information includes handwriting area layout information and control key layout information, the handwriting area layout information includes a position of a handwriting area in a page, the control key layout information includes a position of a control key area in the page, the control key area is a key area corresponding to a control action in page content, any point in the control key area is clicked, the system executes the control action corresponding to the control key area, for example, the control key area is clicked, and the system executes an action of turning the current page to the next page.
In a specific implementation, the preset writing page is a writing page to be integrated with a handwritten code and a reading code, and after the handwritten code and the reading code are laid in the preset writing page, a composite code writing page is generated. Because the size of the first page in the preset page layout information may not be the same as the size of the second page of the preset writing page, a proportionality coefficient between the size of the first page and the size of the second page is calculated, and the size of the control key region is adjusted through the proportionality coefficient, so that the position information corresponding to the control key region in the preset writing page is obtained.
And the page generating module 30 is configured to lay a point reading code in the control key region according to the position information, and lay a handwriting code in the remaining region of the preset writing page, so as to generate a composite code writing page.
It should be noted that, because each code point in the handwriting code represents different information, when the handwriting of the handwriting pen passes through the writing page containing the handwriting code, the coordinate information corresponding to the handwriting code is identified, so that the handwriting same as the handwriting on the writing page is presented on the terminal connected with the handwriting pen; when handwriting of the handwriting pen clicks a control key area containing the handwriting code, the coordinate information corresponding to the handwriting code is difficult to recognize. Therefore, in order to enable the user to click the writing page to implement the control action, according to the fact that all code points of the point reading code correspond to the same information in a fixed area, in this embodiment, the point reading code is laid in the control key area, so that when the stylus pen clicks the control key area containing the point reading code, the coordinate information corresponding to the point reading code can be identified, and the control action corresponding to the control key area is executed.
In a specific implementation, after the position information of the control key area is acquired, a point reading code is laid in the control key area according to the position information, and a handwriting code is laid in the remaining area, namely a handwriting area, in the preset writing page, so as to generate a composite code writing page.
In this embodiment, lay the handwriting code through the handwriting area in presetting the writing page to the record pen is in the writing handwriting in handwriting area, and through laying some reading codes in the control key area in presetting the writing page, click when the pen that writes when arbitrary point in the control key area, homoenergetic discerns the control action that the control key area corresponds need not the user and marks or mark and can realize appointed control action to colluding, and convenient and fast has improved user experience and has felt.
In an embodiment, the page generating module 30 is further configured to establish a first corresponding relationship between the control key region and the control action, and establish a second corresponding relationship between the point reading code and the control action; searching the point reading code corresponding to the control key area according to the first corresponding relation and the second corresponding relation; and paving a plurality of point reading codes in the control key area according to the position information, and paving different handwriting codes in the rest area of the preset writing page to generate a composite code writing page.
In one embodiment, the device for generating a composite code writing page further comprises:
the execution module is used for monitoring a click event input by a user on the composite code writing page; when a click event input by the user on the composite code writing page is monitored, judging whether a click position corresponding to the click event belongs to the control key area; and if the click position belongs to the control key area, executing a target control action corresponding to the click event.
In an embodiment, the execution module is further configured to, if the clicked position belongs to the control key area, shoot the clicked position to obtain a target code point image; identifying target point code reading in the target code point image; and searching a target control action corresponding to the target point code reading in the second corresponding relation, and executing the target control action.
In an embodiment, the execution module is further configured to receive a writing event input by the user in the remaining area if the click position does not belong to the control key area, and record a writing track according to the writing event.
In an embodiment, the area positioning module 20 is further configured to extract layout information of a control key from the preset page layout information; and positioning a control key area in a preset writing page according to the control key layout information to obtain position information corresponding to the control key area.
In an embodiment, the area location module 20 is further configured to extract shape information, key point coordinates, and size information of a control key area from the control key layout information; and positioning a control key area in a preset writing page according to the shape information, the key point coordinates and the size information to obtain position information corresponding to the control key area.
Other embodiments or specific implementation manners of the device for generating a composite code writing page according to the present invention may refer to the above method embodiments, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The use of the words first, second, third, etc. do not denote any order, but rather the words are to be construed as names.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (5)

1. A method for generating a composite code writing page is characterized by comprising the following steps:
acquiring preset page layout information;
obtaining position information corresponding to a control key area in a preset writing page according to the preset page layout information;
laying point reading codes in the control key area according to the position information, and laying handwriting codes in the rest area of the preset writing page to generate a composite code writing page;
after the point reading codes are laid in the control key region according to the position information and the handwritten codes are laid in the rest regions of the preset writing page to generate a composite code writing page, the method for generating the composite code writing page further comprises the following steps:
monitoring a click event input on the compound code writing page by a user;
when a click event input by the user on the composite code writing page is monitored, judging whether a click position corresponding to the click event belongs to the control key area;
if the click position belongs to the control key area, shooting the click position to obtain a target code point image;
identifying a target point code reading in the target code point image;
searching a target control action corresponding to the target point code reading in the second corresponding relation, and executing the target control action;
the step of obtaining the position information corresponding to the control key area in the preset writing page according to the preset page layout information comprises the following steps:
obtaining a first page size according to the preset page layout information, and obtaining a second page size of a preset writing page according to the preset page layout information;
determining a scaling factor between the first page size and the second page size;
adjusting the size of the control key area according to the proportional coefficient to obtain position information corresponding to the control key area in the preset writing page;
the laying of the point reading codes in the control key region according to the position information and the laying of the handwritten codes in the rest regions of the preset writing page to generate a composite code writing page specifically comprises:
establishing a first corresponding relation between the control key area and the control action, and establishing a second corresponding relation between the point reading code and the control action;
searching the point reading code corresponding to the control key area according to the first corresponding relation and the second corresponding relation;
laying a plurality of point reading codes in the control key area according to the position information, and laying different handwriting codes in the rest area of the preset writing page to generate a composite code writing page;
the obtaining of the position information corresponding to the control key region in the preset writing page according to the preset page layout information specifically includes:
extracting control key layout information from the preset page layout information;
positioning a control key area in a preset writing page according to the control key layout information to obtain position information corresponding to the control key area;
the method for locating the control key area in the preset writing page according to the control key layout information to obtain the position information corresponding to the control key area specifically comprises the following steps:
extracting shape information, key point coordinates and size information of a control key area from the control key layout information;
and positioning a control key area in a preset writing page according to the shape information, the key point coordinates and the size information to obtain position information corresponding to the control key area.
2. The method for generating a composite code written page as claimed in claim 1, wherein after determining whether the click position corresponding to the click event belongs to the control key region, the method further comprises:
and if the click position does not belong to the control key area, receiving the writing event input by the user in the remaining area, and recording a writing track according to the writing event.
3. A composite code written page generating apparatus, the apparatus comprising: memory, a processor and a composite code written page generating program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the composite code written page generating method according to any of claims 1 to 2.
4. A storage medium having stored thereon a composite code written page generating program which, when executed by a processor, implements the steps of the composite code written page generating method according to any one of claims 1 to 2.
5. A composite code written page generating apparatus, comprising:
the information acquisition module is used for acquiring preset page layout information;
the area positioning module is used for acquiring position information corresponding to a control key area in a preset writing page according to the preset page layout information;
the page generation module is used for laying point reading codes in the control key area according to the position information and laying handwriting codes in the rest area of the preset writing page so as to generate a composite code writing page;
the page generating module is also used for monitoring a click event input by a user on the composite code writing page; when a click event input by the user on the composite code writing page is monitored, judging whether a click position corresponding to the click event belongs to the control key area; if the click position belongs to the control key area, shooting the click position to obtain a target code point image; identifying target point code reading in the target code point image; searching a target control action corresponding to the target point code reading in the second corresponding relation, and executing the target control action;
the region positioning module is further used for obtaining a first page size according to the preset page layout information and obtaining a second page size of a preset writing page according to the preset page layout information; determining a scaling factor between the first page size and the second page size; adjusting the size of the control key area according to the proportional coefficient to obtain position information corresponding to the control key area in the preset writing page;
the page generation module is also used for establishing a first corresponding relation between the control key area and the control action and establishing a second corresponding relation between the point reading code and the control action; searching the point reading code corresponding to the control key area according to the first corresponding relation and the second corresponding relation; paving a plurality of point reading codes in the control key area according to the position information, and paving different handwriting codes in the rest area of the preset writing page to generate a composite code writing page;
the area positioning module is also used for extracting control key layout information from the preset page layout information; positioning a control key area in a preset writing page according to the control key layout information to obtain position information corresponding to the control key area;
the area positioning module is also used for extracting shape information, key point coordinates and size information of the control key area from the control key layout information; and positioning a control key area in a preset writing page according to the shape information, the key point coordinates and the size information to obtain position information corresponding to the control key area.
CN201910021585.8A 2019-01-09 2019-01-09 Compound code writing page generation method and device, and storage medium and device Active CN109782924B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910021585.8A CN109782924B (en) 2019-01-09 2019-01-09 Compound code writing page generation method and device, and storage medium and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910021585.8A CN109782924B (en) 2019-01-09 2019-01-09 Compound code writing page generation method and device, and storage medium and device

Publications (2)

Publication Number Publication Date
CN109782924A CN109782924A (en) 2019-05-21
CN109782924B true CN109782924B (en) 2022-09-06

Family

ID=66499378

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910021585.8A Active CN109782924B (en) 2019-01-09 2019-01-09 Compound code writing page generation method and device, and storage medium and device

Country Status (1)

Country Link
CN (1) CN109782924B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7404182B1 (en) * 2003-10-03 2008-07-22 Sun Microsystems, Inc. Deferring and combining write barriers for a garbage-collected heap
WO2018112710A1 (en) * 2016-12-19 2018-06-28 程抒一 Writing device

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1955133A1 (en) * 2005-11-11 2008-08-13 Anoto Ab Information management in an electronic pen arrangement
CN200944236Y (en) * 2006-08-24 2007-09-05 刘军 Read-write multimedia machine
CN102411458A (en) * 2011-08-15 2012-04-11 留越 Information processing method and system for handwriting on paper
TW201333758A (en) * 2011-11-01 2013-08-16 Kent Displays Inc Writing tablet information recording device
CN102521573A (en) * 2011-12-09 2012-06-27 陕西理工学院 Stroke identification method of writing strokes
CN103488411B (en) * 2012-06-13 2016-06-01 腾讯科技(深圳)有限公司 The method of the switching page and device
CN103680229A (en) * 2012-09-26 2014-03-26 步步高教育电子有限公司 Handwriting input method, handwriting input device and handwriting board
US20160048318A1 (en) * 2014-08-15 2016-02-18 Microsoft Technology Licensing, Llc Detecting selection of digital ink
CN104407732B (en) * 2014-10-29 2017-06-16 广州视睿电子科技有限公司 synchronous writing method and system
JP6452409B2 (en) * 2014-11-28 2019-01-16 キヤノン株式会社 Image display device and image display method
CN208128287U (en) * 2018-02-09 2018-11-20 深圳腾千里科技有限公司 A kind of intelligence pencil box
CN108921154A (en) * 2018-07-10 2018-11-30 深圳闳宸科技有限公司 Reading method, device, point read equipment and audio-video document correlating method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7404182B1 (en) * 2003-10-03 2008-07-22 Sun Microsystems, Inc. Deferring and combining write barriers for a garbage-collected heap
WO2018112710A1 (en) * 2016-12-19 2018-06-28 程抒一 Writing device

Also Published As

Publication number Publication date
CN109782924A (en) 2019-05-21

Similar Documents

Publication Publication Date Title
CN108182060B (en) Hybrid application point burying method, mobile terminal and system
CN102904996B (en) The method and device of a kind of handset touch panel performance test, system
CN112507806B (en) Intelligent classroom information interaction method and device and electronic equipment
CN111290931B (en) Method and device for visually displaying buried point data
CN106294134A (en) The collapse localization method of code and device
CN112487883B (en) Intelligent pen writing behavior feature analysis method and device and electronic equipment
JP5306528B1 (en) Electronic device and handwritten document processing method
CN112486338B (en) Medical information processing method and device and electronic equipment
DE112012006448T5 (en) Translate a touch input into a local input based on a translation profile for an application
JP2015158900A (en) Information processing device, information processing method and information processing program
CN112487871B (en) Handwriting data processing method and device and electronic equipment
CN103699314B (en) Realize the method and terminal of handwriting
CN111562870B (en) Map point location icon expansion processing method and device
CN104572348A (en) Terminal
CN111596911A (en) Method and device for generating control, computer equipment and storage medium
CN112487897B (en) Handwriting content evaluation method and device and electronic equipment
CN112486337B (en) Handwriting graph analysis method and device and electronic equipment
CN110672102A (en) Visual auxiliary robot initialization positioning method, robot and readable storage medium
CN111401981B (en) Bidding method, device and storage medium of bidding cloud host
CN109782924B (en) Compound code writing page generation method and device, and storage medium and device
CN112487876A (en) Intelligent pen character recognition method and device and electronic equipment
CN112487774B (en) Writing form electronization method and device and electronic equipment
CN112487875B (en) Handwriting patterning method and device and electronic equipment
CN113407869B (en) Beacon labeling method, device, computer equipment and storage medium
JP2009054089A (en) Computer system and method for controlling access to document

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Method, device, storage medium, and device for generating composite code writing pages

Granted publication date: 20220906

Pledgee: Huaxia Bank Co.,Ltd. Shenzhen Branch

Pledgor: SHENZHEN TENGQIANLI TECHNOLOGY Co.,Ltd.

Registration number: Y2024980025890