Positioning mapping method and mobile device
By identifying and marking the characteristic points of dynamic objects through the flag database, the problem of unstable positioning in dynamic environments is solved, more accurate positioning and mapping are achieved, and positioning errors and mapping misjudgments are reduced.
Patent Information
- Application Number
- CN202011065416.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-30
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-09-30
AI Technical Summary
Vision-based positioning and map construction technology has problems with positioning instability in dynamic environments, especially positioning errors and mapping misjudgments caused by the addition or disappearance of dynamic objects.
The flag database is used to identify feature points, and the camera unit captures image frames during movement, extracts feature points, identifies and labels flag objects, searches for and updates base maps, and reduces positioning errors and mapping misjudgments.
Effectively reduce positioning errors and mapping misjudgments, improve the stability and accuracy of positioning and mapping, and create a more accurate base map.
Smart Images

Figure CN114322939B
Abstract
Description
Technical Field
[0001] The present invention relates to a positioning mapping method and a mobile device, and in particular to a vision-based positioning mapping method and a mobile device using the positioning mapping method. Background Art
[0002] In recent years, with the booming market of mobile devices such as self-driving cars, drones, and robots, VSLAM (Visual Simultaneous Localization and Mapping) technology has also received increasing attention and widespread application. VSLAM uses image sensors (i.e., cameras) to capture surrounding images, obtain the surrounding terrain environment and identify it, and further determine where you are, thereby simultaneously positioning and mapping for mobile devices.
[0003] However, the constructed map is the environment at that moment, that is, it includes dynamic objects or movable objects. When returning to the same location at different time points, the addition or disappearance of dynamic objects may cause unstable positioning. Therefore, there is a great need in the market for a vision-based positioning mapping method and a mobile device using the positioning mapping method, which can reduce the mapping misjudgment caused by the above-mentioned problems and reduce positioning errors. Summary of the invention
[0004] The present invention provides a positioning mapping method and a mobile device using the positioning mapping method, which effectively reduces positioning errors and mapping misjudgments by identifying whether an image frame includes a flag object from feature points based on a flag database, wherein the flag database includes multiple dynamic objects and the flag object corresponds to one of the multiple dynamic objects.
[0005] According to one embodiment of the present invention, a positioning and mapping method is provided for positioning and mapping a mobile device during movement. The positioning and mapping method includes an image capture step, a feature point extraction step, a flag object recognition step, a flag object labeling step, a base map search step, and a positioning and mapping step. The image capture step is to capture an image frame at a time point among multiple time points in the movement process through a camera unit. The feature point extraction step is to extract multiple feature points from the image frame. The flag object recognition step is to recognize whether the image frame contains a flag object from the feature points based on a flag database. The flag database contains multiple dynamic objects, and the flag object corresponds to one of the multiple dynamic objects. The flag object labeling step is to add a label of the flag object to the image frame when the image frame contains the flag object. The base map search step is to search the base map list and confirm whether the image frame corresponds to a base map in the base map list; when the base map in the base map list contains the annotation of another flag object, the other flag object is embedded in the image frame, and it is confirmed whether the image frame embedded with the other flag object corresponds to the base map; when the image frame contains the annotation of the flag object, the flag object is embedded in the base map, and it is confirmed whether the image frame corresponds to the base map embedded with the flag object. The positioning and mapping steps are to perform positioning and mapping based on the multiple image frames and their flag objects captured during the moving process. Thereby, positioning errors and mapping misjudgments are effectively reduced.
[0006] In an embodiment of the positioning mapping method according to the present invention, the mobile device may be a vehicle, and the dynamic object may include at least one of a pedestrian and a vehicle.
[0007] In an embodiment of the positioning mapping method according to the present invention, the positioning mapping method may further include a base map creation step, which is to create and add a base map in the base map list based on the image frame when the image frame does not correspond to any base map in the base map list.
[0008] In an embodiment of the positioning mapping method according to the present invention, the positioning mapping method may further include an image and base map comparison step and a base map update step. The image and base map comparison step is to compare the image frame with the corresponding base map when the image frame corresponds to the base map in the base map list. The base map update step is to update the corresponding base map according to the following equation, where i represents a time point, i-1 represents a previous time point based on the corresponding base map, and MAP i represents the corresponding base map updated at the time point, P i Indicates the image frame containing the flag object at the time point: MAP i =MAP i-1 +[P i -(P i ∩MAP i-1 )].
[0009] In an embodiment of the positioning mapping method according to the present invention, the positioning mapping method may further include an image and base map comparison step and a base map update step. The image and base map comparison step is to compare the image frame with the corresponding base map when the image frame corresponds to the base map in the base map list. The base map update step is to update the corresponding base map after removing the other flag object when the corresponding base map includes the annotation of the other flag object and the image frame does not include the annotation of the other flag object.
[0010] The positioning mapping method of the aforementioned implementation method helps to establish a more accurate base map.
[0011] According to another embodiment of the present invention, a mobile device is provided, comprising a camera unit, a processor and a memory. The processor is coupled to the camera unit. The memory is coupled to the processor and provides a positioning mapping module, a flag database and a base map list, wherein the flag database includes a plurality of dynamic objects. The processor is based on the positioning and mapping module and is used to: capture an image frame at a time point in a plurality of time points during the movement process of the mobile device through the camera unit; extract a plurality of feature points from the image frame; identify whether the image frame includes a flag object from the feature points according to the flag database, and the flag object corresponds to one of the plurality of dynamic objects; when the image frame includes the flag object, add a label of the flag object to the image frame; search the base map list to confirm whether the image frame corresponds to the base map in the base map list; when the base map list is searched and the base map in the base map list includes a label of another flag object, embed the another flag object into the image frame, and confirm whether the image frame embedded with the another flag object corresponds to the base map; when the base map list is searched and the image frame includes a label of the flag object, embed the flag object into the base map, and confirm whether the image frame corresponds to the base map embedded with the flag object; perform positioning and mapping according to the plurality of image frames captured during the movement and their flag objects. In this way, the stability of positioning is improved.
[0012] In an embodiment of a mobile device according to the present invention, the mobile device may be a vehicle, and the dynamic object may include at least one of a pedestrian and a vehicle.
[0013] In an embodiment of the mobile device according to the present invention, the processor can be further configured to create and add a base map in the base map list based on the image frame when the image frame does not correspond to any base map in the base map list based on the positioning mapping module.
[0014] In an embodiment of the mobile device according to the present invention, the processor can be further configured to compare the image frame with the corresponding base map when the image frame corresponds to a base map in the base map list based on the positioning mapping module. The corresponding base map is updated according to the following equation, where i represents a time point, i-1 represents a previous time point based on the corresponding base map, and MAP i represents the corresponding base map updated at the time point, P iIndicates the image frame containing the flag object at the time point: MAP i =MAP i-1 +[P i -(P i ∩MAP i-1 )].
[0015] In an embodiment of the mobile device according to the present invention, the processor can be further configured to compare the image frame with the corresponding base map when the image frame corresponds to a base map in the base map list based on the positioning mapping module. When the corresponding base map includes the annotation of the other flag object and the image frame does not include the annotation of the other flag object, the corresponding base map is updated after removing the other flag object.
[0016] The mobile device of the aforementioned embodiment helps to improve the stability and accuracy of positioning and mapping. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1A A flow chart of a positioning mapping method according to a first embodiment of the present invention is shown;
[0018] Figure 1B A schematic diagram illustrating an image frame after the image capturing step is performed in the first embodiment;
[0019] Figure 1C A schematic diagram illustrating an image frame after executing a flag object recognition step in the first embodiment;
[0020] Figure 2 A block diagram of a mobile device according to a second embodiment of the present invention is shown;
[0021] Figure 3A A flow chart of a positioning mapping method according to a third embodiment of the present invention is shown;
[0022] Figure 3B A schematic diagram illustrating an image frame after executing a flag object marking step in the third embodiment;
[0023] Figure 3C A schematic diagram showing a base map list in the third embodiment;
[0024] Figure 3D A schematic diagram showing an image frame in a base map search step in the third embodiment is shown;
[0025] Figure 3E A schematic diagram showing a base map list in a base map search step in the third embodiment is shown;
[0026] Figure 3F A schematic diagram illustrating a base map after executing the base map creation step in the third embodiment;
[0027] Figure 3G A schematic diagram illustrating a base map after a base map updating step is performed in the third embodiment;
[0028] Figure 3H Another schematic diagram illustrating the base map after the base map updating step is performed in the third embodiment;
[0029] Fig. 3I Another schematic diagram showing the base map after the base map updating step is performed in the third embodiment;
[0030] Figure 4A A block diagram of a mobile device according to a fourth embodiment of the present invention is shown; and
[0031] Figure 4B A schematic diagram of a mobile device according to a fourth embodiment is shown.
[0032]
Explanation of symbols
[0033] 100,300: Positioning mapping method
[0034] 110,310: Image capture step 115,315: Feature point extraction step 120,320: Flag object recognition step 330: Flag object labeling step 340: Base map search step 350: Base map creation step 360: Image and base map comparison step 370: Base map update step 180,380: Closed loop detection step 190,390: Positioning and mapping step 200,400: Mobile device
[0035] 210,410:Processor
[0036] 220,420: Camera unit
[0037] 240,440:Memory
[0038] 250,450: Positioning and mapping module
[0039] 260,460: Flag database
[0040] 266,466: Dynamic objects
[0041] 270,470b,470d: Basemap list
[0042] 280,480b,480d,480f,480g,480h,480i: Base image
[0043] 488: Flag object
[0044] 290,490,490b,490d: Image frame
[0045] 295,495: Feature points
[0046] 299,499: Flag object DETAILED DESCRIPTION
[0047] The following will describe multiple embodiments of the present invention with reference to the accompanying drawings. For the purpose of clarity, many practical details will be described together in the following description. However, it should be understood that these practical details should not be used to limit the present invention. That is, in some embodiments of the present invention, these practical details are not necessary. In addition, in order to simplify the drawings, some known and commonly used structures and elements will be depicted in a simple schematic manner in the drawings; and repeated elements may be represented by the same number.
[0048] Figure 1A A flowchart of a positioning mapping method 100 according to a first embodiment of the present invention is shown. Figure 2 FIG. 2 is a block diagram of a mobile device 200 according to a second embodiment of the present invention. Figure 1A and Figure 2 The positioning and mapping method 100 according to the first embodiment of the present invention is assisted by the mobile device 200 according to the second embodiment of the present invention. The positioning and mapping method 100 is used for positioning (Localization) and mapping (Mapping, i.e., making maps, constructing maps) of the mobile device 200 during the movement process. The positioning and mapping method 100 includes an image capture step 110, a feature point extraction step 115, a flag object recognition step 120, and a positioning and mapping step 190. Furthermore, the positioning and mapping method 100 is used for positioning and mapping of the mobile device 200 during the movement process or on the movement path. The movement path can be predetermined before the movement or determined by real-time control. The mobile device 200 can be an autonomous moving apparatus (Autonomous Moving Apparatus), or can be a fully self-moving (Self-Moving), semi-self-moving, or assisted moving device, such as an autonomous car (Autonomous Car), an unmanned guided vehicle (AGV), a drone, a sweeping robot, etc., and the positioning and mapping method 100 can be a VSLAM method for an autonomous moving apparatus or a part of a VSLAM method.
[0049] Figure 1B FIG. 2 is a schematic diagram showing an image frame 290 after the image capturing step 110 is executed in the first embodiment. Figure 1A and Figure 1B The image capturing step 110 is to capture an image frame 290 at a time point i among a plurality of time points i during the moving process through the camera unit 220 .
[0050] Figure 1C FIG. 2 is a schematic diagram showing an image frame 290 after executing the flag object recognition step 120 in the first embodiment. Figure 1A and Figure 1C The feature point extraction step 115 is to extract a plurality of feature points (i.e., point cloud, Point Cloud) 295 from the image frame 290. The flag object recognition step 120 is to recognize whether the image frame 290 includes a flag object from the feature points 295 according to the flag database 260. The flag database 260 includes a plurality of dynamic objects 266. The dynamic objects 266 are non-static objects or non-fixed objects preset according to the surrounding environment of the mobile device 200 during the movement. The flag database 260 is a set of preset or updateable data structures including objects and features. Each flag object corresponds to one of the plurality of dynamic objects 266. For example, the image frame 290 is recognized to include a flag object 299. The flag object 299 corresponds to one of the plurality of dynamic objects 266, and as shown in FIG. Figure 1C Furthermore, in the feature point extraction step 115 and the flag object recognition step 120 , a convolutional neural network (CNN) may be used to perform flag object recognition, that is, a convolutional neural network may be used to learn and train the plurality of dynamic objects 266 in the flag database 260 .
[0051] The positioning and mapping step 190 is to perform positioning and mapping based on a plurality of image frames (one of which is the image frame 290) and flag objects (such as the flag object 299) captured during the moving process. Thus, the positioning and mapping method 100 of the present invention uses the camera unit 220, i.e., the image sensor, to capture the surrounding images, and adds the flag object recognition step 120 to the VSLAM process, which can be used to filter out unnecessary information of the flag object regarded as the dynamic object 266, i.e., filter out the objects that temporarily appear in the surrounding environment, so as to effectively reduce the positioning error and mapping misjudgment of the VSLAM. In the first embodiment, the flag object recognition step 120 is to recognize whether the image frame 290 contains a flag object (such as the flag object 299) from the feature point 295 according to the flag database 260, and the flag object recognized in the image frame 290 can be further marked, deleted, compared with the base map 280, etc. Steps or procedures (not limited to this) can be performed to perform positioning and mapping. Specifically, the positioning and mapping method 100 further includes a loop closing detection step 180 , and the loop closing detection step 180 also includes the execution of base map optimization to execute the subsequent positioning and mapping steps 190 .
[0052] Please refer to Figure 2, the mobile device 200 according to the second embodiment of the present invention is assisted by the positioning mapping method 100 according to the first embodiment of the present invention, and the mobile device 200 includes a camera unit 220, a processor 210 and a memory 240. The processor 210 is coupled (i.e., electrically coupled or communicatively coupled) to the camera unit 220, the memory 240 is coupled to the processor 210 and provides a positioning mapping module 250 and a flag database 260, and the flag database 260 includes a plurality of dynamic objects 266. Specifically, the camera unit 220 is an image sensor that can capture at least one of visible light images, infrared light images, and depth images, but is not limited thereto. The memory 240 is a non-temporary computer-readable memory, and the positioning mapping module 250 is a software program code, but is not limited thereto. The memory 240 also provides a base map list (i.e., a base map database) 270, and the base map list 270 includes a plurality of base maps 280. In addition, the mobile device 200 may be an autonomous mobile device, and Figure 2 The power-related units used for movement in the mobile device 200 are omitted.
[0053] Please refer to Figure 1A , Figure 1B and Figure 2 The processor 210 is used to capture an image frame 290 at a time point i among multiple time points i during the movement process of the mobile device 200 through the camera unit 220 based on the positioning mapping module 250, that is, to execute the image capturing step 110 in the positioning mapping method 100.
[0054] Please refer to Figure 1A , Figure 1C and Figure 2 , the processor 210 extracts a plurality of feature points 295 from the image frame 290 based on the positioning mapping module 250, and identifies whether the image frame 290 includes a flag object from the feature points 295 according to the flag database 260, and the flag object corresponds to one of the plurality of dynamic objects 266, that is, performs the feature point extraction step 115 and the flag object identification step 120 in the positioning mapping method 100. For example, the image frame 290 is identified to include a flag object 299, and the flag object 299 corresponds to one of the plurality of dynamic objects 266, and as shown in FIG. Figure 1C The processor 210 is also used to perform positioning and mapping based on the positioning and mapping module 250 according to the multiple image frames (one of which is the image frame 290) and the flag objects (such as the flag object 299) captured during the movement process, that is, to perform the positioning and mapping step 190 in the positioning and mapping method 100. In this way, the mobile device 200 can reduce the impact of the dynamic object 266 on the VSLAM during the movement process or on the movement path, which helps to improve the stability of positioning.
[0055] Figure 3A A flowchart of a positioning mapping method 300 according to a third embodiment of the present invention is shown. Figure 4A FIG. 4 is a block diagram of a mobile device 400 according to a fourth embodiment of the present invention. Figure 3A and Figure 4A The mobile device 400 according to the fourth embodiment of the present invention is used to assist in explaining the positioning and mapping method 300 according to the third embodiment of the present invention. The positioning and mapping method 300 is used for positioning and mapping the mobile device 400 during movement. The positioning and mapping method 300 includes an image capture step 310, a feature point extraction step 315, a flag object recognition step 320 and a positioning and mapping step 390.
[0056] Figure 3B A schematic diagram of an image frame 490b after the flag object labeling step 330 is executed in the third embodiment is shown. Figure 4B FIG. 4 is a schematic diagram of a mobile device 400 according to a fourth embodiment. Figure 3A , Figure 3B , Figure 4A and Figure 4B The image capturing step 310 captures an image frame 490 at a time point i among a plurality of time points i during the moving process through the camera unit 420. The feature point extraction step 315 extracts a plurality of feature points 495 from the image frame 490. The flag object recognition step 320 recognizes whether the image frame 490 includes a flag object (e.g., flag object 499) from the feature points 495 according to the flag database 460. The flag database 460 includes a plurality of dynamic objects 466. The flag object corresponds to one of the plurality of dynamic objects 466. Specifically, the dynamic objects 466 of the flag database 460 are non-static objects or non-fixed objects that are preset based on the surrounding environment of the mobile device 400 during movement. The flag database 460 is a preset or updateable set of data structures containing objects and features. It utilizes object recognition and feature data integration to establish a flag data structure attached to the map database (i.e., a base map list 470b containing annotations of flag objects) to enhance the extraction of VSLAM features, wherein the structure of each dynamic object 466 includes the number, type and location of the object, etc., and each dynamic object 466 may include preset or updateable parameterized structures such as overlap filtering, filter size, and weight allocation.
[0057] The positioning and mapping step 390 performs positioning and mapping based on a plurality of image frames (one of which is the image frame 490) and flag objects (such as the flag object 499) captured during the movement. Specifically, the positioning and mapping method 300 further includes a closed loop detection step 380 to perform the subsequent positioning and mapping step 390.
[0058] For details, please refer to Figure 3A , Figure 4A and Figure 4B, the mobile device 400 is a vehicle. The dynamic object 466 of the flag database 460 includes at least one of a pedestrian and a vehicle. The dynamic object 466 is a non-static object or a non-fixed object preset according to the surrounding environment of the mobile device 400 during the movement. In this way, the positioning and mapping method 300 is conducive to the positioning and mapping of the mobile device 400 moving in a large field. Specifically, the positioning and mapping method 300 is used for positioning and mapping of the mobile device 400 during the movement. The mobile device 400 can be an autonomous driving vehicle, and the positioning and mapping method 300 can be a VSLAM method for the autonomous driving vehicle or a part of the VSLAM method. The positioning and mapping method 300 can also be combined with other positioning methods, such as the Global Positioning System (GPS) and mobile communication base station positioning technology, to locate and map the mobile device 400. For example, the image frame 490 is identified to include a flag object 499, and the flag object 499 corresponds to a vehicle in the dynamic object 466 of the flag database 460.
[0059] Please refer to Figure 3A and Figure 3B ,in Figure 3B The schematic diagram of the image frame 490b after the flag object marking step 330 is executed in the third embodiment is shown. The positioning mapping method 300 further includes the flag object marking step 330. The flag object marking step 330 is when the image frame 490 includes a flag object, for example, the flag object 499, the flag object 499 is added to the image frame 490 to become the image frame 490b. In this way, the flag object technology can be effectively applied to positioning and mapping. Furthermore, it should be understood that Figure 3B The image frame 490b is used to illustrate and explain the present invention. The image frame 490b is actually in the form of data and may not be displayed on a display. Figure 3B , the present invention depicts Figure 1B , Figure 1C and FIG. 3C to FIG. 3I The addition of the flag object 499 to the image frame 490b refers to the processing and storage of the data of the image frame 490b, but does not necessarily mean that the flag object 499 is displayed on the display in a specific manner.
[0060] Figure 3C A schematic diagram of the background image list 470b in the third embodiment is shown. FIG. 3A to FIG. 3C and Figure 4BThe positioning mapping method 300 further includes a base map search step 340, which searches or retrieves a base map list 470b. The base map list 470b is established (i.e., added) and updated as the mobile device 400 moves. When the image frame 490 includes a flag object (e.g., flag object 499), after the flag object marking step 330, it is confirmed whether the image frame 490b corresponds to a base map in the base map list 470b, that is, it is confirmed whether there is a base map in the base map list 470b, which corresponds to (i.e., matches) the image frame 490b (in this embodiment, the image frame 490b corresponds to the base map 480b in the base map list 470b). The base map 480b can be regarded as the mobile device 400 passing through the position where the image frame 490b is generated at an earlier time point in the moving process, and the position where the base map 480b is established is regarded as the same position as the position where the image frame 490b is generated. When the image frame 490 does not include the flag object 499 or any other flag object, it can be directly confirmed whether the image frame 490 corresponds to a base map in the base map list 470b, that is, it can be directly confirmed whether there is a base map in the base map list 470b, which corresponds to the image frame 490. In this way, performing base map matching processing in the base map search step 340 helps to increase the positioning accuracy and the composition success rate. In addition, when the mobile device 400 starts its movement process, the base map list 470b may include zero base maps. The base map search step 340 can be to search all the base maps in the base map list 470b one by one, or to search for a part of the more relevant base maps through the index of the base map list 470b, and the base map search step 340 can be to compare all the feature points in a base map and the annotations of the flag objects, or to compare the more relevant feature points in a base map and the annotations of the flag objects, so as to find the base map corresponding to the image frame 490b.
[0061] Figure 3D FIG. 4 is a schematic diagram showing the image frame 490d in the base map search step 340 in the third embodiment. Please refer to FIG. FIG. 3A to FIG. 3D In the base map search step 340, all or part of the base maps in the base map list 470b are searched. When a base map in the base map list 470b contains a label of another flag object, the other flag object can be embedded in the corresponding position in the image frame 490b, and it is confirmed whether the image frame 490d in which the other flag object is embedded corresponds to the base map in the base map list 470b. For example, if Figure 3C As shown, when the base map 480b in the base map list 470b includes a label of a flag object 488, the flag object 488 can be embedded in the image frame 490b to form an image frame 490d (eg, Figure 3D 480b ), and confirm whether the image frame 490d embedded in the flag object 488 corresponds to the base map 480b . Furthermore, the flag object 488 corresponds to the pedestrian in the dynamic object 466 of the flag database 460 .
[0062] Figure 3E A schematic diagram of the base map list 470d in the base map search step 340 in the third embodiment is shown. FIG. 3A to FIG. 3C and Figure 3E In the base map search step 340, all or part of the base maps in the base map list 470b are searched. When the image frame 490b includes a label of a flag object 499 (such as Figure 3B As shown in FIG. 4 , the flag object 499 can be embedded in the corresponding position of each base map to form a base map list 470d, and it is confirmed whether the image frame 490b corresponds to a base map in the base map list 470d embedded with the flag object 499, such as Figure 3E As shown. For example, the flag object 499 can be embedded in the base map 480b to become the base map 480d, and it is confirmed whether the image frame 490b corresponds to the base map 480d in which the flag object 499 is embedded. In practice, the image frame and the base map may both contain dozens, hundreds or even more annotations of flag objects, and the annotations of the flag objects of the image frame and the base map may be partially the same. The positioning mapping method 300 according to the present invention is conducive to effectively finding the corresponding base map 480b through the cross-comparison of a large number of flag object information, and performing subsequent base map creation or base map update.
[0063] Figure 3F A schematic diagram of a base map 480f after executing the base map creation step 350 in the third embodiment is shown. Figure 3A and Figure 3F The positioning mapping method 300 further includes a base map creation step 350. The base map creation step 350 is to create and add a base map 480f in the base map list 470b according to the image frame 490b when the image frame 490b does not correspond to any base map in the base map list 470b, and the base map 480f includes the label of the flag object 499. In this way, the created base map 480f can include information such as the number, type, and position of the flag object 499.
[0064] Figure 3G A schematic diagram of a base map 480g after the base map updating step 370 is executed in the third embodiment is shown. FIG. 3A to FIG. 3C , Figure 3F , Figure 3G And the following equations (1) to (3), after executing the image capture step 310 and the feature point extraction step 315, P 0490. In the case of executing the flag object recognition step 320, F is a filter module based on the flag database 460. The filter module may be a part of the positioning mapping module 450 that executes the flag object recognition step 320 and the flag object labeling step 330. The filter module is used to filter, filter or select the feature points 495 to identify whether the feature points 495 of the image frame 490 include a flag object corresponding to one of the multiple dynamic objects 466 in the flag database 460. After the flag object labeling step 330, P i Indicates a markup containing a flag object (e.g. Figure 3B The image frame 490b of the object 499 marked in the image (ie, the image frame 490b filtered by the filtering module) is as shown in the following formula (1).
[0065] After the base map creation step 350, when the image frame 490b does not correspond to any base map in the base map list 470b, i represents a time point and the value is defined as 0, MAP i It indicates that the time point i is established and added as the base map 480f in the base map list 470b according to the image frame 490b, and is shown in the following formula (2).
[0066] The positioning mapping method 300 further includes an image and base map comparison step 360 and a base map update step 370. The image and base map comparison step 360 is to compare the image frame 490b with the corresponding base map 480b when the image frame 490b corresponds to the base map 480b in the base map list 470b. The base map update step 370 is to update the corresponding base map 480b to the base map 480g according to the following formula (3), where i represents a time point and the value is defined as greater than 0, i-1 represents the previous time point based on the corresponding base map 480b, and MAP i Indicates the corresponding base map 480g updated at the time point i, MAP i-1 The corresponding base map 480b of the previous time point i-1 is represented by P i Indicates that the time point i contains a flag object (e.g. Figure 3B The image frame 490b of the object 499 marked in the middle (ie, the image frame 490b filtered by the filtering module) is as shown in the following formula (3), and (P i ∩MAP i-1 ) can be regarded as a collection of static objects or fixed objects in the base map 480b, such as buildings, etc. The above equations (1) to (3) are as follows:
[0067] P i =F(P 0 ) Formula (1);
[0068] MAP i =P i , if i = 0, formula (2); and
[0069] MAP i =MAP i-1 +[P i -(P i ∩MAP i-1 )], if i>0, formula (3).
[0070] Thus, when the corresponding base map 480b includes the annotation of the flag object 488 and the image frame 490b does not include the annotation of the flag object 488, the corresponding base map 480b can be updated to the base map 480g after retaining the flag object 488 and adding the flag object 499, as shown in FIG. Figure 3G shown.
[0071] Figure 3H A schematic diagram of a base map 480h after the base map updating step 370 is shown in the third embodiment. FIG. 3A to FIG. 3C and Figure 3H , the base map updating step 370 is that when the corresponding base map 480b includes the annotation of the flag object 488, and the image frame 490b does not include the annotation of the flag object 488, the corresponding base map 480b can be updated to the base map 480h after removing the flag object 488. Thus, when the corresponding base map 480b includes the annotation of the flag object 488, and the image frame 490b does not include the annotation of the flag object 488, the corresponding base map 480b can be updated to the base map 480h after removing the flag object 488 but adding the flag object 499, as shown in FIG. Figure 3H shown.
[0072] Fig. 3I A schematic diagram of a base map 480i after the base map updating step 370 is executed in the third embodiment is shown. Figure 3A and Fig. 3I In the base map updating step 370, when the corresponding base map 480b includes the annotation of the flag object 488 and the image frame 490b does not include the annotation of the flag object 488, the corresponding base map 480b can be updated to the base map 480i after removing the flag object 488 and not adding the flag object 499, as shown in FIG. Fig. 3I shown.
[0073] Furthermore, the base map update step 370 is a mask optimization step, which is to compare the image frame 490b and the flag objects annotated therein (such as flag object 499) with the base map 480b of the existing map information, and timely update the base map 480b by cross-comparison in time and space, thereby reducing the reconstruction of the map and facilitating the online updating of map data. For example, the annotation of flag objects in the base map according to the present invention may include weights, and flag objects that appear repeatedly during movement may have a higher retention weight (i.e., a lower removal weight). Repeated flag objects may actually be static objects, such as advertising patterns on buildings that are very similar to pedestrians, so that repeated flag objects are retained in the base map update step 370, i.e., using Figure 3G The base map update method shown retains the flag object 488 without removing the repeated flag objects, that is, without using Figure 3H , Fig. 3I The base map updating method for removing the flag object 488 is shown. Specifically, the base map 480b stored for the first time at a location during the movement of the mobile device 400 may include dozens, hundreds or even more flag objects. As the number of times the mobile device 400 passes through the location increases, the positioning mapping method 300 according to the present invention helps to more accurately remove more flag objects, thereby establishing a more accurate base map.
[0074] Please refer to Figure 4A and Figure 4B , the mobile device 400 according to the fourth embodiment of the present invention is assisted by the positioning mapping method 300 according to the third embodiment of the present invention, and the mobile device 400 includes a camera unit 420, a processor 410 and a memory 440. The processor 410 is coupled to the camera unit 420. The memory 440 is coupled to the processor 410 and provides a positioning mapping module 450 and a flag database 460, and the flag database 460 includes a plurality of dynamic objects 466. Specifically, the mobile device 400 can be an autonomous driving vehicle, and the control unit (Control Unit) in the mobile device 400 for being responsible for and executing the VSLAM method includes the processor 410 and the memory 440, and Figure 4A The power-related units used for movement in the mobile device 400 are omitted.
[0075] Please refer to Figure 3A , Figure 4A and Figure 4B The processor 410 is based on the positioning mapping module 450 to capture an image frame 490 at a time point i among multiple time points i during the movement process of the mobile device 400 through the camera unit 420, that is, to execute the image capturing step 310 in the positioning mapping method 300.
[0076] Please refer to Figure 3A , Figure 3B , Figure 4A and Figure 4B The processor 410 is based on the positioning and mapping module 450 to extract multiple feature points 495 from the image frame 490, and recognizes whether the image frame 490 includes a flag object (such as flag object 499) from the feature points 495 according to the flag database 460. The flag database 460 includes multiple dynamic objects 466, and the flag object corresponds to one of the multiple dynamic objects 466. The processor 410 performs positioning and mapping based on the multiple image frames (one of which is the image frame 490) and the flag objects (such as flag object 499) captured during the movement, that is, performs the feature point extraction step 315, the flag object recognition step 320 and the positioning and mapping step 390 in the positioning and mapping method 300.
[0077] Please refer to Figure 3A , Figure 3B , Figure 4A and Figure 4B The processor 410 is also used based on the positioning mapping module 450 to add a label of the flag object 499 to the image frame 490 to become the image frame 490b when the image frame 490 includes a flag object, such as the flag object 499, so as to execute the flag object labeling step 330 in the positioning mapping method 300.
[0078] Please refer to Figure 3A , Figure 3B , Figure 3C and Figure 4A , the memory 440 also provides a base map list 470b, and the processor 410 is further used to search the base map list 470b based on the positioning mapping module 450 to confirm whether the image frame 490b corresponds to a base map in the base map list 470b, that is, to confirm whether there is a base map in the base map list 470b, which corresponds to the image frame 490b (in this embodiment, the image frame 490b corresponds to the base map 480b in the base map list 470b), that is, to execute the base map search step 340 in the positioning mapping method 300. Furthermore, Figure 4A Only the base map list 470b and base map 480b provided by the memory 440 are shown, and the base map list 470d and base maps 480d, 480f, 480g, 480h, 480i temporarily stored, created or updated by the processor 410 during the execution of the positioning mapping module 450 are shown. Figure 4A Omitted in .
[0079] Please refer to Figure 3A , Figure 3B , Figure 3F , Figure 4A and Figure 4BThe processor 410 is also used based on the positioning mapping module 450 to create and add a base map 480f in the base map list 470b according to the image frame 490b when the image frame 490b does not correspond to any base map in the base map list 470b, and the base map 480f includes the annotation of the flag object 499, that is, executing the base map creation step 350 in the positioning mapping method 300.
[0080] Based on the positioning mapping module 450 , the processor 410 is further used to compare the image frame 490b with the corresponding base map 480b when the image frame 490b corresponds to the base map 480b in the base map list 470b, that is, to perform the image and base map comparison step 360 in the positioning mapping method 300 .
[0081] Please refer to Figure 3A , Figure 3B , Figure 3G , Figure 3H , Fig. 3I and Figure 4A When the corresponding base map 480b includes the annotation of the flag object 488 and the image frame 490b does not include the annotation of the flag object 488, the corresponding base map 480b can be updated to the base map 480g after retaining the flag object 499 and adding the flag object 499 according to the weights or other annotation contents of the flag objects 488 and 499, respectively, as shown in FIG. Figure 3G or, the corresponding base map 480b can be updated to the base map 480h after removing the flag object 488 but adding the flag object 499, such as Figure 3H Alternatively, the corresponding base map 480b may be updated to the base map 480i after removing the flag object 488 and not adding the flag object 499, such as Fig. 3I As shown; the above is to execute the base map updating step 370 in the positioning mapping method 300.
[0082] For other details of the mobile device 400 of the fourth embodiment, reference may be made to the contents of the positioning mapping method 300 of the third embodiment, which will not be described in detail herein.
[0083] Although the present invention has been disclosed as above in the form of an implementation method, it is not intended to limit the present invention. Anyone familiar with this technology can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be based on the scope defined by the attached claims.
Claims
1. A positioning mapping method, characterized in that: Used for positioning and mapping a mobile device during a moving process, the positioning and mapping method comprises: an image capturing step, capturing an image frame at a time point among a plurality of time points in the moving process through a camera unit; a feature point extraction step, extracting a plurality of feature points from the image frame; a flag object recognition step, identifying whether the image frame includes a flag object from the feature points according to a flag database, the flag database including a plurality of dynamic objects, the flag object corresponding to one of the dynamic objects; a flag object marking step, when the image frame includes the flag object, adding a mark of the flag object to the image frame; a base map search step, searching a base map list, and confirming whether the image frame corresponds to a base map in the base map list; wherein when a base map in the base map list includes a label of another flag object, the other flag object is embedded in the image frame, and it is confirmed whether the image frame embedded in the other flag object corresponds to the base map; wherein when the image frame includes the label of the flag object, the flag object is embedded in a base map, and it is confirmed whether the image frame corresponds to the base map embedded in the flag object; and A positioning and mapping step is performed according to the image frames and the flag objects captured during the moving process.
2. The positioning mapping method according to claim 1, characterized in that: The mobile device is a vehicle, and the dynamic objects include at least one of a group of people and a vehicle.
3. The positioning mapping method according to claim 1, characterized in that: Also includes: A base map creation step is to create and add a base map in the base map list based on the image frame when the image frame does not correspond to any of the base maps in the base map list.
4. The positioning mapping method according to claim 1, characterized in that: Also includes: an image and base map comparison step, when the image frame corresponds to the base map in the base map list, comparing the image frame with the corresponding base map; and A base map updating step, wherein the corresponding base map is updated according to the following equation, where i represents the time point, i-1 represents the previous time point based on the corresponding base map, MAP i Indicates the corresponding base map updated at this time point, P i The image frame representing the marker object at that time point: MAP i =MAP i-1 +[P i -(P i ∩MAP i-1 )]。 5. The positioning mapping method according to claim 1, characterized in that: Include: an image and base map comparison step, when the image frame corresponds to the base map in the base map list, comparing the image frame with the corresponding base map; and A base map updating step, when the corresponding base map includes the label of the other flag object and the image frame does not include the label of the other flag object, the corresponding base map is updated after removing the other flag object.
6. A mobile device, characterized in that: Include: a camera unit; a processor coupled to the camera unit; and A memory, coupled to the processor and providing a positioning mapping module, a flag database and a base map list, wherein the flag database includes a plurality of dynamic objects; The processor is used based on the positioning mapping module to: Capturing an image frame at a time point among a plurality of time points in a moving process of the mobile device through the camera unit; Extracting a plurality of feature points from the image frame; identifying whether the image frame includes a flag object from the feature points according to the flag database, the flag object corresponding to one of the dynamic objects; When the image frame includes the flag object, adding a label of the flag object to the image frame; Searching the base map list, confirming whether the image frame corresponds to a base map in the base map list; wherein when the base map list is searched and a base map in the base map list includes a label of another flag object, embedding the other flag object into the image frame, and confirming whether the image frame embedded into the other flag object corresponds to the base map; wherein when the base map list is searched and the image frame includes the label of the flag object, embedding the flag object into a base map, and confirming whether the image frame corresponds to the base map embedded into the flag object; and Positioning and mapping are performed according to the image frames and the flag objects captured during the moving process.
7. The mobile device according to claim 6, characterized in that: The mobile device is a vehicle, and the dynamic objects include at least one of a group of people and a vehicle.
8. The mobile device according to claim 6, characterized in that The processor is further used based on the positioning mapping module to: When the image frame does not correspond to any of the base maps in the base map list, a base map is created and added to the base map list according to the image frame.
9. The mobile device according to claim 6, characterized in that: The processor is further used based on the positioning mapping module to: When the image frame corresponds to the base map in the base map list, comparing the image frame with the corresponding base map; and The corresponding base map is updated according to the following equation, where i represents the time point, i-1 represents the previous time point based on the corresponding base map, MAP i Indicates the corresponding base map updated at this time point, P i The image frame representing the marker object at that time point: MAP i =MAP i-1 +[P i -(P i ∩MAP i-1 )]。 10. The mobile device according to claim 6, characterized in that: The processor is further used based on the positioning mapping module to: When the image frame corresponds to the base map in the base map list, comparing the image frame with the corresponding base map; and When the corresponding base map includes the label of the other flag object and the image frame does not include the label of the other flag object, the corresponding base map is updated after removing the other flag object.
