Method for realizing positioning in no-signal area based on TOF technology
Through TOF technology, TOF cameras are used to record and calculate position information during vehicle movement and generate trajectories, which solves the problem of difficult positioning in environments with no positioning signal or weak signal, achieves a stable positioning method, and reduces the impact of the environment on the positioning method. Influence.
Patent Information
- Application Number
- CN202211022519.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-24
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-08-24
AI Technical Summary
In scenarios where there is no positioning signal or the positioning signal is weak, existing technology cannot perform effective positioning, making it difficult to record and query vehicle parking locations, and wasting a lot of time looking for parking locations.
Using TOF technology, the TOF camera records the initial position information, establishes a coordinate system, obtains pixel point coordinates, calculates the position relationship during movement, generates a movement trajectory, and solves the problem of position recording when the positioning signal is lost.
It achieves stable positioning in environments with no positioning signal or weak signal, reduces the requirements of environmental hardware equipment for positioning methods, improves the stability of calculation results, and avoids the influence of signal fluctuations.
Smart Images

Figure CN115372899B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a method for realizing signal-free area positioning based on TOF technology. Background Art
[0002] Most of the existing positioning technologies are implemented using positioning signals, but positioning signals will weaken or be lost as the environment changes. For example, large underground parking lots currently have no reliable means of recording and querying parking locations. When there is no positioning signal or the positioning signal is weak, there is no reliable means of recording the parking location of the vehicle. Car owners generally rely on their memory to find the parking location, and once they forget, they will waste a lot of time looking for it. Summary of the invention
[0003] The present application proposes a method for realizing signal-free area positioning based on TOF technology, so as to solve the problem that effective positioning cannot be performed in scenarios where there is no positioning signal or the positioning signal is weak.
[0004] The present application provides a method for realizing no-signal area positioning based on TOF technology, comprising the following steps:
[0005] S1 records the initial location information: when the positioning signal is weak or lost, records the relevant location information of the current location;
[0006] S2 obtains the coordinate information of the initial position: when the positioning signal is weak or lost, the coordinate system of the initial position is established through the TOF camera, and the TOF camera is used to take a photo in the direction of movement of the position to obtain the coordinates of the pixel points in the photo in the coordinate system;
[0007] S3 obtains the coordinate information of the next position: when moving to the next position, the coordinate system of the next position is established by the TOF camera, and the TOF camera is used to take a photo in the direction of movement of the position, and the same pixel point in the photo as that obtained at the initial position is found, and the coordinate of the pixel point in the coordinate system of the position is obtained;
[0008] S4 calculates the position information of the next position: by obtaining the coordinates of the same pixel point in the coordinate system of the initial position and the coordinate system of the next position, a change parameter between the coordinate system of the next position and the coordinate system of the initial position is calculated, thereby obtaining a relative position relationship between the next position and the initial position;
[0009] S5 calculates the position information of each position during the movement: repeats steps S3 and S4, and in the process of losing the positioning signal, takes pictures continuously with the TOF camera as the movement proceeds, establishes a coordinate system for each position in turn, and calculates the position relationship between two adjacent positions according to the coordinates of the same pixel points in the corresponding coordinate system in the pictures taken at the two adjacent positions, and obtains the position information of each position;
[0010] S6 generates a motion trajectory during the process of losing the positioning signal: generates a motion trajectory through the initial position information obtained above and the position information of each position.
[0011] In some embodiments, the positioning signal includes a GPS positioning signal.
[0012] In some embodiments, in step S1, the relevant position information includes the GPS position of the current position, the direction of the current movement direction, the horizontal plane direction, and the north direction.
[0013] In some embodiments, at any location, a three-dimensional spatial coordinate system is established by at least three TOF cameras.
[0014] In some embodiments, at any position, a three-dimensional spatial coordinate system is established by four TOF cameras, and the four TOF cameras are respectively located at the origin, X-axis, Y-axis, and Z-axis of the coordinate system.
[0015] In some embodiments, in any coordinate system, coordinates of at least three pixel points are obtained.
[0016] In some embodiments, the change parameters of the coordinate system of two adjacent positions are calculated using a seven-parameter method.
[0017] In some embodiments, the change parameters of the coordinate system of two adjacent positions are calculated through the Bursa seven-parameter coordinate transformation model, and the change parameters include X translation, Y translation, Z translation, X rotation, Y rotation, and Z rotation.
[0018] Compared with the prior art, the beneficial effect of this application is: it solves the problem in the prior art that effective positioning cannot be performed in scenes with no positioning signal or weak positioning signal. The use of TOF camera for positioning calculation has the characteristics of low impact on environmental fluctuations and stable calculation results. Compared with LBS positioning and wifi positioning, this positioning method has lower requirements for environmental hardware equipment conditions (close to 0). BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.
[0020] Figure 1 A flowchart of the positioning method for this application;
[0021] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0022] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0023] Unless otherwise defined, all technical and scientific terms used in this application have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0024] It should be noted that in the prior art, positioning is achieved by receiving positioning signals, such as GPS signals, etc. When the positioning signal is weak or lost, effective positioning cannot be performed. In this embodiment, when the positioning signal is weak or lost, the TOF camera is immediately turned on for positioning, and the position information at the moment when the positioning signal is weak or lost is recorded;
[0025] Each pixel in the photo taken by the TOF camera carries depth information (i.e., the position from the pixel in the photo to the camera), so that the distance from any pixel or image in the photo to the camera can be obtained. Therefore, in the process of weak or lost signal, as the movement proceeds, the TOF camera takes continuous photos, and each photo corresponds to a position in the movement process. Since the interval between photos is short enough, the photos taken at two adjacent positions must include the same pixels. Therefore, a coordinate system is established at each photo taking position through the TOF camera. The position offset relationship between the two adjacent positions can be calculated through the coordinates of the same pixels in the corresponding coordinate system in two adjacent positions. Therefore, we record the position information at the moment when the positioning signal is weak or lost, and then combine it with the position information of each position calculated by the TOF camera in the subsequent process. We can get the various position points in the running trajectory during the process of weak or lost positioning signal. Connect these points with the initial position point to form the trajectory of the entire process; when the positioning signal is restored again, turn off the TOF camera and re-position it through the existing positioning signal method.
[0026] Specifically, this embodiment proposes a method for realizing no-signal area positioning based on TOF technology, referring to Figure 1 , including the following steps:
[0027] S1 records the initial location information: when the positioning signal is weak or lost, records the relevant location information of the current location;
[0028] S2 obtains the coordinate information of the initial position: when the positioning signal is weak or lost, the coordinate system of the initial position is established through the TOF camera, and the TOF camera is used to take a photo in the direction of movement of the position to obtain the coordinates of the pixel points in the photo in the coordinate system;
[0029] S3 obtains the coordinate information of the next position: when moving to the next position, the coordinate system of the next position is established by the TOF camera, and the TOF camera is used to take a photo in the direction of movement of the position, and the same pixel point in the photo as that obtained at the initial position is found, and the coordinate of the pixel point in the coordinate system of the position is obtained;
[0030] S4 calculates the position information of the next position: by obtaining the coordinates of the same pixel point in the coordinate system of the initial position and the coordinate system of the next position, a change parameter between the coordinate system of the next position and the coordinate system of the initial position is calculated, thereby obtaining a relative position relationship between the next position and the initial position;
[0031] S5 calculates the position information of each position during the movement: repeats steps S3 and S4, and in the process of losing the positioning signal, takes pictures continuously with the TOF camera as the movement proceeds, establishes a coordinate system for each position in turn, and calculates the position relationship between two adjacent positions according to the coordinates of the same pixel points in the corresponding coordinate system in the pictures taken at the two adjacent positions, and obtains the position information of each position;
[0032] S6 generates a motion trajectory during the process of losing the positioning signal: generates a motion trajectory through the initial position information obtained above and the position information of each position.
[0033] Furthermore, the positioning signal may adopt a common signal in the prior art. In this embodiment, the positioning signal adopts a GPS positioning signal.
[0034] Furthermore, in step S1, the relevant position information includes the GPS position of the current position, the direction of the current movement direction, the horizontal plane direction, and the north direction. Specifically, the GPS position can be recorded by a GPS positioning device, the horizontal direction can be recorded by a level meter, and the direction of the movement direction can be recorded by a compass.
[0035] Furthermore, in any position, a three-dimensional space coordinate system is established by at least three TOF cameras.
[0036] In this embodiment, a three-dimensional space coordinate system is established by four TOF cameras. The four TOF cameras are respectively located at the origin, X-axis, Y-axis and Z-axis of the coordinate system. Establishing the coordinate system by this method can simplify the subsequent position calculation process and facilitate calculation.
[0037] Furthermore, the change parameters of the coordinate system of two adjacent positions are calculated by the seven-parameter method.
[0038] In this embodiment, the change parameters of the coordinate system of two adjacent positions are calculated through the Bursa seven-parameter coordinate transformation model, and the change parameters include X translation, Y translation, Z translation, X rotation, Y rotation, and Z rotation. For the convenience of calculation, in this embodiment, in any coordinate system, the coordinates of at least three pixel points are obtained.
[0039] The following describes this embodiment in detail by taking a scenario where a vehicle enters a parking lot with or without a GPS signal as an example:
[0040] First, the vehicle enters the parking lot from outside the parking lot with GPS signals, and the four array TOF cameras are in standby mode, and information such as GPS position, current direction of movement, and horizontal plane direction are continuously recorded;
[0041] When a vehicle enters the parking lot, the four TOF cameras start working immediately when the GPS signal is weak or lost. The most recently recorded GPS position, the direction of the current movement, the horizontal plane direction and other information are regarded as the current positioning information.
[0042] It should be noted that the positions of the four TOF cameras can determine a spatial rectangular coordinate system. For the convenience of calculation and explanation, the four TOF cameras are located at the origin of the coordinate system and the three axes, and the coordinates are (0,0,0)(1,0,0)(0,1,0)(0,0,1). For the convenience of explanation, the unit is 1 meter.
[0043] Four TOF cameras take a photo at the same time to form a group of photos. The array coordinate system determined by the first group of photos taken by the camera is the initial coordinate system. Assuming that the four cameras take a photo of pixel point A at the same time, the distances from the camera to point A are L0, L1, L2, and L3 respectively. Assuming the coordinates of point A are (xA, yA, zA), the following equation holds:
[0044] xA² + yA² + zA² = L0²
[0045] (xA - 1)² + yA² + zA² = L1²
[0046] xA² + (yA - 1)² + zA² = L2²
[0047] xA² + yA² + (zA - 1)² = L3²
[0048] get:
[0049] xA =
[0050] yA =
[0051] zA =
[0052] Similarly, the coordinates of the other two pixel points B and C in the photo can be obtained (xB, yB, zB), (xC, yC, zC);
[0053] The vehicle moves to the next position, and the TOF camera array starts taking the second set of photos. Since the shooting interval is short enough, the pixel point A in the same physical position as in the previous set of photos still exists in the photo. We use the image recognition algorithm to identify the pixel position of point A, and get the distance between point A and the four TOF cameras in the second set of photos as (L0', L1', L2', L3'). The coordinates of point A are obtained by the same algorithm as above:
[0054] xA' =
[0055] yA' =
[0056] zA' =
[0057] Similarly, we get the coordinates of B and C;
[0058] Because the vehicle has been displaced and deflected, the coordinate system of the camera array is different from that of the first set of photos. Based on the seven-parameter method of the Bouchard model, we combine the coordinates of the three pixels A, B, and C in the two coordinate systems to obtain the corresponding conversion parameters. We then obtain the change parameters of the coordinate system of the second set of photos relative to the coordinate system of the first set of photos: X translation, Y translation, Z translation, X rotation, Y rotation, and Z rotation.
[0059] Similarly, we can get the relative offset parameters of the coordinate system of each group of photos. Based on these parameters, we can deduce the transfer parameters of the coordinate system of each subsequent group of photos and the previous group of photos. Since the origin of the coordinates of the first group of photos is precisely located by GPS, we can get the relative position of the origin camera relative to the previous position when each group of photos was taken. Based on the offset, we can calculate the precise positioning of the origin camera from the first group of photos to each subsequent group of photos, thereby describing the motion trajectory of the entire process.
[0060] After the vehicle regains network signal, the camera array stops working and uploads the displacement information during the network loss to the server for storage. In this way, we can trace the displacement information of the vehicle in the signal-free area.
[0061] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for realizing no-signal area positioning based on TOF technology, characterized in that: The steps include: S1 records the initial location information: when the positioning signal is weak or lost, records the relevant location information of the current location; S2 obtains the coordinate information of the initial position: when the positioning signal is weak or lost, the coordinate system of the initial position is established through the TOF camera, and the TOF camera is used to take a photo of the movement direction of the position to obtain the coordinates of the pixel points in the photo in the coordinate system; S3 obtains the coordinate information of the next position: when moving to the next position, the coordinate system of the next position is established by the TOF camera, and the TOF camera is used to take a photo in the direction of movement of the position, and the same pixel point in the photo as that obtained at the initial position is found, and the coordinate of the pixel point in the coordinate system of the position is obtained; S4 calculates the position information of the next position: by obtaining the coordinates of the same pixel point in the coordinate system of the initial position and the coordinate system of the next position, a change parameter between the coordinate system of the next position and the coordinate system of the initial position is calculated, thereby obtaining a relative position relationship between the next position and the initial position; S5 calculates the position information of each position during the movement: repeats steps S3 and S4, and in the process of losing the positioning signal, takes pictures continuously with the TOF camera as the movement proceeds, establishes a coordinate system for each position in turn, and calculates the position relationship between two adjacent positions according to the coordinates of the same pixel points in the corresponding coordinate system in the pictures taken at the two adjacent positions, and obtains the position information of each position; S6 generates a motion trajectory during the process of losing the positioning signal: the motion trajectory is generated by using the initial position information obtained above and the position information of each position; In step S1, the relevant position information includes the GPS position of the current position, the direction of the current movement direction, the horizontal plane direction, and the true north direction; In any position, a three-dimensional space coordinate system is established by at least three TOF cameras; In any coordinate system, obtain the coordinates of at least three pixels.
2. The method for realizing no-signal area positioning based on TOF technology as claimed in claim 1, characterized in that: The positioning signal includes a GPS positioning signal.
3. The method for realizing no-signal area positioning based on TOF technology as claimed in claim 1, characterized in that: At any position, a three-dimensional space coordinate system is established by four TOF cameras, and the four TOF cameras are respectively located at the origin, X-axis, Y-axis and Z-axis of the coordinate system.
4. The method for realizing no-signal area positioning based on TOF technology as claimed in claim 1, characterized in that: The change parameters of the coordinate system of two adjacent positions are calculated by the seven-parameter method.
5. The method for realizing no-signal area positioning based on TOF technology as claimed in claim 4, characterized in that: The change parameters of the coordinate system of two adjacent positions are calculated through the Bursa seven-parameter coordinate transformation model, and the change parameters include X translation, Y translation, Z translation, X rotation, Y rotation and Z rotation.
