WO2020155816A1 - Key information determining method, apparatus and device, and storage medium - Google Patents

Key information determining method, apparatus and device, and storage medium Download PDF

Info

Publication number
WO2020155816A1
WO2020155816A1 PCT/CN2019/120858 CN2019120858W WO2020155816A1 WO 2020155816 A1 WO2020155816 A1 WO 2020155816A1 CN 2019120858 W CN2019120858 W CN 2019120858W WO 2020155816 A1 WO2020155816 A1 WO 2020155816A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch
key information
determining
elements
touch operation
Prior art date
Application number
PCT/CN2019/120858
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 WO2020155816A1 publication Critical patent/WO2020155816A1/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
    • 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

Definitions

  • the present disclosure relates to the field of interactive smart tablets, for example, to methods, devices, devices, and storage media for determining key information.
  • the teaching content displayed by the teacher during the teaching process often has some teaching content that needs to be explained, and the teaching content of these key explanations is often what the teacher wants the listener to master.
  • the related technology has the following shortcomings: in subsequent lectures, the teacher will review the teaching content that was emphasized in the previous lecture. At this time, the teacher can only manually find the teaching content that was previously explained. This method of presenting important teaching content to the lecturers is cumbersome to operate, and at the same time it is not conducive to the realization of the teacher's complete review of all key teaching content, thereby reducing the user experience of intelligent teaching.
  • the embodiments of the present invention provide a method, device, device, and storage medium for determining key information to solve the technical problem of the inability to effectively extract the content emphasized by the teacher in the course of teaching.
  • an embodiment of the present invention provides a method for determining key information, including:
  • the element includes at least one of the following: text, graphic shape, multimedia, and table.
  • an embodiment of the present invention also provides a key information determining device, including:
  • the first response module is configured to display a touch mark corresponding to the touch operation in response to the received touch operation on the currently displayed page;
  • An element set determining module configured to determine a set of elements associated with the gesture type in the currently displayed page, and the currently displayed page contains at least one element
  • the key information storage module is used to determine and store the elements in the element set as key information
  • the second response module is configured to display an editing page containing the target key information in response to the received editing operation acting on the target key information, where the target key information is any element in the set of elements that is used as key information ;
  • the edit storage module is used to save the edit page when receiving the edit completion instruction
  • the element includes at least one of the following: text, graphic shape, multimedia, and table.
  • an embodiment of the present invention also provides a key information determining device, including: a memory, a display screen, and one or more processors;
  • the memory is used to store one or more programs
  • the display screen is used to display the currently displayed page and the touch track corresponding to the touch operation
  • the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors implement the key information determination method as described in the first aspect.
  • an embodiment of the present invention also provides a storage medium containing computer-executable instructions, which are used to execute the method for determining key information as described in the first aspect when executed by a computer processor.
  • the method, device, device, and storage medium for determining key information firstly respond to a received touch operation acting on the currently displayed page and display the touch identifier corresponding to the touch operation; then determine that the touch identifier is The set of associated elements in the currently displayed page; then the elements in the set of elements are determined as key information and stored, and finally, in response to the received editing operation acting on the target key information, the edit containing the target key information is displayed Page, the target key information is any element in the set of elements that is used as key information; when an editing completion instruction is received, the editing page is saved.
  • the above technical solution can quickly identify and store the key information that is emphasized in the teaching content according to the touch operation used by the teacher during the key explanation during the teaching process, so as to ensure that it can be achieved only by calling the stored key information during subsequent lectures
  • the centralized presentation of the key explanation content not only avoids the cumbersome operation of the teacher when the key explanation content is displayed, but also ensures the complete review of the key explanation content, and better improves the user experience of intelligent teaching.
  • FIG. 1 is a flowchart of a method for determining key information according to Embodiment 1 of the present invention
  • FIG. 2a is a flowchart of a method for determining key information according to Embodiment 2 of the present invention
  • Figure 2b shows an example diagram of determining gesture-related elements in the second embodiment of the present invention
  • FIG. 3a is a flowchart of a method for determining key information according to Embodiment 3 of the present invention.
  • Figure 3b shows a flow chart of the implementation of the circle shape determination of the touch track in the third embodiment of the present invention
  • Figure 3c shows an example diagram of the gesture type associated with the touch operation as drawing a circle
  • FIG. 4a is a flowchart of a method for determining key information according to Embodiment 4 of the present invention.
  • Figure 4b shows a flow chart of the implementation of the touch track line shape determination in the fourth embodiment of the present invention.
  • Figure 4c shows an example diagram of determining gesture-related elements in the fourth embodiment of the present invention.
  • Figure 4d shows an example diagram of storage folders for key information storage
  • FIG. 5 is a schematic structural diagram of an apparatus for determining key information according to Embodiment 5 of the present invention.
  • FIG. 6 is a schematic structural diagram of a key information determining device provided by Embodiment 6 of the present invention.
  • FIG. 1 is a flowchart of a method for determining key information provided by Embodiment 1 of the present invention.
  • the method for determining key information provided in the embodiments may be executed by a key information determining device, which may be implemented by software and/or hardware, and the key information determining device may be composed of two or more physical entities. It can be a physical entity.
  • the key information determining device has an electronic whiteboard function, and the key information determining device can be a computer, a mobile phone, a tablet, or a smart teaching tablet.
  • a smart teaching tablet is used as a key information determining device for exemplary description.
  • the smart teaching tablet can be an integrated device that controls the content displayed on the display tablet through touch technology and realizes human-computer interaction. It integrates a projector, an electronic whiteboard, a screen, a sound, a TV, and a video conference. One or more functions such as a terminal.
  • the display screen of the smart teaching tablet can be a capacitive screen, a resistive screen or an electromagnetic screen. Users can perform touch operations on the smart teaching tablet with fingers or a stylus.
  • the application software that comes with the operating system is installed on the smart teaching tablet.
  • application software downloaded from a third-party device or server is also installed.
  • the specific type and content of the application software can be based on actual conditions.
  • the application software has an electronic whiteboard function, which can be realized by the electronic whiteboard function: writing, drawing, annotation, courseware production, display and playback functions.
  • the electronic whiteboard function is set to have the function of courseware production and display and playback.
  • the courseware production refers to the element input or insertion operation performed by the user (the user may be a teacher) on the courseware editing page on the smart teaching tablet.
  • the display and playback can specifically refer to the courseware demonstration in which the content in the courseware editing page is used as the demonstration playback page in the teaching mode.
  • the display and playback can be realized by triggering the demo playback button by the user.
  • the execution timing of the key information determination method in this embodiment can be when the user triggers the demo play button to display the teaching content in the form of a demo play page. At this time, it can be equivalent to the activation of the key information determination function by touching it to achieve For the determination and storage of the key content of the key explanation during the teaching process of the teacher, it should be noted that this embodiment may record the demo playback page currently displayed to the lecturer as the current display page.
  • the method for determining key information provided by Embodiment 1 of the present invention includes the following operations:
  • the smart interactive tablet that executes the provided key information determination method has a touch function. Therefore, the teacher can use a finger or a stylus to click and click on the smart interactive tablet through touch during the teaching process. Move and other operations, so that the smart teaching tablet receives the touch operation of the teacher.
  • the touch logo can be understood as a logo that can be specifically displayed on the display screen when the user performs a touch operation.
  • the logo can display different logos according to the specific gestures used by the user when the user performs a touch operation, for example,
  • the user can use tap gestures, circle gestures, or line gestures to perform touch operations on the smart interactive tablet, and the corresponding identifiers can be circular areas, circular trajectories, or linear trajectories.
  • it can be considered that when the teacher explains the key content during the course, he will use some gestures to mark the area where the key content is located, and the key marking process is equivalent to the teacher based on the above gestures on the smart education tablet. Generate a touch operation and display the process of the corresponding touch association.
  • This step can determine which gesture type is specifically identified by the touch operation by analyzing the touch operation received by the intelligent teaching platform. For example, this step can analyze the time interval and position difference of each touch operation received, and monitor The time interval and position difference between the pressing event and the lifting event of the touch operation are formed, which determines whether the gesture when the user generates the touch operation is a tap, etc.; in addition, this step can also be used to display the touch track of the received touch operation The shape is analyzed to determine whether the gesture when the user generates a touch operation is drawing a line or drawing a circle.
  • S102 Determine the set of elements associated with the touch identifier in the currently displayed page.
  • the teaching can be determined by determining the set of elements associated with the touch identification.
  • the current display page is equivalent to the demo playback page currently displayed to the audience in the demo mode.
  • the display content in the current display page can be elements of a variety of different element types added during the course editing stage.
  • the element types can include images, editable graphics, tables, audio and video, text boxes, multimedia, etc. Therefore, in this embodiment, it can be considered that the currently displayed page contains at least one element.
  • the element set can be understood as a set that includes the associated elements related to the touch identifier in the currently displayed page.
  • the determination of the set of elements associated with the touch identification can be described as: after the touch identification displayed by the received touch operation is determined, the pre-stored corresponding touch-associated associated element determination rule can be called, and then according to different touches The identification rules corresponding to different associated elements determine the set of elements associated with the touch identification.
  • the core of the rules for determining different associated elements can be summarized as follows: determine a hit area based on the corresponding touch identifier, and then traverse the associated associated rectangles that each element in the current display page depends on, and then, if the traversed associated rectangles and hits If the regions overlap, the element corresponding to the associated rectangle can be added to the element set as the associated element.
  • this embodiment may use overlapping associated rectangles as new hit areas, and then iteratively perform the addition of associated elements until no new elements can be added to the element set.
  • S103 Determine and store an element in the element set as key information.
  • the elements in the element set are determined as key information, which is actually equivalent to the determined element
  • the key information can also be serialized and stored, so that the stored key information can be directly retrieved when the key teaching content is reviewed later display.
  • this embodiment may also consider the relevance of each element in the element set when displayed in the currently displayed page, so that when key information is stored, the relevance of the element when displayed is also saved. Therefore, when the stored key information is retrieved, each element of the key information can be displayed in the original display state.
  • the advantage of displaying the original state of the key information is also manifested in the convenience for the user to summarize and edit all the key information.
  • S104 In response to the received editing operation acting on the target key information, display an editing page containing the target key information.
  • the user can edit the key information summarized in the stored element set.
  • This step can edit any element in the element set that is the key information triggered by the user.
  • the edit page of the triggered element is displayed on the display screen of the smart interactive tablet. It can be understood that in this step, any element triggered by the user to edit from the set of elements is used as the target key information.
  • the user can edit the target key information in the displayed editing page, and can trigger the generation of editing instructions after editing is completed.
  • This step can receive the user The editing completion instruction is triggered, thereby responding to the editing completion instruction to execute the saving operation of the editing page.
  • a touch indicator corresponding to the touch operation is displayed; then it is determined that the touch indicator is on the currently displayed page
  • the set of associated elements in the set then the elements in the set of elements are determined as key information and stored, and finally, in response to the received editing operation acting on the target key information, the editing page containing the target key information is displayed, so
  • the target key information is any element in the set of elements as key information; when an editing completion instruction is received, the editing page is saved.
  • the above technical solution can quickly identify and store the key information that is emphasized in the teaching content according to the touch operation used by the teacher during the key explanation during the teaching process, so as to ensure that it can be achieved only by calling the stored key information during subsequent lectures
  • the centralized presentation of the key explanation content not only avoids the cumbersome operation of the teacher when the key explanation content is displayed, but also ensures the complete review of the key explanation content.
  • this technical solution can also determine the key points when needed.
  • the information editing operation not only realizes the effective summary of the key explanation content, but also realizes the repeated editing and collation of the key explanation content, which better improves the user experience of intelligent teaching.
  • This embodiment further optimizes and adds the element filtering operation of the determined element set based on the above. For example, before determining and storing the elements in the element set as key information, this embodiment further includes: according to preset elements The tag filters the elements in the element set, and deletes the element tag as an element that temporarily generates content.
  • some may be the preparation content formed by the teacher based on the courseware editing mode before the lecture, and some may be the content on the temporary blackboard during the lecture.
  • this embodiment believes that the key explanation content in the teaching process has been formed during the lesson preparation stage. If the determined element set includes temporary blackboard content, it may interfere with the presentation of the key explanation content. Therefore, this embodiment is determining After the element collection, in order to avoid the interference of the temporary blackboard content on the key explanation content, the elements in the determined element collection are filtered again.
  • this embodiment adds an element tag to the opened element to identify the element as pre-edited teaching content, and also An element tag can be added to the temporary element of the teacher’s blackboard during the teaching process to identify the element as temporarily generated blackboard content.
  • the element tag of each element in the element set can be obtained.
  • the element corresponding to the element tag can be deleted from the element collection, or, when the element tag is determined to be the lesson preparation content, the element corresponding to the element tag can be kept in the element collection. Based on the above operations, it can be ensured that the determined key information is only the elements edited during the lesson preparation stage.
  • Fig. 2a is a flowchart of a method for determining key information provided in the second embodiment of the present invention.
  • the embodiment of the present invention is optimized based on the foregoing embodiment.
  • the currently displayed page will be displayed in response to the received action
  • the optimization of the above touch operation is: determining the received gesture type associated with the touch operation acting on the currently displayed page, and displaying the touch identifier corresponding to the gesture type.
  • the teacher can touch on the current display page of the smart interactive tablet when it is necessary to explain the key content.
  • the smart teaching tablet can be considered to have a touch operation monitoring function. This embodiment can thus receive and respond to the generated touch operation.
  • this embodiment can further determine which touch marks the gesture type specifically corresponds to by identifying the gesture type associated with the received touch operation, and can determine which touch marks specifically identify which key marks in the content explained by the teacher.
  • this embodiment can determine which gesture type is specifically associated with the touch operation by analyzing the touch operation received by the intelligent teaching platform.
  • this embodiment can analyze the touch operation received each time. The time interval and position difference, as well as the time interval and position difference of listening to the press event and lift event forming the touch operation, determine whether the gesture when the user generates the touch operation is a tap, etc.; in addition, this step can also be performed by The display shape of the touch track received by the touch operation is analyzed to determine whether the gesture when the user generates a touch operation is drawing a line or drawing a circle.
  • this embodiment further optimizes the determination of the received gesture type associated with the touch operation on the currently displayed page, the display of the touch identifier corresponding to the gesture type, and the gesture type can be Multiple angles such as tapping, circle drawing and line drawing are optimized.
  • a method for determining key information provided in the second embodiment of the present invention includes the following operations:
  • the second embodiment provides a key information determination process when the teacher uses tapping gestures to mark the key explanation content during the teaching process.
  • S201 to S203 of this embodiment describe the implementation process of how to determine that the gesture type associated with the received touch operation is tap.
  • the smart teaching tablet has a monitoring function for each touch event in the touch operation, so that it can specifically monitor the user's touch events on the smart teaching tablet.
  • This embodiment can monitor a group of user-generated touch events. Touch events. If the group of touch events includes a touch down event and a touch up event, it can be considered that the user has performed a touch operation on the smart teaching tablet, and each touch operation generated by the user can be received in this step.
  • the receiving time of each touch operation can be monitored to determine whether at least three touch operations are received within a set time period.
  • the specific value of the set time period may be based on actual The actual setting is applied, and the receiving time of a touch operation can be recorded according to the generation time of the touch down event or the generation time of the touch up event.
  • this embodiment sets that only if at least three touch operations are received within a set time period, will it be considered that the basic determination of tap is satisfied. Therefore, when at least three touch operations are received within the set time period, the subsequent determination of whether the touch operation identifies a tap is performed, otherwise, it can be directly determined that the gesture type associated with the touch operation is not a tap.
  • the touch information may specifically refer to attribute information representing the time and position of a touch operation (such as the time when each touch event is generated in an event combination, or the position where each touch event acts on a smart teaching tablet). Etc.), the touch information can be generated when the event combination acts on the smart teaching tablet. In this step, the touch information for the touch operation can be directly obtained.
  • the touch information of the touch operation includes: the first generation time and the first generation position of the touch-down event, and the second generation time and the second generation position of the touch-up event;
  • the first determination condition is: the difference between the second generation time and the corresponding first generation time is less than a first time threshold, and the position difference between the second generation position and the first generation position is less than a first distance threshold;
  • the second determination condition is that the time difference between the next touch operation and the previous touch operation is less than the second time threshold, and the distance difference between the next touch operation and the previous touch operation is less than the second distance threshold.
  • the position difference may be: the maximum value of the abscissa difference or the ordinate difference in the generated position;
  • the time difference may refer to: the first generation time difference or the second generation time difference of two touch operations, Or, the difference between the first generation time of the next touch operation and the second generation time of the previous touch operation;
  • the distance difference may refer to: the first generation position of the next touch operation and the first generation time of the previous touch operation Generate the difference in position.
  • the technician first samples the touch operation data of the teacher in the actual teaching to determine the first time threshold and the first time threshold.
  • a distance threshold, a second time threshold, and a second distance threshold are tested and trained to obtain a value range that is more in line with the actual operation.
  • the first time threshold and the second time threshold can preferably be in the range of 0.5s to 1s Inner value
  • the first distance threshold value may preferably be in the range of 2 cm to 5 cm or 16 pixels to 30 pixels
  • the second distance threshold value may preferably be in the range of 5 cm to 8 cm.
  • the touch points corresponding to the touch operation can be considered to be discrete, and each touch point can be displayed on the display screen with a touch area of a set size.
  • This embodiment Use each touch point displayed on the display screen as the corresponding touch mark when tapping.
  • S205 Form a circular area as a hit area based on the points of action respectively acted on the currently displayed page based on the at least three touch operations.
  • the generating position corresponding to the touch down event or the touch up event in the touch operation may be used as the point of action of the touch operation in the currently displayed page.
  • this embodiment preferably uses the generating position of the touch down event in each touch operation as the action point in the currently displayed page.
  • a circumscribed circle containing each action point can be formed.
  • the circular area corresponding to the circumscribed circle is determined as the hit area, and the size of the hit area can pass through the radius of the circumscribed circle The size is ok.
  • each element in the currently displayed page there is a rectangle as the editing frame in the editing phase. It can be considered that the bottom layer of each element edited in the currently displayed page is supported by a rectangle, and one The element corresponds to a rectangle, and the rectangle information of the rectangle has been generated when the element is edited.
  • the rectangle is an associated rectangle.
  • the rectangle information of the associated rectangle of each element can be directly obtained.
  • the rectangle information may include rectangles. The coordinate value of the upper left corner, the length and width of the rectangle, etc. are used to identify the attribute information of the rectangle.
  • the associated rectangle can be the circumscribed rectangle of the corresponding element, or a set rectangle whose length and width are greater than the circumscribed rectangle, and the set rectangle can be regarded as the corresponding circumscribed rectangle. Rectangles with a certain margin value are added respectively.
  • the set rectangle is preferably used as the associated rectangle to ensure the accuracy of hitting elements based on the hit area and the associated rectangle.
  • the rectangle information of each associated rectangle can be used to determine whether there is an associated rectangle that overlaps the hit area, and an associated rectangle that meets the overlap condition can be recorded as an overlap associated rectangle, where the overlap in this embodiment can be It includes the following situations: the area corresponding to the associated rectangle contains the hit area, or the area corresponding to the associated rectangle is included in the hit area, or the area corresponding to the associated rectangle intersects a part of the hit area.
  • the element corresponding to the overlapping associated rectangle is hit by the hit area.
  • the set addition condition may be: the element has not been added to the element set.
  • S209 Determine whether the total number of elements in the element set has changed, if yes, execute S210; if not, execute S211.
  • the element set is initially empty. After the determined element is added to the element set, the total number of elements it contains may change. At this time, S210 can continue to be executed, but as the element hit operation Continue to execute, and there may no longer be any elements that meet the adding conditions. After that, the total number of elements in the element set will remain unchanged, and S211 may be further executed at this time.
  • each of the above-determined overlapping associated rectangles may be used as a hit area, and return to S206 to continue to iteratively perform the element hit search operation.
  • S211 Determine and store an element in the element set as key information.
  • each element added to the element set can be used as key information, and The original correlation of each element is stored. It is understandable that the elements can be filtered before storing, so as to filter out the teaching content temporarily added by the teacher during the teaching process.
  • this embodiment can edit the formed key information. For example, after receiving a user's editing operation trigger on any element in the element set as the target key information, respond to the editing operation and form an association with the key information.
  • the edit page of the target key information in which the user can edit the target key information.
  • the generation of the editing completion instruction can be triggered.
  • the edited editing page can be saved based on the editing completion instruction.
  • Figure 2b shows an example diagram of determining gesture-related elements in the second embodiment of the present invention.
  • the currently displayed page 20 contains text-type elements and graphic-type elements.
  • the circular area 21 can be used as the initial hit area, and the associated rectangle of each element displayed in the currently displayed page 20 can be obtained, such as "this is the text"
  • the operation of determining the associated elements from the circular area 21 as the initial hit area can be described as: from the obtained associated rectangles of each element, it can be found that the associated rectangles that overlap the circular area 21 are the first associated rectangle 22 and the first associated rectangle 22.
  • the associated rectangle that overlaps the first associated rectangle 22 is the third associated rectangle 24, and the associated rectangle that overlaps the second associated rectangle 23 is also the third associated rectangle 24, and the third association can be determined
  • the element corresponding to the rectangle 24 is a curve, and the curve has not been added to the element set, so the curve can be added to the element set.
  • the total number of elements is 3, and the search can continue to be performed if the change occurs; therefore, you can Using the third associated rectangle 24 as the new hit area, it can be found that the associated rectangles overlapping the third associated rectangle 24 are the first associated rectangle 22 and the second associated rectangle 23, and because the first associated rectangle 22 corresponds to the text box and The line segments corresponding to the second associated rectangle 23 already exist in the element set, and will not be added repeatedly. At this time, the total number of elements is still 3, unchanged, and the search end condition is satisfied, and the search can be ended. Based on the above search, it is finally determined that when the teacher taps the circular area 21, the key information determined is the text box and its contained content, line segments and curves.
  • the second embodiment of the present invention provides a method for determining key information, which provides a specific operation for determining key information when the gesture type associated with a touch operation is a tap. It first determines the determination process of the tap gesture, and then gives The tap gesture is used to determine the element set, and finally realize the determination of key information.
  • the teacher uses tapping gestures for key explanations, it can accurately and quickly identify the key explanation content as the key information in the teaching content and store it, so as to ensure that only by calling the stored key information during subsequent lectures Realize the centralized presentation of the key explanation content, which not only avoids the cumbersome operation of the teacher when the key explanation content is displayed, but also ensures the complete review of the key explanation content, and better improves the user experience of intelligent teaching.
  • Fig. 3a is a flowchart of a method for determining key information provided in the second embodiment of the present invention.
  • the embodiment of the present invention is optimized based on the above-mentioned first and second embodiments.
  • the third embodiment of the present invention provides A method for determining key information of, including the following operations:
  • this third embodiment provides a process of determining key information when the teacher uses circled gestures to mark the key explanation content during the teaching process.
  • S301 to S303 of this embodiment describe the implementation process of how to determine that the gesture type associated with the received touch operation is circle drawing.
  • S301 Sample all touch points corresponding to the touch operation on the currently displayed page, and obtain a touch track formed based on each touch point.
  • this step can monitor the touch operation acting on the current display page.
  • the touch operation can be It consists of a touch down event, a touch up event, and a series of touch movement events between the above two touch events.
  • this step can determine that each touch event is in the currently displayed page by monitoring the above series of touch events.
  • the corresponding touch points can finally form a touch trajectory corresponding to the touch operation based on a series of touch points, and the formed touch trajectory can be obtained in this step.
  • the corresponding touch points of each touch event on the currently displayed page may be sequentially sampled according to the generation time of each touch event in the touch operation, so as to obtain coordinate information of each touch point.
  • the first touch event is equivalent to a touch down event
  • its corresponding touch point can be recorded as the touch start point
  • the last touch event is equivalent to a touch up event.
  • the corresponding touch point can be recorded as the touch termination point
  • the remaining touch events in the touch down event and touch up event are equivalent to touch movement events
  • their corresponding touch points can be recorded as touch movement points.
  • there must be a touch down event and a touch up event in the event combination but there may not be a touch movement event. This situation is equivalent to a touch operation on a location point.
  • S302 According to each of the touch points, determine whether the touch trajectory includes a circle-shaped trajectory and whether the included circle number meets a set condition.
  • the position coordinates of each touch point in the current display page required to form the touch track can be obtained, and the position coordinates of each touch point can be used to determine whether there is a circle in the touch track according to the set circle determination rule.
  • Shape trajectory and can determine the number of turns of the loop-shaped trajectory presented.
  • the distance value between each touch point and the designated coordinate point can be determined according to the position coordinates of the touch point, and then each distance value is compared with the set distance threshold. If there is a circle-shaped trajectory, a continuous touch is required The distance value of the point is less than the set distance threshold, and the distance value of a subsequent touch point is greater than the set distance threshold.
  • the characteristics of the circle-shaped trajectory can be analyzed first, and it is found that the main feature is that the connection of a group of touch points can form an arc-shaped closed or close to closed curve. Take one of the touch points as the center of the circle and draw a circle with the set value as the radius. At first there will be some touch points whose distance from the center of the circle is less than or equal to the radius. These touch points are equivalent to being inside the drawn circle, and there is still a part afterwards. The distance value from the touch point to the center of the circle is greater than the radius. These touch points are equivalent to being outside the drawn circle, and then there are some points that are inside the drawn circle.
  • Figure 3b shows the implementation flow chart of the touch track circle shape determination in the third embodiment of the present invention. For example, according to each touch Point, determining whether the touch trajectory includes a circle-shaped trajectory and whether the number of laps included meets the set conditions can be achieved by the method shown in Fig. 3b, as shown in Fig. 3b, the method includes:
  • the set reference point is equivalent to the center of the drawn circle.
  • the set reference point can be preferably selected from the touch points, and generally preferred Is the starting point of the touch. Therefore, this step is equivalent to determining the distance value from each touch point to the touch start point as the judgment distance value of each touch point.
  • This step is equivalent to starting from the judgment distance value of the touch starting point, and then selecting the judgment distance value of the subsequent touch points in a clockwise direction, and each selected judgment distance value can be compared with the third distance threshold, and recorded in real time
  • the third distance threshold is actually equivalent to the radius of the drawn circle, and the setting of the third distance threshold is also equivalent to an empirical value. The value is tested and compared, and the value with the best judgment effect is determined as the third distance threshold.
  • the determination at this time is actually equivalent to determining whether there is a set continuous touch point at all.
  • the set continuous amount is also an empirical value, which is also selected according to test training. If the above determination is true, it can be further determined whether there is a target touch point in the subsequent determination distance value is less than or equal to the third distance threshold, the determination at this time is actually equivalent to the existence of a continuous set amount of touch points outside the circle drawn Then, whether there is a touch point inside the drawn circle, if the determination is true, the following S3024 can be executed.
  • the touch trajectory does not include a circle-shaped trajectory.
  • This step is equivalent to the establishment of the above-mentioned judgment condition of S3023.
  • the touch trajectory formed by the touch operation includes a circle-shaped trajectory, and the number of laps including the circle-shaped trajectory can be increased by 1, and the above determination can be determined later Whether the touch point corresponding to the selected judgment distance value is the touch termination point, if it is not the touch termination point, the circle judgment operation of S3023 can be executed again to determine whether the touch point after the target touch point can form a circle trajectory again; If it is the touch end point, the following steps can be performed.
  • the specific number of laps included can also be determined.
  • the determined specific lap value is greater than or equal to the set value
  • the number of laps can be considered to meet the set value.
  • the gesture type associated with the touch operation can also be regarded as drawing a circle.
  • Figure 3c shows an example diagram of the gesture type associated with a touch operation as drawing a circle.
  • the current display page 30 displays the touch trajectory 31 of the received touch operation, which is determined by the determination process provided in Figure 3b.
  • the touch trajectory 31 includes a circle-shaped trajectory, and the number of circles including the circle-shaped trajectory is 1 circle (the second circle is not completely formed), and thus the type of gesture associated with the touch operation forming the touch trajectory 31 can be determined as Draw a circle.
  • the above S302 and its extended steps realize the determination of whether the touch trajectory includes a circle-shaped trajectory and whether the number of laps meets the set conditions.
  • this step when the above two conditions are met at the same time, it can be considered that the gesture type associated with the received touch operation is a picture. Circle; otherwise, it can be considered that the gesture type is not a circle, and the subsequent operations of this implementation can be terminated at this time.
  • the gesture type associated with the touch operation when drawing a circle, it can be determined that the touch track formed by the touch operation is displayed in a circle shape, and thus the touch track can be displayed as a touch indicator of the touch operation.
  • S305 Form a closed polygonal figure based on the touch point of the touch track.
  • the touch points constituting the touch track may be connected in sequence, and finally the touch start point and the touch end point may be connected to form a closed and changeable figure; in addition, the present embodiment may also perform circle shape according to the above
  • the touch points of each circle-shaped trajectory are determined respectively based on the touch points of the circle-shaped trajectory, and a sub-polygonal figure is formed by sequentially connecting, thereby forming a sub-polygonal figure equal to the number of turns of the circle-shaped trajectory.
  • the polygonal graphics formed in this step can be used for subsequent element hit operations.
  • the associated rectangle in this embodiment is also equivalent to the corresponding rectangle that exists as the bottom layer of the element when the element is edited.
  • the rectangle information of the corresponding rectangle is also generated. Therefore, the related rectangle information of the associated rectangle can be directly obtained in this step. It is also understandable that this embodiment can select the associated rectangle as The circumscribed rectangle of the element with the added margin value.
  • the step of this embodiment uses the edges of the polygonal graphics as the hit edges, and the function of the unselected edge set is to limit that each edge can be selected as the hit edge only once.
  • the unselected edge set initially contains all the edges of the polygonal figure.
  • S308 Search for a target associated rectangle that satisfies the inclusion relationship with the hit edge from the associated rectangles.
  • the rectangle information of each associated rectangle can be used to determine whether there is an associated rectangle that has an inclusion relationship with the currently selected hit edge, and the associated rectangle that satisfies the inclusion relationship can be recorded as the target associated rectangle.
  • the containment relationship in includes the following situations: the area corresponding to the associated rectangle contains the hit edge, or the hit edge intersects the associated rectangle.
  • the element corresponding to the target associated rectangle is hit by the hit edge.
  • the set addition condition may also be: the element has not been added to the element set.
  • the termination condition may be that the unselected edge set is empty, or the total number of elements in the element set remains unchanged.
  • the unselected edge set is empty, which is equivalent to that all edges of the polygonal graph have been used as hit edges; the total number of elements in the element set remains unchanged. It can be considered that when the initially empty element set has gone through multiple iterations The total number of contained elements no longer changes.
  • S311 can be further executed; otherwise, it can be considered that the search condition of the hit element is still met, and it is necessary to return to S307 to continue the loop execution.
  • each element added to the element set can be used as key information, and the original correlation of each element sexual storage. It is understandable that the elements can be filtered before storing, so as to filter out the teaching content temporarily added by the teacher during the teaching process.
  • S312 In response to the received editing operation acting on the target key information, display an editing page containing the target key information.
  • the method for determining key information provided by the third embodiment of the present invention provides the operation of determining key information when the gesture type indicated by the touch operation is circle drawing. It first determines the judgment process of the circle gesture, and then gives the picture Circle gestures are used to determine the set of elements, and finally realize the determination of key information. Based on this method, when the teacher uses circled gestures to explain the content, it can accurately and quickly identify the key explanation content as the key information in the teaching content and store it, so as to ensure that only by calling the stored key information during subsequent lectures It can realize the centralized presentation of the key explanation content, which not only avoids the cumbersome operation of the teacher when the key explanation content is displayed, but also ensures the complete review of the key explanation content, and better improves the user experience of intelligent teaching.
  • Fig. 4a is a flowchart of a method for determining key information according to Embodiment 4 of the present invention.
  • the embodiment of the present invention is optimized on the basis of the above-mentioned Embodiment 1 and Embodiment 2.
  • a method for determining key information provided by Embodiment 4 of the present invention includes the following operations:
  • the fourth embodiment provides a process for determining key information when the teacher uses line-drawing gestures to mark the key explanation content during the teaching process.
  • S401 to S403 of this embodiment describe how to determine the implementation process of the gesture type associated with the received touch operation as drawing a line.
  • this step can monitor the user's touch operation on the currently displayed page.
  • the touch operation is also composed of a touch down event, a touch up event, and a series of touch movement events between the above two touch events.
  • this step can also determine the touch points corresponding to each touch event in the currently displayed page by monitoring the series of touch events described above, and finally form a touch track corresponding to the touch operation based on the series of touch points.
  • S402 Obtain a reference line segment formed based on the connection between the start point and the end point in the touch track.
  • the point of action of the touch down event may be determined as the starting point in the formed touch track, and the point of action of the touch up event may be determined as the end of the touch track. point.
  • this embodiment forms a line segment based on the connection between the start point and the end point of the touch trajectory, and this line segment can be recorded as a reference line segment. This step obtains the formed reference line segment.
  • S403 Determine whether the touch trajectory is a linear trajectory according to each of the touch points and the reference line segment.
  • the position coordinates of each touch point in the current display page required to form the touch track can be obtained.
  • the reference line segment obtained by combining the position coordinates of each touch point can be determined by the set line shape determination rule. Whether the trajectory is presented as a linear trajectory.
  • this step can determine the angle value between the acquired reference line segment and the horizontal direction to determine whether the reference line segment is horizontal or approaching horizontal.
  • this step can also be based on the position coordinates of the touch point and the start of the reference line segment.
  • the coordinates of the start point and the end point are used to determine the overall variance value of the touch trajectory, and the degree of overlap between the touch trajectory and the reference line segment is judged by the judgment of the overall variance value.
  • the reference line segment approaches or is a horizontal line segment and the overlap degree of the touch trajectory When it is higher, the touch trajectory can be regarded as a horizontal trajectory.
  • FIG. 4b shows a flow chart for implementing the linear determination of the touch trajectory in the fourth embodiment of the present invention.
  • the touch point is determined based on the touch point constituting the touch trajectory and the reference line segment. Whether the trajectory is a linear trajectory can be realized in the manner shown in Fig. 4b, as shown in Fig. 4b, which includes:
  • the angle value between the reference line segment and the horizontal direction can be determined according to the coordinate values of the start point and the end point of the reference line segment, and it is recorded as the horizontal angle.
  • S4032 Determine the overall variance value of the touch trajectory according to the position information of the touch point on the touch trajectory.
  • the corresponding touch points of each touch event on the currently displayed page can be sampled sequentially, so as to obtain the position information of each touch point.
  • the coordinates are compared with the abscissas of the starting point and ending point in the reference line segment to determine the variance variable value required for the overall variance calculation.
  • the variance variable value corresponds to each touch point one by one, and then the variance calculation formula is substituted into the above mentioned value. Knowing the information, the overall variance value of the touch trajectory can be determined.
  • the determining the overall variance value of the touch trajectory according to the position information of the touch points on the touch trajectory includes: sampling the touch points on the touch trajectory in time sequence, determining the total number of samples and Obtain the horizontal and vertical coordinates of each touch point in the currently displayed page; compare the horizontal coordinate of each touch point with the horizontal coordinate of the starting point and the horizontal coordinate of the end point of the reference line segment, and determine each touch point based on the comparison result.
  • the value of the variance variable corresponding to the touch point based on the overall variance calculation formula Determining the overall variance touch track, wherein, ⁇ 2 represents the variance value of the overall touch track, N represents the total number of samples, the variance of the Y i represents the i-th variable value corresponding to the touch point, [mu] represents the reference line segment The ordinate of the midpoint.
  • the value of the aforementioned variance variable is mainly determined by comparing the abscissa of the touch point with the abscissa of the starting point and the ending point of the reference line segment.
  • the determining the variance variable value corresponding to each touch point based on the comparison result includes:
  • the variance variable value corresponding to each of the first touch points is determined to be the ordinate of the starting point of the reference line segment; if there is an abscissa greater than the abscissa of the end point
  • the variance variable value corresponding to each second touch point is the ordinate of the end point of the reference line segment; if there is a third touch point whose abscissa is greater than the abscissa of the starting point and less than the abscissa of the end point , The ordinate of each third touch point is used to determine the corresponding variance variable value.
  • the variance variable values corresponding to these touch points are equivalent to the ordinate of the starting point of the reference line segment. ; There are also some touch points whose abscissa may be greater than the abscissa of the end point. At this time, the variance variable values corresponding to these touch points are equivalent to the ordinate of the end point of the reference line segment; and for the abscissa where the abscissa is between the start point and the end point For the touch point between the abscissas, the variance variable value is its ordinate.
  • the purpose of comparing the horizontal included angle with the set angle value in this step is to determine whether the reference line segment is horizontal or a line segment approaching horizontal.
  • the set angle value generally approaches 0; in this step ,
  • the purpose of comparing the overall variance value with the set threshold is to determine whether the touch trajectory overlaps or approaches the reference line segment.
  • the selection of the set threshold is related to the sampling interval of sampling touch points. The denser the sampling, the greater the amount of calculation required, and the greater the selection of the set threshold.
  • This embodiment can be repeated in advance In the test, a value used to distinguish the linear trajectory from other graphics is obtained as the set threshold. In order to ensure the accuracy of the set threshold, a large amount of linear data can be selected for training in this embodiment, and the best obtained by training The value is used as the set threshold.
  • the above S403 and its extended steps realize the determination of whether the touch trajectory is a linear trajectory.
  • the gesture type associated with the received touch operation can be regarded as drawing a line; otherwise, the gesture type can be regarded as the gesture type. It is not a line drawing, and the subsequent operations of this embodiment can be terminated at this time.
  • the type of gesture associated with the touch operation is drawing a line
  • the horizontal coordinate span of the starting point and ending point of the reference line segment can be used as the width of the constructed rectangular area, and the vertical coordinate span of the starting point and ending point of the reference line segment can be taken as the height of the constructed rectangular area.
  • this step can also form a circumscribed rectangle containing all touch points in the touch track, and use the circumscribed rectangle as the hit area.
  • the key content when the teacher explains the key content, if the key content is marked by the gesture of drawing a line, the key content part may be drawn repeatedly during the teaching process. Therefore, this implementation For example, if it is detected that the gesture types associated with the touch operation received within a certain period of time are all drawing lines, the touch trajectory formed in this period of time can be used as a linear trajectory for determining key information at the same time, and subsequent key information determination can be performed together operating.
  • this step can obtain the starting point and ending point of the reference line segment corresponding to each linear trajectory, and then determine a circumscribed rectangle containing the starting point and ending point of all reference line segments, and determine the circumscribed rectangle Is the hit area.
  • the associated rectangle in this embodiment is also equivalent to the corresponding rectangle that exists as the bottom layer of the element when the element is edited.
  • the rectangle information of the corresponding rectangle is also generated. Therefore, the related rectangle information of the associated rectangle can be directly obtained in this step. It is also understandable that this embodiment can select the associated rectangle as The circumscribed rectangle of the element with the added margin value.
  • S408 Search for overlapping associated rectangles that overlap with the hit area from the associated rectangles.
  • this step can also search for overlapping associated rectangles that overlap with the hit area according to the rectangle information of each associated rectangle, and the conditions for satisfying the overlap also include: the area corresponding to the associated rectangle contains the hit area, or the associated rectangle corresponds to The area of is included in the hit area, or the area corresponding to the associated rectangle intersects a part of the hit area, etc.
  • this step can also determine whether the element corresponding to the overlapping associated rectangle meets the set adding condition, and if so, add the element to the element set, where the set adding condition may also be: the element Has not been added to the element collection.
  • the same consideration is given to whether the total number of elements in the element set has changed. If it changes, the loop condition is considered to be satisfied and the subsequent S411 needs to be performed. If there is no change, the loop termination condition is considered to be satisfied. S412 can be executed.
  • each of the overlapping associated rectangles determined above may be used as a hit area, and return to S408 to continue to iteratively perform the element hit search operation.
  • S412 Determine and store an element in the element set as key information.
  • the elements in the element set can also be screened first, and after the elements that do not meet the requirements are screened out, the elements in the element set can be determined as key information, and then each element can be stored and the original elements of each element Relevance to ensure the original display relationship of elements when retrieving key information.
  • Figure 4c shows an example diagram of determining gesture-associated elements in the fourth embodiment of the present invention.
  • the currently displayed page 40 contains elements of text type and graphic type. Based on the above-mentioned gesture type corresponding to when drawing a line
  • the rectangular area 41 containing each linear trajectory can be determined first, and the rectangular area can be used as the initial hit area.
  • the associated rectangle of each element displayed in the current display page 40 can be obtained, such as "this "Just text” is the first associated rectangle 42 corresponding to the text box (element) of the displayed content, the second associated rectangle 43 corresponding to the line segment, the third associated rectangle 44 corresponding to the curve, etc. (the associated rectangles of all elements are not shown in the figure) .
  • the operation of determining the associated elements from the rectangular area 41 as the initial hit area can be described as: from the obtained associated rectangles of each element, it can be found that the associated rectangles overlapping the rectangular area 41 have a first associated rectangle 42 and a second associated rectangle. Rectangle 43; this can add the element (text box and its content) corresponding to the first associated rectangle 42 and the element (line segment) corresponding to the second associated rectangle 43 (at this time the element set is empty, that is, there is no such The determined element) is added to the element set.
  • the total number of elements is 2, and the search can be continued if the change occurs; therefore, the first associated rectangle 42 and the second associated rectangle 43 can be used as new hit areas, respectively, It can be found that the associated rectangle that overlaps the first associated rectangle 42 is the third associated rectangle 44, and the associated rectangle that overlaps the second associated rectangle 43 is also the third associated rectangle 44, and the third associated rectangle 44 can be determined.
  • the corresponding element is a curve, and the curve has not been added to the element set, so the curve can be added to the element set.
  • the total number of elements is 3, and the search can continue to be performed if the change occurs; therefore, the first The three associative rectangles 44 are used as the new hit area.
  • the associated rectangles that overlap with the third associated rectangle 44 are the first associated rectangle 42 and the second associated rectangle 43, and because the first associated rectangle 42 corresponds to the text box and the second associated rectangle.
  • the line segments corresponding to the associated rectangle 43 already exist in the element set and will not be added repeatedly. At this time, the total number of elements is still 3, unchanged, and the search end condition is satisfied, and the search can be ended. Based on the above search, it is finally determined that when the teacher taps the rectangular area 41, the key information determined is the text box and its contained content, line segments and curves.
  • the determined associated elements can be stored as key information.
  • the key information can be stored with the current display page as the basic unit.
  • Figure 4d shows an example diagram of the storage folder for storing key information, as shown in Figure 4d, in the storage folder 410, the first save page 420
  • the display form saves the key information in the currently displayed page provided in FIG. 4c. It can be found that in the first saved page 420, the text box as the key information and its contained content, line segments and curves are presented in the original display relationship.
  • the stored key information it can be directly edited by the teacher as a template, so as to bring more flexibility when the teacher makes the review content.
  • the editable operation of the stored key information is also relieved to a certain extent. There is an error rate of information recognition errors when determining key information.
  • the fourth embodiment of the present invention provides a method for determining key information, which provides an operation for determining key information when the gesture type associated with a touch operation is line drawing. It first determines the determination process of the tap gesture, and then gives the drawing Line gestures perform the process of determining the set of elements, and finally realize the determination of key information.
  • the teacher uses the gesture of drawing a line to explain the key, it can accurately and quickly identify the key explanation content as the key information in the teaching content and store it, so as to ensure that only by calling the stored key information during subsequent lectures Realize the centralized presentation of the key explanation content, which not only avoids the cumbersome operation of the teacher when the key explanation content is displayed, but also ensures the complete review of the key explanation content, and better improves the user experience of intelligent teaching.
  • FIG. 5 is a schematic structural diagram of an apparatus for determining key information according to Embodiment 5 of the present invention.
  • the device for determining key information includes: a first response module 51, an element set determining module 52, a key information storage module 53, a second response module 54, and an editing storage module 55.
  • the first response module 51 is configured to display a touch identifier corresponding to the touch operation in response to the received touch operation acting on the currently displayed page;
  • the element set determining module 52 is configured to determine a set of elements associated with the gesture type in the currently displayed page, and the currently displayed page contains at least one element;
  • the key information storage module 53 is used to determine and store the elements in the element set as key information
  • the second response module 54 is configured to display an editing page containing the target key information in response to the received editing operation acting on the target key information, where the target key information is any key information in the set of elements element;
  • the edit storage module 55 is configured to save the edit page when receiving an edit completion instruction
  • the elements include at least one of the following: text, graphic shapes, multimedia, and tables.
  • the technical solution provided in this embodiment can quickly identify and store the key information that is emphasized in the lecture content according to the touch operation used by the teacher during the key explanation during the lecture, thereby ensuring that the key information stored in the subsequent lectures is only called
  • the information can realize the centralized display of the key explanation content, which not only avoids the cumbersome operation of the teacher when the key explanation content is displayed, but also ensures the complete review of the key explanation content, and better improves the user experience of intelligent teaching.
  • the first response module 51 includes:
  • the gesture type determining unit is configured to determine the received gesture type associated with the touch operation on the currently displayed page, and display the touch identifier corresponding to the gesture type.
  • the gesture type determining unit includes:
  • the operation monitoring subunit is used to determine that a touch operation is received when an event combination including a touch down event and a touch up event is monitored;
  • the information acquisition subunit is configured to acquire touch information of each touch operation if at least three touch operations are received within a set time period;
  • the first determining subunit is configured to determine that the gesture type associated with the at least three touch operations is tapping if the touch information of each touch operation meets the first determination condition and two adjacent touch operations meet the second determination condition ;
  • the mark display subunit is used to display the touch points corresponding to each of the touch operations as touch marks when determining that the gesture type is tapping.
  • the touch information of the touch operation includes: the first generation time and the first generation position of the touch-down event, and the second generation time and the second generation position of the touch-up event;
  • the first determination condition is: the difference between the second generation time and the corresponding first generation time is less than a first time threshold, and the position difference between the second generation position and the first generation position is less than a first distance threshold;
  • the second determination condition is that the time difference between the next touch operation and the previous touch operation is less than the second time threshold, and the distance difference between the next touch operation and the previous touch operation is less than the second distance threshold.
  • the element set determining module 52 is specifically configured to:
  • a circular area is formed as a hit area; the associated rectangle of each element in the currently displayed page is obtained; and each associated rectangle is searched There are overlapping associated rectangles that overlap with the hit area; the elements corresponding to each of the overlapping associated rectangles are added to the element set according to the set adding conditions; if the total number of elements in the element set changes, each The overlapping associated rectangles are respectively used as hit areas, and the overlapping search and element addition operations are performed until the total number of elements does not change.
  • the gesture type determining unit further includes:
  • a trajectory acquisition subunit configured to sample all touch points corresponding to the touch operation on the currently displayed page, and acquire a touch trajectory formed based on each of the touch points;
  • the circle shape determination subunit is configured to determine, according to each of the touch points, whether the touch trajectory includes a circle trajectory and whether the number of circles included meets a set condition;
  • the second determining subunit is configured to determine that the gesture type associated with the touch operation is circle drawing when the touch trajectory includes a circle-shaped trajectory and the number of included circles meets a set condition;
  • the mark display subunit is further configured to display the touch track corresponding to the touch operation as a touch mark when it is determined that the gesture type is drawing a circle.
  • the ring shape determination subunit is specifically used for:
  • the element set determining module 52 is specifically configured to:
  • a closed polygonal graphic is formed; obtaining the associated rectangle of each element in the currently displayed page; selecting an edge from the unselected edge set of the polygonal graphic as the hit edge; Search for a target associated rectangle that satisfies the inclusion relationship with the hit edge in each of the associated rectangles; add the element corresponding to each target associated rectangle to the element set under a set condition, and return to perform the hit edge selection operation until the hit is met Termination condition; wherein, the termination condition is that the unselected edge set is empty, or the total number of elements in the element set remains unchanged.
  • the gesture type determining unit includes:
  • a trajectory acquisition subunit configured to sample all touch points corresponding to the touch operation on the currently displayed page, and acquire a touch trajectory formed based on each of the touch points;
  • the linear determination subunit is used to determine whether the touch trajectory is a linear trajectory according to each of the touch points and the reference line segment;
  • the third determining subunit is configured to determine that the gesture type associated with the touch operation is drawing a line when the touch trajectory is a linear trajectory;
  • the mark display subunit can also be used to display the touch track corresponding to the touch operation as a touch mark when it is determined that the gesture type is drawing a line.
  • the linear judging subunit includes:
  • the included angle determination subunit is used to determine the horizontal included angle of the reference line segment; the variance value determination subunit is used to determine the overall variance value of the touch track according to the position information of the touch point on the touch track;
  • the linear determination subunit is configured to determine that the touch track is a linear track when the horizontal included angle is less than a set angle value and the overall variance value is less than a set threshold.
  • the variance value determining subunit is specifically used for:
  • the determination of the variance variable value corresponding to the abscissa of each touch point based on the comparison result specifically includes: if there is a first touch point whose abscissa is smaller than the abscissa of the starting point, determining each of the first touch points The variance variable value corresponding to the touch point is the ordinate of the starting point of the reference line segment; if there is a second touch point whose abscissa is greater than the abscissa of the end point, it is determined that the variance variable value corresponding to each second touch point is the The ordinate of the end point of the reference line segment; if there is a third touch point whose abscissa is greater than the abscissa of the start point and less than the abscissa of the end point, the ordinate of each third touch point is determined to the corresponding variance variable value.
  • the element set determining module 53 is specifically configured to: form a rectangular area as a hit area based on the start point and end point of the reference line segment; obtain the associated rectangle of each element in the currently displayed page; In each of the associated rectangles, find overlapping associated rectangles that overlap with the hit area; add the elements corresponding to each of the overlapping associated rectangles to the element set; if the total number of elements in the element set changes, add each The overlapping associated rectangles are respectively used as hit areas, and the overlapping search and element addition operations are performed back until the total number of elements does not change.
  • the device further includes:
  • the element screening module is configured to filter the elements in the element set according to preset element tags before determining the elements in the element set as key information and storing them, and delete the element tags as elements that temporarily generate content.
  • the key information determining device provided in this embodiment can be used to execute the key information determining method provided in any of the foregoing embodiments, and has corresponding functions and beneficial effects.
  • FIG. 6 is a schematic structural diagram of a key information determining device provided by Embodiment 6 of the present invention.
  • the key information determining device includes a processor 60, a memory 61, a display screen 62, an input device 63, and an output device 64.
  • the key information determines that the number of processors 60 in the device may be one or more.
  • One processor 60 is taken as an example in FIG. 6.
  • the key information determining device may have one or more memories 61, and one memory 61 is taken as an example in FIG. 6.
  • the key information determines that the processor 60, the memory 61, the display screen 62, the input device 63, and the output device 64 of the device may be connected by a bus or other methods. In FIG. 6, the connection by a bus is taken as an example.
  • the key information determining device may be a computer, a mobile phone, a tablet, or a smart teaching tablet.
  • the memory 61 can be used to store software programs, computer-executable programs, and modules, such as the program instructions/modules corresponding to the key information determining device according to any embodiment of the present invention (for example, the key information determining device).
  • the memory 61 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 by at least one function; the data storage area may store data created according to the use of the device, and the like.
  • the memory 61 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.
  • the memory 61 may further include a memory remotely provided with respect to the processor 60, 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.
  • the display screen 62 may be a display screen 62 with a touch function, which may be a capacitive screen, an electromagnetic screen or an infrared screen.
  • the display screen 62 is used to display data according to the instructions of the processor 60, such as displaying the specific teaching content of the currently displayed page, the content temporarily added by the teacher during the teaching process, and the touch operation formed by the gesture when the teacher focuses on the explanation.
  • the touch track, etc. are also used to receive touch operations on the display 62 and send corresponding signals to the processor 60 or other devices.
  • the input device 63 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the display device. It can also be a camera for acquiring images and a pickup device for acquiring audio data.
  • the output device 64 may include audio equipment such as speakers. It should be noted that the specific composition of the input device 63 and the output device 64 can be set according to actual conditions.
  • the processor 60 executes various functional applications and data processing of the device by running the software programs, instructions, and modules stored in the memory 61, that is, realizes the aforementioned method for determining key information.
  • the key information determining device provided above can be used to execute the key information determining method provided in any of the foregoing embodiments, and has corresponding functions and beneficial effects.
  • the seventh embodiment of the present invention also provides a storage medium containing computer-executable instructions.
  • the computer-executable instructions are used to execute a method for determining key information when executed by a computer processor, including:
  • the element includes at least one of the following: text, graphic shape, multimedia, and table.
  • a storage medium containing computer-executable instructions provided by an embodiment of the present invention is not limited to the operation of the key information determination method described above, and can also execute the key information provided by any embodiment of the present invention. Determine the relevant operations in the method, and have corresponding functions and beneficial effects.
  • the present invention can be implemented by software and necessary general-purpose hardware. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation. .
  • the technical solution of the present invention can be embodied in the form of a software product, which can be stored in a computer readable storage medium, such as a computer floppy disk. , Read-Only Memory (ROM), Random Access Memory (RAM), Flash memory (FLASH), hard disk or optical disk, etc., including several instructions to make a computer device (which can be a robot, A personal computer, a server, or a network device, etc.) execute the method for determining key information according to any embodiment of the present invention.
  • each part of the present disclosure can be implemented by hardware, software, firmware or a combination thereof.
  • multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a logic gate circuit for implementing logic functions on data signals
  • PGA programmable gate array
  • FPGA field programmable gate array

Abstract

A key information determining method, apparatus and device, and a storage medium. The method comprises: in response to a received touch operation, displaying a touch identifier corresponding to the touch operation (S101); determining an element set associated with the touch identifier in the current display page (S102); determining an element in the element set as key information and storing the key information (S103); in response to the received editing operation, displaying an editing page containing target key information (S104); and when an editing completion instruction is received, storing the editing page (S105). By using the mode, key information in key explanation in the teaching content is quickly identified and stored according to a gesture operation adopted by a teacher during key explanation, so that centralized display of the key explanation content can be realized in a subsequent teaching process by only calling the stored key information, tedious operations for displaying the key explanation content by a teacher is avoided, the non-missing review of the key explanation content is ensured, and the user experience of intelligent teaching is better improved.

Description

关键信息确定方法、装置、设备及存储介质Method, device, equipment and storage medium for determining key information
本申请要求在2019年1月29日提交中国专利局、申请号为201910087616.X的中国专利申请的优先权,以上申请的全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office with an application number of 201910087616.X on January 29, 2019. The entire content of the above application is incorporated into this application by reference.
技术领域Technical field
本公开涉及交互智能平板领域,例如涉及关键信息确定方法、装置、设备及存储介质。The present disclosure relates to the field of interactive smart tablets, for example, to methods, devices, devices, and storage media for determining key information.
背景技术Background technique
近年来随着人们对教育信息化程度的不断提升,基于电子教育设备(如智能教学白板)的现代化教学已成为一种发展趋势。针对基于电子教育设备的教学,教学者可以提前制作演示文档形式的授课内容,然后在授课时将授课内容展示在智能教育白板上。In recent years, with the continuous improvement of people's education informatization, modern teaching based on electronic education equipment (such as smart teaching whiteboard) has become a development trend. For teaching based on electronic educational equipment, teachers can prepare teaching content in the form of presentation documents in advance, and then display the teaching content on the smart education whiteboard during the teaching.
一般地,教学者在授课过程中其所展示的授课内容中往往存在一些需要重点讲解的教学内容,而这些重点讲解的教学内容往往是教学者希望听讲者重点掌握的。在实现本公开的过程中,发现相关技术存在如下缺陷:教学者在后续授课时会对之前授课时重点讲解的教学内容进行课堂回顾,此时教学者只能手动查找之前重点讲解的教学内容,该种向听讲者展现重要教学内容的方式操作繁琐,同时也不利于实现教学者对所有重点教学内容的无遗漏回顾,由此降低了智能教学的用户体验。Generally, the teaching content displayed by the teacher during the teaching process often has some teaching content that needs to be explained, and the teaching content of these key explanations is often what the teacher wants the listener to master. In the process of realizing the present disclosure, it was discovered that the related technology has the following shortcomings: in subsequent lectures, the teacher will review the teaching content that was emphasized in the previous lecture. At this time, the teacher can only manually find the teaching content that was previously explained. This method of presenting important teaching content to the lecturers is cumbersome to operate, and at the same time it is not conducive to the realization of the teacher's complete review of all key teaching content, thereby reducing the user experience of intelligent teaching.
发明内容Summary of the invention
有鉴于此,本发明实施例提供一种关键信息确定方法、装置、设备及存储介质,以解决相关技术中无法对教学者授课过程中重点讲解的内容进行有效提取的技术问题。In view of this, the embodiments of the present invention provide a method, device, device, and storage medium for determining key information to solve the technical problem of the inability to effectively extract the content emphasized by the teacher in the course of teaching.
第一方面,本发明实施例提供了一种关键信息确定方法,包括:In the first aspect, an embodiment of the present invention provides a method for determining key information, including:
响应于接收到的作用在当前显示页面上的触摸操作,显示所述触摸操作对应的触摸标识;In response to the received touch operation acting on the currently displayed page, displaying the touch identifier corresponding to the touch operation;
确定所述触摸标识在当前显示页面中关联的元素集合,所述当前显示页面中包含至少一个元素;Determining the set of elements associated with the touch identifier in the currently displayed page, and the currently displayed page contains at least one element;
将所述元素集合中的元素确定为关键信息并存储;Determine and store the elements in the element set as key information;
响应于接收到的作用在目标关键信息的编辑操作,显示包含所述目标关键信息的编辑页面,所述目标关键信息为所述元素集合中任一作为关键信息的元素;In response to the received editing operation acting on the target key information, displaying an editing page containing the target key information, where the target key information is any element in the set of elements that is used as key information;
接收到编辑完成指令时,保存所述编辑页面;When receiving the edit completion instruction, save the edit page;
其中,所述元素包括以下至少之一:文本、图形形状、多媒体以及表格。Wherein, the element includes at least one of the following: text, graphic shape, multimedia, and table.
第二方面,本发明实施例还提供一种关键信息确定装置,包括:In the second aspect, an embodiment of the present invention also provides a key information determining device, including:
第一响应模块,用于响应于接收到的作用在当前显示页面上的触摸操作,显示所述触摸操作对应的触摸标识;The first response module is configured to display a touch mark corresponding to the touch operation in response to the received touch operation on the currently displayed page;
元素集合确定模块,用于确定所述手势类型在当前显示页面中关联的元素集合,所述当前显示页面中包含至少一个元素;An element set determining module, configured to determine a set of elements associated with the gesture type in the currently displayed page, and the currently displayed page contains at least one element;
关键信息存储模块,用于将所述元素集合中的元素确定为关键信息并存储;The key information storage module is used to determine and store the elements in the element set as key information;
第二响应模块,用于响应于接收到的作用在目标关键信息的编辑操作,显示包含所述目标关键信息的编辑页面,所述目标关键信息为所述元素集合中任一作为关键信息的元素;The second response module is configured to display an editing page containing the target key information in response to the received editing operation acting on the target key information, where the target key information is any element in the set of elements that is used as key information ;
编辑存储模块,用于接收到编辑完成指令时,保存所述编辑页面;The edit storage module is used to save the edit page when receiving the edit completion instruction;
其中,所述元素包括以下至少之一:文本、图形形状、多媒体以及表格。Wherein, the element includes at least one of the following: text, graphic shape, multimedia, and table.
第三方面,本发明实施例还提供一种关键信息确定设备,包括:存储器、显示屏以及一个或多个处理器;In a third aspect, an embodiment of the present invention also provides a key information determining device, including: a memory, a display screen, and one or more processors;
所述存储器,用于存储一个或多个程序;The memory is used to store one or more programs;
所述显示屏,用于显示当前显示页面及对应触摸操作的触摸轨迹;The display screen is used to display the currently displayed page and the touch track corresponding to the touch operation;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如第一方面所述的关键信息确定方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the key information determination method as described in the first aspect.
第四方面,本发明实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如第一方面所述的关键信息确定方法。In a fourth aspect, an embodiment of the present invention also provides a storage medium containing computer-executable instructions, which are used to execute the method for determining key information as described in the first aspect when executed by a computer processor.
上述提供的一种关键信息确定方法、装置、设备及存储介质,首先响应于接收到的作用在当前显示页面上的触摸操作,显示所述触摸操作对应的触摸标识;然后确定所述触摸标识在当前显示页面中关联的元素集合;之后将所述元素集合中的元素确定为关键信息并存储,最终,响应于接收到的作用在目标关键信息的编辑操作,显示包含所述目标关键信息的编辑页面,所述目标关键信息为所述元素集合中任一作为关键信息的元素;接收到编辑完成指令时,保存所述编辑页面。上述技术方案,能够根据教学者在授课过程中进行重点讲解时采用的触摸操作,快速识别授课内容中重点讲解的关键信息并存储,从而保证在后续授课时仅通过调用存储的关键信息就能实现重点讲解内容的集中展现,由此不仅避免了教学者进行重点讲解内容展现时的繁琐操作,还保证了重点讲解内容的无遗漏回顾,更好的提升了智能教学的用户体验。The method, device, device, and storage medium for determining key information provided above firstly respond to a received touch operation acting on the currently displayed page and display the touch identifier corresponding to the touch operation; then determine that the touch identifier is The set of associated elements in the currently displayed page; then the elements in the set of elements are determined as key information and stored, and finally, in response to the received editing operation acting on the target key information, the edit containing the target key information is displayed Page, the target key information is any element in the set of elements that is used as key information; when an editing completion instruction is received, the editing page is saved. The above technical solution can quickly identify and store the key information that is emphasized in the teaching content according to the touch operation used by the teacher during the key explanation during the teaching process, so as to ensure that it can be achieved only by calling the stored key information during subsequent lectures The centralized presentation of the key explanation content not only avoids the cumbersome operation of the teacher when the key explanation content is displayed, but also ensures the complete review of the key explanation content, and better improves the user experience of intelligent teaching.
附图说明Description of the drawings
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本公开的其它特征、目的和优点将会变得更明显:By reading the detailed description of the non-limiting embodiments with reference to the following drawings, other features, purposes and advantages of the present disclosure will become more apparent:
图1为本发明实施例一提供的一种关键信息确定方法的流程图;FIG. 1 is a flowchart of a method for determining key information according to Embodiment 1 of the present invention;
图2a为本发明实施例二提供的一种关键信息确定方法的流程图;FIG. 2a is a flowchart of a method for determining key information according to Embodiment 2 of the present invention;
图2b给出了本发明实施例二中确定手势关联元素的示例图;Figure 2b shows an example diagram of determining gesture-related elements in the second embodiment of the present invention;
图3a为本发明实施例三提供的一种关键信息确定方法的流程图;FIG. 3a is a flowchart of a method for determining key information according to Embodiment 3 of the present invention;
图3b给出了本发明实施例三中进行触摸轨迹圈形判定的实现流程图;Figure 3b shows a flow chart of the implementation of the circle shape determination of the touch track in the third embodiment of the present invention;
图3c给出了触摸操作关联的手势类型为画圈的示例图;Figure 3c shows an example diagram of the gesture type associated with the touch operation as drawing a circle;
图4a为本发明实施例四提供的一种关键信息确定方法的流程图;FIG. 4a is a flowchart of a method for determining key information according to Embodiment 4 of the present invention;
图4b给出了本发明实施例四中进行触摸轨迹线形判定的实现流程图;Figure 4b shows a flow chart of the implementation of the touch track line shape determination in the fourth embodiment of the present invention;
图4c给出了本发明实施例四中确定手势关联元素的示例图;Figure 4c shows an example diagram of determining gesture-related elements in the fourth embodiment of the present invention;
图4d给出了进行关键信息存储的存储文件夹示例图;Figure 4d shows an example diagram of storage folders for key information storage;
图5为本发明实施例五提供的一种关键信息确定装置的结构示意图;FIG. 5 is a schematic structural diagram of an apparatus for determining key information according to Embodiment 5 of the present invention;
图6为本发明实施例六提供的一种关键信息确定设备的结构示意图。FIG. 6 is a schematic structural diagram of a key information determining device provided by Embodiment 6 of the present invention.
具体实施方式detailed description
下面结合附图和实施例对本公开作进一步的详细说明。可以理解的是,此处所描述的具 体实施例仅仅用于解释本公开,而非对本公开的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本公开相关的部分而非全部内容。The present disclosure will be further described in detail below in conjunction with the drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the present disclosure, but not to limit the present disclosure. In addition, it should be noted that, for ease of description, the drawings only show part of the content related to the present disclosure, but not all of the content.
实施例一Example one
图1为本发明实施例一提供的一种关键信息确定方法的流程图。实施例中提供的关键信息确定方法可以由关键信息确定设备执行,该关键信息确定设备可以通过软件和/或硬件的方式实现,该关键信息确定设备可以是两个或多个物理实体构成,也可以是一个物理实体构成。一般而言,关键信息确定设备具备电子白板功能,该关键信息确定设备可以是电脑,手机,平板或智能教学平板等。FIG. 1 is a flowchart of a method for determining key information provided by Embodiment 1 of the present invention. The method for determining key information provided in the embodiments may be executed by a key information determining device, which may be implemented by software and/or hardware, and the key information determining device may be composed of two or more physical entities. It can be a physical entity. Generally speaking, the key information determining device has an electronic whiteboard function, and the key information determining device can be a computer, a mobile phone, a tablet, or a smart teaching tablet.
为了便于理解,实施例中以智能教学平板为关键信息确定设备进行示例性描述。其中,智能教学平板可以是通过触控技术对显示在显示平板上的内容进行操控和实现人机交互操作的一体化设备,其集成了投影机、电子白板、幕布、音响、电视机以及视频会议终端等一种或多种功能。一般而言,智能教学平板的显示屏可以是电容屏、电阻屏或者电磁屏。用户可以通过手指或者触控笔对智能教学平板进行触控操作。For ease of understanding, in the embodiments, a smart teaching tablet is used as a key information determining device for exemplary description. Among them, the smart teaching tablet can be an integrated device that controls the content displayed on the display tablet through touch technology and realizes human-computer interaction. It integrates a projector, an electronic whiteboard, a screen, a sound, a TV, and a video conference. One or more functions such as a terminal. Generally speaking, the display screen of the smart teaching tablet can be a capacitive screen, a resistive screen or an electromagnetic screen. Users can perform touch operations on the smart teaching tablet with fingers or a stylus.
在一实施方式中,智能教学平板中安装有操作系统自带的应用软件,同时,也安装有从第三方设备或者服务器中下载的应用软件,其中,应用软件的具体类型及内容可以根据实际情况设定,通常,该应用软件具有电子白板功能,其可以通过电子白板功能实现:书写、绘图、批注、课件制作以及展示播放等功能。实施例中设定电子白板功能具有课件制作及展示播放功能,其中,课件制作是指在智能教学平板上通过用户(该用户可以是教学者)在课件编辑页面中进行的元素输入或插入操作,此外,展示播放具体可指将课件编辑页面中内容在授课模式下作为演示播放页面进行的课件演示,展示播放具体可通过用户对演示播放按钮触发实现。In one embodiment, the application software that comes with the operating system is installed on the smart teaching tablet. At the same time, application software downloaded from a third-party device or server is also installed. The specific type and content of the application software can be based on actual conditions. Setting, usually, the application software has an electronic whiteboard function, which can be realized by the electronic whiteboard function: writing, drawing, annotation, courseware production, display and playback functions. In the embodiment, the electronic whiteboard function is set to have the function of courseware production and display and playback. Among them, the courseware production refers to the element input or insertion operation performed by the user (the user may be a teacher) on the courseware editing page on the smart teaching tablet. In addition, the display and playback can specifically refer to the courseware demonstration in which the content in the courseware editing page is used as the demonstration playback page in the teaching mode. The display and playback can be realized by triggering the demo playback button by the user.
可以理解的是,本实施例中关键信息确定方法的执行时机可以是用户触发演示播放按钮将授课内容以演示播放页面形式展示时,此时,可以相当于触摸关键信息确定功能的启动,以实现对教学者授课过程中对重点讲解的关键内容的确定和存储,需要说明的是,本实施例可以将当前展示给听讲者的演示播放页面记为当前显示页面。It is understandable that the execution timing of the key information determination method in this embodiment can be when the user triggers the demo play button to display the teaching content in the form of a demo play page. At this time, it can be equivalent to the activation of the key information determination function by touching it to achieve For the determination and storage of the key content of the key explanation during the teaching process of the teacher, it should be noted that this embodiment may record the demo playback page currently displayed to the lecturer as the current display page.
如图1所示,本发明实施例一提供的一种关键信息确定方法,包括如下操作:As shown in FIG. 1, the method for determining key information provided by Embodiment 1 of the present invention includes the following operations:
S101、响应于接收到的作用在当前显示页面上的触摸操作,显示所述触摸操作对应的触摸标识。S101: In response to a received touch operation acting on a currently displayed page, display a touch identifier corresponding to the touch operation.
在本实施例中,执行所提供关键信息确定方法的智能交互平板具备触摸功能,由此,教学者在授课过程中可以通过触控方式,利用手指或者触控笔在智能交互平板上进行点击以及移动等操作,从而使智能教学平板接收到教学者的触摸操作。In this embodiment, the smart interactive tablet that executes the provided key information determination method has a touch function. Therefore, the teacher can use a finger or a stylus to click and click on the smart interactive tablet through touch during the teaching process. Move and other operations, so that the smart teaching tablet receives the touch operation of the teacher.
在本实施例中,所述触摸标识可理解为用户进行触摸操作时具体可在显示屏上显示的标识,该标识可以根据用户进行触摸操作时具体采用手势的不同,显示不同的标识,如,用户可以采用敲击的手势、或者采用画圈的手势、又或者采用画线的手势在智能交互平板上进行触摸操作,而相应形成的标识可分别为圆形区域、圈形轨迹或线性轨迹。本实施例中,可认为教学者在授课过程中进行重点内容讲解时,会在重点内容所在的区域通过一些手势进行重点标注,而重点标注的过程相当于教学者基于上述手势在智能教育平板上产生触摸操作并显示相应触摸关联的过程。In this embodiment, the touch logo can be understood as a logo that can be specifically displayed on the display screen when the user performs a touch operation. The logo can display different logos according to the specific gestures used by the user when the user performs a touch operation, for example, The user can use tap gestures, circle gestures, or line gestures to perform touch operations on the smart interactive tablet, and the corresponding identifiers can be circular areas, circular trajectories, or linear trajectories. In this embodiment, it can be considered that when the teacher explains the key content during the course, he will use some gestures to mark the area where the key content is located, and the key marking process is equivalent to the teacher based on the above gestures on the smart education tablet. Generate a touch operation and display the process of the corresponding touch association.
本实施例可以通过对所接收触摸操作的手势类型识别,来进一步确定该手势类型具体对 应了哪些重点标注。In this embodiment, by recognizing the gesture type of the received touch operation, it can further determine which key annotations the gesture type specifically corresponds to.
本步骤可以通过对智能教学平台所接收触摸操作的分析,确定该触摸操作具体标识了哪种手势类型,示例性地,本步骤可以通过分析每次接收触摸操作的时间间隔及位置差以及监听到形成触摸操作的按下事件和抬起事件的时间间隔及位置差,该确定用户产生触摸操作时的手势是否为敲击等;此外,本步骤也可以通过对所接收触摸操作的触摸轨迹的展示形状进行分析,来确定用户产生触摸操作时的手势是否为画线或者画圈等。This step can determine which gesture type is specifically identified by the touch operation by analyzing the touch operation received by the intelligent teaching platform. For example, this step can analyze the time interval and position difference of each touch operation received, and monitor The time interval and position difference between the pressing event and the lifting event of the touch operation are formed, which determines whether the gesture when the user generates the touch operation is a tap, etc.; in addition, this step can also be used to display the touch track of the received touch operation The shape is analyzed to determine whether the gesture when the user generates a touch operation is drawing a line or drawing a circle.
S102、确定所述触摸标识在当前显示页面中关联的元素集合。S102: Determine the set of elements associated with the touch identifier in the currently displayed page.
在本实施例中,确定了触摸操作的触摸标识后,可以确定教学者基于该触摸标识具体对当前显示页面中哪些授课内容进行了标注,本步骤可通过对触摸标识关联元素集合确定来确定教学者重点标注的授课内容。其中,所述当前显示页面相当于演示模式下当前展现给观众的演示播放页面,一般而言,当前显示页面中的显示内容可以是在课程编辑阶段添加的多种不同元素类型的元素,示例地,其元素类型可以有图像、可编辑图形、表格、音视频、文本框以及多媒体等,由此本实施例可认为当前显示页面中包含了至少一个元素。所述元素集合可理解为包含了当前显示页面中与触摸标识相关的关联元素的集合。In this embodiment, after the touch identification of the touch operation is determined, it can be determined that the teacher specifically marked which teaching content in the currently displayed page based on the touch identification. In this step, the teaching can be determined by determining the set of elements associated with the touch identification. The content of the lecture marked by the author. Wherein, the current display page is equivalent to the demo playback page currently displayed to the audience in the demo mode. Generally speaking, the display content in the current display page can be elements of a variety of different element types added during the course editing stage. , The element types can include images, editable graphics, tables, audio and video, text boxes, multimedia, etc. Therefore, in this embodiment, it can be considered that the currently displayed page contains at least one element. The element set can be understood as a set that includes the associated elements related to the touch identifier in the currently displayed page.
在一实施方式中,进行触摸标识所关联元素集合的确定可描述为:在确定所接收触摸操作显示的触摸标识后,可以调用预先存储的对应的触摸关联的关联元素确定规则,然后根据不同触摸标识对应的不同关联元素确定规则,确定触摸标识关联的元素集合。In one embodiment, the determination of the set of elements associated with the touch identification can be described as: after the touch identification displayed by the received touch operation is determined, the pre-stored corresponding touch-associated associated element determination rule can be called, and then according to different touches The identification rules corresponding to different associated elements determine the set of elements associated with the touch identification.
示例性的,不同关联元素确定规则中的核心均可概括为:基于相应的触摸标识确定一个命中区域,然后遍历当前显示页面中各元素呈现依赖的关联矩形,之后,如果所遍历关联矩形与命中区域存在重叠,就可将关联矩形对应的元素作为关联元素添加到元素集合中。为实现关联元素的无遗漏添加,本实施例可以将存在重叠的关联矩形作为新的命中区域,然后迭代执行关联元素的添加,直至再无新的元素可添加至元素集合。Exemplarily, the core of the rules for determining different associated elements can be summarized as follows: determine a hit area based on the corresponding touch identifier, and then traverse the associated associated rectangles that each element in the current display page depends on, and then, if the traversed associated rectangles and hits If the regions overlap, the element corresponding to the associated rectangle can be added to the element set as the associated element. In order to realize the complete addition of associated elements, this embodiment may use overlapping associated rectangles as new hit areas, and then iteratively perform the addition of associated elements until no new elements can be added to the element set.
S103、将元素集合中的元素确定为关键信息并存储。S103: Determine and store an element in the element set as key information.
基于上述步骤确定出与触摸标识关联的元素集合后,相当于确定出教学者通过触摸操作标注的重点授课内容,本步骤将元素集合中的元素确定为关键信息,实际相当于将确定出的元素作为教学者授课过程中重点讲解和标注的重点授课内容,确定关键信息后,还可以对关键信息进行序列化保存,以在后续进行重点授课内容回顾时,可直接对存储的关键信息进行调取显示。After determining the element set associated with the touch mark based on the above steps, it is equivalent to determining the key teaching content marked by the teacher through the touch operation. In this step, the elements in the element set are determined as key information, which is actually equivalent to the determined element As the key teaching content that is explained and marked by the teacher during the teaching process, after the key information is determined, the key information can also be serialized and stored, so that the stored key information can be directly retrieved when the key teaching content is reviewed later display.
需要说明的是,本实施例还可以考虑元素集合中各元素在当前显示页面中进行显示时的相关性,由此在对关键信息进行存储时,同时将元素显示时的相关性也一并保存,由此可以在调取存储的关键信息时,使得作为关键信息的各元素能够以原有显示状态进行显示。本实施例中将关键信息已原有状态进行显示好处还表现在便于用户对所有关键信息的汇总和编辑。It should be noted that this embodiment may also consider the relevance of each element in the element set when displayed in the currently displayed page, so that when key information is stored, the relevance of the element when displayed is also saved. Therefore, when the stored key information is retrieved, each element of the key information can be displayed in the original display state. In this embodiment, the advantage of displaying the original state of the key information is also manifested in the convenience for the user to summarize and edit all the key information.
S104、响应于接收到的作用在目标关键信息的编辑操作,显示包含所述目标关键信息的编辑页面。S104: In response to the received editing operation acting on the target key information, display an editing page containing the target key information.
在本实施例中,获取到存储的元素集合后,用户可以对存储的元素集合汇总的关键信息进行编辑,本步骤可以在接收到用户触发的对元素集合中作为关键信息的任一元素的编辑操作后,在智能交互平板的显示屏上显示所触发元素的编辑页面,可以理解的是,本步骤将用户从所述元素集合中触发编辑的任一元素作为目标关键信息。In this embodiment, after obtaining the stored element set, the user can edit the key information summarized in the stored element set. This step can edit any element in the element set that is the key information triggered by the user. After the operation, the edit page of the triggered element is displayed on the display screen of the smart interactive tablet. It can be understood that in this step, any element triggered by the user to edit from the set of elements is used as the target key information.
S105、接收到编辑完成指令时,保存所述编辑页面。S105. When receiving the editing completion instruction, save the editing page.
在本实施例中,上述显示了目标关键信息的编辑页面后,用户可以在所显示的编辑页面中对目标关键信息进行编辑,且可以在完成编辑后触发生成编辑指令,本步骤可以接收到用户触发的编辑完成指令,由此响应该编辑完成指令进而执行对该编辑页面的保存操作。In this embodiment, after the editing page of the target key information is displayed, the user can edit the target key information in the displayed editing page, and can trigger the generation of editing instructions after editing is completed. This step can receive the user The editing completion instruction is triggered, thereby responding to the editing completion instruction to execute the saving operation of the editing page.
本发明实施例一提供的一种关键信息确定方法,首先响应于接收到的作用在当前显示页面上的触摸操作,显示所述触摸操作对应的触摸标识;然后确定所述触摸标识在当前显示页面中关联的元素集合;之后将所述元素集合中的元素确定为关键信息并存储,最终,响应于接收到的作用在目标关键信息的编辑操作,显示包含所述目标关键信息的编辑页面,所述目标关键信息为所述元素集合中任一作为关键信息的元素;接收到编辑完成指令时,保存所述编辑页面。上述技术方案,能够根据教学者在授课过程中进行重点讲解时采用的触摸操作,快速识别授课内容中重点讲解的关键信息并存储,从而保证在后续授课时仅通过调用存储的关键信息就能实现重点讲解内容的集中展现,由此不仅避免了教学者进行重点讲解内容展现时的繁琐操作,还保证了重点讲解内容的无遗漏回顾,此外,本技术方案还能够在需要时对确定出的关键信息进行编辑操作,即实现了重点讲解内容的有效汇总,又实现了重点讲解内容的重复编辑和整理,更好的提升了智能教学的用户体验。In the method for determining key information provided in the first embodiment of the present invention, firstly, in response to a received touch operation acting on the currently displayed page, a touch indicator corresponding to the touch operation is displayed; then it is determined that the touch indicator is on the currently displayed page The set of associated elements in the set; then the elements in the set of elements are determined as key information and stored, and finally, in response to the received editing operation acting on the target key information, the editing page containing the target key information is displayed, so The target key information is any element in the set of elements as key information; when an editing completion instruction is received, the editing page is saved. The above technical solution can quickly identify and store the key information that is emphasized in the teaching content according to the touch operation used by the teacher during the key explanation during the teaching process, so as to ensure that it can be achieved only by calling the stored key information during subsequent lectures The centralized presentation of the key explanation content not only avoids the cumbersome operation of the teacher when the key explanation content is displayed, but also ensures the complete review of the key explanation content. In addition, this technical solution can also determine the key points when needed. The information editing operation not only realizes the effective summary of the key explanation content, but also realizes the repeated editing and collation of the key explanation content, which better improves the user experience of intelligent teaching.
本实施例在上述基础上进一步优化增加了所确定元素集合的元素筛选操作,例如,本实施例在将所述元素集合中的元素确定为关键信息并存储之前,还包括:根据预设的元素标签筛选所述元素集合中的元素,删除元素标签为临时产生内容的元素。This embodiment further optimizes and adds the element filtering operation of the determined element set based on the above. For example, before determining and storing the elements in the element set as key information, this embodiment further includes: according to preset elements The tag filters the elements in the element set, and deletes the element tag as an element that temporarily generates content.
需要说明的是,对于当前显示页面中展现的元素,可能有一些是教学者在授课前基于课件编辑模式下形成的备课内容,可能还有一些是教学者在授课过程中临时板书上的内容,例如,本实施例认为授课过程中的重点讲解内容已在备课阶段形成,如果确定的元素集合中包括了临时板书内容,可能会为重点讲解内容的展现带来干扰,因此,本实施例在确定元素集合后,为避免临时板书内容对重点讲解内容的干扰,再次对所确定元素集合中的元素进行筛选。It should be noted that for the elements displayed on the current display page, some may be the preparation content formed by the teacher based on the courseware editing mode before the lecture, and some may be the content on the temporary blackboard during the lecture. For example, this embodiment believes that the key explanation content in the teaching process has been formed during the lesson preparation stage. If the determined element set includes temporary blackboard content, it may interfere with the presentation of the key explanation content. Therefore, this embodiment is determining After the element collection, in order to avoid the interference of the temporary blackboard content on the key explanation content, the elements in the determined element collection are filtered again.
在一实施方式中,对于课件编辑阶段形成的授课内容,其在演示播放模式下打开时,本实施例为所打开的元素添加一个元素标签,以标识该元素为预先编辑的授课内容,同时也可以为授课过程中教学者板书的临时元素添加一个元素标签,以标识该元素为临时产生的板书内容,本实施例可以获取元素集合中各元素的元素标签,当确定元素标签为临时产生内容时,就可将该元素标签对应的元素从元素集合中删除,或者,当确定元素标签为备课编辑内容时,就可将该元素标签对应的元素保留在元素集合中。基于上述操作,可以保证所确定的关键信息仅为备课阶段编辑的元素。In one embodiment, for the teaching content formed in the courseware editing stage, when it is opened in the demo play mode, this embodiment adds an element tag to the opened element to identify the element as pre-edited teaching content, and also An element tag can be added to the temporary element of the teacher’s blackboard during the teaching process to identify the element as temporarily generated blackboard content. In this embodiment, the element tag of each element in the element set can be obtained. When it is determined that the element tag is temporarily generated content , The element corresponding to the element tag can be deleted from the element collection, or, when the element tag is determined to be the lesson preparation content, the element corresponding to the element tag can be kept in the element collection. Based on the above operations, it can be ensured that the determined key information is only the elements edited during the lesson preparation stage.
实施例二Example two
图2a为本发明实施例二提供的一种关键信息确定方法的流程图,本发明实施例以上述实施例为基础进行优化,在本实施例中,将响应于接收到的作用在当前显示页面上的触摸操作优化为:确定接收到的作用在当前显示页面上的触摸操作关联的手势类型,显示对应所述手势类型的触摸标识。Fig. 2a is a flowchart of a method for determining key information provided in the second embodiment of the present invention. The embodiment of the present invention is optimized based on the foregoing embodiment. In this embodiment, the currently displayed page will be displayed in response to the received action The optimization of the above touch operation is: determining the received gesture type associated with the touch operation acting on the currently displayed page, and displaying the touch identifier corresponding to the gesture type.
对于上述优化,教学者在授课过程中,可以在需要进行重点内容讲解时,在智能交互平板的当前显示页面上进行触摸,在本实施例中,可认为智能教学平板具备触摸操作的监听功能,本实施例由此可以接收并响应生成的触摸操作。For the above optimization, in the course of teaching, the teacher can touch on the current display page of the smart interactive tablet when it is necessary to explain the key content. In this embodiment, the smart teaching tablet can be considered to have a touch operation monitoring function. This embodiment can thus receive and respond to the generated touch operation.
同时,本实施例可以通过识别所接收触摸操作关联的手势类型,来进一步确定该手势类型具体对应了哪些触摸标识,并可确定各触摸标识具体标识了教学者所讲解内容中的哪些重点标注。At the same time, this embodiment can further determine which touch marks the gesture type specifically corresponds to by identifying the gesture type associated with the received touch operation, and can determine which touch marks specifically identify which key marks in the content explained by the teacher.
在一实施方式中,本实施例可以通过对智能教学平台所接收触摸操作的分析,确定该触摸操作具体关联了哪种手势类型,示例性地,本实施例可以通过分析每次接收触摸操作的时间间隔及位置差以及监听到形成触摸操作的按下事件和抬起事件的时间间隔及位置差,来确定用户产生触摸操作时的手势是否为敲击等;此外,本步骤也可以通过对所接收触摸操作的触摸轨迹的展示形状进行分析,来确定用户产生触摸操作时的手势是否为画线或者画圈等。In one embodiment, this embodiment can determine which gesture type is specifically associated with the touch operation by analyzing the touch operation received by the intelligent teaching platform. Illustratively, this embodiment can analyze the touch operation received each time. The time interval and position difference, as well as the time interval and position difference of listening to the press event and lift event forming the touch operation, determine whether the gesture when the user generates the touch operation is a tap, etc.; in addition, this step can also be performed by The display shape of the touch track received by the touch operation is analyzed to determine whether the gesture when the user generates a touch operation is drawing a line or drawing a circle.
此外,在上述优化的基础上,本实施例进一步对确定接收到的作用在当前显示页面上的触摸操作关联的手势类型,显示对应所述手势类型的触摸标识进行优化,且可从手势类型为敲击、画圈以及画线等多个角度进行优化。In addition, on the basis of the above optimization, this embodiment further optimizes the determination of the received gesture type associated with the touch operation on the currently displayed page, the display of the touch identifier corresponding to the gesture type, and the gesture type can be Multiple angles such as tapping, circle drawing and line drawing are optimized.
如图2a所示,本发明实施例二提供的一种关键信息确定方法,包括如下操作:As shown in Fig. 2a, a method for determining key information provided in the second embodiment of the present invention includes the following operations:
需要说明的是,本实施例二提供了教学者在授课过程中采用敲击的手势对重点讲解内容进行标注时的关键信息确定过程。首先,本实施例的S201至S203描述了怎样确定所接收触摸操作关联的手势类型为敲击的实现过程。It should be noted that the second embodiment provides a key information determination process when the teacher uses tapping gestures to mark the key explanation content during the teaching process. First, S201 to S203 of this embodiment describe the implementation process of how to determine that the gesture type associated with the received touch operation is tap.
S201、当监听到包括一次触摸按下事件和一次触摸抬起事件的事件组合时,确定接收到一次触摸操作。S201: When an event combination including a touch down event and a touch up event is monitored, it is determined that a touch operation is received.
在本实施例中,可认为智能教学平板具备触摸操作中各触摸事件的监听功能,由此可以具体对用户在智能教学平板上的触摸事件进行监听,本实施例可以监听到一组用户产生的触摸事件,如果该组触摸事件中包括一次触摸按下事件和一次触摸抬起事件,就可认为用户在智能教学平板上进行了一次触摸操作,本步骤可接收到用户产生的每次触摸操作。In this embodiment, it can be considered that the smart teaching tablet has a monitoring function for each touch event in the touch operation, so that it can specifically monitor the user's touch events on the smart teaching tablet. This embodiment can monitor a group of user-generated touch events. Touch events. If the group of touch events includes a touch down event and a touch up event, it can be considered that the user has performed a touch operation on the smart teaching tablet, and each touch operation generated by the user can be received in this step.
S202、如果设定时间段内接收到至少三次触摸操作,则获取各触摸操作的触摸信息。S202: If at least three touch operations are received within a set time period, acquire touch information of each touch operation.
基于S201进行触摸操作接收时,可以对每次触摸操作的接收时间进行监测,以判定是否在设定时间段内接收到至少三次触摸操作,其中,所述设定时间段的具体值可基于实际应用实际设定,且一次触摸操作的接收时间可以按触摸按下事件的产生时间来记录,也可按触摸抬起事件的产生时间来记录。When receiving a touch operation based on S201, the receiving time of each touch operation can be monitored to determine whether at least three touch operations are received within a set time period. The specific value of the set time period may be based on actual The actual setting is applied, and the receiving time of a touch operation can be recorded according to the generation time of the touch down event or the generation time of the touch up event.
为区别用户作用在智能教学平板上的触摸操标识为点击、双击还是敲击,本实施例设定只有在设定时间段内接收到至少三次触摸操作,才认为满足敲击的基本判定,由此,当设定时间段内接收到至少三次触摸操作时,才进行触摸操作是否标识敲击的后续判定,否则,可直接确定触摸操作关联的手势类型不是敲击。In order to distinguish whether the user’s touch operation on the smart teaching tablet is a tap, a double-click, or a tap, this embodiment sets that only if at least three touch operations are received within a set time period, will it be considered that the basic determination of tap is satisfied. Therefore, when at least three touch operations are received within the set time period, the subsequent determination of whether the touch operation identifies a tap is performed, otherwise, it can be directly determined that the gesture type associated with the touch operation is not a tap.
本实施例中,所述触摸信息具体可指表示触摸操作所产生时间和作为位置的属性信息(如事件组合中各触摸事件的产生时间,又如各触摸事件作用在智能教学平板上的作用位置等),触摸信息可在事件组合作用在智能教学平板上时相应生成,本步骤可直接获取给触摸操作的触摸信息。In this embodiment, the touch information may specifically refer to attribute information representing the time and position of a touch operation (such as the time when each touch event is generated in an event combination, or the position where each touch event acts on a smart teaching tablet). Etc.), the touch information can be generated when the event combination acts on the smart teaching tablet. In this step, the touch information for the touch operation can be directly obtained.
S203、如果各触摸操作的触摸信息均满足第一判定条件且相邻两触摸操作满足第二判定条件,则确定至少三次触摸操作关联的手势类型为敲击。S203: If the touch information of each touch operation meets the first determination condition and two adjacent touch operations meet the second determination condition, determine that the gesture type associated with the at least three touch operations is tap.
本实施例可以认为在设定时间段内所接收各触摸操作的触摸信息满足第一判定条件以及相邻两触摸操作满足第二判定条件后,才确定作用在智能教学白板上的至少三次触摸操作关联的手势类型为敲击;否则,可认为手势类型不为敲击,此时可终止本实施例后续的操作。In this embodiment, it can be considered that after the touch information of each touch operation received within the set time period meets the first determination condition and two adjacent touch operations meet the second determination condition, at least three touch operations on the smart teaching whiteboard are determined The associated gesture type is tap; otherwise, it can be considered that the gesture type is not tap, and the subsequent operations of this embodiment can be terminated at this time.
在一实施方式中,所述触摸操作的触摸信息包括:触摸按下事件的第一产生时间和第一产生位置以及触摸抬起事件的第二产生时间和第二产生位置;In an embodiment, the touch information of the touch operation includes: the first generation time and the first generation position of the touch-down event, and the second generation time and the second generation position of the touch-up event;
所述第一判定条件为:第二产生时间与相应第一产生时间的差值小于第一时间阈值且第二产生位置与第一产生位置的位置差小于第一距离阈值;The first determination condition is: the difference between the second generation time and the corresponding first generation time is less than a first time threshold, and the position difference between the second generation position and the first generation position is less than a first distance threshold;
所述第二判定条件为:后一触摸操作与前一触摸操作的时间差小于第二时间阈值且后一触摸操作与前一触摸操作的距离差小于第二距离阈值。The second determination condition is that the time difference between the next touch operation and the previous touch operation is less than the second time threshold, and the distance difference between the next touch operation and the previous touch operation is less than the second distance threshold.
可以理解的是,所述位置差可以是:产生位置里横坐标差值或纵坐标差值中的最大值;所述时间差可指:两触摸操作的第一产生时间差,或者第二产生时间差,又或者,后一触摸操作的第一产生时间与前一触摸操作的第二产生时间的差值;所述距离差可指:后一触摸操作的第一产生位置与前一触摸操作的第一产生位置的差值。It is understandable that the position difference may be: the maximum value of the abscissa difference or the ordinate difference in the generated position; the time difference may refer to: the first generation time difference or the second generation time difference of two touch operations, Or, the difference between the first generation time of the next touch operation and the second generation time of the previous touch operation; the distance difference may refer to: the first generation position of the next touch operation and the first generation time of the previous touch operation Generate the difference in position.
此外,为了使关键信息的确定过程与教学者的自然手势操作更加契合,在执行本实施例前,技术人员首先对教学者实际教学中的触摸操作数据进行采样,以对第一时间阈值、第一距离阈值、第二时间阈值以及第二距离阈值进行测试训练,由此获得更符合实际操作的取值范围,如,第一时间阈值及第二时间阈值均可优选在0.5s~1s的范围内取值,第一距离阈值可优选在2cm~5cm或者在16像素~30像素的范围内取值,第二距离阈值可优选在5cm~8cm的范围内取值。In addition, in order to make the process of determining key information more compatible with the natural gesture operation of the teacher, before performing this embodiment, the technician first samples the touch operation data of the teacher in the actual teaching to determine the first time threshold and the first time threshold. A distance threshold, a second time threshold, and a second distance threshold are tested and trained to obtain a value range that is more in line with the actual operation. For example, the first time threshold and the second time threshold can preferably be in the range of 0.5s to 1s Inner value, the first distance threshold value may preferably be in the range of 2 cm to 5 cm or 16 pixels to 30 pixels, and the second distance threshold value may preferably be in the range of 5 cm to 8 cm.
S204、确定所述手势类型为敲击时,将各所述触摸操作对应的触摸点作为触摸标识显示。S204: When it is determined that the gesture type is tapping, display the touch points corresponding to each of the touch operations as touch indicators.
在本实施例中,当手势类型为敲击时,可认为触摸操作对应的触摸点为离散的,每个触摸点都可以在显示屏上以一个设定大小的触摸区域来显示,本实施例将显示屏上显示的各触摸点作为敲击操作时对应的触摸标识。In this embodiment, when the gesture type is tapping, the touch points corresponding to the touch operation can be considered to be discrete, and each touch point can be displayed on the display screen with a touch area of a set size. This embodiment Use each touch point displayed on the display screen as the corresponding touch mark when tapping.
需要说明的是,本实施例下述S205至S211的操作,描述了手势类型为敲击时进行关键信息确定的具体实现过程。It should be noted that the following operations from S205 to S211 in this embodiment describe the specific implementation process of determining key information when the gesture type is tapping.
S205、基于至少三次触摸操作分别作用在当前显示页面中的作用点,形成一个圆形区域作为命中区域。S205: Form a circular area as a hit area based on the points of action respectively acted on the currently displayed page based on the at least three touch operations.
在一实施方式中,可以将触摸操作中触摸按下事件或者触摸抬起事件对应的产生位置作为该触摸操作在当前显示页面中的作用点。示例性地,由于触摸操作中触摸按下事件的产生位置最能表示用户操作的最初意图位置,本实施例优选将各触摸操作中触摸按下事件的产生位置作为当前显示页面中的作用点。In one embodiment, the generating position corresponding to the touch down event or the touch up event in the touch operation may be used as the point of action of the touch operation in the currently displayed page. Exemplarily, since the generating position of the touch down event in the touch operation can best represent the original intended position of the user operation, this embodiment preferably uses the generating position of the touch down event in each touch operation as the action point in the currently displayed page.
确定各触摸操作的作用点后,可以形成一个包含各作用点的外接圆,本实施例将该外接圆对应的圆形区域确定为命中区域,该命中区域的区域大小可通过该外接圆的半径大小确定。After determining the action points of each touch operation, a circumscribed circle containing each action point can be formed. In this embodiment, the circular area corresponding to the circumscribed circle is determined as the hit area, and the size of the hit area can pass through the radius of the circumscribed circle The size is ok.
S206、获取当前显示页面中各元素的关联矩形。S206: Obtain the associated rectangle of each element in the currently displayed page.
在一实施方式中,针对当前显示页面中的各元素,其在编辑阶段均对应存在一个矩形作为编辑框架,可认为编辑在当前显示页面中的各元素其底层均以一个矩形作为依托,且一个元素对应一个矩形,且该矩形的矩形信息在进行元素编辑时已经产生,本实施例记该矩形为关联矩形,本步骤可直接获取各元素的关联矩形的矩形信息,其矩形信息中可以包括矩形左上角的坐标值,矩形的长度和宽度等用于标识矩形的属性信息。In one embodiment, for each element in the currently displayed page, there is a rectangle as the editing frame in the editing phase. It can be considered that the bottom layer of each element edited in the currently displayed page is supported by a rectangle, and one The element corresponds to a rectangle, and the rectangle information of the rectangle has been generated when the element is edited. In this embodiment, the rectangle is an associated rectangle. In this step, the rectangle information of the associated rectangle of each element can be directly obtained. The rectangle information may include rectangles. The coordinate value of the upper left corner, the length and width of the rectangle, etc. are used to identify the attribute information of the rectangle.
需要说明的是,该关联矩形可以是所对应元素的外接矩形,也可以是长宽大于该外接矩形的设定矩形,其设定矩形可看作在相应外接矩形基础上,对矩形的长宽分别增加一定边距值的矩形,本实施例优选采用设定矩形作为关联矩形,以保证基于命中区域与关联矩形进行 元素命中时的命中准确度。It should be noted that the associated rectangle can be the circumscribed rectangle of the corresponding element, or a set rectangle whose length and width are greater than the circumscribed rectangle, and the set rectangle can be regarded as the corresponding circumscribed rectangle. Rectangles with a certain margin value are added respectively. In this embodiment, the set rectangle is preferably used as the associated rectangle to ensure the accuracy of hitting elements based on the hit area and the associated rectangle.
S207、从各关联矩形中查找与命中区域存在重叠的重叠关联矩形。S207: Search for overlapping associated rectangles that overlap with the hit area from the associated rectangles.
在本实施例中,可以通过各关联矩形的矩形信息,确定是否存在与命中区域重叠的关联矩形,并可将满足重叠条件的关联矩形记为重叠关联矩形,其中,本实施例中的重叠可以包括下述几种情况:关联矩形对应的区域包含了命中区域,或者,关联矩形对应的区域包含在命中区域中,或者,关联矩形对应的区域与命中区域的部分区域相交。In this embodiment, the rectangle information of each associated rectangle can be used to determine whether there is an associated rectangle that overlaps the hit area, and an associated rectangle that meets the overlap condition can be recorded as an overlap associated rectangle, where the overlap in this embodiment can be It includes the following situations: the area corresponding to the associated rectangle contains the hit area, or the area corresponding to the associated rectangle is included in the hit area, or the area corresponding to the associated rectangle intersects a part of the hit area.
S208、将各重叠关联矩形对应的元素以设定添加条件添加到元素集合中。S208: Add the elements corresponding to the overlapping associated rectangles to the set of elements by setting adding conditions.
在本实施例中,确定各重叠关联矩形后,相当于重叠关联矩形对应的元素被命中区域命中,本步骤可进一步判定该元素是否符合设定添加条件,若符合,则将该元素添加到元素集合中,其中,所述设定添加条件可以是:该元素尚未添加在元素集合中。In this embodiment, after determining each overlapping associated rectangle, the element corresponding to the overlapping associated rectangle is hit by the hit area. In this step, it can be further determined whether the element meets the set adding condition, and if so, the element is added to the element In the set, the set addition condition may be: the element has not been added to the element set.
S209、确定元素集合中的元素总数量是否发生改变,若是,则执行S210;若否,则执行S211。S209: Determine whether the total number of elements in the element set has changed, if yes, execute S210; if not, execute S211.
在本实施例中,可认为元素集合初始为空,将确定出的元素添加到元素集合后,其包含的元素总数量可能发生变化,此时,可继续执行S210,但随着元素命中操作的不断执行,可能已不存在符合添加条件的元素,此后,元素集合中的元素总数量将会保持不变,此时可进一步执行S211。In this embodiment, it can be considered that the element set is initially empty. After the determined element is added to the element set, the total number of elements it contains may change. At this time, S210 can continue to be executed, but as the element hit operation Continue to execute, and there may no longer be any elements that meet the adding conditions. After that, the total number of elements in the element set will remain unchanged, and S211 may be further executed at this time.
S210、将各重叠关联矩形分别作为命中区域,返回执行S207。S210: Use each overlapping associated rectangle as a hit area, and return to execution S207.
本实施例中,在确定元素总数量发生变化时,具体地,可以将上述确定出的各重叠关联矩形作为命中区域,返回S206继续迭代执行元素命中的查找操作。In this embodiment, when it is determined that the total number of elements has changed, specifically, each of the above-determined overlapping associated rectangles may be used as a hit area, and return to S206 to continue to iteratively perform the element hit search operation.
S211、将元素集合中的元素确定为关键信息并存储。S211: Determine and store an element in the element set as key information.
本实施例中,当确定元素集合的元素总数量不再发生变化时,表明所有可能命中的元素均已被查找确定出,此时可以将添加至元素集合中的各元素作为关键信息,并以各元素原有的相关性进行存储。可以理解的是,在进行存储前,可以对元素进行筛选,以筛选出教学者在授课过程中临时添加的教学内容。In this embodiment, when it is determined that the total number of elements in the element set no longer changes, it indicates that all possible hit elements have been searched and determined. At this time, each element added to the element set can be used as key information, and The original correlation of each element is stored. It is understandable that the elements can be filtered before storing, so as to filter out the teaching content temporarily added by the teacher during the teaching process.
S212、响应于接收到的作用在目标关键信息的编辑操作,显示包含所述目标关键信息的编辑页面。S212: In response to the received editing operation acting on the target key information, display an editing page containing the target key information.
示例性地,本实施例可对形成的关键信息进行编辑,例如,可以在接收到用户对元素集合中作为目标关键信息的任一元素进行编辑操作触发后,响应该编辑操作并形成一个关联该目标关键信息的编辑页面,用户可以在该编辑页面中对目标关键信息进行编辑。Exemplarily, this embodiment can edit the formed key information. For example, after receiving a user's editing operation trigger on any element in the element set as the target key information, respond to the editing operation and form an association with the key information. The edit page of the target key information, in which the user can edit the target key information.
S213、接收到编辑完成指令时,保存所述编辑页面。S213: When receiving the editing completion instruction, save the editing page.
可以理解的是,当用户在编辑页面中完成了目标关键信息的编辑后,可以触发生成编辑完成指令,本步骤基于该编辑完成指令可以保存编辑后的编辑页面。It is understandable that after the user completes the editing of the target key information in the editing page, the generation of the editing completion instruction can be triggered. In this step, the edited editing page can be saved based on the editing completion instruction.
上述实施例的基础上,图2b给出了本发明实施例二中确定手势关联元素的示例图,如图2b所示,当前显示页面20中包含了文本类型的元素以及图形类型的元素等,基于上述手势类型为敲击时对应的关联元素确定步骤,可将圆形区域21作为初始的命中区域,同时可以获取当前显示页面20中所显示各元素的关联矩形,如以“这就是文本”为显示内容的文本框(元素)对应的第一关联矩形22、线段对应的第二关联矩形23以及曲线对应的第三关联矩形24等(图中未示出所有元素的关联矩形)。Based on the foregoing embodiment, Figure 2b shows an example diagram of determining gesture-related elements in the second embodiment of the present invention. As shown in Figure 2b, the currently displayed page 20 contains text-type elements and graphic-type elements. Based on the above-mentioned gesture type as the corresponding associated element determination step when tapping, the circular area 21 can be used as the initial hit area, and the associated rectangle of each element displayed in the currently displayed page 20 can be obtained, such as "this is the text" The first associated rectangle 22 corresponding to the text box (element) of the display content, the second associated rectangle 23 corresponding to the line segment, the third associated rectangle 24 corresponding to the curve, etc. (the associated rectangles of all elements are not shown in the figure).
对于从圆形区域21作为初始的命中区域进行关联元素确定的操作可描述为:从获得的各 元素的关联矩形中可查找到与圆形区域21重叠的关联矩形有第一关联矩形22和第二关联矩形23;由此可将第一关联矩形22对应的元素(文本框及其包含的内容)和第二关联矩形23对应的元素(线段)添加(此时元素集合为空,即尚不存在上述确定出的元素)到元素集合中,此时元素总数量为2,发生了改变,可继续执行查找;由此,可分别将第一关联矩形22和第二关联矩形23作为新的命中区域,可查找到与第一关联矩形22重叠的关联矩形为第三关联矩形24,还可查找到与第二关联矩形23重叠的关联矩形也为第三关联矩形24,并可确定第三关联矩形24对应的元素为曲线,且曲线尚未添加在元素集合中,由此可将曲线添加到元素集合中,此时元素总数量为3,发生了改变,同样可继续执行查找;因此,就可将第三关联矩形24作为新的命中区域,可查找到与第三关联矩形24重叠的关联矩形有第一关联矩形22和第二关联矩形23,而因为第一关联矩形22对应的文本框及第二关联矩形23对应的线段均已存在与元素集合中,将不再重复添加,此时,元素总数数量仍为3,没有改变,满足查找结束条件,可结束查找。基于上述查找,最终确定出教学者敲击圆形区域21时,确定出的关键信息为文本框及其所包含内容、线段以及曲线。The operation of determining the associated elements from the circular area 21 as the initial hit area can be described as: from the obtained associated rectangles of each element, it can be found that the associated rectangles that overlap the circular area 21 are the first associated rectangle 22 and the first associated rectangle 22. Two associative rectangles 23; from this, the elements corresponding to the first associative rectangle 22 (text box and its content) and the elements (line segments) corresponding to the second associative rectangle 23 can be added (the element set is empty at this time, that is, it is not yet There are the above-identified elements) into the element set. At this time, the total number of elements is 2, and the search can be continued; therefore, the first associated rectangle 22 and the second associated rectangle 23 can be used as new hits. Area, it can be found that the associated rectangle that overlaps the first associated rectangle 22 is the third associated rectangle 24, and the associated rectangle that overlaps the second associated rectangle 23 is also the third associated rectangle 24, and the third association can be determined The element corresponding to the rectangle 24 is a curve, and the curve has not been added to the element set, so the curve can be added to the element set. At this time, the total number of elements is 3, and the search can continue to be performed if the change occurs; therefore, you can Using the third associated rectangle 24 as the new hit area, it can be found that the associated rectangles overlapping the third associated rectangle 24 are the first associated rectangle 22 and the second associated rectangle 23, and because the first associated rectangle 22 corresponds to the text box and The line segments corresponding to the second associated rectangle 23 already exist in the element set, and will not be added repeatedly. At this time, the total number of elements is still 3, unchanged, and the search end condition is satisfied, and the search can be ended. Based on the above search, it is finally determined that when the teacher taps the circular area 21, the key information determined is the text box and its contained content, line segments and curves.
本发明实施例二提供的一种关键信息确定方法,给出了触摸操作关联的手势类型为敲击时实现关键信息确定的具体操作,其首先确定了敲击手势的判定过程,然后给出了敲击手势进行元素集合的确定过程,并最终实现了关键信息的确定。基于该方法,能够在教学者采用敲击的手势进行重点讲解时,准确快速识别出授课内容中作为关键信息的重点讲解内容并存储,从而保证在后续授课时仅通过调用存储的关键信息就能实现重点讲解内容的集中展现,由此不仅避免了教学者进行重点讲解内容展现时的繁琐操作,还保证了重点讲解内容的无遗漏回顾,更好的提升了智能教学的用户体验。The second embodiment of the present invention provides a method for determining key information, which provides a specific operation for determining key information when the gesture type associated with a touch operation is a tap. It first determines the determination process of the tap gesture, and then gives The tap gesture is used to determine the element set, and finally realize the determination of key information. Based on this method, when the teacher uses tapping gestures for key explanations, it can accurately and quickly identify the key explanation content as the key information in the teaching content and store it, so as to ensure that only by calling the stored key information during subsequent lectures Realize the centralized presentation of the key explanation content, which not only avoids the cumbersome operation of the teacher when the key explanation content is displayed, but also ensures the complete review of the key explanation content, and better improves the user experience of intelligent teaching.
实施例三Example three
图3a为本发明实施例二提供的一种关键信息确定方法的流程图,本发明实施例以上述实施例一及实施例二为基础进行优化,如图3a所示,本发明实施例三提供的一种关键信息确定方法,包括如下操作:Fig. 3a is a flowchart of a method for determining key information provided in the second embodiment of the present invention. The embodiment of the present invention is optimized based on the above-mentioned first and second embodiments. As shown in Fig. 3a, the third embodiment of the present invention provides A method for determining key information of, including the following operations:
需要说明的是,本实施例三提供了教学者在授课过程中采用画圈的手势对重点讲解内容进行标注时的关键信息确定过程。首先,本实施例的S301至S303描述了怎样确定所接收触摸操作关联的手势类型为画圈的实现过程。It should be noted that this third embodiment provides a process of determining key information when the teacher uses circled gestures to mark the key explanation content during the teaching process. First, S301 to S303 of this embodiment describe the implementation process of how to determine that the gesture type associated with the received touch operation is circle drawing.
S301、采样所述触摸操作在当前显示页面上对应的所有触摸点,并获取基于各所述触摸点形成的触摸轨迹。S301: Sample all touch points corresponding to the touch operation on the currently displayed page, and obtain a touch track formed based on each touch point.
在本实施例中,对于具备触摸事件监听功能的智能教学平板而言,本步骤可以监听到作用在当前显示页面的触摸操作,其中,可认为当前显示页面通过智能教学平板展现,其触摸操作可以由触摸按下事件、触摸抬起事件以及处于上述两触摸事件之间的一系列触摸移动事件构成,同时,本步骤可以通过对上述一系列触摸事件的监听,确定各触摸事件在当前显示页面中对应的触摸点,最终基于一系列触摸点可形成触摸操作对应的触摸轨迹,本步骤可获取所形成的触摸轨迹。In this embodiment, for a smart teaching tablet with a touch event monitoring function, this step can monitor the touch operation acting on the current display page. Among them, it can be considered that the current display page is displayed through the smart teaching tablet, and the touch operation can be It consists of a touch down event, a touch up event, and a series of touch movement events between the above two touch events. At the same time, this step can determine that each touch event is in the currently displayed page by monitoring the above series of touch events. The corresponding touch points can finally form a touch trajectory corresponding to the touch operation based on a series of touch points, and the formed touch trajectory can be obtained in this step.
在本实施例中,可以根据触摸操作中各触摸事件的产生时间,来顺序采样各触摸事件在当前显示页面上对应的触摸点,从而获得各触摸点的坐标信息。可以理解的是,形成触摸操作的一组触摸事件中,首个触摸事件相当于触摸按下事件,其对应的触摸点可记为触摸起始 点,最后一个触摸事件相当于触摸抬起事件,其对应的触摸点可记为触摸终止点,而处于触摸按下事件和触摸抬起事件的其余触摸事件则相当于触摸移动事件,其对应的触摸点可记为触摸移动点。对于一次触摸操作而言,其事件组合中必须存在有触摸按下事件和触摸抬起事件,但可以不存在触摸移动事件,该种情况相当于对一个位置点的触摸操作。In this embodiment, the corresponding touch points of each touch event on the currently displayed page may be sequentially sampled according to the generation time of each touch event in the touch operation, so as to obtain coordinate information of each touch point. It is understandable that in a group of touch events that form a touch operation, the first touch event is equivalent to a touch down event, and its corresponding touch point can be recorded as the touch start point, and the last touch event is equivalent to a touch up event. The corresponding touch point can be recorded as the touch termination point, and the remaining touch events in the touch down event and touch up event are equivalent to touch movement events, and their corresponding touch points can be recorded as touch movement points. For a touch operation, there must be a touch down event and a touch up event in the event combination, but there may not be a touch movement event. This situation is equivalent to a touch operation on a location point.
S302、根据各所述触摸点,确定所述触摸轨迹是否包含圈形轨迹且包含的圈数是否满足设定条件。S302: According to each of the touch points, determine whether the touch trajectory includes a circle-shaped trajectory and whether the included circle number meets a set condition.
在本实施例中,可以获得构成触摸轨迹所需各触摸点在当前显示页面中的位置坐标,通过各触摸点的位置坐标,可以通过设定的圈形判定规则确定触摸轨迹中是否呈现有圈形轨迹,并可确定出所呈现圈形轨迹的圈数。示例性的,本步骤可以根据触摸点的位置坐标,确定各触摸点与指定坐标点的距离值,然后将各距离值与设定距离阈值比较,如果存在圈形轨迹,则需要有连续个触摸点的距离值小于设定距离阈值,且后续有一个触摸点的距离值大于设定距离阈值。In this embodiment, the position coordinates of each touch point in the current display page required to form the touch track can be obtained, and the position coordinates of each touch point can be used to determine whether there is a circle in the touch track according to the set circle determination rule. Shape trajectory, and can determine the number of turns of the loop-shaped trajectory presented. Exemplarily, in this step, the distance value between each touch point and the designated coordinate point can be determined according to the position coordinates of the touch point, and then each distance value is compared with the set distance threshold. If there is a circle-shaped trajectory, a continuous touch is required The distance value of the point is less than the set distance threshold, and the distance value of a subsequent touch point is greater than the set distance threshold.
需要说明的是,为实现圈形轨迹的判定,可以先对圈形轨迹的特点进行分析,发现其主要特点为一组触摸点的连线可以形成一个弧形的封闭或接近封闭的曲线,若以其中一个触摸点为圆心,以设定值为半径画圆,则首先会存在一些触摸点到圆心的距离值小于或等于半径,这些触摸点相当于处于所画圆的内部,之后还存在一部分触摸点到圆心的距离值大于半径,这些触摸点相当于处于所画圆的外部,然后还会存在一些点又处于所画圆的内部。It should be noted that, in order to determine the circle-shaped trajectory, the characteristics of the circle-shaped trajectory can be analyzed first, and it is found that the main feature is that the connection of a group of touch points can form an arc-shaped closed or close to closed curve. Take one of the touch points as the center of the circle and draw a circle with the set value as the radius. At first there will be some touch points whose distance from the center of the circle is less than or equal to the radius. These touch points are equivalent to being inside the drawn circle, and there is still a part afterwards. The distance value from the touch point to the center of the circle is greater than the radius. These touch points are equivalent to being outside the drawn circle, and then there are some points that are inside the drawn circle.
基于上述特点,本实施例设定了下述圈形判定的实现操作,图3b给出了本发明实施例三中进行触摸轨迹圈形判定的实现流程图,例如,所述根据各所述触摸点,确定所述触摸轨迹是否包含圈形轨迹且包含的圈数是否满足设定条件可以通过如图3b所示的方式实现,如图3b所示,该方式包括:Based on the above characteristics, this embodiment sets the following circle shape determination operations. Figure 3b shows the implementation flow chart of the touch track circle shape determination in the third embodiment of the present invention. For example, according to each touch Point, determining whether the touch trajectory includes a circle-shaped trajectory and whether the number of laps included meets the set conditions can be achieved by the method shown in Fig. 3b, as shown in Fig. 3b, the method includes:
S3021、确定各触摸点到设定基准点的距离值,作为各触摸点的判定距离值。S3021. Determine the distance value from each touch point to the set reference point as the judgment distance value of each touch point.
首先基于本步骤确定各触摸点到设定基准点的距离值,根据上述描述,该设定基准点相当于所画圆的圆心,该设定基准点可以优选从触摸点中选取,并一般优选为触摸起始点。因此,本步骤相当于确定各触摸点到触摸起始点的距离值,以作为各触摸点的判定距离值。Firstly, based on this step, determine the distance value from each touch point to the set reference point. According to the above description, the set reference point is equivalent to the center of the drawn circle. The set reference point can be preferably selected from the touch points, and generally preferred Is the starting point of the touch. Therefore, this step is equivalent to determining the distance value from each touch point to the touch start point as the judgment distance value of each touch point.
S3022、依次选取触摸点的判定距离值与第三距离阈值进行比对。S3022, sequentially selecting the determined distance value of the touch point and comparing with the third distance threshold value.
本步骤相当于从触摸起始点的判定距离值开始,然后按顺时针依次选取后续触摸点的判定距离值,并可将选取的每个判定距离值与第三距离阈值进行比对,并实时记录比对结果,其中,根据上述对所画圆的描述,该第三距离阈值实际相当于所画圆的半径,且该第三距离阈值的设定也相当于一个经验值,可预先通过不同取值的测试比对,确定判定效果最优的取值作为第三距离阈值。This step is equivalent to starting from the judgment distance value of the touch starting point, and then selecting the judgment distance value of the subsequent touch points in a clockwise direction, and each selected judgment distance value can be compared with the third distance threshold, and recorded in real time According to the comparison result, according to the above description of the drawn circle, the third distance threshold is actually equivalent to the radius of the drawn circle, and the setting of the third distance threshold is also equivalent to an empirical value. The value is tested and compared, and the value with the best judgment effect is determined as the third distance threshold.
S3023、当存在设定连续量触摸点的判定距离值大于第三距离阈值时,确定后续是否存在一个目标触摸点的判定距离值小于或等于所述第三距离阈值。S3023: When the determined distance value of the set continuous touch points is greater than the third distance threshold, determine whether there is a subsequent target touch point and the determined distance value is less than or equal to the third distance threshold.
本步骤可以根据上述记录的比对结果,可以确定是否存在设定连续量触摸点的判定距离值大于第三距离阈值,此时的判定实际相当于确定是否存在设定连续量的触摸点处于所画圆的外部,所述设定连续量也为一个经验值,同样根据测试训练选定。如果上述判定成立,则可进一步判定后续是否存在一个目标触摸点的判定距离值小于或等于第三距离阈值,此时的判定实际相当于在存在连续设定量的处于所画圆外部的触摸点后,后续是否存在一个处于所画圆内部的触摸点,如果该判定成立,则可执行下述S3024。In this step, based on the comparison results recorded above, it can be determined whether there is a set continuous touch point with a judgment distance value greater than the third distance threshold. The judgment at this time is actually equivalent to determining whether there is a set continuous touch point at all. Outside of the circle, the set continuous amount is also an empirical value, which is also selected according to test training. If the above determination is true, it can be further determined whether there is a target touch point in the subsequent determination distance value is less than or equal to the third distance threshold, the determination at this time is actually equivalent to the existence of a continuous set amount of touch points outside the circle drawn Then, whether there is a touch point inside the drawn circle, if the determination is true, the following S3024 can be executed.
需要说明的是,如果本步骤中的两个判定有一个不成立,则可认为触摸轨迹中不包含圈形轨迹。It should be noted that if one of the two determinations in this step is not established, it can be considered that the touch trajectory does not include a circle-shaped trajectory.
S3024、若存在,则确定所述触摸轨迹包含圈形轨迹,将包含圈形轨迹的圈数加1,并返回执行S3023,直至当前所选判定距离值对应的触摸点为触摸终止点。S3024. If it exists, determine that the touch trajectory includes a circle-shaped trajectory, add 1 to the number of circles including the circle-shaped trajectory, and return to execute S3023 until the touch point corresponding to the currently selected determination distance value is the touch termination point.
本步骤相当于上述S3023的判定条件成立,此时,可确定触摸操作所形成触摸轨迹中包含了圈形轨迹,并可将包含圈形轨迹的圈数加1,后续还可确定实现上述判定时所选判定距离值对应的触摸点是否为触摸终止点,若不是触摸终止点,则可再次执行S3023的圈形判定操作,以确定目标触摸点后的触摸点是否还能再形成圈形轨迹;若为触摸终止点,则可执行下述步骤。This step is equivalent to the establishment of the above-mentioned judgment condition of S3023. At this time, it can be determined that the touch trajectory formed by the touch operation includes a circle-shaped trajectory, and the number of laps including the circle-shaped trajectory can be increased by 1, and the above determination can be determined later Whether the touch point corresponding to the selected judgment distance value is the touch termination point, if it is not the touch termination point, the circle judgment operation of S3023 can be executed again to determine whether the touch point after the target touch point can form a circle trajectory again; If it is the touch end point, the following steps can be performed.
S3025、如果确定的圈数大于或等于设定值,则确定所述圈数满足设定条件。S3025. If the determined number of turns is greater than or equal to the set value, determine that the number of turns meets the set condition.
基于上述S3024的操作,除确定触摸轨迹中包含了圈形轨迹外,还可确定所包含的具体圈数,当确定出的具体圈数值大于或等于设定值时,就可以认为圈数满足设定条件,其中,所述设定值可优选为2,即相当于触摸轨迹包含的圈形轨迹的圈数需要大于或等于两圈,但所述设定值取1时同样适用,即也可认为触摸轨迹包含一圈圈形轨迹时,也可认为该触摸操作关联的手势类型为画圈。Based on the above S3024 operation, in addition to determining that the touch trajectory contains the circle-shaped trajectory, the specific number of laps included can also be determined. When the determined specific lap value is greater than or equal to the set value, the number of laps can be considered to meet the set value. The setting condition, wherein the set value can be preferably 2, that is, the number of turns equivalent to the circle track included in the touch track needs to be greater than or equal to two turns, but the same applies when the set value is 1, that is, When it is considered that the touch trajectory includes a circle-shaped trajectory, the gesture type associated with the touch operation can also be regarded as drawing a circle.
图3c给出了触摸操作关联的手势类型为画圈的示例图,如图3c所示,当前显示页面30中显示了所接收触摸操作的触摸轨迹31,通过上述图3b所提供判定流程的判定,可确定触摸轨迹31中包含了圈形轨迹,且包含圈形轨迹的圈数为1圈(第2圈并没有完全形成),由此可确定形成触摸轨迹31的触摸操作关联的手势类型为画圈。Figure 3c shows an example diagram of the gesture type associated with a touch operation as drawing a circle. As shown in Figure 3c, the current display page 30 displays the touch trajectory 31 of the received touch operation, which is determined by the determination process provided in Figure 3b. , It can be determined that the touch trajectory 31 includes a circle-shaped trajectory, and the number of circles including the circle-shaped trajectory is 1 circle (the second circle is not completely formed), and thus the type of gesture associated with the touch operation forming the touch trajectory 31 can be determined as Draw a circle.
S303、当该触摸轨迹包含圈形轨迹且包含的圈数满足设定条件时,确定该触摸操作关联的手势类型为画圈。S303: When the touch trajectory includes a circle-shaped trajectory and the number of included laps meets a set condition, determine that the gesture type associated with the touch operation is drawing a circle.
上述S302及其扩展步骤实现了触摸轨迹是否包含圈形轨迹以及圈数是否满足设定条件的确定,本步骤中当上述两条件同时满足时,就可认为所接收触摸操作关联的手势类型为画圈;否则可认为手势类型不为画圈,此时可终止本实施后续的操作。The above S302 and its extended steps realize the determination of whether the touch trajectory includes a circle-shaped trajectory and whether the number of laps meets the set conditions. In this step, when the above two conditions are met at the same time, it can be considered that the gesture type associated with the received touch operation is a picture. Circle; otherwise, it can be considered that the gesture type is not a circle, and the subsequent operations of this implementation can be terminated at this time.
S304、确定所述手势类型为画圈时,将所述触摸操作对应的触摸轨迹作为触摸标识显示。S304: When it is determined that the gesture type is drawing a circle, display the touch track corresponding to the touch operation as a touch indicator.
在本实施例中,当触摸操作关联的手势类型为画圈时,可以确定触摸操作所形成的触摸轨迹以圈形展示,由此可将该触摸轨迹作为触摸操作的触摸标识显示。In this embodiment, when the gesture type associated with the touch operation is drawing a circle, it can be determined that the touch track formed by the touch operation is displayed in a circle shape, and thus the touch track can be displayed as a touch indicator of the touch operation.
需要说明的是,本实施例下述S305至S311的操作,描述了手势类型为画圈时进行关键信息确定的实现过程。It should be noted that the following operations from S305 to S311 in this embodiment describe the implementation process of determining key information when the gesture type is drawing a circle.
S305、基于该触摸轨迹的触摸点,形成封闭的多边图形。S305: Form a closed polygonal figure based on the touch point of the touch track.
在一实施方式中,可以将构成该触摸轨迹的触摸点依次相连,并最终将触摸起始点与触摸终止点相连,形成一个封闭的多变图形;此外,本实施例也可根据上述进行圈形轨迹确定时,分别基于确定各圈圈形轨迹的触摸点,通过依次相连形成一个子多边图形,由此可以形成与圈形轨迹圈数同等量的子多边图形。本步骤形成的多边图形可用于后续的元素命中操作。In one embodiment, the touch points constituting the touch track may be connected in sequence, and finally the touch start point and the touch end point may be connected to form a closed and changeable figure; in addition, the present embodiment may also perform circle shape according to the above When the trajectory is determined, the touch points of each circle-shaped trajectory are determined respectively based on the touch points of the circle-shaped trajectory, and a sub-polygonal figure is formed by sequentially connecting, thereby forming a sub-polygonal figure equal to the number of turns of the circle-shaped trajectory. The polygonal graphics formed in this step can be used for subsequent element hit operations.
S306、获取当前显示页面中各元素的关联矩形。S306. Obtain the associated rectangle of each element in the currently displayed page.
在一实施方式中,本实施例中的关联矩形同样相当于元素编辑时对应存在的作为元素底层依托的矩形。在编辑形成当前显示页面中各元素时也同时产生了相应矩形的矩形信息,由此本步骤可直接获取该关联矩形的相关矩形信息,同样可以理解的是,本实施例可选择该关联矩形为增加了长宽边距值的元素外接矩形。In one embodiment, the associated rectangle in this embodiment is also equivalent to the corresponding rectangle that exists as the bottom layer of the element when the element is edited. When editing and forming each element in the currently displayed page, the rectangle information of the corresponding rectangle is also generated. Therefore, the related rectangle information of the associated rectangle can be directly obtained in this step. It is also understandable that this embodiment can select the associated rectangle as The circumscribed rectangle of the element with the added margin value.
S307、从多边图形的未选中边集合中选取一条边作为命中边。S307. Select an edge from the unselected edge set of the polygonal graphics as the hit edge.
与上述实施例二进行命中测试操作不同的是,本实施例该步骤将多边图形的边作为命中边,所述未选中边集合的作用在于限定每条边尽可以选取一次作为命中边,本实施例可选择未选中边集合初始包含了多边图形的所有边。The difference between the hit test operation performed in the second embodiment above is that the step of this embodiment uses the edges of the polygonal graphics as the hit edges, and the function of the unselected edge set is to limit that each edge can be selected as the hit edge only once. For example, the unselected edge set initially contains all the edges of the polygonal figure.
S308、从各关联矩形中查找与命中边满足包含关系的目标关联矩形。S308: Search for a target associated rectangle that satisfies the inclusion relationship with the hit edge from the associated rectangles.
在本实施例中,可以通过各关联矩形的矩形信息,确定是否存在与当前选取的命中边存在包含关系的关联矩形,并可将满足包含关系的关联矩形记为目标关联矩形,其中本实施例中的包含关系包括下述几种情况:关联矩形对应的区域包含了该命中边,或者,该命中边与关联矩形相交等。In this embodiment, the rectangle information of each associated rectangle can be used to determine whether there is an associated rectangle that has an inclusion relationship with the currently selected hit edge, and the associated rectangle that satisfies the inclusion relationship can be recorded as the target associated rectangle. The containment relationship in includes the following situations: the area corresponding to the associated rectangle contains the hit edge, or the hit edge intersects the associated rectangle.
S309、将各目标关联矩形对应的元素以设定条件添加到元素集合中。S309: Add the elements corresponding to the target associated rectangles to the element set under the set conditions.
在本实施例中,确定各目标关联矩形后,相当于目标关联矩形对应的元素被命中边命中,本步骤可进一步判定该元素是否符合设定添加条件,若符合,则将该元素添加到元素集合中,其中,所述设定添加条件同样可以是:该元素尚未添加在元素集合中。In this embodiment, after determining each target associated rectangle, the element corresponding to the target associated rectangle is hit by the hit edge. In this step, it can be further determined whether the element meets the set addition condition, and if so, the element is added to the element In the set, the set addition condition may also be: the element has not been added to the element set.
S310、判定是否符合命中终止条件,若是,则执行S311,若否,则执行返回S307。S310: Determine whether the hit termination condition is met, if yes, execute S311, if not, execute return to S307.
在本实施例中,所述终止条件可以为未选中边集合为空,或者,元素集合中的元素总数量保持不变。未选中边集合为空,相当于多边图形的所有边均已作为了命中边;元素集合中的元素总数量保持不变,可认为当初始为空的元素集合在进过多次迭代后其所包含元素的总数量不再发生变化,上述两种情况时,可以进一步执行S311;否则,可认为仍然满足命中元素的查找条件,需返回S307继续循环执行。In this embodiment, the termination condition may be that the unselected edge set is empty, or the total number of elements in the element set remains unchanged. The unselected edge set is empty, which is equivalent to that all edges of the polygonal graph have been used as hit edges; the total number of elements in the element set remains unchanged. It can be considered that when the initially empty element set has gone through multiple iterations The total number of contained elements no longer changes. In the above two cases, S311 can be further executed; otherwise, it can be considered that the search condition of the hit element is still met, and it is necessary to return to S307 to continue the loop execution.
S311、将所述元素集合中的元素确定为关键信息并存储。S311. Determine and store an element in the element set as key information.
本实施例中,当满足上述命中终止条件时,表明所有可能命中的元素均已被查找确定出,此时可以将添加至元素集合中的各元素作为关键信息,并以各元素原有的相关性进行存储。可以理解的是,在进行存储前,可以对元素进行筛选,以筛选出教学者在授课过程中临时添加的教学内容。In this embodiment, when the above hit termination condition is met, it indicates that all possible hit elements have been found and determined. At this time, each element added to the element set can be used as key information, and the original correlation of each element Sexual storage. It is understandable that the elements can be filtered before storing, so as to filter out the teaching content temporarily added by the teacher during the teaching process.
S312、响应于接收到的作用在目标关键信息的编辑操作,显示包含所述目标关键信息的编辑页面。S312: In response to the received editing operation acting on the target key information, display an editing page containing the target key information.
S313、接收到编辑完成指令时,保存所述编辑页面。S313: When receiving the editing completion instruction, save the editing page.
本实施例上述S312和S313的实现以在上述实施例二具体阐述,这里不再赘述。The implementation of the foregoing S312 and S313 in this embodiment is specifically described in the foregoing embodiment 2, which will not be repeated here.
本发明实施例三提供的一种关键信息确定方法,给出了触摸操作表示的手势类型为画圈时实现关键信息确定的操作,其首先确定了画圈手势的判定过程,然后给出了画圈手势进行元素集合的确定过程,并最终实现了关键信息的确定。基于该方法,能够在教学者采用画圈的手势进行重点讲解内容时,准确快速识别出授课内容中作为关键信息的重点讲解内容并存储,从而保证在后续授课时仅通过调用存储的关键信息就能实现重点讲解内容的集中展现,由此不仅避免了教学者进行重点讲解内容展现时的繁琐操作,还保证了重点讲解内容的无遗漏回顾,更好的提升了智能教学的用户体验。The method for determining key information provided by the third embodiment of the present invention provides the operation of determining key information when the gesture type indicated by the touch operation is circle drawing. It first determines the judgment process of the circle gesture, and then gives the picture Circle gestures are used to determine the set of elements, and finally realize the determination of key information. Based on this method, when the teacher uses circled gestures to explain the content, it can accurately and quickly identify the key explanation content as the key information in the teaching content and store it, so as to ensure that only by calling the stored key information during subsequent lectures It can realize the centralized presentation of the key explanation content, which not only avoids the cumbersome operation of the teacher when the key explanation content is displayed, but also ensures the complete review of the key explanation content, and better improves the user experience of intelligent teaching.
实施例四Example four
图4a为本发明实施例四提供的一种关键信息确定方法的流程图。本发明实施例以上述实施例一和实施例二为基础进行优化,如图4a所示,本发明实施例四提供的一种关键信息确定 方法,包括如下操作:Fig. 4a is a flowchart of a method for determining key information according to Embodiment 4 of the present invention. The embodiment of the present invention is optimized on the basis of the above-mentioned Embodiment 1 and Embodiment 2. As shown in Fig. 4a, a method for determining key information provided by Embodiment 4 of the present invention includes the following operations:
需要说明的是,本实施例四提供了教学者在授课过程中采用画线的手势对重点讲解内容进行标注时的关键信息确定过程。首先本实施例的S401至S403描述了怎样确定所接收触摸操作关联的手势类型为画线的实现过程。It should be noted that the fourth embodiment provides a process for determining key information when the teacher uses line-drawing gestures to mark the key explanation content during the teaching process. First, S401 to S403 of this embodiment describe how to determine the implementation process of the gesture type associated with the received touch operation as drawing a line.
S401、采样所述触摸操作在当前显示页面上对应的所有触摸点,并获取基于各所述触摸点形成的触摸轨迹。S401. Sample all touch points corresponding to the touch operation on the currently displayed page, and acquire a touch track formed based on each touch point.
示例性地,本步骤可以监听到用户作用在当前显示页面上的触摸操作,该触摸操作同样由触摸按下事件、触摸抬起事件以及处于上述两触摸事件之间的一系列触摸移动事件构成,同时,本步骤也可以通过对上述一系列触摸事件的监听,确定各触摸事件在当前显示页面中对应的触摸点,最终基于一系列触摸点形成触摸操作对应的触摸轨迹。Exemplarily, this step can monitor the user's touch operation on the currently displayed page. The touch operation is also composed of a touch down event, a touch up event, and a series of touch movement events between the above two touch events. At the same time, this step can also determine the touch points corresponding to each touch event in the currently displayed page by monitoring the series of touch events described above, and finally form a touch track corresponding to the touch operation based on the series of touch points.
S402、获得基于该触摸轨迹中起始点和终止点连线形成的基准线段。S402: Obtain a reference line segment formed based on the connection between the start point and the end point in the touch track.
示例性地,在上述触摸操作的触摸事件监听过程中,可以将触摸按下事件的作用点确定为所形成触摸轨迹中的起始点,将触摸抬起事件的作用点确定为触摸轨迹中的终止点。为确定当前所形成触摸轨迹是否为线性轨迹,本实施例基于该触摸轨迹的起始点和终止点的连线形成一条线段,该线段可记为基准线段。本步骤获得所形成的基准线段。Exemplarily, in the touch event monitoring process of the above touch operation, the point of action of the touch down event may be determined as the starting point in the formed touch track, and the point of action of the touch up event may be determined as the end of the touch track. point. In order to determine whether the currently formed touch trajectory is a linear trajectory, this embodiment forms a line segment based on the connection between the start point and the end point of the touch trajectory, and this line segment can be recorded as a reference line segment. This step obtains the formed reference line segment.
S403、根据各所述触摸点及所述基准线段,确定所述触摸轨迹是否为线形轨迹。S403: Determine whether the touch trajectory is a linear trajectory according to each of the touch points and the reference line segment.
在本实施例中,可以获得构成该触摸轨迹所需各触摸点在当前显示页面中的位置坐标,通过各触摸点的位置坐标结合所获得的基准线段,可以通过设定的线形判定规则确定触摸轨迹是否以线性轨迹呈现。示例性地,本步骤可以确定所获取基准线段与水平方向的夹角值,以确定该基准线段是否水平线段或者趋近水平,同时,本步骤还可以根据触摸点的位置坐标以及基准线段的起始点及终止点的坐标来确定触摸轨迹的总体方差值,以通过总体方差值的判定来判断触摸轨迹与基准线段的重合程度,当基准线段趋近或者为水平线段且触摸轨迹的重合程度较高时,可认为触摸轨迹为横线形轨迹。In this embodiment, the position coordinates of each touch point in the current display page required to form the touch track can be obtained. The reference line segment obtained by combining the position coordinates of each touch point can be determined by the set line shape determination rule. Whether the trajectory is presented as a linear trajectory. Exemplarily, this step can determine the angle value between the acquired reference line segment and the horizontal direction to determine whether the reference line segment is horizontal or approaching horizontal. At the same time, this step can also be based on the position coordinates of the touch point and the start of the reference line segment. The coordinates of the start point and the end point are used to determine the overall variance value of the touch trajectory, and the degree of overlap between the touch trajectory and the reference line segment is judged by the judgment of the overall variance value. When the reference line segment approaches or is a horizontal line segment and the overlap degree of the touch trajectory When it is higher, the touch trajectory can be regarded as a horizontal trajectory.
在一实施方式中,图4b给出了本发明实施例四中进行触摸轨迹线形判定的实现流程图,例如,所述根据构成所述触摸轨迹的触摸点及所述基准线段,确定所述触摸轨迹是否为线形轨迹可以通过如图4b所示的方式实现,如图4b所示,该方式包括:In one embodiment, FIG. 4b shows a flow chart for implementing the linear determination of the touch trajectory in the fourth embodiment of the present invention. For example, the touch point is determined based on the touch point constituting the touch trajectory and the reference line segment. Whether the trajectory is a linear trajectory can be realized in the manner shown in Fig. 4b, as shown in Fig. 4b, which includes:
S4031、确定基准线段的水平夹角。S4031. Determine the horizontal included angle of the reference line segment.
示例性地,可以根据基准线段的起始点及终止点的坐标值,确定基准线段与水平方向的夹角值,并记为水平夹角。Exemplarily, the angle value between the reference line segment and the horizontal direction can be determined according to the coordinate values of the start point and the end point of the reference line segment, and it is recorded as the horizontal angle.
S4032、根据触摸轨迹上触摸点的位置信息,确定所述触摸轨迹的总体方差值。S4032. Determine the overall variance value of the touch trajectory according to the position information of the touch point on the touch trajectory.
本实施例中,可以根据触摸操作中各触摸事件的产生时间,来顺序采样各触摸事件在当前显示页面上对应的触摸点,从而获得各触摸点的位置信息,本步骤可以根据触摸点的横坐标与基准线段中起始点及终止点横坐标的比较,来确定总体方差计算时所需的方差变量值,其方差变量值分别与各触摸点一一对应,之后通过方差计算公式,代入上述已知信息,就可确定出触摸轨迹的总体方差值。In this embodiment, according to the generation time of each touch event in the touch operation, the corresponding touch points of each touch event on the currently displayed page can be sampled sequentially, so as to obtain the position information of each touch point. The coordinates are compared with the abscissas of the starting point and ending point in the reference line segment to determine the variance variable value required for the overall variance calculation. The variance variable value corresponds to each touch point one by one, and then the variance calculation formula is substituted into the above mentioned value. Knowing the information, the overall variance value of the touch trajectory can be determined.
在一实施方式中,所述根据所述触摸轨迹上触摸点的位置信息,确定所述触摸轨迹的总体方差值,包括:以时间顺序采样所述触摸轨迹上的触摸点,确定采样总数并获得各所述触摸点在当前显示页面中的横纵坐标;将各所述触摸点的横坐标与所述基准线段的起始点横坐标及终止点横坐标进行比对,基于比对结果确定各触摸点对应的方差变量值;基于总体方差 计算公式
Figure PCTCN2019120858-appb-000001
确定所述触摸轨迹的总体方差值,其中,σ 2表示触摸轨迹的总体方差值,N表示采样总数,Y i表示第i个触摸点对应的方差变量值,μ表示所述基准线段的中点纵坐标。
In one embodiment, the determining the overall variance value of the touch trajectory according to the position information of the touch points on the touch trajectory includes: sampling the touch points on the touch trajectory in time sequence, determining the total number of samples and Obtain the horizontal and vertical coordinates of each touch point in the currently displayed page; compare the horizontal coordinate of each touch point with the horizontal coordinate of the starting point and the horizontal coordinate of the end point of the reference line segment, and determine each touch point based on the comparison result. The value of the variance variable corresponding to the touch point; based on the overall variance calculation formula
Figure PCTCN2019120858-appb-000001
Determining the overall variance touch track, wherein, σ 2 represents the variance value of the overall touch track, N represents the total number of samples, the variance of the Y i represents the i-th variable value corresponding to the touch point, [mu] represents the reference line segment The ordinate of the midpoint.
在本实施例中,上述方差变量的取值主要通过触摸点横坐标与基准线段起始点横坐标及终止点横坐标的比对结果确定。在一实施方式中,所述基于比对结果确定各触摸点对应的方差变量值,包括:In this embodiment, the value of the aforementioned variance variable is mainly determined by comparing the abscissa of the touch point with the abscissa of the starting point and the ending point of the reference line segment. In an embodiment, the determining the variance variable value corresponding to each touch point based on the comparison result includes:
如果存在横坐标小于起始点横坐标的第一触摸点,则确定各所述第一触摸点对应的方差变量值为所述基准线段的起始点纵坐标;如果存在横坐标大于终止点横坐标的第二触摸点,则确定各所述第二触摸点对应的方差变量值为所述基准线段的终止点纵坐标;如果存在横坐标大于起始点横坐标且小于终止点横坐标的第三触摸点,则将各所述第三触摸点的纵坐标确定相应的方差变量值。If there is a first touch point whose abscissa is smaller than the abscissa of the starting point, the variance variable value corresponding to each of the first touch points is determined to be the ordinate of the starting point of the reference line segment; if there is an abscissa greater than the abscissa of the end point For the second touch point, it is determined that the variance variable value corresponding to each second touch point is the ordinate of the end point of the reference line segment; if there is a third touch point whose abscissa is greater than the abscissa of the starting point and less than the abscissa of the end point , The ordinate of each third touch point is used to determine the corresponding variance variable value.
可以理解的是,对于所形成触摸轨迹的触摸点,存在一些触摸点,其横坐标可能小于起始点横坐标,此时,这些触摸点对应的方差变量值均相当于基准线段的起始点纵坐标;还存在一些触摸点,其横坐标可能大于终止点横坐标,此时,这些触摸点对应的方差变量值均相当于基准线段的终止点纵坐标;而针对横坐标处于起始点横坐标与终止点横坐标之间的触摸点,其方差变量值为自身的纵坐标。It is understandable that for the touch points of the formed touch track, there are some touch points whose abscissa may be smaller than the abscissa of the starting point. At this time, the variance variable values corresponding to these touch points are equivalent to the ordinate of the starting point of the reference line segment. ; There are also some touch points whose abscissa may be greater than the abscissa of the end point. At this time, the variance variable values corresponding to these touch points are equivalent to the ordinate of the end point of the reference line segment; and for the abscissa where the abscissa is between the start point and the end point For the touch point between the abscissas, the variance variable value is its ordinate.
S4033、如果水平夹角小于设定角度值且总体方差值小于设定阈值,则确定所述触摸轨迹为线形轨迹。S4033: If the horizontal included angle is less than the set angle value and the overall variance value is less than the set threshold value, determine that the touch track is a linear track.
可以理解的是,本步骤中水平夹角与设定角度值进行比对的目的在于确定基准线段是否为水平或趋近水平的线段,所述设定角度值一般趋近于0;本步骤中,总体方差值与设定阈值的比对目的在于确定触摸轨迹是否与基准线段重合或趋近重合。It can be understood that the purpose of comparing the horizontal included angle with the set angle value in this step is to determine whether the reference line segment is horizontal or a line segment approaching horizontal. The set angle value generally approaches 0; in this step , The purpose of comparing the overall variance value with the set threshold is to determine whether the touch trajectory overlaps or approaches the reference line segment.
本实施例中,所述设定阈值的选择与采样触摸点的采样间隔有关,采样越密集,所需要的计算量越大,其设定阈值的选取也越大,本实施例可预先通过反复测试,获得一个用以区分线性轨迹和其他图形的取值来作为设定阈值,为保证设定阈值取值的精准性,本实施例可以选取大量的线形数据进行训练,将训练获得的最优值作为设定阈值。In this embodiment, the selection of the set threshold is related to the sampling interval of sampling touch points. The denser the sampling, the greater the amount of calculation required, and the greater the selection of the set threshold. This embodiment can be repeated in advance In the test, a value used to distinguish the linear trajectory from other graphics is obtained as the set threshold. In order to ensure the accuracy of the set threshold, a large amount of linear data can be selected for training in this embodiment, and the best obtained by training The value is used as the set threshold.
S404、当该触摸轨迹为线形轨迹时,确定该触摸操作关联的手势类型为画线。S404: When the touch track is a linear track, determine that the gesture type associated with the touch operation is drawing a line.
上述S403及其扩展步骤实现了触摸轨迹是否为线形轨迹的确定,本步骤当上述确定触摸轨迹为线形轨迹是,就可认为所接收触摸操作关联的手势类型为画线,否则,可认为手势类型不为画线,此时可终止本实施例后续的操作。The above S403 and its extended steps realize the determination of whether the touch trajectory is a linear trajectory. In this step, when it is determined that the touch trajectory is a linear trajectory, the gesture type associated with the received touch operation can be regarded as drawing a line; otherwise, the gesture type can be regarded as the gesture type. It is not a line drawing, and the subsequent operations of this embodiment can be terminated at this time.
S405、确定所述手势类型为画线时,将所述触摸操作对应的触摸轨迹作为触摸标识显示。S405. When it is determined that the gesture type is drawing a line, display the touch track corresponding to the touch operation as a touch indicator.
在本实施例中,当触摸操作关联的手势类型为画线时,可以确定触摸操作所形成的触摸轨迹以线形展示,由此可将该触摸轨迹作为触摸操作的触摸标识显示。In this embodiment, when the type of gesture associated with the touch operation is drawing a line, it can be determined that the touch trajectory formed by the touch operation is displayed in a line shape, so that the touch trajectory can be displayed as a touch indicator of the touch operation.
需要说明的是,本实施例下述S406至S412的操作,描述了手势类型为画线时进行关键信息确定的实现过程。可以发现,本实施例下述步骤的实现基本与上述实施例二中手势类型为敲击时确定关键信息的实现方式相同,其区别主要在于进行初始命中区域的确定。It should be noted that the following operations from S406 to S412 in this embodiment describe the implementation process of determining key information when the gesture type is line drawing. It can be found that the implementation of the following steps in this embodiment is basically the same as the implementation of determining key information when the gesture type is tapping in the second embodiment above, and the main difference lies in the determination of the initial hit area.
S406、基于所述基准线段的起始点和终止点,形成一个矩形区域作为命中区域。S406: Based on the start point and the end point of the reference line segment, a rectangular area is formed as a hit area.
在一实施方式中,本步骤可将基准线段起始点与终止点的横坐标跨度作为所构建矩形区 域的宽,以及将基准线段起始点与终止点的纵坐标跨度作为所构建矩形区域的高。此外,本步骤也可形成一个包含触摸轨迹中所有触摸点的外接矩形,将该外接矩形作为命中区域。In one embodiment, in this step, the horizontal coordinate span of the starting point and ending point of the reference line segment can be used as the width of the constructed rectangular area, and the vertical coordinate span of the starting point and ending point of the reference line segment can be taken as the height of the constructed rectangular area. In addition, this step can also form a circumscribed rectangle containing all touch points in the touch track, and use the circumscribed rectangle as the hit area.
需要说明的是,教学者在授课过程中,对重点内容进行讲解时,如果采用画线手势对重点内容进行标注,则可能在讲解过程中重复的对重点内容部分进行画线,因此,本实施例如果监测到一定时间段内接收的触摸操作关联的手势类型均为画线,则可将该时间段内形成的触摸轨迹同时作为进行关键信息确定的线性轨迹,一并执行后续的关键信息确定操作。It should be noted that in the course of teaching, when the teacher explains the key content, if the key content is marked by the gesture of drawing a line, the key content part may be drawn repeatedly during the teaching process. Therefore, this implementation For example, if it is detected that the gesture types associated with the touch operation received within a certain period of time are all drawing lines, the touch trajectory formed in this period of time can be used as a linear trajectory for determining key information at the same time, and subsequent key information determination can be performed together operating.
针对同时具备多条线性轨迹的情况,本步骤可以获取各条线性轨迹所对应基准线段的起始点和终止点,然后确定一个包含所有基准线段起始点及终止点的外接矩形,将该外接矩形确定为命中区域。For the case of multiple linear trajectories at the same time, this step can obtain the starting point and ending point of the reference line segment corresponding to each linear trajectory, and then determine a circumscribed rectangle containing the starting point and ending point of all reference line segments, and determine the circumscribed rectangle Is the hit area.
S407、获取当前显示页面中各元素的关联矩形。S407: Obtain the associated rectangle of each element in the currently displayed page.
示例性地,本实施例中的关联矩形同样相当于元素编辑时对应存在的作为元素底层依托的矩形。在编辑形成当前显示页面中各元素时也同时产生了相应矩形的矩形信息,由此本步骤可直接获取该关联矩形的相关矩形信息,同样可以理解的是,本实施例可选择该关联矩形为增加了长宽边距值的元素外接矩形。Illustratively, the associated rectangle in this embodiment is also equivalent to the corresponding rectangle that exists as the bottom layer of the element when the element is edited. When editing and forming each element in the currently displayed page, the rectangle information of the corresponding rectangle is also generated. Therefore, the related rectangle information of the associated rectangle can be directly obtained in this step. It is also understandable that this embodiment can select the associated rectangle as The circumscribed rectangle of the element with the added margin value.
S408、从各关联矩形中查找与命中区域存在重叠的重叠关联矩形。S408: Search for overlapping associated rectangles that overlap with the hit area from the associated rectangles.
示例性地,本步骤也可根据各关联矩形的矩形信息,查找与命中区域存在重叠的重叠关联矩形,其满足重叠的条件同样包括:关联矩形对应的区域包含了命中区域,或者,关联矩形对应的区域包含在命中区域中,或者,关联矩形对应的区域与命中区域的部分区域相交等。Exemplarily, this step can also search for overlapping associated rectangles that overlap with the hit area according to the rectangle information of each associated rectangle, and the conditions for satisfying the overlap also include: the area corresponding to the associated rectangle contains the hit area, or the associated rectangle corresponds to The area of is included in the hit area, or the area corresponding to the associated rectangle intersects a part of the hit area, etc.
S409、将各重叠关联矩形对应的元素以设定添加条件添加到元素集合中。S409: Add the elements corresponding to the overlapping associated rectangles to the set of elements by setting adding conditions.
示例性地,本步骤同样可以判定重叠关联矩形对应的元素是否是否符合设定添加条件,若符合,则将该元素添加到元素集合中,其中,所述设定添加条件同样可以是:该元素尚未添加在元素集合中。Exemplarily, this step can also determine whether the element corresponding to the overlapping associated rectangle meets the set adding condition, and if so, add the element to the element set, where the set adding condition may also be: the element Has not been added to the element collection.
S410、确定元素集合中的元素总数量是否发生改变,若是,则执行S411;若否,则执行S412。S410: Determine whether the total number of elements in the element set has changed, if yes, execute S411; if not, execute S412.
与上述实施例一的循环终止条件相同,同样考虑元素集合的元素总数量是否发生变化,若变化,则认为满足循环条件,需要执行后续S411,若不变化,则认为满足循环终止条件,此时可执行S412。The same as the loop termination condition of the first embodiment, the same consideration is given to whether the total number of elements in the element set has changed. If it changes, the loop condition is considered to be satisfied and the subsequent S411 needs to be performed. If there is no change, the loop termination condition is considered to be satisfied. S412 can be executed.
S411、将各重叠关联矩形分别作为命中区域,返回执行S408。S411: Use each overlapping associated rectangle as a hit area, and return to execution S408.
示例性地,可以将上述确定出的各重叠关联矩形作为命中区域,返回S408继续迭代执行元素命中的查找操作。Exemplarily, each of the overlapping associated rectangles determined above may be used as a hit area, and return to S408 to continue to iteratively perform the element hit search operation.
S412、将元素集合中的元素确定为关键信息并存储。S412: Determine and store an element in the element set as key information.
示例性地,本步骤同样可首先对元素集合中的元素进行筛选,筛选出不符合要求的元素后,可将元素集合中的元素确定为关键信息,然后存储各元素并保留各元素原有的相关性,以在调取关键信息时,可以保证元素的原有显示关系。Exemplarily, in this step, the elements in the element set can also be screened first, and after the elements that do not meet the requirements are screened out, the elements in the element set can be determined as key information, and then each element can be stored and the original elements of each element Relevance to ensure the original display relationship of elements when retrieving key information.
S413、响应于接收到的作用在目标关键信息的编辑操作,显示包含所述目标关键信息的编辑页面。S413: In response to the received editing operation acting on the target key information, display an editing page containing the target key information.
S414、接收到编辑完成指令时,保存所述编辑页面。S414: When receiving the editing completion instruction, save the editing page.
图4c给出了本发明实施例四中确定手势关联元素的示例图,如图4c所示,当前显示页面40中包含有文本类型及图形类型的元素,基于上述手势类型为画线时对应的关联元素确定 步骤,首先可确定出包含各条线性轨迹的矩形区域41,并将该矩形区域作为初始的命中区域,同时可以获取当前显示页面40中所显示各元素的关联矩形,如以“这就是文本”为显示内容的文本框(元素)对应的第一关联矩形42、线段对应的第二关联矩形43以及曲线对应的第三关联矩形44等(图中未示出所有元素的关联矩形)。Figure 4c shows an example diagram of determining gesture-associated elements in the fourth embodiment of the present invention. As shown in Figure 4c, the currently displayed page 40 contains elements of text type and graphic type. Based on the above-mentioned gesture type corresponding to when drawing a line In the step of determining the associated elements, the rectangular area 41 containing each linear trajectory can be determined first, and the rectangular area can be used as the initial hit area. At the same time, the associated rectangle of each element displayed in the current display page 40 can be obtained, such as "this "Just text" is the first associated rectangle 42 corresponding to the text box (element) of the displayed content, the second associated rectangle 43 corresponding to the line segment, the third associated rectangle 44 corresponding to the curve, etc. (the associated rectangles of all elements are not shown in the figure) .
对于从矩形区域41作为初始的命中区域进行关联元素确定的操作可描述为:从获得的各元素的关联矩形中可查找到与矩形区域41重叠的关联矩形有第一关联矩形42和第二关联矩形43;由此可将第一关联矩形42对应的元素(文本框及其包含的内容)和第二关联矩形43对应的元素(线段)添加(此时元素集合为空,即尚不存在上述确定出的元素)到元素集合中,此时元素总数量为2,发生了改变,可继续执行查找;由此,可分别将第一关联矩形42和第二关联矩形43作为新的命中区域,可查找到与第一关联矩形42重叠的关联矩形为第三关联矩形44,还可查找到与第二关联矩形43重叠的关联矩形也为第三关联矩形44,并可确定第三关联矩形44对应的元素为曲线,且曲线尚未添加在元素集合中,由此可将曲线添加到元素集合中,此时元素总数量为3,发生了改变,同样可继续执行查找;因此,就可将第三关联矩形44作为新的命中区域,可查找到与第三关联矩形44重叠的关联矩形有第一关联矩形42和第二关联矩形43,而因为第一关联矩形42对应的文本框及第二关联矩形43对应的线段均已存在与元素集合中,将不再重复添加,此时,元素总数数量仍为3,没有改变,满足查找结束条件,可结束查找。基于上述查找,最终确定出教学者敲击矩形区域41时,确定出的关键信息为文本框及其所包含内容、线段以及曲线。The operation of determining the associated elements from the rectangular area 41 as the initial hit area can be described as: from the obtained associated rectangles of each element, it can be found that the associated rectangles overlapping the rectangular area 41 have a first associated rectangle 42 and a second associated rectangle. Rectangle 43; this can add the element (text box and its content) corresponding to the first associated rectangle 42 and the element (line segment) corresponding to the second associated rectangle 43 (at this time the element set is empty, that is, there is no such The determined element) is added to the element set. At this time, the total number of elements is 2, and the search can be continued if the change occurs; therefore, the first associated rectangle 42 and the second associated rectangle 43 can be used as new hit areas, respectively, It can be found that the associated rectangle that overlaps the first associated rectangle 42 is the third associated rectangle 44, and the associated rectangle that overlaps the second associated rectangle 43 is also the third associated rectangle 44, and the third associated rectangle 44 can be determined. The corresponding element is a curve, and the curve has not been added to the element set, so the curve can be added to the element set. At this time, the total number of elements is 3, and the search can continue to be performed if the change occurs; therefore, the first The three associative rectangles 44 are used as the new hit area. The associated rectangles that overlap with the third associated rectangle 44 are the first associated rectangle 42 and the second associated rectangle 43, and because the first associated rectangle 42 corresponds to the text box and the second associated rectangle. The line segments corresponding to the associated rectangle 43 already exist in the element set and will not be added repeatedly. At this time, the total number of elements is still 3, unchanged, and the search end condition is satisfied, and the search can be ended. Based on the above search, it is finally determined that when the teacher taps the rectangular area 41, the key information determined is the text box and its contained content, line segments and curves.
可以理解的是,完成上述图4c所提供当前显示页面的关联元素确定后,可以将确定出的关联元素作为关键信息进行存储,示例性地,可将关键信息以当前显示页面为基本单位进行存储,以保留元素在当前显示页面中的原始显示关系,图4d给出了进行关键信息存储的存储文件夹示例图,如图4d所示,在该存储文件夹410中,以第一保存页420的显示形式保存了图4c所提供当前显示页面中的关键信息,可以发现,在第一保存页420中,作为关键信息的文本框及其所包含内容、线段以及曲线以原有显示关系呈现。It is understandable that after the determination of the associated elements of the currently displayed page provided in Figure 4c is completed, the determined associated elements can be stored as key information. For example, the key information can be stored with the current display page as the basic unit. , In order to retain the original display relationship of the element in the current display page, Figure 4d shows an example diagram of the storage folder for storing key information, as shown in Figure 4d, in the storage folder 410, the first save page 420 The display form saves the key information in the currently displayed page provided in FIG. 4c. It can be found that in the first saved page 420, the text box as the key information and its contained content, line segments and curves are presented in the original display relationship.
对于存储的关键信息,可供教学者作为模板直接进行编辑,以便在教学者制作复习课内容时带来更多的灵活性,对所存储关键信息的可编辑操作,在一定程度上也缓解了进行关键信息确定时存在信息识别错误的错误率。For the stored key information, it can be directly edited by the teacher as a template, so as to bring more flexibility when the teacher makes the review content. The editable operation of the stored key information is also relieved to a certain extent. There is an error rate of information recognition errors when determining key information.
本发明实施例四提供的一种关键信息确定方法,给出了触摸操作关联的手势类型为画线时实现关键信息确定的操作,其首先确定了敲击手势的判定过程,然后给出了画线手势进行元素集合的确定过程,并最终实现了关键信息的确定。基于该方法,能够在教学者采用画线的手势进行重点讲解时,准确快速识别出授课内容中作为关键信息的重点讲解内容并存储,从而保证在后续授课时仅通过调用存储的关键信息就能实现重点讲解内容的集中展现,由此不仅避免了教学者进行重点讲解内容展现时的繁琐操作,还保证了重点讲解内容的无遗漏回顾,更好的提升了智能教学的用户体验。The fourth embodiment of the present invention provides a method for determining key information, which provides an operation for determining key information when the gesture type associated with a touch operation is line drawing. It first determines the determination process of the tap gesture, and then gives the drawing Line gestures perform the process of determining the set of elements, and finally realize the determination of key information. Based on this method, when the teacher uses the gesture of drawing a line to explain the key, it can accurately and quickly identify the key explanation content as the key information in the teaching content and store it, so as to ensure that only by calling the stored key information during subsequent lectures Realize the centralized presentation of the key explanation content, which not only avoids the cumbersome operation of the teacher when the key explanation content is displayed, but also ensures the complete review of the key explanation content, and better improves the user experience of intelligent teaching.
实施例五Example five
图5为本发明实施例五提供的一种关键信息确定装置的结构示意图。如图5所示,该关键信息确定装置包括:第一响应模块51、元素集合确定模块52以及关键信息存储模块53、第二响应模块54和编辑存储模块55。FIG. 5 is a schematic structural diagram of an apparatus for determining key information according to Embodiment 5 of the present invention. As shown in FIG. 5, the device for determining key information includes: a first response module 51, an element set determining module 52, a key information storage module 53, a second response module 54, and an editing storage module 55.
其中,第一响应模块51,用于响应于接收到的作用在当前显示页面上的触摸操作,显示所述触摸操作对应的触摸标识;Wherein, the first response module 51 is configured to display a touch identifier corresponding to the touch operation in response to the received touch operation acting on the currently displayed page;
元素集合确定模块52,用于确定所述手势类型在当前显示页面中关联的元素集合,所述当前显示页面中包含至少一个元素;The element set determining module 52 is configured to determine a set of elements associated with the gesture type in the currently displayed page, and the currently displayed page contains at least one element;
关键信息存储模块53,用于将所述元素集合中的元素确定为关键信息并存储;The key information storage module 53 is used to determine and store the elements in the element set as key information;
第二响应模块54,用于响应于接收到的作用在目标关键信息的编辑操作,显示包含所述目标关键信息的编辑页面,所述目标关键信息为所述元素集合中任一作为关键信息的元素;The second response module 54 is configured to display an editing page containing the target key information in response to the received editing operation acting on the target key information, where the target key information is any key information in the set of elements element;
编辑存储模块55,用于接收到编辑完成指令时,保存所述编辑页面;The edit storage module 55 is configured to save the edit page when receiving an edit completion instruction;
所述元素包括以下至少之一:文本、图形形状、多媒体以及表格。The elements include at least one of the following: text, graphic shapes, multimedia, and tables.
本实施例提供的技术方案,能够根据教学者在授课过程中进行重点讲解时采用的触摸操作,快速识别授课内容中重点讲解的关键信息并存储,从而保证在后续授课时仅通过调用存储的关键信息就能实现重点讲解内容的集中展现,由此不仅避免了教学者进行重点讲解内容展现时的繁琐操作,还保证了重点讲解内容的无遗漏回顾,更好的提升了智能教学的用户体验。The technical solution provided in this embodiment can quickly identify and store the key information that is emphasized in the lecture content according to the touch operation used by the teacher during the key explanation during the lecture, thereby ensuring that the key information stored in the subsequent lectures is only called The information can realize the centralized display of the key explanation content, which not only avoids the cumbersome operation of the teacher when the key explanation content is displayed, but also ensures the complete review of the key explanation content, and better improves the user experience of intelligent teaching.
在一实施方式中,第一响应模块51,包括:In an embodiment, the first response module 51 includes:
手势类型确定单元,用于确定接收到的作用在当前显示页面上的触摸操作关联的手势类型,显示对应所述手势类型的触摸标识。The gesture type determining unit is configured to determine the received gesture type associated with the touch operation on the currently displayed page, and display the touch identifier corresponding to the gesture type.
在一实施方式中,所述手势类型确定单元,包括:In an embodiment, the gesture type determining unit includes:
操作监听子单元,用于当监听到包括一次触摸按下事件和一次触摸抬起事件的事件组合时,确定接收到一次触摸操作;The operation monitoring subunit is used to determine that a touch operation is received when an event combination including a touch down event and a touch up event is monitored;
信息获取子单元,用于如果设定时间段内接收到至少三次触摸操作,则获取各所述触摸操作的触摸信息;The information acquisition subunit is configured to acquire touch information of each touch operation if at least three touch operations are received within a set time period;
第一确定子单元,用于如果各所述触摸操作的触摸信息均满足第一判定条件且相邻两触摸操作满足第二判定条件,则确定所述至少三次触摸操作关联的手势类型为敲击;The first determining subunit is configured to determine that the gesture type associated with the at least three touch operations is tapping if the touch information of each touch operation meets the first determination condition and two adjacent touch operations meet the second determination condition ;
标识显示子单元,用于确定所述手势类型为敲击时,将各所述触摸操作对应的触摸点作为触摸标识显示。The mark display subunit is used to display the touch points corresponding to each of the touch operations as touch marks when determining that the gesture type is tapping.
上述优化的基础上,所述触摸操作的触摸信息包括:触摸按下事件的第一产生时间和第一产生位置以及触摸抬起事件的第二产生时间和第二产生位置;Based on the above optimization, the touch information of the touch operation includes: the first generation time and the first generation position of the touch-down event, and the second generation time and the second generation position of the touch-up event;
所述第一判定条件为:第二产生时间与相应第一产生时间的差值小于第一时间阈值且第二产生位置与第一产生位置的位置差小于第一距离阈值;The first determination condition is: the difference between the second generation time and the corresponding first generation time is less than a first time threshold, and the position difference between the second generation position and the first generation position is less than a first distance threshold;
所述第二判定条件为:后一触摸操作与前一触摸操作的时间差小于第二时间阈值且后一触摸操作与前一触摸操作的距离差小于第二距离阈值。The second determination condition is that the time difference between the next touch operation and the previous touch operation is less than the second time threshold, and the distance difference between the next touch operation and the previous touch operation is less than the second distance threshold.
在一实施方式中,元素集合确定模块52,具体用于:In an embodiment, the element set determining module 52 is specifically configured to:
基于所述至少三次触摸操作分别作用在所述当前显示页面中的触摸点,形成一个圆形区域作为命中区域;获取所述当前显示页面中各元素的关联矩形;从各所述关联矩形中查找与所述命中区域存在重叠的重叠关联矩形;将各所述重叠关联矩形对应的元素以设定添加条件添加到元素集合中;如果所述元素集合的元素总数量发生改变,则将各所述重叠关联矩形分别作为命中区域,返回执行重叠查找及元素添加操作,直至元素总数量不变。Based on the at least three touch operations respectively acting on the touch points in the currently displayed page, a circular area is formed as a hit area; the associated rectangle of each element in the currently displayed page is obtained; and each associated rectangle is searched There are overlapping associated rectangles that overlap with the hit area; the elements corresponding to each of the overlapping associated rectangles are added to the element set according to the set adding conditions; if the total number of elements in the element set changes, each The overlapping associated rectangles are respectively used as hit areas, and the overlapping search and element addition operations are performed until the total number of elements does not change.
在一实施方式中,手势类型确定单元,还包括:In an embodiment, the gesture type determining unit further includes:
轨迹获取子单元,用于采样所述触摸操作在当前显示页面上对应的所有触摸点,并获取基于各所述触摸点形成的触摸轨迹;A trajectory acquisition subunit, configured to sample all touch points corresponding to the touch operation on the currently displayed page, and acquire a touch trajectory formed based on each of the touch points;
圈形判定子单元,用于根据各所述触摸点,确定所述触摸轨迹是否包含圈形轨迹且包含的圈数是否满足设定条件;The circle shape determination subunit is configured to determine, according to each of the touch points, whether the touch trajectory includes a circle trajectory and whether the number of circles included meets a set condition;
第二确定子单元,用于当触摸轨迹包含圈形轨迹且包含的圈数满足设定条件时,确定所述触摸操作关联的手势类型为画圈;The second determining subunit is configured to determine that the gesture type associated with the touch operation is circle drawing when the touch trajectory includes a circle-shaped trajectory and the number of included circles meets a set condition;
标识显示子单元,还用于确定所述手势类型为画圈时,将所述触摸操作对应的触摸轨迹作为触摸标识显示。The mark display subunit is further configured to display the touch track corresponding to the touch operation as a touch mark when it is determined that the gesture type is drawing a circle.
在上述优化的基础上,所述圈形判定子单元,具体用于:On the basis of the above optimization, the ring shape determination subunit is specifically used for:
确定各所述触摸点到设定基准点的距离值,作为各所述触摸点的判定距离值;依次选取每个触摸点的判定距离值与第三距离阈值进行比对;当存在设定连续量触摸点的判定距离值大于第三距离阈值时,确定后续是否存在一个目标触摸点的判定距离值小于或等于所述第三距离阈值;若存在,则确定所述触摸轨迹包含圈形轨迹,将包含圈形轨迹的圈数加1,并返回执行距离值判定操作,直至当前所选判定距离值对应的触摸点为触摸终止点;如果确定的圈数大于或等于设定值,则确定所述圈数满足设定条件。Determine the distance value from each touch point to the set reference point as the judgment distance value of each touch point; select the judgment distance value of each touch point in turn to compare with the third distance threshold; when there is a continuous setting When the determined distance value of the touch point is greater than the third distance threshold, it is determined whether there is a target touch point subsequently and the determined distance value is less than or equal to the third distance threshold; if it exists, it is determined that the touch track includes a circle-shaped track, Add 1 to the number of laps containing the circle track, and return to perform the distance value judgment operation until the touch point corresponding to the currently selected judgment distance value is the touch end point; if the determined number of laps is greater than or equal to the set value, determine all The number of turns meets the set conditions.
在一实施方式中,元素集合确定模块52,具体用于:In an embodiment, the element set determining module 52 is specifically configured to:
基于所述触摸操作的各所述触摸点,形成封闭的多边图形;获取所述当前显示页面中各元素的关联矩形;从所述多边图形的未选中边集合中选取一条边作为命中边;从各所述关联矩形中查找与所述命中边满足包含关系的目标关联矩形;将各所述目标关联矩形对应的元素以设定条件添加到元素集合中,返回执行命中边选取操作,直至符合命中终止条件;其中,所述终止条件为所述未选中边集合为空,或者,所述元素集合中的元素总数量保持不变。Based on each of the touch points of the touch operation, a closed polygonal graphic is formed; obtaining the associated rectangle of each element in the currently displayed page; selecting an edge from the unselected edge set of the polygonal graphic as the hit edge; Search for a target associated rectangle that satisfies the inclusion relationship with the hit edge in each of the associated rectangles; add the element corresponding to each target associated rectangle to the element set under a set condition, and return to perform the hit edge selection operation until the hit is met Termination condition; wherein, the termination condition is that the unselected edge set is empty, or the total number of elements in the element set remains unchanged.
在一实施方式中,手势类型确定单元,包括:In an embodiment, the gesture type determining unit includes:
轨迹获取子单元,用于采样所述触摸操作在当前显示页面上对应的所有触摸点,并获取基于各所述触摸点形成的触摸轨迹;A trajectory acquisition subunit, configured to sample all touch points corresponding to the touch operation on the currently displayed page, and acquire a touch trajectory formed based on each of the touch points;
基准线段确定子单元,用于获得基于所述触摸轨迹中起始点和终止点连线形成的基准线段;A reference line segment determining subunit for obtaining a reference line segment formed based on the connection between the starting point and the ending point in the touch track;
线形判定子单元,用于根据各所述触摸点及所述基准线段,确定所述触摸轨迹是否为线形轨迹;The linear determination subunit is used to determine whether the touch trajectory is a linear trajectory according to each of the touch points and the reference line segment;
第三确定子单元,用于当触摸轨迹为线形轨迹时,确定所述触摸操作关联的手势类型为画线;The third determining subunit is configured to determine that the gesture type associated with the touch operation is drawing a line when the touch trajectory is a linear trajectory;
标识显示子单元,也可用于确定所述手势类型为画线时,将所述触摸操作对应的触摸轨迹作为触摸标识显示。The mark display subunit can also be used to display the touch track corresponding to the touch operation as a touch mark when it is determined that the gesture type is drawing a line.
在上述优化的基础上,所述线形判定子单元,包括:On the basis of the above optimization, the linear judging subunit includes:
夹角确定子单元,用于确定所述基准线段的水平夹角;方差值确定子单元,用于根据所述触摸轨迹上触摸点的位置信息,确定所述触摸轨迹的总体方差值;线形确定子单元,用于当所述水平夹角小于设定角度值且所述总体方差值小于设定阈值时,确定所述触摸轨迹为线形轨迹。The included angle determination subunit is used to determine the horizontal included angle of the reference line segment; the variance value determination subunit is used to determine the overall variance value of the touch track according to the position information of the touch point on the touch track; The linear determination subunit is configured to determine that the touch track is a linear track when the horizontal included angle is less than a set angle value and the overall variance value is less than a set threshold.
在一实施方式中,方差值确定子单元,具体用于:In an embodiment, the variance value determining subunit is specifically used for:
以时间顺序采样所述触摸轨迹上的触摸点,确定采样总数并获得各所述触摸点在当前显 示页面中的横纵坐标;将各所述触摸点的横坐标与所述基准线段的起始点横坐标及终止点横坐标进行比对,基于比对结果确定各触摸点对应的方差变量值;基于总体方差计算公式
Figure PCTCN2019120858-appb-000002
确定所述触摸轨迹的总体方差值,其中,σ 2为触摸轨迹的总体方差值,N表示采样总数,Y i表示第i个触摸点对应的方差变量值,μ表示所述基准线段的中点纵坐标。
Sampling the touch points on the touch track in time sequence, determine the total number of samples, and obtain the horizontal and vertical coordinates of each touch point in the currently displayed page; compare the horizontal and vertical coordinates of each touch point with the starting point of the reference line segment The abscissa and the abscissa of the end point are compared, and the variance variable value corresponding to each touch point is determined based on the comparison result; based on the overall variance calculation formula
Figure PCTCN2019120858-appb-000002
Determining the overall variance touch track, wherein, σ 2 is the variance value of the overall touch track, N represents the total number of samples, the variance of the Y i represents the i-th variable value corresponding to the touch point, [mu] represents the reference line segment The ordinate of the midpoint.
在上述优化的基础上,所述基于比对结果确定各触摸点横坐标对应的方差变量值,具体包括:如果存在横坐标小于起始点横坐标的第一触摸点,则确定各所述第一触摸点对应的方差变量值为所述基准线段的起始点纵坐标;如果存在横坐标大于终止点横坐标的第二触摸点,则确定各所述第二触摸点对应的方差变量值为所述基准线段的终止点纵坐标;如果存在横坐标大于起始点横坐标且小于终止点横坐标的第三触摸点,则将各所述第三触摸点的纵坐标确定相应的方差变量值。On the basis of the above optimization, the determination of the variance variable value corresponding to the abscissa of each touch point based on the comparison result specifically includes: if there is a first touch point whose abscissa is smaller than the abscissa of the starting point, determining each of the first touch points The variance variable value corresponding to the touch point is the ordinate of the starting point of the reference line segment; if there is a second touch point whose abscissa is greater than the abscissa of the end point, it is determined that the variance variable value corresponding to each second touch point is the The ordinate of the end point of the reference line segment; if there is a third touch point whose abscissa is greater than the abscissa of the start point and less than the abscissa of the end point, the ordinate of each third touch point is determined to the corresponding variance variable value.
在一实施方式中,元素集合确定模块53,具体用于:基于所述基准线段的起始点和终止点,形成一个矩形区域作为命中区域;获取所述当前显示页面中各元素的关联矩形;从各所述关联矩形中查找与所述命中区域存在重叠的重叠关联矩形;将各所述重叠关联矩形对应的元素添加到元素集合中;如果所述元素集合的元素总数量发生改变,则将各所述重叠关联矩形分别作为命中区域,返回执行重叠查找及元素添加操作,直至元素总数量不变。In one embodiment, the element set determining module 53 is specifically configured to: form a rectangular area as a hit area based on the start point and end point of the reference line segment; obtain the associated rectangle of each element in the currently displayed page; In each of the associated rectangles, find overlapping associated rectangles that overlap with the hit area; add the elements corresponding to each of the overlapping associated rectangles to the element set; if the total number of elements in the element set changes, add each The overlapping associated rectangles are respectively used as hit areas, and the overlapping search and element addition operations are performed back until the total number of elements does not change.
在一实施方式中,该装置还包括:In an embodiment, the device further includes:
元素筛选模块,用于在将所述元素集合中的元素确定为关键信息并存储之前,根据预设的元素标签筛选所述元素集合中的元素,删除元素标签为临时产生内容的元素。The element screening module is configured to filter the elements in the element set according to preset element tags before determining the elements in the element set as key information and storing them, and delete the element tags as elements that temporarily generate content.
本实施例提供的关键信息确定装置可以用于执行上述任意实施例提供的关键信息确定方法,具备相应的功能和有益效果。The key information determining device provided in this embodiment can be used to execute the key information determining method provided in any of the foregoing embodiments, and has corresponding functions and beneficial effects.
实施例六Example Six
图6为本发明实施例六提供的一种关键信息确定设备的结构示意图。该关键信息确定设备包括:处理器60、存储器61、显示屏62、输入装置63以及输出装置64。该关键信息确定设备中处理器60的数量可以是一个或者多个,图6中以一个处理器60为例。该关键信息确定设备中存储器61的数量可以是一个或者多个,图6中以一个存储器61为例。该关键信息确定设备的处理器60、存储器61、显示屏62、输入装置63以及输出装置64可以通过总线或者其他方式连接,图6中以通过总线连接为例。实施例中,关键信息确定设备可以是电脑,手机,平板或智能教学平板等。FIG. 6 is a schematic structural diagram of a key information determining device provided by Embodiment 6 of the present invention. The key information determining device includes a processor 60, a memory 61, a display screen 62, an input device 63, and an output device 64. The key information determines that the number of processors 60 in the device may be one or more. One processor 60 is taken as an example in FIG. 6. The key information determining device may have one or more memories 61, and one memory 61 is taken as an example in FIG. 6. The key information determines that the processor 60, the memory 61, the display screen 62, the input device 63, and the output device 64 of the device may be connected by a bus or other methods. In FIG. 6, the connection by a bus is taken as an example. In the embodiment, the key information determining device may be a computer, a mobile phone, a tablet, or a smart teaching tablet.
存储器61作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本发明任意实施例所述的关键信息确定设备对应的程序指令/模块(例如,关键信息确定装置中的第一响应模块51、元素集合确定模块52以及关键信息存储模块53、第二响应模块54和编辑存储模块55)。存储器61可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据设备的使用所创建的数据等。此外,存储器61可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器61可进一步包括相对于处理器60远程设置的存储器,这些远程存储器可以通过网络 连接至设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。As a computer-readable storage medium, the memory 61 can be used to store software programs, computer-executable programs, and modules, such as the program instructions/modules corresponding to the key information determining device according to any embodiment of the present invention (for example, the key information determining device). The first response module 51, the element set determination module 52, the key information storage module 53, the second response module 54 and the editing storage module 55) in the. The memory 61 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 by at least one function; the data storage area may store data created according to the use of the device, and the like. In addition, the memory 61 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 61 may further include a memory remotely provided with respect to the processor 60, 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.
显示屏62可以为具有触摸功能的显示屏62,其可以是电容屏、电磁屏或者红外屏。一般而言,显示屏62用于根据处理器60的指示显示数据,例如显示当前显示页面的具体授课内容、教学者授课过程中临时添加的内容以及教学者重点讲解时通过手势的触摸操作形成的触摸轨迹等,还用于接收作用于显示屏62的触摸操作,并将相应的信号发送至处理器60或其他装置。The display screen 62 may be a display screen 62 with a touch function, which may be a capacitive screen, an electromagnetic screen or an infrared screen. Generally speaking, the display screen 62 is used to display data according to the instructions of the processor 60, such as displaying the specific teaching content of the currently displayed page, the content temporarily added by the teacher during the teaching process, and the touch operation formed by the gesture when the teacher focuses on the explanation. The touch track, etc., are also used to receive touch operations on the display 62 and send corresponding signals to the processor 60 or other devices.
输入装置63可用于接收输入的数字或者字符信息,以及产生与展示设备的用户设置以及功能控制有关的键信号输入,还可以是用于获取图像的摄像头以及获取音频数据的拾音设备。输出装置64可以包括扬声器等音频设备。需要说明的是,输入装置63和输出装置64的具体组成可以根据实际情况设定。The input device 63 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the display device. It can also be a camera for acquiring images and a pickup device for acquiring audio data. The output device 64 may include audio equipment such as speakers. It should be noted that the specific composition of the input device 63 and the output device 64 can be set according to actual conditions.
处理器60通过运行存储在存储器61中的软件程序、指令以及模块,从而执行设备的各种功能应用以及数据处理,即实现上述的关键信息确定方法。The processor 60 executes various functional applications and data processing of the device by running the software programs, instructions, and modules stored in the memory 61, that is, realizes the aforementioned method for determining key information.
上述提供的关键信息确定设备可用于执行上述任意实施例提供的关键信息确定方法,具备相应的功能和有益效果。The key information determining device provided above can be used to execute the key information determining method provided in any of the foregoing embodiments, and has corresponding functions and beneficial effects.
实施例七Example Seven
本发明实施例七还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种关键信息确定方法,包括:The seventh embodiment of the present invention also provides a storage medium containing computer-executable instructions. The computer-executable instructions are used to execute a method for determining key information when executed by a computer processor, including:
响应于接收到的作用在当前显示页面上的触摸操作,显示所述触摸操作对应的触摸标识;In response to the received touch operation acting on the currently displayed page, displaying the touch identifier corresponding to the touch operation;
确定所述触摸标识在当前显示页面中关联的元素集合,所述当前显示页面中包含至少一个元素;Determining the set of elements associated with the touch identifier in the currently displayed page, and the currently displayed page contains at least one element;
将所述元素集合中的元素确定为关键信息并存储;Determine and store the elements in the element set as key information;
响应于接收到的作用在目标关键信息的编辑操作,显示包含所述目标关键信息的编辑页面,所述目标关键信息为所述元素集合中任一作为关键信息的元素;In response to the received editing operation acting on the target key information, displaying an editing page containing the target key information, where the target key information is any element in the set of elements that is used as key information;
接收到编辑完成指令时,保存所述编辑页面;When receiving the edit completion instruction, save the edit page;
其中,所述元素包括以下至少之一:文本、图形形状、多媒体以及表格。Wherein, the element includes at least one of the following: text, graphic shape, multimedia, and table.
当然,本发明实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的关键信息确定方法操作,还可以执行本发明任意实施例所提供的关键信息确定方法中的相关操作,且具备相应的功能和有益效果。Of course, a storage medium containing computer-executable instructions provided by an embodiment of the present invention is not limited to the operation of the key information determination method described above, and can also execute the key information provided by any embodiment of the present invention. Determine the relevant operations in the method, and have corresponding functions and beneficial effects.
通过以上关于实施方式的描述,所属领域的技术人员可以清楚地了解到,本发明可借助软件及必需的通用硬件来实现,当然也可以通过硬件实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、闪存(FLASH)、硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是机器人,个人计算机,服务器,或者网络设备等)执行本发明任意实施例所述的关键信息确定方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the present invention can be implemented by software and necessary general-purpose hardware. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation. . Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product, which can be stored in a computer readable storage medium, such as a computer floppy disk. , Read-Only Memory (ROM), Random Access Memory (RAM), Flash memory (FLASH), hard disk or optical disk, etc., including several instructions to make a computer device (which can be a robot, A personal computer, a server, or a network device, etc.) execute the method for determining key information according to any embodiment of the present invention.
值得注意的是,上述关键信息确定装置中,所包括的各个单元和模块只是按照功能逻辑 进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It is worth noting that the various units and modules included in the above key information determining device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding function can be realized; in addition, each functional unit The specific names are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present invention.
应当理解,本公开的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that each part of the present disclosure can be implemented by hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if it is implemented by hardware, as in another embodiment, it can be implemented by any one or a combination of the following technologies known in the art: a logic gate circuit for implementing logic functions on data signals Discrete logic circuits, application-specific integrated circuits with suitable combinational logic gates, programmable gate array (PGA), field programmable gate array (FPGA), etc.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, descriptions with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" etc. mean specific features described in conjunction with the embodiment or example , Structure, materials or features are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above-mentioned terms does not necessarily refer to the same embodiment or example. Moreover, the described specific features, structures, materials or characteristics may be combined in any one or more embodiments or examples in a suitable manner.

Claims (15)

  1. 一种关键信息确定方法,包括:A method for determining key information, including:
    响应于接收到的作用在当前显示页面上的触摸操作,显示所述触摸操作对应的触摸标识;In response to the received touch operation acting on the currently displayed page, displaying the touch identifier corresponding to the touch operation;
    确定所述触摸标识在当前显示页面中关联的元素集合,所述当前显示页面中包含至少一个元素;Determining the set of elements associated with the touch identifier in the currently displayed page, and the currently displayed page contains at least one element;
    将所述元素集合中的元素确定为关键信息并存储;Determine and store the elements in the element set as key information;
    响应于接收到的作用在目标关键信息的编辑操作,显示包含所述目标关键信息的编辑页面,所述目标关键信息为所述元素集合中任一作为关键信息的元素;In response to the received editing operation acting on the target key information, displaying an editing page containing the target key information, where the target key information is any element in the set of elements that is used as key information;
    接收到编辑完成指令时,保存所述编辑页面;When receiving the edit completion instruction, save the edit page;
    其中,所述元素包括以下至少之一:文本、图形形状、多媒体以及表格。Wherein, the element includes at least one of the following: text, graphic shape, multimedia, and table.
  2. 根据权利要求1所述的方法,其中,所述响应于接收到的作用在当前显示页面上的触摸操作,显示所述触摸操作对应的触摸标识,包括:The method according to claim 1, wherein, in response to a received touch operation acting on the currently displayed page, displaying the touch identifier corresponding to the touch operation comprises:
    确定接收到的作用在当前显示页面上的触摸操作关联的手势类型,显示对应所述手势类型的触摸标识。Determine the received gesture type associated with the touch operation on the currently displayed page, and display the touch identifier corresponding to the gesture type.
  3. 根据权利要求2所述的方法,其中,所述确定接收到的作用在当前显示页面上的触摸操作关联的手势类型,显示对应所述手势类型的触摸标识,包括:The method according to claim 2, wherein the determining the received gesture type associated with the touch operation acting on the currently displayed page and displaying the touch identifier corresponding to the gesture type comprises:
    当监听到包括一次触摸按下事件和一次触摸抬起事件的事件组合时,确定接收到一次触摸操作;When an event combination including a touch down event and a touch up event is monitored, it is determined that a touch operation is received;
    如果设定时间段内接收到至少三次触摸操作,则获取各所述触摸操作的触摸信息;If at least three touch operations are received within the set time period, acquiring touch information of each of the touch operations;
    如果各所述触摸信息均满足第一判定条件且相邻两触摸操作满足第二判定条件,则确定所述至少三次触摸操作关联的手势类型为敲击;If each of the touch information satisfies the first determination condition and two adjacent touch operations satisfy the second determination condition, determining that the gesture type associated with the at least three touch operations is tap;
    确定所述手势类型为敲击时,将各所述触摸操作对应的触摸点作为触摸标识显示。When it is determined that the gesture type is tapping, a touch point corresponding to each touch operation is displayed as a touch indicator.
  4. 根据权利要求3所述的方法,其中,所述触摸操作的触摸信息包括:触摸按下事件的第一产生时间和第一产生位置以及触摸抬起事件的第二产生时间和第二产生位置;The method according to claim 3, wherein the touch information of the touch operation comprises: a first generation time and a first generation position of a touch-down event, and a second generation time and a second generation position of the touch-up event;
    所述第一判定条件为:第二产生时间与相应第一产生时间的差值小于第一时间阈值且第二产生位置与第一产生位置的位置差小于第一距离阈值;The first determination condition is: the difference between the second generation time and the corresponding first generation time is less than a first time threshold, and the position difference between the second generation position and the first generation position is less than a first distance threshold;
    所述第二判定条件为:后一触摸操作与前一触摸操作的时间差小于第二时间阈值且后一触摸操作与前一触摸操作的距离差小于第二距离阈值。The second determination condition is that the time difference between the next touch operation and the previous touch operation is less than the second time threshold, and the distance difference between the next touch operation and the previous touch operation is less than the second distance threshold.
  5. 根据权利要求3所述的方法,其中,所述确定所述触摸标识在当前显示页面中关联的元素集合,包括:The method according to claim 3, wherein the determining the set of elements associated with the touch identifier in the currently displayed page comprises:
    基于所述至少三次触摸操作分别作用在所述当前显示页面中的触摸点,形成一个圆形区域作为命中区域;Forming a circular area as a hit area based on the touch points of the at least three touch operations respectively acting on the currently displayed page;
    获取所述当前显示页面中各元素的关联矩形;Acquiring the associated rectangle of each element in the currently displayed page;
    从各所述关联矩形中查找与所述命中区域存在重叠的重叠关联矩形;Searching for overlapping associated rectangles that overlap with the hit area from each of the associated rectangles;
    将各所述重叠关联矩形对应的元素以设定添加条件添加到元素集合中;Adding the elements corresponding to each of the overlapping associated rectangles to the element set by setting adding conditions;
    如果所述元素集合的元素总数量发生改变,则将各所述重叠关联矩形分别作为命中区域,返回执行重叠查找及元素添加操作,直至元素总数量不变。If the total number of elements in the element set changes, each of the overlapping associated rectangles is used as a hit area, and the overlap search and element addition operations are performed back until the total number of elements does not change.
  6. 根据权利要求1所述的方法,其中,所述确定接收到的作用在当前显示页面上的触摸操作关联的手势类型,显示对应所述手势类型的触摸标识,确定所接收触摸操作关联的手势 类型,包括:The method according to claim 1, wherein the determining the received gesture type associated with the touch operation acting on the currently displayed page, displaying a touch identifier corresponding to the gesture type, and determining the gesture type associated with the received touch operation ,include:
    采样所述触摸操作在当前显示页面上对应的所有触摸点,并获取基于各所述触摸点形成的触摸轨迹;Sample all touch points corresponding to the touch operation on the currently displayed page, and obtain a touch track formed based on each touch point;
    根据各所述触摸点,确定所述触摸轨迹是否包含圈形轨迹且包含的圈数是否满足设定条件;According to each of the touch points, determine whether the touch trajectory includes a circle-shaped trajectory and whether the number of laps included meets a set condition;
    若是,则确定所述触摸操作关联的手势类型为画圈;If yes, determine that the gesture type associated with the touch operation is circle drawing;
    确定所述手势类型为画圈时,将所述触摸操作对应的触摸轨迹作为触摸标识显示。When it is determined that the gesture type is drawing a circle, the touch track corresponding to the touch operation is displayed as a touch indicator.
  7. 根据权利要求6所述的方法,其中,所述根据各所述触摸点,确定所述触摸轨迹是否包含圈形轨迹且包含的圈数是否满足设定条件,包括:The method according to claim 6, wherein the determining whether the touch trajectory includes a circle-shaped trajectory and whether the included circle number meets a set condition according to each of the touch points comprises:
    确定各所述触摸点到设定基准点的距离值,作为各所述触摸点的判定距离值;Determine the distance value from each of the touch points to the set reference point as the judgment distance value of each of the touch points;
    依次选取每个触摸点的判定距离值与第三距离阈值进行比对;The judgment distance value of each touch point is selected in turn for comparison with the third distance threshold;
    当存在设定连续量触摸点的判定距离值大于第三距离阈值时,确定后续是否存在一个目标触摸点的判定距离值小于或等于所述第三距离阈值;When the determined distance value for the presence of a set continuous touch point is greater than the third distance threshold, determining whether there is a subsequent target touch point for determining the distance value is less than or equal to the third distance threshold;
    若存在,则确定所述触摸轨迹包含圈形轨迹,将包含圈形轨迹的圈数加1,并返回执行距离值判定操作,直至当前所选判定距离值对应的触摸点为触摸终止点;If it exists, it is determined that the touch trajectory includes a circle-shaped trajectory, the number of laps including the circle-shaped trajectory is increased by 1, and the distance value judgment operation is returned until the touch point corresponding to the currently selected judgment distance value is the touch end point;
    如果确定的圈数大于或等于设定值,则确定所述圈数满足设定条件。If the determined number of turns is greater than or equal to the set value, it is determined that the number of turns meets the set condition.
  8. 根据权利要求6所述的方法,其中,所述确定所述触摸标识在当前显示页面中关联的元素集合,包括:The method according to claim 6, wherein the determining the set of elements associated with the touch identifier in the currently displayed page comprises:
    基于所述触摸操作的各所述触摸点,形成封闭的多边图形;Forming a closed polygonal figure based on each of the touch points of the touch operation;
    获取所述当前显示页面中各元素的关联矩形;Acquiring the associated rectangle of each element in the currently displayed page;
    从所述多边图形的未选中边集合中选取一条边作为命中边;Selecting an edge from the unselected edge set of the multilateral graphics as a hit edge;
    从各所述关联矩形中查找与所述命中边满足包含关系的目标关联矩形;Searching, from each of the associated rectangles, a target associated rectangle that satisfies the inclusion relationship with the hit edge;
    将各所述目标关联矩形对应的元素以设定条件添加到元素集合中,返回执行命中边选取操作,直至符合命中终止条件;Adding the elements corresponding to each of the target associated rectangles to the element set according to the set conditions, and returning to perform the hit edge selection operation until the hit termination condition is met;
    其中,所述终止条件为所述未选中边集合为空,或者,所述元素集合中的元素总数量保持不变。Wherein, the termination condition is that the unselected edge set is empty, or the total number of elements in the element set remains unchanged.
  9. 根据权利要求2所述的方法,其中,所述确定接收到的作用在当前显示页面上的触摸操作关联的手势类型,显示对应所述手势类型的触摸标识,包括:The method according to claim 2, wherein the determining the received gesture type associated with the touch operation acting on the currently displayed page and displaying the touch identifier corresponding to the gesture type comprises:
    采样所述触摸操作在当前显示页面上对应的所有触摸点,并获取基于各所述触摸点形成的触摸轨迹;Sample all touch points corresponding to the touch operation on the currently displayed page, and obtain a touch track formed based on each touch point;
    获得基于所述触摸轨迹中起始点和终止点连线形成的基准线段;Obtaining a reference line segment formed based on the connection between the starting point and the ending point in the touch track;
    根据各所述触摸点及所述基准线段,确定所述触摸轨迹是否为线形轨迹;Determine whether the touch trajectory is a linear trajectory according to each of the touch points and the reference line segment;
    若是,则确定所述触摸操作关联的手势类型为画线;If yes, determine that the gesture type associated with the touch operation is line drawing;
    确定所述手势类型为画线时,将所述触摸操作对应的触摸轨迹作为触摸标识显示。When it is determined that the gesture type is drawing a line, the touch track corresponding to the touch operation is displayed as a touch indicator.
  10. 根据权利要求9所述的方法,其中,所述根据各所述触摸点及所述基准线段,确定所述触摸轨迹是否为线形轨迹,包括:9. The method according to claim 9, wherein the determining whether the touch trajectory is a linear trajectory according to each of the touch points and the reference line segment comprises:
    确定所述基准线段的水平夹角;Determine the horizontal included angle of the reference line segment;
    根据所述触摸轨迹上触摸点的位置信息,确定所述触摸轨迹的总体方差值;Determine the overall variance value of the touch trajectory according to the position information of the touch point on the touch trajectory;
    如果所述水平夹角小于设定角度值且所述总体方差值小于设定阈值,则确定所述触摸轨 迹为线形轨迹。If the horizontal included angle is less than the set angle value and the overall variance value is less than the set threshold value, it is determined that the touch trajectory is a linear trajectory.
  11. 根据权利要求9所述的方法,其中,所述确定所述触摸标识在当前显示页面中关联的元素集合,包括:The method according to claim 9, wherein the determining the set of elements associated with the touch identifier in the currently displayed page comprises:
    基于所述基准线段的起始点和终止点,形成一个矩形区域作为命中区域;Based on the start point and the end point of the reference line segment, a rectangular area is formed as a hit area;
    获取所述当前显示页面中各元素的关联矩形;Acquiring the associated rectangle of each element in the currently displayed page;
    从各所述关联矩形中查找与所述命中区域存在重叠的重叠关联矩形;Searching for overlapping associated rectangles that overlap with the hit area from each of the associated rectangles;
    将各所述重叠关联矩形对应的元素添加到元素集合中;Adding elements corresponding to the overlapping associated rectangles to the element set;
    如果所述元素集合的元素总数量发生改变,则将各所述重叠关联矩形分别作为命中区域,返回执行重叠查找及元素添加操作,直至元素总数量不变。If the total number of elements in the element set changes, each of the overlapping associated rectangles is used as a hit area, and the overlap search and element addition operations are performed back until the total number of elements does not change.
  12. 根据权利要求1-11任一项所述的方法,在将所述元素集合中的元素确定为关键信息并存储之前,还包括:The method according to any one of claims 1-11, before determining and storing the elements in the element set as key information, further comprising:
    根据预设的元素标签筛选所述元素集合中的元素,删除元素标签为临时产生内容的元素。The elements in the element set are filtered according to the preset element tags, and the element tags are deleted as elements that temporarily generate content.
  13. 一种关键信息确定装置,包括:A key information determining device includes:
    第一响应模块,用于响应于接收到的作用在当前显示页面上的触摸操作,显示所述触摸操作对应的触摸标识;The first response module is configured to display a touch mark corresponding to the touch operation in response to the received touch operation on the currently displayed page;
    元素集合确定模块,用于确定所述手势类型在当前显示页面中关联的元素集合,所述当前显示页面中包含至少一个元素;An element set determining module, configured to determine a set of elements associated with the gesture type in the currently displayed page, and the currently displayed page contains at least one element;
    关键信息存储模块,用于将所述元素集合中的元素确定为关键信息并存储;The key information storage module is used to determine and store the elements in the element set as key information;
    第二响应模块,用于响应于接收到的作用在目标关键信息的编辑操作,显示包含所述目标关键信息的编辑页面,所述目标关键信息为所述元素集合中任一作为关键信息的元素;The second response module is configured to display an editing page containing the target key information in response to the received editing operation acting on the target key information, where the target key information is any element in the set of elements that is used as key information ;
    编辑存储模块,用于接收到编辑完成指令时,保存所述编辑页面;The edit storage module is used to save the edit page when receiving the edit completion instruction;
    其中,所述元素包括以下至少之一:文本、图形形状、多媒体以及表格。Wherein, the element includes at least one of the following: text, graphic shape, multimedia, and table.
  14. 一种关键信息确定设备,包括:存储器、显示屏以及一个或多个处理器;A key information determining device, including: a memory, a display screen, and one or more processors;
    所述存储器,用于存储一个或多个程序;The memory is used to store one or more programs;
    所述显示屏,用于显示当前显示页面及对应触摸操作的触摸轨迹;The display screen is used to display the currently displayed page and the touch track corresponding to the touch operation;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-12任一所述的关键信息确定方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the key information determining method according to any one of claims 1-12.
  15. 一种包含计算机可执行指令的存储介质,其中,所述计算机可执行指令在由计算机处理器执行时用于执行如权利要求1-12任一所述的关键信息确定方法。A storage medium containing computer-executable instructions, wherein the computer-executable instructions are used to execute the method for determining key information according to any one of claims 1-12 when executed by a computer processor.
PCT/CN2019/120858 2019-01-29 2019-11-26 Key information determining method, apparatus and device, and storage medium WO2020155816A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910087616.X 2019-01-29
CN201910087616.XA CN109814787B (en) 2019-01-29 2019-01-29 Key information determination method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2020155816A1 true WO2020155816A1 (en) 2020-08-06

Family

ID=66605743

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/120858 WO2020155816A1 (en) 2019-01-29 2019-11-26 Key information determining method, apparatus and device, and storage medium

Country Status (2)

Country Link
CN (1) CN109814787B (en)
WO (1) WO2020155816A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109814787B (en) * 2019-01-29 2021-04-06 广州视源电子科技股份有限公司 Key information determination method, device, equipment and storage medium
CN111309228A (en) * 2020-02-12 2020-06-19 北京字节跳动网络技术有限公司 Multimedia processing method and device and electronic equipment
CN112287038B (en) * 2020-10-26 2023-02-24 宁波阶梯教育科技有限公司 Method for structuring teaching content and information control center equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929524A (en) * 2012-09-20 2013-02-13 东莞宇龙通信科技有限公司 Page content selecting method and device
CN104391641A (en) * 2014-09-22 2015-03-04 贵阳朗玛信息技术股份有限公司 Information processing method and device
US20160034130A1 (en) * 2014-06-16 2016-02-04 Huawei Technologies Co., Ltd. Method and Apparatus for Moving Icon, and Electronic Device
CN105808126A (en) * 2014-12-29 2016-07-27 鸿合科技有限公司 Electronic teaching whiteboard operation method and device
CN109814787A (en) * 2019-01-29 2019-05-28 广州视源电子科技股份有限公司 Key message determines method, apparatus, equipment and storage medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012226617A (en) * 2011-04-20 2012-11-15 Sony Corp Information processing apparatus, information processing method and program
WO2014079046A1 (en) * 2012-11-23 2014-05-30 Nokia Corporation User interfaces and associated methods
CN104216652A (en) * 2013-06-03 2014-12-17 仁宝信息研发(南京)有限公司 Screen-displayed content multi-object selecting system and method
FR3028967B1 (en) * 2014-11-21 2017-12-15 Renault Sas GRAPHICAL INTERFACE AND METHOD FOR MANAGING THE GRAPHICAL INTERFACE WHEN TACTILE SELECTING A DISPLAYED ELEMENT
CN105260022B (en) * 2015-10-15 2018-03-23 广东欧珀移动通信有限公司 A kind of method and device based on gesture control sectional drawing
CN105630380B (en) * 2015-12-21 2018-12-28 广州视睿电子科技有限公司 Element combinations and the method and system of fractionation
CN105700790B (en) * 2016-01-11 2019-04-05 Oppo广东移动通信有限公司 A kind of screenshot method and terminal device
CN107479791A (en) * 2017-08-18 2017-12-15 广州视源电子科技股份有限公司 Association annotation information determines method, apparatus, intelligent instructional device and storage medium
CN107728873A (en) * 2017-09-04 2018-02-23 小草数语(北京)科技有限公司 The method and its device of contents selection
CN108446064B (en) * 2018-02-11 2021-04-30 广州视源电子科技股份有限公司 Writing whiteboard-based area saving method and device, terminal equipment and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929524A (en) * 2012-09-20 2013-02-13 东莞宇龙通信科技有限公司 Page content selecting method and device
US20160034130A1 (en) * 2014-06-16 2016-02-04 Huawei Technologies Co., Ltd. Method and Apparatus for Moving Icon, and Electronic Device
CN104391641A (en) * 2014-09-22 2015-03-04 贵阳朗玛信息技术股份有限公司 Information processing method and device
CN105808126A (en) * 2014-12-29 2016-07-27 鸿合科技有限公司 Electronic teaching whiteboard operation method and device
CN109814787A (en) * 2019-01-29 2019-05-28 广州视源电子科技股份有限公司 Key message determines method, apparatus, equipment and storage medium

Also Published As

Publication number Publication date
CN109814787A (en) 2019-05-28
CN109814787B (en) 2021-04-06

Similar Documents

Publication Publication Date Title
CN106933465B (en) Content display method based on intelligent desktop and intelligent desktop terminal
WO2021218203A1 (en) Page editing method and apparatus for intelligent interactive tablet computer, device, and storage medium
WO2020155816A1 (en) Key information determining method, apparatus and device, and storage medium
CN106776514B (en) Annotating method and device
WO2019140987A1 (en) Table control method, device, apparatus, and storage medium
TWI685795B (en) Information recognition method and device
CN110069204B (en) Graph processing method, device and equipment based on writing track and storage medium
US10216472B2 (en) Electronic device and method for processing audio data
US11620047B2 (en) Method, apparatus, terminal device, and storage medium for operating interactive white board
WO2020010775A1 (en) Method and device for operating interface element of electronic whiteboard, and interactive intelligent device
CN103838566A (en) Information processing device, and information processing method
CN110045909B (en) Ellipse processing method, device and equipment based on writing track and storage medium
DE112013002409T5 (en) Apparatus, method and graphical user interface for displaying additional information in response to a user contact
CN103324674B (en) Web page contents choosing method and device
KR20160062565A (en) Device and method for providing handwritten content
CN106527945A (en) Text information extracting method and device
WO2019041639A1 (en) Information storage and display method, device, equipment and computer storage medium
WO2021068412A1 (en) Interaction method and apparatus for intelligent interaction tablet, terminal device, and storage medium
WO2020258717A1 (en) Text processing method, apparatus and device, and storage medium
CN108958861A (en) Object displaying method, equipment and storage medium based on text control
CN108492349B (en) Processing method, device and equipment for writing strokes and storage medium
CN111159975B (en) Display method and device
WO2019218622A1 (en) Element control method, apparatus, and device, and storage medium
US20160132478A1 (en) Method of displaying memo and device therefor
WO2021068382A1 (en) Multi-window operation control method and apparatus, and device and storage medium

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

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

Country of ref document: EP

Kind code of ref document: A1