WO2022242013A1 - 笔迹擦除方法、装置、交互平板及存储介质 - Google Patents

笔迹擦除方法、装置、交互平板及存储介质 Download PDF

Info

Publication number
WO2022242013A1
WO2022242013A1 PCT/CN2021/122843 CN2021122843W WO2022242013A1 WO 2022242013 A1 WO2022242013 A1 WO 2022242013A1 CN 2021122843 W CN2021122843 W CN 2021122843W WO 2022242013 A1 WO2022242013 A1 WO 2022242013A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch
point
handwriting
key
information
Prior art date
Application number
PCT/CN2021/122843
Other languages
English (en)
French (fr)
Inventor
林德熙
Original Assignee
广州视源电子科技股份有限公司
广州视睿电子科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州视源电子科技股份有限公司, 广州视睿电子科技有限公司 filed Critical 广州视源电子科技股份有限公司
Priority to KR1020237021725A priority Critical patent/KR20230109757A/ko
Priority to EP21940459.7A priority patent/EP4343542A1/en
Priority to JP2023545828A priority patent/JP2024504193A/ja
Publication of WO2022242013A1 publication Critical patent/WO2022242013A1/zh
Priority to US18/370,253 priority patent/US20240004537A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • 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/042Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means
    • G06F3/0428Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means by sensing at the edges of the touch surface the interruption of optical paths, e.g. an illumination plane, parallel to the touch surface which may be virtual
    • 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
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04808Several contacts: gestures triggering a specific function, e.g. scrolling, zooming, right-click, when the user establishes several contacts with the surface simultaneously; e.g. using several fingers or a combination of fingers and pen

Definitions

  • the present application relates to the technical field of touch writing of electronic equipment, in particular to a handwriting erasing method, device, interactive tablet and storage medium.
  • the touch frame is an important hardware component of the interactive tablet, which is mainly used to respond to the user's touch operation on the interactive tablet.
  • Most of the touch frames used in the interactive panels on the market are non-high-precision touch frames.
  • the defects of this type of non-high-precision touch frames are mainly manifested in: it is difficult to judge the type of writing pen; it is difficult to ensure that the same writing pen can be generated during writing.
  • the touch area is the same; it is difficult to determine whether the touch medium is a writing pen or a finger or an eraser; it is also difficult to determine the touch rotation angle.
  • the inventors found that there are currently the following defects: the software level of the interactive panel is difficult to maximize the use of the touch point information fed back by the touch frame, resulting in performance effects related to touch on the interactive panel (such as for the already formed The erasing effect when erasing the written handwriting) has not been significantly improved.
  • the embodiment of the present application provides a handwriting erasing method and device, an interactive tablet and a storage medium, which improves the handwriting erasing effect on the interactive tablet.
  • the embodiment of the present application provides a handwriting erasing method, which is applied to an interactive tablet, and the touch response accuracy of the touch frame equipped on the interactive tablet reaches a set accuracy range, and the method includes:
  • Receive handwriting erasing instruction enter handwriting erasing mode, described handwriting erasing instruction is formed by the trigger of user;
  • the handwriting to be erased in the interface is erased using an erasing geometry that matches the touch object;
  • the erasing geometry matching the touch object is reflected by the touch area of the touch object acting on the display screen;
  • the erasing geometry includes rounded rectangle, circle and any irregular figure.
  • the obtaining the touch point information fed back through the touch frame includes:
  • one touch point information corresponds to one touch point
  • the touch point information includes: touch point coordinates, touch point height and width, and touch rotation angle.
  • Each touch point information is processed so that each touch point information has a unified unit format and data structure.
  • processing of each touch point information includes:
  • the unit of each data information in the touch point information is converted into a unified set unit format
  • the data structure corresponding to the set unit format is used to record the touch point information.
  • the handwriting to be erased in the interface is erased using an erasing geometry that matches the touch object, including:
  • the obtained touch point information is used to determine the erasing geometry matched by the touch object during the movement, and to determine the movement contour geometry formed by the pair of adjacent touch points during the movement under the erasing geometry, include:
  • the key touch point information is touch point information of a touch point generated when the touch object first contacts with the display screen during movement ;
  • a moving contour geometric figure formed by the pair of adjacent touch points relative to the erasing geometric form is determined.
  • the rounded rectangle includes a rectangle and rounded corners with each vertex of the rectangle as the center;
  • the determining the key geometric information of each touch point in the adjacent touch point pair relative to the erasing geometry by analyzing the touch point information corresponding to the adjacent touch point pair includes:
  • each rounded corner in the first geometric figure to be constructed includes two key tangent points; each key tangent point is a corresponding tangent point when the rounded corner is connected with an adjacent rounded corner by a tangent.
  • determining the moving contour geometric figure formed by the pair of adjacent touch points in the erasing geometric form includes:
  • each of the key circular areas, each of the circumscribing rectangular areas, and the vertex-connected closed area forms a first moving contour figure formed by the pair of adjacent touch points relative to the rounded rectangle.
  • analyzing each handwriting point included in the handwriting to be erased, performing a hit test on each of the handwriting points and the moving outline geometric figure, and determining the target handwriting to be erased that falls into the moving outline geometric figure include:
  • the handwriting formed based on each handwriting point in the first target point set is determined as the target handwriting to be erased falling into the moving contour geometric figure.
  • the first hit test of the handwriting point and each of the circumscribed rectangular areas includes:
  • the second hit test between the handwriting point and each of the key circular areas includes:
  • the method further includes:
  • a hit test is performed between each handwriting point included in the handwriting to be erased and the static rounded rectangle, and the handwriting to be erased that falls into the static rounded rectangle is erased in the interface.
  • the static rounded rectangle includes two static rectangular areas and four static circular areas;
  • performing a hit test on each handwriting point included in the handwriting to be erased and the static rounded rectangle, and performing a hit test on the handwriting to be erased that falls into the static rounded rectangle in the interface Erase including:
  • the handwriting point is hit-tested with two static rectangular areas and four circular areas respectively;
  • the erasing geometry is a circle
  • Key geometric information of the form including:
  • touch point coordinates, touch width, and touch height in the touch point information corresponding to each touch point in the adjacent touch point pair determine the circle center coordinates and the key intersection coordinates of the corresponding second geometric figure to be constructed;
  • the coordinates of the center of the circle corresponding to each touch point and the coordinates of each key intersection point are regarded as key geometric information relative to the second geometric figure to be constructed.
  • Intersection coordinates including:
  • Straight lines perpendicular to the line connecting the centers of the circles are respectively constructed through the coordinates of the centers of the circles, and the coordinates of the key intersection points determined after each straight line intersects with the corresponding second circle to be constructed are obtained.
  • determining the moving contour geometric figure formed by the pair of adjacent touch points in the erasing geometric form includes:
  • Each of the second geometric figures to be constructed is combined with the key intersection connection area to form a second moving contour figure formed by the pair of adjacent touch points relative to the circle.
  • analyzing each handwriting point included in the handwriting to be erased, performing a hit test on each of the handwriting points and the moving outline geometric figure, and determining the target handwriting to be erased that falls into the moving outline geometric figure include:
  • the handwriting formed based on each handwriting point in the second target point set is determined as the target handwriting to be erased falling into the moving contour geometric figure.
  • performing the third hit test on the connection area between the handwriting point and the key intersection includes:
  • the key intersection connection area is a rectangular area
  • select two rectangular side vectors formed by a vertex from the rectangular area and perform the described step by comparing the handwriting point with each of the rectangular side vectors.
  • a hit test between the handwriting point and the rectangular area otherwise,
  • a hit test between the handwriting point and the rectangular area is performed by comparing the handwriting point with each of the edge vectors to be compared.
  • the graphic representation information of each combined graphic and each key track point are regarded as key geometric information of the touch point relative to the third geometric figure to be constructed.
  • determining the key track point existing on the third geometric figure to be constructed relative to the touch point and the graphic representation of the third geometric figure to be constructed information including:
  • the third geometric figure to be constructed contains only polyline polygons
  • the third geometric figure to be constructed includes a polyline polygon and a target circle
  • the second graphical representation of the shape is the information.
  • the determining the key trajectory point of the polyline polygon relative to the touch point through the corresponding touch point information, and obtaining the first graphic representation information representing the polyline polygon includes:
  • touch point coordinates, touch height and touch width in the corresponding touch point information determine the polyline center point coordinates and each polyline vertex coordinates of the polyline polygon as the first graphic representation information;
  • the key track points satisfying the filter condition of the track points are selected from the coordinates of the vertices of the polylines.
  • the determining the key trajectory point from the polyline polygon and the key circle by using the corresponding touch point information, and obtaining the second graphic representation information representing the polyline polygon and the key circle includes:
  • touch point coordinates, touch height and touch width in the corresponding touch point information determine the polyline center point coordinates and the polyline vertex coordinates of the polyline polygon, as well as the key circle center point coordinates and circle radius, and use them as the first 2.
  • Graphic representation of information
  • the coordinates of the center point of the polyline According to the coordinates of the center point of the polyline, the coordinates of the center point of the circle, the radius of the circle, and the corresponding touch point information, select key track points satisfying the screening conditions of track points from the circumference of the key circle and the coordinates of vertices of each of the polylines.
  • determining the moving contour geometric figure formed by the pair of adjacent touch points relative to the erasing geometric form includes:
  • the distance hit test is carried out by the distance method between the handwriting point and each described polyline polygon and the key circle;
  • the handwriting point is added to the third target point set; otherwise, the handwriting point and the key track area are subjected to a vector hit test, and when the vector hit test is successful, the handwriting Points are added to a third set of target points;
  • the handwriting formed based on each handwriting point in the third target point set is determined as the target handwriting to be erased falling into the moving contour geometric figure.
  • the embodiment of the present application provides a handwriting erasing device, which is configured on an interactive tablet, and the touch response accuracy of the touch frame equipped on the interactive tablet reaches a set accuracy range, and the device includes:
  • a display module configured to display a display interface containing handwriting to be erased through a display screen
  • the trigger module is used to receive the handwriting erasing instruction and enter the handwriting erasing mode, and the handwriting erasing instruction is formed by triggering by the user;
  • An acquisition module configured to acquire touch point information fed back through the touch frame when a touch object touches the surface of the display screen and moves, and the touch object is manipulated by the user;
  • the erasing module is used for erasing the handwriting to be erased in the interface by using an erasing geometry that matches the touch object by analyzing the obtained touch point information and the handwriting to be erased.
  • an interactive tablet including:
  • the touch frame has a touch response accuracy that reaches the set accuracy range, and is used to respond to the touch operation of the touch object through the included hardware circuit;
  • the display screen is covered with the touch frame to form a touch screen for displaying interactive content
  • processors one or more processors
  • the one or more processors are made to implement the method provided in the first aspect of the present application.
  • the embodiment of the present application further provides a storage medium containing computer-executable instructions, and the computer-executable instructions are used to execute the method as described in the first aspect when executed by a computer processor.
  • the handwriting erasing method, device, interactive panel and storage medium provided above.
  • the proposed method can be executed by an interactive flat panel, and the touch response accuracy of the touch box equipped on the interactive flat panel reaches the set accuracy range; wherein the method can first display a display interface containing handwriting to be erased through the display screen; and then can receive the handwriting Erase command to enter the handwriting erasing mode; then when the touch object touches the surface of the display screen and moves, obtain the touch point information fed back through the touch frame; finally, the obtained touch point information and the For the analysis of the handwriting to be erased, the handwriting to be erased in the interface is erased using an erasing geometry that matches the touch object.
  • the configured high-precision touch frame can be optimized by the method provided in this embodiment at the software application level.
  • the method provided in this embodiment can ensure that the erasing response to the handwriting to be erased in the interface can better match the erasing geometry of the touch object used by the user , so as to realize the flexible adjustment of the erasing area during the erasing process, thereby realizing the improvement of erasing efficiency on the interactive tablet.
  • Fig. 1 has provided the schematic flow chart of a kind of handwriting erasing method that embodiment one of the present application provides;
  • Figure 1a is a diagram showing the effect of a touch frame responding to a touch object in a handwriting erasing method provided in Embodiment 1 of the present application;
  • Fig. 1 b shows the effect diagram of the geometric form of erasing in the handwriting erasing method provided in the first embodiment of the present application
  • Fig. 1c shows the effect display diagram of the moving contour geometric figure as the erasing area in the handwriting erasing method provided in the first embodiment of the present application;
  • Fig. 2 has provided the schematic flow chart of a kind of handwriting erasing method that the application embodiment 2 provides;
  • Fig. 2 a provides the effect display diagram of the handwriting erasing method provided by the second embodiment of the present application
  • Fig. 2 b has provided a kind of implementation flow chart of erasing shape and outline figure determination in the handwriting erasing method provided in the second embodiment of the present application;
  • Figures 2c to 2h show the schematic illustrations related to the determination of key geometric information when the erasing geometry in the handwriting erasing method provided in Embodiment 2 of the present application is a rounded rectangle;
  • Fig. 2i-Fig. 2m show the relevant schematic diagrams for determining the key geometric information when the erasing geometric form in the handwriting erasing method provided in the second embodiment of the present application is a circle;
  • Figure 2n shows the effect display diagram when the erasing geometry is any irregular figure in the handwriting erasing method provided in the second embodiment of the present application;
  • Figures 2o to 2q show the relevant schematic diagrams for determining the key geometric information when the erasing geometry in the handwriting erasing method provided in the second embodiment of the present application is any irregular figure and only includes polyline geometric figures;
  • Fig. 2r and Fig. 2s provide the relevant schematic diagrams for determining the key geometric information when the erasing geometry in the handwriting erasing method provided in the second embodiment of the present application is any irregular figure;
  • Fig. 2 t has provided a kind of realization flowchart of target to be erased handwriting determination in the handwriting erasing method provided in the second embodiment of the present application;
  • Fig. 3 and Fig. 4 have provided the schematic diagram of the hit test realization that is used when the erasing geometry form is a rounded rectangle in the handwriting erasing method provided in the second embodiment of the present application;
  • Fig. 5 has provided another kind of implementation flow chart of target to be erased handwriting determination in the handwriting erasing method provided in the second embodiment of the present application;
  • Fig. 6 and Fig. 7 have provided the schematic illustration figure wherein a kind of hit test realization that is used when erasing geometry form is circular in the handwriting erasing method provided in the second embodiment of the present application;
  • Fig. 8 has provided another kind of realization flow chart that the target to be erased handwriting is determined in the handwriting erasing method provided in the second embodiment of the present application;
  • Fig. 9 shows the effect display diagram of the static rounded rectangle in the handwriting erasing method provided in the second embodiment of the present application.
  • Fig. 10 is a structural block diagram of a handwriting erasing device provided in Embodiment 3 of the present application.
  • FIG. 11 is a schematic structural diagram of an interactive panel provided in Embodiment 4 of the present application.
  • the hardware part of the interactive panel is composed of display screens, intelligent processing systems and other parts, which are combined by integral structural parts and supported by dedicated software systems.
  • the display screen specifically may include a light emitting diode (Light Emitting Diode, LED) display screen, an organic electro-laser display (Organic Light-Emitting Diode, OLED) display screen, a liquid crystal display screen (Liquid Crystal Display, LCD) display screen, and the like.
  • a touch frame can be formed to form a touch screen.
  • the optical touch sensor constituting the touch frame can scan the touch object, such as a user's finger, a stylus, etc., on the surface of the display screen using light signals.
  • the surface of the display screen refers to the cover plate of the display screen. glass surface.
  • the touch frame can respond to the above touch operations and pass the corresponding touch operation information to the intelligent processing system at the application level, so that through intelligent processing
  • the system implements various interactive applications.
  • the optical touch sensor may include an infrared emitter and an infrared receiver.
  • the infrared emitter is used to emit infrared signals
  • the infrared receiver is used to receive infrared signals.
  • the densely distributed infrared signals in different directions are used to form a beam grid to locate the touch point.
  • the display screen is equipped with a frame with a circuit board, which is used to arrange infrared emitters and infrared receivers around the display screen to form a horizontal and vertical beam grid touch frame.
  • the display screen has the above-mentioned touch frame
  • the touch object blocks the infrared signal
  • the light measurement value will be weakened at the corresponding infrared receiver, so the position of the touch point on the screen can be determined.
  • the infrared transmitter is installed on the first side of the frame of the display screen
  • the infrared receiver is installed on the second side of the frame of the display screen
  • the first side is opposite to the second side, that is, the infrared receiver is on the side of the infrared transmitter.
  • the infrared signal emitted by the infrared transmitter is received by the infrared receiver.
  • the shape of the display screen is different, such as rectangle, hexagon, circle, etc.
  • the shape of the frame also varies with the shape of the display screen, such as rectangle, hexagon, circle, etc.
  • the settings of infrared emitters and infrared receivers in each infrared module are also different.
  • the touch response precision possessed is usually within a conventional range.
  • a non-high-precision touch frame whose touch response accuracy is in the conventional range, it may be difficult to recognize the size of the touch area of the touch object on the display screen. Therefore, in the touch writing mode, it is difficult to judge what the user uses. type of touch object to write, or it is difficult to judge what touch medium (finger, writing pen) the user uses to touch; Erasing is only done based on the conventional erasing form.
  • it is difficult for a non-high-precision touch frame to ensure that the same type of touch object presents the same touch area during the touch process.
  • the interactive panel in this embodiment adopts a high-precision touch frame with high touch response accuracy compared with a conventional touch frame whose touch response accuracy is within a conventional range.
  • the touch response accuracy can be understood as the touch response accuracy has reached the set accuracy range, wherein the accuracy limit of the set accuracy range is higher than the conventional accuracy range.
  • the touch frame adopted in this embodiment it can provide more detailed touch information to the upper layer application level, for example, it can provide the touch area of the touch object, more accurate coordinates of the touch point, and the touch object’s touch during the touch process. rotation angle etc.
  • the intelligent processing system in the interactive whiteboard can include a host processor, which belongs to the processor of the interactive panel. Lively audio-visual effects.
  • the host processor is a computing module with higher performance.
  • the host processor can be an Android (Android) module, the Android (Android) system can be installed, and the CPU (Central Processing Unit, central processing unit), GPU (Graphics Processing Unit, graphics processing unit), RAM (random access memory, random access memory) and ROM (Read-Only Memory, read-only memory) and other components, for example, for Android7.0 version, CPU is dual-core A72 and quad-core A53, GPU is Mali T860, RAM is 4GB, ROM is 32GB, etc.
  • Android Android
  • CPU Central Processing Unit, central processing unit
  • GPU Graphics Processing Unit, graphics processing unit
  • RAM random access memory
  • ROM Read-Only Memory, read-only memory
  • other components for example, for Android7.0 version, CPU is dual-core A72 and quad-core A53, GPU is Mali T860, RAM is 4GB, ROM is 32GB, etc.
  • the host processor can be a PC (personal computer, personal computer) module configured with components such as a CPU, GPU, memory, and hard disk.
  • a PC personal computer, personal computer
  • the CPU is an Intel Core i5 /i7
  • the GPU is Intel HD Graphics
  • the memory is DDR4 8G/16G
  • the hard disk is 128G/256G.
  • FIG. 1 shows a schematic flowchart of a handwriting erasing method provided in Embodiment 1 of the present application.
  • This embodiment is applicable to the situation of erasing the handwriting existing in the interface in the erasing mode.
  • the method can be executed by a handwriting erasing device, which can be implemented by software and/or hardware, and can be configured in an interactive panel, especially in a processor of an interactive panel, which can be an intelligent processing system. host processor.
  • the touch response precision of the touch frame equipped in the interactive flat panel reaches the set precision range; in addition, the touch frame is also electrically connected with the display screen.
  • a kind of handwriting erasing method that the embodiment 1 of the present application provides, specifically comprises the following steps:
  • the execution subject of the method provided in this embodiment is also provided with a graphics processor (Graphics Processing Unit, GPU), which can provide video processing functions.
  • the information of the device is placed into the frame memory, and the serial display data and scan control timing required by the display are generated for the video signal according to the partition driving method.
  • the display screen set on the interactive panel can play frame data information according to the serial display data and scan control timing, thereby displaying various pictures on the display screen.
  • the display interface can be regarded as the interface displayed on the display screen after the user writes or edits in the writing or editing mode.
  • the element information presented on the display interface at least includes handwriting to be erased formed through user operations. It can be known that the handwriting to be erased can be the handwriting presented by the user in the writing mode, wherein the color, thickness, etc. of the handwriting can be selected by the user, and the presented handwriting style can also show the user's writing style.
  • the display interface can be an independent interface.
  • the interactive tablet provides an electronic whiteboard, and the user triggers a control operation to display the electronic whiteboard in the interactive tablet.
  • the interactive tablet receives the control operation, displays the electronic whiteboard, and presents it as an element display interface.
  • the display interface can also be an interface with a background.
  • the interactive panel displays the local courseware, displays the information transmitted by the screen transfer device (USB Dongle, USB dongle), and belongs to the source device (such as a notebook computer, etc.).
  • the user triggers the annotation operation on the interactive panel, and the interactive panel receives the annotation operation, freezes the data such as courseware and screen images, and makes them become the background, that is, maintains the current frame of displaying courseware, screen images, etc.
  • a mask layer is generated on the data such as courseware, screen images, etc., so as to serve as the currently presented display interface.
  • the so-called courseware can refer to the course documents made according to the requirements of teaching, after the determination of teaching objectives, the analysis of teaching content and tasks, the structure of teaching activities and the design of interface, etc.
  • the courseware can be Word documents, PPT (PowerPoint, presentation) and other public format files may also be custom pages composed of text, tables, pictures and other elements, which is not limited in this embodiment.
  • S102 Receive a handwriting erasing command and enter a handwriting erasing mode, where the handwriting erasing command is triggered by a user.
  • the user can perform a trigger touch operation on the display screen, that is, on the displayed display interface.
  • control touch is mostly used to trigger any button or icon in the display interface
  • long-pressed touch is mostly used for dragging and dropping elements
  • mobile touch is mostly used for writing or erasing handwriting.
  • the representation of the trajectory is mostly used to trigger any button or icon in the display interface.
  • control operations on the interactive flat panel display interface include but are not limited to touch operations, keyboard operations, mouse operations, and physical button operations.
  • the operation of generating handwriting erasing instructions can also optionally use touch operations, Mouse operation and keyboard operation etc.
  • the pre-operation of performing this step can be described as: the display interface includes a function button to enter the erasing mode, such as an erasing button, and the user touches the erasing button, and the touch box in the interactive panel responds Touch the touch signal of the touch operation, and feed back the touch information related to the touch signal to the upper layer of the interactive panel (such as the main processor in the intelligent processing system).
  • this step can receive the handwriting erasing command generated by the upper layer, and enter the handwriting erasing mode in response to the handwriting erasing command.
  • the handwriting erasing mode can be understood as that the interactive whiteboard has the authority to erase elements displayed in the display interface after this mode is started. That is, after entering the erasing mode, the handwriting presented in the writing mode on the display interface can be regarded as the erasing object, and has the authority to erase the erasing handwritings.
  • the touch object may specifically be a user's finger, an active stylus or a passive stylus, etc., and the user may manipulate the touch object to move on the display surface of the interactive panel, wherein, when the touch object moves, the The displayed moving state can be used for erasing handwriting in the erasing mode.
  • the touch object during erasing may be a dedicated physical eraser (such as a touch blackboard eraser) that matches the interactive tablet, or it may be a user's body part, such as a hand.
  • the interactive panel is also equipped with a touch frame combined with the display screen, wherein the touch frame can specifically be composed of an optical touch sensor bezels nested at the edges of the display.
  • the touch frame can generate a touch signal based on the included optical touch sensor when the touch object moves on the display screen, and identify corresponding touch point information through a response to the touch signal.
  • FIG. 1a is a diagram showing the effect of a touch frame responding to a touch object in a handwriting erasing method provided in Embodiment 1 of the present application.
  • one or more optical touch sensors 120 are installed on both sides of the edge of the display screen 110 of the interactive panel, forming a touch frame.
  • the moving state of the touch object manipulated by the user for example, using the user's finger as the touch object required for erasing
  • finger states 131 to 135 can be represented by finger states 131 to 135 .
  • the processor can activate the optical touch sensor 120, and the optical touch sensor 120 scans the light signal on the display surface of the interactive tablet, and detects whether the display surface appears or not according to the transmission of the light signal.
  • the touch object when the touch object is detected, generates a corresponding touch signal in real time during the movement of the touch object.
  • the touch frame can respond to the generated touch signal, so as to feed back the touch point data identified after the response to the upper layer of the interactive panel (such as the main processor in the intelligent processing system).
  • the touch point data is recorded is the touch point information.
  • the touch frame used in this embodiment is a high-precision touch frame.
  • the touch point information fed back by the touch frame in the above steps is superior to the touch point information fed back by the conventional touch frame in terms of accuracy and information detail.
  • the touch point information that the touch frame feeds back to the upper layer of the interactive panel includes at least the touch point coordinates of the touch point, the touch point height and width of the touch signal generated by the touch object, and the touch area.
  • the handwriting to be erased in the interface is erased using an erasing geometry that matches the touch object.
  • the handwriting displayed on the display interface is referred to as the handwriting to be erased.
  • the geometry of the eraser used for the erasing operation is often preset by the user, such as a circle or a rectangle ;
  • the erasing size of the eraser can only be the same as the size of the eraser.
  • the geometry of the eraser, especially the rotated shape of the eraser and the size of the eraser will not change due to changes in the shape or size of the touched object, and it often needs to be set artificially.
  • this embodiment wants to realize the personalized erasing of the user's handwriting and improve the efficiency of handwriting erasing, it is necessary to obtain data information that can characterize the shape of the touch object used by the user, and then through the data information Processing, determine the erasing geometry that matches the touch object when erasing handwriting, and finally present the shape and size of the eraser according to the determined erasing geometry, and erase the handwriting to be erased through the presented eraser , thereby realizing the diversification of the geometric shapes of the eraser in the handwriting erasing operation, and at the same time improving the erasing efficiency of the handwriting erasing operation.
  • the determination of the erasing geometry corresponding to the touch object mainly relies on the touch area of the touch point information. Touch areas of different sizes often correspond to different erasing geometries, that is, the touch
  • the matching erasing geometry is reflected by the touch area of the touch object acting on the display screen; in this embodiment, the geometric figure matching the touch area can be determined through the analysis of the touch area in the touch point information, and the geometry Graphics are used as the erasing geometry corresponding to the touch object.
  • the erasing geometry determined in this step may at least include three forms of circle, rounded rectangle and any irregular figure.
  • the correspondence between the touch area and the erasing geometry is mainly determined according to the form and size of the touch area.
  • the touch area in the touch point information can actually represent the covered area touched by the finger, and the shape of the touch area is close to a circle, so it can be considered that the erasing by using the touch object is Erase in a small area, so that a circle with an area equal to the touch area can be used as the erasing geometry of the touch object, and an eraser that presents the erasing geometry (circle) in the erasing mode can perform handwriting erasing.
  • the touch area in the touch point information can actually represent the covered area touched by the back of the hand, and the shape of the touch area is close to a quadrilateral with rounded corners, it is considered that the touch is not performed.
  • the erasing is a large-area erasing, so that a rounded rectangle with an area consistent with the area covered by the back of the hand can be formed as the erasing geometry of the touch object.
  • the touch area in the touch point information can actually represent the coverage area touched by the fist wheel, and in this case the touch area presents
  • the shape is more like a combination of two geometric figures, such as a polygon and a circle. Therefore, in this case, a combination of a polygon and a circle can be formed as the geometric shape of the touch object. This combination is It can be considered as any irregular figure.
  • the touch frame usually feeds back the touch point information in one collection cycle, and the fed back touch point information often includes the data information of the touch points corresponding to the touch signals received in the collection cycle.
  • the touch object In the erasing mode, during the process of erasing handwriting through the movement of the touch object on the display screen, the touch object is always in contact with the display screen, that is, the touch object does not leave the display screen, and the interactive tablet can be used during this process. Continuously erase handwriting by moving the touch object. Therefore, under the above premise, when determining the erasing geometry of the touch object, the touch area in all the touch point information is not required, only the touch point information of the touch point generated when the touch object contacts the display screen for the first time is needed. Yes, that is, in the process that the touch object does not leave the display screen, only one erasing geometric form needs to be determined relative to the touch object.
  • the specific implementation process of erasing the handwriting to be erased according to the determined erasing geometric form is analyzed as follows: First, relative to the touch point generated on the touch frame at a certain moment of the touch object, it can all present the same Erase the eraser pattern that conforms to the geometric shape; secondly, considering that the touch object moves on the display screen by touch, that is, the eraser pattern formed above is also discrete and continuously presented.
  • connection of the eraser pattern can form a continuous geometric closed figure, which is also equivalent to the moving contour geometric figure formed after the touch object moves; again, the formed moving contour geometric figure constitutes the area to be erased on the display interface , finally, each handwriting to be erased in the area to be erased can be determined, and erasure of these handwritings to be erased can be realized.
  • Fig. 1b shows the effect diagram of the erasing geometry in the handwriting erasing method provided in the first embodiment of the present application, as shown in Fig. 1b, which includes A first eraser pattern 140 presented as a rounded rectangle, and a second eraser pattern 150 presented as a circle.
  • Figure 1c shows the effect of the moving contour geometric figure as the erasing area in the handwriting erasing method provided in Embodiment 1 of the present application, as shown in Figure 1c
  • FIG. 1c includes a moving contour geometry 160 formed when a rounded rectangle is used as the erasing geometry.
  • this step it is necessary to construct the moving contour geometry during the movement of the touch object.
  • the continuous moving contour geometry is actually equivalent to the area formed by each touch point in the form of erasing geometry. Therefore, for the determination of the geometric figure of the moving contour, it is actually only necessary to determine the figure formed by connecting the erased geometrical forms presented by two adjacent touch points.
  • the formation methods of forming the moving contour geometric figures based on the adjacent erasing geometric forms are also different. In order to perform the erasing operation normally, this step needs to separate Carry out the construction of the corresponding mobile contour geometry.
  • the geometric form of erasing is a rounded rectangle
  • the graphical representation of two rounded rectangles can be determined, and then the two rounded rectangles can be Some points respectively selected above are expanded and connected, and thus the closed area formed by these two rounded rectangles is constructed as the corresponding moving contour geometry under the rounded rectangle.
  • the geometric shape of the eraser is a circle
  • the graphical representation of two circles can be determined, and then two circles can be selected on the two circles.
  • the connection points are connected, and the closed area formed based on these two circles is constructed as the corresponding moving contour geometry under the circle.
  • a handwriting erasing method provided in Embodiment 1 of the present application can be executed by an interactive tablet, and the touch response accuracy of the touch frame equipped on the interactive tablet reaches the set accuracy range;
  • the execution subject of the method is equipped with a high-precision touch frame on the hardware structure, and can realize the function optimization at the software application level of the configured high-precision touch frame through the method provided in this embodiment.
  • the method provided in this embodiment can ensure that the erasing response to the handwriting to be erased in the interface can better match the erasing geometry of the touch object used by the user, thereby realizing erasing
  • the flexible adjustment of the erasing area during the erasing process improves the erasing efficiency on the interactive tablet.
  • this optional embodiment may further include: processing each of the touch point information, so that each of the touch points Information has a unified unit format and data structure.
  • the display operation of handwriting is mainly performed by the intelligent processing system on the upper layer of the interactive tablet, specifically, it can be executed by the host processor, and the touch point information required for the display of handwriting mainly comes from the hardware level of the interactive tablet. Touch the frame to provide feedback.
  • the touch point information fed back by the touch frame can be regarded as the input information required by the upper layer.
  • the execution parameters of the touch boxes are also different, which may lead to differences in the representation of the touch information fed back by the touch boxes, which will affect the handwriting erasing method normal execution.
  • the information processing operation proposed in this optional embodiment is added on the basis of the first embodiment above.
  • this optional embodiment can analyze the production information and batch information of the touch frame, determine the original information format of the touch point information fed back by the touch frame, and then process the unit format and data structure of the touch point information, Ensure that the data input to the upper layer of the interactive panel has a unified information format.
  • the processed touch point information removes the unit format related to the touch frame manufacturer or batch.
  • the touch area unit fed back in the touch point information in the original information format is basically based on the blocked optical trigger on the touch frame.
  • the number of sensors is used as a touch width unit and a touch height unit, which can be converted into an abstract unit in unified software, such as a pixel unit, in this optional embodiment.
  • each touch point information can be embodied as:
  • the unit of each data information in the touch point information is converted into a unified setting unit format
  • the data structure corresponding to the set unit format is used to record the touch point information.
  • this optional embodiment can uniformly convert data information such as the coordinates of the touch point, the height and width of the touch point, or the vertices of the geometric figure formed when the touch frame is identified in the original information format into More abstract unit values at the software level, such as coordinate points represented by pixels, width or height values, etc.
  • the high-precision touch frame can also capture the rotation operation of the touch object during the touch process, and can determine the rotation angle of the touch rotation. At this time, through the processing method of this optional embodiment , and the initially obtained rotation angle can also be processed in a unified radian unit.
  • the above optional embodiment of the first embodiment of the present application specifically adds the processing operation of the touch point information fed back by the touch frame. Through this processing operation, the unified input of the touch point information can be realized, avoiding the problem caused by the touch frame itself.
  • the touch point information caused by different attribute parameter information is incompatible in the subsequent execution process, which effectively improves the execution efficiency of handwriting erasing.
  • FIG. 2 shows a schematic flow chart of a handwriting erasing method provided in Embodiment 2 of the present application.
  • the feedback obtained through the touch frame can be
  • the details of the touch point information are as follows: through the hardware circuit in the touch frame, each touch signal is identified, and the touch signal is generated when the touch object moves on the display screen; The touch point information fed back by each touch signal according to the Human Interface Device (HID) standard protocol, wherein one touch point information corresponds to one touch point, and the touch point information includes: touch point coordinates, touch point height and Width, and touch rotation angle.
  • HID Human Interface Device
  • the handwriting to be erased in the interface can be erased using the erasing geometry that matches the touch object.
  • the specific refinement through the obtained touch point information, determine the erasing geometry that the touch object matches during the movement, and determine the moving contour geometry formed by the pair of adjacent touch points during the movement under the erasing geometry ; Analyze each handwriting point included in the described handwriting to be erased, carry out a hit test with each of the handwriting points and the moving outline geometric figure, and determine the target handwriting to be erased falling into the moving outline geometric figure; Erase the target handwriting to be erased in the display interface.
  • a method for erasing handwriting provided in Embodiment 2 of the present application specifically includes the following operations:
  • it may be triggered by the user to enter a display interface with elemental information such as handwriting, or it may be a display interface with elemental information such as handwriting to be erased triggered in some related scenarios (such as a courseware display scene).
  • S202 Receive a handwriting erasing command and enter a handwriting erasing mode, where the handwriting erasing command is triggered by a user.
  • the user may receive a handwriting erasing instruction by triggering an erasing button on the display interface, thereby entering the handwriting erasing mode, so as to enable the authority to erase the handwriting in the display interface.
  • the operation of the touch object touching the display screen and moving on it is analyzed from the perspective of the touch frame.
  • the optical touch sensor can be regarded as a core component constituting the touch frame.
  • the optical touch sensor (such as an infrared emitter set on one side and an infrared receiver set on the other side) can be set on the edge of the display screen in real time. Whether there is a touch object on the surface of the display screen is detected by using whether the beam grid formed by the densely distributed infrared signals in different directions is blocked or not.
  • a corresponding touch signal can be generated at the corresponding position when the touch object blocks the normally emitted infrared signal; after that, the hardware circuit set in the touch frame can identify the touch signal, such as through Identify the high and low levels of the touch signal to determine the coordinate information of the position of the touch signal represented by the data at the hardware level, the corresponding width information and height information when the touch object blocks the infusion grid, and even the touch object Touch area information and rotation information, etc.
  • a group of touch signals can be generated correspondingly, and the hardware circuit on the touch frame can effectively identify the relevant touch information of each touch signal in the group, and at the same time,
  • the pressure sensitivity information of the touch object at each touch point can be determined through the pressure of the touch object acting on the hardware circuit of the touch frame.
  • the touch frame is a hardware structure on an interactive tablet
  • the touch point information identified by the hardware circuit on the touch frame relative to each touch point is difficult to directly input to the upper software processing module.
  • the special human-computer interaction HID standard protocol can be used to obtain the readable touch point information at the software level after converting the touch point information recognized at the hardware level.
  • each touch point information fed back by the touch frame specifically represents a touch point triggered by the touch object, and the required touch point information must at least include touch point coordinates, touch Point height and width, and touch rotation angle.
  • the coordinates of the touch point are the basic information of touch
  • the height and width of the touch point can be used to represent the size of the optical sensor on the touch frame when the user controls the movement of the touch object
  • the touch area is used to represent the user.
  • the coverage area of the touch signal generated by the touch frame can be determined through the above information to determine the matching erasing geometry of the touch object.
  • the touch rotation angle can represent the rotation information when the touch object rotates during the movement, and the rotation information can also be regarded as the basic information required for determining the geometric figure of the movement contour corresponding to the erasing geometry.
  • this embodiment can realize the erasing of the handwriting to be erased on the display interface through the following S205 to S207. remove.
  • this step specifically realizes the determination of two important information required in the erasing operation, one is the erasing geometry matched by the touch object, and the other is the determined erasing geometry of two adjacent touch points.
  • the geometric figure of the moving contour that can be formed under the geometric form.
  • the determination of the erasing geometry only needs to pay attention to the touch point information of the touch point generated when the touch object touches the display screen for the first time during the movement process.
  • the touch area can determine the geometric form that matches the touched area, so that the matched geometric form can be used as the erasing geometric form that can be displayed for this erasing.
  • the erasing geometry includes at least a rounded rectangle, a circle, and any irregular figure, and based on the fed-back touch point information of each touch point, each touch point can present An eraser pattern consistent with the erasing geometry, the eraser patterns of two adjacent touch points can be connected in a certain way, and the closed area formed by the connection can be regarded as the moving contour geometry corresponding to the two adjacent touch points .
  • each rounded rectangle is equivalent to replacing several top corners of a rectangle with rounded corners, which can be considered as a rounded rectangle with at least Includes the side lengths of rectangles and a portion of the arc of a circle.
  • the key points of each rounded rectangle should be obtained first, and then some connection points should be selected from the key points of the two rounded rectangles and connected, and finally connected
  • the self area of the two rounded rectangles and the closed area formed by the connection can be obtained, and the combination of the self area and the closed area constitutes a moving contour geometry corresponding to two adjacent touch points when the erasing geometry is a rounded rectangle.
  • the geometric shape to be erased is a circle or any irregular shape
  • the erased geometric shape it is necessary to first determine the graphical representation information of the figure corresponding to the erased geometric shape itself, and then select the connection points required to establish a connection based on the obtained graphical representation information, and then based on the connection points and
  • the figures corresponding to the erasing geometric shapes themselves form a closed combination area as the corresponding moving contour geometric figures.
  • a rounded rectangle and a circle can be considered as two special cases of any irregular figure.
  • these two special cases are determined for the geometric figure of the moving contour, they may not correspond to any irregular figure.
  • the above S205 is equivalent to determining the area to be erased (moving contour geometry) with erasing authority formed when the touch object moves during the erasing operation.
  • This step mainly realizes how to determine which handwriting in the display interface falls into the moving area.
  • these handwritings can be considered as the current erasable handwritings, which are recorded as the target handwritings to be erased in this embodiment.
  • the handwriting to be erased in the display interface can be understood as the content written by the user in the interface in a certain way in the writing or editing mode.
  • These handwritings to be erased can also be characterized by corresponding handwriting information, and the key information in the handwriting information is the coordinates of the handwriting points required to form these handwritings to be erased. This step can directly obtain the characterizing The handwriting point coordinates of each handwriting point of the handwriting.
  • the operation of determining which handwriting to be erased falls into the moving contour geometric figure can be converted into an operation of determining whether each handwriting point representing the to-be-erased handwriting falls in the moving contour geometric figure.
  • the determination of whether the handwriting point falls into the moving contour geometric figure can be realized by performing a hit test between the handwriting point and the moving contour geometric figure.
  • the hit test between the handwriting point and the moving outline geometry is equivalent to determining whether the handwriting point is within the closed area of the moving outline geometry.
  • To know whether the handwriting point is in the enclosed area it presents is equivalent to determining the data information used to characterize the enclosed area.
  • the moving contour geometric figure may have an irregular geometric form, which is difficult to be represented by direct data information. Therefore, this embodiment considers dismantling the moving contour geometric figure, such as disassembling the moving contour geometric figure into a circle And the combination of geometric figures that are easy to characterize such as polygons, and then determine whether the handwriting points exist in the closed area corresponding to each geometric figure after disassembly by the method of hit test.
  • the hit test can be realized by judging whether the distance between the handwriting point and the center of the circle is smaller than the radius.
  • the hit test can be realized by judging whether the distance between the handwriting point and the center of the circle is smaller than the radius.
  • the sum of the corresponding vertex angles of the handwriting points is 360 degrees to realize the hit test; another example is the vector used in the rectangular area Law hit testing, etc.
  • the hit test of the handwriting point in each sub-graphic area can be realized, and when it is determined that the handwriting point exists in a certain area, the character of the handwriting point The handwriting is determined as the target handwriting to be erased.
  • the erasure of the target handwriting to be erased can be realized through this step.
  • What is presented on the display interface in a visual form is that the eraser presented by the touch object moves on the display interface according to the erasing geometry, and the position where the eraser passes no longer displays the handwriting that the user has edited or written on the interface.
  • Fig. 2 a has provided the effect diagram of the handwriting erasing method provided by the second embodiment of the present application, as shown in Fig. 2 a, the handwriting 22 to be erased that has been written on it has been presented in the display interface 21, and the user uses the controlled
  • the touch object is presented on the display interface 21 in the shape of erasing a circle 23 , and the previously displayed handwriting is no longer displayed on the area where the circle has been moved, but is presented as a blank area.
  • the handwriting erasing method provided in Embodiment 2 of the present application specifies the feedback form of touch point information and also specifies the erasing method of handwriting erasing.
  • the implementation of the method is based on the premise that the touch response precision of the interactive panel is equipped with a touch frame within a set precision range. Compared with an interactive tablet configured with a conventional touch frame, after the interactive tablet in this embodiment is configured with a high-precision touch frame at the hardware level, the high-precision touch frame can feed back more accurate touch point information containing more effective information to the application layer.
  • the erasing response to the handwriting to be erased in the interface can better match the erasing geometry of the touch object used by the user, thereby realizing the flexible adjustment of the erasing area during the erasing process , thereby realizing the improvement of erasing efficiency on the interactive tablet.
  • Fig. 2b shows the erasing form and contour figure in the handwriting erasing method provided in the second embodiment of the present application A certain implementation flow chart.
  • this first alternative embodiment further combines the above step of S205, that is, through the obtained touch point information, to determine the matching erasing geometry of the touch object during movement, and to determine the adjacent touch point during movement.
  • the moving contour geometric figure formed by the point pair under the said erasing geometric form is embodied as the following steps:
  • the key touch point information can be specifically understood as the information used to erase the key touch point determined by the geometric form in the touch point information fed back by the touch frame, and the key touch point information also includes the The touch area generated when displaying the display is recorded as the critical touch area.
  • this embodiment does not need to determine the erasing geometry of the touch object based on the touch point information corresponding to each touch point, and only needs to filter out one of the touch point information to determine the touch object.
  • the touch point information of the touch point generated when the touch object first touches the display screen is considered to perform the determination operation, and the touch point information is recorded as the key touch point information.
  • the key touch point information is optional but not specifically limited, and only the corresponding touch point information at the first contact can be used.
  • S2052. Determine the area threshold range and area shape to which the key touch area belongs, search for a target shape that matches the area shape in each geometric shape corresponding to the assigned area threshold range, and determine the target shape as the Wipe geometry that matches the touch objects described above.
  • the area value of the key touch area can be divided within a certain area threshold range set in advance, and this embodiment also pre-establishes multiple geometric shapes matching it for each area threshold range,
  • an area threshold range may conform to various geometric forms, such as conforming figures include circles, combinations of circles and quadrilaterals, combinations of circles and ellipses, and the like.
  • the target shape matching the area shape can be determined from the geometric figures corresponding to the area threshold range. For example, when the area shape is a rectangle with radians, it can be considered that the key touch area and the rounded corner Rectangles are matched, and finally the rounded rectangle can be used as the wiper geometry for the touch object.
  • the touch frame feeds back touch point information in a discrete form during the movement of the touch object in real time
  • each touch point information corresponds to a touch point
  • two adjacent touch points can be regarded as a touch point pair.
  • each touch point generated during the movement of the touch object presents an allowable erasing area according to the above-mentioned determined erasing geometry, and each touch point is relatively erased.
  • the key geometric information of the geometric form can be specifically understood as the mathematical representation information used to characterize the erasing area presented by the touch point, and the mathematical representation information used for the associated closed area after the erasing area presented by two adjacent touch points is connected.
  • the determined key geometric information may at least include vertex information or circle center information and radius information of the erasing area presented in an erasing geometric form.
  • the key geometric information of each touch point relative to the erasing geometry can be obtained by combining the corresponding touch point information with the above-mentioned determined erasing geometry.
  • mathematical operations can be used to determine the data information required for various graphic representations.
  • the rounded rectangle includes a rectangle and rounded corners centered on each vertex of the rectangle.
  • the erasing area that each touch point used for handwriting erasing appears on the display screen can be selected as the geometric figure to be constructed corresponding to the touch point.
  • the erasing geometry is a rounded rectangle
  • the corresponding geometric figure to be constructed is recorded as the first geometric figure to be constructed.
  • this embodiment specifically describes the determination of the key geometric information corresponding to the touch point when the geometric shape of the erasing is a rounded rectangle from the perspective of mathematical calculations.
  • Example 2 provides an explanatory diagram related to the determination of key geometric information when the erasing geometry in the handwriting erasing method is a rounded rectangle.
  • this embodiment represents a rounded rectangle with a rotating rectangle and four rounded corners, wherein the rotating rectangle can be considered as a relative A rectangle with an angular offset in the horizontal and vertical directions of the display interface.
  • the upper left corner of the display interface can be considered as zero-zero coordinates, and the abscissa becomes larger from left to right, and the ordinate becomes larger from top to bottom, as shown in Figure 2c.
  • Fig. 2c contains the first figure to be constructed corresponding to one of the touch points, that is, the effect display of the rounded rectangle, wherein, points A, B, C and D constitute the rotation rectangle of the rounded rectangle, and point A , B, C, and D are respectively used as the centers of the four rounded corners contained in the rounded rectangle.
  • the adjacent two rounded corners are connected through tangent points, and the formed combined graphics can be regarded as the rounded corners to be constructed.
  • Rectangle, and the radius of the rounded corner in Figure 2c is used as a configurable parameter, and the parameter value can be determined in advance.
  • the length of the side length AC plus the diameter of the rounded corner is equivalent to the height of the rounded rectangle; the length of the side length CD plus the circle The diameter of the corners is equivalent to the width of the rounded rectangle.
  • each touch point in the adjacent touch point pair has a corresponding rounded rectangle to be constructed.
  • the geometric shape of the rounded rectangle corresponding to each touch point is the same, it can be considered that each rounded rectangle
  • the implementation of determining the corresponding geometric information is the same.
  • the geometric information required to characterize the rounded rectangle is equivalent to the determination of the coordinates of the vertices and the coordinates of the tangent points in FIG. 2c above.
  • the coordinates of point O1 can be determined according to the coordinates of the touch point, the height and width of the rounded rectangle can be determined by the height and width of the touch point, and the touch rotation angle and radius Radius of the fillet can also be obtained, where the touch rotation angle can be considered relative to the above The angle by which the horizontal and vertical axes of the given coordinate system are rotated. That is, after converting the data problem, it can be equivalent to: knowing O1, the rotation angle ⁇ , the fillet radius Radius, and the width and height of the rounded rectangle, how to find the vertex coordinates of the rotated rectangle in the rounded rectangle.
  • the vertex coordinates of the rounded rectangle can be determined first when the rotation angle is assumed to be 0.
  • the rounded rectangle in Figure 2d can be presented as the graph shown in Figure 2e after the operation of rotating ⁇ . At this time, it is equivalent to knowing the coordinates of point A and the rotation angle ⁇ to determine points A and B , C and D are the coordinates after rotating ⁇ relative to point O1.
  • the coordinates of point A after rotation relative to O1 can be calculated; in order to make point A relative to zero, it is necessary to make point A relative to
  • the coordinates of O1 are converted into coordinates relative to the zero point, that is, the specific implementation is to add the coordinates of O1 to finally obtain the coordinates of point A after rotation.
  • points B, C, and D in the rounded rectangle to be constructed can also use the same calculation as above.
  • point A1 is equivalent to the ordinate of point A minus the radius of the rounded corner when not rotated
  • point A2 is equivalent to the abscissa of point A when not rotated minus the radius of the rounded corner. Therefore, the coordinates of A 1 and A 2 can be calculated by using the new point formula obtained after a certain point is rotated by a specific point, and the coordinates of B 1 and B 2 can be calculated similarly.
  • the coordinates of each point required by each touch point in the pair of adjacent touch points to represent the rounded rectangle to be constructed can be calculated in the above manner. Next, how to calculate the geometric information of each connection area formed by the connection of two rounded rectangles is described.
  • the line segment connecting the center points of the two rectangles is used to check whether the two line segments that do not intersect the rectangle itself are correct, and the two correct line segments should be parallel to the line segment connecting the center points of the two rectangles.
  • connection state diagram shown in FIG. 2g After being connected in the above manner, the connection state diagram shown in FIG. 2g can be obtained.
  • the line segment B 1 C 2 corresponding to the line segment BC is actually equivalent to moving the BC line segment horizontally for a certain distance, the moving distance is the radius of the fillet, and the moving direction is outward.
  • the mathematical method in the related art can be used to calculate the BC line segment, and the line segment can be translated in a certain direction for a known distance, and the mathematical calculation method in the related art can also be used for calculation.
  • the coordinates of each vertex shown in Fig. 2h can be calculated.
  • the calculated coordinates of each vertex in Figure 2h are equivalent to the coordinates of the connection points of the two graphics after the adjacent touch points connect the corresponding rounded rectangles, and Figure 2h also includes two rounded rectangles for connection The effect display of the moving contour geometry formed after.
  • each rounded corner in the first geometric figure to be constructed includes two key tangent points; each key tangent point is a corresponding tangent point when the rounded corner is connected with an adjacent rounded corner by a tangent.
  • step S2053 when the geometric shape of erasing is a circle, the implementation of the second optional implementation item of the above-mentioned step S2053 is specifically described as follows:
  • the erasing area whose geometry to be constructed is circular is recorded as the second geometric figure to be constructed.
  • touch point coordinates, touch width, and touch height in the touch point information corresponding to each touch point in the pair of adjacent touch points determine the circle center coordinates and key intersection coordinates of the corresponding second geometric figure to be constructed.
  • the touch point information of each touch point in the adjacent touch point pair is also required.
  • the above step b1 can be used to determine the corresponding second to-be-built The coordinates of the circle center of the geometric figure and the coordinates of each key intersection point, specifically:
  • touch width and touch height in the touch point information corresponding to each touch point in the adjacent touch point pair determine the circle center coordinates of the corresponding second circle to be constructed; connect the corresponding two circle centers coordinates to obtain a line connecting the centers of the circles; through the coordinates of the centers of the circles, construct straight lines perpendicular to the lines connecting the centers of the circles, and obtain the coordinates of key intersections determined after each line intersects with the corresponding second circle to be constructed.
  • this embodiment still converts the above-mentioned key geometric information about the circle into a mathematical problem for description, wherein, Figure 2i to Figure 2m show the erasing method in the second embodiment of the present application. Schematic illustration of the determination of key geometric information when the geometric form is a circle.
  • finding the key geometric information of the two circles can be transformed into: finding the vertices of the line segment parallel to the touch moving direction and intersecting the circle when the two circles are connected according to the touch moving direction.
  • the abstract mathematical problem can be: two circles are known, the centers of which are P1 and P2 respectively, and the radii are the lengths of r1 and r2 respectively; the line segment AB is perpendicular to the line segment P1P2, and the line segment CD is also perpendicular to the line segment P1P2 , and the intersection points of the AB line segment and the circle are two points A and B respectively; and the intersection points of the CD line segment and the circle are two points C and D respectively; find the coordinates of the four points A, B, C and D.
  • the coordinates of the above-mentioned circle centers P1 and P2, and the radii r1 and r2 can be obtained by conventional calculation, and the touch movement direction can also be based on two touch points Coordinates are determined in real time.
  • the specific description is as follows:
  • the coordinates of the center of the circle corresponding to each touch point can be determined, which is recorded as the coordinate of the center of the circle in this embodiment; at the same time, the coordinates of the circle center formed by the connection of the two circles can also be calculated.
  • the coordinates of the key intersection point can be determined, which is recorded as the coordinate of the center of the circle in this embodiment; at the same time, the coordinates of the circle center formed by the connection of the two circles can also be calculated. The coordinates of the key intersection point.
  • each coordinate point determined above can be used as the key geometric information associated when the geometric shape of the erasing is a circle.
  • any irregular figure can be understood as a combined set figure composed of broken lines and/or arcs, and this embodiment can choose that any irregular figure be associated with each touch point in the pair of adjacent touch points
  • the graphic representation of the erased area is recorded as the third geometric figure to be constructed in this embodiment.
  • the presentation form of the irregular figure it is possible to determine which figure information is specifically included in the irregular figure, for example, it may include a broken line figure or an arc figure, and the determined information may be recorded as combined figure information.
  • Fig. 2n shows the effect display diagram when the erasing geometry in the handwriting erasing method provided in the second embodiment of the present application is any irregular figure, as shown in Fig. 2n, the arbitrary irregular figure 24 can be regarded as It is a combination of polygons and circles.
  • the determination of the key geometric information corresponding to the irregular figure can be realized in the following manner.
  • the information of the touch point corresponding to the pass can be combined with the combined figure information to determine
  • the key trajectory points existing on the third geometric figure to be constructed relative to the touch point and the graphical representation information of the third geometric figure to be constructed are embodied as:
  • the analysis of the combined graphics information can obtain what shape is specifically included in the arbitrary irregular graphics, such as polyline polygons, arcs or circles, or polyline polygons and polygons at the same time. round etc.
  • the third geometric figure to be constructed contains only polyline polygons
  • determine the key trajectory points of the polyline polygons relative to the touch points through the corresponding touch point information and obtain the first point representing the polyline polygons Graphics represent information.
  • This step b32 mainly provides one of the cases, that is, when only a polyline polygon is included, the graphical representation information associated with the polyline polygon (the first graphical representation information) and the polyline polygons corresponding to the two touch points are connected. Deterministic implementation of key trajectory points.
  • the key trajectory point of the broken line polygon relative to the touch point is determined through the corresponding touch point information, and the first graphic representation information representing the broken line polygon is obtained, including:
  • touch point coordinates, touch height and touch width in the corresponding touch point information determine the polyline center point coordinates and the polyline vertex coordinates of the polyline polygon as the first graphic representation information; through the polyline center point coordinates and the corresponding touch point information, and select key track points satisfying the filter condition of track points from the coordinates of vertices of each polyline.
  • the above problem can also be transformed into calculation of a mathematical problem.
  • the irregular figure is only a polyline polygon
  • Fig. 2o to Fig. 2q are schematic explanatory diagrams related to the determination of key geometric information when the erasing geometry in the handwriting erasing method provided in the second embodiment of the present application is any irregular figure and only includes polyline geometric figures.
  • the above-mentioned calculation process can abstract the mathematical problem as follows, given the polyline polygons A and B and the touch movement direction AB, wherein, when the polyline polygon A will be transformed into the polyline polygon B along the movement direction, the polyline polygon A to The motion track of the polyline polygon B.
  • the essential problem of the above calculation is to find two vertices of each of the two polyline polygons from the AB direction, and connect the corresponding vertices. Each vertex used for connection is equivalent to a key trajectory point.
  • each geometry is independent, it can be calculated separately.
  • the touch movement direction is a vector, and the vector has no coordinates. Find the vertices that can be selected for any polyline polygon in any touch movement direction. It is necessary to understand the characteristics of this vertex, considering that the vector has no coordinates, so in the calculation implementation, the vector of the touch movement direction can be translated arbitrarily. And the best way to do this is to translate the vector to the center point of the polyline polygon.
  • the above problem can be transformed into the problem of finding the two vertices farthest from the straight line corresponding to the vector in the polyline polygon, and these two vertices are respectively located on both sides of the straight line.
  • the distances from point b and point d to line segment AB are the farthest points on both sides of the line segment. Therefore, point b and point d can be regarded as two key trajectory points in the polyline polygon shown in Fig. 2p.
  • Fig. 2q The schematic diagram of the closed area finally formed is shown in Fig. 2q, that is, Fig. 2q also includes the effect display of the moving contour geometry formed by connecting two polyline polygons.
  • the third geometric figure to be constructed includes a polyline polygon and a target circle
  • the second graphic of the key circle represents information.
  • This step b33 mainly provides another situation, that is, when a circle (this embodiment is recorded as the target circle) is included in addition to the polyline polygon, the irregular figure (combination of the polyline polygon and the circle) is associated
  • the graphic representation information second graphic representation information
  • the determination of the key track points existing when the irregular graphics corresponding to the two touch points are connected are realized.
  • the key trajectory point is determined from the polygon polygon and the key circle through the corresponding touch point information, and the second graphic representation information representing the polygon polygon and key circle is obtained as follows: :
  • touch point coordinates, touch height and touch width in the corresponding touch point information determine the polyline center point coordinates and the polyline vertex coordinates of the polyline polygon, as well as the key circle center point coordinates and circle radius, and use them as the first 2.
  • Graphical representation of information through the coordinates of the center point of the polyline, the coordinates of the center point, the radius of the circle, and the corresponding touch point information, select from the circumference of the key circle and the coordinates of the vertices of each polyline to meet the filter conditions of the track point key track points.
  • this embodiment still converts the above-mentioned key geometric information about the circle into a mathematical problem for description, wherein, Fig. 2r and Fig. 2s show the handwriting erasing method provided in the second embodiment of the present application.
  • the geometric form is any irregular figure, it is a related schematic diagram for determining the key geometric information.
  • Figure 2r can include circles and polyline polygons.
  • the specific implementation of this part can be abstracted as a mathematical problem, that is, the calculation method is to judge whether a certain tangent line of the circle is qualified as a key trajectory point.
  • the judgment method is: in Figure 2r, first judge the distance between the center of the circle and the line segment AB, and then add the distance to the radius of the circle, which is equal to the farthest distance from the circle to the line segment. If this distance satisfies the maximum distance, the point of tangency on the circle can thus be considered a critical trajectory point.
  • the determination of the key track point described above is described as follows: specifically as shown in 2s, if there is a key track point in the current circle, to find the key track point of the circle, you can first find the auxiliary line CD and The point of intersection of the circles, the point b which is relatively far from AB is the key trajectory point.
  • the three sub-steps included in the above b3 can be used to specifically realize different determinations of key trajectory points, and the determined key trajectory points and the graphic representation information of each combined graphics can be used as the first Three key geometric information of the geometry to be constructed.
  • the graphic representation information of the above-mentioned combined graphics in this embodiment can generally be determined directly by combining the given touch point information with some parameter information, and the graphic representation information mainly includes the center point and vertex coordinates of the combined graphic. , or circle center coordinates and circle radius information, etc.
  • the key geometric information determined above is actually equivalent to including the graphic representation information of the geometric figures to be constructed corresponding to the two touch points in the pair of adjacent touch points, and the corresponding two graphic representation information after connecting.
  • this embodiment also includes a definite implementation description of the corresponding moving contour geometric figures in different erasing geometric forms.
  • the given figure 2h includes a moving contour geometric figure corresponding to a rounded rectangle, that is, the first moving contour figure.
  • the first moving contour graphic includes 8 circular areas (specifically corresponding to the key circular areas determined in the above two steps of a4 and b4), and also includes each filled rectangular area for filling display ( Specifically corresponding to the circumscribed rectangular area determined by the above two steps of c4 and d4), such as the rectangle ABA 1 B 2 , and the rectangle AFA 2 F 1 , etc.
  • the key connection point pairs selected when the above two steps of c4 and d4 are determined can include A 1 B 2 , AB, AF, A 2 F 1 , F 2 E 1 , EF, BC and B 2 C 2 etc.
  • the closed area connected by vertices can also be determined, such as the polygonal area formed based on the point ABCDEF in Figure 2h, which is also included in Figure 2h as a part of the first moving contour figure.
  • the given figure 2i includes a moving contour geometric figure corresponding to a circle, that is, a second moving contour figure.
  • 2 circular areas (specifically corresponding to the second geometric figure area to be constructed determined in the above two steps of a5 and b5) are included in the second moving contour figure;
  • the quadrilateral area (specifically corresponds to the key intersection connection area determined in the above two steps of c5 and d5).
  • the combination of the circular area and the key intersection connecting area in Fig. 2i constitutes the second moving contour figure.
  • the first graphic representation information may be graphic representation information of a broken line polygon;
  • the second graphic representation information may be graphic representation information of a combination of a broken line polygon and a circle.
  • the determined combined geometric figure is a polyline polygon, or a combination of a polyline polygon and a circle.
  • the second alternative embodiment implements the determination of the target handwriting to be erased through the process shown in FIG. 2b.
  • FIG. 2 t shows an implementation flowchart of determining target handwriting to be erased in the handwriting erasing method provided in Embodiment 2 of the present application.
  • this second optional embodiment further combines the above-mentioned step of S206, that is, analyzing each handwriting point included in the handwriting to be erased, and comparing each handwriting point with the moving contour geometric figure Hit test, determine the handwriting to be erased by the target falling into the moving contour geometric figure, the following steps for the specific position:
  • the given figure 2h includes the moving contour geometry corresponding to the rounded rectangle, and the figures included in the figure 2h are disassembled After the solution, it includes the closed area connected by vertices, multiple circumscribed rectangular areas formed based on each key connection point pair, and 8 key circular areas.
  • the specific implementation of performing the first hit test on the handwriting point and each of the circumscribed rectangular areas may optionally include:
  • FIG. 3 and FIG. 4 are schematic illustrations of the hit test implementation used when the erasing geometry is a rounded rectangle in the handwriting erasing method provided in Embodiment 2 of the present application.
  • the first point 25 is the handwriting point to be hit tested
  • the first polygon 26 is the contour corresponding to the abstracted first moving contour figure
  • the first point 25 and the first Each vertex of polygon 26 is connected constitutes the first connection figure 27 as shown in Figure 4;
  • can determine the angle value of first point 25 in each triangle shown in Figure 4 finally can calculate the sum of angle value Whether it is 360 degrees, if it is 360 degrees, it can be considered that the first hit test is successful.
  • the specific implementation of performing the second hit test on the handwriting point and each of the key circular areas may optionally include:
  • the third optional embodiment of the second embodiment it can be refined on the basis of the above-mentioned first optional embodiment. Specifically, after the above S205 determines that the erasing geometry is a circle, and the second optional implementation item corresponding to S2053 is used to realize the determination of key geometric information, and the second optional implementation item corresponding to S2054 is implemented Based on the determination of the moving contour geometry, the third alternative embodiment implements the determination of the target handwriting to be erased through the process shown in FIG. 5 .
  • FIG. 5 shows another implementation flow chart of determining target handwriting to be erased in the handwriting erasing method provided in Embodiment 2 of the present application.
  • this third optional embodiment further combines the above-mentioned step of S206, that is, analyzing each handwriting point included in the handwriting to be erased, and comparing each handwriting point with the moving contour geometric figure Hit test, determine the handwriting to be erased by the target falling into the moving contour geometric figure, the following steps for the specific position:
  • the given figure 2i includes a moving contour geometric figure corresponding to a rounded rectangle.
  • Fig. 2i after disassembling the included second moving contour figure, there are two circular areas and a key intersection connection area.
  • the third hit test is performed on the connection area between the handwriting point and the key intersection point, specifically:
  • the key intersection connection area is a rectangular area
  • select two rectangular side vectors formed by a vertex from the rectangular area and perform the described step by comparing the handwriting point with each of the rectangular side vectors.
  • the hit test of the handwriting point and the rectangular area otherwise, based on each vertex of the key intersection connection area, determine the same side vector to be compared as the number of vertices; Comparing the vectors, performing a hit test between the handwriting point and the rectangular area.
  • connection area of the key intersection point may be a rectangular area (for example, the two circles have the same radius), but there are cases where it is not a rectangular area (for example, the two circles have different radii).
  • This embodiment provides the implementation of the hit test in these two cases.
  • FIG. 6 and FIG. 7 provide a schematic illustration of one of the hit test implementations used when the erasing geometry is circular in the handwriting erasing method provided in Embodiment 2 of the present application.
  • the hit test problem can be converted to whether the point is in the rectangle.
  • the vertices ABC and D of the rectangle are known, and whether the handwriting point M is in the rectangle.
  • three vectors of vector AB, AC and AM can be made.
  • whether the handwriting point is within the rectangle can be determined by the following formula (0 ⁇ AM ⁇ AB ⁇ AB ⁇ AB) ⁇ (0 ⁇ AM ⁇ AC ⁇ AC ⁇ AC). A handwriting point is considered to satisfy the third hit test if it is inside the rectangle.
  • connection area of the key intersection point is an irregular polygon
  • the angle between the two vectors can be calculated.
  • a characteristic of the vector that is, it is judged by the cross product of the vector. Specifically, take a point on the geometric edge, choose a clockwise or counterclockwise direction arbitrarily, connect the point to the next adjacent point to form a vector, and then The point and the point to be judged form a vector, and the value of the cross product of these two vectors is calculated.
  • the cross products of all vectors are in the same direction, that is to say, the point is on the same side of the line segment set composed of all geometric adjacent sides, that is, the handwriting point is inside the irregular polygon.
  • the cross products of the judgment vectors are all in the same direction, you can judge whether the value of the cross product is greater than zero, all the values of the cross product are greater than zero or less than zero, then it proves that the handwriting points are in the irregular polygon internal. If the value of the cross product is equal to zero, it proves that the handwriting point is on a certain side of the irregular polygon.
  • the fourth hit test is also a test that the handwriting point is within the circular area.
  • the fourth optional embodiment of the second embodiment it can be refined on the basis of the above-mentioned first optional embodiment. Specifically, after the above S205 determines that the erasing geometry is any irregular figure, and the third optional implementation item corresponding to S2053 is used to determine the key geometric information, and the third optional implementation item corresponding to S2054 On the basis of realizing the determination of the moving contour geometry, the fourth alternative embodiment implements the determination of the target handwriting to be erased through the process shown in FIG. 8 .
  • FIG. 8 shows another implementation flowchart of determining target handwriting to be erased in the handwriting erasing method provided in Embodiment 2 of the present application.
  • this third optional embodiment further combines the above-mentioned step of S206, that is, analyzing each handwriting point included in the handwriting to be erased, and comparing each handwriting point with the moving contour geometric figure. Hit test, determine the handwriting to be erased by the target falling into the moving contour geometric figure, the following steps for the specific position:
  • corner hit test can be understood as an implementation manner of the hit test described above based on FIG. 3 and FIG. 4 in this embodiment.
  • the distance hit test can be understood as the implementation of the hit test between handwriting points and circular areas in this embodiment.
  • the vector hit test can be understood as the implementation of the hit test based on the vector judgment of points and irregular polygons when the third hit test is described above in this embodiment.
  • the third target point set all the handwriting points that have been hit tested successfully with the third moving contour figure are summarized, and based on these handwriting points, it is possible to restore which handwriting to be erased in the display interface falls into the third target point. Move the outline graphics, and use these handwritings to be erased as the target handwritings to be erased.
  • this fifth optional embodiment can be refined on the basis of the above-mentioned first optional embodiment. Specifically, this fifth optional embodiment can determine the touch object through the obtained touch point information through the execution of the above S205. After the operation of erasing geometry matched in the move, the following operations are further added:
  • this special case can be understood as when the erasing geometry is a rounded rectangle, the touch object does not move on the display screen, but contacts the display screen in a static state.
  • the touch point information fed back by the touch frame is the information of the touch point generated when the touch object is in contact with the display screen.
  • an erasing area to be constructed whose geometric shape is a rounded rectangle can be formed.
  • the erased area is equivalent to a static rounded rectangle. Therefore, in this case, the specific implementation of this fifth alternative embodiment is as follows:
  • the static touch point may be understood as a touch point corresponding to a touch signal generated when the touch object contacts the display screen for the first time.
  • the touch point information of the static touch point can be obtained.
  • FIG. 9 shows an effect display diagram of a static rounded rectangle in the handwriting erasing method provided in Embodiment 2 of the present application.
  • the static rounded rectangle includes two rectangles (two filled rectangular areas) and four circles. That is, in this embodiment, the static rounded rectangle may optionally include two static rectangular areas and four static circular areas.
  • the static rounded rectangle is equivalent to determining the relevant geometric information of the two rectangles and the four circles.
  • the coordinates of the vertices of the above two rectangles, and the center coordinates and radius information of the four circles can also be determined, which is equivalent to obtaining the static Relative representation of a rounded rectangle.
  • Erase handwriting for erasure including:
  • the handwriting point For each handwriting point in the handwriting to be erased, the handwriting point is hit-tested with two static rectangular areas and four circular areas respectively; if the handwriting point satisfies the successful condition of the hit test, The handwriting points are added to a static point set; and the handwriting formed based on each handwriting point in the static point set is erased.
  • the test of the handwriting point and the static rounded rectangle specifically includes the hit test of the handwriting point and the rectangular area and the hit test of the handwriting point and the circular area.
  • the test about the rectangular area can be realized through the above-mentioned description about the rectangular hit test (the vector method hit test), and the test for the circular area can also be realized through the above-mentioned description about the circular hit test (the distance method hit test).
  • Fig. 10 is a structural block diagram of a handwriting erasing device provided in Embodiment 3 of the present application.
  • the handwriting erasing device can be integrated in an interactive tablet, wherein the touch response accuracy of the touch box equipped in the interactive tablet is within the set accuracy range.
  • the device may specifically include the following modules:
  • the display module 31 is used to display a display interface that includes handwriting to be erased through a display screen;
  • Trigger module 32 is used for receiving handwriting erasing instruction, enters handwriting erasing mode, and described handwriting erasing instruction is formed by the trigger of user;
  • An acquisition module 33 configured to acquire touch point information fed back through the touch frame when a touch object touches the surface of the display screen and moves, and the touch object is manipulated by the user;
  • the erasing module 34 is used to erase the handwriting to be erased in the interface by using an erasing geometry that matches the touch object by analyzing the obtained touch point information and the handwriting to be erased .
  • Embodiment 3 of the present application provides a handwriting erasing device.
  • the executive body of the device, the interactive tablet is equipped with a high-precision touch frame on the hardware structure, and the configured high-precision touch frame can be realized by the method provided in this embodiment.
  • Functional optimization on the software application level compared to the interactive panel that is not optimized at the software level in the related art, the present embodiment 3 integrates a handwriting erasing device on the interactive panel, which can ensure that the interface to be erased
  • the erasing response of the handwriting can better match the erasing geometry of the touch object used by the user, so as to realize the flexible adjustment of the erasing area during the erasing process, and thus improve the erasing efficiency on the interactive tablet.
  • the erasing geometry matching the touch object is reflected by the touch area of the touch object acting on the display screen;
  • the erasing geometry includes rounded rectangle, circle and any irregular figure.
  • the acquisition module 33 can specifically be used for:
  • each touch signal is identified through the hardware circuit in the touch frame, and the touch signal is generated when the touch object moves on the display screen;
  • one touch point information corresponds to one touch point
  • the touch point information includes: touch point coordinates, touch point height and width, and touch rotation angle.
  • the device also includes an input processing module,
  • the input processing module may be configured to process each touch point information after obtaining the touch point information fed back by the touch frame, so that each touch point information has a unified unit format and data structure.
  • the specific implementation of the input processing module processing the touch point information may include:
  • the unit of each data information in the touch point information is converted into a unified set unit format
  • the data structure corresponding to the set unit format is used to record the touch point information.
  • the erasing module 34 may specifically include:
  • a shape profile determination unit configured to determine the geometric shape of the eraser matched by the touch object during the movement through the obtained touch point information, and determine the geometry of the moving contour formed by the pair of adjacent touch points during the movement under the geometric shape of the eraser graphics;
  • a target handwriting determining unit configured to analyze each handwriting point included in the handwriting to be erased, perform a hit test on each of the handwriting points and the moving contour geometric figure, and determine the target falling into the moving contour geometric figure Handwriting to be erased;
  • An erasing execution unit configured to erase the target handwriting to be erased in the display interface.
  • the morphological contour determination unit may specifically include:
  • An information acquisition subunit configured to extract key touch point information, and obtain a key touch area in the key touch point information, wherein the key touch point information is obtained when the touch object contacts the display screen for the first time during its movement. Generate touch point information of the touch point;
  • the shape determination subunit is used to determine the area threshold range and area shape to which the key touch area belongs, and search for a target shape that matches the area shape in each geometric shape corresponding to the assigned area threshold range, and place the target morphologically determining an erasure geometry that matches the touching object;
  • the geometric information determination subunit is configured to, for each pair of adjacent touch points in the movement of the touch object, determine the touch points of each pair of adjacent touch points by analyzing the information of the corresponding touch points of the pair of adjacent touch points.
  • the outline determining subunit is configured to determine the moving outline geometry formed by the pair of adjacent touch points relative to the erasing geometry according to each of the key geometric information.
  • the rounded rectangle includes a rectangle and rounded corners with each apex of the rectangle as the center;
  • the geometric information determines the subunit, which is specifically used for:
  • each rounded corner in the first geometric figure to be constructed includes two key tangent points; each key tangent point is a corresponding tangent point when the rounded corner is connected with an adjacent rounded corner by a tangent.
  • contour determination subunit can specifically be used for:
  • each of the key circular areas, each of the circumscribing rectangular areas, and the vertex-connected closed area forms a first moving contour figure formed by the pair of adjacent touch points relative to the rounded rectangle.
  • the target handwriting determining unit can be specifically used for:
  • the handwriting formed based on each handwriting point in the first target point set is determined as the target handwriting to be erased that falls into the moving contour geometric figure.
  • the erasing module 34 also includes: a static erasing implementation unit,
  • the static erasing implementation unit may specifically include:
  • the static point determination subunit is used to determine the erasing geometry matched by the touch object during movement through the obtained touch point information, when it is determined that the erasing geometry is a rounded rectangle and the When the touch object does not move within the set time, determine the corresponding static touch point when the touch object touches the display screen within the set time;
  • a static rectangle determining subunit configured to determine a static rounded rectangle relative to the static touch point based on the touch point information of the static touch point;
  • a static hit test subunit configured to hit test each handwriting point included in the handwriting to be erased with the static rounded rectangle, and to perform a hit test on the handwriting points that fall into the static rounded rectangle in the interface. Erase handwriting.
  • the static rounded rectangle includes two static rectangular areas and four static circular areas;
  • the static hit test subunit can be used specifically for:
  • the handwriting point is hit-tested with two static rectangular areas and four circular areas respectively;
  • geometric information determination subunit can be specifically used for:
  • the circle is recorded as the second geometric figure to be constructed of each touch point in the pair of adjacent touch points;
  • touch point coordinates, touch width, and touch height in the touch point information corresponding to each touch point in the adjacent touch point pair determine the circle center coordinates and the key intersection coordinates of the corresponding second geometric figure to be constructed;
  • the coordinates of the center of the circle corresponding to each touch point and the coordinates of each key intersection point are regarded as key geometric information relative to the second geometric figure to be constructed.
  • the specific execution steps of the coordinates of each key intersection point may include:
  • Straight lines perpendicular to the line connecting the centers of the circles are respectively constructed through the coordinates of the centers of the circles, and the coordinates of the key intersection points determined after each straight line intersects with the corresponding second circle to be constructed are obtained.
  • contour determination subunit can specifically be used for:
  • Each of the second geometric figures to be constructed is combined with the key intersection connection area to form a second moving contour figure formed by the pair of adjacent touch points relative to the circle.
  • the target handwriting determination unit can be specifically used for:
  • the handwriting formed based on each handwriting point in the second target point set is determined as the target handwriting to be erased falling into the moving contour geometric figure.
  • the key intersection connection area is a rectangular area
  • select two rectangular side vectors formed by a vertex from the rectangular area and perform the described step by comparing the handwriting point with each of the rectangular side vectors.
  • a hit test between the handwriting point and the rectangular area otherwise,
  • a hit test between the handwriting point and the rectangular area is performed by comparing the handwriting point with each of the edge vectors to be compared.
  • geometric information determination subunit can also be specifically used for:
  • the erasing geometry is any irregular figure
  • the graphic representation information of each combined graphic and each key track point are regarded as key geometric information of the touch point relative to the third geometric figure to be constructed.
  • Specific implementation steps may include:
  • the third geometric figure to be constructed contains only polyline polygons
  • the third geometric figure to be constructed includes a polyline polygon and a target circle
  • the second graphical representation of the shape is the information.
  • determining the key trajectory point of the polyline polygon relative to the touch point based on the corresponding touch point information, and obtaining the specific execution information of the first graphical representation information representing the polyline polygon may include:
  • the key track points satisfying the filter condition of the track points are selected from the coordinates of the vertices of the polylines.
  • the specific execution steps of determining the key trajectory point from the polyline polygon and the key circle according to the corresponding touch point information, and obtaining the second graphic representation information representing the polyline polygon and the key circle may include:
  • touch point coordinates, touch height and touch width in the corresponding touch point information determine the polyline center point coordinates and the polyline vertex coordinates of the polyline polygon, as well as the key circle center point coordinates and circle radius, and use them as the first 2.
  • Graphic representation of information
  • the coordinates of the center point of the polyline According to the coordinates of the center point of the polyline, the coordinates of the center point of the circle, the radius of the circle, and the corresponding touch point information, select key track points satisfying the screening conditions of track points from the circumference of the key circle and the coordinates of vertices of each of the polylines.
  • the contour determination subunit can be specifically used for
  • the target handwriting determining unit can be specifically used for:
  • the distance hit test is carried out by the distance method between the handwriting point and each described polyline polygon and the key circle;
  • the handwriting point is added to the third target point set; otherwise, the handwriting point and the key track area are subjected to a vector hit test, and when the vector hit test is successful, the handwriting Points are added to a third set of target points;
  • the handwriting formed based on each handwriting point in the third target point set is determined as the target handwriting to be erased falling into the moving contour geometric figure.
  • FIG. 11 is a schematic structural diagram of an interactive panel provided in Embodiment 4 of the present application.
  • the interactive panel includes: a processor 40 , a memory 41 , a display screen 42 , an input device 43 , an output device 44 , and a touch frame 45 .
  • the number of processors 40 in the interactive panel can be one or more, and one processor 40 is taken as an example in FIG. 11 .
  • the number of memory 41 in the interactive panel can be one or more, and one memory 41 is taken as an example in FIG. 11 .
  • the processor 40 , memory 41 , display screen 42 , input device 43 , output device 44 and touch frame 45 of the interactive panel can be connected through a bus or in other ways. In FIG. 11 , connection through a bus is taken as an example.
  • Memory 41 can be used to store software programs, computer-executable programs and modules, such as program instructions/modules corresponding to the interactive flat panel described in any embodiment of the present application (for example, in the handwriting erasing device) display module 31, trigger module 32, acquisition module 33 and presentation module 34).
  • the memory 41 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system and at least one application required by a function; the data storage area can store data created according to the use of the device, etc.
  • the memory 41 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage devices. In some instances, the memory 41 may further include memory located remotely relative to the processor 40, and these remote memories may be connected to the device through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the display screen 42 is covered with the touch frame 45 (the covering relationship is not shown in FIG. 11 ), which can constitute a touch screen for displaying interactive content. Generally speaking, the display screen 42 is used to The display data is also used to receive touch operations on the display screen 42 and send corresponding signals to the processor 40 or other devices.
  • the input device 43 can be used to receive input digital or character information, and generate key signal input related to user settings and function control of the display device, and can also be a camera for obtaining graphics and a sound pickup device for obtaining audio data.
  • the output device 44 may include an audio device such as a speaker. It should be noted that the specific composition of the input device 43 and the output device 44 can be set according to actual conditions.
  • the touch response precision of the touch frame 45 reaches the set precision range, and is used to respond to the touch operation of the touch object through the included hardware circuit.
  • the processor 40 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 41 , that is, realizes the above-mentioned handwriting erasing method.
  • the interactive tablet provided above can be used to execute the handwriting erasing method provided by any of the above embodiments, and has corresponding functions.
  • Embodiment 5 of the present application also provides a storage medium containing computer-executable instructions, the computer-executable instructions are used to perform a handwriting erasing method when executed by a computer processor, including:
  • Receive handwriting erasing instruction enter handwriting erasing mode, described handwriting erasing instruction is formed by the trigger of user;
  • the handwriting to be erased in the interface is erased using an erasing geometry that matches the touch object.
  • a storage medium containing computer-executable instructions provided in the embodiments of the present application the computer-executable instructions are not limited to the operation of the handwriting erasing method as described above, and can also execute the handwriting erasing method provided in any embodiment of the present application. In addition to the relevant operations in the method, and have the corresponding functions.
  • each part of the present application may be realized by hardware, software, firmware or a combination thereof.
  • various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinatorial logic gates, Programmable Gate Array (PGA), Field-Programmable Gate Array (FPGA), etc.

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)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开了笔迹擦除方法、装置、交互平板及存储介质。交互平板所配备触摸框的触摸响应精度达到设定精度范围,方法包括:通过显示屏展示包含有待擦除笔迹的显示界面;接收笔迹擦除指令,进入笔迹擦除模式,笔迹擦除指令通过用户的触发形成;在触摸物触碰显示屏的表面并移动时,获得通过触摸框反馈的触摸点信息,触摸物由用户操控;通过对所获得触摸点信息以及待擦除笔迹的分析,采用与触摸物相匹配的擦除几何形态对界面中的待擦除笔迹进行擦除。利用该方法,能够保证对界面中待擦除笔迹的擦除响应更能够与用户所使用触摸物的擦除几何形态相匹配,从而实现擦除过程中擦除区域的灵活调整,进而实现了交互平板上擦除效率的提升。

Description

笔迹擦除方法、装置、交互平板及存储介质
本申请要求在2021年5月20日提交中国专利局、申请号为202110554083.9的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子设备的触摸书写技术领域,尤其涉及笔迹擦除方法、装置、交互平板及存储介质。
背景技术
触摸框是交互平板的一个重要硬件组成,主要用来响应用户在交互平板上的触摸操作。市面上流通的交互平板内采用的触摸框多为非高精度触摸框,该类非高精度触摸框存在的缺陷主要表现在:难以进行书写笔类型的判断;难以保证同一书写笔在书写中生成的触摸面积相同;难以判定触摸介质为书写笔还是手指或者橡皮擦;也难以给出触摸旋转角度的判定。
在实现本申请的过程中,发明人发现当前存在如下缺陷:交互平板的软件层面难以最大化利用触摸框所反馈的触摸点信息,从而导致交互平板上与触摸有关的性能效果(如对已形成的书写笔迹进行擦除时的擦除效果)并没有明显提升。
发明内容
本申请实施例提供了一种笔迹擦除方法、装置、交互平板及存储介质,实现了交互平板上笔迹擦除效果的提升。
第一方面,本申请实施例提供了一种笔迹擦除方法,应用于交互平板,所述交互平板所配备触摸框的触摸响应精度达到设定精度范围,所述方法包括:
通过显示屏展示包含有待擦除笔迹的显示界面;
接收笔迹擦除指令,进入笔迹擦除模式,所述笔迹擦除指令通过用户的触 发形成;
在触摸物触碰所述显示屏的表面并移动时,获得通过所述触摸框反馈的触摸点信息,所述触摸物由用户操控;
通过对所获得触摸点信息以及所述待擦除笔迹的分析,采用与所述触摸物相匹配的擦除几何形态对所述界面中的待擦除笔迹进行擦除;
与所述触摸物相匹配的擦除几何形态通过所述触摸物作用在显示屏上的触摸面积来体现;
所述擦除几何形态包括圆角矩形、圆形以及任意不规则图形。
进一步地,所述获得通过所述触摸框反馈的触摸点信息,包括:
通过所述触摸框中硬件电路识别各触控信号,所述触控信号由所述触摸物在所述显示屏上移动时产生;
获得所述触摸框通过人机交互HID标准协议针对各所述触控信号反馈的触摸点信息,
其中,一个触摸点信息对应一个触摸点,所述触摸点信息包括:触摸点坐标、触摸点高度和宽度、以及触摸旋转角度。
进一步地,在获得通过所述触摸框反馈的触摸点信息之后,还包括:
处理各所述触摸点信息,以使各所述触摸点信息具备统一的单位格式及数据结构。
进一步地,所述处理各所述触摸点信息,包括:
根据所获取触摸框的尺寸大小信息以及屏幕分辨率信息,将所述触摸点信息中各项数据信息的单位转换为统一的设定单位格式;
采用所述设定单位格式对应的数据结构,对所述触摸点信息进行记录。
进一步地,通过对所获得触摸点信息以及所述待擦除笔迹的分析,采用与所述触摸物相匹配的擦除几何形态对所述界面中的待擦除笔迹进行擦除,包括:
通过所获得的触摸点信息,确定触摸物在移动中匹配的擦除几何形态,以及确定移动中相邻触摸点对在所述擦除几何形态下构成的移动轮廓几何图形;
分析所述待擦除笔迹中包括的各笔迹点,将各所述笔迹点与所述移动轮廓几何图形进行命中测试,确定落入所述移动轮廓几何图形中的目标待擦除笔迹;
在所述显示界面中对所述目标待擦除笔迹进行擦除。
进一步地,所述通过所获得的触摸点信息,确定触摸物在移动中匹配的擦除几何形态,以及确定移动中相邻触摸点对在所述擦除几何形态下构成的移动轮廓几何图形,包括:
提取关键触摸点信息,获得所述关键触摸点信息中的关键触摸面积,其中,所述关键触摸点信息为所述触摸物移动中首次与所述显示屏接触时所产生触摸点的触摸点信息;
确定所述关键触摸面积归属的面积阈值范围以及面积形态,在所归属面积阈值范围对应的各几何形态中查找与所述面积形态相匹配的目标形态,将所述目标形态确定为所述触摸物匹配的擦除几何形态;
针对所述触摸物移动中的每个相邻触摸点对,通过对所述相邻触摸点对所对应触摸点信息的分析,确定相邻触摸点对中各触摸点相对所述擦除几何形态的关键几何信息;
根据各所述关键几何信息,确定所述相邻触摸点对相对所述擦除几何形态构成的移动轮廓几何图形。
进一步地,当所述擦除几何形态为圆角矩形时,所述圆角矩形包括一个矩形和以矩形各顶点为圆心的圆角;
所述通过对所述相邻触摸点对所对应触摸点信息的分析,确定相邻触摸点对中各触摸点相对所述擦除几何形态的关键几何信息,包括:
将所述圆角矩形记作所述相邻触摸点对中各触摸点的第一待构建几何图形;
针对所述相邻触摸点对中的每个触摸点,通过所对应触摸点信息中的触摸点坐标、触摸宽度、触摸高度以及触摸旋转角度,结合预给定的圆角半径,确定所述第一待构建几何图形中矩形的中心点坐标、各圆角的圆心坐标和各关键切点坐标、以及两图形连接点坐标;
将所述矩形的中心点坐标、各圆角的圆心坐标及各关键切点坐标、以及两图形连接点坐标看作所述触摸点相对所述第一待构建几何图形的关键几何信息;
其中,所述第一待构建几何图形中每个圆角包括两个关键切点;各关键切点为所述圆角与相邻圆角以切线连接时对应的切点。
进一步地,所述根据各所述关键几何信息,确定所述相邻触摸点对在所述擦除几何形态下构成的移动轮廓几何图形,包括:
从所述相邻触摸点对的关键几何信息中提取所对应圆角矩形的圆角圆心坐标,选定外接轮廓构建所需的关键圆心点;
获得基于各所述关键圆心点分别确定的关键圆形区域;
从所述相邻触摸点对的关键几何信息中提取所对应圆角矩形的矩形顶点坐标以及中心点坐标,选定外接轮廓构建所需的关键连接点对;
获得基于各所述关键连接点对分别确定的外接矩形区域,以及基于各所述矩形顶点坐标确定的顶点连接封闭区域;
对各所述关键圆形区域、各所述外接矩形区域以及所述顶点连接封闭区域进行组合,形成所述相邻触摸点对相对所述圆角矩形构成的第一移动轮廓图形。
进一步地,分析所述待擦除笔迹中包括的各笔迹点,将各所述笔迹点与所述移动轮廓几何图形进行命中测试,确定落入所述移动轮廓几何图形中的目标待擦除笔迹,包括:
拆解所述第一移动轮廓图形,获得所述顶点连接封闭区域、以及相应数量的外接矩形区域和关键圆形区域;
针对所述待擦除笔迹包括的每个笔迹点,将所述笔迹点与所述顶点连接封闭区域及各所述外接矩形区域进行第一命中测试;
如果第一命中测试成功,则将所述笔迹点添加至第一目标点集合;否则,将所述笔迹点与各所述关键圆形区域进行第二命中测试;
如果第二命中测试成功,则将所述笔迹点添加至所述第一目标点集合;
将基于所述第一目标点集合中各笔迹点形成的笔迹确定为落入所述移动轮 廓几何图形中的目标待擦除笔迹。
进一步地,所述将所述笔迹点与各所述外接矩形区域进行第一命中测试,包括:
将所述顶点连接封闭区域与各所述外接矩形区域进行组合,获得相应的凸多边形区域,并获取构成所述凸多边形区域的各区域顶点;
将所述笔迹点分别与各所述区域顶点连接,获得数量与所述区域顶点相同个的三角形;
确定各所述三角形中以所述笔迹点构成顶角的角度值;
如果各所述角度值之和为360度,则确定所述笔迹点的第一命中测试成功。
进一步地,所述将所述笔迹点与各所述关键圆形区域进行第二命中测试,包括:
获取各所述关键圆形区域的区域圆心以及区域半径,并确定所述笔迹点与各所述区域圆心的连线距离;
如果存在小于相应区域半径的连线距离,则确定所述笔迹点的第二命中测试成功。
进一步地,在所述通过所获得的触摸点信息,确定触摸物在移动中匹配的擦除几何形态之后,还包括:
当确定所述擦除几何形态为圆角矩形且监测到所述触摸物在设定时间内未发生移动时,确定所述触摸物在所述设定时间内接触所述显示屏时对应的静态触摸点;
基于所述静态触摸点的触摸点信息,确定相对所述静态触摸点的静态圆角矩形;
将所述待擦除笔迹中包括的各笔迹点与所述静态圆角矩形进行命中测试,在所述界面中对落入所述静态圆角矩形中的待擦除笔迹进行擦除。
进一步地,所述静态圆角矩形包括两个静态矩形区域以及四个静态圆形区域;
相应的,所述将所述待擦除笔迹中包括的各笔迹点与所述静态圆角矩形进行命中测试,在所述界面中对落入所述静态圆角矩形中的待擦除笔迹进行擦除,包括:
针对所述待擦除笔迹中的每个笔迹点,将所述笔迹点分别与两个静态矩形区域以及四个圆形区域进行命中测试;
如果所述笔迹点满足命中测试成功的条件,则将所述笔迹点添加到静态点集合;
对基于所述静态点集合中各笔迹点形成的笔迹进行擦除。
进一步地,当所述擦除几何形态为圆形时,所述通过对所述相邻触摸点对所对应触摸点信息的分析,确定相邻触摸点对中各触摸点相对所述擦除几何形态的关键几何信息,包括:
将所述圆形记作所述相邻触摸点对中各触摸点的第二待构建几何图形;
通过所述相邻触摸点对中各触摸点所对应触摸点信息中的触摸点坐标、触摸宽度、触摸高度,确定相应第二待构建几何图形的圆形圆心坐标以及各关键交点坐标;
将各触摸点对应的圆形圆心坐标以及各关键交点坐标看作相对所述第二待构建几何图形的关键几何信息。
进一步地,所述通过所述相邻触摸点对中各触摸点所对应触摸点信息中的触摸点坐标、触摸宽度、触摸高度,确定相应第二待构建几何图形的圆形圆心坐标以及各关键交点坐标,包括:
通过所述相邻触摸点对中各触摸点所对应触摸点信息中的触摸点坐标、触摸宽度以及触摸高度,确定相应第二待构建圆形的圆形圆心坐标;
连接相应的两圆形圆心坐标,获得圆心连线;
过各所述圆形圆心坐标分别构建与所述圆心连线垂直的直线,获得各直线与相应第二待构建圆形相交后确定的关键交点坐标。
进一步地,所述根据各所述关键几何信息,确定所述相邻触摸点对在所述 擦除几何形态下构成的移动轮廓几何图形,包括:
从所述相邻触摸点的关键几何信息中提取包含的圆形圆心坐标;
获取基于各所述圆形圆心坐标确定的第二待构建几何图形区域;
从所述相邻触摸点的关键几何信息中提取包含的各关键交点坐标;
获得基于各所述关键交点坐标确定的关键交点连接区域;
将各所述第二待构建几何图形与所述关键交点连接区域进行组合,形式所述相邻触摸点对相对所述圆形构成的第二移动轮廓图形。
进一步地,分析所述待擦除笔迹中包括的各笔迹点,将各所述笔迹点与所述移动轮廓几何图形进行命中测试,确定落入所述移动轮廓几何图形中的目标待擦除笔迹,包括:
拆解所述第二移动轮廓图形,获得一个关键交点连接区域以及两个第二待构建几何图形;
针对所述待擦除笔迹包括的每个笔迹点,将所述笔迹点与所述关键交点连接区域进行第三命中测试;
如果第三命中测试成功,则将所述笔迹点添加至第二目标点集合;否则,将所述笔迹点与各所述第二待构建几何图形,进行点与圆形区域的第四命中测试;
如果第四命中测试成功,则将所述笔迹点添加至所述第二目标点集合;
将基于所述第二目标点集合中各笔迹点形成的笔迹确定为落入所述移动轮廓几何图形中的目标待擦除笔迹。
进一步地,所述将所述笔迹点与所述关键交点连接区域进行第三命中测试,包括:
当确定所述关键交点连接区域为矩形区域时,从所述矩形区域选定由一个顶点形成两个矩形边向量,通过将所述笔迹点与各所述矩形边向量的比对,进行所述笔迹点与所述矩形区域的命中测试;否则,
基于所述关键交点连接区域的各顶点,确定与所述顶点数量相同的待比较 边向量;
通过将所述笔迹点与各所述待比较边向量的比对,进行所述笔迹点与所述矩形区域的命中测试。
进一步地,所述当擦除几何形态为任意不规则图形时,所述通过对所述相邻触摸点对所对应触摸点信息的分析,确定相邻触摸点对中各触摸点相对所述擦除几何形态的关键几何信息,包括:
将所述任意不规则图形记作所述相邻触摸点对中各触摸点的第三待构建几何图形,确定所述第三待构建几何图形中包含的组合图形信息;
针对所述相邻触摸点对中的每个触摸点,通过所对应触摸点信息结合所述组合图形信息,确定所述第三待构建几何图形上相对所述触摸点存在的关键轨迹点以及所述第三待构建几何图形的图形表示信息;
将各所述组合图形的图形表示信息以及各所述关键轨迹点看作所述触摸点相对所述第三待构建几何图形的关键几何信息。
进一步地,所述通过所对应触摸点信息结合所述组合图形信息,确定所述第三待构建几何图形上相对所述触摸点存在的关键轨迹点以及所述第三待构建几何图形的图形表示信息,包括:
分析所述组合图形信息;
确定所述第三待构建几何图形中仅包含折线多边形时,通过所对应触摸点信息确定所述折线多边形相对所述触摸点存在的关键轨迹点,并获得表示所述折线多边形的第一图形表示信息;
确定所述第三待构建几何图形中包含折线多边形以及目标圆形时,通过所对应触摸点信息从所述折线多边形及关键圆形上确定关键轨迹点,并获得表示所述折线多边形和关键圆形的第二图形表示信息。
进一步地,所述通过所对应触摸点信息确定所述折线多边形相对所述触摸点存在的关键轨迹点,并获得表示所述折线多边形的第一图形表示信息,包括:
通过所对应触摸点信息中的触摸点坐标、触摸高度以及触摸宽度,确定作 为第一图形表示信息的折线多边形的折线中心点坐标以及各折线顶点坐标;
通过所述折线中心点坐标以及所对应触摸点信息,从各所述折线顶点坐标中选择满足轨迹点筛选条件的关键轨迹点。
进一步地,所述通过所对应触摸点信息从所述折线多边形及关键圆形上确定关键轨迹点,并获得表示所述折线多边形和关键圆形的第二图形表示信息,包括:
通过所对应触摸点信息中的触摸点坐标、触摸高度以及触摸宽度,确定所述折线多边形的折线中心点坐标和各折线顶点坐标、以及关键圆形的圆心点坐标及圆形半径,并作为第二图形表示信息;
通过所述折线中心点坐标、圆心点坐标、圆形半径以及所对应触摸点信息,从所述关键圆形的圆周上以及各所述折线顶点坐标中选择满足轨迹点筛选条件的关键轨迹点。
进一步地,所述根据各所述关键几何信息,确定所述相邻触摸点对相对所述擦除几何形态构成的移动轮廓几何图形,包括:
从所述相邻触摸点对的关键几何信息中分别提取第一图形表示信息或第二图形表示信息;
获得基于相应的第一图形表示信息或第二图形表示信息分别确定的组合几何图形;
从所述相邻触摸点对的关键几何信息中分别提取关键轨迹点;
获得基于各所述关键轨迹点连接形成的关键轨迹区域;
将各所述组合几何图形与所述关键轨迹区域进行组合,形成所述相邻触摸点对相对所述任意不规则图形构成的第三移动轮廓图形。
进一步地,所述分析所述待擦除笔迹中包括的各笔迹点,将各所述笔迹点与所述移动轮廓几何图形进行命中测试,确定落入所述移动轮廓几何图形中的目标待擦除笔迹,包括:
拆解所述第三移动轮廓图形,获得所述关键轨迹区域及各所述组合几何图 形;
针对所述待擦除笔迹包括的每个笔迹点,如果组合几何图形仅为折线多边形,则将所述笔迹点与各所述折线多边形采用转角法进行转角命中测试;或者,
如果组合几何图形包含折线多边形和关键圆形,则将笔迹点分别与各所述折线多边形及关键圆形采用距离法进行距离命中测试;
在转角或者距离命中测试成功时将所述笔迹点添加至第三目标点集合;否则,将所述笔迹点与所述关键轨迹区域进行向量命中测试,并在向量命中测试成功时将所述笔迹点添加至第三目标点集合;
将基于所述第三目标点集合中各笔迹点形成的笔迹确定为落入所述移动轮廓几何图形中的目标待擦除笔迹。
第二方面,本申请实施例提供了一种笔迹擦除装置,配置于交互平板,所述交互平板所配备触摸框的触摸响应精度达到设定精度范围,所述装置包括:
显示模块,用于通过显示屏展示包含有待擦除笔迹的显示界面;
触发模块,用于接收笔迹擦除指令,进入笔迹擦除模式,所述笔迹擦除指令通过用户的触发形成;
获取模块,用于在触摸物触碰所述显示屏的表面并移动时,获得通过所述触摸框反馈的触摸点信息,所述触摸物由用户操控;
擦除模块,用于通过对所获得触摸点信息以及所述待擦除笔迹的分析,采用与所述触摸物相匹配的擦除几何形态对所述界面中的待擦除笔迹进行擦除。
第三方面,本申请实施例还提供一种交互平板,包括:
触摸框,所具备的触摸响应精度,达到设定精度范围,用于通过包括的硬件电路响应触摸物的触摸操作;
显示屏,与所述触摸框覆盖,构成触摸屏,用于进行交互内容的显示;
一个或多个处理器;
存储装置,用于存储一个或多个程序;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多 个处理器实现如本申请第一方面提供的方法。
第四方面,本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如第一方面所述的方法。
上述提供的笔迹擦除方法、装置、交互平板及存储介质。所提出的方法可以由交互平板执行,该交互平板上所配备触摸框的触摸响应精度达到设定精度范围;其中该方法首先可以通过显示屏展示包含有待擦除笔迹的显示界面;之后可以接收笔迹擦除指令,进入笔迹擦除模式;然后在触摸物触碰所述显示屏的表面并移动时,获得通过所述触摸框反馈的触摸点信息;最终可以通过对所获得触摸点信息以及所述待擦除笔迹的分析,采用与所述触摸物相匹配的擦除几何形态对所述界面中的待擦除笔迹进行擦除。本实施例上述技术方案,对于在硬件结构上配置了高精度触摸框的交互平板,能够将所配置的高精度触摸框通过本实施例所提供的方法实现软件应用层面上的功能优化,相比于相关技术中的未在软件层面进行优化的交互平板,本实施例所提供的方法可以保证对界面中待擦除笔迹的擦除响应更能够与用户所使用触摸物的擦除几何形态相匹配,从而实现擦除过程中擦除区域的灵活调整,进而实现了交互平板上擦除效率的提升。
附图说明
图1给出了本申请实施例一提供的一种笔迹擦除方法的流程示意图;
图1a为本申请实施例一所提供一种笔迹擦除方法中触摸框响应触摸物的效果展示图;
图1b给出了本申请实施例一所提供笔迹擦除方法中擦除几何形态呈现的效果图;
图1c给出了本申请实施例一所提供笔迹擦除方法中作为擦除区域的移动轮廓几何图形的效果展示图;
图2给出了本申请实施例二提供的一种笔迹擦除方法的流程示意图;
图2a给出了本申请实施例二所提供笔迹擦除方法的效果展示图;
图2b给出了本申请实施例二所提供笔迹擦除方法中擦除形态及轮廓图形确定的一种实现流程图;
图2c~图2h给出了本申请实施例二所提供笔迹擦除方法中擦除几何形态为圆角矩形时关键几何信息确定的相关示意说明图;
图2i~图2m给出了本申请实施例二所提供笔迹擦除方法中擦除几何形态为圆形时关键几何信息确定的相关示意说明图;
图2n给出了本申请实施例二所提供笔迹擦除方法中擦除几何形态为任意不规则图形时的效果展示图;
图2o~图2q给出了本申请实施例二所提供笔迹擦除方法中擦除几何形态为任意不规则图形且仅包含折线几何图形时关键几何信息确定的相关示意说明图;
图2r和图2s给出了本申请实施例二所提供笔迹擦除方法中擦除几何形态为任意不规则图形时关键几何信息确定的相关示意说明图;
图2t给出了本申请实施例二所提供笔迹擦除方法中目标待擦除笔迹确定的一种实现流程图;
图3和图4给出了本申请实施例二所提供笔迹擦除方法中擦除几何形态为圆角矩形时所使用的命中测试实现的示意说明图;
图5给出了本申请实施例二所提供笔迹擦除方法中目标待擦除笔迹确定的另一种实现流程图;
图6和图7给出了本申请实施例二所提供笔迹擦除方法中擦除几何形态为圆形时所使用其中一种命中测试实现的示意说明图;
图8给出了本申请实施例二所提供笔迹擦除方法中目标待擦除笔迹确定的又一种实现流程图;
图9给出了本申请实施例二所提供笔迹擦除方法中静态圆角矩形的效果展示图;
图10为本申请实施例三提供的一种笔迹擦除装置的结构框图;
图11为本申请实施例四提供的一种交互平板的结构示意图。
具体实施方式
下面将结合附图对本申请实施例方式作详细描述。
下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。
在本申请的描述中,需要理解的是,术语“第一”、“第二”、“第三”等仅用于用于区别类似的对象,而不必用于描述特定的顺序或先后次序,也不能理解为指示或暗示相对重要性。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本申请中的具体含义。此外,在本申请的描述中,除非另有说明,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。
在实际应用中,交互平板的硬件部分由显示屏、智能处理系统等部分所构成,由整体结构件结合到一起,同时也由专用的软件系统作为支撑。
其中,显示屏具体可以包括发光二极管(Light Emitting Diode,LED)显示屏、有机电激光显示(Organic Light-Emitting Diode,OLED)显示屏、液晶显示屏(Liquid Crystal Display,LCD)显示屏等。通过在显示屏表面的两侧设置光学触控传感器,可以构成触摸框,形成触控显示屏。其中,构成触摸框的光学触控传感器可在显示屏的表面使用光信号扫描触摸物,如用户的手指、触控笔等。可以理解的是,为了保护显示屏不被触摸物划伤,在显示屏的表面会设置盖板玻璃,因此,本说明书中的实施例中,显示屏的表面,指的是显示屏的盖板玻璃表面。
当触摸物触摸显示屏、触发了显示屏上某个界面时,执行定位等操作,触摸框可以响应上述触摸操作,并将相应的触摸操作信息传递给应用层面的智能处理系统,从而通过智能处理系统实现各种交互应用。
以其中一种构成触摸框的光学触控传感器为例,站在技术原理角度对触摸框进行说明:
具体的,光学触控传感器可以包括红外发射器与红外接收器,红外发射器用于发射红外信号,红外接收器用于接收红外信号,利用不同方向上密布的红外线信号形成光束栅格来定位触摸点。显示屏安装带电路板的边框,作用是在显示屏的周围排布红外发射器和红外接收器,形成横竖交叉的光束栅格触摸框。
在显示屏具备上述触摸框时,当触控物体遮断了红外信号,就会在相应红外接收器处引起光测量值的减弱,因而,可以判断出触摸点在屏幕的位置。
具体而言,红外发射器安装在显示屏的边框的第一侧,红外接收器安装在显示屏的边框的第二侧,第一侧与第二侧位置相对,即红外接收器在红外发射器的扫描范围内,使得红外发射器所发射的红外信号由红外接收器所接收。
针对不同的业务需求,显示屏的形状有所不同,如矩形、六边形、圆形等,边框的形状也随显示屏的形状而有所不同,如矩形、六边形、圆形等,针对不同形状的边框,各个红外模组中红外发射器、红外接收器的设置也有所不同。
一般的,交互平板上配置的常规触摸框,在响应触摸物体的触控信号时,所具备的触摸响应精度往往处于常规范围内。而对于触摸响应精度精度处于常规范围的非高精度触摸框而言,可能难以识别出触摸物在显示屏上的触摸面积大小,由此在触摸书写模式下,难以很好的判断用户采用了什么类型的触摸物进行书写,或者,也难以判断用户采用什么触摸介质(手指、书写笔)进行触摸;又如,在触摸擦除模式下,难以很好的判断用户采用了什么类型的触摸物进行擦除,仅是基于常规的擦除形态完成擦除。同时,非高精度触摸框也难以很好保证同一类型触摸物在触摸过程中呈现展现相同的触摸面积。
本实施例中的交互平板,在其硬件配置上,其所采用的触摸框与触摸响应 精度处于常规范围内的常规触摸框相比,采用了具备高触摸响应精度的高精度触摸框,所谓高触摸响应精度,可理解为触摸响应精度已经达到设定精度范围,其中,设定精度范围的精度限定高于常规精度范围。通过本实施例所采用的该种触摸框,其可以向上层应用层面提供更精细的触摸信息,如,可以提供触摸物的触摸面积、更准确的触摸点坐标,触摸物在触控过程中的旋转角度等。
同时,对于交互白板中的智能处理系统,其可以包括主机处理器,主机处理器属于交互平板的处理器,主机处理器内置的软件可实现不同的功能应用,并借由显示屏显示画面、制造出生动的影音效果。
其中,主机处理器属于性能较高的运算模块。
例如,该主机处理器可以为Android(安卓)模块,即可安装Android(安卓)系统,配置CPU(Central Processing Unit,中央处理器)、GPU(Graphics Processing Unit,图形处理器)、RAM(random access memory,随机存取存储器)和ROM(Read-Only Memory,只读存储器)等组件,例如,针对Android7.0版本,CPU为双核A72与四核A53,GPU为Mali T860,RAM为4GB、ROM为32GB,等等。
又例如,该主机处理器可以为PC(personal computer,个人电脑)模块,配置有CPU、GPU、内存、硬盘等组件,例如,针对为插拔式Intel Core系列模块化电脑,CPU为Intel Core i5/i7,GPU为核显Intel HD Graphics,内存为DDR4 8G/16G,硬盘为128G/256G。
实施例一
图1给出了本申请实施例一提供的一种笔迹擦除方法的流程示意图。本实施例可适用于在擦除模式下对界面中存在笔迹进行擦除的情况。该方法可以由笔迹擦除装置执行,该笔迹擦除装置可以由软件和/或硬件实现,可配置在交互平板中,尤其配置在交互平板的处理器中,该处理器可以为智能处理系统中的主机处理器。同时,在交互平板中配备的触摸框,所具备的触摸响应精度达到 设定精度范围;此外,触摸框也与显示屏电连接。
如图1所示,本申请实施例一提供的一种笔迹擦除方法,具体包括如下步骤:
S101、通过显示屏展示包含有待擦除笔迹的显示界面。
可以知道的是,本实施例所提供方法的执行主体,即交互平板中还设置有图形处理器(Graphics Processing Unit,GPU),可提供视频处理功能,具体而言,通过GPU可以接收来自主机处理器的信息,并置入帧存储器,以及按分区驱动方式针对视频信号生成显示屏所需的串行显示数据和扫描控制时序。在上述操作的基础上,交互平板上设置的显示屏就可以按照串行显示数据和扫描控制时序进行帧数据信息播放,从而在显示屏上显示各种画面。
在本实施例中,所述显示界面可认为是用户在书写或者编辑模式下进行书写或者编辑后在显示屏上所显示的界面。具体的,该显示界面中所呈现的元素信息中至少包含了通过用户操作形成的待擦除笔迹。可以知道的是,该待擦除笔迹可以是用户在书写模式下进行书写操作而呈现的笔迹,其中,该笔迹的颜色、粗细等均可以由用户选择,所呈现的笔迹风格还可以展现用户的书写风格。
一般的,该显示界面可以为独立的界面,示例性地,交互平板提供电子白板,用户在交互平板中触发显示该电子白板的控制操作,交互平板接收该控制操作,显示电子白板,作为元素呈现的显示界面。
此外,该显示界面也可以为具有背景的界面,示例性地,交互平板显示本地的课件、显示传屏设备(USB Dongle,USB软件保护器)传输的、属于源设备(如笔记本电脑等)的屏幕画面等数据,用户在交互平板中触发批注操作,交互平板接收该批注操作,冻结课件、屏幕画面等数据,使之成为背景,即维持显示课件、屏幕画面等数据的当前帧画面,并在课件、屏幕画面等数据之上生成蒙层,从而作为当前呈现的显示界面。
其中,所谓课件,可以指是根据教学的要求,经过教学目标确定,教学内容和任务分析,教学活动结构及界面设计等环节,而加以制作的课程文档,例 如,该课件可以为Word文档、PPT(PowerPoint,演示文稿)等公用格式的文件,也可以为文字、表格、图片等元素组合而成的自定义页面,本实施例对此不加以限制。
S102、接收笔迹擦除指令,进入笔迹擦除模式,所述笔迹擦除指令通过用户的触发形成。
在本实施例中,站在用户角度而言,用户可以在显示屏上,即所呈现的显示界面上进行触发触控操作,该触控操作可以是点触、长时间按压触控以及移动触控。其中,点触多应用于对显示界面中任意按钮或图标的触发,长时间按压触控多应用于元素的拖拽控制,移动触控多用于笔迹的书写或者擦除,其中移动触控往往以轨迹的形式表示。
一般的,在交互平板显示界面上的控制操作包括但不限于触控操作、键盘操作、鼠标操作、物理按键操作,本实施例中生成笔迹擦除指令的操作同样可以可选采用触控操作、鼠标操作以及键盘操作等。
示例性的,执行本步骤的前置操作可以描述为:显示界面中包括进入擦除模式的功能按钮,如擦除按钮,用户通过对该擦除按钮进行点触,交互平板中的触摸框响应点触操作的触控信号,并将触控信号相关的触控信息反馈给交互平板的上层(如智能处理系统中的主处理器)。由此,本步骤可以接收到上层生成的笔迹擦除指令,并响应该笔迹擦除指令进入到笔迹擦除模式下。
在本实施例中,所述笔迹擦除模式可理解为交互白板在该模式启动后具备了对显示界面中所显示元素进行擦除的权限。即,在进入该擦除模式后可以将显示界面中在书写模式下所呈现的笔迹看作擦除对象,具备了对擦除笔迹进行擦除的权限。
S103、在触摸物触碰所述显示屏的表面并移动时,获得通过所述触摸框反馈的触摸点信息,所述触摸物由用户操控。
在本实施例中,所述触摸物具体可以是用户的手指、主动触控笔或者被动触控笔等,用户可以操控触摸物在交互平板的显示屏表面上移动,其中,触摸 物移动时所呈现的移动状态在擦除模式下可用于书写笔迹的擦除。示例性的,进行擦除时的触摸物可以是专用的与交互平板相匹配的物理橡皮擦(如触控黑板擦),也可以是用户的身体部位,如手部等。
关于触摸物对显示屏的触碰以及信息反馈,通过本申请实施例中的上述描述,可以知道交互平板还配置了与显示屏相结合的触摸框,其中,触摸框具体可以是光学触摸传感器构成的嵌套在显示屏边缘的边框。本步骤中,触摸框可以基于所包含的光学触控传感器在触摸物在显示屏上移动时产生触控信号,并通过对触控信号的响应识别出相应的触摸点信息。
具体的,图1a为本申请实施例一所提供一种笔迹擦除方法中触摸框响应触摸物的效果展示图。如图1a所示,交互平板的显示屏110的边缘两侧安装有一个或者多个光学触控传感器120,构成了触摸框。用户所操控的触摸物(如将用户手指作为擦除所需的触摸物)在显示屏110上的移动状态可以采用手指状态131至135来呈现。
接上述描述,在交互平板启动、运行期间,处理器可启动光学触控传感器120,光学触控传感器120在交互平板的显示屏表面扫描光信号,根据光信号的传输情况检测显示屏表面是否出现触摸物,在检测到触摸物时,在该触摸物的移动过程中实时产生相应的触控信号。同时,触摸框可以对所产生的触控信号进行响应,从而向交互平板的上层(如智能处理系统中的主处理器)反馈响应后识别出的触摸点数据,本实施例将触摸点数据记为触摸点信息。
在本实施例中,考虑到交互平板上所配置触摸框相对触摸物的触摸响应精度达到了设定精度范围,可认为本实施例所采用的触摸框为高精度触摸框。上述步骤中通过该触摸框反馈的触摸点信息在精度上以及信息详细程度上都优于常规触摸框反馈的触摸点信息。示例性的,触摸框向交互平板的上层反馈的触摸点信息中至少包括了触摸点的触摸点坐标、通过触摸物所产生触摸信号的触摸点高度和宽度以及触摸面积等,触摸物发生旋转时对应的触摸旋转信息等。
S104、通过对所获得触摸点信息以及所述待擦除笔迹的分析,采用与所述 触摸物相匹配的擦除几何形态对所述界面中的待擦除笔迹进行擦除。
在本实施例中,站在用户角度来分析,用户触摸进入擦除模式,可知用户存在对显示界面中的元素进行擦除的意愿,而满足擦除条件的元素可选为用户预先书写产生的笔迹,本实施例将显示在显示界面中的笔迹称为待擦除笔迹。
需要说明的是,在相关技术中的的擦除实现中,触摸进入擦除模式后,用于擦除操作的橡皮擦的几何形态往往是用户预先设定好的,如可能为圆形或者矩形;橡皮擦的擦除尺寸也只能与橡皮擦的大小相同。相关技术中的擦除中,橡皮擦的几何形态,特别是橡皮擦的旋转后的形态以及擦除尺寸并不会因为触摸物形态或者尺寸的改变而发生改变,往往需要人为设定,由此,在基于相关技术中的擦除方法进行擦除时,存在因橡皮擦尺寸过小而导致擦除耗时较长的问题。
在交互平板上,本实施例如果想实现用户进行笔迹的个性化擦除,以及提高笔迹擦除效率,就需要获取能够表征用户所使用触摸物形态的数据信息,之后便可通过对数据信息的处理,确定笔迹擦除时与触摸物相匹配的擦除几何形态,最终按照确定出的擦除几何形态进行橡皮擦形态以及尺寸的呈现,并通过所呈现的橡皮擦对待擦除笔迹进行擦除,从而实现了笔迹擦除操作中橡皮擦所呈现几何形态的多样化,也同时提升了笔迹擦除操作的擦除效率。
需要说明的是,对于触摸物所对应擦除几何形态的确定,其主要借助于触摸点信息的触摸面积,不同大小的触摸面积往往对应不同的擦除几何形态,即,与所述触摸物相匹配的擦除几何形态通过所述触摸物作用在显示屏上的触摸面积来体现;本实施例可以通过触摸点信息中触摸面积的分析,确定与触摸面积相匹配的几何图形,并将该几何图形作为触摸物对应的擦除几何形态。其中,通过本步骤确定的擦除几何形态至少可以包括圆形,圆角矩形以及任意不规则图形三种形态。
示例性的,对于触摸面积与擦除几何形态的对应关系,其主要根据触摸面积所呈现的形态以及大小来确定。如,可以在触摸物为手指,触摸点信息中的 触摸面积实际可以表征手指触摸的覆盖区域,且触摸面积呈现出的形态接近为圆形,由此可认为采用该触摸物进行的擦除为小区域范围擦除,从而可以将面积等于触摸面积的圆形作为触摸物的擦除几何形态,并在擦除模式下呈现该擦除几何形态(圆形)的橡皮擦来执行笔迹擦除。
又如,还可以在触摸物为手背,触摸点信息中的触摸面积实际可以表征手背触摸的覆盖区域,且触摸面积呈现出的形态接近一个带有圆角的四边形时,认为采用该触摸无进行的擦除为较大区域范围的擦除,从而可以形成一个面积与手背覆盖区域面积相符的圆角矩形作为触摸物的擦除几何形态。
再如,也可以在触摸物为手握拳后拳轮(即小拇指侧的位置)处时,触摸点信息中的触摸面积实际可以表征拳轮触摸的覆盖区域,且该种情况下触摸面积呈现出的形态更像是两种几何图形的组合,如多边形和圆形,由此,该种情况下可以形成多边形和圆形相组合后的形态作为触摸物的擦除几何形态,该种组合形态就可认为是任意不规则图形。
在本实施例中,触摸框往往以一个采集周期进行触摸点信息的反馈,所反馈的触摸点信息中往往包含了该采集周期内所接收各触摸信号相对应触摸点的数据信息。在擦除模式下,通过触摸物在显示屏上的移动进行笔迹擦除的过程中,触摸物相对显示屏的一直处于接触状态,即,触摸物不呈离开显示屏,该过程中交互平板可持续通过触摸物的移动而实现笔迹擦除。由此,在上述前提下,进行触摸物的擦除几何形态确定时,并不需要所有触摸点信息中的触摸面积,只需要触摸物首次与显示屏接触时所产生触摸点的触摸点信息即可,即,在触摸物不离开显示屏的过程中,相对触摸物仅需进行一次擦除几何形态的确定。
本步骤中,对于按照确定的擦除几何形态对待擦除笔迹进行擦除的具体实现过程分析如下:首先,相对于触摸物某个时刻在触摸框上产生的触摸点,其均可以呈现出与擦除几何形态相符的橡皮擦图案;其次,考虑到触摸物在显示屏上是触摸移动的,即,相当于上述所形成的橡皮擦图案也是离散且持续呈现 的,由此通过对所呈现各橡皮擦图案的连接,就可以形成连续的几何封闭图形,也相当于触摸物移动后所形成的移动轮廓几何图形;再次,所形成的移动轮廓几何图形就构成了显示界面上的待擦除区域,最终,可以确定出处于该待擦除区域中的各待擦除笔迹,并实现对这些待擦除笔迹的擦除。
其中,对于以擦除几何形态呈现的橡皮擦图案,图1b给出了本申请实施例一所提供笔迹擦除方法中擦除几何形态呈现的效果图,如图1b所示,图1b中包括了以圆角矩形呈现的第一橡皮擦图案140,以及以圆形呈现的第二橡皮擦图案150。
对于基于触摸物移动过程中所形成的连续的几何封闭图形,图1c给出了本申请实施例一所提供笔迹擦除方法中作为擦除区域的移动轮廓几何图形的效果展示图,如图1c所示,图1c中包括了以圆角矩形作为擦除几何形态时所形成的移动轮廓几何图形160。
在本步骤的具体实现中,需要在触摸物移动中进行移动轮廓几何图形的构建,通过分析可以发现,连续的移动轮廓几何图形实际相当于各触摸点以擦除几何形态呈现后构成区域,由此,对于移动轮廓几何图形的确定,实际只需要确定相邻两个触摸点所呈现擦除几何形态进行连接后形成的图形即可。而由于擦除几何形态的不同,基于相邻擦除几何形态的图形来形成移动轮廓几何图形的形成方式也不相同,为了擦除操作的正常进行,本步骤需要针对不同的擦除几何形态分别进行所对应移动轮廓几何图形的构建。
示例性的,在擦除几何形态为圆角矩形时,需要通过圆角矩形对应的轮廓构建方式来实现,具体的,可以确定出两个圆角矩形的图形表示,然后在两个圆角矩形上分别选定的一些点进行区域扩展以及连接,由此构造基于这两个圆角矩形所形成的封闭区域,作为圆角矩形下对应的移动轮廓几何图形。
又如,在擦除几何形态为圆形时,需要通过圆形对应的轮廓构建方式来实现,具体的,可以确定出两个圆形的图形表示,然后在两个圆形上分别选定两个连接点进行连接,由此构建基于这两个圆形所形成的封闭区域,作为圆形下 对应的移动轮廓几何图形。
本申请实施例一提供的一种笔迹擦除方法,可以由交互平板执行,该交互平板上所配备触摸框的触摸响应精度达到设定精度范围;其中该方法首先可以通过显示屏展示包含有待擦除笔迹的显示界面;之后可以接收笔迹擦除指令,进入笔迹擦除模式;然后在触摸物触碰所述显示屏的表面并移动时,获得通过所述触摸框反馈的触摸点信息;最终可以通过对所获得触摸点信息以及所述待擦除笔迹的分析,采用与所述触摸物相匹配的擦除几何形态对所述界面中的待擦除笔迹进行擦除。该方法的执行主体交互平板在硬件结构上配置了高精度触摸框,能够将所配置的高精度触摸框通过本实施例所提供的方法实现软件应用层面上的功能优化,相比于相关技术中的未在软件层面进行优化的交互平板,本实施例所提供的方法可以保证对界面中待擦除笔迹的擦除响应更能够与用户所使用触摸物的擦除几何形态相匹配,从而实现擦除过程中擦除区域的灵活调整,进而实现了交互平板上擦除效率的提升。
作为本申请实施例一的一个可选实施例,本可选实施例可以在获得通过所述触摸框反馈的触摸点信息之后还包括:处理各所述触摸点信息,以使各所述触摸点信息具备统一的单位格式及数据结构。
需要说明的是,本实施例对于书写笔迹的呈现操作主要由交互平板上层的智能处理系统,具体可以由主机处理器来执行,而书写笔迹呈现所需的触摸点信息主要有交互平板硬件层面的触摸框来反馈,本实施例可以将触摸框反馈的触摸点信息看作上层所需的输入信息。
对于交互平板上配置的触摸框,若来自不同的生产商,其触摸框具备的执行参数也存在不同,由此很可能导致触摸框反馈的触摸信息在表示形式上存在差异,影响笔迹擦除方法的正常执行。为保证书写笔迹呈现的执行流程中数据信息的统一化,在上述实施例一的基础上增设了本可选实施例提出的信息处理操作。
示例性的,本可选实施例可以分析触摸框的生产信息以及批次信息,确定触摸框所反馈触摸点信息具备的原始信息格式,之后可以对触摸点信息的单位格式以及数据结构进行处理,保证输入给交互平板上层的数据具备统一的信息格式。进行处理后的触摸点信息,除去了与触摸框生产商或批次相关的单位格式,如,原始信息格式的触摸点信息中所反馈的触摸面积单位基本是按照触摸框上被遮挡的光学触发传感器的数量作为触摸宽度单位和触摸高度单位,本可选实施例可以将其转换为统一的软件内的抽象单位,如像素单位。
在上述优化的基础上,本实施例可以将处理各所述触摸点信息具体化为:
根据所获取触摸框的尺寸大小信息以及屏幕分辨率信息,将所述触摸点信息中各项数据信息的单位转换为统一的设定单位格式;
采用所述设定单位格式对应的数据结构,对所述触摸点信息进行记录。
本可选实施例的具体实现中,为了获得从触摸框内部获得比较精准的数据信息,就需要了解交互平板当前所配备触摸框的尺寸大小以及显示屏的屏幕分辨信息等,而这些信息可以分别通过和触摸框硬件通讯或者从智能处理系统系统中读取的方式来获取。
对于触摸点信息的具体处理项,本可选实施例可以将触摸框以原信息格式标识的触摸点坐标、触摸点的高度和宽度,或者触摸时所形成几何图形的顶点等数据信息统一转换为软件层面较抽象的单位值,如像素表示的坐标点,宽度或高度值等。
同样的,高精度触摸框的另一个优势在于其还可以捕获到触摸物在触摸过程中发生的旋转操作,并可确定出触摸旋转的旋转角度,此时,通过本可选实施例的处理方式,还可以将最初获得的旋转角度按照统一的弧度单位进行处理。
本申请实施例一的上述可选实施例,具体增加了触摸框所反馈触摸点信息的处理操作,通过该处理操作,可以实现触摸点信息的统一化输入,避免了因触摸框自身所具备的不同属性参数信息而造成的触摸点信息在后续执行过程中不兼容的情况,有效提高了笔迹擦除的执行效率。
实施例二
图2给出了本申请实施例二提供的一种笔迹擦除方法的流程示意图,本实施例以上述实施例为基础进行细化,在本实施例中,可以将获得通过所述触摸框反馈的触摸点信息具体细化为:通过所述触摸框中硬件电路识别各触控信号,所述触控信号由所述触摸物在所述显示屏上移动时产生;获得所述触摸框通过人机交互(Human Interface Device,HID)标准协议针对各所述触控信号反馈的触摸点信息,其中,一个触摸点信息对应一个触摸点,所述触摸点信息包括:触摸点坐标、触摸点高度和宽度、以及触摸旋转角度。
同时,本实施例还可以将通过对所获得触摸点信息以及所述待擦除笔迹的分析,采用与所述触摸物相匹配的擦除几何形态对所述界面中的待擦除笔迹进行擦除具体细化为:通过所获得的触摸点信息,确定触摸物在移动中匹配的擦除几何形态,以及确定移动中相邻触摸点对在所述擦除几何形态下构成的移动轮廓几何图形;分析所述待擦除笔迹中包括的各笔迹点,将各所述笔迹点与所述移动轮廓几何图形进行命中测试,确定落入所述移动轮廓几何图形中的目标待擦除笔迹;在所述显示界面中对所述目标待擦除笔迹进行擦除。
如图2所示,本申请实施例二提供的一种笔迹擦除方法,具体包括如下操作:
S201、通过显示屏展示包含有待擦除笔迹的显示界面。
示例性的,可以由用户触发进入一个带有书写笔迹等元素信息的显示界面,也可以是在一些关联场景(如课件展示场景)下触发的带有待擦除笔迹等元素信息的显示界面。
S202、接收笔迹擦除指令,进入笔迹擦除模式,所述笔迹擦除指令通过用户的触发形成。
示例性的,可以由用户通过对显示界面中擦除按钮的触发而接收到笔迹擦除指令,从而进入笔迹擦除模式,以开启对显示界面中的笔迹进行擦除的权限。
S203、在触摸物触碰所述显示屏的表面并移动时,通过所述触摸框中硬件电路识别各触控信号,所述触控信号由所述触摸物在所述显示屏上移动时产生。
在本实施例中,站在触摸框的角度对触摸物触碰显示屏以及在其上移动的操作进行分析。具体的,可将光学触控传感器看作构成触摸框的核心组件。在交互平板启动、运行以及控制光学触控传感器上电后,通过设置在显示屏边缘光学触控传感器(如设置于一侧的红外发射器,以及设置于另一侧的红外接收器)可以实时利用不同方向上密布的红外线信号所形成光束栅格遮挡与否,来检测显示屏表面是否存在触摸物。
如果存在触摸物,则可在触摸物遮断了正常发射的红外信号时,在相应位置处产生对应的触控信号;之后,触摸框中设置的硬件电路可以通过对触控信号进行识别,如通过对触摸信号所具备高低电平的识别,来确定以硬件层面的数据表征的该触控信号所处位置的坐标信息,触摸物遮挡灌输栅格时对应的宽度信息、高度信息,甚至触摸物的触摸面积信息以及旋转信息等。
可以理解的是,随着触摸物在显示屏的移动,可以相应生成一组触摸信号,而触摸框上的硬件电路可以有效识别出该组中的每个触摸信号的相关触摸信息,同时,还可以通过触摸物作用在触摸框硬件电路上的压力确定出触摸物在各触摸点的压感信息。
S204、获得所述触摸框通过人机交互HID标准协议针对各所述触控信号反馈的触摸点信息。
接上述描述,可以知道的是,考虑到触摸框为交互平板上的硬件结构,触摸框上硬件电路相对各触摸点识别出的触摸点信息难以直接输入给上层的软件处理模块,由此,可以通过本步骤采用专门的人机交互HID标准协议可以获得到将在硬件层面识别的触摸点信息转换后的软件层面可读的触摸点信息。
在基于本实施例实现的笔迹擦除操作中,触摸框所反馈的每个触摸点信息具体表征了触摸物所触发的一个触摸点,而所需的触摸点信息至少要包括触摸点坐标、触摸点高度和宽度、以及触摸旋转角度。
具体的,触摸点坐标为触控的基础信息,触摸点高度和宽度则可以用来表征用户在操控触摸物移动时对触摸框上的光学传感器进行遮挡的遮挡大小,触摸面积这用来表征用户在操控触摸物移动时对触摸框所生成触摸信号的覆盖面积,通过上述信息可以确定出触摸物相匹配的擦除几何形态。同样的,触摸旋转角度可以表征触摸物在移动中发生旋转时的旋转信息,该旋转信息也可以看作擦除几何形态所对应移动轮廓几何图形确定时所需的基础信息。
通过本实施例的上述步骤,可以在触摸物的移动过程中实时获得到触摸框反馈的触摸点信息,由此,本实施例可以通过下述S205至S207实现显示界面上待擦除笔迹的擦除。
S205、通过所获得的触摸点信息,确定触摸物在移动中匹配的擦除几何形态,以及确定移动中相邻触摸点对在所述擦除几何形态下构成的移动轮廓几何图形。
在本实施例中,本步骤具体实现了擦除操作中所需的两个重要信息的确定,一个是触摸物匹配的擦除几何形态,另一个是相邻两个触摸点在所确定擦除几何形态下能够形成的移动轮廓几何图形。
根据在上述实施例中的描述可知,擦除几何形态的确定只需要关注触摸物在该次移动过程中首次接触显示屏时所生成触摸点的触摸点信息即可,通过该触摸点信息中的触摸面积,可以确定出与该触摸面积相匹配的几何形态,由此可以将该相匹配的几何形态作为此次擦除可呈现的擦除几何形态。
同样根据上述实施例的描述可知,擦除几何形态至少包括了圆角矩形、圆形以及任意不规则图形,而基于所反馈的每个触摸点的触摸点信息,相对每个触摸点均可以呈现一个与擦除几何形态相符的橡皮擦图案,相邻两触摸点的橡皮擦图案可以按照某种方式进行连接,连接形成的封闭区域即可看作该相邻两触摸点对应的移动轮廓几何图形。
示例性的,在相邻两触摸点的橡皮擦图像为圆角矩形时,每个圆角矩形相当于将一个矩形的几个顶角采用圆角进行了替换,即可认为一个圆角矩形至少 包括了矩形的边长以及圆形的一部分圆弧。
对于两个按照上述形式来表征的圆角矩形,首先要获得构成各圆角矩形的关键点,然后考虑从两个圆角矩形的关键点中分别筛选出一些连接点并进行连接,最终连接后可获得两圆角矩形的自身区域、以及连接形成的封闭区域,将自身区域与封闭区域进行组合就构成了擦除几何形态为圆角矩形时相邻两触摸点对应的移动轮廓几何图形。
此外,在擦除几何形态为圆形或者任意不规则图形时,也同样存在相应的移动轮廓几何图形确定方法。总结起来不管擦除几何形态为何种图形,均需要首先确定擦除几何形态所对应图形本身的图形表示信息,然后基于获取的图形表示信息从中筛选建立连接所需的连接点,来基于连接点和擦除几何形态所对应图形本身构成一个封闭组合区域,作为相应的移动轮廓几何图形。
其中,需要知道的是,本实施例可认为圆角矩形以及圆形为任意不规则图形下的两种特例,这两种特例图形进行移动轮廓几何图形确定时,可以不按照任意不规则图形对应的确定方法来,而是存在其他可选的确定方案,由此,本实施例将圆角矩形以及圆形看作区别于任意几何组合图像外的两种独立形态的图形,也分别给定了其对应的确定方案来进行移动轮廓几何图形的确定。
S206、分析所述待擦除笔迹中包括的各笔迹点,将各所述笔迹点与所述移动轮廓几何图形进行命中测试,确定落入所述移动轮廓几何图形中的目标待擦除笔迹。
上述S205相当于确定了擦除操作中触摸物移动时所构成的具备擦除权限的待擦除区域(移动轮廓几何图形),本步骤主要实现如何确定显示界面中的哪些笔迹落入到该移动轮廓几何图形中,如果存在落入到该移动轮廓几何图形的笔迹,则可认为这些笔迹为当前可擦除的笔迹,本实施例记为目标待擦除笔迹。
在本实施例中,对于显示界面中的待擦除笔迹,其可以理解为在书写或者编辑模式下用户通过某种方式书写到该界面中的内容。这些待擦除笔迹也可以通过相应的笔迹信息来表征,而笔迹信息中的关键信息就是构成这些待擦除笔 迹所需笔迹点的笔迹点坐标,本步骤可以直接获取到表征所述待擦除笔迹的各笔迹点的笔迹点坐标。
本步骤可以将判定有哪些待擦除笔迹落入到该移动轮廓几何图形中的操作转换为判定表征待擦除笔迹的各笔迹点是否落入到移动轮廓几何图形中的操作。而对于笔迹点是否落入到移动轮廓几何图形中的判定可以通过将笔迹点与移动轮廓几何图形进行命中测试来实现。
关于笔迹点与移动轮廓几何图形的命中测试,相当于确定笔迹点是否处于该移动轮廓几何图形的封闭区域内。而要想知道笔迹点是否处于其所呈现的封闭区域内,相当于要确定用于表征该封闭区域的数据信息。可以知道的是,移动轮廓几何图形可能具备不规则几何形态,很难用直接的数据信息进行表征,由此本实施例考虑对移动轮廓几何图形进行拆解,如将移动轮廓几何图像拆解成圆形以及多边形等容易表征的几何图形的组合,然后再分别通过命中测试的方法判定笔迹点是否存在于拆解后各几何图形对应的封闭区域中。
对于不同形态的几何图形,进行笔迹点命中测试的方法可能存在不同,如,对于圆形区域,可采用判定笔迹点与圆形圆心的距离是否小于半径的方式来实现命中测试,又如,对于凸多边形区域,可采用落入其区域内的笔迹点在与各凸边形顶点所构成三角形后,笔迹点对对应顶角的和为360度来实现命中测试;再如矩形区域中采用的向量法命中测试等。
在本实施例中,在对移动轮廓几何图形进行拆解后,可以实现笔迹点在各子图形区域中的命中测试,并可以在确定笔迹点存在于某个区域时,将该笔迹点表征的笔迹确定为目标待擦除笔迹。
S207、在所述显示界面中对所述目标待擦除笔迹进行擦除。
在本实施例中,通过上述步骤确定出目标待擦除笔迹后,可以通过本步骤实现对目标待擦除笔迹的擦除。
以可视化形式呈现在显示界面上的,就是触摸物按照擦除几何形态所呈现的橡皮擦在显示界面上移动,而橡皮擦经过的位置不再显示用户已经编辑或书 写上界面中的笔迹。
图2a给出了本申请实施例二所提供笔迹擦除方法的效果展示图,如图2a所示,显示界面21中呈现了已经书写在其上的待擦除笔迹22,用户使用所控制的触摸物在显示界面21上以圆形23的擦除几何形态呈现,并且在该圆形移动过的区域上不再显示之前所显示的笔迹,而是以空白区域来呈现。
本申请实施例二提供的一种笔迹擦除方法,具体化了触摸点信息的反馈形式,同时还具体化了笔迹擦除的擦除方式。该方法的执行以交互平板上配备的触摸响应精度在设定精度范围内的触摸框为实现前提。相比于配置常规触摸框的交互平板,本实施例中交互平板在硬件层面配置了高精度触摸框之后,高精度触摸框可以向应用层反馈包含更多有效信息的更精准的触摸点信息。由此结合本实施例提供的方法,保证对界面中待擦除笔迹的擦除响应更能够与用户所使用触摸物的擦除几何形态相匹配,从而实现擦除过程中擦除区域的灵活调整,进而实现了交互平板上擦除效率的提升。
对于擦除几何形态以及移动轮廓几何图形的具体确定,作为本实施例二的第一可选实施例,图2b给出了本申请实施例二所提供笔迹擦除方法中擦除形态及轮廓图形确定的一种实现流程图。如图2b所示,本第一可选实施例进一步将上述S205的步骤,即,通过所获得的触摸点信息,确定触摸物在移动中匹配的擦除几何形态,以及确定移动中相邻触摸点对在所述擦除几何形态下构成的移动轮廓几何图形,具体化为下述步骤:
S2051、提取关键触摸点信息,获得所述关键触摸点信息中的关键触摸面积,其中,所述关键触摸点信息为所述触摸物移动中首次与所述显示屏接触时所产生触摸点的触摸点信息。
示例性的,所述关键触摸点信息具体可理解为触摸框所反馈的触摸点信息中用于擦除几何形态确定的关键触摸点的信息,该关键触摸点信息中同样包括了触摸物在接触显示屏时所产生的触摸面积,并记为关键触摸面积。
在本实施例中,用户控制触摸物接触显示屏以及在显示屏上移动的过程中,该过程中不存在触摸物离开显示屏的情况,由此可认为该过程中用户所使用触摸物的形态不会发生变化,即,该触摸物所匹配的擦除几何形态在整个移动过程中是不会发生变化的。
为简化擦除几何形态的确定操作,本实施例无需基于每个触摸点对应的触摸点信息分别进行触摸物的擦除几何形态确定,只需要筛选出其中一个触摸点信息就可以确定出触摸物的擦除几何形态。本实施例考虑采用触摸物最初接触到显示屏时所生成触摸点的触摸点信息进行确定操作,并将该触摸点信息记为关键触摸点信息。
可以知道的是,本实施例可选但不具体限定关键触摸点信息仅可采用首次接触时对应的触摸点信息。
S2052、确定所述关键触摸面积归属的面积阈值范围以及面积形态,在所归属面积阈值范围对应的各几何形态中查找与所述面积形态相匹配的目标形态,并将所述目标形态确定为所述触摸物匹配的擦除几何形态。
在本实施例中,关键触摸面积的面积值可以被划分在预先设定的某个面积阈值范围内,而本实施例同样预先为每个面积阈值范围制定了与其相匹配的多个几何形态,如一个面积阈值范围可能与多种几何形态相符合,如相符合的图形包括了圆形、圆形与四边形的组合,圆形与椭圆形的组合等。
在已知面积形态后,可以从面积阈值范围对应的各几何图形中确定与面积形态相匹配的目标形态,如,面积形态为一个矩形且带有弧度时,可认为该关键触摸面积与圆角矩形相匹配,最终可将该圆角矩形作为触摸物的擦除几何形态。
S2053、针对所述触摸物移动中的每个相邻触摸点对,通过对所述相邻触摸点对所对应触摸点信息的分析,确定相邻触摸点对中各触摸点相对所述擦除几何形态的关键几何信息。
在本实施例中,触摸框在触摸物的移动中实时以离散形式反馈触摸点信息, 每个触摸点信息对应一个触摸点,相邻的两触摸点可认为是一个触摸点对。考虑到本实施例中触摸物的作用在于实现笔迹擦除,触摸物移动中所产生的每个触摸点均按照上述确定的擦除几何形态呈现所允许的擦除区域,各触摸点相对擦除几何形态的关键几何信息具体可理解为用于表征触摸点所呈现擦除区域的数学表示信息,以及用于相邻两触摸点所呈现擦除区域相连接后所关联封闭区域的数学表示信息。其中,所确定的关键几何信息中至少可以包括以擦除几何形态呈现的擦除区域的顶点信息或者圆心信息及半径信息等。
在本实施例中,各触摸点相对擦除几何形态的关键几何信息可以通过相应的触摸点信息结合上述确定的擦除几何形态来获得。一般的,在已知触摸点的触摸点坐标、触摸点高度和宽度以及触摸旋转角度等信息后,可以采用数学运算的实现来确定出进行各种图形表示所需的数据信息。
首先,在擦除几何形态为圆角矩形时,所述圆角矩形包括一个矩形和以矩形各顶点为圆心的圆角,上述S2053这个步骤的第一可选实施项的执行实现具体描述如下:
a1、将所述圆角矩形记作所述相邻触摸点对中各触摸点的第一待构建几何图形。
在本实施例中,可选将用于笔迹擦除的各触摸点呈现在显示屏上的擦除区域记为触摸点对应的待构建几何图形,本实施例将擦除几何形态为圆角矩形时对应的待构建几何图形记为第一待构建几何图形。
b1、针对所述相邻触摸点对中的每个触摸点,通过所对应触摸点信息中的触摸点坐标、触摸宽度、触摸高度以及触摸旋转角度,结合预给定的圆角半径,确定所述第一待构建几何图形中矩形的中心点坐标、各圆角的圆心坐标和各关键切点坐标、以及两图形连接点坐标。
示例性的,本实施例站在数学计算的角度来具体描述擦除几何形态为圆角矩形的情况下触摸点所对应关键几何信息的确定,其中,图2c~图2h给出了本申请实施例二所提供笔迹擦除方法中擦除几何形态为圆角矩形时关键几何信息 确定的相关示意说明图。
考虑到本实施例所提供交互平板还具备对触摸物移动中所进行旋转操作的响应,因此,本实施例将圆角矩形一个旋转矩形和四个圆角表示,其中,旋转矩形可认为是相对显示界面横纵方向存在角度偏移的矩形。且为了便于计算,本实施例可选认为显示界面左上角为零零点坐标,且从左到右横坐标依次变大,从上到下纵坐标依次变大,具体如图2c所示。
其中,图2c中包含了其中一个触摸点所对应的第一待构建图形,即圆角矩形的效果展示,其中,点A、B、C和D构成了圆角矩形的旋转矩形,且点A、B、C和D还分别作为了圆角矩形所包含四个圆角的圆心,之后,相邻两圆角通过切点进行连接,所构成的组合图形即可看作该待构建的圆角矩形,且图2c中圆角的半径作为可配置参数,参数值可预先确定,此外,边长AC的长加上圆角的直径相当于圆角矩形的高度;边长CD的长加上圆角的直径相当于圆角矩形的宽度。
可以知道的是,相邻触摸点对中各触摸点均存在相应待构建的圆角矩形,考虑到每个触摸点所对应圆角矩形的几何形态形同,可认为对每个圆角矩形进行相应几何信息确定的实现方式相同。而表征圆角矩形所需的几何信息相当于对上述图2c中各顶点坐标以及各切点坐标的确定。
具体的,可以将计算圆角矩形相关几何信息的问题,转换为下述数学问题:
首先,根据触摸点坐标可以决定O1点的坐标,通过触摸点高度和宽度可以决定圆角矩形的高度和宽度,还可以获取触摸旋转角度以及圆角半径Radius,其中,触摸旋转角度可认为相对上述所给定坐标系的横纵轴而发生旋转的角度。即,转换数据问题后可相当于:已知了O1和旋转角度θ和圆角半径Radius、以及圆角矩形的宽度和高度,如何求出圆角矩形中旋转矩形的顶点坐标。
考虑到圆角矩形相对上述坐标系存在旋转角度,为了简化说明,可先确定假设旋转角度为0时圆角矩形的顶点坐标。
具体的,可以先在如图2d所示的圆角矩形下进行,进行已知O1求A点 相对O1的坐标的计算,具体公式如下:
O1.X=foo+Width/2
A.X=foo+Radius
A.X-O1.X=A点相对O1的X坐标
=foo+Radius-(foo+Width/2)
=Radius-Width/2
而在通过上述方式分别确定点A的坐标后,在上述计算结果的基础上,再进行如图2e所示圆角矩形下的计算:
具体的,图2d中的圆角矩形进行旋转θ的操作后可以以图2e所示的图形呈现,此时,相当于已知了点A的坐标,以及旋转角度θ,来确定点A、B、C和D相对点O1旋转θ后的坐标。
根据某点以特定点旋转后所得的新点公式(主要在图2e中体现),可以计算出A点相对于O1旋转之后的坐标;为了让A点相对于零点,就需要让A点从相对于O1的坐标转换为相对于零点的坐标,即,具体实现就是加上O1的坐标,最终获得旋转后的A点坐标。
同理待构建圆角矩形中的B、C以及D点也可以使用上述相同的计算。通过上述描述来获得圆角矩形中旋转矩形各顶点的坐标,也即各圆角圆心的坐标。
对于圆角矩形中的几何信息,还需要获得相邻两圆角连接时所使用切点的坐标,这些切点如图2c中所示的A 1、A 2、B 1以及B 2等。
具体的,A 1点是相当于在未旋转时的A点的纵坐标减去圆角的半径,而A 2点是相当于在未旋转时的A点的横坐标减去圆角的半径。由此可使用根据某点以特定点旋转后所得的新点公式计算出A 1和A 2两点坐标,同理计算出B 1和B 2等坐标。
通过上述方式可以计算相邻触摸点对中各触摸点表征待构建的圆角矩形所需的各点坐标。接下来描述如何计算两圆角矩形连接后所形成各连接区域的几何信息。
如图2f所示,假设矩形没有圆角,连接两个矩形的运行轨迹,其中,对两 个矩形进行连接的可尝试采用下述方式:
将两个矩形的各个顶点进行尝试连线组合;获取到不会与矩形本身进行相交的两条线段,以及两个矩形中心点连接的线段。其中,两个矩形中心点连接的线段是用来验算求出的不会与矩形本身进行相交的两条线段是否正确,正确的两条线段应该都与两个矩形中心点连接的线段平行。
通过上述方式连接后,可以获得图2g所示的连接状态图。
在计算完成了上述不带圆角的两个矩形的连接线后,下面就是在加上了圆角之后,两圆角矩形进行连接时所关联的各个关键点的坐标计算:
首先,加上圆角之后,两圆角矩形的连接效果图如图2h所示。
如图2h所示,可以了解到,对应线段BC的B 1C 2线段,其实相当于将BC线段进行水平移动一段距离,移动的距离是圆角半径距离,移动方向是向外。
在已知B和C点的坐标即可使用相关技术中的数学方法求出BC线段,而将线段以某个方向平移一段已知距离,也可使用相关技术中的数学计算方法进行计算。同理可计算出图2h中所展示各个顶点的坐标。而计算所获得的图2h中各个顶点的坐标,就相当于相邻触摸点对所对应圆角矩形进行连接后两图形的连接点坐标,且图2h中也包含了两个圆角矩形进行连接后所构成移动轮廓几何图形的效果展示。
c1、将所述矩形的中心点坐标、各圆角的圆心坐标及各关键切点坐标、以及两图形连接点坐标看作所述触摸点相对所述第一待构建几何图形的关键几何信息;
其中,所述第一待构建几何图形中每个圆角包括两个关键切点;各关键切点为所述圆角与相邻圆角以切线连接时对应的切点。
上述主要给出了本步骤,即S2053在擦除几何形态为圆角矩形时进行关键几何信息确定的具体实现。
其次,对于在所述擦除几何形态为圆形时,上述S2053这个步骤的第二可 选实施项的执行实现具体描述如下:
a2、将所述圆形记作所述相邻触摸点对中各触摸点的第二待构建几何图形。
为便于区分,在本可选实施项中,将待构建的擦除几何形态为圆形的擦除区域记为第二待构建几何图形。
b2、通过所述相邻触摸点对中各触摸点所对应触摸点信息中的触摸点坐标、触摸宽度、触摸高度,确定相应第二待构建几何图形的圆形圆心坐标以及各关键交点坐标。
本步骤进行待构建的圆形相关几何信息确定时,同样需要相邻触摸点对中各触摸点的触摸点信息。其中,本步骤进行关键几何信息确定时需要先构建连接后的两圆形模型,之后根据圆形本身的一些几何特性,可以计算出所需的各关键几何信息。
可选的,本实施例可以将上述步骤b1,即,通过所述相邻触摸点对中各触摸点所对应触摸点信息中的触摸点坐标、触摸宽度、触摸高度,确定相应第二待构建几何图形的圆形圆心坐标以及各关键交点坐标,具体为:
通过所述相邻触摸点对中各触摸点所对应触摸点信息中的触摸点坐标、触摸宽度以及触摸高度,确定相应第二待构建圆形的圆形圆心坐标;连接相应的两圆形圆心坐标,获得圆心连线;过各所述圆形圆心坐标分别构建与所述圆心连线垂直的直线,获得各直线与相应第二待构建圆形相交后确定的关键交点坐标。
示例性的,本实施例仍然将上述有关圆形的关键几何信息确定转换为数学问题来进行描述,其中,图2i~图2m给出了本申请实施例二所提供笔迹擦除方法中擦除几何形态为圆形时关键几何信息确定的相关示意说明图。
首先,如图2i所示,包含了两个圆形的连接。由此,可以将求两个圆形的关键几何信息转换为:求两个圆形根据触摸移动方向进行连接时,平行于触摸移动方向且与圆形相交的线段的各顶点。
上述描述,抽象出的数学问题可以是:已知两个圆形,圆心分别是P1和 P2两点,半径分别是r1和r2长度;从AB线段垂直于P1P2线段,同样CD线段垂直于P1P2线段,而AB线段与圆的交点分别为A和B两点;而CD线段与圆的交点分别为C和D两点;求A、B、C和D四个点的坐标。
需要说明的是,在已知相邻触摸点对的触摸点信息后,上述圆心P1和P2的坐标,以及半径r1和r2均可以通过常规方式计算获得,触摸移动方向也可以基于两个触摸点坐标来实时确定。对于上述四个点的坐标计算,其具体描述为:
因为两个圆本身可以视为独立的,先取其中一个圆形进行计算,如图2j中所示,作垂直横坐标的辅助线,可以看到过圆心的圆运动轨迹方向的直线P1P2与辅助线的夹角是θ角度;根据三角形计算公式,可以知道,因为线段AB垂直于P1P2直线,因此角P2P1B是直角,因此角B的角度也是θ角度。
上述的问题相当于转换为如何求θ角度,如图2j所示,采用图2j所示的计算,在已知P1和P2两个点后,可以通过这两个点求出角度θ。在计算出θ角度,就可以计算出B点坐标,具体计算如图2k所示。同理,采用如图2l所示的计算方式,也可以计算出A点的坐标。因为两个圆的计算方式相同,因此可以同理,如采用图2m的方式,计算出点C和D的坐标。
本步骤将计算方式转换为数学问题后,可以确定出各触摸点所对应圆形的圆心坐标,本实施例记为圆形圆心坐标;同时还可以计算出两个圆形进行连接后所形成各关键交点的坐标。
c2、将各触摸点对应的圆形圆心坐标以及各关键交点坐标看作相对所述第二待构建几何图形的关键几何信息。
可以理解的是,上述确定出的各坐标点信息可以作为擦除几何形态为圆形时所关联的关键几何信息。
上述主要给出了本步骤,即S2053在擦除几何形态为圆角矩形时进行关键几何信息确定的具体实现。
再次,对于在擦除几何形态为任意不规则图形时,上述S2053这个步骤的 第三可选实施项的执行实现具体描述如下:
a3、将所述任意不规则图形记作所述相邻触摸点对中各触摸点的第三待构建几何图形,确定所述第三待构建几何图形中包含的组合图形信息。
在本实施例中,可将任意不规则图形理解为由折线和/或弧线构成的组合集合图形,且本实施例可选该任意不规则图形为相邻触摸点对中各触摸点所关联擦除区域的图形呈现,本实施例记为第三待构建几何图形。
通过不规则图形的呈现形式,可以确定出该不规则图形中具体包括了哪些图形信息,如可能包括折线图形、也可能包括圆弧图形等,确定出的这些信息均可记为组合图形信息。
示例性的,图2n给出了本申请实施例二所提供笔迹擦除方法中擦除几何形态为任意不规则图形时的效果展示图,如图2n所示,该任意不规则图形24可认为是多边形以及圆形的组合。
b3、针对所述相邻触摸点对中的每个触摸点,通过所对应触摸点信息结合所述组合图形信息,确定所述第三待构建几何图形上相对所述触摸点存在的关键轨迹点以及所述第三待构建几何图形的图形表示信息。
在本实施例中,具体可以通过下述方式来实现不规则图形所对应关键几何信息的确定,可选的,本实施例可以将所述通过所对应触摸点信息结合所述组合图形信息,确定所述第三待构建几何图形上相对所述触摸点存在的关键轨迹点以及所述第三待构建几何图形的图形表示信息,具体化为:
b31、分析所述组合图形信息。
在本实施例中,对组合图形信息的分析,可以获取到该任意不规则图形中具体包括了什么形状,如可以包含折线多边形,或者包含圆弧形或者圆形,又或者同时包含折线多边形以及圆形等。
b32、确定所述第三待构建几何图形中仅包含折线多边形时,通过所对应触摸点信息确定所述折线多边形相对所述触摸点存在的关键轨迹点,并获得表示所述折线多边形的第一图形表示信息。
本步骤b32主要给出了其中一种情况,即仅包含折线多边形时,对该折线多边形所关联图形表示信息(第一图形表示信息)以及两个触摸点所对应各折线多边形进行连接时所存在关键轨迹点的确定实现。
在上述优化的基础上,所述通过所对应触摸点信息确定所述折线多边形相对所述触摸点存在的关键轨迹点,并获得表示所述折线多边形的第一图形表示信息,包括:
通过所对应触摸点信息中的触摸点坐标、触摸高度以及触摸宽度,确定作为第一图形表示信息的折线多边形的折线中心点坐标以及各折线顶点坐标;通过所述折线中心点坐标以及所对应触摸点信息,从各所述折线顶点坐标中选择满足轨迹点筛选条件的关键轨迹点。
具体的,本实施例同样可以将上述问题转换为数学问题的计算。其中,在不规则图形仅为折线多边形时,可考虑先求出触摸移动方向上的中轴线直线,其中,触摸移动方向可以通过两触摸点的触摸点坐标来确定;再求出折线多边形所有顶点距离中轴线直线的距离,然后取中轴线直线两边分别距离最远的顶点,作为该折线多边形中所要计算的关键轨迹点。
示例性的,图2o~图2q给出了本申请实施例二所提供笔迹擦除方法中擦除几何形态为任意不规则图形且仅包含折线几何图形时关键几何信息确定的相关示意说明图。
如图2o所示,上述计算过程可以抽象数学问题如下,已知折线多边形A和B以及触摸移动方向AB,其中,折线多边形A将沿着运动方向变换到折线多边形B时,求折线多边形A到折线多边形B的运动轨迹。其中,上述计算的本质问题是求从AB方向的两个折线多边形中的每个折线多边形的两个顶点,并将对应顶点连接起来。而用于连接的各顶点相当于关键轨迹点。
因为每个几何都是独立的,因此可以做分别计算。此外,因为触摸移动方向是向量,而向量是没有坐标的。求任意折线多边形,在任意触摸移动方向下,可以被选用的顶点。需要了解这个顶点的特性,考虑到向量是没有坐标的,由 此在计算实现中,可以任意平移触摸移动方向的向量。且最好的做法就是将向量平移到折线多边形的中心点。
此时,上述问题又可以转换为的问题是求折线多边形中,距离向量对应的直线距离最远的两个顶点,这两个顶点分别位于直线的两边。如图2p所示的折线多边形,可以了解到点b和点d距离线段AB的距离分别是线段两侧的最远点。由此,点b和点d可认为是图2p所示折线多边形中的两个关键轨迹点。
可以知道的是,使用相同方法求出相邻触摸点对中另一触摸点所对应折线多边形对应的关键轨迹点,且连接对应的各顶点即可获取到两个折线多边形所构成的封闭区域,最终形成的封闭区域示意图如图2q所示,即,图2q中也包含了两个折线多边形进行连接后所构成移动轮廓几何图形的效果展示。
b33、确定所述第三待构建几何图形中包含折线多边形以及目标圆形时,通过所对应触摸点信息从所述折线多边形及关键圆形上确定关键轨迹点,并获得表示所述折线多边形和关键圆形的第二图形表示信息。
本步骤b33主要给出了另一种情况,即除了包含折线多边形,还包含圆形(本实施例记为目标圆形)时,对该不规则图形(折线多边形和圆形的组合)所关联图形表示信息(第二图形表示信息)以及两个触摸点所对应各不规则图形进行连接时所存在关键轨迹点的确定实现。
在上述实施例的基础上,所述通过所对应触摸点信息从所述折线多边形及关键圆形上确定关键轨迹点,并获得表示所述折线多边形和关键圆形的第二图形表示信息具体为:
通过所对应触摸点信息中的触摸点坐标、触摸高度以及触摸宽度,确定所述折线多边形的折线中心点坐标和各折线顶点坐标、以及关键圆形的圆心点坐标及圆形半径,并作为第二图形表示信息;通过所述折线中心点坐标、圆心点坐标、圆形半径以及所对应触摸点信息,从所述关键圆形的圆周上以及各所述折线顶点坐标中选择满足轨迹点筛选条件的关键轨迹点。
示例性的,本实施例仍然将上述有关圆形的关键几何信息确定转换为数学 问题来进行描述,其中,图2r和图2s给出了本申请实施例二所提供笔迹擦除方法中擦除几何形态为任意不规则图形时关键几何信息确定的相关示意说明图。
首先,该不规则图形的效果展示如图2r所示,可以包含圆形和折线多边形。其次,本部分的具体实现可以抽象为数学问题,即,其中,计算方法是判断圆的某个切线是否符合作为关键轨迹点。其判断方法是:在图2r中,先判断圆心和线段AB的距离,然后将距离加上圆的半径,就等于圆距离线段最远处的距离。如果此距离满足最大距离,由此可以将圆上的该切点看作关键轨迹点。
其中,上述所描述关键轨迹点的确定描述如下:具体如2s所示,如果当前圆存在关键轨迹点,求圆的该关键轨迹点,可以先求过圆心的垂直于AB直线的辅助线CD与圆的交点,距离AB比较远的b点就是该关键轨迹点。
c3、将各所述组合图形的图形表示信息以及各所述关键轨迹点看作所述触摸点相对所述第三待构建几何图形的关键几何信息。
可以理解的是,根据组合图形信息的不同,可以采用上述b3包括的3个子步骤来具体实现关键轨迹点的不同确定,并可以将确定出的关键轨迹点以及各组合图形的图形表示信息作为第三待构建几何图形的关键几何信息。
其中,需要说明的是,本实施例上述组合图形的图形表示信息一般可直接通过给定的触摸点信息结合一些参数信息直接确定,其图形表示信息中主要包括该组合图形的中心点及顶点坐标,或者圆心坐标及圆半径信息等。
S2054、根据各所述关键几何信息,确定所述相邻触摸点对相对所述擦除几何形态构成的移动轮廓几何图形。
在本实施例中,上述确定的关键几何信息其实相当于包括了相邻触摸点对中两触摸点分别所对应待构建几何图形的图形表示信息,以及所对应两个图形表示信息进行连接后所形成封闭区域的相关几何信息。因此,通过上述关键几何信息,就可以构建出所需的移动轮廓几何图形。
由于移动轮廓几何图形也与不同的擦除几何形态相关联,因此,本实施例也包含了不同擦除几何形态下分别对应的移动轮廓几何图形的确定实现描述。
首先,可以知道的是,在擦除几何形态为圆角矩形的,且在上述S2053中通过第一可选实施项的执行步骤来确定关键几何信息的基础上,对于S2054中移动轮廓几何图形的具体确定,可以采用下述给出的第一可选实施项来执行实现:
a4、从所述相邻触摸点对的关键几何信息中提取所对应圆角矩形的圆角圆心坐标,选定外接轮廓构建所需的关键圆心点。
b4、获得基于各所述关键圆心点分别确定的关键圆形区域。
c4、从所述相邻触摸点对的关键几何信息中提取所对应圆角矩形的矩形顶点坐标以及中心点坐标,选定外接轮廓构建所需的关键连接点对。
d4、获得基于各所述关键连接点对分别确定的外接矩形区域,以及基于各所述矩形顶点坐标确定的顶点连接封闭区域。
e4、对各所述关键圆形区域、各所述外接矩形区域以及所述顶点连接封闭区域进行组合,形成所述相邻触摸点对相对所述圆角矩形构成的第一移动轮廓图形。
接上述擦除几何形态为圆角矩形时进行关键几何信息确定的相关示例性描述,可知给定的图2h中包括了圆角矩形对应的移动轮廓几何图形,即第一移动轮廓图形。在图2h中,该第一移动轮廓图形中包括了8个圆形区域(具体对应了上述a4和b4两个步骤确定的关键圆形区域),还包括了进行填充显示的各填充矩形区域(具体对应了上述c4和d4两步骤确定的外接矩形区域),如矩形ABA 1B 2,又如矩形AFA 2F 1等等,上述c4和d4两步骤确定时筛选出的关键连接点对可以包括A 1B 2、AB、AF、A 2F 1、F 2E 1、EF、BC以及B 2C 2等。
此外,通过上述c4和d4两步骤,还可以确定出顶点连接封闭区域,如图2h中基于点ABCDEF构成的多边形区域,该多边形区域也作为第一移动轮廓图形的一部分包含在图2h中。
同样的,在擦除几何形态为圆形,且在上述S2053中通过第二可选实施项 的执行步骤来确定关键几何信息的基础上,对于S2054中移动轮廓几何图形的具体确定,可以采用下述给出的第二可选实施项来执行实现:
a5、从所述相邻触摸点的关键几何信息中提取包含的圆形圆心坐标;
b5、获取基于各所述圆形圆心坐标确定的第二待构建几何图形区域;
c5、从所述相邻触摸点的关键几何信息中提取包含的各关键交点坐标;
d5、获得基于各所述关键交点坐标确定的关键交点连接区域;
e5、将各所述第二待构建几何图形与所述关键交点连接区域进行组合,形式所述相邻触摸点对相对所述圆形构成的第二移动轮廓图形。
接上述擦除几何形态为圆形时进行关键几何信息确定的相关示例性描述,可知给定的图2i中包括了圆形对应的移动轮廓几何图形,即第二移动轮廓图形。在图2i中,该第二移动轮廓图形中包括了2个圆形区域(具体对应了上述a5和b5两个步骤确定的第二待构建几何图形区域);还包括了基于顶点ABCD连接形成的四边形区域(具体对应了上述c5和d5两个步骤确定的关键交点连接区域)。图2i中圆形区域和关键交点连接区域的组合构成了第二移动轮廓图形。
此外,在擦除几何形态为任意不规则图形,且在上述S2053中通过第三可选实施项的执行步骤来确定关键集合信息的基础上,对于S2054中移动轮廓集合图形的具体确定,可以采用下述给出的第三可选实施项来执行实现:
a6、从所述相邻触摸点对的关键几何信息中分别提取第一图形表示信息或第二图形表示信息。
其中,第一图形表示信息可选为折线多边形的图形表示信息;第二图形表示信息可选为折线多边形与圆形相组合的图形表示信息。
b6、获得基于相应的第一图形表示信息或第二图形表示信息分别确定的组合几何图形。
其中,确定出的组合几何图形为折线多边形,或者,折线多边形与圆形的组合。
c6、从所述相邻触摸点对的关键几何信息中分别提取关键轨迹点。
d6、获得基于各所述关键轨迹点连接形成的关键轨迹区域。
e6、将各所述组合几何图形与所述关键轨迹区域进行组合,形成所述相邻触摸点对相对所述任意不规则图形构成的第三移动轮廓图形。
接上述擦除几何形态为任意不规则图形时进行关键几何信息确定的相关示例性描述,以图2q为例,可以作为不规则图形仅包含折线多边形时所对应的移动轮廓几何图形。在图2q中,通过第一图形表示信息可以获得到两个折线多边形区域;通过关键轨迹点,可以获得到连接两个折线多边形后所形成封闭区域,该封闭区域相当于关键轨迹区域。
需要说明的是,对于目标待擦除笔迹的具体确定,作为本实施例二的第二可选实施例,可以在上述第一可选实施例的基础上进行细化。具体的,在通过上述S205确定出擦除几何形态为圆角矩形,且通过S2053所对应的第一可选实施项来实现关键几何信息确定,以及通过S2054所对应的第一可选实施项来实现移动轮廓几何图形确定的基础上,本第二可选实施例通过图2b所示的流程来实现目标待擦除笔迹的确定。
其中,图2t给出了本申请实施例二所提供笔迹擦除方法中目标待擦除笔迹确定的一种实现流程图。如图2t所示,本第二可选实施例进一步将上述S206的步骤,即,分析所述待擦除笔迹中包括的各笔迹点,将各所述笔迹点与所述移动轮廓几何图形进行命中测试,确定落入所述移动轮廓几何图形中的目标待擦除笔迹,具体位置下述步骤:
S2061、拆解所述第一移动轮廓图形,获得所述顶点连接封闭区域、以及相应数量的外接矩形区域和关键圆形区域。
接上述擦除几何形态为圆角矩形时进行关键几何信息确定的相关示例性描述,可知给定的图2h中包括了圆角矩形对应的移动轮廓几何图形,该图2h中包括的图形进行拆解后包括了顶点连接封闭区域、基于各关键连接点对形成的 多个外接矩形区域,以及8个关键圆形区域。
S2062、针对所述待擦除笔迹包括的每个笔迹点,将所述笔迹点与所述顶点连接封闭区域及各所述外接矩形区域进行第一命中测试。
在本实施例中,所述将所述笔迹点与各所述外接矩形区域进行第一命中测试的具体实现可选包括:
将所述顶点连接封闭区域与各所述外接矩形区域进行组合,获得相应的凸多边形区域,并获取构成所述凸多边形区域的各区域顶点;将所述笔迹点分别与各所述区域顶点连接,获得数量与所述区域顶点相同个的三角形;确定各所述三角形中以所述笔迹点构成顶角的角度值;如果各所述角度值之和为360度,则确定所述笔迹点的第一命中测试成功。
示例性的,图3和图4给出了本申请实施例二所提供笔迹擦除方法中擦除几何形态为圆角矩形时所使用的命中测试实现的示意说明图。如图3所示,假设第一点25为待进行命中测试的笔迹点,第一多边形26为抽象后的第一移动轮廓图形所对应的轮廓,则可以将第一点25与第一多边形26的各顶点进行连接,构成如图4所示的第一连接图27;之后,可以确定第一点25在图4所示各三角形中的角度值,最终可以计算角度值之和是否为360度,若为360度,则可认为第一命中测试成功。
S2063、如果第一命中测试成功,则将所述笔迹点添加至第一目标点集合;否则,将所述笔迹点与各所述关键圆形区域进行第二命中测试。
在本实施例中,所述将所述笔迹点与各所述关键圆形区域进行第二命中测试具体实现可选包括:
获取各所述关键圆形区域的区域圆心以及区域半径,并确定所述笔迹点与各所述区域圆心的连线距离;如果存在小于相应区域半径的连线距离,则确定所述笔迹点的第二命中测试成功。
S2064、如果第二命中测试成功,则将所述笔迹点添加至所述第一目标点集合。
S2065、将基于所述第一目标点集合中各笔迹点形成的笔迹确定为落入所述移动轮廓几何图形中的目标待擦除笔迹。
可以知道的是,第一目标点集合中汇总了所有与第一移动轮廓图形进行命中测试成功的笔迹点,基于这些笔迹点就可以还原出显示界面中有哪些待擦除笔迹落入到该第一移动轮廓图形中,并将这些待擦除笔迹作为目标待擦除笔迹。
同样的,对于目标待擦除笔迹的具体确定,作为本实施例二的第三可选实施例,可以在上述第一可选实施例的基础上进行细化。具体的,在通过上述S205确定出擦除几何形态为圆形,且通过S2053所对应的第二可选实施项来实现关键几何信息确定,以及通过S2054所对应的第二可选实施项来实现移动轮廓几何图形确定的基础上,本第三可选实施例通过图5所示的流程来实现目标待擦除笔迹的确定。
其中,图5给出了本申请实施例二所提供笔迹擦除方法中目标待擦除笔迹确定的另一种实现流程图。如图5所示,本第三可选实施例进一步将上述S206的步骤,即,分析所述待擦除笔迹中包括的各笔迹点,将各所述笔迹点与所述移动轮廓几何图形进行命中测试,确定落入所述移动轮廓几何图形中的目标待擦除笔迹,具体位置下述步骤:
S2601、拆解所述第二移动轮廓图形,获得一个关键交点连接区域以及两个第二待构建几何图形。
接上述擦除几何形态为圆角矩形时进行关键几何信息确定的相关示例性描述,可知给定的图2i中包括了圆角矩形对应的移动轮廓几何图形。在图2i中,包括的第二移动轮廓图形进行拆解后存在了2个圆形区域和关键交点连接区域。
S2602、针对所述待擦除笔迹包括的每个笔迹点,将所述笔迹点与所述关键交点连接区域进行第三命中测试。
其中,本实施例将所述笔迹点与所述关键交点连接区域进行第三命中测试,具体为:
当确定所述关键交点连接区域为矩形区域时,从所述矩形区域选定由一个顶点形成两个矩形边向量,通过将所述笔迹点与各所述矩形边向量的比对,进行所述笔迹点与所述矩形区域的命中测试;否则,基于所述关键交点连接区域的各顶点,确定与所述顶点数量相同的待比较边向量;通过将所述笔迹点与各所述待比较边向量的比对,进行所述笔迹点与所述矩形区域的命中测试。
在本实施例中,关键交点连接区域可选为矩形区域(如两个圆形的半径相同),但也存在不为矩形区域的情况(如两个圆形的半径不同)。本实施例给出这两种情况下的命中测试实现。示例性的,图6和图7给出了本申请实施例二所提供笔迹擦除方法中擦除几何形态为圆形时所使用其中一种命中测试实现的示意说明图。
在关键交点连接区域为矩形区域时,可以将命中测试问题转换为求点是否在矩形内,如图6所示,已知矩形的顶点ABC和D,求笔迹点M点是否在矩形内。接着,可以如图7所示,做向量AB和AC和AM三个向量。最终,可以通过以下公式(0<AM·AB<AB·AB)∧(0<AM·AC<AC·AC)来判定笔迹点是否在矩形内。在矩形内则认为笔迹点满足第三命中测试。
另外,在关键交点连接区域为不规则多边形时,转换成数学问题后,可以先将先将多边形的每个顶点,按照相邻顺序,连接作为向量,如何判断点在向量的某个方向,其实相当于判断两个向量的夹角,同时取几何相邻点以及与需要判断的点分别做两个向量,可以求出两个向量之间的夹角。
根据向量的一个特性,也就是通过向量的叉积来判断,具体的,取几何边上的点,任意选择顺时针或逆时针方向,将该点于相邻的下一个点连接组成向量,接着将该点与要判断的点组成向量,求这两个向量的叉积的值。
如果所有的向量的叉积都在相同的方向,也就是说点在所有的几何邻边组成的线段集的相同一侧,也就是笔迹点在不规则多边形内部。而判断向量的叉积都在相同的方向,可以通过叉积的数值是否大于零判断,所有的叉积的数值都是大于零的或者都是小于零的,那么就证明笔迹点在不规则多边形内部。如 果有叉积的数值等于零那么证明笔迹点在不规则多边形的某条边上。
S2063、如果第三命中测试成功,则将所述笔迹点添加至第二目标点集合;否则,将所述笔迹点与各所述第二待构建几何图形,进行点与圆形区域的第四命中测试。
可以知道的是,第四命中测试同样为笔迹点在圆形区域内的测试。
S2064、如果第四命中测试成功,则将所述笔迹点添加至所述第二目标点集合。
S2065、将基于所述第二目标点集合中各笔迹点形成的笔迹确定为落入所述移动轮廓几何图形中的目标待擦除笔迹。
同样的,第二目标点集合中汇总了所有与第二移动轮廓图形进行命中测试成功的笔迹点,基于这些笔迹点就可以还原出显示界面中有哪些待擦除笔迹落入到该第二移动轮廓图形中,并将这些待擦除笔迹作为目标待擦除笔迹。
此外,对于目标待擦除笔迹的具体确定,作为本实施例二的第四可选实施例,可以在上述第一可选实施例的基础上进行细化。具体的,在通过上述S205确定出擦除几何形态为任意不规则图形,且通过S2053所对应的第三可选实施项来实现关键几何信息确定,以及通过S2054所对应的第三可选实施项来实现移动轮廓几何图形确定的基础上,本第四可选实施例通过图8所示的流程来实现目标待擦除笔迹的确定。
其中,图8给出了本申请实施例二所提供笔迹擦除方法中目标待擦除笔迹确定的又一种实现流程图。如图8所示,本第三可选实施例进一步将上述S206的步骤,即,分析所述待擦除笔迹中包括的各笔迹点,将各所述笔迹点与所述移动轮廓几何图形进行命中测试,确定落入所述移动轮廓几何图形中的目标待擦除笔迹,具体位置下述步骤:
S261、拆解所述第三移动轮廓图形,获得所述关键轨迹区域及各所述组合几何图形。
接上述擦除几何形态为任意不规则图形时进行关键几何信息确定的相关示例性描述,以上述图2q为例,可以作为不规则图形仅包含折线多边形时所对应的移动轮廓几何图形。在图2q中,拆解该第三移动轮廓图形后,可以获得到两个折线多边形区域以及通过关键轨迹点所形成的关键轨迹区域。
S262、针对所述待擦除笔迹包括的每个笔迹点,如果组合几何图形仅为折线多边形,则将所述笔迹点与各所述折线多边形采用转角法进行转角命中测试;或者,如果组合几何图形包含折线多边形和关键圆形,则将笔迹点分别与各所述折线多边形及关键圆形采用距离法进行距离命中测试;
可以知道的是,所述转角命中测试可理解为是本实施例上述基于图3和图4所展开描述的命中测试实现方式。所述距离命中测试可理解为本实施例上述有关笔迹点与圆形区域的命中测试实现方式。
S263、在转角或者距离命中测试成功时将所述笔迹点添加至第三目标点集合;否则,将所述笔迹点与所述关键轨迹区域进行向量命中测试,并在向量命中测试成功时将所述笔迹点添加至第三目标点集合。
同样可以知道的是,所述向量命中测试可理解为是本实施例上述对第三命中测试进行阐述时基于点与不规则多边形的向量判断而进行的命中测试实现。
S264、将基于所述第三目标点集合中各笔迹点形成的笔迹确定为落入所述移动轮廓几何图形中的目标待擦除笔迹。
同样的,该第三目标点集合中汇总了所有与第三移动轮廓图形进行命中测试成功的笔迹点,基于这些笔迹点就可以还原出显示界面中有哪些待擦除笔迹落入到该第三移动轮廓图形中,并将这些待擦除笔迹作为目标待擦除笔迹。
在本实施例二中,作为本实施例二的第五可选实施例,给出了所提供笔迹擦除方法中的一种特殊情况实现。本第五可选实施例可以在上述第一可选实施例的基础上进行细化,具体的,本第五可选实施例可以在通过上述S205执行通过所获得的触摸点信息,确定触摸物在移动中匹配的擦除几何形态的操作后, 进一步增加下述操作:
需要说明的是,该特殊情况可理解为擦除几何形态为圆角矩形时,触摸物在显示屏上并未产生移动,而是以静止状态与显示屏接触。此时触摸框反馈的触摸点信息为触摸物与显示屏接触时的所产生触摸点的信息,基于该触摸点可以形成一个擦除几何形态为圆角矩形的待构建擦除区域,该待构建擦除区域相当于一个静态圆角矩形。由此,在该种情况下,本第五可选实施例的具体实现如下:
a、当确定所述擦除几何形态为圆角矩形且监测到所述触摸物在设定时间内未发生移动时,确定所述触摸物在所述设定时间内接触所述显示屏时对应的静态触摸点。
其中,所述静态触摸点可理解为触摸物首次与显示屏接触时所产生触摸信号对应的触摸点。本步骤可以获取到该静态触摸点的触摸点信息。
b、基于所述静态触摸点的触摸点信息,确定相对所述静态触摸点的静态圆角矩形。
通过上述实施例有关圆角矩形的相关描述,可以知道,在已知静态触摸点的触摸点信息后,可以确定出表征该静态圆角矩形的相关几何信息。其中,图9给出了本申请实施例二所提供笔迹擦除方法中静态圆角矩形的效果展示图。如图9所示,可认为该静态圆角矩形包括两个矩形(两个填充矩形区域)和四个圆形。即,本实施例可选所述静态圆角矩形包括两个静态矩形区域以及四个静态圆形区域。
由此,要确定该静态圆角矩形,相当于要确定这两个矩形以及这四个圆形的相关几何信息。而通过本实施例上述对圆角矩形所关联各顶点坐标确定操作,同样可以确定出上述两个矩形的顶点坐标,以及四个圆形的圆心坐标及半径信息,由此相当于获取了该静态圆角矩形的相关表示。
c、将所述待擦除笔迹中包括的各笔迹点与所述静态圆角矩形进行命中测试,在所述界面中对落入所述静态圆角矩形中的待擦除笔迹进行擦除。
在上述优化的基础上,所述将所述待擦除笔迹中包括的各笔迹点与所述静态圆角矩形进行命中测试,在所述界面中对落入所述静态圆角矩形中的待擦除笔迹进行擦除,包括:
针对所述待擦除笔迹中的每个笔迹点,将所述笔迹点分别与两个静态矩形区域以及四个圆形区域进行命中测试;如果所述笔迹点满足命中测试成功的条件,则将所述笔迹点添加到静态点集合;对基于所述静态点集合中各笔迹点形成的笔迹进行擦除。
可以理解的是,在进行笔迹点与静态圆角矩形的测试中,具体包含了笔迹点与矩形区域的命中测试以及笔迹点与圆形区域的命中测试。而关于矩形区域的测试可通过上述有关矩形命中测试(向量法命中测试)的描述来实现,圆形区域的测试也同样可通过上述有关圆形命中测试(距离法命中测试)的描述来实现。
实施例三
图10为本申请实施例三提供的一种笔迹擦除装置的结构框图,笔迹擦除装置可以集成在交互平板中,其中,交互平板中所配备触摸框的触摸响应精度到设定精度范围。所述装置具体可以包括如下模块:
显示模块31,用于通过显示屏展示包含有待擦除笔迹的显示界面;
触发模块32,用于接收笔迹擦除指令,进入笔迹擦除模式,所述笔迹擦除指令通过用户的触发形成;
获取模块33,用于在触摸物触碰所述显示屏的表面并移动时,获得通过所述触摸框反馈的触摸点信息,所述触摸物由用户操控;
擦除模块34,用于通过对所获得触摸点信息以及所述待擦除笔迹的分析,采用与所述触摸物相匹配的擦除几何形态对所述界面中的待擦除笔迹进行擦除。
本申请实施例三提供的一种笔迹擦除装置,该装置的执行主体交互平板在硬件结构上配置了高精度触摸框,能够将所配置的高精度触摸框通过本实施例 所提供的方法实现软件应用层面上的功能优化,相比于相关技术中的未在软件层面进行优化的交互平板,本实施例三在交互平板上集成了笔迹擦除装置,该装置可以保证对界面中待擦除笔迹的擦除响应更能够与用户所使用触摸物的擦除几何形态相匹配,从而实现擦除过程中擦除区域的灵活调整,进而实现了交互平板上擦除效率的提升。
进一步地,与所述触摸物相匹配的擦除几何形态通过所述触摸物作用在显示屏上的触摸面积来体现;
所述擦除几何形态包括圆角矩形、圆形以及任意不规则图形。
进一步地,获取模块33具体可以用于:
在触摸物触碰所述显示屏的表面并移动时,通过所述触摸框中硬件电路识别各触控信号,所述触控信号由所述触摸物在所述显示屏上移动时产生;
获得所述触摸框通过人机交互HID标准协议针对各所述触控信号反馈的触摸点信息,
其中,一个触摸点信息对应一个触摸点,所述触摸点信息包括:触摸点坐标、触摸点高度和宽度、以及触摸旋转角度。
进一步地,该装置还包括了输入处理模块,
所述输入处理模块,可以用于获得通过所述触摸框反馈的触摸点信息之后,处理各所述触摸点信息,以使各所述触摸点信息具备统一的单位格式及数据结构。
在上述优化的基础上,所述输入处理模块处理各所述触摸点信息的具体实现可以包括:
根据所获取触摸框的尺寸大小信息以及屏幕分辨率信息,将所述触摸点信息中各项数据信息的单位转换为统一的设定单位格式;
采用所述设定单位格式对应的数据结构,对所述触摸点信息进行记录。
进一步地,擦除模块34具体可以包括:
形态轮廓确定单元,用于通过所获得的触摸点信息,确定触摸物在移动中 匹配的擦除几何形态,以及确定移动中相邻触摸点对在所述擦除几何形态下构成的移动轮廓几何图形;
目标笔迹确定单元,用于分析所述待擦除笔迹中包括的各笔迹点,将各所述笔迹点与所述移动轮廓几何图形进行命中测试,确定落入所述移动轮廓几何图形中的目标待擦除笔迹;
擦除执行单元,用于在所述显示界面中对所述目标待擦除笔迹进行擦除。
在上述优化的基础上,形态轮廓确定单元具体可以包括:
信息获取子单元,用于提取关键触摸点信息,获得所述关键触摸点信息中的关键触摸面积,其中,所述关键触摸点信息为所述触摸物移动中首次与所述显示屏接触时所产生触摸点的触摸点信息;
形态确定子单元,用于确定所述关键触摸面积归属的面积阈值范围以及面积形态,在所归属面积阈值范围对应的各几何形态中查找与所述面积形态相匹配的目标形态,将所述目标形态确定为所述触摸物匹配的擦除几何形态;
几何信息确定子单元,用于针对所述触摸物移动中的每个相邻触摸点对,通过对所述相邻触摸点对所对应触摸点信息的分析,确定相邻触摸点对中各触摸点相对所述擦除几何形态的关键几何信息;
轮廓确定子单元,用于根据各所述关键几何信息,确定所述相邻触摸点对相对所述擦除几何形态构成的移动轮廓几何图形。
在上述优化的基础上,当所述擦除几何形态为圆角矩形时,所述圆角矩形包括一个矩形和以矩形各顶点为圆心的圆角;
所述几何信息确定子单元,具体用于:
将所述圆角矩形记作所述相邻触摸点对中各触摸点的第一待构建几何图形;
针对所述相邻触摸点对中的每个触摸点,通过所对应触摸点信息中的触摸点坐标、触摸宽度、触摸高度以及触摸旋转角度,结合预给定的圆角半径,确定所述第一待构建几何图形中矩形的中心点坐标、各圆角的圆心坐标和各关键切点坐标、以及两图形连接点坐标;
将所述矩形的中心点坐标、各圆角的圆心坐标及各关键切点坐标、以及两图形连接点坐标看作所述触摸点相对所述第一待构建几何图形的关键几何信息;
其中,所述第一待构建几何图形中每个圆角包括两个关键切点;各关键切点为所述圆角与相邻圆角以切线连接时对应的切点。
进一步地,轮廓确定子单元具体可以用于:
从所述相邻触摸点对的关键几何信息中提取所对应圆角矩形的圆角圆心坐标,选定外接轮廓构建所需的关键圆心点;
获得基于各所述关键圆心点分别确定的关键圆形区域;
从所述相邻触摸点对的关键几何信息中提取所对应圆角矩形的矩形顶点坐标以及中心点坐标,选定外接轮廓构建所需的关键连接点对;
获得基于各所述关键连接点对分别确定的外接矩形区域,以及基于各所述矩形顶点坐标确定的顶点连接封闭区域;
对各所述关键圆形区域、各所述外接矩形区域以及所述顶点连接封闭区域进行组合,形成所述相邻触摸点对相对所述圆角矩形构成的第一移动轮廓图形。
在上述实施例的基础上,所述目标笔迹确定单元具体可以用于:
拆解所述第一移动轮廓图形,获得所述顶点连接封闭区域、以及相应数量的外接矩形区域和关键圆形区域;
针对所述待擦除笔迹包括的每个笔迹点,将所述笔迹点与所述顶点连接封闭区域及各所述外接矩形区域进行第一命中测试;
如果第一命中测试成功,则将所述笔迹点添加至第一目标点集合;否则,将所述笔迹点与各所述关键圆形区域进行第二命中测试;
如果第二命中测试成功,则将所述笔迹点添加至所述第一目标点集合;
将基于所述第一目标点集合中各笔迹点形成的笔迹确定为落入所述移动轮廓几何图形中的目标待擦除笔迹。
进一步地,将所述笔迹点与所述顶点连接封闭区域及各所述外接矩形区域进行第一命中测试的具体执行步骤包括:
将所述顶点连接封闭区域与各所述外接矩形区域进行组合,获得相应的凸多边形区域,并获取构成所述凸多边形区域的各区域顶点;
将所述笔迹点分别与各所述区域顶点连接,获得数量与所述区域顶点相同个的三角形;
确定各所述三角形中以所述笔迹点构成顶角的角度值;
如果各所述角度值之和为360度,则确定所述笔迹点的第一命中测试成功。
进一步地,将所述笔迹点与各所述关键圆形区域进行第二命中测试的具体执行步骤包括:
获取各所述关键圆形区域的区域圆心以及区域半径,并确定所述笔迹点与各所述区域圆心的连线距离;
如果存在小于相应区域半径的连线距离,则确定所述笔迹点的第二命中测试成功。
在上述实施例的基础上,擦除模块34还包括:静态擦除实现单元,
所述静态擦除实现单元具体可以包括:
静态点确定子单元,用于在所述通过所获得的触摸点信息,确定触摸物在移动中匹配的擦除几何形态之后,当确定所述擦除几何形态为圆角矩形且监测到所述触摸物在设定时间内未发生移动时,确定所述触摸物在所述设定时间内接触所述显示屏时对应的静态触摸点;
静态矩形确定子单元,用于基于所述静态触摸点的触摸点信息,确定相对所述静态触摸点的静态圆角矩形;
静态命中测试子单元,用于将所述待擦除笔迹中包括的各笔迹点与所述静态圆角矩形进行命中测试,在所述界面中对落入所述静态圆角矩形中的待擦除笔迹进行擦除。
进一步地,所述静态圆角矩形包括两个静态矩形区域以及四个静态圆形区域;
相应的,静态命中测试子单元具体可以用于:
针对所述待擦除笔迹中的每个笔迹点,将所述笔迹点分别与两个静态矩形区域以及四个圆形区域进行命中测试;
如果所述笔迹点满足命中测试成功的条件,则将所述笔迹点添加到静态点集合;
对基于所述静态点集合中各笔迹点形成的笔迹进行擦除。
进一步地,几何信息确定子单元具体可以用于:
当所述擦除几何形态为圆形时将所述圆形记作所述相邻触摸点对中各触摸点的第二待构建几何图形;
通过所述相邻触摸点对中各触摸点所对应触摸点信息中的触摸点坐标、触摸宽度、触摸高度,确定相应第二待构建几何图形的圆形圆心坐标以及各关键交点坐标;
将各触摸点对应的圆形圆心坐标以及各关键交点坐标看作相对所述第二待构建几何图形的关键几何信息。
在上述优化的基础上,通过所述相邻触摸点对中各触摸点所对应触摸点信息中的触摸点坐标、触摸宽度、触摸高度,确定相应第二待构建几何图形的圆形圆心坐标以及各关键交点坐标的具体执行步骤可以包括:
通过所述相邻触摸点对中各触摸点所对应触摸点信息中的触摸点坐标、触摸宽度以及触摸高度,确定相应第二待构建圆形的圆形圆心坐标;
连接相应的两圆形圆心坐标,获得圆心连线;
过各所述圆形圆心坐标分别构建与所述圆心连线垂直的直线,获得各直线与相应第二待构建圆形相交后确定的关键交点坐标。
进一步地,轮廓确定子单元具体可以用于:
从所述相邻触摸点的关键几何信息中提取包含的圆形圆心坐标;
获取基于各所述圆形圆心坐标确定的第二待构建几何图形区域;
从所述相邻触摸点的关键几何信息中提取包含的各关键交点坐标;
获得基于各所述关键交点坐标确定的关键交点连接区域;
将各所述第二待构建几何图形与所述关键交点连接区域进行组合,形式所述相邻触摸点对相对所述圆形构成的第二移动轮廓图形。
在上述优化的基础上,目标笔迹确定单元具体可以用于:
拆解所述第二移动轮廓图形,获得一个关键交点连接区域以及两个第二待构建几何图形;
针对所述待擦除笔迹包括的每个笔迹点,将所述笔迹点与所述关键交点连接区域进行第三命中测试;
如果第三命中测试成功,则将所述笔迹点添加至第二目标点集合;否则,将所述笔迹点与各所述第二待构建几何图形,进行点与圆形区域的第四命中测试;
如果第四命中测试成功,则将所述笔迹点添加至所述第二目标点集合;
将基于所述第二目标点集合中各笔迹点形成的笔迹确定为落入所述移动轮廓几何图形中的目标待擦除笔迹。
进一步地,将所述笔迹点与所述关键交点连接区域进行第三命中测试具体执行步骤包括:
当确定所述关键交点连接区域为矩形区域时,从所述矩形区域选定由一个顶点形成两个矩形边向量,通过将所述笔迹点与各所述矩形边向量的比对,进行所述笔迹点与所述矩形区域的命中测试;否则,
基于所述关键交点连接区域的各顶点,确定与所述顶点数量相同的待比较边向量;
通过将所述笔迹点与各所述待比较边向量的比对,进行所述笔迹点与所述矩形区域的命中测试。
进一步地,几何信息确定子单元具体还可以用于:
当擦除几何形态为任意不规则图形时,将所述任意不规则图形记作所述相邻触摸点对中各触摸点的第三待构建几何图形,确定所述第三待构建几何图形中包含的组合图形信息;
针对所述相邻触摸点对中的每个触摸点,通过所对应触摸点信息结合所述组合图形信息,确定所述第三待构建几何图形上相对所述触摸点存在的关键轨迹点以及所述第三待构建几何图形的图形表示信息;
将各所述组合图形的图形表示信息以及各所述关键轨迹点看作所述触摸点相对所述第三待构建几何图形的关键几何信息。
进一步地,通过所对应触摸点信息结合所述组合图形信息,确定所述第三待构建几何图形上相对所述触摸点存在的关键轨迹点以及所述第三待构建几何图形的图形表示信息的具体执行步骤可以包括:
分析所述组合图形信息;
确定所述第三待构建几何图形中仅包含折线多边形时,通过所对应触摸点信息确定所述折线多边形相对所述触摸点存在的关键轨迹点,并获得表示所述折线多边形的第一图形表示信息;
确定所述第三待构建几何图形中包含折线多边形以及目标圆形时,通过所对应触摸点信息从所述折线多边形及关键圆形上确定关键轨迹点,并获得表示所述折线多边形和关键圆形的第二图形表示信息。
进一步地,通过所对应触摸点信息确定所述折线多边形相对所述触摸点存在的关键轨迹点,并获得表示所述折线多边形的第一图形表示信息的具体执行信息可以包括:
通过所对应触摸点信息中的触摸点坐标、触摸高度以及触摸宽度,确定作为第一图形表示信息的折线多边形的折线中心点坐标以及各折线顶点坐标;
通过所述折线中心点坐标以及所对应触摸点信息,从各所述折线顶点坐标中选择满足轨迹点筛选条件的关键轨迹点。
进一步地,通过所对应触摸点信息从所述折线多边形及关键圆形上确定关键轨迹点,并获得表示所述折线多边形和关键圆形的第二图形表示信息的具体执行步骤可以包括:
通过所对应触摸点信息中的触摸点坐标、触摸高度以及触摸宽度,确定所 述折线多边形的折线中心点坐标和各折线顶点坐标、以及关键圆形的圆心点坐标及圆形半径,并作为第二图形表示信息;
通过所述折线中心点坐标、圆心点坐标、圆形半径以及所对应触摸点信息,从所述关键圆形的圆周上以及各所述折线顶点坐标中选择满足轨迹点筛选条件的关键轨迹点。
在上述优化的基础上,轮廓确定子单元具体可以用于
从所述相邻触摸点对的关键几何信息中分别提取第一图形表示信息或第二图形表示信息;
获得基于相应的第一图形表示信息或第二图形表示信息分别确定的组合几何图形;
从所述相邻触摸点对的关键几何信息中分别提取关键轨迹点;
获得基于各所述关键轨迹点连接形成的关键轨迹区域;
将各所述组合几何图形与所述关键轨迹区域进行组合,形成所述相邻触摸点对相对所述任意不规则图形构成的第三移动轮廓图形。
在上述实施例的基础上,目标笔迹确定单元具体可以用于:
拆解所述第三移动轮廓图形,获得所述关键轨迹区域及各所述组合几何图形;
针对所述待擦除笔迹包括的每个笔迹点,如果组合几何图形仅为折线多边形,则将所述笔迹点与各所述折线多边形采用转角法进行转角命中测试;或者,
如果组合几何图形包含折线多边形和关键圆形,则将笔迹点分别与各所述折线多边形及关键圆形采用距离法进行距离命中测试;
在转角或者距离命中测试成功时将所述笔迹点添加至第三目标点集合;否则,将所述笔迹点与所述关键轨迹区域进行向量命中测试,并在向量命中测试成功时将所述笔迹点添加至第三目标点集合;
将基于所述第三目标点集合中各笔迹点形成的笔迹确定为落入所述移动轮廓几何图形中的目标待擦除笔迹。
实施例四
图11为本申请实施例四提供的一种交互平板的结构示意图。该交互平板包括:处理器40、存储器41、显示屏42、输入装置43、输出装置44、触摸框45。该交互平板中处理器40的数量可以是一个或者多个,图11中以一个处理器40为例。该交互平板中存储器41的数量可以是一个或者多个,图11中以一个存储器41为例。该交互平板的处理器40、存储器41、显示屏42、输入装置43、输出装置44以及触摸框45可以通过总线或者其他方式连接,图11中以通过总线连接为例。
存储器41作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本申请任意实施例所述的交互平板对应的程序指令/模块(例如,笔迹擦除装置中的显示模块31、触发模块32、获取模块33以及呈现模块34)。存储器41可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据设备的使用所创建的数据等。此外,存储器41可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器41可进一步包括相对于处理器40远程设置的存储器,这些远程存储器可以通过网络连接至设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
显示屏42与触摸框45覆盖(图11中并未示出该覆盖关系),可以构成触摸屏之上,用于进行交互内容的显示,一般而言,显示屏42用于根据处理器40的指示显示数据,还用于接收作用于显示屏42的触摸操作,并将相应的信号发送至处理器40或其他装置。
输入装置43可用于接收输入的数字或者字符信息,以及产生与展示设备的用户设置以及功能控制有关的键信号输入,还可以是用于获取图形的摄像头以及获取音频数据的拾音设备。输出装置44可以包括扬声器等音频设备。需要说 明的是,输入装置43和输出装置44的具体组成可以根据实际情况设定。
触摸框45,所具备的触摸响应精度,达到设定精度范围,用于通过包括的硬件电路响应触摸物的触摸操作。
处理器40通过运行存储在存储器41中的软件程序、指令以及模块,从而执行设备的各种功能应用以及数据处理,即实现上述的笔迹擦除方法。
上述提供的交互平板可用于执行上述任意实施例提供的笔迹擦除方法,具备相应的功能。
实施例五
本申请实施例五还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种笔迹擦除方法,包括:
通过显示屏展示包含有待擦除笔迹的显示界面;
接收笔迹擦除指令,进入笔迹擦除模式,所述笔迹擦除指令通过用户的触发形成;
在触摸物触碰所述显示屏的表面并移动时,获得通过所述触摸框反馈的触摸点信息,所述触摸物由用户操控;
通过对所获得触摸点信息以及所述待擦除笔迹的分析,采用与所述触摸物相匹配的擦除几何形态对所述界面中的待擦除笔迹进行擦除。
当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的笔迹擦除方法操作,还可以执行本申请任意实施例所提供的笔迹擦除方法中的相关操作,且具备相应的功能。
通过以上关于实施方式的描述,所属领域的技术人员可以清楚地了解到,本申请可借助软件及必需的通用硬件来实现,当然也可以通过硬件实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、 闪存(FLASH)、硬盘或光盘等,包括若干指令用以使得一台交互平板(可以是机器人,个人计算机,服务器,或者网络设备等)执行本申请任意实施例所述的笔迹擦除方法。
值得注意的是,上述课程推荐装置中,所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(Programmable Gate Array,PGA),现场可编程门阵列(Field-Programmable Gate Array,FPGA)等。

Claims (27)

  1. 一种笔迹擦除方法,应用于交互平板,所述交互平板所配备触摸框的触摸响应精度达到设定精度范围,所述方法包括:
    通过显示屏展示包含有待擦除笔迹的显示界面;
    接收笔迹擦除指令,进入笔迹擦除模式,所述笔迹擦除指令通过用户的触发形成;
    在触摸物触碰所述显示屏的表面并移动时,获得通过所述触摸框反馈的触摸点信息,所述触摸物由用户操控;
    通过对所获得触摸点信息以及所述待擦除笔迹的分析,采用与所述触摸物相匹配的擦除几何形态对所述界面中的待擦除笔迹进行擦除;
    与所述触摸物相匹配的擦除几何形态通过所述触摸物作用在显示屏上的触摸面积来体现;
    所述擦除几何形态包括圆角矩形、圆形以及任意不规则图形。
  2. 根据权利要求1所述的方法,其中,所述获得通过所述触摸框反馈的触摸点信息,包括:
    通过所述触摸框中硬件电路识别各触控信号,所述触控信号由所述触摸物在所述显示屏上移动时产生;
    获得所述触摸框通过人机交互HID标准协议针对各所述触控信号反馈的触摸点信息,
    其中,一个触摸点信息对应一个触摸点,所述触摸点信息包括:触摸点坐标、触摸点高度和宽度、以及触摸旋转角度。
  3. 根据权利要求1所述的方法,在获得通过所述触摸框反馈的触摸点信息之后,还包括:
    处理各所述触摸点信息,以使各所述触摸点信息具备统一的单位格式及数据结构。
  4. 根据权利要求3所述的方法,其中,所述处理各所述触摸点信息,包括:
    根据所获取触摸框的尺寸大小信息以及屏幕分辨率信息,将所述触摸点信 息中各项数据信息的单位转换为统一的设定单位格式;
    采用所述设定单位格式对应的数据结构,对所述触摸点信息进行记录。
  5. 根据权利要求1所述的方法,其中,通过对所获得触摸点信息以及所述待擦除笔迹的分析,采用与所述触摸物相匹配的擦除几何形态对所述界面中的待擦除笔迹进行擦除,包括:
    通过所获得的触摸点信息,确定触摸物在移动中匹配的擦除几何形态,以及确定移动中相邻触摸点对在所述擦除几何形态下构成的移动轮廓几何图形;
    分析所述待擦除笔迹中包括的各笔迹点,将各所述笔迹点与所述移动轮廓几何图形进行命中测试,确定落入所述移动轮廓几何图形中的目标待擦除笔迹;
    在所述显示界面中对所述目标待擦除笔迹进行擦除。
  6. 根据权利要求5所述的方法,其中,所述通过所获得的触摸点信息,确定触摸物在移动中匹配的擦除几何形态,以及确定移动中相邻触摸点对在所述擦除几何形态下构成的移动轮廓几何图形,包括:
    提取关键触摸点信息,获得所述关键触摸点信息中的关键触摸面积,其中,所述关键触摸点信息为所述触摸物移动中首次与所述显示屏接触时所产生触摸点的触摸点信息;
    确定所述关键触摸面积归属的面积阈值范围以及面积形态,在所归属面积阈值范围对应的各几何形态中查找与所述面积形态相匹配的目标形态,将所述目标形态确定为所述触摸物匹配的擦除几何形态;
    针对所述触摸物移动中的每个相邻触摸点对,通过对所述相邻触摸点对所对应触摸点信息的分析,确定相邻触摸点对中各触摸点相对所述擦除几何形态的关键几何信息;
    根据各所述关键几何信息,确定所述相邻触摸点对相对所述擦除几何形态构成的移动轮廓几何图形。
  7. 根据权利要求6所述的方法,其中,当所述擦除几何形态为圆角矩形时,所述圆角矩形包括一个矩形和以矩形各顶点为圆心的圆角;
    所述通过对所述相邻触摸点对所对应触摸点信息的分析,确定相邻触摸点对中各触摸点相对所述擦除几何形态的关键几何信息,包括:
    将所述圆角矩形记作所述相邻触摸点对中各触摸点的第一待构建几何图形;
    针对所述相邻触摸点对中的每个触摸点,通过所对应触摸点信息中的触摸点坐标、触摸宽度、触摸高度以及触摸旋转角度,结合预给定的圆角半径,确定所述第一待构建几何图形中矩形的中心点坐标、各圆角的圆心坐标和各关键切点坐标、以及两图形连接点坐标;
    将所述矩形的中心点坐标、各圆角的圆心坐标及各关键切点坐标、以及两图形连接点坐标看作所述触摸点相对所述第一待构建几何图形的关键几何信息;
    其中,所述第一待构建几何图形中每个圆角包括两个关键切点;各关键切点为所述圆角与相邻圆角以切线连接时对应的切点。
  8. 根据权利要求7所述的方法,其中,所述根据各所述关键几何信息,确定所述相邻触摸点对在所述擦除几何形态下构成的移动轮廓几何图形,包括:
    从所述相邻触摸点对的关键几何信息中提取所对应圆角矩形的圆角圆心坐标,选定外接轮廓构建所需的关键圆心点;
    获得基于各所述关键圆心点分别确定的关键圆形区域;
    从所述相邻触摸点对的关键几何信息中提取所对应圆角矩形的矩形顶点坐标以及中心点坐标,选定外接轮廓构建所需的关键连接点对;
    获得基于各所述关键连接点对分别确定的外接矩形区域,以及基于各所述矩形顶点坐标确定的顶点连接封闭区域;
    对各所述关键圆形区域、各所述外接矩形区域以及所述顶点连接封闭区域进行组合,形成所述相邻触摸点对相对所述圆角矩形构成的第一移动轮廓图形。
  9. 根据权利要求8所述的方法,其中,分析所述待擦除笔迹中包括的各笔迹点,将各所述笔迹点与所述移动轮廓几何图形进行命中测试,确定落入所述移动轮廓几何图形中的目标待擦除笔迹,包括:
    拆解所述第一移动轮廓图形,获得所述顶点连接封闭区域、以及相应数量 的外接矩形区域和关键圆形区域;
    针对所述待擦除笔迹包括的每个笔迹点,将所述笔迹点与所述顶点连接封闭区域及各所述外接矩形区域进行第一命中测试;
    如果第一命中测试成功,则将所述笔迹点添加至第一目标点集合;否则,将所述笔迹点与各所述关键圆形区域进行第二命中测试;
    如果第二命中测试成功,则将所述笔迹点添加至所述第一目标点集合;
    将基于所述第一目标点集合中各笔迹点形成的笔迹确定为落入所述移动轮廓几何图形中的目标待擦除笔迹。
  10. 根据权利要求9所述的方法,其中,所述将所述笔迹点与各所述外接矩形区域进行第一命中测试,包括:
    将所述顶点连接封闭区域与各所述外接矩形区域进行组合,获得相应的凸多边形区域,并获取构成所述凸多边形区域的各区域顶点;
    将所述笔迹点分别与各所述区域顶点连接,获得数量与所述区域顶点相同个的三角形;
    确定各所述三角形中以所述笔迹点构成顶角的角度值;
    如果各所述角度值之和为360度,则确定所述笔迹点的第一命中测试成功。
  11. 根据权利要求9所述的方法,其中,所述将所述笔迹点与各所述关键圆形区域进行第二命中测试,包括:
    获取各所述关键圆形区域的区域圆心以及区域半径,并确定所述笔迹点与各所述区域圆心的连线距离;
    如果存在小于相应区域半径的连线距离,则确定所述笔迹点的第二命中测试成功。
  12. 根据权利要求5所述的方法,在所述通过所获得的触摸点信息,确定触摸物在移动中匹配的擦除几何形态之后,还包括:
    当确定所述擦除几何形态为圆角矩形且监测到所述触摸物在设定时间内未发生移动时,确定所述触摸物在所述设定时间内接触所述显示屏时对应的静态 触摸点;
    基于所述静态触摸点的触摸点信息,确定相对所述静态触摸点的静态圆角矩形;
    将所述待擦除笔迹中包括的各笔迹点与所述静态圆角矩形进行命中测试,在所述界面中对落入所述静态圆角矩形中的待擦除笔迹进行擦除。
  13. 根据权利要求12所述的方法,其中,所述静态圆角矩形包括两个静态矩形区域以及四个静态圆形区域;
    相应的,所述将所述待擦除笔迹中包括的各笔迹点与所述静态圆角矩形进行命中测试,在所述界面中对落入所述静态圆角矩形中的待擦除笔迹进行擦除,包括:
    针对所述待擦除笔迹中的每个笔迹点,将所述笔迹点分别与两个静态矩形区域以及四个圆形区域进行命中测试;
    如果所述笔迹点满足命中测试成功的条件,则将所述笔迹点添加到静态点集合;
    对基于所述静态点集合中各笔迹点形成的笔迹进行擦除。
  14. 根据权利要求6所述的方法,其中,当所述擦除几何形态为圆形时,所述通过对所述相邻触摸点对所对应触摸点信息的分析,确定相邻触摸点对中各触摸点相对所述擦除几何形态的关键几何信息,包括:
    将所述圆形记作所述相邻触摸点对中各触摸点的第二待构建几何图形;
    通过所述相邻触摸点对中各触摸点所对应触摸点信息中的触摸点坐标、触摸宽度、触摸高度,确定相应第二待构建几何图形的圆形圆心坐标以及各关键交点坐标;
    将各触摸点对应的圆形圆心坐标以及各关键交点坐标看作相对所述第二待构建几何图形的关键几何信息。
  15. 根据权利要求14所述的方法,其中,所述通过所述相邻触摸点对中各触摸点所对应触摸点信息中的触摸点坐标、触摸宽度、触摸高度,确定相应第 二待构建几何图形的圆形圆心坐标以及各关键交点坐标,包括:
    通过所述相邻触摸点对中各触摸点所对应触摸点信息中的触摸点坐标、触摸宽度以及触摸高度,确定相应第二待构建圆形的圆形圆心坐标;
    连接相应的两圆形圆心坐标,获得圆心连线;
    过各所述圆形圆心坐标分别构建与所述圆心连线垂直的直线,获得各直线与相应第二待构建圆形相交后确定的关键交点坐标。
  16. 根据权利要求15所述的方法,其中,所述根据各所述关键几何信息,确定所述相邻触摸点对在所述擦除几何形态下构成的移动轮廓几何图形,包括:
    从所述相邻触摸点的关键几何信息中提取包含的圆形圆心坐标;
    获取基于各所述圆形圆心坐标确定的第二待构建几何图形区域;
    从所述相邻触摸点的关键几何信息中提取包含的各关键交点坐标;
    获得基于各所述关键交点坐标确定的关键交点连接区域;
    将各所述第二待构建几何图形与所述关键交点连接区域进行组合,形式所述相邻触摸点对相对所述圆形构成的第二移动轮廓图形。
  17. 根据权利要求16所述的方法,其中,分析所述待擦除笔迹中包括的各笔迹点,将各所述笔迹点与所述移动轮廓几何图形进行命中测试,确定落入所述移动轮廓几何图形中的目标待擦除笔迹,包括:
    拆解所述第二移动轮廓图形,获得一个关键交点连接区域以及两个第二待构建几何图形;
    针对所述待擦除笔迹包括的每个笔迹点,将所述笔迹点与所述关键交点连接区域进行第三命中测试;
    如果第三命中测试成功,则将所述笔迹点添加至第二目标点集合;否则,将所述笔迹点与各所述第二待构建几何图形,进行点与圆形区域的第四命中测试;
    如果第四命中测试成功,则将所述笔迹点添加至所述第二目标点集合;
    将基于所述第二目标点集合中各笔迹点形成的笔迹确定为落入所述移动轮 廓几何图形中的目标待擦除笔迹。
  18. 根据权利要求17所述的方法,其中,所述将所述笔迹点与所述关键交点连接区域进行第三命中测试,包括:
    当确定所述关键交点连接区域为矩形区域时,从所述矩形区域选定由一个顶点形成两个矩形边向量,通过将所述笔迹点与各所述矩形边向量的比对,进行所述笔迹点与所述矩形区域的命中测试;否则,
    基于所述关键交点连接区域的各顶点,确定与所述顶点数量相同的待比较边向量;
    通过将所述笔迹点与各所述待比较边向量的比对,进行所述笔迹点与所述矩形区域的命中测试。
  19. 根据权利要求6所述的方法,其中,所述当擦除几何形态为任意不规则图形时,所述通过对所述相邻触摸点对所对应触摸点信息的分析,确定相邻触摸点对中各触摸点相对所述擦除几何形态的关键几何信息,包括:
    将所述任意不规则图形记作所述相邻触摸点对中各触摸点的第三待构建几何图形,确定所述第三待构建几何图形中包含的组合图形信息;
    针对所述相邻触摸点对中的每个触摸点,通过所对应触摸点信息结合所述组合图形信息,确定所述第三待构建几何图形上相对所述触摸点存在的关键轨迹点以及所述第三待构建几何图形的图形表示信息;
    将各所述组合图形的图形表示信息以及各所述关键轨迹点看作所述触摸点相对所述第三待构建几何图形的关键几何信息。
  20. 根据权利要求19所述的方法,其中,所述通过所对应触摸点信息结合所述组合图形信息,确定所述第三待构建几何图形上相对所述触摸点存在的关键轨迹点以及所述第三待构建几何图形的图形表示信息,包括:
    分析所述组合图形信息;
    确定所述第三待构建几何图形中仅包含折线多边形时,通过所对应触摸点信息确定所述折线多边形相对所述触摸点存在的关键轨迹点,并获得表示所述 折线多边形的第一图形表示信息;
    确定所述第三待构建几何图形中包含折线多边形以及目标圆形时,通过所对应触摸点信息从所述折线多边形及关键圆形上确定关键轨迹点,并获得表示所述折线多边形和关键圆形的第二图形表示信息。
  21. 根据权利要求20所述的方法,其中,所述通过所对应触摸点信息确定所述折线多边形相对所述触摸点存在的关键轨迹点,并获得表示所述折线多边形的第一图形表示信息,包括:
    通过所对应触摸点信息中的触摸点坐标、触摸高度以及触摸宽度,确定作为第一图形表示信息的折线多边形的折线中心点坐标以及各折线顶点坐标;
    通过所述折线中心点坐标以及所对应触摸点信息,从各所述折线顶点坐标中选择满足轨迹点筛选条件的关键轨迹点。
  22. 根据权利要求20所述的方法,其中,所述通过所对应触摸点信息从所述折线多边形及关键圆形上确定关键轨迹点,并获得表示所述折线多边形和关键圆形的第二图形表示信息,包括:
    通过所对应触摸点信息中的触摸点坐标、触摸高度以及触摸宽度,确定所述折线多边形的折线中心点坐标和各折线顶点坐标、以及关键圆形的圆心点坐标及圆形半径,并作为第二图形表示信息;
    通过所述折线中心点坐标、圆心点坐标、圆形半径以及所对应触摸点信息,从所述关键圆形的圆周上以及各所述折线顶点坐标中选择满足轨迹点筛选条件的关键轨迹点。
  23. 根据权利要求20所述的方法,其中,所述根据各所述关键几何信息,确定所述相邻触摸点对相对所述擦除几何形态构成的移动轮廓几何图形,包括:
    从所述相邻触摸点对的关键几何信息中分别提取第一图形表示信息或第二图形表示信息;
    获得基于相应的第一图形表示信息或第二图形表示信息分别确定的组合几何图形;
    从所述相邻触摸点对的关键几何信息中分别提取关键轨迹点;
    获得基于各所述关键轨迹点连接形成的关键轨迹区域;
    将各所述组合几何图形与所述关键轨迹区域进行组合,形成所述相邻触摸点对相对所述任意不规则图形构成的第三移动轮廓图形。
  24. 根据权利要求23所述的方法,其中,所述分析所述待擦除笔迹中包括的各笔迹点,将各所述笔迹点与所述移动轮廓几何图形进行命中测试,确定落入所述移动轮廓几何图形中的目标待擦除笔迹,包括:
    拆解所述第三移动轮廓图形,获得所述关键轨迹区域及各所述组合几何图形;
    针对所述待擦除笔迹包括的每个笔迹点,如果组合几何图形仅为折线多边形,则将所述笔迹点与各所述折线多边形采用转角法进行转角命中测试;或者,如果组合几何图形包含折线多边形和关键圆形,则将笔迹点分别与各所述折线多边形及关键圆形采用距离法进行距离命中测试;
    在转角或者距离命中测试成功时将所述笔迹点添加至第三目标点集合;否则,将所述笔迹点与所述关键轨迹区域进行向量命中测试,并在向量命中测试成功时将所述笔迹点添加至第三目标点集合;
    将基于所述第三目标点集合中各笔迹点形成的笔迹确定为落入所述移动轮廓几何图形中的目标待擦除笔迹。
  25. 一种笔迹擦除装置,配置于交互平板,所述交互平板所配备触摸框的触摸响应精度达到设定精度范围,所述装置包括:
    显示模块,用于通过显示屏展示包含有待擦除笔迹的显示界面;
    触发模块,用于接收笔迹擦除指令,进入笔迹擦除模式,所述笔迹擦除指令通过用户的触发形成;
    获取模块,用于在触摸物触碰所述显示屏的表面并移动时,获得通过所述触摸框反馈的触摸点信息,所述触摸物由用户操控;
    擦除模块,用于通过对所获得触摸点信息以及所述待擦除笔迹的分析,采 用与所述触摸物相匹配的擦除几何形态对所述界面中的待擦除笔迹进行擦除。
  26. 一种交互平板,包括:
    触摸框,所具备的触摸响应精度,达到设定精度范围,用于通过包括的硬件电路响应触摸物的触摸操作;
    显示屏,与所述触摸框覆盖,构成触摸屏,用于进行交互内容的显示;
    一个或多个处理器;
    存储装置,用于存储一个或多个程序;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-24任一所述的方法。
  27. 一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如权利要求1-24任一项所述的方法。
PCT/CN2021/122843 2021-05-20 2021-10-09 笔迹擦除方法、装置、交互平板及存储介质 WO2022242013A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
KR1020237021725A KR20230109757A (ko) 2021-05-20 2021-10-09 필적 소거 방법, 장치, 인터랙티브 태블릿 및 저장매체
EP21940459.7A EP4343542A1 (en) 2021-05-20 2021-10-09 Handwriting erasing method and apparatus, interactive tablet, and storage medium
JP2023545828A JP2024504193A (ja) 2021-05-20 2021-10-09 筆跡消去方法、装置、インタラクティブタブレット、及び記憶媒体
US18/370,253 US20240004537A1 (en) 2021-05-20 2023-09-19 Method and device for erasing handwriting, interactive board and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110554083.9 2021-05-20
CN202110554083.9A CN115373772A (zh) 2021-05-20 2021-05-20 笔迹擦除方法、装置、交互平板及存储介质

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/370,253 Continuation US20240004537A1 (en) 2021-05-20 2023-09-19 Method and device for erasing handwriting, interactive board and storage medium

Publications (1)

Publication Number Publication Date
WO2022242013A1 true WO2022242013A1 (zh) 2022-11-24

Family

ID=84059032

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/122843 WO2022242013A1 (zh) 2021-05-20 2021-10-09 笔迹擦除方法、装置、交互平板及存储介质

Country Status (6)

Country Link
US (1) US20240004537A1 (zh)
EP (1) EP4343542A1 (zh)
JP (1) JP2024504193A (zh)
KR (1) KR20230109757A (zh)
CN (1) CN115373772A (zh)
WO (1) WO2022242013A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100181121A1 (en) * 2009-01-16 2010-07-22 Corel Corporation Virtual Hard Media Imaging
CN109597528A (zh) * 2019-01-10 2019-04-09 明基智能科技(上海)有限公司 触控系统
CN109643211A (zh) * 2016-08-19 2019-04-16 微软技术许可有限责任公司 可调整数字擦除器
CN209281365U (zh) * 2019-01-10 2019-08-20 明基智能科技(上海)有限公司 触控系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100181121A1 (en) * 2009-01-16 2010-07-22 Corel Corporation Virtual Hard Media Imaging
CN109643211A (zh) * 2016-08-19 2019-04-16 微软技术许可有限责任公司 可调整数字擦除器
CN109597528A (zh) * 2019-01-10 2019-04-09 明基智能科技(上海)有限公司 触控系统
CN209281365U (zh) * 2019-01-10 2019-08-20 明基智能科技(上海)有限公司 触控系统

Also Published As

Publication number Publication date
EP4343542A1 (en) 2024-03-27
CN115373772A (zh) 2022-11-22
JP2024504193A (ja) 2024-01-30
KR20230109757A (ko) 2023-07-20
US20240004537A1 (en) 2024-01-04

Similar Documents

Publication Publication Date Title
US9430093B2 (en) Monitoring interactions between two or more objects within an environment
US8860675B2 (en) Drawing aid system for multi-touch devices
US11511188B2 (en) Virtual scene recognition and interaction key position matching method for application and computing device
US7342574B1 (en) Method and apparatus for inputting information including coordinate data
CN104011629A (zh) 用于能够进行基于触摸的输入的用户界面的经增强的目标选择
KR20120009564A (ko) 3차원 마우스 포인터 생성방법 및 생성장치
KR20100063793A (ko) 홀로그래픽 사용자 인터페이스 통신을 위한 방법 및 장치
KR101735442B1 (ko) 표시장치에서 객체의 오리엔테이션을 조작하기 위한 장치 및 방법
CN103164022A (zh) 多指触摸方法和装置、便携式终端设备
US10444981B2 (en) Digital-marking-surface space and display management
JP6035971B2 (ja) 情報処理装置、プログラム及び画像処理システム
US10129335B2 (en) Method and system for dynamic group creation in a collaboration framework
CN104778008A (zh) 基于屏幕管控的虚拟书写系统
WO2021077539A1 (zh) 图形调整方法、装置、设备及存储介质
CN107797752A (zh) 书写笔迹的呈现方法及装置、交互智能平板及存储介质
WO2022242011A1 (zh) 书写笔迹的呈现方法、装置、交互平板及存储介质
WO2022242013A1 (zh) 笔迹擦除方法、装置、交互平板及存储介质
CN102004584A (zh) 有源笔定位显示方法及装置
CN103914174A (zh) 信息处理装置、信息处理方法、以及程序存储介质
WO2017117658A1 (en) Method and system to port multi device workspace data
US11809701B2 (en) Handwriting forming method and apparatus, and electronic device
WO2023065939A1 (zh) 一种触控响应方法、装置、交互平板及存储介质
US20240020893A1 (en) Handwriting Forming Method and Apparatus, and Electronic Device
US11256399B2 (en) Information processing apparatus and non-transitory computer readable medium
US20130278603A1 (en) Method, Electronic Device, And Computer Readable Medium For Distorting An Image On A Touch Screen

Legal Events

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

Ref document number: 21940459

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 20237021725

Country of ref document: KR

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 2023545828

Country of ref document: JP

WWE Wipo information: entry into national phase

Ref document number: 2021940459

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2021940459

Country of ref document: EP

Effective date: 20231220