CN112306346A - Set square drawing method and device, storage medium and electronic whiteboard - Google Patents

Set square drawing method and device, storage medium and electronic whiteboard Download PDF

Info

Publication number
CN112306346A
CN112306346A CN202011184349.7A CN202011184349A CN112306346A CN 112306346 A CN112306346 A CN 112306346A CN 202011184349 A CN202011184349 A CN 202011184349A CN 112306346 A CN112306346 A CN 112306346A
Authority
CN
China
Prior art keywords
electronic whiteboard
set square
screen display
display interface
touch event
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
CN202011184349.7A
Other languages
Chinese (zh)
Other versions
CN112306346B (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 Lango Electronic Science and Technology Co Ltd
Original Assignee
Guangzhou Lango Electronic Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Lango Electronic Science and Technology Co Ltd filed Critical Guangzhou Lango Electronic Science and Technology Co Ltd
Priority to CN202011184349.7A priority Critical patent/CN112306346B/en
Publication of CN112306346A publication Critical patent/CN112306346A/en
Application granted granted Critical
Publication of CN112306346B publication Critical patent/CN112306346B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

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)

Abstract

The invention discloses a set square plotting method and device based on an electronic whiteboard, a storage medium and the electronic whiteboard; wherein the method comprises the following steps: starting a user gesture detection program on a screen display interface of the electronic whiteboard based on a user calling instruction, and acquiring current gesture information of a user; performing information encapsulation on the current gesture information to generate an interface touch event of a user; judging whether the interface touch event is a touch event for calling the operation control of a set square tool on the screen display interface of the electronic whiteboard; if not, acquiring a touch point coordinate position in the touch interface event, and performing corresponding graph drawing operation on the screen display interface of the electronic whiteboard based on the touch point coordinate position. In the embodiment of the invention, the drawing of the specified regular graph can be completed by introducing a set square tool in an auxiliary way, so that the teaching efficiency of the electronic whiteboard is improved.

Description

Set square drawing method and device, storage medium and electronic whiteboard
Technical Field
The invention relates to the technical field of whiteboard teaching, in particular to a set square plotting method and device based on an electronic whiteboard, a storage medium and the electronic whiteboard.
Background
Based on the current common electronic whiteboard teaching scene application, the electronic whiteboard often lacks the support of drawing tools, only simpler graphs can be drawn, and graphs which are regular and need to be accurate to specific length or specific angle often cannot meet the requirements of users, especially the graphs are very prominent in the field of mathematical education application, so that the teaching is very difficult, and the teaching efficiency is low.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides a set square plotting method and device based on an electronic whiteboard, a storage medium and the electronic whiteboard.
In order to solve the above problems, the present invention provides a method for drawing a set square based on an electronic whiteboard, comprising:
starting a user gesture detection program on a screen display interface of the electronic whiteboard based on a user calling instruction, and acquiring current gesture information of a user;
performing information encapsulation on the current gesture information to generate an interface touch event of a user;
judging whether the interface touch event is a touch event for calling the operation control of a set square tool on the screen display interface of the electronic whiteboard;
if not, acquiring a touch point coordinate position in the interface touch event, and performing corresponding graph drawing operation on the electronic whiteboard screen display interface based on the touch point coordinate position.
Optionally, the acquiring current gesture information of the user includes:
after the electronic whiteboard starts a user gesture detection program, the contact operation state of the hand of the user and the screen of the electronic whiteboard is collected and identified, and the current gesture information of the user is output.
Optionally, the determining whether the interface touch event is a touch event for invoking operation control of a set square tool on the display interface of the electronic whiteboard screen includes:
acquiring region position information of a set square tool operation control assembly on the screen display interface of the electronic whiteboard, and judging whether the contact coordinate position in the current gesture information falls in the region position;
if so, judging that the interface touch event is a touch event for calling the operation control of a set square tool on the screen display interface of the electronic whiteboard;
if not, judging that the interface touch event is a touch event for calling the drawing operation control of the interface graph on the screen display interface of the electronic whiteboard.
Optionally, after determining that the interface touch event is a touch event for invoking operation control of a set square tool on the display interface of the electronic whiteboard screen, the method includes:
and acquiring a touch point coordinate position in the interface touch event, and performing corresponding conventional control operation on a set square tool on the screen display interface of the electronic whiteboard based on the touch point coordinate position.
Optionally, the performing, on the basis of the contact coordinate position, a corresponding conventional control operation on a set square tool on the electronic whiteboard screen display interface includes:
based on the contact coordinate position, positioning to a first functional area in the area position, and deleting a set square tool on the screen display interface of the electronic whiteboard; or the like, or, alternatively,
positioning a second functional area in the area position based on the contact coordinate position, and rotating a set square tool on the screen display interface of the electronic whiteboard; or the like, or, alternatively,
and based on the contact coordinate position locating to a third functional area in the area position, zooming the set square tool on the screen display interface of the electronic whiteboard.
Optionally, the performing, on the electronic whiteboard screen display interface, a corresponding graphic drawing operation based on the contact coordinate position includes:
obtaining three vertex coordinate positions of the set square tool on the screen display interface of the electronic whiteboard, wherein the three vertex coordinate positions are P respectively1Point, P2Point and P3A point, and the contact coordinate position is an M point;
based on P1MP formed by point and M point1Line segment, P2MP formed by point and M point2Line segment and P3MP formed by point and M point3Segment, calculating MP1Line segment, MP2Segment and MP3The sum of included angles between the line segments;
judging whether the contact coordinate position falls in the triangular ruler tool on the screen display interface of the electronic whiteboard or not based on the included angle sum;
and after judging that the contact coordinate position falls in the triangular ruler tool, moving the triangular ruler tool on the screen display interface of the electronic whiteboard.
Optionally, after determining whether the position of the contact coordinate is located inside the triangular ruler tool on the display interface of the electronic whiteboard screen, the method further includes:
after the contact point coordinate position is judged not to fall into the triangular ruler tool, three side lengths of the triangular ruler tool are obtained and are respectively P1P2Line segment, P2P3Line segment and P1P3A line segment;
from P1P2Line segment, P2P3Line segment and P1P3Obtaining the nearest P from the M point in the line segmentxPyLine segment and judging M points to PxPyWhether the distance between the line segments is within a preset line drawing range or not;
at the point of judging M to PxPyAfter the distance between the line segments is within the preset drawing range, drawing P on the display interface of the screen of the electronic whiteboardxPyAnd returning to acquire the current gesture information of the user again by the line with the matched line segment.
In addition, an embodiment of the present invention further provides a set square drawing device based on an electronic whiteboard, where the device includes:
the starting and obtaining module is used for starting a user gesture detection program on a screen display interface of the electronic whiteboard based on a user calling instruction and obtaining current gesture information of a user;
the packaging module is used for performing information packaging on the current gesture information to generate an interface touch event of a user;
the judging module is used for judging whether the interface touch event is a touch event for calling the operation control of a set square tool on the screen display interface of the electronic whiteboard;
and the drawing operation module is used for acquiring the contact point coordinate position in the interface touch event after judging that the interface touch event is a touch event for calling the operation control of a set square tool on the electronic whiteboard screen display interface, and performing corresponding graph drawing operation on the electronic whiteboard screen display interface based on the contact point coordinate position.
In addition, an embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the triangular ruler plotting method as described in any one of the above.
In addition, an embodiment of the present invention further provides an electronic whiteboard, which includes:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: performing a set square mapping method according to any of the above.
In the embodiment of the invention, by introducing the set square tool and executing the related control operation on the set square tool, a teacher can be assisted to rapidly draw the graph with the specified rule, so that the teaching content of the teacher can be more conveniently and clearly expressed, and the teaching efficiency and the teaching quality of the electronic whiteboard applied to the education field are improved; the teaching tool in real life is mapped to the screen interface of the electronic whiteboard, and teaching is carried out through the interactive design of gesture operation, so that more interestingness and attraction can be brought to education and teaching.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for drawing an electronic whiteboard-based set square in an embodiment of the present invention;
fig. 2 is a schematic structural component diagram of an electronic whiteboard-based set square drawing device in an embodiment of the present invention;
fig. 3 is a schematic structural component diagram of the electronic whiteboard in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Examples
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a method for drawing a set square based on an electronic whiteboard according to an embodiment of the present invention.
As shown in fig. 1, a method for drawing a set square based on an electronic whiteboard includes:
s101, starting a user gesture detection program on a screen display interface of the electronic whiteboard based on a user calling instruction, and acquiring current gesture information of a user;
in the implementation process of the invention, when a user starts the electronic whiteboard, an instruction is automatically called to start a user gesture detection program on a screen display interface of the electronic whiteboard, the contact operation state of the hand of the user and the screen of the electronic whiteboard is collected and identified, and the current gesture information of the user is output.
The electronic whiteboard depends on the operation of a capacitive touch screen, and the capacitive touch screen is mainly formed by plating a transparent film body layer on a glass screen and adding a piece of protective glass outside the film body layer. In addition, long and narrow electrodes are required to be plated on four sides of the touch screen, so that when a user touches the screen through a finger, a 'coupling capacitor' is formed between an electric field of a human body and an internal film body layer, currents generated by electrodes on the four sides of the screen flow to a contact position, specific coordinate information of the contact position is accurately calculated by collecting current values relative to the four sides of the screen through the user gesture detection program based on the fact that the current intensity is in direct proportion to the distance between the finger and the electrode, and the anti-interference capability of the user during touch is strong.
S102, performing information packaging on the current gesture information to generate an interface touch event of a user;
in the implementation process of the invention, according to the current gesture information recognized and output by the user gesture detection program, a processor of the capacitive touch screen operates an android system to package the current gesture information into a standard universal interface touch event, so that an application program of the electronic whiteboard can call and recognize.
S103, judging whether the interface touch event is a touch event for calling the operation control of a set square tool on the display interface of the electronic whiteboard screen;
in the implementation process of the invention, the area position information of the set square tool operation control assembly on the screen display interface of the electronic whiteboard is acquired, and whether the contact coordinate position in the current gesture information falls in the area position is judged, wherein the judgment result comprises the following steps:
(1) if the touch point coordinate position falls in the area position, judging that the interface touch event is a touch event for calling the operation control of a set square tool on the screen display interface of the electronic whiteboard, and continuing to execute the step S104;
(2) if the touch point coordinate position does not fall into the area position, judging that the interface touch event is a touch event for calling the drawing operation control of the interface graph on the screen display interface of the electronic whiteboard, and continuing to jump to execute the step S105.
S104, acquiring a contact coordinate position in the interface touch event, and performing corresponding conventional control operation on a set square tool on the screen display interface of the electronic whiteboard based on the contact coordinate position;
in the implementation process of the invention, as the application program of the electronic whiteboard preferentially performs further functional area division on the area position information of the set square tool operation control assembly and displays the information on the screen display interface of the electronic whiteboard, the set square tool on the screen display interface of the electronic whiteboard can be deleted by positioning the first functional area in the area position based on the coordinate position of the contact; or positioning the contact point coordinate position to a second functional area in the area position, and rotating the set square tool on the screen display interface of the electronic whiteboard; or based on the contact point coordinate position locating to a third functional area in the area position, zooming the set square tool on the screen display interface of the electronic whiteboard. In the embodiment of the present invention, for the rotation and scaling processing of the triangular ruler tool, specific parameters (including a rotation angle, a scaling ratio, and the like) are manually entered to enable an application program of the electronic whiteboard to respond to a user requirement, perform a corresponding operation on the triangular ruler tool, and then return to step S101.
And S105, acquiring a touch point coordinate position in the interface touch event, and performing corresponding graph drawing operation on the electronic whiteboard screen display interface based on the touch point coordinate position.
The implementation process of the invention comprises the following steps:
(1) obtaining three vertex coordinate positions of the set square tool on the screen display interface of the electronic whiteboard, wherein the three vertex coordinate positions are P respectively1Point, P2Point and P3Dots, and theThe position of the contact point coordinate is M point; wherein, P1The coordinates of the point are (x)1,y1)、P2The coordinates of the point are (x)2,y2)、P3The coordinates of the point are (x)3,y3) The coordinate of the M point is (x, y);
(2) based on P1MP formed by point and M point1Line segment, P2MP formed by point and M point2Line segment and P3MP formed by point and M point3Segment, calculating MP1Line segment, MP2Segment and MP3The sum of included angles between the line segments;
specifically, according to each parameter point provided in step (1), the following can be obtained:
Figure BDA0002747647300000071
computing MP1Segment and MP2Angle theta between line segments1Comprises the following steps:
Figure BDA0002747647300000072
MP1·MP2=(X1-x)(x2-x)+(y1-y)(y2-y)
Figure BDA0002747647300000073
Figure BDA0002747647300000074
using the above mentioned correlation formula, MP can be solved by the same method1Segment and MP3Angle theta between line segments2And MP2Segment and MP3Angle theta between line segments3At this time, MP can be obtained1Line segment, MP2Segment and MP3The sum of the included angles between the line segments is: theta is equal to theta123
(3) Judging whether the contact coordinate position falls in the triangular ruler tool on the screen display interface of the electronic whiteboard or not based on the included angle sum;
specifically, whether the contact coordinate position (i.e., the M point) falls inside a set square tool on the screen display interface of the electronic whiteboard is determined by determining whether the included angle and θ are equal to 2 π, and the determination result includes: after the position of the contact point coordinate is judged to fall into the triangular ruler tool, the triangular ruler tool on the screen display interface of the electronic whiteboard is moved, and at the moment, an application program of the electronic whiteboard can execute an action according to the sliding direction and the sliding distance in the interface touch event; and (4) continuing to execute the step (4) after judging that the coordinate position of the contact point does not fall in the triangular ruler tool.
(4) Firstly, three side lengths of the triangular ruler tool are respectively obtained as P1P2Line segment, P2P3Line segment and P1P3Line segment, then from P1P2Line segment, P2P3Line segment and P1P3Obtaining the nearest P from the M point in the line segmentxPyLine segment and judging M points to PxPyWhether the distance between the line segments is within a preset line drawing range (the preset line drawing range is defined as 10 pixels in the embodiment of the invention); at the point of judging M to PxPyAfter the distance between the line segments is within the preset drawing range, drawing P on the display interface of the screen of the electronic whiteboardxPyLines with matched line segments are automatically drawn by an application program of the electronic whiteboard, and then the step S101 is executed to obtain the current gesture information of the user again; at the point of judging M to PxPyAnd after the distance between the line segments exceeds the preset drawn line range, indicating that the user does not have any operation requirement currently, returning to the step S101 to acquire the current gesture information of the user again, so that the application program of the electronic whiteboard is in a loop detection state.
In the embodiment of the invention, by introducing the set square tool and executing the related control operation on the set square tool, a teacher can be assisted to rapidly draw the graph with the specified rule, so that the teaching content of the teacher can be more conveniently and clearly expressed, and the teaching efficiency and the teaching quality of the electronic whiteboard applied to the education field are improved; the teaching tool in real life is mapped to the screen interface of the electronic whiteboard, and teaching is carried out through the interactive design of gesture operation, so that more interestingness and attraction can be brought to education and teaching.
Examples
Referring to fig. 2, fig. 2 is a schematic structural component diagram of an electronic whiteboard-based set square drawing apparatus according to an embodiment of the present invention.
As shown in fig. 2, an electronic whiteboard-based set square drawing apparatus includes:
the starting and obtaining module 201 is configured to start a user gesture detection program on a screen display interface of the electronic whiteboard based on a user call instruction, and obtain current gesture information of a user;
in the implementation process of the invention, when a user starts the electronic whiteboard, an instruction is automatically called to start a user gesture detection program on a screen display interface of the electronic whiteboard, the contact operation state of the hand of the user and the screen of the electronic whiteboard is collected and identified, and the current gesture information of the user is output.
The electronic whiteboard depends on the operation of a capacitive touch screen, and the capacitive touch screen is mainly formed by plating a transparent film body layer on a glass screen and adding a piece of protective glass outside the film body layer. In addition, long and narrow electrodes are required to be plated on four sides of the touch screen, so that when a user touches the screen through a finger, a 'coupling capacitor' is formed between an electric field of a human body and an internal film body layer, currents generated by electrodes on the four sides of the screen flow to a contact position, specific coordinate information of the contact position is accurately calculated by collecting current values relative to the four sides of the screen through the user gesture detection program based on the fact that the current intensity is in direct proportion to the distance between the finger and the electrode, and the anti-interference capability of the user during touch is strong.
The packaging module 202 is configured to perform information packaging on the current gesture information to generate an interface touch event of a user;
in the implementation process of the invention, according to the current gesture information recognized and output by the user gesture detection program, a processor of the capacitive touch screen operates an android system to package the current gesture information into a standard universal interface touch event, so that an application program of the electronic whiteboard can call and recognize.
The judging module 203 is configured to judge whether the interface touch event is a touch event for invoking operation control of a set square tool on the display interface of the electronic whiteboard screen;
in the implementation process of the invention, the area position information of the set square tool operation control assembly on the screen display interface of the electronic whiteboard is acquired, and whether the contact coordinate position in the current gesture information falls in the area position is judged, wherein the judgment result comprises the following steps:
(1) if the touch point coordinate position falls in the area position, judging that the interface touch event is a touch event for calling the operation control of a set square tool on the screen display interface of the electronic whiteboard, acquiring the touch point coordinate position in the interface touch event at the moment, and performing corresponding conventional control operation on the set square tool on the screen display interface of the electronic whiteboard based on the touch point coordinate position;
specifically, since the application program of the electronic whiteboard preferentially performs further functional area division on the area position information of the set square tool operation control assembly and displays the information on the electronic whiteboard screen display interface, the set square tool on the electronic whiteboard screen display interface can be deleted by positioning the first functional area in the area position based on the contact coordinate position; or positioning the contact point coordinate position to a second functional area in the area position, and rotating the set square tool on the screen display interface of the electronic whiteboard; or based on the contact point coordinate position locating to a third functional area in the area position, zooming the set square tool on the screen display interface of the electronic whiteboard. In the embodiment of the present invention, for the rotation and scaling processing of the triangular ruler tool, the application program of the electronic whiteboard can respond to the user requirement by manually entering specific parameters (including the rotation angle, the scaling ratio, and the like), perform corresponding operations on the triangular ruler tool, and then return to the starting and obtaining module 201 for execution;
(2) if the touch point coordinate position does not fall into the area position, the interface touch event is judged to be a touch event for calling the drawing operation control of the interface graph on the screen display interface of the electronic whiteboard, and the process continues to jump to the drawing operation module 204 for execution.
And the drawing operation module 204 is configured to, after it is determined that the interface touch event is a touch event for invoking operation control of a set square tool on the electronic whiteboard screen display interface, obtain a contact coordinate position in the interface touch event, and perform corresponding graph drawing operation on the electronic whiteboard screen display interface based on the contact coordinate position.
The implementation process of the invention comprises the following steps:
(1) obtaining three vertex coordinate positions of the set square tool on the screen display interface of the electronic whiteboard, wherein the three vertex coordinate positions are P respectively1Point, P2Point and P3A point, and the contact coordinate position is an M point; wherein, P1The coordinates of the point are (x)1,y1)、P2The coordinates of the point are (x)2,y2)、P3The coordinates of the point are (x)3,y3) The coordinate of the M point is (x, y);
(2) based on P1MP formed by point and M point1Line segment, P2MP formed by point and M point2Line segment and P3MP formed by point and M point3Segment, calculating MP1Line segment, MP2Segment and MP3The sum of included angles between the line segments;
specifically, according to each parameter point provided in step (1), the following can be obtained:
Figure BDA0002747647300000101
computing MP1Segment and MP2Angle theta between line segments1Comprises the following steps:
Figure BDA0002747647300000102
MP1·MP2=(X1-x)(x2-x)+(y1-y)(y2-y)
Figure BDA0002747647300000103
Figure BDA0002747647300000104
using the above mentioned correlation formula, MP can be solved by the same method1Segment and MP3Angle theta between line segments2And MP2Segment and MP3Angle theta between line segments3At this time, MP can be obtained1Line segment, MP2Segment and MP3The sum of the included angles between the line segments is: theta is equal to theta123
(3) Judging whether the contact coordinate position falls in the triangular ruler tool on the screen display interface of the electronic whiteboard or not based on the included angle sum;
specifically, whether the contact coordinate position (i.e., the M point) falls inside a set square tool on the screen display interface of the electronic whiteboard is determined by determining whether the included angle and θ are equal to 2 π, and the determination result includes: after the position of the contact point coordinate is judged to fall into the triangular ruler tool, the triangular ruler tool on the screen display interface of the electronic whiteboard is moved, and at the moment, an application program of the electronic whiteboard can execute an action according to the sliding direction and the sliding distance in the interface touch event; and (4) continuing to execute the step (4) after judging that the coordinate position of the contact point does not fall in the triangular ruler tool.
(4) Firstly, three side lengths of the triangular ruler tool are respectively obtained as P1P2Line segment, P2P3Line segment and P1P3Line segment, then from P1P2Line segment, P2P3Line segment and P1P3Obtaining the nearest P from the M point in the line segmentxPyLine segment and judging M points to PxPyWhether the distance between the line segments is within a preset line drawing range (the preset line drawing range is defined as 10 pixels in the embodiment of the invention); at the point of judging M to PxPyAfter the distance between the line segments is within the preset drawing range, drawing P on the display interface of the screen of the electronic whiteboardxPyLines with matched line segments are automatically drawn by an application program of the electronic whiteboard and then returned to the starting and obtaining module 201 to be executed so as to obtain the current gesture information of the user again; at the point of judging M to PxPyAfter the distance between the line segments exceeds the preset drawn line range, it indicates that the user does not have any operation requirement at present, the starting and acquiring module 201 returns to execute the operation, so as to acquire the current gesture information of the user again, and the application program of the electronic whiteboard is in a loop detection state.
In the embodiment of the invention, by introducing the set square tool and executing the related control operation on the set square tool, a teacher can be assisted to rapidly draw the graph with the specified rule, so that the teaching content of the teacher can be more conveniently and clearly expressed, and the teaching efficiency and the teaching quality of the electronic whiteboard applied to the education field are improved; the teaching tool in real life is mapped to the screen interface of the electronic whiteboard, and teaching is carried out through the interactive design of gesture operation, so that more interestingness and attraction can be brought to education and teaching.
The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the triangle drawing method according to any one of the embodiments. The computer-readable storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random AcceSS memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage device includes any medium that stores or transmits information in a form readable by a device (e.g., a computer, a cellular phone, etc.), which may be a read-only memory, a magnetic or optical disk, or the like.
The embodiment of the invention also provides a computer application program which runs on a computer and is used for executing the triangular ruler drawing method of any one of the embodiments.
In addition, fig. 3 shows a schematic structural composition diagram of an electronic whiteboard in an embodiment of the present invention, where the electronic whiteboard includes a processor 302, a memory 303, an input unit 304, a display unit 305, and other devices. Those skilled in the art will appreciate that the device configuration means shown in fig. 3 do not constitute a limitation of all devices and may include more or less components than those shown, or some components in combination. The memory 303 may be used to store the application 301 and various functional modules, and the processor 302 executes the application 301 stored in the memory 303, thereby performing various functional applications of the device and data processing. The memory may be internal or external memory, or include both internal and external memory. The memory may comprise read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), flash memory, or random access memory. The external memory may include a hard disk, a floppy disk, a ZIP disk, a usb-disk, a magnetic tape, etc. The disclosed memory includes, but is not limited to, these types of memory. The disclosed memory is by way of example only and not by way of limitation.
The input unit 304 is used for receiving input of signals and receiving keywords input by a user. The input unit 304 may include a touch panel and other input devices. The touch panel can collect touch operations of a user on or near the touch panel (for example, operations of the user on or near the touch panel by using any suitable object or accessory such as a finger, a stylus and the like) and drive the corresponding connecting device according to a preset program; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., play control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like. The display unit 305 may be used to display information input by a user or information provided to the user and various menus of the terminal device. The display unit 305 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 302 is a control center of the terminal device, connects various parts of the entire device using various interfaces and lines, and performs various functions and processes data by operating or executing software programs and/or modules stored in the memory 302 and calling data stored in the memory.
As one embodiment, the electronic whiteboard includes: one or more processors 302, a memory 303, one or more applications 301, wherein the one or more applications 301 are stored in the memory 303 and configured to be executed by the one or more processors 302, the one or more applications 301 configured to perform the triangle drawing method of any of the above embodiments.
In the embodiment of the invention, by introducing the set square tool and executing the related control operation on the set square tool, a teacher can be assisted to rapidly draw the graph with the specified rule, so that the teaching content of the teacher can be more conveniently and clearly expressed, and the teaching efficiency and the teaching quality of the electronic whiteboard applied to the education field are improved; the teaching tool in real life is mapped to the screen interface of the electronic whiteboard, and teaching is carried out through the interactive design of gesture operation, so that more interestingness and attraction can be brought to education and teaching.
The method, the device, the storage medium and the electronic whiteboard for drawing a set square based on the electronic whiteboard provided by the embodiment of the invention are described in detail, a specific example is adopted in the description to explain the principle and the implementation of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A set square drawing method based on an electronic whiteboard is characterized by comprising the following steps:
starting a user gesture detection program on a screen display interface of the electronic whiteboard based on a user calling instruction, and acquiring current gesture information of a user;
performing information encapsulation on the current gesture information to generate an interface touch event of a user;
judging whether the interface touch event is a touch event for calling the operation control of a set square tool on the screen display interface of the electronic whiteboard;
if not, acquiring a touch point coordinate position in the interface touch event, and performing corresponding graph drawing operation on the electronic whiteboard screen display interface based on the touch point coordinate position.
2. The electronic whiteboard-based set square drawing method as recited in claim 1, wherein the acquiring current gesture information of the user comprises:
after the electronic whiteboard starts a user gesture detection program, the contact operation state of the hand of the user and the screen of the electronic whiteboard is collected and identified, and the current gesture information of the user is output.
3. The electronic whiteboard-based set square drawing method as recited in claim 1, wherein the determining whether the interface touch event is a touch event for invoking set square tool operation control on the electronic whiteboard screen display interface comprises:
acquiring region position information of a set square tool operation control assembly on the screen display interface of the electronic whiteboard, and judging whether the contact coordinate position in the current gesture information falls in the region position;
if so, judging that the interface touch event is a touch event for calling the operation control of a set square tool on the screen display interface of the electronic whiteboard;
if not, judging that the interface touch event is a touch event for calling the drawing operation control of the interface graph on the screen display interface of the electronic whiteboard.
4. The electronic whiteboard-based set square drawing method as recited in claim 3, wherein after determining that the interface touch event is a touch event for invoking set square tool operation control on the electronic whiteboard screen display interface, the method comprises:
and acquiring a touch point coordinate position in the interface touch event, and performing corresponding conventional control operation on a set square tool on the screen display interface of the electronic whiteboard based on the touch point coordinate position.
5. The electronic whiteboard-based set square drawing method as recited in claim 4, wherein the performing of the corresponding conventional control operation on the set square tool on the electronic whiteboard screen display interface based on the contact point coordinate position comprises:
based on the contact coordinate position, positioning to a first functional area in the area position, and deleting a set square tool on the screen display interface of the electronic whiteboard; or the like, or, alternatively,
positioning a second functional area in the area position based on the contact coordinate position, and rotating a set square tool on the screen display interface of the electronic whiteboard; or the like, or, alternatively,
and based on the contact coordinate position locating to a third functional area in the area position, zooming the set square tool on the screen display interface of the electronic whiteboard.
6. The electronic whiteboard-based set square drawing method as recited in claim 1, wherein the performing of the corresponding graphic drawing operation on the electronic whiteboard screen display interface based on the contact coordinate position comprises:
obtaining three vertex coordinate positions of the set square tool on the screen display interface of the electronic whiteboard, wherein the three vertex coordinate positions are P respectively1Point, P2Point and P3A point, and the contact coordinate position is an M point;
based on P1MP formed by point and M point1Line segment, P2MP formed by point and M point2Line segment and P3MP formed by point and M point3Segment, calculating MP1Line segment, MP2Segment and MP3The sum of included angles between the line segments;
judging whether the contact coordinate position falls in the triangular ruler tool on the screen display interface of the electronic whiteboard or not based on the included angle sum;
and after judging that the contact coordinate position falls in the triangular ruler tool, moving the triangular ruler tool on the screen display interface of the electronic whiteboard.
7. The electronic whiteboard based set square drawing method as recited in claim 6, further comprising, after determining whether the contact coordinate position falls within a set square tool on the electronic whiteboard screen display interface:
after the contact point coordinate position is judged not to fall into the triangular ruler tool, three side lengths of the triangular ruler tool are obtained and are respectively P1P2Line segment, P2P3Line segment and P1P3A line segment;
from P1P2Line segment, P2P3Line segment and P1P3Obtaining the nearest P from the M point in the line segmentxPyLine segment and judging M points to PxPyWhether the distance between the line segments is within a preset line drawing range or not;
at the point of judging M to PxPyAfter the distance between the line segments is within the preset range of the drawn line, the distance between the line segments is within the preset range of the drawn lineDrawing on the screen display interface of the electronic whiteboard and PxPyAnd returning to acquire the current gesture information of the user again by the line with the matched line segment.
8. A set square drawing device based on an electronic whiteboard, the device comprising:
the starting and obtaining module is used for starting a user gesture detection program on a screen display interface of the electronic whiteboard based on a user calling instruction and obtaining current gesture information of a user;
the packaging module is used for performing information packaging on the current gesture information to generate an interface touch event of a user;
the judging module is used for judging whether the interface touch event is a touch event for calling the operation control of a set square tool on the screen display interface of the electronic whiteboard;
and the drawing operation module is used for acquiring the contact point coordinate position in the interface touch event after judging that the interface touch event is a touch event for calling the operation control of a set square tool on the electronic whiteboard screen display interface, and performing corresponding graph drawing operation on the electronic whiteboard screen display interface based on the contact point coordinate position.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of triangular ruler plotting as claimed in any one of claims 1 to 7.
10. An electronic whiteboard, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: performing the set square plotting method of any one of claims 1 to 7.
CN202011184349.7A 2020-10-28 2020-10-28 Set square drawing method and device, storage medium and electronic whiteboard Active CN112306346B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011184349.7A CN112306346B (en) 2020-10-28 2020-10-28 Set square drawing method and device, storage medium and electronic whiteboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011184349.7A CN112306346B (en) 2020-10-28 2020-10-28 Set square drawing method and device, storage medium and electronic whiteboard

Publications (2)

Publication Number Publication Date
CN112306346A true CN112306346A (en) 2021-02-02
CN112306346B CN112306346B (en) 2021-08-31

Family

ID=74332195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011184349.7A Active CN112306346B (en) 2020-10-28 2020-10-28 Set square drawing method and device, storage medium and electronic whiteboard

Country Status (1)

Country Link
CN (1) CN112306346B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113570679A (en) * 2021-07-23 2021-10-29 北京百度网讯科技有限公司 Graph drawing method, device, equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010284797A (en) * 2009-06-09 2010-12-24 Seiko Epson Corp Electronic blackboard
CN102568253A (en) * 2010-12-21 2012-07-11 汉王科技股份有限公司 Method and device used for displaying geometrical characteristic of graph in electronic whiteboard
CN103077026A (en) * 2012-12-28 2013-05-01 锐达互动科技股份有限公司 Method for writing under desktop environment of operating system
CN104956401A (en) * 2012-09-27 2015-09-30 西门子制品生命周期管理软件股份有限公司 Virtual drafting tools
CN105320434A (en) * 2014-06-16 2016-02-10 中兴通讯股份有限公司 Curve drawing method and device based on android system and terminal
CN105607854A (en) * 2015-12-23 2016-05-25 西安立人科技股份有限公司 Virtual geometric graph display method for electronic blackboard
CN106445372A (en) * 2015-08-05 2017-02-22 三星电子株式会社 Electric white board and control method therof
CN108648109A (en) * 2018-04-11 2018-10-12 泛东教育科技(大连)有限公司 A kind of instructional technology mathematical tool System and method for for realizing multiple functions
CN109191547A (en) * 2018-08-20 2019-01-11 广州视源电子科技股份有限公司 element adsorption method, device, equipment and storage medium
CN110211209A (en) * 2019-05-13 2019-09-06 广州视源电子科技股份有限公司 A kind of vector graphics animation transition method, device and intelligent terminal
CN111028569A (en) * 2019-12-19 2020-04-17 安徽文香信息技术有限公司 Electronic whiteboard system
CN111124237A (en) * 2019-11-26 2020-05-08 深圳市创易联合科技有限公司 Control method and device of touch electronic board and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010284797A (en) * 2009-06-09 2010-12-24 Seiko Epson Corp Electronic blackboard
CN102568253A (en) * 2010-12-21 2012-07-11 汉王科技股份有限公司 Method and device used for displaying geometrical characteristic of graph in electronic whiteboard
CN104956401A (en) * 2012-09-27 2015-09-30 西门子制品生命周期管理软件股份有限公司 Virtual drafting tools
CN103077026A (en) * 2012-12-28 2013-05-01 锐达互动科技股份有限公司 Method for writing under desktop environment of operating system
CN105320434A (en) * 2014-06-16 2016-02-10 中兴通讯股份有限公司 Curve drawing method and device based on android system and terminal
CN106445372A (en) * 2015-08-05 2017-02-22 三星电子株式会社 Electric white board and control method therof
CN105607854A (en) * 2015-12-23 2016-05-25 西安立人科技股份有限公司 Virtual geometric graph display method for electronic blackboard
CN108648109A (en) * 2018-04-11 2018-10-12 泛东教育科技(大连)有限公司 A kind of instructional technology mathematical tool System and method for for realizing multiple functions
CN109191547A (en) * 2018-08-20 2019-01-11 广州视源电子科技股份有限公司 element adsorption method, device, equipment and storage medium
CN110211209A (en) * 2019-05-13 2019-09-06 广州视源电子科技股份有限公司 A kind of vector graphics animation transition method, device and intelligent terminal
CN111124237A (en) * 2019-11-26 2020-05-08 深圳市创易联合科技有限公司 Control method and device of touch electronic board and storage medium
CN111028569A (en) * 2019-12-19 2020-04-17 安徽文香信息技术有限公司 Electronic whiteboard system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113570679A (en) * 2021-07-23 2021-10-29 北京百度网讯科技有限公司 Graph drawing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112306346B (en) 2021-08-31

Similar Documents

Publication Publication Date Title
KR101502659B1 (en) Gesture recognition method and touch system incorporating the same
US10254939B2 (en) Device, method, and graphical user interface for providing and interacting with a virtual drawing aid
US8860675B2 (en) Drawing aid system for multi-touch devices
US9501218B2 (en) Increasing touch and/or hover accuracy on a touch-enabled device
CN107748641B (en) Numerical value adjustment control method and device, electronic equipment and storage medium
US20200326841A1 (en) Devices, methods, and systems for performing content manipulation operations
CN108553894B (en) Display control method and device, electronic equipment and storage medium
CN107506162B (en) Coordinate mapping method, computer-readable storage medium, and projector
JP2011513880A (en) How to interpret ambiguous input on a touch screen
EP3182322A1 (en) Screenshot method and apparatus
US9262012B2 (en) Hover angle
CN108027648A (en) The gesture input method and wearable device of a kind of wearable device
CN112306346B (en) Set square drawing method and device, storage medium and electronic whiteboard
CN106598422B (en) hybrid control method, control system and electronic equipment
CN106569716B (en) Single-hand control method and control system
CN105653177A (en) Method for selecting clickable elements of terminal equipment interface and terminal equipment
CN113515228A (en) Virtual scale display method and related equipment
CN106020471B (en) A kind of operating method and mobile terminal of mobile terminal
CN111949172A (en) Element distance ruler dynamic operation method and device, storage medium and terminal
CN111104010B (en) Method and device for realizing angled blackboard eraser, storage medium and all-in-one machine equipment
CN113791725A (en) Touch pen operation identification method, intelligent terminal and computer readable storage medium
CN110262747B (en) Method and device for controlling terminal, terminal and storage medium
CN114063859A (en) Method for erasing graph, electronic equipment and storage medium
CN113485590A (en) Touch operation method and device
CN110794986A (en) Conference tablet control method and device based on infrared touch frame and conference tablet

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
CP03 Change of name, title or address

Address after: Room 238, room 406, No.1, Yichuang street, Huangpu District, Guangzhou, Guangdong 510000

Patentee after: Guangzhou langguo Electronic Technology Co.,Ltd.

Address before: 510000 unit a and B, zone 02, 4th floor, No. 136, Gaopu Road, high tech Development Zone, Tianhe District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU LANGO ELECTRONIC SCIENCE & TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address