CN108334229B - Method, device and equipment for adjusting writing track and readable storage medium - Google Patents

Method, device and equipment for adjusting writing track and readable storage medium Download PDF

Info

Publication number
CN108334229B
CN108334229B CN201810094054.7A CN201810094054A CN108334229B CN 108334229 B CN108334229 B CN 108334229B CN 201810094054 A CN201810094054 A CN 201810094054A CN 108334229 B CN108334229 B CN 108334229B
Authority
CN
China
Prior art keywords
writing
area
determined
track
trajectory
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
CN201810094054.7A
Other languages
Chinese (zh)
Other versions
CN108334229A (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201810094054.7A priority Critical patent/CN108334229B/en
Publication of CN108334229A publication Critical patent/CN108334229A/en
Application granted granted Critical
Publication of CN108334229B publication Critical patent/CN108334229B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • 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
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)
  • Position Input By Displaying (AREA)

Abstract

The invention provides a method, a device and equipment for adjusting a writing track and a readable storage medium, wherein the method comprises the following steps: when the writing operation is detected, acquiring the position of a currently input writing track; if the position is in a preset edge area of a writing area, determining a writing track to be adjusted, wherein the determined writing track at least comprises the currently input writing track; and adjusting the display attribute of the determined writing track so that the adjusted writing track is displayed in the writing area except for the preset edge area. By implementing the embodiment of the invention, when the user writes to the preset edge area, the input writing track can be automatically adjusted to the area outside the preset edge area, and the user can be provided with sufficient writing space without page turning and movement, thereby improving the writing efficiency of the user.

Description

Method, device and equipment for adjusting writing track and readable storage medium
Technical Field
The invention relates to the technical field of intelligent writing, in particular to a method, a device and equipment for adjusting a writing track and a readable storage medium.
Background
With the rapid development of electronic device technology, intelligent handwriting devices such as electronic whiteboards, electronic blackboards, intelligent conference panels and the like are widely used. The intelligent handwriting equipment is provided with a touch screen, the touch screen is provided with a writing area used for responding to the writing operation of a user to display input content, and when the user writes in the writing area, the intelligent handwriting equipment can control the touch screen to display the content written by the user in the writing area in real time.
In some application scenarios, a user may start writing from any position of a writing area, and after writing for a certain time, the user may write to the edge of the writing area, and at this time, if the user needs to write more content, the user can only erase the written content or write after turning pages. Whether the written content is erased or pages are turned, the writing operation of the user is interrupted and certain writing time is occupied, so that the writing efficiency of the user is influenced.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, and a device for adjusting a writing track, and a readable storage medium, so as to solve a problem that a writing efficiency of a user is easily affected by a related writing technology.
According to a first aspect of the present invention, there is provided a method of adjusting a writing trajectory, comprising the steps of:
when the writing operation is detected, acquiring the position of a currently input writing track;
if the position is in a preset edge area of a writing area, determining a writing track to be adjusted, wherein the determined writing track at least comprises the currently input writing track;
and adjusting the display attribute of the determined writing track so that the adjusted writing track is displayed in the writing area except the predetermined marginal area, wherein the display attribute comprises at least one of position, size and spacing.
In one embodiment, the obtaining the position of the currently input writing track includes:
acquiring a touch signal triggered by the writing operation, and determining a coordinate corresponding to the currently input writing track according to a coordinate contained in the touch signal; or,
and receiving each frame of screen image transmitted after the writing operation of the associated image acquisition equipment is detected, and determining the coordinate corresponding to the currently input writing track by identifying an object used for triggering the writing track in each frame of screen image, wherein the object is a touch pen or a finger of a user.
In one embodiment, the determined coordinates include:
coordinates of a starting writing point of the currently input writing track; and/or the presence of a gas in the gas,
coordinates of a termination writing point of the currently input writing trajectory.
In one embodiment, the determined coordinates include coordinates of all writing points of the currently input writing trajectory.
In one embodiment, the determined coordinates include boundary coordinates of a minimum bounding rectangular area of the currently input written trace.
In one embodiment, the method further comprises:
judging whether the determined coordinates are in the coordinate range of the preset edge area;
determining that the location is in the predetermined edge region if the determined coordinates are within the coordinate range.
In one embodiment, the method comprises:
judging whether the determined coordinates are in a coordinate range of a target area, wherein the target area refers to an area except the predetermined edge area in the writing area;
determining that the location is in the predetermined edge region if the determined coordinates are not within the coordinate range.
In one embodiment, the determined writing trajectory further comprises:
a writing trajectory in a sub-area adjacent to the predetermined border area.
In one embodiment, the determined writing trajectory further comprises:
writing other writing tracks in the writing area except for the currently input writing track.
In one embodiment, the step of adjusting the display attribute of the determined writing track is performed after the currently input writing track is displayed and before the next writing track is displayed.
In one embodiment, the determined writing trajectory further comprises:
an associated writing trace input after the currently input writing trace;
the step of adjusting the display attribute of the determined writing trajectory is performed after the input of the associated writing trajectory.
In one embodiment, the associated writing track and the currently input writing track are components of the same target object, and the target object is a target graph or a target word; or,
the associated writing trace includes content entered within a predetermined period of time after the currently entered writing trace.
In one embodiment, when the writing area is a quadrangle, the predetermined edge area includes:
a region point having a vertical distance from any one boundary of the writing region smaller than a first predetermined value.
In one embodiment, when the writing area is a quadrangle, the predetermined edge area includes:
a region point having a vertical distance from a right boundary of the writing region smaller than a second predetermined value; and/or the presence of a gas in the gas,
a region point having a vertical distance from a bottom boundary of the writing region less than a third predetermined value.
In one embodiment, the adjusting the display property of the determined writing track includes:
adjusting the display position of the determined writing track towards a direction away from the predetermined edge area; or,
adjusting a display position of the determined writing trajectory toward a center of the writing area.
In one embodiment, when the writing area is a quadrangle formed by a plurality of sub-areas, the adjusting the display property of the determined writing track includes:
determining a sub-region to which the position belongs;
if two adjacent boundaries of the determined sub-area belong to two adjacent edges of the quadrangle, the display position of the determined writing track is adjusted in a direction away from the intersection point of the two adjacent edges;
and if only one boundary of the determined sub-area belongs to one side of the quadrangle, adjusting the display position of the determined writing track in a direction away from the side of the quadrangle.
In one embodiment, if the adjusted writing trajectory exceeds the area outside the predetermined margin area, the adjusting the display attribute of the determined writing trajectory includes:
narrowing the determined writing track; and/or
Decreasing a pitch of adjacent ones of the determined writing trajectories.
According to a second aspect of the present invention, an apparatus for adjusting a writing trajectory, comprises:
the positioning module is used for acquiring the position of the currently input writing track when the writing operation is detected;
a determining module, configured to determine a writing trajectory to be adjusted when the position is in a predetermined marginal area of a writing area, where the determined writing trajectory at least includes the currently input writing trajectory;
and the adjusting module is used for adjusting the display attribute of the determined writing track so that the adjusted writing track is displayed in the writing area except for the predetermined edge area, wherein the display attribute comprises position and/or size.
According to a third aspect of the present invention, there is provided a terminal device comprising:
a processor;
a memory storing processor-executable instructions;
wherein the processor is coupled to the memory for reading program instructions stored by the memory and, in response, performing operations in the method as described above.
According to a fourth aspect of the present invention, there is provided one or more machine-readable storage media having instructions stored thereon, which when executed by one or more processors, cause a terminal device to perform operations in the method as described above.
By implementing the embodiment provided by the invention, when the writing operation is detected, the position of the currently input writing track is acquired, if the acquired position is in the preset marginal area of the writing area, the attribute of the track to be adjusted at least comprising the currently input writing track can be adjusted according to a preset adjusting strategy, and the adjusted writing track is displayed in the area except for the preset marginal area in the writing area. Therefore, the embodiment of the invention can adjust the input writing track to the area outside the preset edge area for displaying when the user writes to the preset edge area, so as to free the preset edge area for the user to continue writing, and can provide sufficient writing space when the user writes to the edge area without changing pages or moving positions, thereby improving the writing efficiency of the user.
Drawings
FIG. 1 is a schematic diagram illustrating writing with an intelligent handwriting device in accordance with an exemplary embodiment of the present invention;
FIG. 2A is a flowchart of a method of adjusting a writing trajectory according to another exemplary embodiment of the present invention;
FIG. 2B is a schematic diagram illustrating a predetermined edge region in accordance with an exemplary embodiment of the present invention;
fig. 2C is a schematic view of a predetermined edge region shown in another exemplary embodiment of the present invention;
FIGS. 2D-2E are schematic diagrams illustrating the division of sub-regions of a writing area in accordance with an exemplary embodiment of the present invention;
FIG. 3A is a flowchart illustrating a method of adjusting a writing trajectory in accordance with another exemplary embodiment of the present invention;
3B-3C are schematic diagrams illustrating adjusting a writing trajectory in accordance with an exemplary embodiment of the present invention;
3D-3E are schematic diagrams illustrating adjusting a writing trajectory according to another exemplary embodiment of the present invention;
3F-3H are schematic diagrams illustrating adjusting a writing trajectory according to another exemplary embodiment of the present invention;
FIG. 4 is a block diagram illustrating an apparatus for adjusting a writing trace according to an exemplary embodiment of the present invention;
fig. 5 is a hardware configuration diagram of a terminal device according to an exemplary embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present invention. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In practical applications, an intelligent handwriting device such as an electronic whiteboard, an electronic blackboard, a digitizer, an intelligent conference tablet and the like may be configured with an infrared touch screen, a capacitive touch screen, a resistive touch screen, an electromagnetic touch screen and the like, the touch screen is provided with a writing area for displaying input contents in response to a writing operation of a user, when the user writes, for example, by touching the configured touch screen with a stylus pen, the touch screen may sense a change of infrared rays, a change of current, a change of voltage or a change of magnetic flux, so as to obtain a touch signal including coordinates of a touch position and a trigger time of the touch signal, and according to the coordinates of the touch position and the trigger time of the touch signal, trajectory data of a writing trajectory input during a process from each pressing down to lifting up of the stylus pen or a finger of the user to stop writing may be obtained, the trajectory data includes coordinates and time of each writing point of the writing trajectory, and then displaying the writing track input by the user in real time in the writing area of the touch screen according to the track data.
When a finger of a user writes on a touch screen of the intelligent handwriting device, after inputting a writing track displayed in a writing area shown in fig. 1, namely, a track is performed on an electronic whiteboard, the writing track needs to be continuously input, but the user only needs to erase the written writing track, move to other blank areas, or touch a page turning button of the intelligent handwriting device to continuously input the writing track after the finger of the user reaches the edge of the writing area. These operations can cause interruption of writing for the user and take up a certain writing time, thereby reducing the writing efficiency of the user.
According to the scheme provided by the embodiment of the invention, when the user writes to the preset edge area, the input writing track can be adjusted, so that the adjusted writing track is displayed in the area except the preset edge area in the writing area. Therefore, a preset edge area is reserved for a user to write, and a sufficient writing space can be provided for the user without erasing an input writing track, turning pages or moving positions of the user, so that the writing efficiency of the user is improved. The embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Referring to fig. 2A, fig. 2A is a flowchart illustrating a method for adjusting a writing track according to an exemplary embodiment of the present invention, where the embodiment may be applied to a terminal device with a handwriting function, and the method may include the following steps S201 to S204:
step S201, when the writing operation is detected, acquiring a position of a currently input writing trajectory.
Step S202, if the position is in a preset edge area of the writing area, determining a writing track to be adjusted, wherein the determined writing track at least comprises the currently input writing track.
Step S203, adjusting the display attribute of the determined writing track, so that the adjusted writing track is displayed in a region except the predetermined margin region in the writing region, where the display attribute includes a position and/or a size.
The terminal device applied to the embodiment of the invention can be an electronic whiteboard, an electronic blackboard, a digital board, an intelligent conference flat board and other intelligent handwriting devices, and can also be a personal computer, a laptop computer, a cellular phone, a camera phone, an intelligent phone, a navigation device, an electronic mail receiving and sending device, a game console, a tablet computer, a wearable device, an intelligent television, a set-top box, an intelligent locomotive, an unmanned automobile or an intelligent home device with a handwriting function. The user can realize the input of the writing track by touching the writing area on the touch screen of the device with a finger or a touch pen, the input writing track can be displayed in the writing area in real time, and the display position is usually the position where the finger or the touch pen touches the writing area.
According to the embodiment of the invention, no matter which position of the writing area the user starts to write, when the user writes to the marginal area of the writing area, the user needs to quickly judge that the user writes to the marginal area, and adjust the input writing track as a response, so that sufficient writing space is provided for the user to continue writing. In order to make a determination quickly, an edge region serving as a basis for the determination may be set in advance, in some examples, a region near the boundary may be directly divided into predetermined edge regions, and the remaining region is referred to as a target region. When in actual division, the distance between the region point and the boundary can be calculated through the coordinates of each region point in the writing region and the coordinates of each boundary, the calculated distance mode is related to the actual shape of the writing region, if the writing region is circular or elliptical, the distance difference between the boundary and the center of the region point and the center of the circle is taken as the distance from the region point to the boundary, and the region point with the distance from the boundary within a preset distance range can be divided into preset edge regions.
If the writing area is a quadrangle or other polygon, the vertical distance between the area point and each boundary is calculated. In some examples, when the writing area is a quadrangle, the area point whose vertical distance from any boundary of the writing area is smaller than the first predetermined value is divided into predetermined edge areas, the divided predetermined edge areas are shown in fig. 2B, the predetermined edge areas are areas between the solid line and the dashed line in fig. 2B, and the areas other than the predetermined edge areas in the writing area may be referred to as target areas, which refer to areas surrounded by the dashed line in fig. 2B. The first predetermined value mentioned here may be set by the designer of the present solution according to the actual usage scenario, for example, the first predetermined value is 10% of the writing area boundary length.
In other examples, considering writing habits of users, such as chinese users, the users are generally used to write from left to right and from top to bottom, and if the user starts writing in the left edge region of the writing area, i.e., the writing trajectory is adjusted, a poor writing experience is caused to the user, so that the embodiment of the present invention may only locate the edge region conforming to the writing habits of the user to a predetermined edge region. For example: when the writing area is a quadrangle, the area near the right boundary and/or the bottom boundary is divided into predetermined edge areas.
In practical applications, the vertical distance from the right boundary of the writing area, the area point smaller than the second predetermined value, or the vertical distance from the bottom boundary of the writing area, the area point smaller than the third predetermined value, or both of the above area points may be divided into predetermined edge areas, as shown in fig. 2C, where the predetermined edge areas are the areas between the solid lines and the dashed lines in fig. 2C, and the areas except the predetermined edge areas in the writing area may be referred to as target areas and refer to the areas on the upper left side of the dashed lines in fig. 2C. The second predetermined value and the third predetermined value mentioned here may be set by the designer of the present solution according to actual usage scenarios, for example: the second predetermined value is 10% of the length of the bottom border of the writing area and the third predetermined value is 10% of the length of the right border of the writing area.
After the preset marginal area is divided, if a user contacts the writing area through a finger or a touch pen, a relevant program in the terminal equipment can detect writing operation, in order to judge whether the user writes in the preset marginal area, the position of a currently input writing track can be obtained, the position can reflect the specific contact position of the finger or the touch pen and the writing area, then whether the position of the writing track is in the preset marginal area is judged, and if the position of the writing track is in the preset marginal area, the user determines that the user writes in the preset marginal area. The currently input writing track mentioned herein refers to a writing track input during the process of pressing down the writing to lift up and stopping writing by a stylus or a finger of a user when the writing operation is detected.
Considering the correlation between the coordinates of the touch position of the touch signal and the trigger time, and the coordinates and time of the writing point of the currently input writing track, when the position of the currently input writing track is actually obtained, the touch signal triggered by the writing operation can be acquired, and the coordinates corresponding to the currently input writing track are determined according to the coordinates contained in the touch signal. When the coordinates corresponding to the currently input writing track are actually determined, different modes can be adopted according to actual scene requirements, and the following modes are listed:
the first method is as follows: in order to quickly determine whether the position of the writing track is in the predetermined edge area, the coordinate of the initial writing point of the writing track can be directly used for determining. And when the coordinates are determined, taking the coordinates of the initial writing point of the currently input writing track as the coordinates corresponding to the currently input writing track.
In a second mode, in some scenarios, in consideration of writing habits of users, strokes are generally written in a sequence from left to right or from top to bottom, and the determination may be made only by the end writing point of the writing track, and the coordinates of the end writing point of the currently input writing track are used as the coordinates corresponding to the currently input writing track when determining the coordinates.
In order to avoid that the user writes strokes in the sequence from the right direction or from the bottom to the top, only the end writing point is used for judging, and misjudgment is possible, the starting writing point and the end writing point of the writing track can be used for judging, and the coordinates of the starting writing point and the end writing point of the currently input writing track are used as the coordinates corresponding to the currently input writing track when the coordinates are determined.
The method is as follows: considering that the shape of the input writing trajectory may be irregular, the judgment is performed only with the start writing point and the end writing point, and a misjudgment may occur, so when determining the coordinates, the coordinates of all writing points of the currently input writing trajectory may be used as the coordinates corresponding to the currently input writing trajectory.
The method is as follows: in some scenarios, the duration of the process from the time when the stylus or the finger of the user presses and writes to the time when the stylus or the finger of the user lifts and stops writing may be relatively long, and there are many writing points included in the input writing track. In the determination, the determination is performed only with the maximum value and the minimum value of the coordinate range of the boundary coordinates.
In the embodiment of the present invention, the coordinates corresponding to the currently input writing track may be determined in any manner, or the coordinates may be determined in other manners, or the coordinates of the currently input writing track may be obtained in other manners besides the coordinates included in the touch signal.
For example, in some application scenarios, image acquisition equipment associated with the terminal equipment, such as a camera, is installed near the terminal equipment, and is used for shooting a touch screen of the terminal equipment, and when a finger or a stylus touches a writing area, a shot screen image may also include image data of the finger or the stylus, and the embodiment of the present invention may obtain the position of the currently input writing track through the following operations:
and receiving each frame of screen image transmitted after the writing operation of the associated image acquisition equipment is detected, and determining the coordinate corresponding to the currently input writing track by identifying an object used for triggering the writing track in each frame of screen image, wherein the object is a touch pen or a finger of a user.
For the determined coordinates, when judging whether the position is in a predetermined edge area of the writing area, judging whether the determined coordinates are in a coordinate range of the predetermined edge area, and if so, judging that the position of the currently input writing track is in the predetermined edge area.
In other examples, when determining whether the position is in a predetermined edge region of the writing area, it may also be determined whether the determined coordinate is within a coordinate range of the target area, and if not, it may be determined that the position of the currently input writing trajectory is in the predetermined edge region. The target area refers to an area within the writing area except for the predetermined edge area, which can be specifically seen in fig. 2B and 2C.
When the position of the currently input writing track is determined to be in the preset marginal area, if the coordinates corresponding to the currently input writing track are multiple, as long as any one coordinate is in the coordinate range of the preset marginal area or is not in the coordinate range of the target area.
If the coordinate corresponding to the currently input writing track is a coordinate in a coordinate range, the position of the currently input writing track can be determined to be in the predetermined marginal area as long as the coordinate range intersects with the coordinate range of the predetermined marginal area, or the coordinate range is not completely contained in the coordinate range of the target area.
When the position of the currently input writing track is judged to be in the preset edge area, the touch control pen or the fingers of the user are close to the edge of the writing area, so that the input writing track can be adjusted in order to avoid interruption of the writing of the user due to operations such as page turning, input track erasing and the like. In different application scenarios, the adjusted writing track and the predetermined adjustment strategy according to the adjustment may be different, and even the adjustment timing may be different, and several application scenarios are listed as follows:
scene one: in order not to affect the overall display effect of the displayed input trajectory in the writing area, the currently input writing trajectory and writing trajectories in the writing area except for the currently input writing trajectory may be used as writing trajectories to be adjusted. The predetermined adjustment strategy may be:
adjusting the display position of the determined writing track towards a direction away from the predetermined edge area;
adjusting a display position of the determined writing trajectory toward a center of the writing area.
In the above adjusting process, if the original distance between adjacent writing tracks is to be maintained, each writing track can be moved by the same adjusting amplitude. Such as: changing the coordinates of the writing points included in each writing trace by the same predetermined change amount; the abscissa of all the writing traces may also be changed at a predetermined abscissa change amount, and the ordinate of all the writing traces may be changed at a predetermined ordinate change amount, wherein the predetermined abscissa change amount is different from the predetermined ordinate change amount.
In addition, in the adjustment, in addition to directly changing the coordinates of the writing points included in the writing trace, the coordinates and the number of the writing points included in the writing trace may be indirectly changed by reducing the display size of the writing trace, or the coordinates of the writing points included in the writing trace may be indirectly changed by reducing the distance between adjacent writing traces.
In some examples, when the display position of the determined writing track is adjusted toward the center of the writing area, if a writing track is displayed at the center point, the size of the writing track may not be changed, the writing track of the center point may not be adjusted, the coordinates of writing points included in other writing tracks may be adjusted, or the distance between adjacent writing tracks may be adjusted.
Scene two: in order to reduce the time taken to adjust the writing trace, the writing trace to be adjusted may include the currently input writing trace and writing traces in sub-regions adjacent to the predetermined border region. The adjacent sub-areas mentioned here can be predetermined, for example: dividing a region point having a vertical distance within a predetermined range from an inner boundary (e.g., a dotted line in fig. 2B or 2A) of the predetermined edge region into adjacent sub-regions.
When the display attribute of the determined writing track is adjusted, the display position of the determined writing track can be adjusted towards a direction away from the preset edge area, and the display position of the determined writing track can also be adjusted towards the center of the writing area.
The specific adjustment method may refer to scenario one, which is not described herein again.
In addition, since not all writing traces displayed in the writing area are adjusted in this scenario, in order to avoid overlapping of the adjusted writing trace with an unadjusted writing trace, an area of the writing area that is far from the predetermined margin area and in which no writing trace is displayed may be detected during adjustment, and then the determined writing trace may be adjusted toward the detected area. After adjustment, whether the adjusted writing track is overlapped with the unadjusted writing track or not can be detected, if so, the overlapping can be avoided by reducing the display size of the adjusted writing track, or the overlapping of the writing tracks can be avoided by reducing the distance between the adjacent writing tracks.
For the first scene and the second scene, the operation of adjusting the display attribute of the determined writing track is performed, if the adjustment is performed before the currently input writing track is displayed, the display position of the writing track is inconsistent with the position where the stylus or the finger of the user contacts the writing area, and if the writing tracks input successively by the user are correlated with each other, in order to avoid a position error between the correlated writing tracks, after the user may input a writing track each time, the contact position of the stylus or the finger with the writing area needs to be changed greatly along with the display of the writing track, which may cause a poor experience to the user.
Scene three: in order to avoid a position error between the associated writing trajectories, in addition to the writing trajectory to be adjusted mentioned in the scenario one or the scenario two, the embodiment of the present invention may determine the associated writing trajectory input after the currently input writing trajectory as the writing trajectory to be adjusted. In one example, the associated writing track and the currently input writing track are components of the same target object, and the target object is a target graph or a target word. In another example, the associated writing trace includes content that is input within a predetermined period of time after the currently input writing trace. The predetermined period of time may be 3 seconds, and according to the predetermined period of time, the embodiment of the present invention may determine a writing trace input within three seconds after the currently input writing trace as the associated writing trace. In other examples, a writing track associated with the currently input writing track may also be defined according to an actual application scenario, which is not limited in this embodiment of the present invention.
When the display attribute of the determined writing track is adjusted, the display position of the determined writing track can be adjusted towards the direction far away from the preset edge area; the display position of the determined writing trajectory may also be adjusted toward the center of the writing area.
The specific adjustment method may refer to scenario one, which is not described herein again.
The operation of adjusting the display attribute of the determined writing trajectory may be performed after the associated writing trajectory is input.
Scene four: as shown in fig. 2B or 2C, the predetermined margin area has a wide range, and if the writing trajectory is adjusted, no matter where the coordinate of the currently input writing trajectory is, the coordinate is adjusted by adopting a uniform predetermined policy, repeated adjustment may be caused, and a lot of adjustment time may be consumed. For example: the position of the currently input writing track is at the upper right corner of the writing area in fig. 2B or 2C, the predetermined adjustment strategy is to adjust the display position of the determined writing track to the left, and the adjusted writing track can be displayed in an area outside the predetermined border area in the writing area.
However, in some cases, the position of the currently input writing track may be at the lower left corner of the writing area in fig. 2B or 2C, and when the predetermined adjustment strategy is to adjust the display position of the determined writing track to the left, the adjusted writing track may be away from the predetermined edge area, but may exceed the range of the writing area, and further, it is necessary to reduce the display size of the adjusted writing track, reduce the distance between adjacent writing tracks after adjustment, or move in another direction to display the adjusted writing track in an area outside the predetermined edge area in the writing area. Such an adjustment process takes a long time and occupies a large amount of device resources.
In view of the above situation, in the embodiment of the present invention, the writing area may be divided into a plurality of sub-areas, each sub-area including an area boundary corresponds to one adjustment strategy, and when the display attribute of the determined writing track is adjusted, the sub-area to which the position of the currently input writing track belongs may be determined first, the adjustment strategy corresponding to the determined sub-area is used as the predetermined adjustment strategy, and then the attribute of the determined writing track is adjusted, so that the adjusted writing track is displayed in the area except for the predetermined border area in the writing area.
When the sub-regions are specifically divided, the writing region and the predetermined edge region shown in fig. 2B may be divided, and fig. 2D to 2E illustrate a specific dividing process, the writing region shown in fig. 2B may be first equally divided into four regions, and after the division, as shown in fig. 2D, four regions of M1, M2, M3 and M4 may be included, and then each sub-region may be equally divided, as shown in fig. 2E, M1 may be equally divided into four sub-regions of M11, M12, M13 and M14, M2 may be equally divided into four sub-regions of M21, M22, M23 and M24, M3 may be equally divided into four sub-regions of M31, M32, M33 and M34, M4 may be equally divided into four sub-regions of M41, M42, M43 and M44, and finally the writing region shown in fig. 2B may be divided into 14 sub-regions shown in fig. 2E.
In this scheme, a designer may set different adjustment strategies for each sub-region adjacent to the predetermined edge region, such as: the sub-regions M11, M22, M33, and M44 may be referred to as a first sub-region, two adjacent boundaries of the first sub-region belong to two adjacent sides of a quadrangle (writing region), and the predetermined adjustment policy is: the display position of the determined writing trajectory is adjusted in a direction away from the intersection of the two adjacent edges (the intersection of the adjacent boundaries of the writing area in fig. 2E).
For example, sub-regions such as M12, M21, M13, M31, M34, M43, M42, and M24 may be referred to as a second type of sub-region, where only one boundary of the sub-region belongs to one side of the quadrangle, and the predetermined adjustment strategy may be: and adjusting the display position of the determined writing track towards a direction far away from the side of the quadrangle (the coincident side of each subarea and the writing area).
In addition, the adjustment strategy can be further subdivided, for example:
the adjustment strategy corresponding to the M11 sub-region is: and respectively adjusting the display position of the determined writing track to the right and downwards, wherein the specific adjustment range can be set according to actual needs, for example, the right adjustment range is set to be N% of the length of the low boundary of the writing area, and the downwards adjustment range is set to be N% of the length of the right boundary of the writing area, wherein the specific adjustment range can be set according to needs, for example, set to be 10.
The adjustment strategy corresponding to the M12 sub-region is: and downwards adjusting the display position of the determined writing track, wherein the specific adjustment range can be set according to actual needs, for example, the downwards adjustment range is set to be N% of the length of the right boundary of the writing area, and wherein the specific adjustment range can be set according to needs, for example, set to be 10.
The adjustment strategy corresponding to the M13 sub-region is: and adjusting the display position of the determined writing track to the right, wherein the specific adjustment range can be set according to actual needs, for example, the right adjustment range is set to be N% of the length of the low boundary of the writing area, and wherein the right adjustment range can be set according to needs, for example, set to be 10.
The adjustment strategy corresponding to the M21 sub-region is: and downwards adjusting the display position of the determined writing track, wherein the specific adjustment range can be set according to actual needs, for example, the downwards adjustment range is set to be N% of the length of the right boundary of the writing area, and wherein the specific adjustment range can be set according to needs, for example, set to be 10.
The adjustment strategy corresponding to the M22 sub-region is: and respectively adjusting the display position of the determined writing track leftwards and downwards, wherein the specific adjustment range can be set according to actual needs, for example, the leftward adjustment range is set to be N% of the length of the low boundary of the writing area, and the downwards adjustment range is set to be N% of the length of the right boundary of the writing area, wherein the specific adjustment range can be set according to needs, for example, set to be 10.
The adjustment strategy corresponding to the M24 sub-region is: and adjusting the display position of the determined writing track leftwards, wherein the specific adjustment range can be set according to actual needs, for example, the leftward adjustment range is set to be N% of the length of the low boundary of the writing area, and can be set according to needs, for example, set to be 10.
The adjustment strategy corresponding to the M31 sub-region is: and adjusting the display position of the determined writing track to the right, wherein the specific adjustment range can be set according to actual needs, for example, the right adjustment range is set to be N% of the length of the low boundary of the writing area, and wherein the right adjustment range can be set according to needs, for example, set to be 10.
The adjustment strategy corresponding to the M33 sub-region is: and respectively adjusting the display position of the determined writing track to the right and upwards, wherein the specific adjustment range can be set according to actual needs, for example, the right adjustment range is set to be N% of the length of the low boundary of the writing area, and the upwards adjustment range is set to be N% of the length of the right boundary of the writing area, wherein the specific adjustment range can be set according to needs, for example, set to be 10.
The adjustment strategy corresponding to the M34 sub-region is: and adjusting the display position of the determined writing track upwards, wherein the specific adjustment range can be set according to actual needs, for example, the upward adjustment range is set to be N% of the length of the right boundary of the writing area, and wherein the specific adjustment range can be set according to needs, for example, set to be 10.
The adjustment strategy corresponding to the M42 sub-region is: and adjusting the display position of the determined writing track to the right, wherein the specific adjustment range can be set according to actual needs, for example, the right adjustment range is set to be N% of the length of the low boundary of the writing area, and wherein the right adjustment range can be set according to needs, for example, set to be 10.
The adjustment strategy corresponding to the M43 sub-region is: and adjusting the display position of the determined writing track upwards, wherein the specific adjustment range can be set according to actual needs, for example, the upward adjustment range is set to be N% of the length of the right boundary of the writing area, and wherein the specific adjustment range can be set according to needs, for example, set to be 10.
The adjustment strategy corresponding to the M44 sub-region is: and respectively adjusting the display position of the determined writing track leftwards and upwards, wherein the specific adjustment range can be set according to actual needs, for example, the leftward adjustment range is set to be N% of the length of the low boundary of the writing area, and the upwards adjustment range is set to be N% of the length of the right boundary of the writing area, wherein the specific adjustment range can be set according to needs, for example, set to be 10.
In scenario four, if the position of the adjusted writing track is not within the target area (as shown in fig. 2B), the display size of the adjusted writing track may be reduced again, and/or the distance between adjacent writing tracks may be reduced again, so that the writing track after adjustment is displayed within the target area again. The specific reduction range can be set by the designer according to the actual requirement, such as setting as N%
In addition, in the scene four, the writing trajectory to be adjusted and the execution time of the adjustment operation may refer to the scene one to the scene four, which are not described herein again, in other embodiments, the adjustment strategy, the writing trajectory to be adjusted, and the execution time of the adjustment operation mentioned in any one of the scene one to the scene four may be combined and collocated according to actual needs, and another adjustment strategy that can display the adjusted writing trajectory in a region other than the predetermined region in the writing region may be adopted, or the other adjustment strategy may be combined and collocated with the adjustment strategy, the writing trajectory to be adjusted, and the execution time of the adjustment operation mentioned in any one of the scene one to the scene four.
After the display attribute of the writing track is adjusted, the touch screen may display the adjusted writing track in an area outside the predetermined margin area according to the adjusted display attribute.
An example of the application is illustrated below with reference to fig. 3A to 3H.
In this example, the terminal device may be an electronic whiteboard, the writing area, the predetermined border area, and the target area are shown in fig. 2B, and after the designer of the present solution divides the writing area, the sub-areas of the writing area are shown in fig. 2E, the sub-areas of M11, M22, M33, and M44 are referred to as first-type sub-areas, and the sub-areas of M12, M21, M13, M31, M34, M43, M42, and M24 are referred to as second-type sub-areas.
The adjustment strategy corresponding to the first-class sub-region may be: and adjusting the display position of the determined writing track towards a direction far away from the intersection point of the two adjacent edges. The adjustment policy corresponding to the second type of sub-region may be: and adjusting the display position of the determined writing track towards the direction far away from the side of the quadrangle.
After a user' S finger triggers a writing area, the related art in the terminal device may detect a writing operation, and obtain a position of a currently input writing trajectory (step S301), where the currently input writing trajectory is, as shown in fig. 3B, "-" in a predetermined edge area, and has been displayed at a position after the "electronic whiteboard is performed" by the input writing trajectory, and determine that the currently input writing trajectory is in the predetermined edge area by performing an operation of determining whether the position is in the predetermined edge area (S302), and may determine all writing trajectories in the writing area as writing trajectories to be adjusted (step S303). Then, by determining the sub-region to which the position belongs (step S304) and acquiring the adjustment strategy corresponding to the determined sub-region as the predetermined adjustment strategy (step S305), the predetermined adjustment strategy can be determined. In step S304, the coordinates representing the position and the coordinate ranges of the sub-regions may be compared, and if the position is within the coordinate range of any sub-region, it is determined that the position belongs to the sub-region.
As shown in fig. 3B, it may be determined that the sub-area to which the adjustment policy belongs is the first type sub-area, and the predetermined adjustment policy is: and adjusting the display position of the determined writing track towards a direction far away from the intersection point of the two adjacent edges. I.e. moving the determined writing trajectory in a direction away from the vertex in the upper right corner of the writing area.
Then, the display attribute of the determined writing track is adjusted according to the predetermined adjustment policy (step S306), and the specific adjustment process may refer to the embodiments shown in fig. 2A to fig. 2E, which are not described herein again, and if the writing track before adjustment is shown in fig. 3B, the writing track after adjustment may be shown in fig. 3C.
In some examples, the determined writing track has more contents, and after step S306 is executed, a part of the writing track may exceed the target area, so that in the embodiment of the present invention, after step S306, an operation of determining whether the adjusted writing track exceeds the target area may be executed (step S307), and if not, the adjustment is terminated.
In some scenarios, the adjusted writing trajectory may exceed the target area, for example, as shown in fig. 3D, the determined writing trajectory includes "loop-through the electronic whiteboard", and as shown in fig. 3E, the adjusted writing trajectory "loop" exceeds the target area. In order to display the adjusted writing trajectory in the target area, the adjusted writing trajectory may be adjusted again according to a strategy of reducing the size of the adjusted writing trajectory and the adjacent writing trajectory after adjustment (step S308). For specific adjustment, reference may be made to the embodiments related to fig. 2A to fig. 2E, which are not described herein again, and the adjusted writing trajectory is displayed in the target area as shown in fig. 3F.
In addition, in the embodiment of the present invention, the writing trajectory displayed in the writing area, for example, the writing trajectory "proceed to the electronic whiteboard-" in fig. 3B, and the associated writing trajectory that forms the word "track" with the current writing trajectory "-" may be determined as the writing trajectory to be adjusted, and after the associated writing trajectory is input, the determined writing trajectory is adjusted, where the writing trajectory before adjustment is "proceed to the electronic whiteboard" as shown in fig. 3G, and the writing trajectory after adjustment is "proceed to the electronic whiteboard" as shown in fig. 3H, and "proceed to the electronic whiteboard" displayed in the target area.
It can be known from the foregoing embodiment that, in the scheme provided by the present invention, when a writing operation is detected, the position of the currently input writing trajectory may be acquired, if the acquired position is in a predetermined marginal area of a writing area, an attribute of a trajectory to be adjusted, which at least includes the currently input writing trajectory, may be adjusted according to a predetermined adjustment policy, and the adjusted writing trajectory is displayed in an area other than the predetermined marginal area in the writing area. Therefore, according to the scheme of the invention, when the user writes to the preset edge area, the input writing track can be adjusted to the area outside the preset edge area for displaying, the preset edge area is vacated for the user to write, and the user does not need to change pages or move positions, so that sufficient writing space can be provided for the user, and the writing efficiency of the user is further improved.
The designer of the scheme can design a scheme for executing the embodiment of the invention after the writing function of the terminal equipment is started, and can also design a starting button for starting the scheme for executing the embodiment of the invention. It is believed that the implementation is not required and the implementation of the solution of the embodiment of the present invention may be terminated by a designed off button.
Corresponding to the embodiments of the method described above, the invention also provides embodiments of the apparatus.
Referring to fig. 4, fig. 4 is a block diagram illustrating an apparatus for adjusting a writing trace according to an exemplary embodiment of the present invention, which may be applied to a smart device supporting a handwriting function, including: a location module 410, a determination module 420, and an adjustment module 430.
The positioning module 410 is configured to, when a writing operation is detected, obtain a position of a currently input writing trajectory.
A determining module 420, configured to determine a writing trajectory to be adjusted when the position is in a predetermined marginal area of a writing area, where the determined writing trajectory at least includes the currently input writing trajectory.
An adjusting module 430, configured to adjust a display attribute of the determined writing trajectory, so that the adjusted writing trajectory is displayed in a region other than the predetermined border region in the writing region, where the display attribute includes a position and/or a size.
In some examples, the location module 410 may include:
the coordinate acquisition module is used for acquiring a touch signal triggered by the writing operation and determining a coordinate corresponding to the currently input writing track according to the coordinate contained in the touch signal; or,
and the coordinate identification module is used for receiving each frame of screen image transmitted after the writing operation of the associated image acquisition equipment is detected, and determining the coordinate corresponding to the currently input writing track by identifying an object used for triggering the writing track in each frame of screen image, wherein the object is a touch pen or a finger of a user.
As an example, the apparatus for adjusting a writing track according to an embodiment of the present invention may further include a determining module, where the determining module is configured to:
judging whether the determined coordinates are in the coordinate range of the preset edge area;
determining that the location is in the predetermined edge region if the determined coordinates are within the coordinate range.
As an example, the apparatus for adjusting a writing track according to an embodiment of the present invention may further include a determining module, where the determining module is configured to:
judging whether the determined coordinates are in a coordinate range of a target area, wherein the target area refers to an area except the predetermined edge area in the writing area;
determining that the location is in the predetermined edge region if the determined coordinates are not within the coordinate range.
As an example, the determined coordinates include:
coordinates of a starting writing point of the currently input writing track; and/or the presence of a gas in the gas,
coordinates of a termination writing point of the currently input writing trajectory.
As an example, the determined coordinates include coordinates of all writing points of the currently input writing trajectory.
As an example, the determined coordinates include boundary coordinates of a minimum bounding rectangular area of the currently input writing trajectory.
In other examples, the determined writing trajectory further includes:
a writing trajectory in a sub-area adjacent to the predetermined border area.
In other examples, the determined writing trajectory further includes:
writing tracks in the writing area except for the currently input writing track.
In other examples, the adjusting module 430 may be configured to adjust the display property of the determined writing trajectory after displaying the currently input writing trajectory and before displaying the next writing trajectory.
In other examples, the determined writing trajectory further includes:
an associated writing trace input after the currently input writing trace;
the adjustment module 430 may be configured to adjust the display property of the determined writing trajectory after the input of the associated writing trajectory.
In other examples, the associated writing trajectory and the currently input writing trajectory are components of the same target object, and the target object is a target graph or a target word; or,
the associated writing trace includes content entered within a predetermined period of time after the currently entered writing trace.
In other examples, when the writing area is a quadrangle, the predetermined edge area includes:
a region point having a vertical distance from any one boundary of the writing region smaller than a first predetermined value.
In other examples, when the writing area is a quadrangle, the predetermined edge area includes:
a region point having a vertical distance from a right boundary of the writing region smaller than a second predetermined value; and/or the presence of a gas in the gas,
a region point having a vertical distance from a bottom boundary of the writing region less than a third predetermined value.
In other examples, when the writing area is a quadrilateral formed by a plurality of sub-areas, the adjusting module 430 may be configured to:
determining a sub-region decision to which the location belongs;
when two adjacent boundaries of the determined sub-area belong to two adjacent edges of the quadrangle, adjusting the display position of the determined writing track to a direction away from the intersection point of the two adjacent edges;
and when only one boundary of the determined sub-area belongs to one side of the quadrangle, adjusting the display position of the determined writing track to the direction far away from the side of the quadrangle.
In other examples, if the adjusted writing trajectory exceeds the area outside the predetermined margin area, the adjusting module 430 may further be configured to:
narrowing the determined writing track; and/or
Decreasing a pitch of adjacent ones of the determined writing trajectories.
In other examples, the adjustment module 430 may be configured to:
adjusting the display position of the determined writing track towards a direction away from the predetermined edge area;
adjusting a display position of the determined writing trajectory toward a center of the writing area.
The implementation process of the functions and actions of each unit (or module) in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units or modules described as separate parts may or may not be physically separate, and the parts displayed as the units or modules may or may not be physical units or modules, may be located in one place, or may be distributed on a plurality of network units or modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the invention. One of ordinary skill in the art can understand and implement it without inventive effort.
The embodiment of the device for adjusting the writing track can be applied to terminal equipment. In particular, the method can be implemented by a computer chip or an entity, or by a product supporting a handwriting function. In a typical implementation, the terminal device is a computer, and the specific form of the computer may be an intelligent handwriting device such as an electronic whiteboard, an electronic blackboard, a digitizer, an intelligent conference tablet, or the like, and may also be a personal computer, a laptop computer, a cellular phone, a camera phone, an intelligent phone, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device, an intelligent television, a set-top box, an intelligent locomotive, an unmanned vehicle, an intelligent home device, or a combination of any of these devices.
The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and is formed by reading, by a processor of the electronic device, corresponding computer program instructions in a readable storage medium such as a nonvolatile memory into a memory for operation, as a logical device. From a hardware aspect, as shown in fig. 5, a hardware structure diagram of a terminal device where the apparatus for adjusting a writing trace according to the present invention is located is shown, except for the processor, the memory, the network interface, and the nonvolatile memory shown in fig. 5, the terminal device where the apparatus is located in the embodiment may also include other hardware according to an actual function of the terminal device, which is not described again. Wherein the memory and the non-volatile memory are computer readable memories, and the memory of the terminal device can store program instructions executable by the processor; the processor may be coupled to the memory for reading the program instructions stored on the storage medium and in response performing the operations of the method for adjusting a writing trajectory of any of the above embodiments.
In other embodiments, the operations performed by the processor may refer to the description related to the above embodiments of the method for adjusting the writing track, which is not repeated herein.
In addition, the embodiment of the present invention also provides a machine-readable storage medium (a memory of an electronic device), where the readable storage medium stores program instructions, where the program instructions include instructions corresponding to the steps of the method for adjusting a writing trajectory described above. When executed by one or more processors, cause a terminal device to perform the above-described method of adjusting a writing trajectory.
Embodiments of the invention may take the form of a computer program product embodied on one or more readable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having program code embodied therein. Computer-usable readable storage media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of machine-readable storage media include, but are not limited to: phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technologies, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic tape storage or other magnetic storage devices, or any other non-transmission medium, may be used to store information that may be accessed by a computing device.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (19)

1. A method of adjusting a writing trajectory, comprising the steps of:
when the writing operation is detected, acquiring the position of a currently input writing track;
if the position is in a preset edge area of a writing area, determining a writing track to be adjusted, wherein the writing area further comprises other writing tracks except the currently input writing track, and the determined writing track at least comprises the currently input writing track; the writing area is a quadrangle formed by a plurality of sub-areas;
adjusting the display attribute of the determined writing track so that the adjusted writing track is displayed in the writing area except the predetermined margin area, comprising: determining a sub-area to which the position belongs, and if two adjacent boundaries of the determined sub-area belong to two adjacent edges of the quadrangle, adjusting the display position of the determined writing track in a direction away from the intersection point of the two adjacent edges; if only one boundary of the determined sub-area belongs to one side of the quadrangle, the display position of the determined writing track is adjusted towards the direction far away from the side of the quadrangle;
wherein the display attribute comprises a position and/or a size.
2. The method of claim 1, wherein the obtaining the position of the currently input writing trajectory comprises:
acquiring a touch signal triggered by the writing operation, and determining a coordinate corresponding to the currently input writing track according to a coordinate contained in the touch signal; or,
and receiving each frame of screen image transmitted after the writing operation of the associated image acquisition equipment is detected, and determining the coordinate corresponding to the currently input writing track by identifying an object used for triggering the writing track in each frame of screen image, wherein the object is a touch pen or a finger of a user.
3. The method of claim 2, wherein the determined coordinates comprise:
coordinates of a starting writing point of the currently input writing track; and/or the presence of a gas in the gas,
coordinates of a termination writing point of the currently input writing trajectory.
4. The method of claim 2, wherein the determined coordinates comprise coordinates of all writing points of the currently input writing trajectory.
5. The method of claim 2, wherein the determined coordinates comprise boundary coordinates of a minimum bounding rectangular area of the currently input written trace.
6. The method of claim 2, further comprising:
judging whether the determined coordinates are in the coordinate range of the preset edge area;
determining that the location is in the predetermined edge region if the determined coordinates are within the coordinate range.
7. The method of claim 2, wherein the method comprises:
judging whether the determined coordinates are in a coordinate range of a target area, wherein the target area refers to an area except the predetermined edge area in the writing area;
determining that the location is in the predetermined edge region if the determined coordinates are not within the coordinate range.
8. The method of claim 1, wherein the determined writing trajectory further comprises:
a writing trajectory in a sub-area adjacent to the predetermined border area.
9. The method of claim 1, wherein the determined writing trajectory further comprises:
writing other writing tracks in the writing area except for the currently input writing track.
10. The method of claim 9, wherein the step of adjusting the display property of the determined writing trajectory is performed after displaying the currently input writing trajectory and before displaying a next writing trajectory.
11. The method of claim 9, wherein the determined writing trajectory further comprises:
an associated writing trace input after the currently input writing trace;
the step of adjusting the display attribute of the determined writing trajectory is performed after the input of the associated writing trajectory.
12. The method of claim 9, wherein:
the associated writing track and the currently input writing track are components of the same target object, and the target object is a target graph or a target word; or,
the associated writing trace includes content entered within a predetermined period of time after the currently entered writing trace.
13. The method of claim 1, wherein when the writing area is a quadrangle, the predetermined edge area comprises:
a region point having a vertical distance from any one boundary of the writing region smaller than a first predetermined value.
14. The method of claim 1, wherein when the writing area is a quadrangle, the predetermined edge area comprises:
a region point having a vertical distance from a right boundary of the writing region smaller than a second predetermined value; and/or the presence of a gas in the gas,
a region point having a vertical distance from a bottom boundary of the writing region less than a third predetermined value.
15. The method of any one of claims 1 to 14, wherein adjusting the display properties of the determined writing trajectory comprises:
adjusting the display position of the determined writing track towards a direction away from the predetermined edge area; or,
adjusting a display position of the determined writing trajectory toward a center of the writing area.
16. The method of claim 1, wherein if the adjusted writing trajectory exceeds the area outside the predetermined margin area, the adjusting the display properties of the determined writing trajectory comprises:
narrowing the determined writing track; and/or
Decreasing a pitch of adjacent ones of the determined writing trajectories.
17. An apparatus for adjusting a writing trajectory, comprising:
the positioning module is used for acquiring the position of the currently input writing track when the writing operation is detected;
a determining module, configured to determine a writing trajectory to be adjusted when the position is in a predetermined marginal area of a writing area, where the writing area further includes other writing trajectories except the currently input writing trajectory, and the determined writing trajectory at least includes the currently input writing trajectory; the writing area is a quadrangle formed by a plurality of sub-areas;
an adjusting module, configured to adjust a display attribute of the determined writing trajectory so that the adjusted writing trajectory is displayed in a region other than the predetermined margin region in the writing region, including: determining a sub-area to which the position belongs, and if two adjacent boundaries of the determined sub-area belong to two adjacent edges of the quadrangle, adjusting the display position of the determined writing track in a direction away from the intersection point of the two adjacent edges; and if only one boundary of the determined sub-area belongs to one side of the quadrangle, adjusting the display position of the determined writing track in a direction away from the side of the quadrangle.
18. A terminal device, comprising:
a processor;
a memory storing processor-executable instructions;
wherein the processor is coupled to the memory for reading program instructions stored by the memory and, in response, performing operations in the method of any of claims 1-16.
19. One or more machine-readable storage media having instructions stored thereon, which when executed by one or more processors, cause a terminal device to perform operations in a method as recited in any one of claims 1-16.
CN201810094054.7A 2018-01-31 2018-01-31 Method, device and equipment for adjusting writing track and readable storage medium Active CN108334229B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810094054.7A CN108334229B (en) 2018-01-31 2018-01-31 Method, device and equipment for adjusting writing track and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810094054.7A CN108334229B (en) 2018-01-31 2018-01-31 Method, device and equipment for adjusting writing track and readable storage medium

Publications (2)

Publication Number Publication Date
CN108334229A CN108334229A (en) 2018-07-27
CN108334229B true CN108334229B (en) 2021-12-14

Family

ID=62926931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810094054.7A Active CN108334229B (en) 2018-01-31 2018-01-31 Method, device and equipment for adjusting writing track and readable storage medium

Country Status (1)

Country Link
CN (1) CN108334229B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109062497A (en) * 2018-08-17 2018-12-21 石家庄科达文教用品有限公司 synchronous writing method, device and terminal device
CN110263519B (en) * 2019-05-31 2023-01-17 联想(北京)有限公司 Information processing method and electronic equipment
CN110515528A (en) * 2019-07-18 2019-11-29 同辉佳视(北京)信息技术股份有限公司 Touch-control pen interaction method, touch screen control method and touch screen
CN110941383B (en) * 2019-10-11 2021-08-10 广州视源电子科技股份有限公司 Double-screen display method, device, equipment and storage medium
CN112650459A (en) * 2019-10-11 2021-04-13 张雯 Eye facility and method for learning in remote
CN113676709B (en) * 2020-05-14 2023-10-27 聚好看科技股份有限公司 Intelligent projection equipment and multi-screen display method
CN112382147B (en) * 2020-11-13 2022-07-05 北京安博盛赢教育科技有限责任公司 Method, device, medium and electronic equipment for adjusting function display area
CN114185453A (en) * 2021-12-06 2022-03-15 深圳市奇脉电子技术有限公司 Method for realizing two-dimensional control of brightness and color temperature based on touch screen

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101354882A (en) * 2007-07-24 2009-01-28 讯连科技股份有限公司 Systems and methods for automatic adjustment of text
CN102023759A (en) * 2010-11-23 2011-04-20 广东威创视讯科技股份有限公司 Writing and locating method of active pen
CN102446055A (en) * 2010-09-30 2012-05-09 阿尔派株式会社 Character handwriting input method and device
CN103729074A (en) * 2013-12-26 2014-04-16 三星电子(中国)研发中心 Device, system and method for recognizing handwritings
CN104199566A (en) * 2014-08-21 2014-12-10 三星电子(中国)研发中心 Handwriting synchronizing device and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106598289B (en) * 2016-10-21 2019-07-09 广州视源电子科技股份有限公司 Method and system for expanding written page

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101354882A (en) * 2007-07-24 2009-01-28 讯连科技股份有限公司 Systems and methods for automatic adjustment of text
CN102446055A (en) * 2010-09-30 2012-05-09 阿尔派株式会社 Character handwriting input method and device
CN102023759A (en) * 2010-11-23 2011-04-20 广东威创视讯科技股份有限公司 Writing and locating method of active pen
CN103729074A (en) * 2013-12-26 2014-04-16 三星电子(中国)研发中心 Device, system and method for recognizing handwritings
CN104199566A (en) * 2014-08-21 2014-12-10 三星电子(中国)研发中心 Handwriting synchronizing device and method

Also Published As

Publication number Publication date
CN108334229A (en) 2018-07-27

Similar Documents

Publication Publication Date Title
CN108334229B (en) Method, device and equipment for adjusting writing track and readable storage medium
US20220121354A1 (en) Method and device for controlling interactive white board
CN110045840B (en) Writing track association method, device, terminal equipment and storage medium
US20170109917A1 (en) Method and device for erasing a writing path on an infrared electronic white board, and a system for writing on an infrared electronic white board
CN110427601B (en) Form processing method and device, intelligent interactive panel and storage medium
US9922014B2 (en) Method and apparatus for making contents through writing input on touch screen
CN110928475B (en) Page interaction method, device, equipment and storage medium of intelligent interaction panel
WO2021068366A1 (en) Writing operation method and device for intelligent interactive whiteboard, apparatus, and storage medium
CN110941382B (en) Display operation method, device, equipment and storage medium of intelligent interactive panel
WO2014134939A1 (en) Method, apparatus and computer readable storage medium for displaying sidebar information
CN112596661A (en) Writing track processing method and device and interactive panel
CN103257735A (en) Stroke presentation method for handwriting input and electronic device
CN110297558B (en) Multi-touch control method and device, intelligent interaction panel and storage medium
US20140164993A1 (en) Method and electronic device for enlarging and displaying contents
CN110795015A (en) Operation prompting method, device, equipment and storage medium
CN105278825A (en) Screen capturing method and mobile terminal
WO2020211369A1 (en) Writing track adjustment method and apparatus, terminal device and storage medium
CN113311981A (en) Erasing method and device, intelligent terminal and computer readable storage medium
CN111428455B (en) Form management method, device, equipment and storage medium
CN109144397B (en) Erasing method and device and intelligent interactive panel
JP4886570B2 (en) Information processing apparatus, information processing method, and program
US20140250407A1 (en) Method, apparatus and computer readable storage medium for displaying sidebar information
CN113849106B (en) Page turning handwriting processing method, device, electronic device and storage medium
CN111506215B (en) Method and device for erasing screen content
CN116048339A (en) Note playback method, device, medium, electronic ink screen equipment and product

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