[go: up one dir, main page]

CN110007838A - Processing method, device and equipment for erasing control - Google Patents

Processing method, device and equipment for erasing control Download PDF

Info

Publication number
CN110007838A
CN110007838A CN201910262723.1A CN201910262723A CN110007838A CN 110007838 A CN110007838 A CN 110007838A CN 201910262723 A CN201910262723 A CN 201910262723A CN 110007838 A CN110007838 A CN 110007838A
Authority
CN
China
Prior art keywords
control
angle
erasing
erasing control
motion track
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910262723.1A
Other languages
Chinese (zh)
Other versions
CN110007838B (en
Inventor
张继雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201910262723.1A priority Critical patent/CN110007838B/en
Publication of CN110007838A publication Critical patent/CN110007838A/en
Priority to PCT/CN2020/082851 priority patent/WO2020200255A1/en
Application granted granted Critical
Publication of CN110007838B publication Critical patent/CN110007838B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a method, a device and equipment for processing an erasing control. Wherein, the method comprises the following steps: detecting a moving track of the erasing control to move from a first position to a second position; obtaining the offset angle of the erasing control based on the moving track, wherein the offset angle is an included angle between the erasing control and the vertical direction; based on the offset angle, a bitmap of the erasure control is displayed at the second location. The invention solves the technical problems of fixed bitmap display direction and poor erasing effect of the erasing control in the prior art.

Description

擦除控件的处理方法、装置和设备Processing method, device and device for erasing controls

技术领域technical field

本发明涉及智能交互设备领域,具体而言,涉及一种擦除控件的处理方法、装置和设备。The present invention relates to the field of intelligent interactive devices, and in particular, to a processing method, device and device for erasing controls.

背景技术Background technique

在现有的方案中,在IWB白板软件中使用擦除控件(例如,橡皮擦)进行擦除,橡皮擦的移动是移动一张位图bitmap,bitmap是矩形的,橡皮擦的方向一般是固定的,例如,垂直于水平方向,在通过擦除控件对书写笔迹进行才时会显得比较生硬,物理效果较差。In the existing solution, the eraser control (for example, the eraser) is used to erase in the IWB whiteboard software. The movement of the eraser is to move a bitmap, the bitmap is rectangular, and the direction of the eraser is generally fixed. , for example, perpendicular to the horizontal direction, it will appear stiffer and less physically effective when writing handwriting through the eraser control.

针对现有技术中擦除控件的位图显示方向固定,擦除效果较差的问题,目前尚未提出有效的解决方案。Aiming at the problem that the bitmap display direction of the erasing control in the prior art is fixed and the erasing effect is poor, no effective solution has been proposed yet.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供了一种擦除控件的处理方法、装置和设备,以至少解决现有技术中擦除控件的位图显示方向固定,擦除效果较差的技术问题。Embodiments of the present invention provide a processing method, apparatus and device for erasing controls, so as to at least solve the technical problem in the prior art that the bitmap display direction of the erasing controls is fixed and the erasing effect is poor.

根据本发明实施例的一个方面,提供了一种擦除控件的处理方法,包括:检测擦除控件从第一位置移动到第二位置的移动轨迹;基于移动轨迹,得到擦除控件的偏移角度,其中,偏移角度为擦除控件与垂直方向的夹角;基于偏移角度,在第二位置显示擦除控件的位图。According to an aspect of the embodiments of the present invention, a method for processing an erasing control is provided, including: detecting a movement trajectory of the erasing control from a first position to a second position; and obtaining an offset of the erasing control based on the movement trajectory angle, where the offset angle is the included angle between the eraser control and the vertical direction; based on the offset angle, the bitmap of the eraser control is displayed at the second position.

进一步地,基于移动轨迹,得到擦除控件的偏移角度,包括:基于移动轨迹,得到移动轨迹的运动角度,其中,运动角度为移动轨迹与水平方向的夹角;基于运动角度,得到偏移角度。Further, obtaining the offset angle of the erasing control based on the movement track, including: obtaining the movement angle of the movement track based on the movement track, wherein the movement angle is the angle between the movement track and the horizontal direction; based on the movement angle, obtaining the offset angle.

进一步地,基于移动轨迹,得到移动轨迹的运动角度,包括:获取移动轨迹中满足预设条件的目标像素点;基于目标像素点的坐标值,得到运动角度。Further, obtaining the movement angle of the movement track based on the movement track includes: obtaining a target pixel point in the movement track that meets a preset condition; and obtaining the movement angle based on the coordinate value of the target pixel point.

进一步地,获取移动轨迹中满足预设条件的目标像素点,包括:获取检测到移动轨迹中每个像素点的时间;基于每个像素点的时间,获取最晚时间对应的两个像素点,得到目标像素点。Further, obtaining the target pixel points in the moving track that meet the preset conditions includes: obtaining the time when each pixel point in the moving track is detected; based on the time of each pixel point, obtaining two pixel points corresponding to the latest time, Get the target pixel.

进一步地,基于目标像素点的坐标值,得到运动角度,包括:基于两个像素点的坐标值,确定直线;获取直线的斜率,得到运动角度。Further, obtaining the movement angle based on the coordinate values of the target pixel points includes: determining a straight line based on the coordinate values of the two pixel points; obtaining the slope of the straight line to obtain the movement angle.

进一步地,在基于偏移角度,在第二位置显示擦除控件的位图之前,上述方法还包括:将偏移角度与预设阈值进行比较;在偏移角度小于或等于预设阈值的情况下,基于偏移角度,在第二位置显示擦除控件的位图。Further, before displaying the bitmap of the erase control at the second position based on the offset angle, the method further includes: comparing the offset angle with a preset threshold; when the offset angle is less than or equal to the preset threshold Below, based on the offset angle, displays a bitmap of the wipe control in the second position.

进一步地,基于偏移角度,在第二位置显示擦除控件的位图,包括:基于擦除控件的偏移角度,控制擦除控件旋转;在第二位置显示旋转后的擦除控件的位图。Further, based on the offset angle, displaying the bitmap of the erasing control at the second position, comprising: controlling the rotation of the erasing control based on the offset angle of the erasing control; displaying the rotated bitmap of the erasing control at the second position picture.

根据本发明实施例的另一方面,还提供了一种擦除控件的处理方法,包括:在第一位置显示擦除控件的位图;在检测到擦除控件的移动轨迹之后,基于擦除控件的偏移角度,在第二位置显示擦除控件的位图,其中,移动轨迹从第一位置移动至第二位置,偏移角度是基于移动轨迹得到的,偏移角度为擦除控件与垂直方向的夹角。According to another aspect of the embodiments of the present invention, a method for processing an erasing control is also provided, including: displaying a bitmap of the erasing control at a first position; The offset angle of the control, the bitmap of the eraser control is displayed in the second position, where the movement track moves from the first position to the second position, the offset angle is obtained based on the movement track, and the offset angle is the difference between the eraser control and the second position. angle in the vertical direction.

根据本发明实施例的另一方面,还提供了一种擦除控件的处理装置,包括:检测模块,用于检测擦除控件从第一位置移动到第二位置的移动轨迹;处理模块,用于基于移动轨迹,得到擦除控件的偏移角度,其中,偏移角度为擦除控件与垂直方向的夹角;显示模块,用于基于偏移角度,在第二位置显示擦除控件的位图。According to another aspect of the embodiments of the present invention, there is also provided a processing device for erasing a control, including: a detection module for detecting a movement trajectory of the erasing control from a first position to a second position; a processing module for using Based on the movement track, the offset angle of the erasing control is obtained, wherein the offset angle is the angle between the erasing control and the vertical direction; the display module is used to display the position of the erasing control at the second position based on the offset angle. picture.

根据本发明实施例的另一方面,还提供了一种擦除控件的处理装置,包括:第一显示模块,用于在第一位置显示擦除控件的位图;第二显示模块,用于在检测到擦除控件的移动轨迹之后,基于擦除控件的偏移角度,在第二位置显示擦除控件的位图,其中,移动轨迹从第一位置移动至第二位置,偏移角度是基于移动轨迹得到的,偏移角度为擦除控件与垂直方向的夹角。According to another aspect of the embodiments of the present invention, there is also provided a processing device for erasing a control, including: a first display module for displaying a bitmap of the erasing control at a first position; a second display module for After detecting the movement track of the eraser control, a bitmap of the eraser control is displayed at the second position based on the offset angle of the eraser control, wherein the movement track moves from the first position to the second position, and the offset angle is Based on the movement track, the offset angle is the angle between the erase control and the vertical direction.

根据本发明实施例的另一方面,还提供了一种擦除控件的处理设备,包括:检测装置,用于检测擦除控件从第一位置移动到第二位置的移动轨迹;处理器,与检测装置连接,用于基于移动轨迹,得到擦除控件的偏移角度,并基于偏移角度,控制擦除控件的位图在第二位置显示,其中,偏移角度为擦除控件与垂直方向的夹角。According to another aspect of the embodiments of the present invention, there is also provided a processing device for erasing a control, including: a detection device for detecting a movement trajectory of the erasing control from a first position to a second position; a processor, with The detection device is connected to obtain the offset angle of the erasing control based on the movement track, and based on the offset angle, the bitmap for controlling the erasing control is displayed in the second position, wherein the offset angle is the erasing control and the vertical direction angle.

根据本发明实施例的另一方面,还提供了一种擦除控件的处理设备,包括:显示器,用于在第一位置显示擦除控件的位图;检测装置,用于检测擦除控件的移动轨迹,其中,移动轨迹从第一位置移动至第二位置;处理器,与检测装置和显示器连接,用于在检测到擦除控件的移动轨迹之后,基于擦除控件的偏移角度,控制显示器在第二位置显示擦除控件的位图,其中,偏移角度是基于移动轨迹得到的,偏移角度为擦除控件与垂直方向的夹角。According to another aspect of the embodiments of the present invention, there is also provided a processing device for erasing a control, including: a display for displaying a bitmap of the erasing control at a first position; a detection device for detecting the a movement track, wherein the movement track moves from the first position to the second position; the processor, connected with the detection device and the display, is used for, after detecting the movement track of the erasing control, based on the offset angle of the erasing control, control The display displays the bitmap of the erasing control at the second position, wherein the offset angle is obtained based on the movement track, and the offset angle is the included angle between the erasing control and the vertical direction.

根据本发明实施例的另一方面,还提供了一种存储介质,存储介质包括存储的程序,其中,在程序运行时控制存储介质所在设备执行上述的擦除控件的处理方法。According to another aspect of the embodiments of the present invention, a storage medium is also provided, the storage medium includes a stored program, wherein when the program is run, the device where the storage medium is located is controlled to execute the above-mentioned processing method of the erasing control.

根据本发明实施例的另一方面,还提供了一种处理器,处理器用于运行程序,其中,程序运行时执行上述的擦除控件的处理方法。According to another aspect of the embodiments of the present invention, a processor is also provided, and the processor is used for running a program, wherein the above-mentioned processing method for erasing a control is executed when the program is running.

在本发明实施例中,在检测到擦除控件从第一位置移动到第二位置的移动轨迹之后,可以基于移动轨迹得到擦除控件的偏移角度,进一步基于偏移角度在第二位置显示擦除控件的位图,从而可以实现根据擦除控件的移动轨迹控制擦除控件的方向。与现有技术相比,擦除控件的方向不再是固定方向,在不同触摸的同时进行动态计算,使得擦除控件的方向始终垂直于移动轨迹的运动方向,达到了获得更逼真的物理效果,提升用户体验感,增加软件趣味性的技术效果,进而解决了现有技术中擦除控件的位图显示方向固定,擦除效果较差的技术问题。In this embodiment of the present invention, after detecting the movement track of the eraser control moving from the first position to the second position, the offset angle of the eraser control can be obtained based on the movement track, and further displayed at the second position based on the offset angle The bitmap of the eraser control, so that the direction of the eraser control can be controlled according to the movement track of the eraser control. Compared with the prior art, the direction of the erasing control is no longer a fixed direction, and dynamic calculations are performed at the same time as different touches, so that the direction of the erasing control is always perpendicular to the movement direction of the moving track, achieving a more realistic physical effect. , the user experience is improved, and the technical effect of software interestingness is increased, thereby solving the technical problem that the bitmap display direction of the erasing control in the prior art is fixed and the erasing effect is poor.

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the attached image:

图1是根据本发明实施例的一种擦除控件的处理方法的流程图;1 is a flowchart of a method for processing an erase control according to an embodiment of the present invention;

图2是根据本发明实施例的一种可选的根据目标像素点确定运动角度和偏移角度的示意图;2 is a schematic diagram of an optional determination of a movement angle and an offset angle according to a target pixel point according to an embodiment of the present invention;

图3是根据本发明实施例的一种可选的擦除控件的处理方法的流程图;3 is a flowchart of an optional processing method for erasing a control according to an embodiment of the present invention;

图4是根据本发明实施例的另一种擦除控件的处理方法的流程图;4 is a flowchart of another method for processing an erase control according to an embodiment of the present invention;

图5是根据本发明实施例的一种擦除控件的处理装置的结构示意图;5 is a schematic structural diagram of a processing device for erasing a control according to an embodiment of the present invention;

图6是根据本发明实施例的另一种擦除控件的处理装置的结构示意图;6 is a schematic structural diagram of another processing apparatus for erasing a control according to an embodiment of the present invention;

图7是根据本发明实施例的一种擦除控件的处理设备的结构示意图;以及FIG. 7 is a schematic structural diagram of a processing device for erasing a control according to an embodiment of the present invention; and

图8是根据本发明实施例的另一种擦除控件的处理设备的结构示意图。FIG. 8 is a schematic structural diagram of another processing device for erasing a control according to an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to make those skilled in the art better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only Embodiments are part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.

实施例1Example 1

根据本发明实施例,提供了一种擦除控件的处理方法的实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to an embodiment of the present invention, an embodiment of a processing method for erasing a control is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings may be executed in a computer system such as a set of computer-executable instructions, Also, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that herein.

本实施例提供的书擦除控件的处理方法可以由擦除控件的处理设备执行,该擦除控件的处理设备可以通过软件和/或硬件的方式实现,该擦除控件的处理设备可以是两个或多个物理实体构成,也可以是一个物理实体构成。该擦除控件的处理设备可以是电脑,手机,平板,投影仪或智能交互平板等。在实施例中,以智能交互平板为擦除控件的处理设备为例进行描述,其中,智能交互平板可以是通过触控技术对显示在显示平板上的内容进行操控和实现人机交互操作的一体化设备,其集成了投影机、电子白板、幕布、音响、电视机以及视频会议终端等一种或多种功能。The processing method for the book erasing control provided in this embodiment may be executed by a processing device for erasing the control, and the processing device for erasing the control may be implemented by software and/or hardware, and the processing device for the erasing control may be two It is composed of one or more physical entities, or it can be composed of one physical entity. The processing device for the erasing control may be a computer, a mobile phone, a tablet, a projector or an intelligent interactive tablet. In the embodiment, the description is given by taking an intelligent interactive tablet as an example of a processing device for erasing controls, wherein the intelligent interactive tablet may be a combination of manipulating the content displayed on the display tablet and realizing human-computer interaction through touch technology. It integrates one or more functions such as projector, electronic whiteboard, curtain, audio, TV and video conference terminal.

在实施例中,智能交互平板与至少一个外部装置建立数据连接。其中,外部装置包括但不限于:手机、笔记本电脑、USB闪存盘、平板电脑及台式电脑等。外部装置与智能交互平板的数据连接的通信方式实施例中不作限定,可以通过USB连接、互联网、局域网、蓝牙、Wi-Fi或紫峰协议(ZigBee)等通信方式。In an embodiment, the smart interactive tablet establishes a data connection with at least one external device. The external devices include, but are not limited to, mobile phones, notebook computers, USB flash drives, tablet computers, and desktop computers. The communication mode of the data connection between the external device and the intelligent interactive tablet is not limited in the embodiment, and may be a communication mode such as a USB connection, the Internet, a local area network, Bluetooth, Wi-Fi, or ZigBee.

进一步的,智能交互平板与至少一个外部装置发生数据交互时,向智能交互平板发送投屏数据以使智能交互平板对投屏数据的投屏内容进行显示的外部装置作为投屏客户端,一般而言,投屏客户端可以有一个或者多个,视具体的应用场景来设置,实施例不做限定。Further, when the smart interactive tablet interacts with at least one external device, the external device that sends screen projection data to the smart interactive tablet so that the smart interactive tablet can display the projection content of the screen projection data is used as a screen projection client. In other words, there may be one or more screen projection clients, which are set according to specific application scenarios, and the embodiment is not limited.

可选的,投屏客户端和/或智能交互平板中安装有投屏应用软件,该投屏应用软件可以预先安装在上述投屏客户端和/或智能交互平板中,也可以是在投屏客户端和/或智能交互平板启动投屏应用时,从第三方设备或服务器进行下载并安装使用。其中,第三方设备在实施例中不作限定。具体的,投屏应用软件用于获取投屏客户端显示的内容,将其作为投屏数据,并指示智能交互平板显示该内容。实施例中以投屏客户端和智能交互平板中同时安装有投屏应用软件为例进行说明。其中,投屏客户端的投屏应用软件用于获取投屏数据,并将投屏数据直接或间接发送至智能交互平板。如果是间接发送的话,投屏客户端可以通过中转设备发送至智能交互平板,该中转设备可以是无线传屏装置,也可以是具有数据中转/处理功能的其它设备。智能交互平板的投屏应用软件用于接收投屏数据,并将投屏数据转换成相应的内容,便于智能交互平板进行显示。需要说明的是,投屏客户端的显示屏与智能交互平板的显示屏的分辨率不同,而投屏数据是基于投屏客户端的分辨率获取的,因此,为了在智能交互平板的显示屏中显示投屏数据,投屏应用软件需要根据投屏客户端的显示屏和智能交互平板的显示屏的分辨率确定屏幕映射关系,进而根据屏幕映射关系对投屏数据进行转换以得到投屏内容。需要说明的是,在实施例中,投屏内容和投屏数据的显示内容实质相同,仅是分辨率不同。Optionally, the screen-casting client and/or the smart interactive tablet are installed with screen-casting application software, and the screen-casting application software can be pre-installed in the above-mentioned screen-casting client and/or the smart interactive tablet, or it can be used for screencasting. When the client and/or smart interactive tablet start the screen-casting application, download and install it from a third-party device or server. The third-party device is not limited in the embodiment. Specifically, the screen-casting application software is used to acquire the content displayed by the screen-casting client, use it as screen-casting data, and instruct the intelligent interactive tablet to display the content. In the embodiment, the screen-casting client and the intelligent interactive tablet are simultaneously installed with screen-casting application software as an example for description. Among them, the screen-casting application software of the screen-casting client is used to obtain the screen-casting data, and send the screen-casting data directly or indirectly to the intelligent interactive tablet. If it is sent indirectly, the screencasting client can send it to the smart interactive tablet through a transfer device, which can be a wireless screen sharing device or other devices with data transfer/processing functions. The screen projection application software of the intelligent interactive tablet is used to receive the projection data, and convert the projection data into corresponding content, which is convenient for the intelligent interactive tablet to display. It should be noted that the resolution of the display screen of the screencasting client is different from that of the smart interactive tablet, and the screencasting data is obtained based on the resolution of the screencasting client. Therefore, in order to display on the display of the smart interactive tablet For screen projection data, the projection application software needs to determine the screen mapping relationship according to the resolution of the display screen of the projection client and the display screen of the smart interactive tablet, and then convert the projection data according to the screen mapping relationship to obtain the projection content. It should be noted that, in the embodiment, the screen projection content and the display content of the screen projection data are substantially the same, but the resolutions are different.

进一步的,投屏数据为图片格式,其可以是对投屏客户端的显示内容截屏得到的截屏数据,或者是演示文稿(Microsoft Office PowerPoint,PPT)。Further, the screen projection data is in a picture format, which may be screenshot data obtained by taking a screenshot of the display content of the screen projection client, or a presentation (Microsoft Office PowerPoint, PPT).

实施例中以投屏客户端为笔记本电脑、投屏数据为放映状态的PPT并且通过笔记本电脑与智能交互平板间的交互为例,来对本发明进行示例性描述。In the embodiment, the present invention is exemplarily described by taking the screen projection client as a notebook computer, the screen projection data as a PPT in a projection state, and the interaction between the notebook computer and the intelligent interactive tablet as an example.

图1是根据本发明实施例的一种擦除控件的处理方法的流程图,如图1所示,该方法包括如下步骤:Fig. 1 is a flow chart of a processing method for erasing a control according to an embodiment of the present invention. As shown in Fig. 1 , the method includes the following steps:

步骤S102,检测擦除控件从第一位置移动到第二位置的移动轨迹。Step S102, detecting the movement track of the erase control moving from the first position to the second position.

具体地,上述的擦除控件可以是用于对触摸屏幕上显示的书写笔迹进行擦除的控件,例如,本实施例中,上述的擦除控件可以是橡皮擦控件。Specifically, the above-mentioned erasing control may be a control for erasing the handwriting displayed on the touch screen. For example, in this embodiment, the above-mentioned erasing control may be an eraser control.

在一种可选的方案中,当用户需要对触摸屏幕上显示的书写笔迹进行擦除时,用户手掌可以在触摸屏幕上移动,产生相应的触摸数据,手掌从一个位置移动到另一个位置,那么橡皮擦也会从一个位置(即上述的第一位置)移动到另一个位置(即上述的第二位置),此处的位置可以是手掌产生触摸数据的坐标点,可以作为橡皮擦的中心点,因此,可以确定用户手掌的移动轨迹也即橡皮擦的移动轨迹,在手掌移动的过程中,通过对手掌产生触摸数据的检测,可以实现对橡皮擦的移动轨迹的检测。In an optional solution, when the user needs to erase the handwriting displayed on the touch screen, the user's palm can move on the touch screen to generate corresponding touch data, and the palm moves from one position to another. Then the eraser will also move from one position (ie the above-mentioned first position) to another position (ie the above-mentioned second position), where the position can be the coordinate point where the palm generates touch data, which can be used as the center of the eraser Therefore, the movement trajectory of the user's palm, that is, the movement trajectory of the eraser can be determined. During the movement of the palm, the movement trajectory of the eraser can be detected by detecting the touch data generated by the palm.

步骤S104,基于移动轨迹,得到擦除控件的偏移角度,其中,偏移角度为擦除控件与垂直方向的夹角。Step S104, based on the movement track, obtain the offset angle of the erasing control, wherein the offset angle is the included angle between the erasing control and the vertical direction.

具体地,橡皮擦的方向可以通过橡皮擦的垂直法线与垂直方向的夹角确定,橡皮擦的垂直法线与垂直方向的夹角为0°,则可以确定橡皮擦的方向是垂直于水平方向;橡皮擦的垂直法线与垂直方向的夹角为90°,则可以确定橡皮擦的方向是水平方向。Specifically, the direction of the eraser can be determined by the angle between the vertical normal of the eraser and the vertical direction, and the angle between the vertical normal of the eraser and the vertical direction is 0°, then it can be determined that the direction of the eraser is perpendicular to the horizontal direction; the angle between the vertical normal of the eraser and the vertical direction is 90°, so it can be determined that the direction of the eraser is the horizontal direction.

在一种可选的方案中,为了获得更加逼真的物理效果,在手掌移动的过程中,可以实时根据用户手掌的移动轨迹,调整橡皮擦的方向,使得橡皮擦的方向垂直于橡皮擦的移动轨迹。In an optional solution, in order to obtain a more realistic physical effect, during the movement of the palm, the direction of the eraser can be adjusted in real time according to the movement trajectory of the user's palm, so that the direction of the eraser is perpendicular to the movement of the eraser trajectory.

可选地,可以根据用户手掌移动过程中产生的移动轨迹的运动方向,确定橡皮擦的偏移角度,从而确定橡皮擦的方向,具体包括步骤S1042至步骤S1044:Optionally, the offset angle of the eraser can be determined according to the movement direction of the movement trajectory generated during the movement of the user's palm, thereby determining the direction of the eraser, which specifically includes steps S1042 to S1044:

步骤S1042,基于移动轨迹,得到移动轨迹的运动角度,其中,运动角度为移动轨迹与水平方向的夹角。Step S1042, based on the movement track, obtain the movement angle of the movement track, wherein the movement angle is the angle between the movement track and the horizontal direction.

在一种可选的方案中,用户手掌移动过程中,会产生多个触摸数据,通过对多个触摸数据进行统计处理,可以确定移动轨迹的运动角度,从而确定移动轨迹的运动方向。具体可以通过如下步骤S110至步骤S112实现:In an optional solution, during the movement of the user's palm, multiple touch data will be generated, and by performing statistical processing on the multiple touch data, the movement angle of the movement track can be determined, thereby determining the movement direction of the movement track. Specifically, it can be implemented through the following steps S110 to S112:

步骤S110,获取移动轨迹中满足预设条件的目标像素点。Step S110 , acquiring target pixels in the movement track that satisfy a preset condition.

可选地,在智能交互平板进行触摸擦除的过程中,白板软件系统会定期的返回触摸事件Event给到应用程序,为了能够准确地确定移动轨迹的运动方向,可以通过如下步骤S1102至步骤S1104,得到目标像素点:Optionally, in the process of touch erasing on the intelligent interactive tablet, the whiteboard software system will periodically return the touch event Event to the application. In order to accurately determine the movement direction of the movement track, the following steps S1102 to S1104 can be used. , get the target pixel:

步骤S1102,获取检测到移动轨迹中每个像素点的时间。Step S1102, acquiring the time when each pixel in the movement track is detected.

步骤S1104,基于每个像素点的时间,获取最晚时间对应的两个像素点,得到目标像素点。Step S1104, based on the time of each pixel point, acquire two pixel points corresponding to the latest time to obtain the target pixel point.

在一种可选的方案中,在获取到一系列Event中,可以选取最后的两个触摸点E1和E2作为目标像素点,并建立X、Y坐标系,其中,Y轴坐标向下,如图2所示,E1的坐标值为(X1,Y1)、E2的坐标值为(X2,Y2)。In an optional solution, after obtaining a series of Events, the last two touch points E1 and E2 can be selected as the target pixel points, and an X and Y coordinate system can be established, wherein the Y-axis coordinate is downward, such as As shown in FIG. 2 , the coordinate value of E1 is (X1, Y1), and the coordinate value of E2 is (X2, Y2).

步骤S112,基于目标像素点的坐标值,得到运动角度。In step S112, the movement angle is obtained based on the coordinate value of the target pixel point.

可选地,可以利用几何学原理,计算出用户手掌的移动轨迹的运动角度。具体步骤包括步骤S1122至步骤S1124:Optionally, the movement angle of the movement trajectory of the user's palm can be calculated by using the geometrical principle. The specific steps include steps S1122 to S1124:

步骤S1122,基于两个像素点的坐标值,确定直线。In step S1122, a straight line is determined based on the coordinate values of the two pixel points.

步骤S1124,获取直线的斜率,得到运动角度。In step S1124, the slope of the straight line is obtained to obtain the movement angle.

在一种可选的方案中,如图2所示,在获取到E1的坐标值为(X1,Y1)、E2的坐标值为(X2,Y2)之后,可以基于两个坐标值确定线段E1E2,也即,确定两个像素点E1和E2所在的直线,进一步通过计算该直线的斜率,从而得到线段E1E2与X轴的夹角∠A,即得到上述的运动角度。In an optional solution, as shown in FIG. 2 , after obtaining the coordinate value of E1 (X1, Y1) and the coordinate value of E2 (X2, Y2), the line segment E1E2 can be determined based on the two coordinate values , that is, determine the straight line where the two pixel points E1 and E2 are located, and further calculate the slope of the straight line to obtain the angle ∠A between the line segment E1E2 and the X-axis, that is, the above-mentioned movement angle.

步骤S1044,基于运动角度,得到偏移角度。Step S1044, based on the motion angle, obtain the offset angle.

在一种可选的方案中,如图2所示,橡皮擦的方向应该垂直于线段E1E2,利用计算学原理,可以确定橡皮擦的偏移角度∠B(图2虚线夹角)应该等于∠A。In an optional solution, as shown in Figure 2, the direction of the eraser should be perpendicular to the line segment E1E2. Using the principle of calculation, it can be determined that the offset angle of the eraser ∠B (the angle between the dotted lines in Figure 2) should be equal to ∠ A.

步骤S106,将偏移角度与预设阈值进行比较。Step S106, compare the offset angle with a preset threshold.

具体地,上述的预设阈值可以是预先定义的阈值K,以防止触摸数据不规律与较大波动而产生的橡皮擦抖动。Specifically, the above-mentioned preset threshold may be a predefined threshold K, so as to prevent the eraser from shaking due to irregularities and large fluctuations in the touch data.

步骤S108,在偏移角度小于或等于预设阈值的情况下,基于偏移角度,在第二位置显示擦除控件的位图。Step S108 , in the case that the offset angle is less than or equal to the preset threshold, based on the offset angle, display the bitmap of the erase control at the second position.

在一种可选的方案中,在计算出橡皮擦的偏移角度∠B后,可以通过预先定义的阈值K判断偏移角度是否需要过滤,如果偏移角度偏差较大,则可以确定需要对偏移角度进行过滤,无需更改橡皮擦的方向,继续检测移动轨迹。In an optional solution, after calculating the offset angle ∠B of the eraser, it can be determined whether the offset angle needs to be filtered through a predefined threshold K. If the offset angle deviation is large, it can be determined that the offset angle needs to be filtered. The offset angle is filtered, without changing the direction of the eraser, continue to detect the movement trajectory.

可选地,橡皮擦的绘制过程具体包括步骤S1082至步骤S1084:Optionally, the drawing process of the eraser specifically includes steps S1082 to S1084:

步骤S1082,基于擦除控件的偏移角度,控制擦除控件旋转。Step S1082, controlling the rotation of the erasing control based on the offset angle of the erasing control.

步骤S1084,在第二位置显示旋转后的擦除控件的位图。Step S1084, displaying the rotated bitmap of the eraser control at the second position.

在一种可选的方案中,在计算出橡皮擦的偏移角度∠B后,可以通过预先定义的阈值K对偏移角度进行适当过滤以减少橡皮擦抖动。经过过滤后的偏移角度可以直接应用于橡皮擦的显示。通过系统的Canvas的绘制API(应用程序编程接口,ApplicationProgramming Interface),可以在橡皮擦先旋转角度∠B后再进行绘制,从而可以绘制出橡皮擦的最终效果。In an optional solution, after the offset angle ∠B of the eraser is calculated, the offset angle can be appropriately filtered through a predefined threshold K to reduce the jitter of the eraser. The filtered offset angle can be applied directly to the eraser display. Through the system's Canvas drawing API (Application Programming Interface, Application Programming Interface), the eraser can be rotated by an angle ∠B before drawing, so that the final effect of the eraser can be drawn.

在本发明上述实施例中,在检测到擦除控件从第一位置移动到第二位置的移动轨迹之后,可以基于移动轨迹得到擦除控件的偏移角度,进一步基于偏移角度在第二位置显示擦除控件的位图,从而可以实现根据擦除控件的移动轨迹控制擦除控件的方向。与现有技术相比,擦除控件的方向不再是固定方向,在不同触摸的同时进行动态计算,使得擦除控件的方向始终垂直于移动轨迹的运动方向,达到了获得更逼真的物理效果,提升用户体验感,增加软件趣味性的技术效果,进而解决了现有技术中擦除控件的位图显示方向固定,擦除效果较差的技术问题。In the above-mentioned embodiment of the present invention, after detecting the movement trajectory of the erasing control from the first position to the second position, the offset angle of the erasing control can be obtained based on the movement trajectory, and further based on the offset angle at the second position Display the bitmap of the eraser control, so that the direction of the eraser control can be controlled according to the movement track of the eraser control. Compared with the prior art, the direction of the erasing control is no longer a fixed direction, and dynamic calculations are performed at the same time as different touches, so that the direction of the erasing control is always perpendicular to the movement direction of the moving track, achieving a more realistic physical effect. , the user experience is improved, and the technical effect of software interestingness is increased, thereby solving the technical problem that the bitmap display direction of the erasing control in the prior art is fixed and the erasing effect is poor.

例如,以橡皮擦为例对本发明一种优选的实施例进行说明,图3是根据本发明实施例的一种可选的擦除控件的处理方法的流程图,如图3所示:For example, taking an eraser as an example to describe a preferred embodiment of the present invention, FIG. 3 is a flowchart of an optional processing method for erasing a control according to an embodiment of the present invention, as shown in FIG. 3 :

步骤S31,获取触摸点数据。Step S31, acquiring touch point data.

可选地,在智能交互平板的白板软件中调出橡皮擦功能,并进行触摸擦除,此时系统会定期的返回触摸事件Event给到应用程序。Optionally, call up the eraser function in the whiteboard software of the smart interactive tablet, and perform touch erasing, at this time, the system will periodically return the touch event Event to the application.

步骤S32,根据触摸点数据计算运动角度。Step S32, calculating the movement angle according to the touch point data.

可选地,在获取到的一系列Event中,可以取出最后的两个触摸点E1、E2,并建立X、Y坐标系(Y轴坐标向下)。通过E1(X1,Y1)、E2(X2,Y2),可以计算出线段E1E2与X轴的夹角∠A。Optionally, in the acquired series of Events, the last two touch points E1 and E2 may be taken out, and an X, Y coordinate system (Y-axis coordinate downward) may be established. Through E1(X1,Y1), E2(X2,Y2), the angle ∠A between the line segment E1E2 and the X axis can be calculated.

步骤S33,计算橡皮擦偏移角度。Step S33, calculating the offset angle of the eraser.

可选地,橡皮擦的方向应该垂直于线段E1E2,根据几何学,可以换算出此时橡皮擦的偏移角度∠B应该等于∠A。Optionally, the direction of the eraser should be perpendicular to the line segment E1E2. According to geometry, it can be converted that the offset angle ∠B of the eraser should be equal to ∠A.

步骤S34,判断是否过滤角度数据。Step S34, it is judged whether to filter the angle data.

可选地,计算出橡皮擦的偏移角度∠B后,通过不断重复上述步骤可以得到一系列的橡皮擦偏移角度。为了防止触摸数据不规律与较大波动而产生的橡皮擦抖动,可以对角度数据进行适当过滤以减少橡皮擦抖动。如果确定需要过滤角度数据,则进入步骤S36;如果确定不需要过滤角度数据,则进入步骤S35。Optionally, after calculating the offset angle ∠B of the eraser, a series of eraser offset angles can be obtained by repeating the above steps. In order to prevent the eraser jitter caused by the irregularity and large fluctuation of the touch data, the angle data can be properly filtered to reduce the eraser jitter. If it is determined that the angle data needs to be filtered, go to step S36; if it is determined that the angle data does not need to be filtered, go to step S35.

步骤S35,根据偏移角度绘制橡皮擦。Step S35, drawing an eraser according to the offset angle.

可选地,可以通过系统的Canvas的绘制API,我们把橡皮擦先旋转角度∠B后再进行绘制,就可以得出橡皮擦的最终效果。Optionally, through the Canvas drawing API of the system, we rotate the eraser by an angle ∠B before drawing, and then we can get the final effect of the eraser.

步骤S36,判断触摸是否结束。In step S36, it is determined whether the touch ends.

可选地,如果确定触摸未结束,则返回步骤S31,在不断的触摸的同时进行动态计算,则可以使得最终橡皮擦方向始终垂直于笔迹运动方向,实现逼真的物理效果。如果确定触摸已结束,则结束处理流程。Optionally, if it is determined that the touch has not ended, return to step S31, and perform dynamic calculation while continuously touching, so that the final eraser direction is always perpendicular to the handwriting movement direction to achieve realistic physical effects. If it is determined that the touch has ended, the processing flow ends.

通过本发明上述实施例提供的方案,可以通过采集用户的触摸轨迹数据,根据最新的点数据计算出当前轨迹的真实运动方向,根据运动方向计算出橡皮擦的方向并绘制显示。通过该方案,能让橡皮擦获得更逼真的物理效果,提升用户体验,增加趣味性。With the solution provided by the above embodiments of the present invention, the user's touch trajectory data can be collected, the real movement direction of the current trajectory can be calculated according to the latest point data, and the eraser direction can be calculated and displayed according to the movement direction. Through this solution, the eraser can obtain a more realistic physical effect, improve the user experience, and increase the fun.

实施例2Example 2

根据本发明实施例,还提供了一种擦除控件的处理方法的实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to an embodiment of the present invention, an embodiment of a processing method for erasing a control is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings may be executed in a computer system such as a set of computer-executable instructions and, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that herein.

本实施例提供的书擦除控件的处理方法可以由擦除控件的处理设备执行,该擦除控件的处理设备可以通过软件和/或硬件的方式实现,该擦除控件的处理设备可以是两个或多个物理实体构成,也可以是一个物理实体构成。该擦除控件的处理设备可以是电脑,手机,平板,投影仪或智能交互平板等。在实施例中,以智能交互平板为擦除控件的处理设备为例进行描述。实施例中以投屏客户端为笔记本电脑、投屏数据为放映状态的PPT并且通过笔记本电脑与智能交互平板间的交互为例,来对本发明进行示例性描述。The processing method for the book erasing control provided in this embodiment may be executed by a processing device for erasing the control, and the processing device for erasing the control may be implemented by software and/or hardware, and the processing device for the erasing control may be two It is composed of one or more physical entities, or it can be composed of one physical entity. The processing device for the erasing control may be a computer, a mobile phone, a tablet, a projector or an intelligent interactive tablet. In the embodiment, the description is given by taking the intelligent interactive tablet as an example of a processing device for erasing controls. In the embodiment, the present invention is exemplarily described by taking the screen projection client as a notebook computer, the screen projection data as a PPT in a projection state, and the interaction between the notebook computer and the intelligent interactive tablet as an example.

图4是根据本发明实施例的另一种擦除控件的处理方法的流程图,如图4所示,该方法包括如下步骤:FIG. 4 is a flow chart of another processing method for erasing a control according to an embodiment of the present invention. As shown in FIG. 4 , the method includes the following steps:

步骤S402,在第一位置显示擦除控件的位图。Step S402, displaying the bitmap of the erase control at the first position.

具体地,上述的擦除控件可以是用于对触摸屏幕上显示的书写笔迹进行擦除的控件,例如,本实施例中,上述的擦除控件可以是橡皮擦控件。Specifically, the above-mentioned erasing control may be a control for erasing the handwriting displayed on the touch screen. For example, in this embodiment, the above-mentioned erasing control may be an eraser control.

在一种可选的方案中,当用户需要对触摸屏幕上显示的书写笔迹进行擦除时,用户手掌可以在触摸屏幕上移动,产生相应的触摸数据,手掌从一个位置移动到另一个位置,那么橡皮擦也会从一个位置(即上述的第一位置)移动到另一个位置(即上述的第二位置),此处的位置可以是手掌产生触摸数据的坐标点,可以作为橡皮擦的中心点,因此,可以确定用户手掌的移动轨迹也即橡皮擦的移动轨迹,在手掌移动的过程中,通过对手掌产生触摸数据的检测,可以实现对橡皮擦的移动轨迹的检测。In an optional solution, when the user needs to erase the handwriting displayed on the touch screen, the user's palm can move on the touch screen to generate corresponding touch data, and the palm moves from one position to another. Then the eraser will also move from one position (ie the above-mentioned first position) to another position (ie the above-mentioned second position), where the position can be the coordinate point where the palm generates touch data, which can be used as the center of the eraser Therefore, the movement trajectory of the user's palm, that is, the movement trajectory of the eraser can be determined. During the movement of the palm, the movement trajectory of the eraser can be detected by detecting the touch data generated by the palm.

步骤S404,在检测到擦除控件的移动轨迹之后,基于擦除控件的偏移角度,在第二位置显示擦除控件的位图,其中,移动轨迹从第一位置移动至第二位置,偏移角度是基于移动轨迹得到的,偏移角度为擦除控件与垂直方向的夹角。Step S404, after detecting the movement track of the eraser control, based on the offset angle of the eraser control, display the bitmap of the eraser control at the second position, wherein the movement track moves from the first position to the second position, and the offset The shift angle is obtained based on the movement track, and the offset angle is the angle between the erase control and the vertical direction.

具体地,橡皮擦的方向可以通过橡皮擦的垂直法线与垂直方向的夹角确定,橡皮擦的垂直法线与垂直方向的夹角为0°,则可以确定橡皮擦的方向是垂直于水平方向;橡皮擦的垂直法线与垂直方向的夹角为90°,则可以确定橡皮擦的方向是水平方向。Specifically, the direction of the eraser can be determined by the angle between the vertical normal of the eraser and the vertical direction, and the angle between the vertical normal of the eraser and the vertical direction is 0°, then it can be determined that the direction of the eraser is perpendicular to the horizontal direction; the angle between the vertical normal of the eraser and the vertical direction is 90°, so it can be determined that the direction of the eraser is the horizontal direction.

在一种可选的方案中,为了获得更加逼真的物理效果,在手掌移动的过程中,可以实时根据用户手掌的移动轨迹,调整橡皮擦的方向,使得橡皮擦的方向垂直于橡皮擦的移动轨迹。In an optional solution, in order to obtain a more realistic physical effect, during the movement of the palm, the direction of the eraser can be adjusted in real time according to the movement trajectory of the user's palm, so that the direction of the eraser is perpendicular to the movement of the eraser trajectory.

在本发明上述实施例中,在第一位置显示擦除控件的位图,在检测到擦除控件从第一位置移动到第二位置的移动轨迹之后,可以基于移动轨迹得到擦除控件的偏移角度,进一步基于偏移角度在第二位置显示擦除控件的位图,从而可以实现根据擦除控件的移动轨迹控制擦除控件的方向。与现有技术相比,擦除控件的方向不再是固定方向,在不同触摸的同时进行动态计算,使得擦除控件的方向始终垂直于移动轨迹的运动方向,达到了获得更逼真的物理效果,提升用户体验感,增加软件趣味性的技术效果,进而解决了现有技术中擦除控件的位图显示方向固定,擦除效果较差的技术问题。In the above-mentioned embodiment of the present invention, the bitmap of the erasing control is displayed at the first position, and after detecting the movement track of the erasing control moving from the first position to the second position, the offset of the erasing control can be obtained based on the movement track. and further display the bitmap of the eraser control at the second position based on the offset angle, so that the direction of the eraser control can be controlled according to the movement track of the eraser control. Compared with the prior art, the direction of the erasing control is no longer a fixed direction, and dynamic calculations are performed at the same time as different touches, so that the direction of the erasing control is always perpendicular to the movement direction of the moving track, achieving a more realistic physical effect. , the user experience is improved, and the technical effect of software interestingness is increased, thereby solving the technical problem that the bitmap display direction of the erasing control in the prior art is fixed and the erasing effect is poor.

实施例3Example 3

根据本发明实施例,还提供了一种擦除控件的处理装置的实施例。本实施例提供的擦除控件的处理装置可以集成在擦除控件的处理设备中,该擦除控件的处理设备可以是两个或多个物理实体构成,也可以是一个物理实体构成,该擦除控件的处理设备可以是电脑、手机、平板、投影仪或智能交互平板等。在实施例中,以智能交互平板为擦除控件的处理设备为例进行描述。According to an embodiment of the present invention, an embodiment of a processing apparatus for erasing a control is also provided. The processing device for erasing a control provided in this embodiment may be integrated in a processing device for erasing a control. The processing device for erasing a control may be composed of two or more physical entities, or may be composed of one physical entity. The processing device except the control can be a computer, a mobile phone, a tablet, a projector or an intelligent interactive tablet. In the embodiment, the description is given by taking the intelligent interactive tablet as an example of a processing device for erasing controls.

图5是根据本发明实施例的一种擦除控件的处理装置的结构示意图,如图5所示,该装置包括:检测模块52、处理模块54和显示模块56。FIG. 5 is a schematic structural diagram of a processing apparatus for erasing controls according to an embodiment of the present invention. As shown in FIG. 5 , the apparatus includes a detection module 52 , a processing module 54 and a display module 56 .

其中,检测模块54用于检测擦除控件从第一位置移动到第二位置的移动轨迹;处理模块54用于基于移动轨迹,得到擦除控件的偏移角度,其中,偏移角度为擦除控件与垂直方向的夹角;显示模块56用于基于移动轨迹,得到移动轨迹的运动角度,其中,运动角度为移动轨迹与水平方向的夹角。Wherein, the detection module 54 is used to detect the movement trajectory of the eraser control from the first position to the second position; the processing module 54 is used to obtain the offset angle of the eraser control based on the movement trajectory, wherein the offset angle is the erasure angle The included angle between the control and the vertical direction; the display module 56 is used to obtain the movement angle of the movement track based on the movement track, wherein the movement angle is the included angle between the movement track and the horizontal direction.

在本发明上述实施例中,在检测到擦除控件从第一位置移动到第二位置的移动轨迹之后,可以基于移动轨迹得到擦除控件的偏移角度,进一步基于偏移角度在第二位置显示擦除控件的位图,从而可以实现根据擦除控件的移动轨迹控制擦除控件的方向。与现有技术相比,擦除控件的方向不再是固定方向,在不同触摸的同时进行动态计算,使得擦除控件的方向始终垂直于移动轨迹的运动方向,达到了获得更逼真的物理效果,提升用户体验感,增加软件趣味性的技术效果,进而解决了现有技术中擦除控件的位图显示方向固定,擦除效果较差的技术问题。In the above-mentioned embodiment of the present invention, after detecting the movement trajectory of the erasing control from the first position to the second position, the offset angle of the erasing control can be obtained based on the movement trajectory, and further based on the offset angle at the second position Display the bitmap of the eraser control, so that the direction of the eraser control can be controlled according to the movement track of the eraser control. Compared with the prior art, the direction of the erasing control is no longer a fixed direction, and dynamic calculations are performed at the same time as different touches, so that the direction of the erasing control is always perpendicular to the movement direction of the moving track, achieving a more realistic physical effect. , the user experience is improved, and the technical effect of software interestingness is increased, thereby solving the technical problem that the bitmap display direction of the erasing control in the prior art is fixed and the erasing effect is poor.

在上述实施例的基础中,处理模块包括:第一处理子模块,用于基于移动轨迹,得到移动轨迹的运动角度,其中,运动角度为移动轨迹与水平方向的夹角;第二处理子模块,用于基于运动角度,得到偏移角度。On the basis of the above embodiment, the processing module includes: a first processing sub-module for obtaining the movement angle of the movement trajectory based on the movement trajectory, wherein the movement angle is the angle between the movement trajectory and the horizontal direction; the second processing sub-module , which is used to obtain the offset angle based on the motion angle.

在上述实施例的基础中,第一处理子模块包括:获取单元,用于获取移动轨迹中满足预设条件的目标像素点;处理单元,用于基于目标像素点的坐标值,得到运动角度。On the basis of the above embodiment, the first processing sub-module includes: an acquisition unit for acquiring target pixels in the movement track that meet preset conditions; and a processing unit for obtaining the motion angle based on the coordinate values of the target pixels.

在上述实施例的基础中,获取单元包括:第一获取子单元,用于获取检测到移动轨迹中每个像素点的时间;第二获取子单元,用于基于每个像素点的时间,获取最晚时间对应的两个像素点,得到目标像素点。On the basis of the above embodiment, the acquisition unit includes: a first acquisition subunit, used to acquire the time when each pixel point in the movement track is detected; and a second acquisition subunit, used to acquire the time based on each pixel point The two pixels corresponding to the latest time get the target pixel.

在上述实施例的基础中,处理单元包括:确定子单元,用于基于两个像素点的坐标值,确定直线;处理子单元,用于获取直线的斜率,得到运动角度。On the basis of the above embodiment, the processing unit includes: a determination subunit for determining a straight line based on the coordinate values of two pixel points; and a processing subunit for acquiring the slope of the straight line to obtain the motion angle.

在上述实施例的基础中,该装置还包括:比较模块,用于将偏移角度与预设阈值进行比较;显示模块还用于在偏移角度小于或等于预设阈值的情况下,基于偏移角度,在第二位置显示擦除控件的位图。On the basis of the above embodiment, the device further includes: a comparison module for comparing the offset angle with a preset threshold value; the display module is further configured to compare the offset angle with a preset threshold value when the offset angle is less than or equal to the preset threshold value, based on the offset angle Move the angle to display the bitmap of the eraser control in the second position.

在上述实施例的基础中,显示模块包括:控制子模块,用于基于擦除控件的偏移角度,控制擦除控件旋转;显示子模块,用于在第二位置显示旋转后的擦除控件的位图。On the basis of the above embodiment, the display module includes: a control sub-module for controlling the rotation of the erasing control based on the offset angle of the erasing control; and a display sub-module for displaying the rotated erasing control at the second position bitmap.

上述提供的擦除控件的处理装置可用于执行上述实施例1中提供的擦除控件的处理方法,具备相应的功能和有益效果。The processing device for erasing a control provided above can be used to execute the processing method for erasing a control provided in the above-mentioned Embodiment 1, and has corresponding functions and beneficial effects.

实施例4Example 4

根据本发明实施例,还提供了一种擦除控件的处理装置的实施例。本实施例提供的擦除控件的处理装置可以集成在擦除控件的处理设备中,该擦除控件的处理设备可以是两个或多个物理实体构成,也可以是一个物理实体构成,该擦除控件的处理设备可以是电脑、手机、平板、投影仪或智能交互平板等。在实施例中,以智能交互平板为擦除控件的处理设备为例进行描述。According to an embodiment of the present invention, an embodiment of a processing apparatus for erasing a control is also provided. The processing device for erasing a control provided in this embodiment may be integrated in a processing device for erasing a control. The processing device for erasing a control may be composed of two or more physical entities, or may be composed of one physical entity. The processing device except the control can be a computer, a mobile phone, a tablet, a projector or an intelligent interactive tablet. In the embodiment, the description is given by taking the intelligent interactive tablet as an example of a processing device for erasing controls.

图6是根据本发明实施例的另一种擦除控件的处理装置的结构示意图,如图6所示,该装置包括:第一显示模块62和第二显示模块64。FIG. 6 is a schematic structural diagram of another processing apparatus for erasing controls according to an embodiment of the present invention. As shown in FIG. 6 , the apparatus includes: a first display module 62 and a second display module 64 .

其中,第一显示模块62用于在第一位置显示擦除控件的位图;第二显示模块64用于在检测到擦除控件的移动轨迹之后,基于擦除控件的偏移角度,在第二位置显示擦除控件的位图,其中,移动轨迹从第一位置移动至第二位置,偏移角度是基于移动轨迹得到的,偏移角度为擦除控件与垂直方向的夹角。Wherein, the first display module 62 is used for displaying the bitmap of the erasing control at the first position; the second display module 64 is used for, after detecting the movement track of the erasing control, based on the offset angle of the erasing control, in the first The bitmap of the eraser control is displayed in two positions, wherein the movement track moves from the first position to the second position, the offset angle is obtained based on the movement track, and the offset angle is the angle between the eraser control and the vertical direction.

在本发明上述实施例中,在第一位置显示擦除控件的位图,在检测到擦除控件从第一位置移动到第二位置的移动轨迹之后,可以基于移动轨迹得到擦除控件的偏移角度,进一步基于偏移角度在第二位置显示擦除控件的位图,从而可以实现根据擦除控件的移动轨迹控制擦除控件的方向。与现有技术相比,擦除控件的方向不再是固定方向,在不同触摸的同时进行动态计算,使得擦除控件的方向始终垂直于移动轨迹的运动方向,达到了获得更逼真的物理效果,提升用户体验感,增加软件趣味性的技术效果,进而解决了现有技术中擦除控件的位图显示方向固定,擦除效果较差的技术问题。In the above-mentioned embodiment of the present invention, the bitmap of the erasing control is displayed at the first position, and after detecting the movement track of the erasing control moving from the first position to the second position, the offset of the erasing control can be obtained based on the movement track. and further display the bitmap of the eraser control at the second position based on the offset angle, so that the direction of the eraser control can be controlled according to the movement track of the eraser control. Compared with the prior art, the direction of the erasing control is no longer a fixed direction, and dynamic calculations are performed at the same time as different touches, so that the direction of the erasing control is always perpendicular to the movement direction of the moving track, achieving a more realistic physical effect. , the user experience is improved, and the technical effect of software interestingness is increased, thereby solving the technical problem that the bitmap display direction of the erasing control in the prior art is fixed and the erasing effect is poor.

上述提供的擦除控件的处理装置可用于执行上述实施例2中提供的擦除控件的处理方法,具备相应的功能和有益效果。The processing device for erasing a control provided above can be used to execute the processing method for erasing a control provided in the second embodiment, and has corresponding functions and beneficial effects.

实施例5Example 5

根据本发明实施例,提供了一种擦除控件的处理设备的实施例。According to an embodiment of the present invention, an embodiment of a processing device for erasing a control is provided.

图7是根据本发明实施例的一种擦除控件的处理设备的结构示意图,如图7所示,该设备包括:检测装置10和处理器20。该擦除控件的处理设备中处理器20的数量可以是一个或者多个,图7中以一个处理器20为例。该擦除控件的处理设备的检测装置10和处理器20可以通过总线或者其他方式连接,图7中以通过总线连接为例。实施例中,擦除控件的处理设备可以是电脑,手机,平板,投影仪或智能交互平板等。实施例中,以擦除控件的处理设备为智能交互平板为例,进行描述。FIG. 7 is a schematic structural diagram of a processing device for erasing controls according to an embodiment of the present invention. As shown in FIG. 7 , the device includes: a detection device 10 and a processor 20 . The number of processors 20 in the processing device for erasing controls may be one or more, and one processor 20 is taken as an example in FIG. 7 . The detection device 10 and the processor 20 of the processing device for erasing the control may be connected by a bus or in other ways, and the connection by a bus is taken as an example in FIG. 7 . In the embodiment, the processing device for erasing the control may be a computer, a mobile phone, a tablet, a projector or an intelligent interactive tablet. In the embodiment, the description is given by taking an example that the processing device for erasing the control is an intelligent interactive tablet.

检测装置10可以是智能交互平板中实现触摸功能的检测装置10,其可以是电容传感器、电磁传感器或者红外触摸框,检测装置10用于检测智能交互平板的显示屏上的触摸操作,并将响应的信号发送至处理器20或者其他装置。可选地,当检测装置10为红外触摸框时,该红外触摸框设置在智能交互平板的显示屏的四周,其还可以用于接收红外信号,并将该红外信号发送至处理器20或者其他设备。The detection device 10 may be a detection device 10 that implements a touch function in an intelligent interactive tablet, which may be a capacitive sensor, an electromagnetic sensor, or an infrared touch frame. The detection device 10 is used to detect a touch operation on the display screen of the intelligent interactive tablet, and responds signal to the processor 20 or other device. Optionally, when the detection device 10 is an infrared touch frame, the infrared touch frame is arranged around the display screen of the intelligent interactive tablet, which can also be used to receive infrared signals and send the infrared signals to the processor 20 or other devices. equipment.

处理器20通过运行存储在存储器中的软件程序、指令以及模块,从而执行设备的各种功能应用以及数据处理,即实现上述的擦除控件的处理方法。该擦除控件的处理设备中的存储器可以是一个或者多个,存储器作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本发明任意实施例所述的擦除控件的处理方法对应的程序指令/模块(例如,擦除控件的处理装置中的检测模块52、处理模块54和显示模块56)。存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据设备的使用所创建的数据等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器可进一步包括相对于处理器20远程设置的存储器,这些远程存储器可以通过网络连接至设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The processor 20 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory, that is, to implement the above-mentioned processing method for erasing controls. There may be one or more memories in the processing device for erasing controls. As a computer-readable storage medium, the memories can be used to store software programs, computer-executable programs, and modules. Program instructions/modules corresponding to the processing method for erasing the control (for example, the detection module 52, the processing module 54 and the display module 56 in the processing apparatus for erasing the control). The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the device, and the like. Additionally, the memory may include high speed random access memory, and may also include nonvolatile memory, such as at least one magnetic disk storage device, flash memory device, or other nonvolatile solid state storage device. In some examples, the memory may further include memory located remotely from the processor 20, which may be connected to the device through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

具体地,实施例中,检测装置10用于检测擦除控件从第一位置移动到第二位置的移动轨迹;处理器20执行存储器中存储的一个或多个程序时,具体实现如下操作:基于移动轨迹,得到擦除控件的偏移角度,其中,偏移角度为擦除控件与垂直方向的夹角;基于移动轨迹,得到移动轨迹的运动角度,其中,运动角度为移动轨迹与水平方向的夹角。Specifically, in the embodiment, the detection device 10 is used to detect the movement trajectory of the erase control moving from the first position to the second position; when the processor 20 executes one or more programs stored in the memory, the following operations are specifically implemented: based on Move the track to get the offset angle of the erase control, where the offset angle is the angle between the erase control and the vertical direction; based on the movement track, get the movement angle of the movement track, where the movement angle is the difference between the movement track and the horizontal direction angle.

在上述实施例的基础中,一个或多个处理器20为了实现得到擦除控件的偏移角度,具体实现如下操作:基于移动轨迹,得到移动轨迹的运动角度,其中,运动角度为移动轨迹与水平方向的夹角;基于运动角度,得到偏移角度。On the basis of the above embodiment, in order to obtain the offset angle of the erasing control, one or more processors 20 specifically implement the following operations: based on the movement track, obtain the movement angle of the movement track, wherein the movement angle is the movement track and the movement track. The included angle in the horizontal direction; based on the motion angle, the offset angle is obtained.

在上述实施例的基础中,一个或多个处理器20为了实现得到移动轨迹的运动角度,具体实现如下操作:获取移动轨迹中满足预设条件的目标像素点;基于目标像素点的坐标值,得到运动角度。On the basis of the above embodiment, in order to obtain the motion angle of the moving track, one or more processors 20 specifically implement the following operations: obtaining a target pixel point in the moving track that satisfies a preset condition; based on the coordinate value of the target pixel point, Get the angle of motion.

在上述实施例的基础中,一个或多个处理器20为了实现获取到目标像素点,具体实现如下操作:获取检测到移动轨迹中每个像素点的时间;基于每个像素点的时间,获取最晚时间对应的两个像素点,得到目标像素点。On the basis of the above embodiment, in order to obtain the target pixel point, one or more processors 20 specifically implement the following operations: obtain the time when each pixel point in the movement track is detected; based on the time of each pixel point, obtain The two pixels corresponding to the latest time get the target pixel.

在上述实施例的基础中,一个或多个处理器20为了实现得到运动角度,具体实现如下操作:基于两个像素点的坐标值,确定直线;获取直线的斜率,得到运动角度。On the basis of the above embodiment, in order to obtain the movement angle, one or more processors 20 specifically implement the following operations: determine a straight line based on the coordinate values of two pixel points; obtain the slope of the straight line to obtain the movement angle.

在上述实施例的基础中,一个或多个处理器20为了实现在第二位置显示擦除控件的位图,具体实现如下操作:将偏移角度与预设阈值进行比较;在偏移角度小于或等于预设阈值的情况下,基于偏移角度,在第二位置显示擦除控件的位图。On the basis of the above embodiment, in order to display the bitmap of the erase control at the second position, one or more processors 20 specifically implement the following operations: compare the offset angle with a preset threshold; when the offset angle is less than If equal to or equal to the preset threshold, based on the offset angle, display the bitmap of the erase control at the second position.

在上述实施例的基础中,一个或多个处理器20为了实现在第二位置显示擦除控件的位图,具体实现如下操作:基于擦除控件的偏移角度,控制擦除控件旋转;在第二位置显示旋转后的擦除控件的位图。On the basis of the above embodiment, in order to display the bitmap of the erasing control at the second position, one or more processors 20 specifically implement the following operations: control the rotation of the erasing control based on the offset angle of the erasing control; The second position shows the rotated bitmap of the wiper control.

上述提供的擦除控件的处理设备可用于执行上述实施例1中提供的擦除控件的处理方法,具备相应的功能和有益效果。The processing device for erasing a control provided above can be used to execute the processing method for erasing a control provided in Embodiment 1 above, and has corresponding functions and beneficial effects.

实施例6Example 6

根据本发明实施例,还提供了一种擦除控件的处理设备的实施例。According to an embodiment of the present invention, an embodiment of a processing device for erasing a control is also provided.

图8是根据本发明实施例的另一种擦除控件的处理设备的结构示意图,如图8所示,该设备包括:显示器30、检测装置10和处理器20。该擦除控件的处理设备的显示器30、检测装置10和处理器20可以通过总线或者其他方式连接,图8中以通过总线连接为例。FIG. 8 is a schematic structural diagram of another processing device for erasing controls according to an embodiment of the present invention. As shown in FIG. 8 , the device includes a display 30 , a detection device 10 and a processor 20 . The display 30 , the detection device 10 and the processor 20 of the processing device for erasing controls may be connected by a bus or in other ways, and the connection by a bus is taken as an example in FIG. 8 .

显示器30为具有触摸功能的显示器30,其可以是电容屏、电磁屏或者红外屏。一般而言,显示器30用于根据处理器20的指示显示数据,还用于接收作用于显示器30的触摸操作,并将相应的信号发送至处理器20或其他装置。可选的,当显示器30为红外屏时,其还包括红外触摸框,该红外触摸框设置在显示器30的四周,其还可以用于接收红外信号,并将该红外信号发送至处理器20或者其他设备。The display 30 is a display 30 with a touch function, which may be a capacitive screen, an electromagnetic screen or an infrared screen. Generally speaking, the display 30 is used for displaying data according to the instruction of the processor 20, and is also used for receiving touch operations acting on the display 30, and sending corresponding signals to the processor 20 or other devices. Optionally, when the display 30 is an infrared screen, it further includes an infrared touch frame, and the infrared touch frame is arranged around the display 30, which can also be used to receive infrared signals, and send the infrared signals to the processor 20 or other devices.

具体地,实施例中,显示器30用于在第一位置显示擦除控件的位图;测装置10用于检测擦除控件从第一位置移动到第二位置的移动轨迹;处理器20执行存储器中存储的一个或多个程序时,具体实现如下操作:在检测到擦除控件的移动轨迹之后,基于擦除控件的偏移角度,控制显示器在第二位置显示擦除控件的位图,其中,偏移角度是基于移动轨迹得到的,偏移角度为擦除控件与垂直方向的夹角。Specifically, in the embodiment, the display 30 is used to display the bitmap of the erasing control at the first position; the measuring device 10 is used to detect the movement trajectory of the erasing control from the first position to the second position; the processor 20 executes the memory When one or more programs are stored in the device, the following operations are specifically implemented: after detecting the movement track of the erasing control, based on the offset angle of the erasing control, the display is controlled to display the bitmap of the erasing control in the second position, wherein , the offset angle is obtained based on the movement track, and the offset angle is the angle between the erase control and the vertical direction.

上述提供的擦除控件的处理设备可用于执行上述实施例2中提供的擦除控件的处理方法,具备相应的功能和有益效果。The processing device for erasing a control provided above can be used to execute the processing method for erasing a control provided in Embodiment 2 above, and has corresponding functions and beneficial effects.

实施例7Example 7

根据本发明实施例,还提供了一种存储介质的实施例,存储介质包括存储的程序,其中,在程序运行时控制存储介质所在设备执行上述任意实施例中提供的擦除控件的处理方法。According to an embodiment of the present invention, there is also provided an embodiment of a storage medium, the storage medium includes a stored program, wherein when the program runs, the device where the storage medium is located is controlled to execute the processing method of the erasing control provided in any of the foregoing embodiments.

实施例8Example 8

根据本发明实施例,还提供了一种处理器的实施例,处理器用于运行程序,其中,程序运行时执行上述任意实施例中提供的擦除控件的处理方法。According to an embodiment of the present invention, an embodiment of a processor is also provided, where the processor is used to run a program, wherein when the program runs, the processing method for erasing a control provided in any of the foregoing embodiments is executed.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages or disadvantages of the embodiments.

在本发明的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,可以为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed technical content may be implemented in other ways. The device embodiments described above are only illustrative, for example, the division of the units may be a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components may be combined or Integration into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of units or modules, and may be in electrical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes .

以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above are only the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made. It should be regarded as the protection scope of the present invention.

Claims (14)

1. a kind of processing method for wiping control characterized by comprising
Detection erasing control is moved to the motion track of the second position from first position;
Based on the motion track, the deviation angle of the erasing control is obtained, wherein the deviation angle is erasing control The angle of part and vertical direction;
Based on the deviation angle, the bitmap of the erasing control is shown in the second position.
2. obtaining the erasing control the method according to claim 1, wherein being based on the motion track Deviation angle, comprising:
Based on the motion track, the movement angle of the motion track is obtained, wherein the movement angle is the moving rail The angle of mark and horizontal direction;
Based on the movement angle, the deviation angle is obtained.
3. according to the method described in claim 2, it is characterized in that, obtaining the motion track based on the motion track Movement angle, comprising:
Obtain the target pixel points for meeting preset condition in the motion track;
Based on the coordinate value of the target pixel points, the movement angle is obtained.
4. according to the method described in claim 3, it is characterized in that, obtaining the target for meeting preset condition in the motion track Pixel, comprising:
Obtain the time for detecting each pixel in the motion track;
Based on the time of each pixel, corresponding two pixels of latest time are obtained, the target pixel points are obtained.
5. according to the method described in claim 4, it is characterized in that, the coordinate value based on the target pixel points, obtains described Movement angle, comprising:
Based on the coordinate value of described two pixels, straight line is determined;
The slope for obtaining the straight line obtains the movement angle.
6. the method according to claim 1, wherein being shown being based on the deviation angle in the second position Before the bitmap for showing the erasing control, the method also includes:
The deviation angle is compared with preset threshold;
In the case where the deviation angle is less than or equal to the preset threshold, it is based on the deviation angle, described second Position shows the bitmap of the erasing control.
7. being shown the method according to claim 1, wherein being based on the deviation angle in the second position The bitmap of the erasing control, comprising:
Based on the deviation angle of the erasing control, the erasing control rotation is controlled;
The bitmap of postrotational erasing control is shown in the second position.
8. a kind of processing method for wiping control characterized by comprising
The bitmap of erasing control is shown in first position;
After the motion track for detecting the erasing control, based on the deviation angle of the erasing control, in the second position Show the bitmap of the erasing control, wherein the motion track is moved to the second position from the first position, described Deviation angle is obtained based on the motion track, and the deviation angle is the angle of the erasing control and vertical direction.
9. a kind of processing unit for wiping control characterized by comprising
Detection module, the motion track for being moved to from first position the second position for detecting erasing control;
Processing module obtains the deviation angle of the erasing control, wherein the deviation angle for being based on the motion track Degree is the angle of the erasing control and vertical direction;
Display module shows the bitmap of the erasing control in the second position for being based on the deviation angle.
10. a kind of processing unit for wiping control characterized by comprising
First display module, for showing the bitmap of erasing control in first position;
Second display module, for wiping the inclined of control based on described after the motion track for detecting the erasing control Angle is moved, shows the bitmap of the erasing control in the second position, wherein the motion track is moved to from the first position The second position, the deviation angle are obtained based on the motion track, and the deviation angle is the erasing control With the angle of vertical direction.
11. a kind of processing equipment for wiping control characterized by comprising
Detection device, the motion track for being moved to from first position the second position for detecting erasing control;
Processor is connect with detection device, for obtaining the deviation angle of the erasing control based on the motion track, and Based on the deviation angle, the bitmap for controlling the erasing control is shown in the second position, wherein the deviation angle is The angle of the erasing control and vertical direction.
12. a kind of processing equipment for wiping control characterized by comprising
Display, for showing the bitmap of erasing control in first position;
Detection device, for detecting the motion track of the erasing control, wherein the motion track is moved from the first position It moves to the second position;
Processor is connect with the detection device and the display, in the motion track for detecting the erasing control Later, the deviation angle based on the erasing control controls the display in the second position and shows the position of the erasing control Figure, wherein the deviation angle is obtained based on the motion track, the deviation angle be the erasing control with it is vertical The angle in direction.
13. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program When control the storage medium where equipment perform claim require any one of 1 to 8 described in erasing control processing method.
14. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run Benefit require any one of 1 to 8 described in wipe control processing method.
CN201910262723.1A 2019-04-02 2019-04-02 Processing method, device and device for erasing controls Active CN110007838B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910262723.1A CN110007838B (en) 2019-04-02 2019-04-02 Processing method, device and device for erasing controls
PCT/CN2020/082851 WO2020200255A1 (en) 2019-04-02 2020-04-01 Erase control processing method, apparatus, and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910262723.1A CN110007838B (en) 2019-04-02 2019-04-02 Processing method, device and device for erasing controls

Publications (2)

Publication Number Publication Date
CN110007838A true CN110007838A (en) 2019-07-12
CN110007838B CN110007838B (en) 2020-12-11

Family

ID=67169864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910262723.1A Active CN110007838B (en) 2019-04-02 2019-04-02 Processing method, device and device for erasing controls

Country Status (2)

Country Link
CN (1) CN110007838B (en)
WO (1) WO2020200255A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111679782A (en) * 2020-06-10 2020-09-18 腾讯科技(深圳)有限公司 Erasing method and related device
WO2020200255A1 (en) * 2019-04-02 2020-10-08 广州视源电子科技股份有限公司 Erase control processing method, apparatus, and device
CN112905092A (en) * 2021-02-22 2021-06-04 深圳市康冠商用科技有限公司 Adjusting method and device for erasing control, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002109557A (en) * 2000-10-03 2002-04-12 Ricoh Co Ltd Icon switching method
CN104484121A (en) * 2014-12-29 2015-04-01 广州视睿电子科技有限公司 content erasing method and device on touch screen
US20160005205A1 (en) * 2014-07-03 2016-01-07 Adobe Systems Incorporated Smart eraser to erase digital strokes
CN105302437A (en) * 2015-10-13 2016-02-03 联想(北京)有限公司 Eraser size switching method and electronic device
JP2016099874A (en) * 2014-11-25 2016-05-30 シャープ株式会社 Drawing image erasing method
CN106502607A (en) * 2016-10-19 2017-03-15 广州视睿电子科技有限公司 Line segment erasing method and device
CN106569692A (en) * 2016-10-26 2017-04-19 青岛海信电器股份有限公司 Gesture erasing method and device
CN108021246A (en) * 2017-10-12 2018-05-11 上海优熠电子科技有限公司 Touch pad blackboard eraser prevents method for deleting by mistake
CN109032463A (en) * 2018-07-19 2018-12-18 掌阅科技股份有限公司 Take down notes method for deleting, electronic equipment and computer storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309850A (en) * 2013-06-25 2013-09-18 北京小米科技有限责任公司 Content editing method, content editing device and terminal
US20170090713A1 (en) * 2015-09-29 2017-03-30 International Business Machines Corporation Adjusting eraser size in drawing applications
CN107656674A (en) * 2017-09-26 2018-02-02 网易(杭州)网络有限公司 Information interacting method, device, electronic equipment and storage medium
CN108733296B (en) * 2018-04-28 2021-07-09 广州视源电子科技股份有限公司 Method, device and device for erasing handwriting
CN110007838B (en) * 2019-04-02 2020-12-11 广州视源电子科技股份有限公司 Processing method, device and device for erasing controls

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002109557A (en) * 2000-10-03 2002-04-12 Ricoh Co Ltd Icon switching method
US20160005205A1 (en) * 2014-07-03 2016-01-07 Adobe Systems Incorporated Smart eraser to erase digital strokes
JP2016099874A (en) * 2014-11-25 2016-05-30 シャープ株式会社 Drawing image erasing method
CN104484121A (en) * 2014-12-29 2015-04-01 广州视睿电子科技有限公司 content erasing method and device on touch screen
CN105302437A (en) * 2015-10-13 2016-02-03 联想(北京)有限公司 Eraser size switching method and electronic device
CN106502607A (en) * 2016-10-19 2017-03-15 广州视睿电子科技有限公司 Line segment erasing method and device
CN106569692A (en) * 2016-10-26 2017-04-19 青岛海信电器股份有限公司 Gesture erasing method and device
CN108021246A (en) * 2017-10-12 2018-05-11 上海优熠电子科技有限公司 Touch pad blackboard eraser prevents method for deleting by mistake
CN109032463A (en) * 2018-07-19 2018-12-18 掌阅科技股份有限公司 Take down notes method for deleting, electronic equipment and computer storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020200255A1 (en) * 2019-04-02 2020-10-08 广州视源电子科技股份有限公司 Erase control processing method, apparatus, and device
CN111679782A (en) * 2020-06-10 2020-09-18 腾讯科技(深圳)有限公司 Erasing method and related device
CN111679782B (en) * 2020-06-10 2021-08-31 腾讯科技(深圳)有限公司 Erasing method and related device
CN112905092A (en) * 2021-02-22 2021-06-04 深圳市康冠商用科技有限公司 Adjusting method and device for erasing control, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2020200255A1 (en) 2020-10-08
CN110007838B (en) 2020-12-11

Similar Documents

Publication Publication Date Title
JP5628300B2 (en) Method, apparatus and computer program product for generating graphic objects with desirable physical features for use in animation
US10742932B2 (en) Communication terminal, communication system, moving-image outputting method, and recording medium storing program
CN108733296B (en) Method, device and device for erasing handwriting
CN107317993B (en) A video call method and mobile terminal
WO2017063324A1 (en) Window displaying method and mobile terminal
CN110007838B (en) Processing method, device and device for erasing controls
US9547370B2 (en) Systems and methods for enabling fine-grained user interactions for projector-camera or display-camera systems
CN107509040A (en) A kind of photographic method and mobile terminal
US10761718B2 (en) Electronic whiteboard, method for image processing in electronic whiteboard, and recording medium containing computer program of electronic whiteboard
CN107148776B (en) Method, device and system for acquiring video data and computer readable storage medium
JP6540367B2 (en) Display control apparatus, communication terminal, communication system, display control method, and program
CN106412232A (en) Method and device for controlling zooming of operation interface and electronic equipment
CN110928614A (en) Interface display method, device, device and storage medium
CN108200419B (en) Projection method and electronic equipment
CN106097398A (en) The detection method of a kind of Moving Objects and mobile terminal
CN107153546B (en) Video playing method and mobile device
CN113487695A (en) Graph generation method and terminal equipment
CN104991719A (en) Touch screen based screen capture method and system and mobile terminal
CN107229371A (en) A kind of display control method and mobile terminal
CN110018747A (en) Data processing method and device and intelligent pen
JP7484568B2 (en) Display device, display method, and program
JP6589621B2 (en) Display device, camera position control method, and program
CN117666856A (en) Control methods, devices and equipment for virtual interactive interfaces in extended real space
CN103959369B (en) Display control apparatus, display control system, and display control method
JP6959184B2 (en) Display control device, display control method, and display control program

Legal Events

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