Terminal interaction method, device, equipment and storage medium

Through point cloud map splicing and position conversion between terminals, the problem of multi-user interaction is solved, interaction efficiency is improved and immersion is enhanced.

CN113886510BActive Publication Date: 2024-08-23PENG CHENG LAB
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111097732.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-18
Publication Date
2024-08-23
Estimated Expiration
2041-09-18

AI Technical Summary

Technical Problem

Existing technology cannot realize virtual object interaction between multiple users, limiting the efficiency of interaction between users.

Method used

By obtaining the point cloud map of each terminal, performing splicing and position conversion, a point cloud splicing map is generated, and the position conversion data is used to control the terminal to interact in the splicing map to achieve collaborative operation of multiple terminals.

Benefits of technology

It realizes the interaction between multiple terminals, improves the efficiency of interaction between users, and enhances the reality and immersion of virtual objects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113886510B
    Figure CN113886510B
Patent Text Reader

Abstract

The present invention relates to the field of terminal interaction, and specifically to a terminal interaction method, device, equipment and storage medium. The present invention obtains a complete point cloud splicing map by splicing together the point cloud maps corresponding to the various terminals. The point cloud maps after splicing still maintain their own independent coordinate systems, but the position conversion data information between the point clouds can be obtained through the position of each point cloud map in the point cloud splicing map, so that the points on the two point cloud maps correspond one to one. Then, one of the terminals can operate on the other point cloud map according to the position conversion data information in the point cloud map where it is located, and similarly, the other terminal can also operate on the point cloud map where its terminal is located, so as to realize the interaction of multiple terminals. Multi-terminal interaction can improve the interaction efficiency between users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of terminal interaction, and in particular to a terminal interaction method, device, equipment and storage medium. Background Art

[0002] Point cloud maps are maps composed of points that carry real environment information. Users operate virtual objects in point cloud maps through terminals to achieve interaction between users and virtual objects. During the interaction, feedback is given to users for various operations on virtual objects. Users perform further operations on virtual objects based on the feedback results. Through the above operations, users can feel that virtual objects are real, vivid, imaginative, interactive and controllable. Since point cloud maps can be point cloud maps formed by the real environment where users are located, the above interactions make virtual objects appear like part of the real environment, thereby enhancing the real environment, thereby strengthening users' feelings and experience, and creating a sense of reality, presence and immersion for users.

[0003] The above interaction is limited to one user interacting through one terminal, and multiple users cannot operate the virtual object together.

[0004] In summary, the existing technology cannot realize multi-user interaction.

[0005] Therefore, the prior art still needs to be improved and enhanced. Summary of the invention

[0006] In order to solve the above technical problems, the present invention provides a terminal interaction method, device, equipment and storage medium, which solves the problem that the prior art cannot realize multi-user interaction.

[0007] To achieve the above object, the present invention adopts the following technical solutions:

[0008] In a first aspect, the present invention provides a terminal interaction method, which includes:

[0009] Obtain each point cloud map corresponding to each terminal;

[0010] Splicing the point cloud maps corresponding to the terminals to obtain a spliced ​​point cloud map;

[0011] According to each of the point cloud maps and the point cloud stitching map, position conversion data information between each of the point cloud maps is obtained;

[0012] Based on the position conversion data information, each of the terminals is controlled to interact in the point cloud stitching map.

[0013] In one implementation, the step of stitching the point cloud maps corresponding to the terminals to obtain a stitched point cloud map includes:

[0014] According to each of the point cloud maps, characteristic information corresponding to each of the point cloud maps is obtained;

[0015] The point cloud maps are spliced ​​according to the feature information corresponding to each point cloud map to obtain a point cloud splicing map.

[0016] In one implementation, obtaining feature information corresponding to each of the point cloud maps based on each of the point cloud maps includes:

[0017] According to each of the point cloud maps, obtaining the point cloud density corresponding to each of the point cloud maps;

[0018] When the point cloud density is less than a set value, feature information corresponding to each point cloud map is obtained based on the point clouds in each point cloud map.

[0019] In one implementation, obtaining feature information corresponding to each of the point cloud maps based on each of the point cloud maps includes:

[0020] According to each of the point cloud maps, obtaining the point cloud density corresponding to each of the point cloud maps;

[0021] When the point cloud density is greater than or equal to a set value, a feature extraction algorithm is applied to each of the point cloud maps to extract feature point clouds, so as to obtain key point clouds corresponding to each of the point cloud maps;

[0022] Based on the key point cloud, feature information corresponding to each point cloud map is obtained.

[0023] In one implementation, the step of splicing the point cloud maps according to the feature information corresponding to each point cloud map to obtain a point cloud splicing map includes:

[0024] According to the feature information corresponding to each of the point cloud maps, a feature value of the feature information corresponding to each of the point cloud maps is obtained;

[0025] According to the characteristic value, each of the point cloud maps is positionally transformed, and the point cloud map after the position transformation is recorded as a point cloud coarse transformation map;

[0026] Calculating the distances between points in each of the point cloud coarse transformation maps;

[0027] According to the distance, each of the point cloud rough transformation maps is transformed in position to obtain the point cloud splicing map.

[0028] In one implementation, performing position transformation on each of the point cloud maps according to the feature value, and recording the point cloud map after the position transformation as a point cloud coarse transformation map, includes:

[0029] According to the eigenvalues, a random sampling consensus algorithm is applied to each of the point cloud maps to perform position transformation, so as to obtain a point cloud coarse transformation map corresponding to each of the point cloud maps.

[0030] In one implementation, performing position transformation on each of the point cloud rough transformation maps according to the distance to obtain the point cloud splicing map includes:

[0031] According to the distance, the sum of the distances between all points in the point cloud coarse transformation map in the distance is obtained;

[0032] According to the sum of distances between all points in each of the rough transformed point cloud maps, each of the rough transformed point cloud maps is transformed in position until the sum of the distances is a minimum value, thereby obtaining the point cloud spliced ​​map.

[0033] In one implementation, obtaining position conversion data information between each of the point cloud maps based on each of the point cloud maps and the point cloud stitching map includes:

[0034] According to each of the point cloud maps and the point cloud stitching map, coordinate transformation information of each of the point cloud maps relative to the point cloud stitching map is obtained;

[0035] According to the coordinate transformation information of each of the point cloud maps relative to the point cloud stitching map, the coordinate transformation information between each of the point cloud maps in the position conversion data information is obtained.

[0036] In one implementation, the step of obtaining each point cloud map corresponding to each terminal includes:

[0037] Acquiring, through each of the terminals, a real image of the environment in which each of the terminals is located;

[0038] Based on the real image, a point cloud map of the environment where each terminal is located is constructed.

[0039] In one implementation, controlling each of the terminals to interact in the point cloud stitching map according to the position conversion data information includes:

[0040] According to the point cloud stitching map, a point cloud environment stitching map in the point cloud stitching map is obtained, wherein the point cloud environment stitching map is a map obtained by stitching point cloud maps of the environments where the terminals are located;

[0041] Obtaining a target model through each of the terminals;

[0042] Placing the target model in the point cloud environment mosaic map;

[0043] According to the position conversion data information, each of the terminals is controlled to perform interactive operations on the target model in the point cloud environment stitching map.

[0044] In a second aspect, an embodiment of the present invention further provides a device for a terminal interaction method, wherein the device includes the following components:

[0045] The point cloud map acquisition module is used to obtain each point cloud map corresponding to each terminal;

[0046] A splicing module, used for splicing the point cloud maps corresponding to the terminals to obtain a spliced ​​point cloud map;

[0047] A position conversion module, used for obtaining position conversion data information between each of the point cloud maps according to each of the point cloud maps and the point cloud splicing map;

[0048] The interaction module is used to control each of the terminals to interact in the point cloud stitching map according to the position conversion data information.

[0049] In a third aspect, an embodiment of the present invention further provides a terminal device, wherein the terminal device comprises a memory, a processor, and a terminal interaction program stored in the memory and executable on the processor, and when the processor executes the terminal interaction program, the steps of the terminal interaction method described above are implemented.

[0050] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a terminal interaction program is stored, and when the terminal interaction program is executed by a processor, the steps of the terminal interaction method described above are implemented.

[0051] Beneficial effect: The present invention obtains a complete point cloud splicing map by splicing together the point cloud maps corresponding to the various terminals. The point cloud maps after splicing still maintain their own independent coordinate systems, but the position conversion data information between the point clouds can be obtained through the position of each point cloud map in the point cloud splicing map, so that the points on the two point cloud maps correspond one to one. Then, one of the terminals can operate the other point cloud map according to the position conversion data information in the point cloud map where it is located, and similarly, the other terminal can also operate the point cloud map where its terminal is located, so as to realize the interaction of multiple terminals. Multi-terminal interaction can improve the interaction efficiency between users. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 It is the overall flow chart of the present invention;

[0053] Figure 2 It is a schematic diagram of the FREAK sampling model of the present invention;

[0054] Figure 3 The sparse point cloud map of the present invention;

[0055] Figure 4 It is a schematic diagram of the corresponding FPFH features in the extracted point cloud map of the present invention;

[0056] Figure 5 The point cloud splicing map of the present invention;

[0057] Figure 6 A flow chart of interaction between two clients of the present invention;

[0058] Figure 7 This is a block diagram of the internal structure principle of the terminal device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0059] The following is a clear and complete description of the technical solution of the present invention in combination with the embodiments and the accompanying drawings. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0060] Research has found that point cloud maps are maps composed of points that carry real environment information. Users operate virtual objects in point cloud maps through terminals to achieve interaction between users and virtual objects. In the process of interaction, feedback is given to users for various operations performed on virtual objects. Users perform further operations on virtual objects based on the feedback results. Through the above operations, users have a real, vivid, imaginative, interactive and controllable feeling about virtual objects. Since the point cloud map can be a point cloud map formed by the real environment where the user is located, the above interaction makes the virtual object appear to be part of the real environment, thereby enhancing the real environment, thereby strengthening the user's feelings and experience, and creating a sense of reality, presence and immersion for the user.

[0061] The above interaction is limited to one user interacting through one terminal, and multiple users cannot operate the virtual object together.

[0062] In order to solve the above technical problems, the present invention provides a terminal interaction method, device, equipment and storage medium, which solves the problem that the prior art cannot realize multi-user interaction. In specific implementation, the point cloud map corresponding to each device is first obtained, and then each point cloud map is spliced ​​to obtain a point cloud splicing map. After obtaining the point cloud splicing map, the position conversion data information between each point cloud map is also obtained. Finally, the position conversion data information is used to control each terminal to interact in the point cloud splicing map. The present invention can realize the interaction of multiple terminals, and multi-terminal interaction can improve the interaction efficiency between users.

[0063] For example, there are two users, each holding a terminal. First, the point cloud maps A and B in the two terminals are obtained, and then the two point cloud maps are spliced ​​together through an image matching algorithm to obtain a point cloud splicing map C, and the point cloud splicing map C is presented to the two user terminals at the same time. When the point cloud splicing map C is obtained, the coordinate conversion relationship (position conversion data information) between the point cloud map A and the point cloud map B is also obtained. For example, the coordinates corresponding to a point a in the point cloud map A are (a1, a2, a3), and the user terminal corresponding to the point cloud map B does not know the coordinates of point a in the coordinate system of the point cloud map B. However, this embodiment has obtained the coordinate conversion relationship between the point cloud map A and the point cloud map B, and the coordinates of point a in the coordinate system of the point cloud map B can be obtained through the coordinate conversion relationship, so that the user terminal B can perform corresponding operations on point a.

[0064] Exemplary Methods

[0065] A terminal interaction method of this embodiment can be applied to products with image playback functions, such as televisions, computers, etc. Figure 1 As shown in , the terminal interaction method specifically includes the following steps:

[0066] S100, obtaining each point cloud map corresponding to each terminal.

[0067] The point cloud map can be a point cloud map stored in the terminal, or a point cloud map formed by extracting feature points from an image of the user's surrounding environment captured by the terminal. Whether it is a point cloud map stored internally or a point cloud map formed by an image, each point cloud map has the same parts, and only with the same parts can the subsequent splicing be completed.

[0068] When the point cloud map is an image of the surrounding environment, the process of each terminal device constructing a point cloud map through the image is as follows:

[0069] First, multiple continuous frame images of the environment are captured and stored. Then, based on the ORB (Oriented FAST and Rotated BRIEF)-FREAK (Fast Retina Keypoint) features, the points are distinguished to determine whether the feature points in the subsequent frames are new feature points that have not been recorded, or the latest estimates of historical feature points. Since continuous frame images are acquired, some feature points have already appeared in the previous frame image. If the same feature points are used to construct a point cloud map, data redundancy will be caused and the amount of calculation will increase. Therefore, this embodiment uses ORB-FREAK to obtain feature points in the image while removing redundant feature points. The specific principles of the ORB-FREAK algorithm are as follows:

[0070] The ORB-FREAK feature uses the same Oriented FAST method as ORB to find features, and uses the FREAK method for feature description instead of the BRIEF method of the classic ORB.

[0071] Oriented FAST solves the scale invariance through the image pyramid method on the basis of FAST, and solves the rotation invariance through the method of centroid calibration direction. For an image block, this method defines the moment of the image block:

[0072]

[0073] Among them, m pq is the (p+q)-order spatial moment in the image block, I(x,y) is the pixel density function at the two-dimensional coordinate (x,y) on the image, when p=0,q=0, the 0th-order moment m of the image block can be obtained. 00 , the physical meaning is the area of ​​the region. When p = 1, q = 0 and p = 0, q = 1, the first-order spatial moment m can be obtained. 10 and m 01 , the centroid C of the image block can be expressed as

[0074]

[0075] Construct a vector from the corner point O to the centroid C, then the direction of the image patch can be defined as

[0076] θ=atan2(m 10 , m 01 ) (3)

[0077] The FREAK descriptor simulates the human retina model to build a sampling model, such as Figure 2, the center of each circle represents a sampling point, and the circle represents the receptive field of the point, which is smoothed using a Gaussian kernel. The farther away from the center of the image, the larger the radius of the Gaussian kernel, and there are overlapping areas between the receptive fields of the sampling points. In order to estimate the rotation of the key points, FREAK calculates the global direction by using the local gradient of the long pair and the symmetric receptive field about the center, which can achieve rotation invariance, that is, even if the current frame image collected has rotated relative to the previous frame image, the feature points of the current frame image can still be extracted, and the feature points of the current frame image will not overlap with the feature points of the previous frame image.

[0078] The FREAK descriptor is a binary bit string describing the substring F:

[0079]

[0080] P a is the corresponding receptive field, N is the length of the descriptor, T(P a ) is the binary test bit.

[0081]

[0082] and YesP a The first and second receptive field smoothing strengths can then be used to perform FREAK descriptor matching using methods such as the Hamming distance. For point cloud information obtained from the underlying interface, the ORB-FREAK feature is used to obtain the F of the point to determine whether the point is a new feature point or the latest estimate of a historical feature point. The points of the surrounding environment image are extracted through ORB-FREAK, and these points are used to form the following Figure 3 The sparse point cloud shown is further processed to obtain the point cloud map of this embodiment.

[0083] The point cloud map is constructed by using the real images in the above real environment, and when the user interacts on the point cloud map, it can provide the user with the feeling of augmented reality (AR). Augmented reality technology aims to integrate the virtual environment generated by the computer with the real environment, so that the user can have a real, vivid, imaginative, interactive and controllable feeling about the augmented reality environment. AR includes a system with three basic features: virtual-real fusion, real-time interaction and three-dimensional registration. Virtual-real fusion is to make the virtual environment appear like a part of the real environment, so as to enhance the real environment and strengthen the user's feelings and experience; real-time interaction means that the system can provide natural and real-time feedback for various behaviors of the user in the augmented reality environment. If there is a large delay in the interaction, it will seriously reduce the user's sense of participation and affect their perception ability. In this embodiment, removing repeated points in multiple frames of images can improve the efficiency of subsequent map stitching, thereby reducing the delay of interaction; the goal of three-dimensional registration is to accurately match the virtual environment information to the real environment to create a sense of reality, presence and immersion.

[0084] This embodiment takes into account the positioning information of the real environment and the characteristics of the real environment (SLAM) when constructing a point cloud map based on a real image. SLAM refers to the device tracking its position in the map while constructing or updating an unknown environment map. This technology is a research hotspot in the field of computer vision. Among them, visual SLAM has received more attention due to its low cost and wide application range, but this type of method is too dependent on the characteristic information of the surrounding environment and cannot handle the situation of missing scene texture and dynamic scenes. The inertial measurement unit (IMU) can measure the angular velocity and acceleration of the sensor itself, which has obvious complementarity with the visual sensor and is currently widely equipped on mobile devices. The visual inertial SLAM solution is suitable for application in the three-dimensional registration module of augmented reality applications.

[0085] S200, stitching the point cloud maps corresponding to the terminals to obtain a stitched point cloud map.

[0086] When the point cloud map is spliced ​​in this embodiment, according to the point cloud density of the point cloud map, it is divided into directly using the pre-processed point cloud to splice the point cloud map and further processing the pre-processed point cloud before splicing the point cloud map. The following describes the detailed process of further processing the pre-processed point cloud before splicing the point cloud map when the point cloud density is greater than or equal to the set value, including the following steps S201, S202, S203, S204, S205, S206:

[0087] S201, applying a feature extraction algorithm to each of the point cloud maps to extract feature point clouds, and obtaining key point clouds corresponding to each of the point cloud maps.

[0088] When the image captured by the terminal is a large scene image, that is, the number of pixels in the image is large, ISS (Intrinsic Shape Signatures) key points can be extracted, and ISS key points can further abstract the features of the point cloud. The process of extracting key point clouds through ISS is as follows:

[0089] ISS is a feature point extraction method based on eigenvalue analysis. i have

[0090] S i ={F i , f i} (6)

[0091] where f i Indicates the intrinsic shape features, which are independent of the viewpoint. Here, the intrinsic refers to the features of the points in the ellipsoid around the point cloud. The ellipsoid is related to the covariance matrix of the point and its neighboring points. The size of the eigenvalue is actually the length of the ellipsoid axis. The shape of the ellipsoid is an abstract summary of the distribution state of the neighboring points. i have

[0092]

[0093] p i represents the position of the point itself, is the shape descriptor of a point.

[0094] S202: Obtain feature information corresponding to each point cloud map based on the key point cloud.

[0095] This embodiment uses the key point cloud to obtain the area of ​​the key point cloud in the point cloud map, and then calculates the feature histogram (FPFH) of the area. The information corresponding to the feature histogram is the feature information corresponding to the point cloud map of this embodiment. The principle of the feature histogram (FPFH) is introduced below:

[0096] The PFH (Point Feature Histogram) feature distribution histogram obtains geometric information around the point by analyzing the difference between the directions of nearby normals. The algorithm pairs all points near the target point (not only the selected key point with its neighboring points, but also the neighboring points with themselves). Then for each pair, a fixed coordinate system is calculated based on their normals. Based on this approach, the difference between normals can be encoded in variables of 3 angles. These variables are saved together with the Euclidean distance between the points, and then divided into histograms after all pairs are calculated.

[0097] FHFP is an accelerated version of PFH. It only considers the direct connection between the current key point and the neighboring points, removes the extra links between the neighboring points, and obtains a SPFH (Simplified Point Feature Histogram). The next step is to redetermine the k-neighborhood of each point and use the neighboring SPFH values ​​to weightedly calculate the final FPFH histogram.

[0098]

[0099] In this embodiment, FHFP is used. Compared with PFH, the time complexity is O(nk 2 ) is reduced to O(nk), such as Figure 4 The figure shows the characteristic information of the point cloud map obtained by using FHFP in this embodiment.

[0100] S203: Obtaining feature values ​​of the feature information corresponding to each point cloud map according to the feature information corresponding to each point cloud map.

[0101] The feature histogram (FPFH) obtained in step S202 contains multiple feature values ​​of the point cloud, from which representative feature values ​​are selected, such as the pixel mean of the point cloud.

[0102] S204, based on the eigenvalues, positionally transforming each of the point cloud maps, and recording the point cloud maps after the position transformation as point cloud coarse transformation maps, including: based on the eigenvalues, applying a random sampling consensus algorithm to positionally transform each of the point cloud maps, to obtain point cloud coarse transformation maps corresponding to each of the point cloud maps.

[0103] This embodiment uses RANSAC (random sampling consensus algorithm for point cloud maps) to complete the matching and splicing of two or more point cloud maps based on eigenvalues. The RANSAC principle is as follows:

[0104] RANSAC achieves coarse matching and splicing between point cloud maps by repeating the following steps:

[0105] (1) Randomly select two or more points in the point cloud map that match the eigenvalues ​​and use these points as a random subset of the original data, and consider this subset to be the hypothesized inliers.

[0106] (2) Choose a hypothetical model that makes all points in (1) considered as inliers.

[0107] (3) Test all other data against the model in (2). Points that fit the model well, according to some model-specific loss function, are considered part of the consensus set.

[0108] (4) If enough points have been classified as part of the consensus set, the estimated model is appropriate.

[0109] (5) Improve the model by reestimating the model using all members of the consensus set.

[0110] This process will be repeated a given number of times, each time generating a new hypothesis model. If its consensus set is larger than the previously saved model, the refined model will be retained and the above steps will be repeated to complete the coarse matching stitching of the point cloud map.

[0111] The essence of RANSAC is to find parts with the same or similar feature values ​​in two point cloud maps, and then splice the same or similar parts in the two point cloud maps to obtain a point cloud coarse matching splicing map.

[0112] S205, calculating the distances between the points in the point cloud coarse transformation map.

[0113] S206, based on the distance, performing a position transformation on each of the point cloud coarse transformation maps to obtain the point cloud spliced ​​map, including: based on the distance, obtaining the sum of the distances between all points in each of the point cloud coarse transformation maps in the distance; based on the sum of the distances between all points in each of the point cloud coarse transformation maps, performing a position transformation on each of the point cloud coarse transformation maps until the sum of the distances is a minimum value, thereby obtaining the point cloud spliced ​​map.

[0114] The essence of steps S205 and S206 is to use the ICP algorithm to perform position transformation on the point cloud rough transformation map to complete the precise matching and splicing of the point cloud map, and finally obtain the point cloud splicing map required by this embodiment. The specific process is as follows:

[0115] The ICP algorithm finds the nearest point (p) in the target point cloud P and the source point cloud Q to be matched (i.e., in two point cloud maps, the points in one point cloud map are used as the target point cloud, and the points in the other point cloud map are used as the source point cloud) according to certain constraints. i ,q i )Then calculate the optimal matching parameters R and t to minimize the error function E(R,t).

[0116]

[0117] Where n is the number of nearest neighbor pairs, p i is a point in the target point cloud P, q i is the source point cloud Q and p i The corresponding nearest point, R is the rotation matrix, and t is the translation vector.

[0118] The ICP algorithm steps are as follows:

[0119] (1) Select point set p from the target point cloud P i ∈P;

[0120] (2) Find the corresponding point set q in the source point cloud Q i ∈Q, such that ||q i -p i ||min;

[0121] (3) Calculate the rotation matrix R and the translation matrix t so that the error function is minimized (in this embodiment, by rotating and translating each point cloud coarse transformation map, the value of the error function after each rotation and translation is calculated, and the position corresponding to each point cloud coarse transformation map corresponding to the minimum value among these values ​​is found. This position is the position that needs to be aligned between the point cloud coarse transformation maps for precise matching and splicing);

[0122] (4) For p i Use the rotation matrix R and translation matrix t obtained in the previous step to perform rotation and translation transformations to obtain a new set of corresponding points:

[0123] p′ i = {p′ i =Rp′ i +t,p i ∈P}

[0124] (5) Calculate p′ i and the corresponding point set q i The average distance

[0125]

[0126] (6) If d is less than a given threshold or greater than the preset maximum number of iterations, the iterative calculation is stopped, otherwise it returns to the second step until the convergence condition is met, and the required point cloud splicing map (i.e., the map after precise matching and splicing of each point cloud map) is obtained. The point cloud splicing map obtained by S201, S202, S203, S204, S205, and S206 is as follows: Figure 5 shown.

[0127] When the surrounding environment images captured by each terminal correspond to a small scene and the number of pixels in the image is small, it is sufficient to replace the key point cloud in step S201 with the point cloud after preprocessing, that is, it is not necessary to extract the key point cloud in the point cloud map. Similarly, S201, S202, S203, S204, S205, and S206 can be performed to stitch the point cloud map of the small scene.

[0128] The reason why this embodiment uses different methods to obtain the point cloud mosaic map according to the size of the scene is that for larger scenes, using the ISS key point cloud as subsequent input can greatly improve the matching speed while losing very little matching accuracy. Table 1 shows the time required with and without the key point cloud. However, for smaller scenes, if the key point cloud is used, mismatching is likely to occur.

[0129] Table 1

[0130] Time(ms) MSE WithoutISS 6093 0.1322 ISS 464 0.2107

[0131] For example, terminal one and terminal two obtain point cloud map A and point cloud map B respectively. First, the feature information of point cloud map A is calculated, and the feature information of point cloud map B is also calculated. The positions where the feature information in the two point cloud maps matches are spliced ​​together to obtain a coarse matching spliced ​​point cloud map. Then, the distance between any point in point cloud map A and any point in point cloud map B in the coarse matching spliced ​​point cloud map is calculated. After rotating and translating the two point cloud maps, the distance is calculated again, and the positions of the two point cloud maps corresponding to the minimum distance are found among all distances. At this time, it is a point cloud splicing map formed by the precise matching of the two point cloud maps.

[0132] S300, obtaining position conversion data information between each of the point cloud maps according to each of the point cloud maps and the point cloud stitching map.

[0133] The position conversion data information of this embodiment is the relative coordinate information between each point cloud map.

[0134] S400, based on the position conversion data information, control each of the terminals to interact in the point cloud stitching map. This includes: based on the point cloud stitching map, obtaining a point cloud environment stitching map in the point cloud stitching map, wherein the point cloud environment stitching map is a map obtained by stitching point cloud maps of the environment where each of the terminals is located; obtaining a target model through each of the terminals; placing the target model in the point cloud environment stitching map; based on the position conversion data information, controlling each of the terminals to perform interactive operations on the target model in the point cloud environment stitching map

[0135] For example, a point cloud stitching map is composed of point cloud map A and point cloud map B. One terminal user places a target model in point cloud map A. Since the coordinate systems of point cloud map A and point cloud map B are not unified, after the two point cloud maps are stitched together, the coordinate position of the target model in point cloud map A is known. Combined with the position conversion data information between the two point cloud maps, the coordinate position of the target model in the coordinate system of point cloud map B can be known, and the other terminal user can directly manipulate the target model.

[0136] The following takes two clients (user terminals) as an example to illustrate the process of multiple user terminals interacting with each other in the present invention:

[0137] like Figure 6 As shown, for both client a and client b, sparse point cloud maps are first constructed, and then the sparse point cloud maps of client a and client b are preprocessed, and then the ISS key points are extracted, and the FPFH features of the key point area are calculated. Finally, RANSAC coarse matching and ICP fine matching are performed in sequence according to the FPFH features to obtain a point cloud stitching map, and then the coordinate system association information between the two sparse point cloud maps is obtained according to the point cloud stitching map, and the coordinate system association information is fed back to client a and client b.

[0138] In the process of performing the above operations, the device posture of client a and client b is bound to the rendering camera. When client a and client b rotate or move, the virtual image presented by the rendering camera will also rotate or move accordingly, so that the user will have the idea of ​​"as if it really exists in the real world". In order to achieve this goal, the device posture in the real world must be obtained, and the angle of the object displayed on the virtual screen is related to the rendering camera posture, so the two need to be bound together, and the rendering camera posture moves with the device posture. At the same time, users can also take real images through the camera and then place virtual objects in the real image. Because the virtual image is determined by the relative position of the virtual object and the rendering camera, there will be no sudden changes in the image. Users can dynamically load external models packaged by AssetBundle and place them in the real image scene by touching. The virtual object posture is associated with the information of the three-dimensional registration points around the placement target point, rather than being placed in the absolute position in the virtual coordinates. It is updated synchronously with the device posture estimation to achieve a better anchoring effect. Users can also interact with virtual objects through gestures such as translation, rotation, and scaling.

[0139] After both client a and client b place the virtual object at the designated location, client a performs the corresponding operation on the virtual object, and client b can also see the state change of the virtual object after the operation, or client a and client b can operate the virtual object synchronously to achieve multi-person information synchronization. The synchronization method between clients adopts a hybrid method. For user operations, the frame synchronization method is used, that is, the server broadcasts the instructions of the operator, and all clients use the same input to obtain the same output. However, during the test, the local user's operation does not follow the hand. Considering the purpose of this system, the time consistency requirement is not very high. The local user will be allowed to directly execute the instruction after the operation instruction is issued, but will no longer accept the subsequent broadcast of the instruction. In this way, the operation smoothness of the local user is guaranteed to a certain extent. For the subsequent state of the virtual object, the state synchronization method is used, that is, the server will broadcast the virtual object state regularly to avoid packet loss in some clients, resulting in operation defects. At the same time, in order to reduce the situation where the movement of the object being manipulated is too abrupt due to the large time interval of state synchronization, interpolation processing is performed locally on the client, that is, after receiving the target value, it will gradually approach the target value in subsequent frames until the difference is less than the criterion, optimizing the performance of the client.

[0140] In summary, the present invention obtains a complete point cloud stitching map by stitching together the point cloud maps corresponding to the various terminals. After stitching, the point cloud maps still maintain their own independent coordinate systems, but the position conversion data information between the point clouds can be obtained through the position of each point cloud map in the point cloud stitching map, so that the points on the two point cloud maps correspond one to one. Then, one of the terminals can operate the other point cloud map according to the position conversion data information in the point cloud map where it is located, and similarly, the other terminal can also operate the point cloud map where its terminal is located, so as to realize the interaction of multiple terminals. Multi-terminal interaction can improve the interaction efficiency between users.

[0141] Exemplary Devices

[0142] This embodiment also provides a terminal interaction method device, the device comprising the following components:

[0143] The point cloud map acquisition module is used to obtain each point cloud map corresponding to each terminal;

[0144] A splicing module, used for splicing the point cloud maps corresponding to the terminals to obtain a spliced ​​point cloud map;

[0145] A position conversion module, used for obtaining position conversion data information between each of the point cloud maps according to the position of each of the point cloud maps in the point cloud stitching map;

[0146] An interaction module is used to control each of the terminals to interact in the point cloud splicing map according to the position conversion data information.

[0147] Based on the above embodiments, the present invention further provides a terminal device, whose principle block diagram can be shown as follows: Figure 7 As shown, the terminal device includes a processor, a memory, a network interface, a display screen, and a temperature sensor connected through a system bus. Among them, the processor of the terminal device is used to provide computing and control capabilities. The memory of the terminal device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the terminal device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a terminal interaction method is implemented. The display screen of the terminal device can be a liquid crystal display screen or an electronic ink display screen, and the temperature sensor of the terminal device is pre-set inside the terminal device to detect the operating temperature of the internal device.

[0148] Those skilled in the art will understand that Figure 7 The principle block diagram shown in the figure is only a block diagram of a partial structure related to the scheme of the present invention, and does not constitute a limitation on the terminal device to which the scheme of the present invention is applied. The specific terminal device may include more or less components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0149] In one embodiment, a terminal device is provided, the terminal device comprising a memory, a processor, and a terminal interaction program stored in the memory and executable on the processor, wherein when the processor executes the terminal interaction program, the following operation instructions are implemented:

[0150] Obtain each point cloud map corresponding to each terminal;

[0151] Splicing the point cloud maps corresponding to the terminals to obtain a spliced ​​point cloud map;

[0152] According to each of the point cloud maps and the point cloud stitching map, position conversion data information between each of the point cloud maps is obtained;

[0153] Based on the position conversion data information, each of the terminals is controlled to interact in the point cloud stitching map.

[0154] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0155] In summary, the present invention discloses a terminal interaction method, device, equipment and storage medium, the method comprising: obtaining each point cloud map corresponding to each terminal; splicing each point cloud map corresponding to each terminal to obtain a spliced ​​point cloud splicing map; obtaining position conversion data information between each point cloud map based on each point cloud map and the point cloud splicing map; and controlling each terminal to interact in the point cloud splicing map based on the position conversion data information. The present invention can realize the interaction of multiple terminals, and multi-terminal interaction can improve the interaction efficiency between users.

[0156] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A terminal interaction method, It is characterized in that include: Obtain each point cloud map corresponding to each terminal, wherein the point cloud map includes a point cloud map located inside the terminal and a point cloud map formed by image feature points, and the image is an environment image taken by the terminal; Splicing the point cloud maps corresponding to the terminals to obtain a spliced ​​point cloud map; According to each of the point cloud maps and the point cloud stitching map, position conversion data information between each of the point cloud maps is obtained; Controlling each of the terminals to interact in the point cloud stitching map according to the position conversion data information; The step of stitching the point cloud maps corresponding to the terminals to obtain a stitched point cloud map includes: According to each of the point cloud maps, characteristic information corresponding to each of the point cloud maps is obtained; According to the feature information corresponding to each of the point cloud maps, each of the point cloud maps is stitched together to obtain a point cloud stitching map; The step of stitching the point cloud maps according to the feature information corresponding to each point cloud map to obtain a point cloud stitching map includes: According to the feature information corresponding to each of the point cloud maps, a feature value of the feature information corresponding to each of the point cloud maps is obtained; According to the characteristic value, each of the point cloud maps is positionally transformed, and the point cloud map after the position transformation is recorded as a point cloud coarse transformation map; Calculating the distances between points in each of the point cloud coarse transformation maps; According to the distance, performing position transformation on each of the rough transformation maps of the point cloud to obtain the spliced ​​point cloud map; The step of performing position transformation on each of the rough transformation point cloud maps according to the distance to obtain the point cloud splicing map includes: According to the distance, the sum of the distances between all points in the point cloud coarse transformation map in the distance is obtained; According to the sum of distances between all points in each of the rough transformed point cloud maps, position transformation is performed on each of the rough transformed point cloud maps until the sum of the distances is a minimum value, thereby obtaining the point cloud spliced ​​map; The obtaining of position conversion data information between each of the point cloud maps based on each of the point cloud maps and the point cloud splicing map includes: According to each of the point cloud maps and the point cloud stitching map, coordinate transformation information of each of the point cloud maps relative to the point cloud stitching map is obtained; Obtaining coordinate transformation information between each of the point cloud maps in the position conversion data information according to coordinate transformation information of each of the point cloud maps relative to the point cloud stitching map; The step of obtaining each point cloud map corresponding to each terminal includes: Acquiring, through each of the terminals, a real image of the environment in which each of the terminals is located; Constructing a point cloud map of the environment where each terminal is located based on the real image; The controlling each of the terminals to interact in the point cloud stitching map according to the position conversion data information includes: According to the point cloud stitching map, a point cloud environment stitching map in the point cloud stitching map is obtained, wherein the point cloud environment stitching map is a map obtained by stitching point cloud maps of the environments where the terminals are located; Obtaining a target model through each of the terminals; Placing the target model in the point cloud environment mosaic map; According to the position conversion data information, each of the terminals is controlled to perform interactive operations on the target model in the point cloud environment stitching map.

2. The terminal interaction method according to claim 1, It is characterized in that The obtaining of feature information corresponding to each of the point cloud maps according to each of the point cloud maps includes: According to each of the point cloud maps, obtaining the point cloud density corresponding to each of the point cloud maps; When the point cloud density is less than a set value, feature information corresponding to each point cloud map is obtained based on the point clouds in each point cloud map.

3. The terminal interaction method according to claim 1, It is characterized in that The obtaining of feature information corresponding to each of the point cloud maps according to each of the point cloud maps includes: According to each of the point cloud maps, obtaining the point cloud density corresponding to each of the point cloud maps; When the point cloud density is greater than or equal to a set value, a feature extraction algorithm is applied to each of the point cloud maps to extract feature point clouds, so as to obtain key point clouds corresponding to each of the point cloud maps; Based on the key point cloud, feature information corresponding to each point cloud map is obtained.

4. The terminal interaction method according to claim 1, It is characterized in that The step of performing position transformation on each of the point cloud maps according to the feature value, and recording the point cloud map after the position transformation as a point cloud rough transformation map, includes: According to the eigenvalues, a random sampling consensus algorithm is applied to each of the point cloud maps to perform position transformation, so as to obtain a point cloud coarse transformation map corresponding to each of the point cloud maps.

5. A terminal interaction method and device, It is characterized in that The device comprises the following components: The point cloud map acquisition module is used to obtain each point cloud map corresponding to each terminal; A splicing module, used for splicing the point cloud maps corresponding to the terminals to obtain a spliced ​​point cloud map; A position conversion module, used for obtaining position conversion data information between each of the point cloud maps according to each of the point cloud maps and the point cloud splicing map; An interaction module, used for controlling each of the terminals to interact in the point cloud stitching map according to the position conversion data information; The step of stitching the point cloud maps corresponding to the terminals to obtain a stitched point cloud map includes: According to each of the point cloud maps, characteristic information corresponding to each of the point cloud maps is obtained; According to the feature information corresponding to each of the point cloud maps, each of the point cloud maps is stitched together to obtain a point cloud stitching map; The step of stitching the point cloud maps according to the feature information corresponding to each point cloud map to obtain a point cloud stitching map includes: According to the feature information corresponding to each of the point cloud maps, a feature value of the feature information corresponding to each of the point cloud maps is obtained; According to the characteristic value, each of the point cloud maps is positionally transformed, and the point cloud map after the position transformation is recorded as a point cloud coarse transformation map; Calculating the distances between points in each of the point cloud coarse transformation maps; According to the distance, performing position transformation on each of the rough transformation maps of the point cloud to obtain the spliced ​​point cloud map; The step of performing position transformation on each of the rough transformation point cloud maps according to the distance to obtain the point cloud splicing map includes: According to the distance, the sum of the distances between all points in the point cloud coarse transformation map in the distance is obtained; According to the sum of distances between all points in each of the rough transformed point cloud maps, position transformation is performed on each of the rough transformed point cloud maps until the sum of the distances is a minimum value, thereby obtaining the point cloud spliced ​​map; The obtaining of position conversion data information between each of the point cloud maps based on each of the point cloud maps and the point cloud splicing map includes: According to each of the point cloud maps and the point cloud stitching map, coordinate transformation information of each of the point cloud maps relative to the point cloud stitching map is obtained; Obtaining coordinate transformation information between each of the point cloud maps in the position conversion data information according to coordinate transformation information of each of the point cloud maps relative to the point cloud stitching map; The step of obtaining each point cloud map corresponding to each terminal includes: Acquiring, through each of the terminals, a real image of the environment in which each of the terminals is located; Constructing a point cloud map of the environment where each terminal is located based on the real image; The controlling each of the terminals to interact in the point cloud stitching map according to the position conversion data information includes: According to the point cloud stitching map, a point cloud environment stitching map in the point cloud stitching map is obtained, wherein the point cloud environment stitching map is a map obtained by stitching point cloud maps of the environments where the terminals are located; Obtaining a target model through each of the terminals; Placing the target model in the point cloud environment mosaic map; According to the position conversion data information, each of the terminals is controlled to perform interactive operations on the target model in the point cloud environment stitching map.

6. A terminal device, It is characterized in that The terminal device includes a memory, a processor, and a terminal interaction program stored in the memory and executable on the processor. When the processor executes the terminal interaction program, the steps of the terminal interaction method according to any one of claims 1 to 4 are implemented.

7. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a terminal interaction program, and when the terminal interaction program is executed by the processor, the steps of the terminal interaction method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Interaction method based on three-dimensional virtual map and figure and system for realizing same

    CN101635705A

  • Target object spatial point cloud feature-based automatic splicing method

    CN108133458A

  • Peer to peer remote localization for devices

    CN111201797A