CN111352545A - Automatic adsorption method of interactive service and related equipment - Google Patents

Automatic adsorption method of interactive service and related equipment Download PDF

Info

Publication number
CN111352545A
CN111352545A CN201910376136.5A CN201910376136A CN111352545A CN 111352545 A CN111352545 A CN 111352545A CN 201910376136 A CN201910376136 A CN 201910376136A CN 111352545 A CN111352545 A CN 111352545A
Authority
CN
China
Prior art keywords
qualified
interactive
qualified position
objects
distance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910376136.5A
Other languages
Chinese (zh)
Inventor
魏治平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitevision Co Ltd
Original Assignee
Hitevision Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitevision Co Ltd filed Critical Hitevision Co Ltd
Priority to CN201910376136.5A priority Critical patent/CN111352545A/en
Publication of CN111352545A publication Critical patent/CN111352545A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning

Landscapes

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

Abstract

The invention discloses an automatic adsorption method and related equipment for interactive services, which are applied to an interactive device and used for acquiring a first object selected by a user and current position information of the first object; calculating the distances between all the objects and the first object, and selecting a second object closest to the first object; judging whether the distance between the first object and the second object is within a preset threshold value; and if so, overlapping the first qualified position of the first object with the second qualified position of the second object. By applying the technical scheme of the application, when a user drags one flow chart object and the other flow chart object to be combined by fingers, the user only needs to place the flow chart object to an approximate position, the method can automatically adsorb and align the flow chart objects according to the characteristics of the two flow chart objects, the use difficulty of the user is reduced, and the user experience is improved.

Description

Automatic adsorption method of interactive service and related equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an automatic adsorption method for interactive services and a related device.
Background
In the modern teaching process, interactive learning is increasingly performed by using an interactive processing mode, and the interactive learning is a novel teaching mode emphasizing the combination of interaction cooperation and computer use. The generation of interactive learning is driven by the contemporary high-speed development of electronic technology and multimedia interaction. From the beginning of the 21 st century to the present, more and more students enter the classrooms of higher education, and are expected to enjoy an educational approach of use in combination with high technology (interactive learning). As the students of the new era have already contacted various high-tech products and concepts in life, the emerging teaching mode is similar to the pencil and the white paper for the students in the traditional classroom for the students of the new era.
At present, electronic whiteboards are often used in the interactive teaching process in life, such as electronic whiteboards for large-screen teaching in school classrooms, electronic whiteboards for large-screen meetings and demonstration whiteboards for QQ. The electronic whiteboard software can be said to permeate the method surface of work and life of people.
In work, the user often encounters a scene of using the flow chart on the electronic equipment, such as the flow chart in an electronic whiteboard in a large screen of a school or a conference room. When using flow charts on these devices, it is common to use a finger to draw and drag the flow charts into the desired flow chart. Meanwhile, the prior flow chart is also shown as a schematic diagram of the combination of a closed frame body and a line body. However, the use of the flowcharts in these application scenarios has a significant inconvenience, that is, the user needs to repeatedly drag and adjust the position because the flowchart cannot be automatically and automatically attached and aligned according to the current graph when dragging the flowchart object.
Disclosure of Invention
In view of the above, the present invention is directed to an automatic adsorption method and related apparatus for an interactive service, which can intelligently adsorb an aligned object without dragging the aligned object back and forth when using a flowchart object.
In view of the above object, in a first aspect, the present invention provides an automatic adsorption method for interactive services, applied to an interactive device, including:
acquiring a first object selected by a user and current position information of the first object;
calculating the distances between all the objects and the first object, and selecting a second object closest to the first object;
judging whether the distance between the first object and the second object is within a preset threshold value;
and if so, overlapping the first qualified position of the first object with the second qualified position of the second object.
In some embodiments, at least one of the first object and the second object is a linear object.
In some embodiments, the acquiring the first object selected by the user and the current position information of the first object specifically includes:
judging the current moving direction according to the position information and the previous position information of the first object before the preset time;
and screening out the qualified positions which can correctly complete the overlapping in all the objects according to the moving direction.
In some embodiments, the calculating distances between all the objects and the first object, and selecting the second object closest to the first object specifically includes:
selecting the first qualified position according to the first object and the moving direction;
calculating the relative distance between the first qualified position and the qualified position;
and selecting the qualified position with the closest relative distance as the second qualified position, wherein the object corresponding to the second qualified position is the second object.
In some embodiments, the determining whether the distance between the first object and the second object is within a preset threshold specifically includes:
and judging whether the first qualified position falls within a preset threshold value on one side of the second qualified position.
In some embodiments, the preset threshold is specifically:
the second qualified position corresponds to a rectangular range surrounded by a line segment on the second object and a distance of 50 pixels from one side of the line segment relative to the first qualified position.
In some embodiments, the interactive apparatus comprises at least: interactive screens, interactive whiteboards, and interactive projection screens.
In a second aspect, the present invention further provides an automatic adsorption device for interactive services, which is applied to an interactive apparatus, and includes:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a first object selected by a user and current position information of the first object;
the calculation module is used for calculating the distances between all the objects and the first object and selecting a second object closest to the first object;
the judging module is used for judging whether the distance between the first object and the second object is within a preset threshold value or not;
and if so, overlapping the first qualified position of the first object with the second qualified position of the second object.
In some embodiments, at least one of the first object and the second object is a linear object.
In some embodiments, the acquiring module acquires a first object selected by a user and current position information of the first object, and specifically includes:
judging the current moving direction according to the position information and the previous position information of the first object before the preset time;
and screening out the qualified positions which can correctly complete the overlapping in all the objects according to the moving direction.
In some embodiments, the calculating module calculates distances between all the objects and the first object, and selects a second object closest to the first object, specifically including:
selecting the first qualified position according to the first object and the moving direction;
calculating the relative distance between the first qualified position and the qualified position;
and selecting the qualified position with the closest relative distance as the second qualified position, wherein the object corresponding to the second qualified position is the second object.
In some embodiments, the determining module determines whether the distance between the first object and the second object is within a preset threshold, specifically:
and judging whether the first qualified position falls within a preset threshold value on one side of the second qualified position.
In some embodiments, the preset threshold is specifically:
the second qualified position corresponds to a rectangular range surrounded by a line segment on the second object and a distance of 50 pixels from one side of the line segment relative to the first qualified position.
In some embodiments, the interactive apparatus comprises at least: interactive screens, interactive whiteboards, and interactive projection screens.
In a third aspect, the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the automatic adsorption method for interactive services as described above.
In a fourth aspect, the present invention also provides a computer-readable storage medium, which stores instructions that, when executed on a terminal device, cause the terminal device to execute the automatic adsorption method for interactive services as described above.
From the above, the automatic adsorption method and the related device for interactive services provided by the invention are applied to an interactive device, and the method and the related device are used for acquiring the first object selected by the user and the current position information of the first object; calculating the distances between all the objects and the first object, and selecting a second object closest to the first object; judging whether the distance between the first object and the second object is within a preset threshold value; and if so, overlapping the first qualified position of the first object with the second qualified position of the second object. By applying the technical scheme of the application, when a user drags one flow chart object and the other flow chart object to be combined by fingers, the user only needs to place the flow chart object to an approximate position, the method can automatically adsorb and align the flow chart objects according to the characteristics of the two flow chart objects, the use difficulty of the user is reduced, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of an automatic absorption method for interactive services according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an automatic adsorption device for interactive services according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to specific embodiments and the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
The embodiment of the invention provides an automatic adsorption method of interactive services, which is applied to an interactive device. The operator inputs information and operation commands through the terminal equipment (see the input and output system), the system immediately processes the information after receiving the information, and the processing result is displayed through the terminal equipment. The operator can further input information and operation commands according to the processing result. The present invention is not limited to the single interactive processing device, but may be applied to interactive applications such as interactive learning, and the following embodiments do not describe the present invention.
Further, in order to utilize an automatic absorption method in the interactive processing process, the flow chart manually made by the user on the screen or the electronic whiteboard is automatically absorbed into a complete graph, and in a specific application scenario, the interactive device at least comprises: interactive screens, interactive whiteboards, and interactive projection screens.
Fig. 1 is a schematic flow chart of an automatic absorption method for interactive services according to an embodiment of the present invention. The method specifically comprises the following steps:
step 101, a first object selected by a user and current position information of the first object are obtained.
This step is intended to acquire a target object selected by the user and the current position coordinates of this target object. There are many ways to obtain the user-selected target, such as: there are various ways to obtain the current position of the first object by using a click selection of a pointer, a gesture instruction selection of a finger, a voice instruction selection of a user, and the like, such as: the method comprises the steps of obtaining a coordinate set determining position of the whole target object, obtaining a coordinate determining position of a target central point, obtaining an endpoint coordinate determining position of the target object and the like, wherein different obtaining methods and modes for determining position information do not influence the protection scope of the invention as long as the corresponding purposes can be achieved.
Furthermore, time is saved in order to pick out qualified objects in advance from all the objects and pick out the overlapped positions of all the qualified objects according to the attribute of the first object, so that qualified position points can be found more quickly. In a preferred embodiment of the present application, the acquiring the first object selected by the user and the current position information of the first object specifically includes:
judging the current moving direction according to the position information and the previous position information of the first object before the preset time;
and screening out the qualified positions which can correctly complete the overlapping in all the objects according to the moving direction.
In a specific application scenario, firstly, in a general flowchart, selected objects mainly include two types of graphics: the first is a closed figure with an area consisting of at least one edge, such as: rectangular, diamond, parallelogram, circular arc rectangular, oval, wavy rectangular, etc. The second is a linear graph or a combination of a linear graph and an arrow-like graph, such as: horizontal lines, vertical lines, horizontal arrows, broken lines, broken line arrows, and the like. After a user selects a graph, reading a specific range of the graph, determining the current coordinate of the graph, determining the moving direction of the selected graph according to the change of the position coordinate relationship of the graph after the user moves the graph, and selecting all points suitable for combination according to the graph and the graph suitable for combination, for example: if the rectangular graph is selected and moved to the left, the transverse line or the transverse arrow or the broken line on the left side of the rectangle is preferentially selected as qualified objects, and the end points of the qualified objects close to the direction of the rectangle are selected as qualified positions.
And 102, calculating the distances between all the objects and the first object, and selecting a second object closest to the first object.
This step is intended to find the second object that is closest to the first object. There are many ways in which the distance can be calculated, for example: calculating the distance between the center dots of the two graphics, the distance between the closest points of the two graphics, the distance between the farthest points of the two graphics, etc. Different methods do not affect the protection scope of the invention as long as different distance obtaining modes can achieve corresponding purposes.
It should be noted that two kinds of graphics, namely, a closed box graphic and a linear graphic, are commonly present in a general flowchart, and in order to achieve the purpose of the flowchart itself, unnecessary operations caused by the combination of the two closed box graphics are avoided. In a preferred embodiment of the present application, at least one of the first object and the second object is a linear object.
Furthermore, in order to accurately select the nearest second object suitable for adsorption bonding, the accuracy in the selection process is increased, and the target object is quickly obtained. In a preferred embodiment of the present application, the calculating distances between all the objects and the first object, and selecting a second object closest to the first object specifically includes:
selecting the first qualified position according to the first object and the moving direction;
calculating the relative distance between the first qualified position and the qualified position;
and selecting the qualified position with the closest relative distance as the second qualified position, wherein the object corresponding to the second qualified position is the second object.
In a specific application scene, whether a linear graph or a closed frame graph is selected by a user is judged, meanwhile, points which can be adsorbed and bonded on the selected graph are determined according to the graph selected by the user and the moving direction of the current graph, then, the distance between the two points is calculated according to the coordinates of the points and the coordinates of all the points which are determined before and suitable for the points to be adsorbed and bonded, the closest points which are suitable for adsorption and bonding are selected, and a second object (the points are on the second object) is determined according to the points. For example: the user selects a transverse arrow, and the transverse arrow moves leftwards, so that the endpoint of the leftmost end of the transverse arrow is the first qualified position, then the distances between all qualified positions such as the endpoints of all vertical lines on the left side of the arrow, the midpoint or the rightmost endpoint of the rightmost edge of the closed block diagram graph, the endpoint of the vertical part of the broken line and the like and the first qualified position are respectively calculated, a point with the minimum distance is selected as a second qualified position, and the graph corresponding to the point is a second object.
Step 103, determining whether the distance between the first object and the second object is within a preset threshold.
This step is intended to determine whether the distance is within a certain range. There are various methods for determining whether the distance falls within the range, such as: directly obtaining an absolute distance value for judgment, obtaining a projection distance value for judgment and the like. Different judging methods can not influence the protection scope of the invention as long as the corresponding purpose can be achieved.
Further, in order to effectively read the operation intention of the user, the two objects are accurately adsorbed and bonded when the user drags the selected object within the proper range. In a preferred embodiment of the present application, the determining whether the distance between the first object and the second object is within a preset threshold specifically includes:
and judging whether the first qualified position falls within a preset threshold value on one side of the second qualified position.
It should be noted that, when the user drags the selected target to the adjacent position, the optimal suction range is set in consideration of the operation habit of the user in order to standardize the size of the specific suction range for automatic suction bonding. In a preferred embodiment of the present application, the preset threshold specifically is:
the second qualified position corresponds to a rectangular range surrounded by a line segment on the second object and a distance of 50 pixels from one side of the line segment relative to the first qualified position.
In a specific application scenario, after the first qualified position and the second qualified position are determined, the relative position relationship between the first qualified position and the second qualified position is determined, for example: the first qualified position is on the right of the second qualified position, and whether the first qualified position falls within a certain range on the right of the second qualified position is judged (a rectangular range is formed by two ends of the side where the second qualified position point is located and 50 pixels on the right side of the point).
And 104, if so, overlapping the first qualified position of the first object with the second qualified position of the second object.
This step is intended to overlap two sites to complete the adsorption bonding. There are many ways in which two suitable positions can be overlapped, such as: moving only the first object for overlapping, moving only the second object for overlapping, moving both objects simultaneously for overlapping in between, etc. Different overlapping modes can achieve the corresponding purpose, and different methods can not influence the protection scope of the invention.
Preferably, in order to prevent the already-made flow chart part from being damaged or deformed, the selection object of the user is made to the whole flow chart. In the preferred embodiment of the present application, during the overlapping process, only the first object is moved to overlap the first qualified position and the second qualified position, so as to ensure that the second object and the whole flowchart are not deformed by shifting.
By applying the technical scheme of the application, the scheme is that the first object selected by a user and the current position information of the first object are acquired; calculating the distances between all the objects and the first object, and selecting a second object closest to the first object; judging whether the distance between the first object and the second object is within a preset threshold value; and if so, overlapping the first qualified position of the first object with the second qualified position of the second object. By applying the technical scheme of the application, when a user drags one flow chart object and the other flow chart object to be combined by fingers, the user only needs to place the flow chart object to an approximate position, the method can automatically adsorb and align the flow chart objects according to the characteristics of the two flow chart objects, the use difficulty of the user is reduced, and the user experience is improved.
In order to further illustrate the technical idea of the present invention, the technical solution of the present invention will now be described with reference to specific application scenarios.
Before describing the application scenario, two major classes of flowchart objects need to be defined:
1. common flow chart objects such as circular arc rectangles, diamonds, parallelograms, sub-rectangles, circles or ovals, wavy rectangles, etc.
2. Connecting flowchart objects such as horizontal lines, vertical lines, horizontal arrows, vertical arrows, polylines, polyline arrows, and the like.
The method implements the following rules:
in the first case:
1. when the object to be moved is a circular arc rectangle, rhombus, sub-rectangle, wavy rectangle, ellipse, parallelogram, or the like, the object is set to be a.
2. And traversing all the flow chart objects on the current interface, and if the currently traversed objects are arrows or straight lines, setting the objects as B.
3. And judging the direction of B, if the direction is a vertical line, judging whether the top or the bottom of B is within a certain range of the bottom or the top of A. This range refers to the top range [ left, top-50, right, top +50] or the bottom range [ left, bottom-50, right, bottom +50] of A. If within this range, the adsorption is automatic.
4. Judging the direction of B, if it is a horizontal line, judging whether the left or right of B is in the right or left of A within a certain range, where the certain range is the left range [ left-50, top, left +50, bottom ] or the right range [ right-50, top, right +50, bottom ] of A. If within this range, the adsorption is automatic.
5. And traversing all the flow chart objects on the current interface, and if the currently traversed objects are broken line arrows or broken lines, setting the objects as C.
6. And judging the direction of C, if the direction is from top to bottom to right, and judging whether the top or the right of C can be automatically adsorbed with the bottom or the left of A according to the logic above.
7. And judging the direction of C, if the direction is from top to bottom to left, and judging whether the top or the left side of C can be automatically adsorbed with the bottom or the right side of A according to the logic above.
8. And judging the direction of the C, if the direction is from bottom to top to right, and judging whether the bottom or the right of the C can be automatically adsorbed with the top or the left of the A according to the logic above.
7. And judging the direction of the C, if the direction is from bottom to top to left, and judging whether the bottom or the left side of the C can be automatically adsorbed with the top or the right side of the A or not according to the logic above.
In the second case:
1. when the current moving object is an arrow or a straight line, the direction of the current object needs to be judged first, and if the current moving object is a vertical line, the current object is set as A; if the line is a horizontal line, the object is B.
2. And if the current object is A, traversing all the flow chart objects on the current interface, and if the current traversed object is a circular arc rectangle, a rhombus, a sub-rectangle, a wavy rectangle, an ellipse or a parallelogram, setting the object as C.
3. And if so, automatically absorbing.
4. And if the current object is A, traversing all the flowchart objects on the current interface, and if the currently traversed object is an arrow or a straight line and the direction is transverse, setting the object as D.
5. And the logic above judges whether A is on the left side, the right side, the middle and other adsorbable positions of D, and if so, the adsorption is carried out automatically.
6. And if the current object is A, traversing all the flow chart objects on the current interface, if the current traversed object is a broken line arrow or a broken line, setting the object as E, and judging whether the transverse line part of the E can be automatically adsorbed by the A.
7. And if the current object is B, traversing all the flow chart objects on the current interface, and if the current traversed object is a circular arc rectangle, a diamond, a sub-rectangle, a wavy rectangle, an ellipse or a parallelogram, setting the object as F.
8. And the logic is the same as the logic above, whether the left side and the right side of B are in the right side or the left side of F within a certain range is judged, and if so, the adsorption is automatically carried out.
9. And if the current object is B, traversing all the flow chart objects on the current interface, and if the current traversed object is an arrow or a straight line and the direction is vertical, setting the object as G.
10. And if so, automatically absorbing.
11. And if the current object is B, traversing all the flow chart objects on the current interface, if the current traversed object is a broken line arrow or a broken line, setting the object as H, and judging whether the vertical line part of the H can be automatically adsorbed by the B.
In the third case:
1. when the current moving object is a broken line arrow or a broken line, the direction of the current object needs to be judged first, and if the current moving object is from top to bottom and then to the right, the object is set as A; if the distance from the top to the bottom to the left is larger than the distance from the top to the bottom to the left, the object is set as B; if the direction is from bottom to top to right, the object is set as C; if from bottom to top to left, let this object be D.
2. And if the current object is A, traversing all the flow chart objects on the current interface, and if the current traversed object is a circular arc rectangle, a rhombus, a sub-rectangle, a wavy rectangle, an ellipse or a parallelogram, setting the object as E.
3. And the logic above, judging whether the top or the right of A is within a certain range of the bottom or the left of E, such as automatic adsorption.
4. If the current object is A, traversing all the flow chart objects on the current interface, if the current traversed object is an arrow or a straight line, firstly judging the direction of the object, and if the current traversed object is a vertical line, setting the object as F; if the line is a horizontal line, the object is G.
5. And judging whether the transverse part of the A can be automatically adsorbed with the F or not by the same logic as the above.
6. And the logic above judges whether the vertical part of A can be automatically adsorbed with G.
7. If the current object is A, all the flow chart objects on the current interface are traversed, if the current traversed object is a broken line arrow or a broken line, the direction of the object is firstly judged, and the adsorption rule is the same as the logic.
8. The object adsorption logic in other directions is similar and is not listed.
By applying the technical scheme of the application, the scheme is that the first object selected by a user and the current position information of the first object are acquired; calculating the distances between all the objects and the first object, and selecting a second object closest to the first object; judging whether the distance between the first object and the second object is within a preset threshold value; and if so, overlapping the first qualified position of the first object with the second qualified position of the second object. By applying the technical scheme of the application, when a user drags one flow chart object and the other flow chart object to be combined by fingers, the user only needs to place the flow chart object to an approximate position, the method can automatically adsorb and align the flow chart objects according to the characteristics of the two flow chart objects, the use difficulty of the user is reduced, and the user experience is improved.
Based on the same inventive concept, an embodiment of the present invention further provides an automatic adsorption device for interactive services, as shown in fig. 2, which is applied to an interactive apparatus, and includes:
an obtaining module 201, which obtains a first object selected by a user and current position information of the first object;
the calculation module 202 calculates the distances between all the objects and the first object, and selects a second object closest to the first object;
the judging module 203 judges whether the distance between the first object and the second object is within a preset threshold value;
if yes, the overlapping module 204 overlaps the first qualified position of the first object with the second qualified position of the second object.
In a specific application scenario, at least one of the first object and the second object is a linear object.
In a specific application scenario, the acquiring module 201 acquires a first object selected by a user and current position information of the first object, and specifically includes:
judging the current moving direction according to the position information and the previous position information of the first object before the preset time;
and screening out the qualified positions which can correctly complete the overlapping in all the objects according to the moving direction.
In a specific application scenario, the calculating module 202 calculates distances between all objects and the first object, and selects a second object closest to the first object, specifically including:
selecting the first qualified position according to the first object and the moving direction;
calculating the relative distance between the first qualified position and the qualified position;
and selecting the qualified position with the closest relative distance as the second qualified position, wherein the object corresponding to the second qualified position is the second object.
In a specific application scenario, the determining module 203 determines whether the distance between the first object and the second object is within a preset threshold, specifically:
and judging whether the first qualified position falls within a preset threshold value on one side of the second qualified position.
In a specific application scenario, the preset threshold specifically is:
the second qualified position corresponds to a rectangular range surrounded by a line segment on the second object and a distance of 50 pixels from one side of the line segment relative to the first qualified position.
In a specific application scenario, the interactive apparatus at least includes: interactive screens, interactive whiteboards, and interactive projection screens.
The device of the foregoing embodiment is used to implement the corresponding method in the foregoing embodiment, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Based on the same inventive concept, the embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and running on the processor, and when the processor executes the program, the processor implements the automatic adsorption method for interactive services as described above.
The electronic device of the foregoing embodiment is used to implement the corresponding method in the foregoing embodiment, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Based on the same inventive concept, an embodiment of the present invention further provides a computer-readable storage medium, where instructions are stored, and when the instructions are executed on a terminal device, the terminal device is caused to execute the automatic adsorption method for an interactive service as described above.
The storage medium of the foregoing embodiment is used to implement the corresponding method in the foregoing embodiment, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
It should be noted that the above embodiments are only used for illustrating the technical solutions of the present invention, and are not limited thereto. Although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the idea of the invention, also features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity.
In addition, well known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown within the provided figures for simplicity of illustration and discussion, and so as not to obscure the invention. Furthermore, devices may be shown in block diagram form in order to avoid obscuring the invention, and also in view of the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the present invention is to be implemented (i.e., specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the invention, it should be apparent to one skilled in the art that the invention can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative instead of restrictive.
While the present invention has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic ram (dram)) may use the discussed embodiments.
The embodiments of the invention are intended to embrace all such alternatives, modifications and variances that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, substitutions, improvements and the like that may be made without departing from the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (16)

1. An automatic absorption method for interactive services, which is applied to an interactive device, includes:
acquiring a first object selected by a user and current position information of the first object;
calculating the distances between all the objects and the first object, and selecting a second object closest to the first object;
judging whether the distance between the first object and the second object is within a preset threshold value;
and if so, overlapping the first qualified position of the first object with the second qualified position of the second object.
2. The method of claim 1, wherein at least one of the first object and the second object is a linear object.
3. The method according to claim 1, wherein the acquiring the first object selected by the user and the current location information of the first object specifically comprises:
judging the current moving direction according to the position information and the previous position information of the first object before the preset time;
and screening out the qualified positions which can correctly complete the overlapping in all the objects according to the moving direction.
4. The method according to claim 3, wherein the calculating distances between all the objects and the first object and selecting the second object closest to the first object specifically comprises:
selecting the first qualified position according to the first object and the moving direction;
calculating the relative distance between the first qualified position and the qualified position;
and selecting the qualified position with the closest relative distance as the second qualified position, wherein the object corresponding to the second qualified position is the second object.
5. The method according to claim 1, wherein the determining whether the distance between the first object and the second object is within a preset threshold is specifically:
and judging whether the first qualified position falls within a preset threshold value on one side of the second qualified position.
6. The method according to claim 5, wherein the preset threshold is specifically:
the second qualified position corresponds to a rectangular range surrounded by a line segment on the second object and a distance of 50 pixels from one side of the line segment relative to the first qualified position.
7. Method for the automatic adsorption of interactive services according to any one of claims 1 to 6, characterized in that said interactive means comprise at least: interactive screens, interactive whiteboards, and interactive projection screens.
8. An automatic absorption device for interactive service, which is applied to an interactive device, comprises:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a first object selected by a user and current position information of the first object;
the calculation module is used for calculating the distances between all the objects and the first object and selecting a second object closest to the first object;
the judging module is used for judging whether the distance between the first object and the second object is within a preset threshold value or not;
and if so, overlapping the first qualified position of the first object with the second qualified position of the second object.
9. An interactive service auto-adsorption device according to claim 8, wherein at least one of said first object and said second object is a linear object.
10. The automatic absorption device for interactive services according to claim 8, wherein the acquiring module acquires the first object selected by the user and the current position information of the first object, specifically comprising:
judging the current moving direction according to the position information and the previous position information of the first object before the preset time;
and screening out the qualified positions which can correctly complete the overlapping in all the objects according to the moving direction.
11. The automatic adsorption equipment of claim 10, wherein the calculation module calculates distances between all objects and the first object, and selects a second object with a closest distance, and specifically comprises:
selecting the first qualified position according to the first object and the moving direction;
calculating the relative distance between the first qualified position and the qualified position;
and selecting the qualified position with the closest relative distance as the second qualified position, wherein the object corresponding to the second qualified position is the second object.
12. The automatic adsorption equipment of claim 8, wherein the determining module determines whether the distance between the first object and the second object is within a preset threshold, specifically:
and judging whether the first qualified position falls within a preset threshold value on one side of the second qualified position.
13. The automatic adsorption equipment of an interactive service according to claim 12, wherein the preset threshold is specifically:
the second qualified position corresponds to a rectangular range surrounded by a line segment on the second object and a distance of 50 pixels from one side of the line segment relative to the first qualified position.
14. An interactive service automatic absorption apparatus according to any one of claims 8-13, wherein the interactive device comprises at least: interactive screens, interactive whiteboards, and interactive projection screens.
15. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for automatic attachment of an interactive service according to any one of claims 1 to 7 when executing the program.
16. A computer-readable storage medium having stored therein instructions that, when run on a terminal device, cause the terminal device to perform the method of automatic adsorption of interactive services according to any one of claims 1-7.
CN201910376136.5A 2019-05-07 2019-05-07 Automatic adsorption method of interactive service and related equipment Pending CN111352545A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910376136.5A CN111352545A (en) 2019-05-07 2019-05-07 Automatic adsorption method of interactive service and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910376136.5A CN111352545A (en) 2019-05-07 2019-05-07 Automatic adsorption method of interactive service and related equipment

Publications (1)

Publication Number Publication Date
CN111352545A true CN111352545A (en) 2020-06-30

Family

ID=71192757

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910376136.5A Pending CN111352545A (en) 2019-05-07 2019-05-07 Automatic adsorption method of interactive service and related equipment

Country Status (1)

Country Link
CN (1) CN111352545A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111550015A (en) * 2020-04-30 2020-08-18 广东三维家信息科技有限公司 Automatic adsorption method and device for entities in home design system and electronic equipment
CN112764654A (en) * 2021-01-29 2021-05-07 北京达佳互联信息技术有限公司 Component adsorption operation method and device, terminal and storage medium
CN114579238A (en) * 2022-02-28 2022-06-03 天翼安全科技有限公司 Primitive alignment method, device and equipment
CN114816192A (en) * 2022-04-28 2022-07-29 卓望数码技术(深圳)有限公司 Graph dragging automatic adsorption alignment method and device, computer equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399696A (en) * 2013-08-16 2013-11-20 上海合合信息科技发展有限公司 Method and device for adsorbing straight lines/ line segments, and method and device for structuring polygon
CN103400387A (en) * 2013-08-06 2013-11-20 上海合合信息科技发展有限公司 Method and device for adsorbing line segment in image, as well as method and device for constructing polygon
US20160246468A1 (en) * 2015-02-25 2016-08-25 Environmental Systems Research Institute (ESRI) Systems and methods for smart cartography
CN107798715A (en) * 2017-10-19 2018-03-13 广州视睿电子科技有限公司 Alignment adsorption method, device, computer equipment and the storage medium of solid figure
CN109191547A (en) * 2018-08-20 2019-01-11 广州视源电子科技股份有限公司 element adsorption method, device, equipment and storage medium
CN109240561A (en) * 2018-08-20 2019-01-18 广州视源电子科技股份有限公司 Rotate the absorbing elements selection method and device, Rotary adsorption method of element

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103400387A (en) * 2013-08-06 2013-11-20 上海合合信息科技发展有限公司 Method and device for adsorbing line segment in image, as well as method and device for constructing polygon
CN103399696A (en) * 2013-08-16 2013-11-20 上海合合信息科技发展有限公司 Method and device for adsorbing straight lines/ line segments, and method and device for structuring polygon
US20160246468A1 (en) * 2015-02-25 2016-08-25 Environmental Systems Research Institute (ESRI) Systems and methods for smart cartography
CN107798715A (en) * 2017-10-19 2018-03-13 广州视睿电子科技有限公司 Alignment adsorption method, device, computer equipment and the storage medium of solid figure
CN109191547A (en) * 2018-08-20 2019-01-11 广州视源电子科技股份有限公司 element adsorption method, device, equipment and storage medium
CN109240561A (en) * 2018-08-20 2019-01-18 广州视源电子科技股份有限公司 Rotate the absorbing elements selection method and device, Rotary adsorption method of element

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111550015A (en) * 2020-04-30 2020-08-18 广东三维家信息科技有限公司 Automatic adsorption method and device for entities in home design system and electronic equipment
CN112764654A (en) * 2021-01-29 2021-05-07 北京达佳互联信息技术有限公司 Component adsorption operation method and device, terminal and storage medium
CN114579238A (en) * 2022-02-28 2022-06-03 天翼安全科技有限公司 Primitive alignment method, device and equipment
CN114816192A (en) * 2022-04-28 2022-07-29 卓望数码技术(深圳)有限公司 Graph dragging automatic adsorption alignment method and device, computer equipment and medium

Similar Documents

Publication Publication Date Title
CN111352545A (en) Automatic adsorption method of interactive service and related equipment
US11687233B2 (en) Handwriting processing method, touch display device, computer device and storage medium
CN109407954B (en) Writing track erasing method and system
CN107273002B (en) Handwriting input answering method, terminal and computer readable storage medium
CN110321054B (en) Writing brush handwriting drawing method, device, equipment and readable storage medium
CN109191547B (en) Element adsorption method, device, apparatus and storage medium
CN108304132B (en) Graph display method, device, equipment and storage medium
US10013156B2 (en) Information processing apparatus, information processing method, and computer-readable recording medium
US8542199B2 (en) Image processing apparatus, image processing method, and program
CN103530117A (en) Method and device for adapting to screens, of different sizes, of mobile terminals
CN103049136B (en) Based on two plate interaction realizing methods of electronic whiteboard
CN106723987A (en) Intelligent platform
CN111580687B (en) Data processing method and device and intelligent interaction equipment
CN106445386A (en) Handwriting display method and device
CN101763234A (en) Method and device for simulating various screen resolutions
CN114827718B (en) Method and device for self-adaptive alignment display of real-time video screen-combination characters in cloud conference
CN104882033A (en) Interactive electronic plate device and method for effectively using electronic teaching resource
CN114138165B (en) Pattern recognition method, apparatus, device and storage medium
WO2019033657A1 (en) Board-writing displaying method, device and apparatus, and computer-readable storage medium
CN107229439A (en) A kind of method and device for showing picture
US20120169759A1 (en) Method and apparatus for creating a live artistic sketch of an image
CN105227882A (en) A kind of display packing and corresponding intrument
CN103049135A (en) Double-board splicing implementation method on basis of electronic white boards
CN103236042A (en) Self-adaptive picture processing method and device
CN112711389A (en) Multi-terminal screen-loading method, device and equipment applied to electronic whiteboard

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200630