WO2020200255A1 - Erase control processing method, apparatus, and device - Google Patents

Erase control processing method, apparatus, and device Download PDF

Info

Publication number
WO2020200255A1
WO2020200255A1 PCT/CN2020/082851 CN2020082851W WO2020200255A1 WO 2020200255 A1 WO2020200255 A1 WO 2020200255A1 CN 2020082851 W CN2020082851 W CN 2020082851W WO 2020200255 A1 WO2020200255 A1 WO 2020200255A1
Authority
WO
WIPO (PCT)
Prior art keywords
control
angle
offset angle
erasing
movement
Prior art date
Application number
PCT/CN2020/082851
Other languages
French (fr)
Chinese (zh)
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 广州视源电子科技股份有限公司
Publication of WO2020200255A1 publication Critical patent/WO2020200255A1/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

Definitions

  • the above method further includes: comparing the offset angle with a preset threshold; when the offset angle is less than or equal to the preset threshold In this case, based on the offset angle, the bitmap of the erase control is displayed in the second position.
  • the screen projection client is a laptop computer
  • the screen projection data is a PPT in the projection state
  • the interaction between the laptop computer and the smart interactive tablet is used as an example to describe the present application.
  • the above-mentioned erasing control may be a control for erasing the handwriting displayed on the touch screen.
  • the above-mentioned erasing control may be an eraser control.
  • Step S104 Obtain the offset angle of the erase control based on the movement track, where the offset angle is the angle between the erase control and the vertical direction.
  • the direction of the eraser should be perpendicular to the line segment E1E2.
  • the offset angle of the eraser ⁇ B (the angle between the dotted line in Figure 2) should be equal to ⁇ A.
  • Step S32 Calculate the movement angle according to the touch point data.
  • an embodiment of a processing method for erasing controls is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be implemented in a computer system such as a set of computer-executable instructions. Although the logical sequence is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than here.
  • the above-mentioned erasing control may be a control for erasing the handwriting displayed on the touch screen.
  • the above-mentioned erasing control may be an eraser control.
  • the detection module 54 is set to detect the movement track of the erase control from the first position to the second position; the processing module 54 is set to obtain the offset angle of the erase control based on the movement track, where the offset angle is the erase control The angle between the control and the vertical direction; the display module 56 is set to obtain the movement angle of the movement track based on the movement track, where the movement angle is the angle between the movement track and the horizontal direction.
  • the processing device for erasing controls provided above can be configured to execute the processing method for erasing controls provided in the above embodiment 1, and has corresponding functions and beneficial effects.
  • FIG. 6 is a schematic structural diagram of another device for processing an erasing control according to one of the embodiments of the present application. As shown in FIG. 6, the device includes a first display module 62 and a second display module 64.
  • the bitmap of the erase control is displayed at the first position. After detecting the movement track of the erase control from the first position to the second position, the offset of the erase control can be obtained based on the movement track.
  • the shift angle further displays the bitmap of the erase control in the second position based on the offset angle, so that the direction of the erase control can be controlled according to the movement track of the erase control.
  • the direction of the erasing control is no longer a fixed direction, and dynamic calculation is performed at the same time of different touches, so that the direction of the erasing control is always perpendicular to the movement direction of the movement track, achieving a more realistic physical effect. Enhance the user experience, increase the interesting technical effect of the software, and solve the technical problem that the bitmap display direction of the erasing control is fixed and the erasing effect is poor in the prior art.
  • the detection device 10 may be a detection device 10 that implements a touch function in a smart interactive tablet, which may be a capacitive sensor, an electromagnetic sensor or an infrared touch frame.
  • the detection device 10 is configured to detect touch operations on the display screen of the smart interactive tablet and respond The signal is sent to the processor 20 or other devices.
  • the detection device 10 is an infrared touch frame
  • the infrared touch frame is arranged around the display screen of the smart interactive tablet, and it can also be set to receive an infrared signal and send the infrared signal to the processor 20 or other equipment.
  • the detection device 10 is configured to detect the movement track of the wipe 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: Move the trajectory 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 trajectory, get the movement angle of the movement trajectory, where the movement angle is the difference between the movement trajectory and the horizontal direction Included angle.
  • an embodiment of a storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the process of erasing control provided in any of the above embodiments. method.

Abstract

Disclosed are an erase control processing method, apparatus and device. The method comprises: detecting the movement path of an erase control moving from a first position to a second position; obtaining the offset angle of the erase control on the basis of the movement path, wherein the offset angle is the included angle between the erase control and the vertical direction; and displaying a bitmap of the erase control at the second position on the basis of the offset angle. The present application solves the technical problem that the bitmap display direction of the erase control is fixed and the erasing effect is poor in the prior art.

Description

擦除控件的处理方法、装置和设备Processing method, device and equipment for erasing control
本申请要求于2019年04月02日提交中国专利局、申请号为201910262723.1、申请名称“擦除控件的处理方法、装置和设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office, the application number is 201910262723.1, and the application name "Processing Method, Apparatus and Equipment for Erasing Controls" on April 02, 2019, the entire content of which is incorporated herein by reference Applying.
技术领域Technical field
本申请涉及智能交互设备领域,具体而言,涉及一种擦除控件的处理方法、装置和设备。This application 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 erasing control (for example, eraser) is used in the IWB whiteboard software to erase. The movement of the eraser is to move a bitmap bitmap, the bitmap is rectangular, and the direction of the eraser is generally fixed. Yes, for example, perpendicular to the horizontal direction, it will appear blunt when writing handwriting through the erase control, and the physical effect is poor.
针对现有技术中擦除控件的位图显示方向固定,擦除效果较差的问题,目前尚未提出有效的解决方案。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 yet been proposed.
发明内容Summary of the invention
本申请实施例至少部分提供了一种擦除控件的处理方法、装置和设备,以至少解决现有技术中擦除控件的位图显示方向固定,擦除效果较差的技术问题。The embodiments of the present application at least partially provide a processing method, device, and equipment for erasing controls, so as to at least solve the technical problems in the prior art that the bitmap display direction of the erasing control is fixed and the erasing effect is poor.
根据本申请其中一实施例的一个方面,提供了一种擦除控件的处理方法,包括:检测擦除控件从第一位置移动到第二位置的移动轨迹;基于移动轨迹,得到擦除控件的偏移角度,其中,偏移角度为擦除控件与垂直方向的夹角;基于偏移角度,在第二位置显示擦除控件的位图。According to an aspect of one of the embodiments of the present application, there is provided a method for processing an erasing control, including: detecting a movement track of the erasing control moving from a first position to a second position; and obtaining the erasing control based on the movement track The offset angle, where the offset angle is the angle between the erase control and the vertical direction; based on the offset angle, the bitmap of the erase control is displayed in the second position.
可选地,基于移动轨迹,得到擦除控件的偏移角度,包括:基于移动轨迹,得到移动轨迹的运动角度,其中,运动角度为移动轨迹与水平方向的夹角;基于运动角度,得到偏移角度。Optionally, obtaining the offset angle of the erase control based on the movement trajectory includes: obtaining the movement angle of the movement trajectory based on the movement trajectory, where the movement angle is the angle between the movement trajectory and the horizontal direction; and obtaining the offset based on the movement angle Shift angle.
可选地,基于移动轨迹,得到移动轨迹的运动角度,包括:获取移动轨迹中满足预设条件的目标像素点;基于目标像素点的坐标值,得到运动角度。Optionally, obtaining the movement angle of the movement trajectory based on the movement trajectory includes: obtaining a target pixel in the movement trajectory that meets a preset condition; and obtaining the movement angle based on the coordinate value of the target pixel.
可选地,获取移动轨迹中满足预设条件的目标像素点,包括:获取检测到移动轨 迹中每个像素点的时间;基于每个像素点的时间,获取最晚时间对应的两个像素点,得到目标像素点。Optionally, obtaining target pixels in the movement trajectory that meet preset conditions includes: obtaining the time when each pixel in the movement trajectory is detected; based on the time of each pixel, obtaining the two pixels corresponding to the latest time , Get the target pixel.
可选地,基于目标像素点的坐标值,得到运动角度,包括:基于两个像素点的坐标值,确定直线;获取直线的斜率,得到运动角度。Optionally, obtaining the movement angle based on the coordinate value of the target pixel 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.
可选地,在基于偏移角度,在第二位置显示擦除控件的位图之前,上述方法还包括:将偏移角度与预设阈值进行比较;在偏移角度小于或等于预设阈值的情况下,基于偏移角度,在第二位置显示擦除控件的位图。Optionally, before displaying the bitmap of the erasure control in the second position based on the offset angle, the above method further includes: comparing the offset angle with a preset threshold; when the offset angle is less than or equal to the preset threshold In this case, based on the offset angle, the bitmap of the erase control is displayed in the second position.
可选地,基于偏移角度,在第二位置显示擦除控件的位图,包括:基于擦除控件的偏移角度,控制擦除控件旋转;在第二位置显示旋转后的擦除控件的位图。Optionally, based on the offset angle, displaying the bitmap of the erasing control in the second position includes: controlling the rotation of the erasing control based on the offset angle of the erasing control; displaying the rotation of the erasing control in the second position bitmap.
根据本申请其中一实施例的另一方面,还提供了一种擦除控件的处理方法,包括:在第一位置显示擦除控件的位图;在检测到擦除控件的移动轨迹之后,基于擦除控件的偏移角度,在第二位置显示擦除控件的位图,其中,移动轨迹从第一位置移动至第二位置,偏移角度是基于移动轨迹得到的,偏移角度为擦除控件与垂直方向的夹角。According to another aspect of one of the embodiments of the present application, there is also provided an erasing control processing method, including: displaying a bitmap of the erasing control at a first position; after detecting the movement track of the erasing control, based on The offset angle of the erase control, the bitmap of the erase 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 erase The angle between the control and the vertical.
根据本申请其中一实施例的另一方面,还提供了一种擦除控件的处理装置,包括:检测模块,设置为检测擦除控件从第一位置移动到第二位置的移动轨迹;处理模块,设置为基于移动轨迹,得到擦除控件的偏移角度,其中,偏移角度为擦除控件与垂直方向的夹角;显示模块,设置为基于偏移角度,在第二位置显示擦除控件的位图。According to another aspect of one of the embodiments of the present application, there is also provided a processing device for erasing controls, including: a detection module configured to detect the movement track of the erasing control moving from a first position to a second position; processing module , Is set to obtain the offset angle of the erase control based on the movement track, where the offset angle is the angle between the erase control and the vertical direction; the display module is set to display the erase control in the second position based on the offset angle Bitmap.
根据本申请其中一实施例的另一方面,还提供了一种擦除控件的处理装置,包括:第一显示模块,设置为在第一位置显示擦除控件的位图;第二显示模块,设置为在检测到擦除控件的移动轨迹之后,基于擦除控件的偏移角度,在第二位置显示擦除控件的位图,其中,移动轨迹从第一位置移动至第二位置,偏移角度是基于移动轨迹得到的,偏移角度为擦除控件与垂直方向的夹角。According to another aspect of one of the embodiments of the present application, there is also provided a processing device for erasing controls, including: a first display module configured to display a bitmap of the erasing control at a first position; and a second display module, Set to display the bitmap of the erase control in the second position based on the offset angle of the erase control after detecting the movement track of the erase control, where the movement track moves from the first position to the second position, and the offset The angle is obtained based on the movement track, and the offset angle is the angle between the erase control and the vertical direction.
根据本申请其中一实施例的另一方面,还提供了一种擦除控件的处理设备,包括:检测装置,设置为检测擦除控件从第一位置移动到第二位置的移动轨迹;处理器,与检测装置连接,设置为基于移动轨迹,得到擦除控件的偏移角度,并基于偏移角度,控制擦除控件的位图在第二位置显示,其中,偏移角度为擦除控件与垂直方向的夹角。According to another aspect of one of the embodiments of the present application, there is also provided an erase control processing device, including: a detection device configured to detect the movement track of the erase control moving from a first position to a second position; and a processor; , Connected to the detection device, set to obtain the offset angle of the erase control based on the movement track, and based on the offset angle, control the bitmap of the erase control to be displayed in the second position, where the offset angle is the erase control and The angle in the vertical direction.
根据本申请其中一实施例的另一方面,还提供了一种擦除控件的处理设备,包括:显示器,设置为在第一位置显示擦除控件的位图;检测装置,设置为检测擦除控件的移动轨迹,其中,移动轨迹从第一位置移动至第二位置;处理器,与检测装置和显示器连接,设置为在检测到擦除控件的移动轨迹之后,基于擦除控件的偏移角度,控制显示器在第二位置显示擦除控件的位图,其中,偏移角度是基于移动轨迹得到的,偏移角度为擦除控件与垂直方向的夹角。According to another aspect of one of the embodiments of the present application, there is also provided a processing device for erasing controls, including: a display configured to display a bitmap of the erasing control at a first position; and a detection device configured to detect erasing The movement trajectory of the control, where the movement trajectory moves from the first position to the second position; the processor, connected to the detection device and the display, is set to be based on the offset angle of the wipe control after detecting the movement trajectory of the wipe control , Controlling the display to display the bitmap of the erasing control in the second position, where the offset angle is obtained based on the movement track, and the offset angle is the angle between the erasing control and the vertical direction.
根据本申请其中一实施例的另一方面,还提供了一种存储介质,存储介质包括存储的程序,其中,在程序运行时控制存储介质所在设备执行上述的擦除控件的处理方法。According to another aspect of one of the embodiments of the present application, a storage medium is further provided. The storage medium includes a stored program, wherein the device where the storage medium is located is controlled to execute the above-mentioned erasing control processing method when the program is running.
根据本申请其中一实施例的另一方面,还提供了一种处理器,处理器设置为运行程序,其中,程序运行时执行上述的擦除控件的处理方法。According to another aspect of one of the embodiments of the present application, a processor is also provided, the processor is configured to run a program, wherein the above-mentioned erasing control processing method is executed when the program is running.
在本申请至少部分实施例中,在检测到擦除控件从第一位置移动到第二位置的移动轨迹之后,可以基于移动轨迹得到擦除控件的偏移角度,进一步基于偏移角度在第二位置显示擦除控件的位图,从而可以实现根据擦除控件的移动轨迹控制擦除控件的方向。与现有技术相比,擦除控件的方向不再是固定方向,在不同触摸的同时进行动态计算,使得擦除控件的方向始终垂直于移动轨迹的运动方向,达到了获得更逼真的物理效果,提升用户体验感,增加软件趣味性的技术效果,进而解决了现有技术中擦除控件的位图显示方向固定,擦除效果较差的技术问题。In at least some of the embodiments of the present application, after detecting the movement track of the wipe control moving from the first position to the second position, the offset angle of the wipe control can be obtained based on the movement track, and further based on the offset angle in the second position. The position displays the bitmap of the erase control, so that the direction of the erase control can be controlled according to the movement track of the erase control. Compared with the prior art, the direction of the erasing control is no longer a fixed direction, and dynamic calculation is performed at the same time of different touches, so that the direction of the erasing control is always perpendicular to the movement direction of the movement track, achieving a more realistic physical effect. Enhance the user experience, increase the interesting technical effect of the software, and solve the technical problem that the bitmap display direction of the erasing control is fixed and the erasing effect is poor in the prior art.
附图说明Description of the drawings
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described here are used to provide a further understanding of the application and constitute a part of the application. The exemplary embodiments and descriptions of the application are used to explain the application and do not constitute an improper limitation of the application. In the attached picture:
图1是根据本申请其中一实施例的一种擦除控件的处理方法的流程图;Fig. 1 is a flowchart of a processing method for erasing controls according to one of the embodiments of the present application;
图2是根据本申请其中一实施例的一种可选的根据目标像素点确定运动角度和偏移角度的示意图;FIG. 2 is a schematic diagram of optionally determining a movement angle and an offset angle according to a target pixel according to one of the embodiments of the present application;
图3是根据本申请其中一实施例的一种可选的擦除控件的处理方法的流程图;3 is a flowchart of an optional processing method for erasing controls according to one of the embodiments of the present application;
图4是根据本申请其中一实施例的另一种擦除控件的处理方法的流程图;FIG. 4 is a flowchart of another processing method for erasing controls according to one of the embodiments of the present application;
图5是根据本申请其中一实施例的一种擦除控件的处理装置的结构示意图;FIG. 5 is a schematic structural diagram of a processing device for erasing controls according to one of the embodiments of the present application;
图6是根据本申请其中一实施例的另一种擦除控件的处理装置的结构示意图;6 is a schematic structural diagram of another device for processing erasing controls according to one of the embodiments of the present application;
图7是根据本申请其中一实施例的一种擦除控件的处理设备的结构示意图;以及FIG. 7 is a schematic structural diagram of a processing device for erasing controls according to one of the embodiments of the present application; and
图8是根据本申请其中一实施例的另一种擦除控件的处理设备的结构示意图。Fig. 8 is a schematic structural diagram of another processing device for erasing controls according to one of the embodiments of the present application.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例 仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the solution of the application, the technical solutions in the embodiments of the application will be clearly and completely described below in conjunction with the drawings in the embodiments of the application. Obviously, the described embodiments are only It is a part of the embodiments of this application, not all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work should fall within the protection scope of this application.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first" and "second" in the description and claims of the application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments of the present application described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations of them are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to the clearly listed Those steps or units may include other steps or units that are not clearly listed or are inherent to these processes, methods, products, or equipment.
实施例1Example 1
根据本申请其中一实施例,提供了一种擦除控件的处理方法的实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to one of the embodiments of the present application, an embodiment of a processing method for erasing controls is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be implemented in a computer system such as a set of computer-executable instructions Execution, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than here.
本实施例提供的书擦除控件的处理方法可以由擦除控件的处理设备执行,该擦除控件的处理设备可以通过软件和/或硬件的方式实现,该擦除控件的处理设备可以是两个或多个物理实体构成,也可以是一个物理实体构成。该擦除控件的处理设备可以是电脑,手机,平板,投影仪或智能交互平板等。在实施例中,以智能交互平板为擦除控件的处理设备为例进行描述,其中,智能交互平板可以是通过触控技术对显示在显示平板上的内容进行操控和实现人机交互操作的一体化设备,其集成了投影机、电子白板、幕布、音响、电视机以及视频会议终端等一种或多种功能。The method for processing the book erasing control provided in this embodiment can be executed by the processing device of the erasing control. The processing device of the erasing control can be realized by software and/or hardware. The processing device of the erasing control can be two One or more physical entities can also be composed of one physical entity. The processing device of the erasing control can be a computer, a mobile phone, a tablet, a projector or a smart interactive tablet, etc. In the embodiment, a description is made by taking a smart interactive tablet as a processing device for erasing controls as an example, where the smart interactive tablet may be an integration of controlling the content displayed on the display tablet through touch technology and realizing human-computer interaction operations. Chemical equipment, which integrates one or more functions such as a projector, an electronic whiteboard, a screen, a stereo, a TV, and a 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. Among them, external devices include but are not limited to: mobile phones, notebook computers, USB flash drives, tablet computers, desktop computers, etc. The communication method of the data connection between the external device and the smart interactive tablet is not limited in the embodiment, and it may be a communication method such as USB connection, Internet, LAN, Bluetooth, Wi-Fi, or ZigBee protocol.
进一步的,智能交互平板与至少一个外部装置发生数据交互时,向智能交互平板发送投屏数据以使智能交互平板对投屏数据的投屏内容进行显示的外部装置作为投屏客户端,一般而言,投屏客户端可以有一个或者多个,视具体的应用场景来设置,实施例不做限定。Further, when the smart interactive tablet interacts with at least one external device, it sends projection data to the smart interactive tablet so that the external device that displays the projection content of the projection data on the smart interactive tablet serves as the 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, a projection application software is installed in the projection client and/or smart interactive tablet, and the projection application software can be pre-installed in the projection client and/or smart interactive tablet, or it can be in the projection When the client and/or smart interactive tablet launches the projection application, it is downloaded from a third-party device or server and installed and used. Among them, the third-party device is not limited in the embodiment. Specifically, the projection application software is used to obtain the content displayed by the projection client, use it as the projection data, and instruct the smart interactive tablet to display the content. In the embodiment, the screen projection client and the smart interactive tablet are simultaneously installed with the screen projection application software as an example for description. Among them, the projection application software of the projection client is used to obtain the projection data and send the projection data directly or indirectly to the smart interactive tablet. If it is sent indirectly, the screen projection client can be sent to the smart interactive tablet through a relay device. The relay device can be a wireless screen transmission device or other equipment with data transfer/processing functions. The projection application software of the smart interactive tablet is used to receive the projection data and convert the projection data into corresponding content to facilitate the display of the smart interactive tablet. It should be noted that the resolution of the display screen of the projection client is different from that of the smart interactive tablet, and the projection data is obtained based on the resolution of the projection client. Therefore, in order to display on the display of the smart interactive tablet For the 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 display content of the projected screen content and the projected screen data is substantially the same, except that the resolution is 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 screen projection client is a laptop computer, the screen projection data is a PPT in the projection state, and the interaction between the laptop computer and the smart interactive tablet is used as an example to describe the present application.
图1是根据本申请其中一实施例的一种擦除控件的处理方法的流程图,如图1所示,该方法包括如下步骤:Fig. 1 is a flowchart of a processing method for erasing controls according to one of the embodiments of the present application. As shown in Fig. 1, the method includes the following steps:
步骤S102,检测擦除控件从第一位置移动到第二位置的移动轨迹。Step S102, detecting the movement track of the wipe 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 (that is, the above-mentioned first position) to another position (that is, the above-mentioned second position). The position here can be the coordinate point where the palm generates touch data, which can be used as the center of the eraser. Therefore, it is possible to determine the movement trajectory of the user's palm, that is, the movement trajectory of the eraser. During the movement of the palm, the detection of the movement trajectory of the eraser can be realized by detecting the touch data generated by the palm.
步骤S104,基于移动轨迹,得到擦除控件的偏移角度,其中,偏移角度为擦除控件与垂直方向的夹角。Step S104: Obtain the offset angle of the erase control based on the movement track, where 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. If the angle between the vertical normal of the eraser and the vertical direction is 0°, 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°, you can determine that the direction of the eraser is horizontal.
在一种可选的方案中,为了获得更加逼真的物理效果,在手掌移动的过程中,可以实时根据用户手掌的移动轨迹,调整橡皮擦的方向,使得橡皮擦的方向垂直于橡皮擦的移动轨迹。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 track of the user's palm, so that the direction of the eraser is perpendicular to the movement of the eraser Track.
可选地,可以根据用户手掌移动过程中产生的移动轨迹的运动方向,确定橡皮擦的偏移角度,从而确定橡皮擦的方向,具体包括步骤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, so as to determine the direction of the eraser, which specifically includes steps S1042 to S1044:
步骤S1042,基于移动轨迹,得到移动轨迹的运动角度,其中,运动角度为移动轨迹与水平方向的夹角。Step S1042: Obtain the movement angle of the movement track based on the movement track, where 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. By statistically processing 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: Obtain target pixels in the movement track that meet a preset condition.
可选地,在智能交互平板进行触摸擦除的过程中,白板软件系统会定期的返回触摸事件Event给到应用程序,为了能够准确地确定移动轨迹的运动方向,可以通过如下步骤S1102至步骤S1104,得到目标像素点:Optionally, during the touch erasing process of the smart interactive tablet, the whiteboard software system will periodically return the touch event Event to the application program. In order to accurately determine the movement direction of the movement track, the following steps S1102 to S1104 , Get the target pixel:
步骤S1102,获取检测到移动轨迹中每个像素点的时间。Step S1102: Obtain the time when each pixel in the movement track is detected.
步骤S1104,基于每个像素点的时间,获取最晚时间对应的两个像素点,得到目标像素点。Step S1104, based on the time of each pixel, obtain the two pixels corresponding to the latest time to obtain the target pixel.
在一种可选的方案中,在获取到一系列Event中,可以选取最后的两个触摸点E1和E2作为目标像素点,并建立X、Y坐标系,其中,Y轴坐标向下,如图2所示,E1的坐标值为(X1,Y1)、E2的坐标值为(X2,Y2)。In an optional solution, in the acquisition of a series of Events, the last two touch points E1 and E2 can be selected as target pixels, and an X and Y coordinate system can be established, where the Y-axis coordinate is downward, such as As shown in Figure 2, the coordinate values of E1 are (X1, Y1), and the coordinate values of E2 are (X2, Y2).
步骤S112,基于目标像素点的坐标值,得到运动角度。Step S112: Obtain the motion angle based on the coordinate value of the target pixel.
可选地,可以利用几何学原理,计算出用户手掌的移动轨迹的运动角度。具体步骤包括步骤S1122至步骤S1124:Optionally, geometric principles can be used to calculate the movement angle of the movement trajectory of the user's palm. The specific steps include step S1122 to step S1124:
步骤S1122,基于两个像素点的坐标值,确定直线。Step S1122: Determine a straight line based on the coordinate values of the two pixels.
步骤S1124,获取直线的斜率,得到运动角度。Step S1124: Obtain the slope of the straight line 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 Figure 2, after obtaining the coordinate values of E1 (X1, Y1) and the coordinate values of E2 (X2, Y2), the line segment E1E2 can be determined based on the two coordinate values. , That is, determine the line where the two pixel points E1 and E2 are located, and further calculate the slope of the line to obtain the angle ∠A between the line segment E1E2 and the X axis, that is, the above-mentioned motion angle.
步骤S1044,基于运动角度,得到偏移角度。Step S1044, based on the movement angle, obtain the offset angle.
在一种可选的方案中,如图2所示,橡皮擦的方向应该垂直于线段E1E2,利用计算学原理,可以确定橡皮擦的偏移角度∠B(图2虚线夹角)应该等于∠A。In an optional scheme, 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 line in Figure 2) should be equal to ∠ A.
步骤S106,将偏移角度与预设阈值进行比较。Step S106, comparing the offset angle with a preset threshold.
具体地,上述的预设阈值可以是预先定义的阈值K,以防止触摸数据不规律与较大波动而产生的橡皮擦抖动。Specifically, the aforementioned preset threshold may be a predefined threshold K to prevent the eraser jitter caused by irregularities and large fluctuations of 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 the offset angle of the eraser ∠B is calculated, the predefined threshold K can be used to determine whether the offset angle needs to be filtered. If the offset angle deviation is large, it can be determined that the offset angle needs to be filtered. Filter by the offset angle, without changing the direction of the eraser, and continue to detect the movement track.
可选地,橡皮擦的绘制过程具体包括步骤S1082至步骤S1084:Optionally, the drawing process of the eraser specifically includes step S1082 to step S1084:
步骤S1082,基于擦除控件的偏移角度,控制擦除控件旋转。Step S1082, based on the offset angle of the erase control, control the rotation of the erase control.
步骤S1084,在第二位置显示旋转后的擦除控件的位图。Step S1084, displaying the rotated bitmap of the erase control at the second position.
在一种可选的方案中,在计算出橡皮擦的偏移角度∠B后,可以通过预先定义的阈值K对偏移角度进行适当过滤以减少橡皮擦抖动。经过过滤后的偏移角度可以直接应用于橡皮擦的显示。通过系统的Canvas的绘制API(应用程序编程接口,Application Programming Interface),可以在橡皮擦先旋转角度∠B后再进行绘制,从而可以绘制出橡皮擦的最终效果。In an optional solution, after calculating the offset angle of the eraser ∠B, the offset angle can be appropriately filtered by a predefined threshold K to reduce the eraser jitter. The filtered offset angle can be directly applied to the display of the eraser. Through the drawing API (Application Programming Interface) of Canvas of the system, the eraser can be drawn after rotating the angle ∠B, so that the final effect of the eraser can be drawn.
在本申请上述实施例中,在检测到擦除控件从第一位置移动到第二位置的移动轨迹之后,可以基于移动轨迹得到擦除控件的偏移角度,进一步基于偏移角度在第二位置显示擦除控件的位图,从而可以实现根据擦除控件的移动轨迹控制擦除控件的方向。与现有技术相比,擦除控件的方向不再是固定方向,在不同触摸的同时进行动态计算,使得擦除控件的方向始终垂直于移动轨迹的运动方向,达到了获得更逼真的物理效果,提升用户体验感,增加软件趣味性的技术效果,进而解决了现有技术中擦除控件的位图显示方向固定,擦除效果较差的技术问题。In the foregoing embodiment of the present application, after detecting the movement track of the wipe control from the first position to the second position, the offset angle of the wipe control can be obtained based on the movement track, and further based on the offset angle at the second position The bitmap of the wipe control is displayed, so that the direction of the wipe control can be controlled according to the movement track of the wipe control. Compared with the prior art, the direction of the erasing control is no longer a fixed direction, and dynamic calculation is performed at the same time of different touches, so that the direction of the erasing control is always perpendicular to the movement direction of the movement track, achieving a more realistic physical effect. Enhance the user experience, increase the interesting technical effect of the software, and solve the technical problem that the bitmap display direction of the erasing control is fixed and the erasing effect is poor in the prior art.
例如,以橡皮擦为例对本申请一种优选的实施例进行说明,图3是根据本申请其中一实施例的一种可选的擦除控件的处理方法的流程图,如图3所示:For example, taking an eraser as an example to illustrate a preferred embodiment of the present application, FIG. 3 is a flowchart of an optional erasing control processing method according to one of the embodiments of the present application, 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 to the application.
步骤S32,根据触摸点数据计算运动角度。Step S32: Calculate 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 can be taken out, and an X and Y coordinate system (Y-axis coordinate downward) can be established. Through E1(X1,Y1) and E2(X2,Y2), the angle ∠A between the line segment E1E2 and the X axis can be calculated.
步骤S33,计算橡皮擦偏移角度。Step S33: Calculate 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, the offset angle of the eraser at this time ∠B 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 of the eraser ∠B, a series of eraser offset angles can be obtained by continuously repeating the above steps. In order to prevent the eraser jitter caused by irregular and large fluctuations in 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, then go to step S36; if it is determined that the angle data need not be filtered, then 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 can first rotate the eraser by angle ∠B before drawing, and then we can get the final effect of the eraser.
步骤S36,判断触摸是否结束。Step S36, it is judged whether the touch is over.
可选地,如果确定触摸未结束,则返回步骤S31,在不断的触摸的同时进行动态计算,则可以使得最终橡皮擦方向始终垂直于笔迹运动方向,实现逼真的物理效果。如果确定触摸已结束,则结束处理流程。Optionally, if it is determined that the touch has not ended, return to step S31, and perform dynamic calculations while continuously touching, so that the final eraser direction is always perpendicular to the handwriting movement direction, realizing realistic physical effects. If it is determined that the touch has ended, the processing flow is ended.
通过本申请上述实施例提供的方案,可以通过采集用户的触摸轨迹数据,根据最新的点数据计算出当前轨迹的真实运动方向,根据运动方向计算出橡皮擦的方向并绘制显示。通过该方案,能让橡皮擦获得更逼真的物理效果,提升用户体验,增加趣味性。With the solutions provided by the above-mentioned embodiments of the present application, 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 direction of the eraser can be calculated according to the movement direction and drawn and displayed. Through this scheme, the eraser can obtain more realistic physical effects, enhance user experience, and increase interest.
实施例2Example 2
根据本申请其中一实施例,还提供了一种擦除控件的处理方法的实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统 中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to one of the embodiments of the present application, an embodiment of a processing method for erasing controls is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be implemented in a computer system such as a set of computer-executable instructions. Although the logical sequence is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than here.
本实施例提供的书擦除控件的处理方法可以由擦除控件的处理设备执行,该擦除控件的处理设备可以通过软件和/或硬件的方式实现,该擦除控件的处理设备可以是两个或多个物理实体构成,也可以是一个物理实体构成。该擦除控件的处理设备可以是电脑,手机,平板,投影仪或智能交互平板等。在实施例中,以智能交互平板为擦除控件的处理设备为例进行描述。实施例中以投屏客户端为笔记本电脑、投屏数据为放映状态的PPT并且通过笔记本电脑与智能交互平板间的交互为例,来对本申请进行示例性描述。The method for processing the book erasing control provided in this embodiment can be executed by the processing device of the erasing control. The processing device of the erasing control can be realized by software and/or hardware. The processing device of the erasing control can be two One or more physical entities can also be composed of one physical entity. The processing device of the erasing control can be a computer, a mobile phone, a tablet, a projector or a smart interactive tablet, etc. In the embodiment, description is made by taking a processing device in which a smart interactive tablet is an erasing control as an example. In the embodiment, the screen projection client is a laptop computer, the screen projection data is a PPT in the projection state, and the interaction between the laptop computer and the smart interactive tablet is used as an example to describe the present application.
图4是根据本申请其中一实施例的另一种擦除控件的处理方法的流程图,如图4所示,该方法包括如下步骤:Fig. 4 is a flowchart of another method for processing a wipe control according to one of the embodiments of the present application. As shown in Fig. 4, the method includes the following steps:
步骤S402,在第一位置显示擦除控件的位图。In step S402, the bitmap of the erase control is displayed in 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 (that is, the above-mentioned first position) to another position (that is, the above-mentioned second position). The position here can be the coordinate point where the palm generates touch data, which can be used as the center of the eraser. Therefore, it is possible to determine the movement trajectory of the user's palm, that is, the movement trajectory of the eraser. During the movement of the palm, the detection of the movement trajectory of the eraser can be realized by detecting the touch data generated by the palm.
步骤S404,在检测到擦除控件的移动轨迹之后,基于擦除控件的偏移角度,在第二位置显示擦除控件的位图,其中,移动轨迹从第一位置移动至第二位置,偏移角度是基于移动轨迹得到的,偏移角度为擦除控件与垂直方向的夹角。Step S404: After detecting the movement track of the wipe control, based on the offset angle of the wipe control, display the bitmap of the wipe control at the second position, where the movement track moves from the first position to the second position. The shift angle is obtained based on the moving track, and the shift 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. If the angle between the vertical normal of the eraser and the vertical direction is 0°, 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°, you can determine that the direction of the eraser is horizontal.
在一种可选的方案中,为了获得更加逼真的物理效果,在手掌移动的过程中,可以实时根据用户手掌的移动轨迹,调整橡皮擦的方向,使得橡皮擦的方向垂直于橡皮擦的移动轨迹。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 track of the user's palm, so that the direction of the eraser is perpendicular to the movement of the eraser Track.
在本申请上述实施例中,在第一位置显示擦除控件的位图,在检测到擦除控件从第一位置移动到第二位置的移动轨迹之后,可以基于移动轨迹得到擦除控件的偏移角 度,进一步基于偏移角度在第二位置显示擦除控件的位图,从而可以实现根据擦除控件的移动轨迹控制擦除控件的方向。与现有技术相比,擦除控件的方向不再是固定方向,在不同触摸的同时进行动态计算,使得擦除控件的方向始终垂直于移动轨迹的运动方向,达到了获得更逼真的物理效果,提升用户体验感,增加软件趣味性的技术效果,进而解决了现有技术中擦除控件的位图显示方向固定,擦除效果较差的技术问题。In the above embodiment of the present application, the bitmap of the erase control is displayed at the first position. After detecting the movement track of the erase control from the first position to the second position, the offset of the erase control can be obtained based on the movement track. The shift angle further displays the bitmap of the erase control in the second position based on the offset angle, so that the direction of the erase control can be controlled according to the movement track of the erase control. Compared with the prior art, the direction of the erasing control is no longer a fixed direction, and dynamic calculation is performed at the same time of different touches, so that the direction of the erasing control is always perpendicular to the movement direction of the movement track, achieving a more realistic physical effect. Enhance the user experience, increase the interesting technical effect of the software, and solve the technical problem that the bitmap display direction of the erasing control is fixed and the erasing effect is poor in the prior art.
实施例3Example 3
根据本申请其中一实施例,还提供了一种擦除控件的处理装置的实施例。本实施例提供的擦除控件的处理装置可以集成在擦除控件的处理设备中,该擦除控件的处理设备可以是两个或多个物理实体构成,也可以是一个物理实体构成,该擦除控件的处理设备可以是电脑、手机、平板、投影仪或智能交互平板等。在实施例中,以智能交互平板为擦除控件的处理设备为例进行描述。According to one of the embodiments of the present application, an embodiment of a processing device for erasing a control is also provided. The processing device of the erasing control provided in this embodiment can be integrated in the processing equipment of the erasing control. The processing equipment of the erasing control can be composed of two or more physical entities, or can be composed of one physical entity. The processing device other than the control can be a computer, a mobile phone, a tablet, a projector or a smart interactive tablet, etc. In the embodiment, description is made by taking a processing device in which a smart interactive tablet is an erasing control as an example.
图5是根据本申请其中一实施例的一种擦除控件的处理装置的结构示意图,如图5所示,该装置包括:检测模块52、处理模块54和显示模块56。FIG. 5 is a schematic structural diagram of a processing device for erasing controls according to one of the embodiments of the present application. As shown in FIG. 5, the device includes a detection module 52, a processing module 54 and a display module 56.
其中,检测模块54设置为检测擦除控件从第一位置移动到第二位置的移动轨迹;处理模块54设置为基于移动轨迹,得到擦除控件的偏移角度,其中,偏移角度为擦除控件与垂直方向的夹角;显示模块56设置为基于移动轨迹,得到移动轨迹的运动角度,其中,运动角度为移动轨迹与水平方向的夹角。Wherein, the detection module 54 is set to detect the movement track of the erase control from the first position to the second position; the processing module 54 is set to obtain the offset angle of the erase control based on the movement track, where the offset angle is the erase control The angle between the control and the vertical direction; the display module 56 is set to obtain the movement angle of the movement track based on the movement track, where the movement angle is the angle between the movement track and the horizontal direction.
在本申请上述实施例中,在检测到擦除控件从第一位置移动到第二位置的移动轨迹之后,可以基于移动轨迹得到擦除控件的偏移角度,进一步基于偏移角度在第二位置显示擦除控件的位图,从而可以实现根据擦除控件的移动轨迹控制擦除控件的方向。与现有技术相比,擦除控件的方向不再是固定方向,在不同触摸的同时进行动态计算,使得擦除控件的方向始终垂直于移动轨迹的运动方向,达到了获得更逼真的物理效果,提升用户体验感,增加软件趣味性的技术效果,进而解决了现有技术中擦除控件的位图显示方向固定,擦除效果较差的技术问题。In the foregoing embodiment of the present application, after detecting the movement track of the wipe control from the first position to the second position, the offset angle of the wipe control can be obtained based on the movement track, and further based on the offset angle at the second position The bitmap of the wipe control is displayed, so that the direction of the wipe control can be controlled according to the movement track of the wipe control. Compared with the prior art, the direction of the erasing control is no longer a fixed direction, and dynamic calculation is performed at the same time of different touches, so that the direction of the erasing control is always perpendicular to the movement direction of the movement track, achieving a more realistic physical effect. Enhance the user experience, increase the interesting technical effect of the software, and solve the technical problem that the bitmap display direction of the erasing control is fixed and the erasing effect is poor in the prior art.
在上述实施例的基础中,处理模块包括:第一处理子模块,设置为基于移动轨迹,得到移动轨迹的运动角度,其中,运动角度为移动轨迹与水平方向的夹角;第二处理子模块,设置为基于运动角度,得到偏移角度。On the basis of the foregoing embodiment, the processing module includes: a first processing sub-module configured to obtain a movement angle of the movement trajectory based on the movement trajectory, where the movement angle is the angle between the movement trajectory and the horizontal direction; and the second processing sub-module , Set to get the offset angle based on the movement angle.
在上述实施例的基础中,第一处理子模块包括:获取单元,设置为获取移动轨迹中满足预设条件的目标像素点;处理单元,设置为基于目标像素点的坐标值,得到运动角度。On the basis of the foregoing embodiment, the first processing sub-module includes: an acquisition unit configured to acquire target pixels meeting preset conditions in the movement track; and a processing unit configured to acquire a movement angle based on the coordinate values of the target pixel points.
在上述实施例的基础中,获取单元包括:第一获取子单元,设置为获取检测到移动轨迹中每个像素点的时间;第二获取子单元,设置为基于每个像素点的时间,获取 最晚时间对应的两个像素点,得到目标像素点。On the basis of the foregoing embodiment, the acquisition unit includes: a first acquisition subunit, configured to acquire the time when each pixel in the movement track is detected; a second acquisition subunit, configured to acquire the time based on each pixel Obtain the target pixel for the two pixels corresponding to the latest time.
在上述实施例的基础中,处理单元包括:确定子单元,设置为基于两个像素点的坐标值,确定直线;处理子单元,设置为获取直线的斜率,得到运动角度。On the basis of the foregoing embodiment, the processing unit includes: a determining sub-unit configured to determine a straight line based on the coordinate values of two pixels; and a processing sub-unit configured to obtain the slope of the straight line to obtain the motion angle.
在上述实施例的基础中,该装置还包括:比较模块,设置为将偏移角度与预设阈值进行比较;显示模块还设置为在偏移角度小于或等于预设阈值的情况下,基于偏移角度,在第二位置显示擦除控件的位图。On the basis of the foregoing embodiment, the device further includes: a comparison module configured to compare the offset angle with a preset threshold; the display module is further configured to perform a comparison based on the offset angle when the offset angle is less than or equal to the preset threshold. Move the angle to display the bitmap of the erase control in the second position.
在上述实施例的基础中,显示模块包括:控制子模块,设置为基于擦除控件的偏移角度,控制擦除控件旋转;显示子模块,设置为在第二位置显示旋转后的擦除控件的位图。On the basis of the foregoing embodiment, the display module includes: a control sub-module configured to control the rotation of the erase control based on the offset angle of the erase control; a display sub-module configured to display the rotated erase control in the second position Bitmap.
上述提供的擦除控件的处理装置可设置为执行上述实施例1中提供的擦除控件的处理方法,具备相应的功能和有益效果。The processing device for erasing controls provided above can be configured to execute the processing method for erasing controls provided in the above embodiment 1, and has corresponding functions and beneficial effects.
实施例4Example 4
根据本申请其中一实施例,还提供了一种擦除控件的处理装置的实施例。本实施例提供的擦除控件的处理装置可以集成在擦除控件的处理设备中,该擦除控件的处理设备可以是两个或多个物理实体构成,也可以是一个物理实体构成,该擦除控件的处理设备可以是电脑、手机、平板、投影仪或智能交互平板等。在实施例中,以智能交互平板为擦除控件的处理设备为例进行描述。According to one of the embodiments of the present application, an embodiment of a processing device for erasing a control is also provided. The processing device of the erasing control provided in this embodiment can be integrated in the processing equipment of the erasing control. The processing equipment of the erasing control can be composed of two or more physical entities, or can be composed of one physical entity. The processing device other than the control can be a computer, a mobile phone, a tablet, a projector or a smart interactive tablet, etc. In the embodiment, description is made by taking a processing device in which a smart interactive tablet is an erasing control as an example.
图6是根据本申请其中一实施例的另一种擦除控件的处理装置的结构示意图,如图6所示,该装置包括:第一显示模块62和第二显示模块64。FIG. 6 is a schematic structural diagram of another device for processing an erasing control according to one of the embodiments of the present application. As shown in FIG. 6, the device includes a first display module 62 and a second display module 64.
其中,第一显示模块62设置为在第一位置显示擦除控件的位图;第二显示模块64设置为在检测到擦除控件的移动轨迹之后,基于擦除控件的偏移角度,在第二位置显示擦除控件的位图,其中,移动轨迹从第一位置移动至第二位置,偏移角度是基于移动轨迹得到的,偏移角度为擦除控件与垂直方向的夹角。Wherein, the first display module 62 is set to display the bitmap of the erase control at the first position; the second display module 64 is set to display the erase control's bitmap at the first position based on the offset angle of the erase control after detecting the movement track of the erase control. The second position displays the bitmap of the erase control, 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 angle between the erase control and the vertical direction.
在本申请上述实施例中,在第一位置显示擦除控件的位图,在检测到擦除控件从第一位置移动到第二位置的移动轨迹之后,可以基于移动轨迹得到擦除控件的偏移角度,进一步基于偏移角度在第二位置显示擦除控件的位图,从而可以实现根据擦除控件的移动轨迹控制擦除控件的方向。与现有技术相比,擦除控件的方向不再是固定方向,在不同触摸的同时进行动态计算,使得擦除控件的方向始终垂直于移动轨迹的运动方向,达到了获得更逼真的物理效果,提升用户体验感,增加软件趣味性的技术效果,进而解决了现有技术中擦除控件的位图显示方向固定,擦除效果较差的技术问题。In the above embodiment of the present application, the bitmap of the erase control is displayed at the first position. After detecting the movement track of the erase control from the first position to the second position, the offset of the erase control can be obtained based on the movement track. The shift angle further displays the bitmap of the erase control in the second position based on the offset angle, so that the direction of the erase control can be controlled according to the movement track of the erase control. Compared with the prior art, the direction of the erasing control is no longer a fixed direction, and dynamic calculation is performed at the same time of different touches, so that the direction of the erasing control is always perpendicular to the movement direction of the movement track, achieving a more realistic physical effect. Enhance the user experience, increase the interesting technical effect of the software, and solve the technical problem that the bitmap display direction of the erasing control is fixed and the erasing effect is poor in the prior art.
上述提供的擦除控件的处理装置可用于执行上述实施例2中提供的擦除控件的处 理方法,具备相应的功能和有益效果。The processing device for erasing controls provided above can be used to execute the processing method for erasing controls provided in the above-mentioned embodiment 2, and has corresponding functions and beneficial effects.
实施例5Example 5
根据本申请其中一实施例,提供了一种擦除控件的处理设备的实施例。According to one of the embodiments of the present application, 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 one of the embodiments of the present application. 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 of the erasing control may be one or more. One processor 20 is taken as an example in FIG. 7. The detection device 10 and the processor 20 of the processing device of the erasing control can be connected by a bus or in other ways. In FIG. 7, the connection by a bus is taken as an example. In the embodiment, the processing device for erasing the control may be a computer, a mobile phone, a tablet, a projector or a smart interactive tablet, etc. In the embodiment, the processing device of the wipe control is an intelligent interactive tablet as an example for description.
检测装置10可以是智能交互平板中实现触摸功能的检测装置10,其可以是电容传感器、电磁传感器或者红外触摸框,检测装置10设置为检测智能交互平板的显示屏上的触摸操作,并将响应的信号发送至处理器20或者其他装置。可选地,当检测装置10为红外触摸框时,该红外触摸框设置在智能交互平板的显示屏的四周,其还可以设置为接收红外信号,并将该红外信号发送至处理器20或者其他设备。The detection device 10 may be a detection device 10 that implements a touch function in a smart interactive tablet, which may be a capacitive sensor, an electromagnetic sensor or an infrared touch frame. The detection device 10 is configured to detect touch operations on the display screen of the smart interactive tablet and respond The signal is sent to the processor 20 or other devices. Optionally, when the detection device 10 is an infrared touch frame, the infrared touch frame is arranged around the display screen of the smart interactive tablet, and it can also be set to receive an infrared signal and send the infrared signal to the processor 20 or other equipment.
处理器20通过运行存储在存储器中的软件程序、指令以及模块,从而执行设备的各种功能应用以及数据处理,即实现上述的擦除控件的处理方法。该擦除控件的处理设备中的存储器可以是一个或者多个,存储器作为一种计算机可读存储介质,可设置为存储软件程序、计算机可执行程序以及模块,如本申请任意实施例所述的擦除控件的处理方法对应的程序指令/模块(例如,擦除控件的处理装置中的检测模块52、处理模块54和显示模块56)。存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据设备的使用所创建的数据等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器可进一步包括相对于处理器20远程设置的存储器,这些远程存储器可以通过网络连接至设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The processor 20 executes various functional applications and data processing of the device by running software programs, instructions, and modules stored in the memory, that is, realizes the above-mentioned erasing control processing method. The memory in the processing device of the erasing control can be one or more. As a computer-readable storage medium, the memory can be configured to store software programs, computer-executable programs, and modules, as described in any of the embodiments of this application. Program instructions/modules corresponding to the processing method of the erase control (for example, the detection module 52, the processing module 54 and the display module 56 in the processing device of the erase control). The memory may mainly include a program storage area and a data storage area. The program storage area may store an operating system and an application program required for at least one function; the data storage area may store data created according to the use of the device. In addition, the memory 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, a flash memory device, or other non-volatile solid-state storage devices. In some examples, the memory may further include a memory remotely provided with respect to the processor 20, 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, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
具体地,实施例中,检测装置10设置为检测擦除控件从第一位置移动到第二位置的移动轨迹;处理器20执行存储器中存储的一个或多个程序时,具体实现如下操作:基于移动轨迹,得到擦除控件的偏移角度,其中,偏移角度为擦除控件与垂直方向的夹角;基于移动轨迹,得到移动轨迹的运动角度,其中,运动角度为移动轨迹与水平方向的夹角。Specifically, in the embodiment, the detection device 10 is configured to detect the movement track of the wipe 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: Move the trajectory 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 trajectory, get the movement angle of the movement trajectory, where the movement angle is the difference between the movement trajectory and the horizontal direction Included angle.
在上述实施例的基础中,一个或多个处理器20为了实现得到擦除控件的偏移角度, 具体实现如下操作:基于移动轨迹,得到移动轨迹的运动角度,其中,运动角度为移动轨迹与水平方向的夹角;基于运动角度,得到偏移角度。On the basis of the foregoing embodiment, in order to obtain the offset angle of the erase control, one or more processors 20 specifically implement the following operations: based on the movement trajectory, obtain the movement angle of the movement trajectory, where the movement angle is the movement trajectory and The included angle in the horizontal direction; based on the movement angle, the offset angle is obtained.
在上述实施例的基础中,一个或多个处理器20为了实现得到移动轨迹的运动角度,具体实现如下操作:获取移动轨迹中满足预设条件的目标像素点;基于目标像素点的坐标值,得到运动角度。On the basis of the foregoing embodiment, in order to obtain the movement angle of the movement trajectory, one or more processors 20 specifically implement the following operations: obtain a target pixel in the movement trajectory that meets a preset condition; based on the coordinate value of the target pixel, Get the movement angle.
在上述实施例的基础中,一个或多个处理器20为了实现获取到目标像素点,具体实现如下操作:获取检测到移动轨迹中每个像素点的时间;基于每个像素点的时间,获取最晚时间对应的两个像素点,得到目标像素点。On the basis of the foregoing embodiment, in order to obtain the target pixel, one or more processors 20 specifically implement the following operations: obtain the time when each pixel in the movement track is detected; and obtain the time based on the time of each pixel. Obtain the target pixel for the two pixels corresponding to the latest time.
在上述实施例的基础中,一个或多个处理器20为了实现得到运动角度,具体实现如下操作:基于两个像素点的坐标值,确定直线;获取直线的斜率,得到运动角度。On the basis of the foregoing 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 pixels; obtain the slope of the straight line to obtain the movement angle.
在上述实施例的基础中,一个或多个处理器20为了实现在第二位置显示擦除控件的位图,具体实现如下操作:将偏移角度与预设阈值进行比较;在偏移角度小于或等于预设阈值的情况下,基于偏移角度,在第二位置显示擦除控件的位图。On the basis of the foregoing 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 Or when it is equal to the preset threshold, based on the offset angle, the bitmap of the erase control is displayed in the second position.
在上述实施例的基础中,一个或多个处理器20为了实现在第二位置显示擦除控件的位图,具体实现如下操作:基于擦除控件的偏移角度,控制擦除控件旋转;在第二位置显示旋转后的擦除控件的位图。On the basis of the foregoing 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: control the rotation of the erase control based on the offset angle of the erase control; The second position displays the bitmap of the rotated erase control.
上述提供的擦除控件的处理设备可用于执行上述实施例1中提供的擦除控件的处理方法,具备相应的功能和有益效果。The processing device for erasing controls provided above can be used to execute the processing method for erasing controls provided in the above embodiment 1, and has corresponding functions and beneficial effects.
实施例6Example 6
根据本申请其中一实施例,还提供了一种擦除控件的处理设备的实施例。According to one of the embodiments of the present application, an embodiment of a processing device for erasing controls 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 one of the embodiments of the present application. 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 of the erasing control may be connected by a bus or in other ways. 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 configured to display data according to instructions from the processor 20, and is also configured to receive touch operations on the display 30 and send 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, which is arranged around the display 30, and it can also be set 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 set to display the bitmap of the erase control at the first position; the measuring device 10 is set to detect the movement track of the erase control from the first position to the second position; the processor 20 executes the memory When one or more programs are stored in the program, the following operations are specifically implemented: after detecting the movement track of the erasing control, based on the offset angle of the erasing control, control the display to display the bitmap of the erasing control in the second position, where , 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 controls provided above can be used to execute the processing method for erasing controls provided in the foregoing embodiment 2, and has corresponding functions and beneficial effects.
实施例7Example 7
根据本申请其中一实施例,还提供了一种存储介质的实施例,存储介质包括存储的程序,其中,在程序运行时控制存储介质所在设备执行上述任意实施例中提供的擦除控件的处理方法。According to one of the embodiments of the present application, an embodiment of a storage medium is also provided. The storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the process of erasing control provided in any of the above embodiments. method.
实施例8Example 8
根据本申请其中一实施例,还提供了一种处理器的实施例,处理器设置为运行程序,其中,程序运行时执行上述任意实施例中提供的擦除控件的处理方法。According to one of the embodiments of the present application, there is also provided an embodiment of a processor, the processor is set to run a program, wherein the program executes the erasing control processing method provided in any of the foregoing embodiments when the program is running.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the foregoing embodiments of the present application are for description only, and do not represent the superiority of the embodiments.
在本申请的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present application, the description of each embodiment has its own focus. For parts that are not described in detail in an 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 can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units may be a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not implemented. In addition, the displayed 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 the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时, 可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of this application essentially or the part that contributes to the existing technology 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 to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage media include: 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 code .
以上所述仅是本申请的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above are only the preferred embodiments of this application. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of this application, several improvements and modifications can be made, and these improvements and modifications are also Should be regarded as the scope of protection of this application.
工业实用性Industrial applicability
如上所述,本申请至少部分实施例提供的擦除控件的处理方法、装置和设备具有以下有益效果:擦除控件的方向不再是固定方向,在不同触摸的同时进行动态计算,使得擦除控件的方向始终垂直于移动轨迹的运动方向,达到了获得更逼真的物理效果,提升用户体验感,增加软件趣味性的技术效果,进而解决了现有技术中擦除控件的位图显示方向固定,擦除效果较差的技术问题。As described above, the processing method, device and device for erasing controls provided by at least some of the embodiments of the present application have the following beneficial effects: the direction of erasing controls is no longer a fixed direction, and dynamic calculation is performed at the same time of different touches, so that the erasing The direction of the control is always perpendicular to the movement direction of the movement track, achieving a more realistic physical effect, improving user experience, and increasing the technical effect of software interest, thereby solving the problem of fixing the bitmap display direction of the erase control in the prior art , The technical problem of poor erasing effect.

Claims (14)

  1. 一种擦除控件的处理方法,包括:A processing method for erasing controls includes:
    检测擦除控件从第一位置移动到第二位置的移动轨迹;Detecting the movement track of the erase control moving from the first position to the second position;
    基于所述移动轨迹,得到所述擦除控件的偏移角度,其中,所述偏移角度为所述擦除控件与垂直方向的夹角;Obtain the offset angle of the erase control based on the movement track, where the offset angle is the angle between the erase control and the vertical direction;
    基于所述偏移角度,在所述第二位置显示所述擦除控件的位图。Based on the offset angle, the bitmap of the erase control is displayed at the second position.
  2. 根据权利要求1所述的方法,其中,基于所述移动轨迹,得到所述擦除控件的偏移角度,包括:The method according to claim 1, wherein obtaining the offset angle of the erase control based on the movement track comprises:
    基于所述移动轨迹,得到所述移动轨迹的运动角度,其中,所述运动角度为所述移动轨迹与水平方向的夹角;Based on the movement trajectory, the movement angle of the movement trajectory is obtained, where the movement angle is the angle between the movement trajectory and the horizontal direction;
    基于所述运动角度,得到所述偏移角度。Based on the movement angle, the offset angle is obtained.
  3. 根据权利要求2所述的方法,其中,基于所述移动轨迹,得到所述移动轨迹的运动角度,包括:The method according to claim 2, wherein, based on the movement trajectory, obtaining the movement angle of the movement trajectory comprises:
    获取所述移动轨迹中满足预设条件的目标像素点;Acquiring target pixels in the movement track that meet a preset condition;
    基于所述目标像素点的坐标值,得到所述运动角度。Based on the coordinate value of the target pixel point, the motion angle is obtained.
  4. 根据权利要求3所述的方法,其中,获取所述移动轨迹中满足预设条件的目标像素点,包括:The method according to claim 3, wherein obtaining the target pixel points in the movement track that meet a preset condition comprises:
    获取检测到所述移动轨迹中每个像素点的时间;Acquiring the time when each pixel in the movement track is detected;
    基于所述每个像素点的时间,获取最晚时间对应的两个像素点,得到所述目标像素点。Based on the time of each pixel, two pixels corresponding to the latest time are obtained to obtain the target pixel.
  5. 根据权利要求4所述的方法,其中,基于所述目标像素点的坐标值,得到所述运动角度,包括:The method according to claim 4, wherein obtaining the motion angle based on the coordinate value of the target pixel point comprises:
    基于所述两个像素点的坐标值,确定直线;Determining a straight line based on the coordinate values of the two pixel points;
    获取所述直线的斜率,得到所述运动角度。Obtain the slope of the straight line to obtain the motion angle.
  6. 根据权利要求1所述的方法,其中,在基于所述偏移角度,在所述第二位置显示所述擦除控件的位图之前,所述方法还包括:The method according to claim 1, wherein, before displaying the bitmap of the erasing control in the second position based on the offset angle, the method further comprises:
    将所述偏移角度与预设阈值进行比较;Comparing the offset angle with a preset threshold;
    在所述偏移角度小于或等于所述预设阈值的情况下,基于所述偏移角度,在 所述第二位置显示所述擦除控件的位图。In a case where 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.
  7. 根据权利要求1所述的方法,其中,基于所述偏移角度,在所述第二位置显示所述擦除控件的位图,包括:The method of claim 1, wherein, based on the offset angle, displaying the bitmap of the erase control at the second position comprises:
    基于所述擦除控件的偏移角度,控制所述擦除控件旋转;Controlling the rotation of the erasing control based on the offset angle of the erasing control;
    在所述第二位置显示旋转后的擦除控件的位图。The bitmap of the wipe control after rotation is displayed in the second position.
  8. 一种擦除控件的处理方法,包括:A processing method for erasing controls includes:
    在第一位置显示擦除控件的位图;Display the bitmap of the erase control in the first position;
    在检测到所述擦除控件的移动轨迹之后,基于所述擦除控件的偏移角度,在第二位置显示所述擦除控件的位图,其中,所述移动轨迹从所述第一位置移动至所述第二位置,所述偏移角度是基于所述移动轨迹得到的,所述偏移角度为所述擦除控件与垂直方向的夹角。After detecting the movement track of the wipe control, based on the offset angle of the wipe control, display the bitmap of the wipe control in a second position, wherein the movement track is from the first position When moving to the second position, 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.
  9. 一种擦除控件的处理装置,包括:A processing device for erasing controls includes:
    检测模块,设置为检测擦除控件从第一位置移动到第二位置的移动轨迹;The detection module is configured to detect the movement track of the erase control moving from the first position to the second position;
    处理模块,设置为基于所述移动轨迹,得到所述擦除控件的偏移角度,其中,所述偏移角度为所述擦除控件与垂直方向的夹角;A processing module, configured to obtain an offset angle of the erase control based on the movement track, wherein the offset angle is an angle between the erase control and a vertical direction;
    显示模块,设置为基于所述偏移角度,在所述第二位置显示所述擦除控件的位图。The display module is configured to display the bitmap of the erasing control in the second position based on the offset angle.
  10. 一种擦除控件的处理装置,包括:A processing device for erasing controls includes:
    第一显示模块,设置为在第一位置显示擦除控件的位图;The first display module is set to display the bitmap of the erase control in the first position;
    第二显示模块,设置为在检测到所述擦除控件的移动轨迹之后,基于所述擦除控件的偏移角度,在第二位置显示所述擦除控件的位图,其中,所述移动轨迹从所述第一位置移动至所述第二位置,所述偏移角度是基于所述移动轨迹得到的,所述偏移角度为所述擦除控件与垂直方向的夹角。The second display module is configured to display the bitmap of the erasing control in a second position based on the offset angle of the erasing control after detecting the movement track of the erasing control, wherein the movement The trajectory moves from the first position to the second position, the offset angle is obtained based on the movement trajectory, and the offset angle is the angle between the erase control and the vertical direction.
  11. 一种擦除控件的处理设备,包括:A processing device for erasing controls, including:
    检测装置,设置为检测擦除控件从第一位置移动到第二位置的移动轨迹;A detection device, configured to detect the movement track of the erase control moving from the first position to the second position;
    处理器,与检测装置连接,设置为基于所述移动轨迹,得到所述擦除控件的偏移角度,并基于所述偏移角度,控制所述擦除控件的位图在所述第二位置显示,其中,所述偏移角度为所述擦除控件与垂直方向的夹角。The processor, connected to the detection device, is configured to obtain the offset angle of the erase control based on the movement track, and control the bitmap of the erase control to be at the second position based on the offset angle Display, wherein the offset angle is the angle between the erasing control and the vertical direction.
  12. 一种擦除控件的处理设备,包括:A processing device for erasing controls, including:
    显示器,设置为在第一位置显示擦除控件的位图;The display is set to display the bitmap of the erase control in the first position;
    检测装置,设置为检测所述擦除控件的移动轨迹,其中,所述移动轨迹从所述第一位置移动至第二位置;A detection device configured to detect the movement track of the erasing control, wherein the movement track moves from the first position to the second position;
    处理器,与所述检测装置和所述显示器连接,设置为在检测到所述擦除控件的移动轨迹之后,基于所述擦除控件的偏移角度,控制所述显示器在第二位置显示所述擦除控件的位图,其中,所述偏移角度是基于所述移动轨迹得到的,所述偏移角度为所述擦除控件与垂直方向的夹角。The processor is connected to the detection device and the display, and is configured to control the display to display the display at the second position based on the offset angle of the wipe control after detecting the movement track of the wipe control In the bitmap of the erasing control, the offset angle is obtained based on the movement track, and the offset angle is the angle between the erasing control and the vertical direction.
  13. 一种存储介质,所述存储介质包括存储的程序,其中,在所述程序运行时控制所述存储介质所在设备执行权利要求1至8中任意一项所述的擦除控件的处理方法。A storage medium, the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the erase control processing method according to any one of claims 1 to 8.
  14. 一种处理器,所述处理器设置为运行程序,其中,所述程序运行时执行权利要求1至8中任意一项所述的擦除控件的处理方法。A processor configured to run a program, wherein the method for processing an erasure control according to any one of claims 1 to 8 is executed when the program is running.
PCT/CN2020/082851 2019-04-02 2020-04-01 Erase control processing method, apparatus, and device WO2020200255A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2020200255A1 true WO2020200255A1 (en) 2020-10-08

Family

ID=67169864

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/082851 WO2020200255A1 (en) 2019-04-02 2020-04-01 Erase control processing method, apparatus, and device

Country Status (2)

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

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110007838B (en) * 2019-04-02 2020-12-11 广州视源电子科技股份有限公司 Processing method, device and equipment for erasing control
CN111679782B (en) * 2020-06-10 2021-08-31 腾讯科技(深圳)有限公司 Erasing method and related device
CN112905092B (en) * 2021-02-22 2023-07-07 深圳市康冠商用科技有限公司 Method and device for adjusting erasure control, electronic equipment and storage medium

Citations (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
US20170090733A1 (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
CN108733296A (en) * 2018-04-28 2018-11-02 广州视源电子科技股份有限公司 Method for deleting, device and the equipment of written handwriting
CN110007838A (en) * 2019-04-02 2019-07-12 广州视源电子科技股份有限公司 Wipe processing method, device and the equipment of control

Family Cites Families (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 Switching system of icon
US9916017B2 (en) * 2014-07-03 2018-03-13 Adobe Systems Incorporated Smart eraser to erase digital strokes
JP6490951B2 (en) * 2014-11-25 2019-03-27 シャープ株式会社 Drawing image erasing method
CN104484121A (en) * 2014-12-29 2015-04-01 广州视睿电子科技有限公司 Method and device for erasing contents on touch screen
CN105302437B (en) * 2015-10-13 2019-10-29 联想(北京)有限公司 A kind of erasing rubber size switching method and electronic equipment
CN106502607B (en) * 2016-10-19 2019-02-22 广州视睿电子科技有限公司 A kind of line segment method for deleting and device
CN106569692B (en) * 2016-10-26 2020-10-13 海信视像科技股份有限公司 Gesture erasing method and device
CN108021246A (en) * 2017-10-12 2018-05-11 上海优熠电子科技有限公司 Touch pad blackboard eraser prevents method for deleting by mistake
CN109032463B (en) * 2018-07-19 2019-11-05 掌阅科技股份有限公司 Take down notes method for deleting, electronic equipment and computer storage medium

Patent Citations (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
US20170090733A1 (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
CN108733296A (en) * 2018-04-28 2018-11-02 广州视源电子科技股份有限公司 Method for deleting, device and the equipment of written handwriting
CN110007838A (en) * 2019-04-02 2019-07-12 广州视源电子科技股份有限公司 Wipe processing method, device and the equipment of control

Also Published As

Publication number Publication date
CN110007838A (en) 2019-07-12
CN110007838B (en) 2020-12-11

Similar Documents

Publication Publication Date Title
WO2020200255A1 (en) Erase control processing method, apparatus, and device
US20180364865A1 (en) Touch control method, user equipment, input processing method, mobile terminal and intelligent terminal
WO2017063324A1 (en) Window displaying method and mobile terminal
US20150077365A1 (en) System, information processing apparatus, and image display method
WO2019237662A1 (en) Display interface control method, device and equipment, and storage medium
JP6798288B2 (en) Communication terminals, communication systems, video output methods, and programs
CN108733296B (en) Method, device and equipment for erasing handwriting
CN108200419B (en) Projection method and electronic equipment
US9547370B2 (en) Systems and methods for enabling fine-grained user interactions for projector-camera or display-camera systems
US11294495B2 (en) Electronic whiteboard, method for image processing in electronic whiteboard, and recording medium containing computer program of electronic whiteboard
JP2017102635A (en) Communication terminal, communication system, communication control method, and program
CN110928614A (en) Interface display method, device, equipment and storage medium
CN108693997B (en) Touch control method and device of intelligent interaction panel and intelligent interaction panel
JP6540367B2 (en) Display control apparatus, communication terminal, communication system, display control method, and program
WO2018059552A1 (en) Screen display control method, device and mobile terminal, and computer storage medium
US20160266648A1 (en) Systems and methods for interacting with large displays using shadows
US20170185269A1 (en) Display management solution
WO2019242457A1 (en) Application page displaying method and mobile terminal
WO2024046203A1 (en) Content display method and apparatus
WO2024037415A1 (en) Screen mirroring content display method and apparatus, device and storage medium
WO2017084469A1 (en) Touch control method, user equipment, input processing method and mobile terminal
WO2019104533A1 (en) Video playing method and apparatus
JP6589621B2 (en) Display device, camera position control method, and program
JP2018050285A (en) Communication terminal, communication system, output method, and program
JP2014238449A (en) Image processor

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: 20782383

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20782383

Country of ref document: EP

Kind code of ref document: A1