Disclosure of Invention
In view of the above-mentioned shortcomings of the prior art, the present invention is directed to a method, an apparatus and a device for measuring length in online education, which are used to solve the technical problem that only preset targets can be measured in the mathematical education process in online education for infants in the prior art.
The technical scheme of the invention is as follows:
a length measuring method in online education, which is applied to an online education platform, comprises the following steps:
adding a ruler tool in an online education platform in advance, and displaying the ruler tool on a graphical editing interface;
detecting that a user enters a graphic editing interface of an online education platform, acquiring a measurement instruction, and dragging a ruler tool to a graphic position of a to-be-measured graphic;
and measuring the length corresponding to the graph to be measured, and displaying the measurement result.
Further, the graph to be measured is a plane graph or a three-dimensional stereo graph,
detecting that the user enters a graphic editing interface of the online education platform, acquiring a measurement instruction, and dragging a ruler tool to the graphic position of the graphic to be measured, wherein the steps comprise:
detecting that a user enters a graphical editing interface of an online education platform, and acquiring a measurement instruction;
and dragging the ruler tool to the position of the measuring element of the graph to be measured according to the measuring instruction.
Further preferably, the measuring elements of the figure to be measured are line segments,
detecting that the user enters a graphic editing interface of the online education platform, acquiring a measurement instruction, and dragging a ruler tool to the graphic position of the graphic to be measured, wherein the steps comprise:
detecting that a user enters a graphical editing interface of an online education platform, and acquiring a measurement instruction;
and dragging the ruler tool to the position of the line segment according to the measurement instruction.
Further preferably, the measuring the length corresponding to the graph to be measured and displaying the measurement result includes:
and when the ruler tool and the measuring element of the graph to be measured meet the preset position relation, measuring the measuring element and displaying the measuring result.
Preferably, when it is detected that the ruler tool and the measurement element of the graph to be measured satisfy a preset positional relationship, measuring the measurement element and displaying a measurement result includes:
when the ruler tool and the measuring element of the graph to be measured meet a preset position relation, acquiring a first coordinate corresponding to a starting point and a second coordinate corresponding to an end point of the measuring element;
and calculating the length of the measuring element according to the first coordinate and the second coordinate, and displaying the length as a measuring result.
Further, the measuring the length corresponding to the graph to be measured and displaying the measurement result includes:
and adding a ruler mark at a position which is a preset distance away from the measuring element of the graph to be measured, and marking the measuring result at the position of the ruler mark.
Further, the detecting that the user enters a graphic editing interface of the online education platform, acquiring a measurement instruction, and dragging the ruler tool to the graphic position of the graphic to be measured includes:
detecting that a user enters a graphical editing interface of an online education platform, acquiring a measurement instruction, and dragging a ruler tool;
highlighting the measuring elements with measurable length on the graphical editing interface;
and dragging the ruler tool to the graphic position corresponding to the measuring element with the measurable length.
Another embodiment of the present invention provides a length measuring device in online education, applied to an online education platform, the device including:
the ruler tool adding module is used for adding ruler tools in the online education platform in advance and displaying the ruler tools on the graphical editing interface;
the ruler tool dragging module is used for detecting that a user enters a graphic editing interface of the online education platform, acquiring a measurement instruction and dragging a ruler tool to a graphic position of a to-be-measured graphic;
and the length measuring and displaying module is used for measuring the length corresponding to the graph to be measured and displaying the measuring result.
Another embodiment of the present invention provides a length measuring apparatus in online education, the apparatus including at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the length measurement method in online education described above.
Yet another embodiment of the present invention provides a non-transitory computer-readable storage medium storing computer-executable instructions that, when executed by one or more processors, cause the one or more processors to perform the length measurement method in online education described above.
Has the advantages that: the embodiment of the invention can realize the distance test operation in a tool mode, and in the teaching process, if scenes (such as 2D images and 3D images) needing distance measurement appear, the tool is only required to be dragged to the position where the distance measurement is required, and the system automatically executes the distance measurement operation, so that the length measurement in the online teaching process is realized.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is described in further detail below. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. Embodiments of the present invention will be described below with reference to the accompanying drawings.
The embodiment of the invention provides a length measuring method in online education. Referring to fig. 1, fig. 1 is a flowchart illustrating a length measuring method in online education according to a preferred embodiment of the present invention. As shown in fig. 1, it includes the steps of:
step S100, adding a ruler tool in an online education platform in advance, and displaying the ruler tool on a graphical editing interface;
s200, detecting that a user enters a graphic editing interface of an online education platform, acquiring a measurement instruction, and dragging a ruler tool to the graphic position of a to-be-measured graphic;
and step S300, measuring the length corresponding to the graph to be measured, and displaying the measurement result.
In specific implementation, the embodiment of the invention is applied to an online education platform. The online education platform is provided with math courses.
By adding the ruler tools in the education platform in advance, the method can be realized through bottom-layer programming, and the ruler tools are displayed on a graphical editing interface. As shown in fig. 2, the side lengths of squares and rectangles in the teaching scene are measurable targets. The ruler in the lower toolbar of fig. 2 is the measuring tool.
When a measuring instruction is detected, a user can drag a ruler tool to a measuring target, as shown in fig. 3, the ruler tool is dragged to the measuring target, so that the measuring operation can be completed, the system can automatically calculate the length of the measuring target according to the scene where the measuring target is located, and the measuring result is displayed. The online education platform of the embodiment of the invention is oriented to children. The measurement results are therefore expressed in integers, irrespective of the decimal point.
Further, a graphic plane figure to be measured, including but not limited to triangle, rectangle, square, circle and line segment, or a three-dimensional perspective figure, including but not limited to cube, cuboid and cylinder.
Detecting that the user enters a graphic editing interface of the online education platform, acquiring a measurement instruction, and dragging a ruler tool to the graphic position of the graphic to be measured, wherein the steps comprise:
detecting that a user enters a graphical editing interface of an online education platform, and acquiring a measurement instruction;
and dragging the ruler tool to the position of the measuring element of the graph to be measured according to the measuring instruction.
In specific implementations, the measurement elements include, but are not limited to, triangle, rectangle, square side length, circle diameter, line segment length, and cube length, width, and height. In the embodiment of the invention, when a user wants to measure the side length of the plane graph, the ruler tool can be dragged to the position of the side length of the plane graph.
Further, the figure to be measured is a line segment,
detecting that the user enters a graphic editing interface of the online education platform, acquiring a measurement instruction, and dragging a ruler tool to the graphic position of the graphic to be measured, wherein the steps comprise:
detecting that a user enters a graphical editing interface of an online education platform, and acquiring a measurement instruction;
and dragging the ruler tool to the position of the line segment to be measured according to the measuring instruction.
When the online education platform is specifically implemented, a user enters a graphic editing interface of the online education platform, clicks a ruler tool, triggers a measurement instruction, and drags the ruler tool to a line segment when the to-be-measured graphic is the line segment.
Further, the measuring the length corresponding to the graph to be measured and displaying the measuring result includes:
and when the ruler tool and the measuring element of the graph to be measured meet the preset position relation, measuring the measuring element and displaying the measuring result.
When the ruler is specifically implemented, when the ruler tool is dragged to a measuring element corresponding to a measuring target, namely the ruler tool is overlapped or crossed with the measuring element of the graph to be measured, the measuring element is measured, and a measured result is displayed.
Further, when detecting that the ruler tool and the measuring element of the graph to be measured meet a preset position relationship, measuring the measuring element, and displaying a measuring result, the method comprises the following steps:
when the ruler tool and the measuring element of the graph to be measured meet a preset position relation, acquiring a first coordinate corresponding to a starting point and a second coordinate corresponding to an end point of the measuring element;
and calculating the length of the measuring element according to the first coordinate and the second coordinate, and displaying the length as a measuring result.
In specific implementation, the background can obtain the length of the measurement element through the corresponding coordinates on the screen. Specifically, a first coordinate corresponding to the starting point and a second coordinate corresponding to the ending point of the measurement element can be obtained, the difference value between the first coordinate and the second coordinate is used as the length of the measurement element, and the length of the measurement element is used as a measurement result and displayed.
Further, the measuring the length corresponding to the graph to be measured, and after the measuring result is displayed, the method includes:
and adding a ruler mark at a position which is a preset distance away from the measuring element of the graph to be measured, and marking the measuring result at the position of the ruler mark.
In practice, as shown in fig. 5, a ruler is placed near the measuring target for indicating the distance measurement form according to the distance calculated by the system, and the calculated distance is indicated by a number. By placing a ruler near the measuring position after obtaining the result to indicate the measuring operation and marking the measuring result in a digital form, the student can know that the currently performed operation is the measuring operation and the measuring result.
Further, detecting that a user enters a graphic editing interface of the online education platform, acquiring a measurement instruction, and dragging a ruler tool to a graphic position of a graphic to be measured, the method comprises the following steps:
detecting that a user enters a graphical editing interface of an online education platform, acquiring a measurement instruction, and dragging a ruler tool;
highlighting the measuring elements with measurable length on the graphical editing interface;
and dragging the ruler tool to the graphic position corresponding to the measuring element with the measurable length.
In specific implementation, as shown in fig. 6, after the user is detected to enter the online education platform and drag the ruler tool by the user, the measuring element with the operable graph is highlighted, the ruler tool is dragged to the side of the measuring element, the number appears at the top of the ruler, and the numbers are integers.
It can be known from the above method embodiments that the embodiments of the present invention provide a length measurement method in online education, a distance measurement operation is implemented as a tool, in a teaching process, if a scene (such as a 2D image and a 3D image) requiring distance measurement appears, the tool is only required to be dragged to a position where distance measurement is desired, a system automatically performs distance measurement operation, after a result is obtained, a ruler is placed near the measurement position to indicate the measurement operation, and the measurement result is marked in a digital form.
It should be noted that, a certain order does not necessarily exist between the above steps, and those skilled in the art can understand, according to the description of the embodiments of the present invention, that in different embodiments, the above steps may have different execution orders, that is, may be executed in parallel, may also be executed interchangeably, and the like.
Another embodiment of the present invention provides a length measuring apparatus in online education, as shown in fig. 7, theapparatus 1 including:
the rulertool adding module 11 is used for adding ruler tools in the online education platform in advance and displaying the ruler tools on a graphical editing interface;
the rulertool dragging module 12 is used for detecting that a user enters a graphic editing interface of an online education platform, acquiring a measurement instruction, and dragging a ruler tool to a graphic position of a to-be-measured graphic;
and the length measuring and displayingmodule 13 is used for measuring the length corresponding to the graph to be measured and displaying the measuring result.
The specific implementation is shown in the method embodiment, and is not described herein again.
Further, if the graph to be measured is a plane graph or a three-dimensional stereo graph, the graph rulertool dragging module 12 is used for detecting that the user enters a graph editing interface of the online education platform to obtain a measurement instruction;
and dragging the ruler tool to the position of the measuring element of the graph to be measured according to the measuring instruction.
The specific implementation is shown in the method embodiment, and is not described herein again.
Further, the rulertool dragging module 12 is further configured to detect that the user enters a graphical editing interface of the online education platform, and acquire a measurement instruction;
and dragging the ruler tool to the position of the line segment to be measured according to the measuring instruction.
The specific implementation is shown in the method embodiment, and is not described herein again.
Further, the length measuring and displayingmodule 13 is further configured to measure the measuring elements and display the measuring result when detecting that the ruler tool and the measuring elements of the graph to be measured satisfy a preset positional relationship.
The specific implementation is shown in the method embodiment, and is not described herein again.
Further, the length measuring and displayingmodule 13 is further configured to obtain a first coordinate corresponding to a start point and a second coordinate corresponding to an end point of the measuring element when detecting that the ruler tool and the measuring element of the graph to be measured satisfy a preset positional relationship;
and calculating the length of the measuring element according to the first coordinate and the second coordinate, and displaying the length as a measuring result.
The specific implementation is shown in the method embodiment, and is not described herein again.
Furthermore, the device is also provided with a marking module, and the marking module is used for adding ruler marks at positions which are away from the measuring elements of the graph to be measured by preset distances and marking the measuring results at the positions of the ruler marks.
The specific implementation is shown in the method embodiment, and is not described herein again.
Further, the rulertool dragging module 12 is configured to detect that a user enters a graphical editing interface of the online education platform, acquire a measurement instruction, and drag a ruler tool;
highlighting the measuring elements with measurable length on the graphical editing interface;
and dragging the ruler tool to the graphic position corresponding to the measuring element with the measurable length.
The specific implementation is shown in the method embodiment, and is not described herein again.
Another embodiment of the present invention provides a length measuring apparatus in online education, as shown in fig. 8, theapparatus 10 including:
one ormore processors 110 and amemory 120, where oneprocessor 110 is illustrated in fig. 8, theprocessor 110 and thememory 120 may be connected by a bus or other means, and fig. 8 illustrates a connection by a bus as an example.
Processor 110 is operative to implement various control logic ofapparatus 10, which may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), a single chip, an ARM (Acorn RISC machine) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. Also, theprocessor 110 may be any conventional processor, microprocessor, or state machine.Processor 110 may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
Thememory 120, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions corresponding to the length measurement method in online education in the embodiment of the present invention. Theprocessor 110 executes various functional applications and data processing of thedevice 10, i.e., implements the length measuring method in online education in the above-described method embodiments, by executing nonvolatile software programs, instructions, and units stored in thememory 120.
Thememory 120 may include a storage program area and a storage data area, wherein the storage program area may store an application program required for operating the device, at least one function; the storage data area may store data created according to the use of thedevice 10, and the like. Further, thememory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments,memory 120 optionally includes memory located remotely fromprocessor 110, which may be connected todevice 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more units are stored in thememory 120, and when executed by the one ormore processors 110, perform the length measurement method in online education in any of the above-described method embodiments, e.g., performing the above-described method steps S100 to S300 in fig. 1.
Embodiments of the present invention provide a non-transitory computer-readable storage medium storing computer-executable instructions for execution by one or more processors, for example, to perform method steps S100-S300 of fig. 1 described above.
By way of example, non-volatile storage media can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), electrically erasable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in many forms such as Synchronous RAM (SRAM), dynamic RAM, (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchl ink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The disclosed memory components or memory of the operating environment described herein are intended to comprise one or more of these and/or any other suitable types of memory.
Another embodiment of the present invention provides a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions which, when executed by a processor, cause the processor to perform the length measurement method in online education of the above-described method embodiment. For example, the method steps S100 to S300 in fig. 1 described above are performed.
The above-described embodiments are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that the embodiments may be implemented by software plus a general hardware platform, and may also be implemented by hardware. Based on such understanding, the above technical solutions essentially or contributing to the related art can be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of the various embodiments or some parts of the embodiments.
Conditional language such as "can," "might," or "may" is generally intended to convey that a particular embodiment can include (yet other embodiments do not include) particular features, elements, and/or operations, among others, unless specifically stated otherwise or otherwise understood within the context as used. Thus, such conditional language is also generally intended to imply that features, elements, and/or operations are in any way required for one or more embodiments or that one or more embodiments must include logic for deciding, with or without input or prompting, whether such features, elements, and/or operations are included or are to be performed in any particular embodiment.
What has been described herein in the specification and drawings includes examples that can provide a length measuring method and apparatus in online education. It will, of course, not be possible to describe every conceivable combination of components and/or methodologies for purposes of describing the various features of the disclosure, but it can be appreciated that many further combinations and permutations of the disclosed features are possible. It is therefore evident that various modifications can be made to the disclosure without departing from the scope or spirit thereof. In addition, or in the alternative, other embodiments of the disclosure may be apparent from consideration of the specification and drawings and from practice of the disclosure as presented herein. It is intended that the examples set forth in this specification and the drawings be considered in all respects as illustrative and not restrictive. Although specific terms are employed herein, they are used in a generic and descriptive sense only and not for purposes of limitation.