A mobile target positioning method, device, electronic equipment, system and medium
By acquiring and utilizing the depth information collected by the image acquisition unit, extracting the label area and determining feature points, the problem of inaccurate positioning caused by ambient light interference in the existing technology is solved, and more efficient and accurate positioning of moving targets is achieved.
Patent Information
- Application Number
- CN202110041383.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-13
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-01-13
AI Technical Summary
In robot visual navigation, the existing technology only uses the two-dimensional information of the label image for identification and detection, which is easily interfered by ambient light and difficult to accurately locate moving targets.
By obtaining the depth information of each pixel in the area image containing the label collected by the image acquisition unit, the label area is extracted, and the positioning of the moving target is determined based on the feature points.
It improves the accuracy and efficiency of positioning, reduces the calculation amount of feature point detection, and enhances the targeted extraction and identification of label areas.
Smart Images

Figure CN112907661B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of automatic detection technology, and in particular to a method, device, electronic device, system, and medium for positioning a mobile target. Background Art
[0002] In robot vision navigation tasks, it is often necessary to determine the robot's position in the world coordinate system by identifying artificial labels. This approach works by matching the world coordinates and image coordinates of feature points in the artificial labels to estimate the transformation matrix between the robot coordinate system and the world coordinate system. There are many types of artificial labels, including common ones such as QR codes and Aruco codes.
[0003] At present, when robots are positioned based on labels, only the two-dimensional information of the label image is generally used for identification and detection, and depth information is not taken into account. The recognition of label images and feature points is easily interfered by ambient light, making it difficult to extract the label image in a targeted manner, which in turn affects the accuracy of robot positioning. Summary of the Invention
[0004] The embodiments of the present application provide a mobile target positioning method, device, electronic device, system and medium to achieve accurate and efficient positioning of mobile targets.
[0005] In one embodiment, the present application provides a method for positioning a mobile target, the method comprising:
[0006] Acquiring depth information of each pixel in an image of a region containing a tag captured by an image acquisition unit on a mobile target; wherein the tag is disposed on a reference plane, and a surface of the tag recognized by the image acquisition unit and the reference plane are different planes;
[0007] Extracting a label area from the area image according to the depth information of each pixel;
[0008] The positioning of the moving object is determined according to the feature points in the label area.
[0009] In another embodiment, the present application also provides a mobile target positioning device, which includes:
[0010] a depth information acquisition module, configured to acquire depth information of each pixel in an image of a region containing a tag, acquired by an image acquisition unit on the mobile target; wherein the image acquisition unit is a binocular image acquisition unit or a multi-camera image acquisition unit, the tag is disposed on a reference plane, and a surface of the tag recognized by the image acquisition unit is located on a different plane from the reference plane;
[0011] A label region extraction module, configured to extract a label region from the region image based on depth information of each pixel;
[0012] The positioning determination module is used to determine the positioning of the mobile target based on the feature points in the label area.
[0013] In yet another embodiment, an embodiment of the present application further provides an electronic device, including: one or more processors;
[0014] a memory for storing one or more programs;
[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement the mobile target positioning method described in any one of the embodiments of the present application.
[0016] In one embodiment, the present application further provides a mobile target positioning system, the system comprising:
[0017] A label is provided on a reference plane, wherein a surface of the label recognized by the image acquisition unit and the reference plane are different planes;
[0018] A mobile target and an image acquisition unit provided on the mobile target, for acquiring images of the reference plane and the label;
[0019] An electronic device is arranged in a mobile target or outside a mobile target, and the electronic device can implement the mobile target positioning method described in any one of the embodiments of the present application.
[0020] In one embodiment, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the mobile target positioning method as described in any one of the embodiments of the present application.
[0021] In an embodiment of the present application, depth information is obtained for each pixel in a regional image containing a label, captured by an image acquisition unit on a mobile target; wherein the label is disposed on a reference plane, and the surface of the label recognized by the image acquisition unit is on a different plane from the reference plane; based on the depth information of each pixel, a label region is extracted from the regional image; and the location of the mobile target is determined based on feature points in the label region. By obtaining the depth information of each pixel in the regional image, the label region is more accurately and specifically extracted based on the depth information, thereby improving the accuracy and efficiency of positioning and reducing the computational complexity of feature point detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A flowchart of a mobile target positioning method provided by an embodiment of the present application;
[0023] Figure 2 A flowchart of a mobile target positioning method provided by another embodiment of the present application;
[0024] Figure 3 An application scenario diagram for a specific implementation of the mobile target positioning method provided in another embodiment of the present application;
[0025] Figure 4 A schematic diagram of the structure of a mobile target positioning device provided by an embodiment of the present application;
[0026] Figure 5 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application;
[0027] Figure 6 A schematic diagram of the structure of a mobile target positioning system provided in one embodiment of the present application. DETAILED DESCRIPTION
[0028] The present application will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are intended only to illustrate the present application and are not intended to limit the present application. It should also be noted that, for ease of description, the accompanying drawings only illustrate portions of the present application, not all of the structures.
[0029] Figure 1 This is a flowchart of a mobile target positioning method provided by an embodiment of the present application. The mobile target positioning method provided by the embodiment of the present application is applicable to situations where a mobile target is to be positioned. Typically, the embodiment of the present application is applicable to situations where the depth information obtained by the image acquisition unit on the mobile target is used to determine the label area and then position the mobile target. The method can be specifically executed by a mobile target positioning device, which can be implemented by software and / or hardware, and the device can be integrated into an electronic device that can implement the mobile target positioning method. See Figure 1 , the method of the embodiment of the present application specifically includes:
[0030] S110. Acquire depth information of each pixel in an area image containing a tag captured by an image acquisition unit on a mobile target; wherein the tag is set on a reference plane, and a surface of the tag recognized by the image acquisition unit belongs to a different plane from the reference plane.
[0031] Among them, the moving target can be an object that controls its movement autonomously, such as a robot, a pedestrian, a car, etc., or an object that relies on external force to move, such as a cart or a wooden box that is pushed or pulled. The movement mode of the moving target is not specifically limited, and it can be rolling, sliding, etc. No matter how the moving target moves, as long as an image acquisition unit is set on the moving target, it can capture the image of the area containing the label. The image acquisition unit in the embodiment of the present application is an image acquisition unit that can capture depth information, such as a binocular camera, a multi-eye camera, etc. Depth information can also be obtained with the help of other sensors, such as an infrared sensor, a lidar, etc.
[0032] For example, while the mobile object is moving, an image acquisition unit captures an image of the reference plane in real time and performs detection on the captured image. If a tag is detected in the captured image, the image is determined to be a region image containing the tag. Because the region image is captured by a binocular camera or a multi-camera system, depth information for each pixel in the region image can be obtained.
[0033] In an embodiment of the present application, the label is set on a reference plane, and the surface of the label recognized by the image acquisition unit belongs to a different plane from the reference plane. When setting the label, the label is raised relative to the reference plane, for example, by increasing the thickness of the label, or adding a spacer to make the label raised relative to the reference plane, so that the surface of the label recognized by the image acquisition unit and the reference plane are in different planes. In this case, the depth information of the label in the regional image captured by the image acquisition unit is different from the depth information of the reference plane. The direction of the reference plane is not specifically limited, and can be parallel to the ground plane, perpendicular to the ground plane, or at a certain angle to the ground plane.
[0034] S120 : Extracting a label region from the region image according to depth information of each pixel.
[0035] For example, the label is not distributed throughout the entire reference plane, but rather is located at a specific location on the reference plane. Therefore, feature point detection and recognition do not need to be performed on the entire regional image. Instead, the label region can be extracted from the regional image, allowing for targeted feature point recognition of only that region. Because the label is raised relative to the reference plane, the depth information of the label region in the regional image differs from that of other regions. Therefore, the label region can be extracted from the regional image based on the depth information of each pixel, allowing for targeted detection of the label region.
[0036] S130: Determine the location of the moving target according to the feature points in the label area.
[0037] For example, the feature point detection and identification can be carried out in a targeted manner on the label area, and the detected feature points can be matched with the feature points of the label with a known location in advance, and the location corresponding to the matched label feature points can be used as the location of the mobile target. Targeted identification is only performed on the label area, and the image noise of the label area is small and the background is single, so the feature points can be detected more quickly and accurately for positioning, thereby improving the efficiency and accuracy of the positioning of the mobile target. Among them, the known location of the label can be determined when the label is set. Since the label is actively set at a specific position, the specific position is known, that is, the location of the label is known. If the feature points of the label area extracted from the actual collected area image match the feature points of the label with a known location, it can be determined that the actually collected label and the label with a known location are the same label and the location is the same.
[0038] In an embodiment of the present application, depth information of each pixel in a regional image containing a label, captured by an image acquisition unit on a mobile target, is obtained; wherein the image acquisition unit is a binocular image acquisition unit or a multi-lens image acquisition unit, the label is set on a reference plane, and the surface of the label recognized by the image acquisition unit is on a different plane from the reference plane; based on the depth information of each pixel, the label area is extracted from the regional image; and based on the feature points in the label area, the location of the mobile target is determined. By acquiring the depth information of each pixel in the regional image, the label area can be more accurately and specifically extracted based on the depth information, thereby improving the accuracy and efficiency of positioning and reducing the computational complexity of feature point detection.
[0039] Figure 2 This is a flow chart of a mobile target positioning method provided by another embodiment of the present application. This embodiment of the present application is a further optimization of the above embodiment. For details not described in detail in the embodiment of the present application, please refer to the above embodiment. Figure 2 The mobile target positioning method provided in the embodiment of the present application may include:
[0040] S210. Acquire depth information of each pixel in an image of a region containing a tag captured by an image acquisition unit on a mobile target; wherein the tag is set on a reference plane, and a surface of the tag recognized by the image acquisition unit belongs to a different plane from the reference plane.
[0041] S220 : Determine an average depth of pixels in the regional image according to the depth information of each pixel.
[0042] For example, in general, the shooting range of the image acquisition unit is much larger than the label area. For example, the shooting range of the image acquisition unit is 1280*960 pixels, and the label area is 100*100 pixels, which only occupies 0.008 of the shooting range of the image acquisition unit. Therefore, the average depth value of the pixel points in the regional image can be used as the depth value of the reference plane.
[0043] Specifically, the depth information of each pixel includes a depth value of each pixel. The depth values of each pixel are added together and divided by the total number of pixels to obtain the average depth value of the pixels in the regional image.
[0044] S230 : Extracting a label region from the region image according to a difference between a depth value in the depth information of each pixel and the depth average value.
[0045] For example, because the label is raised relative to the reference plane, the depth value of the label area is different from the depth value of the reference plane. The difference between the depth value of the label area and the depth value of the reference plane should be equal to the height of the label raised relative to the reference plane. The average depth value of the pixels in the regional image can be used to approximate the depth value of the reference plane. Therefore, the label area is extracted from the regional image based on the difference between the depth value in the depth information of each pixel and the depth average.
[0046] In an embodiment of the present application, a label area is extracted from the regional image based on the difference between the depth value in the depth information of each pixel point and the depth average value, including: filtering label pixels from the pixels of the regional image based on the difference between the depth value in the depth information of each pixel point and the depth average value; and taking the area where the label pixels are located as the label area.
[0047] For example, the depth value of each pixel can be analyzed, and based on the difference between the depth value of each pixel and the depth average, label pixels can be selected from the pixels of the regional image, and the region where the label pixels are located is regarded as the label region.
[0048] In an embodiment of the present application, label pixels are screened from the pixels of the regional image based on the difference between the depth value in the depth information of each pixel and the depth average value, including: if the difference between the depth value of the pixel and the depth average value and the preset depth value is less than a preset depth difference threshold, then the pixel is determined to be a label pixel; wherein the preset depth value is determined based on the distance between the reference plane and the surface on which the label is recognized by the image acquisition unit.
[0049] Exemplarily, the preset depth value can be equal to the distance between the reference plane and the surface where the label is recognized by the image acquisition unit, and can be determined when the label is set on the reference plane. For example, the distance between the reference plane and the surface where the label is recognized by the image acquisition unit can be set to 10 cm, and the preset depth value is 10 cm. The preset depth difference threshold can be set according to actual conditions. For example, it can be set to one tenth of the preset depth value. When the preset depth value is 10 cm, the preset depth difference threshold is 1 cm. If the difference between the depth value of the pixel point and the depth average value is less than the preset depth difference threshold, that is, the difference between the depth value of the pixel point and the depth average value is similar to the distance between the reference plane and the surface where the label is recognized by the image acquisition unit, then it means that the pixel point should be a pixel point of the label area, and the pixel point is determined to be a label pixel point. The area where all label pixels are located is regarded as the label area.
[0050] S240: Determine the location of the moving target according to the feature points in the label area.
[0051] The solution of the embodiment of the present application determines the depth average of the pixels in the regional image based on the depth information of each pixel, and extracts the label area from the regional image based on the difference between the depth value in the depth information of each pixel and the depth average, thereby accurately extracting the label area to perform targeted detection on the label area, thereby improving the efficiency and accuracy of mobile target positioning, and performing targeted feature point detection and identification on the label area, reducing the computational complexity of feature point identification.
[0052] In an embodiment of the present application, the method further includes: determining the area information of the area corresponding to the label based on the depth information of each pixel point in the image containing the label collected by the image acquisition unit; wherein the area information includes the flatness information of the area and / or the speed adjustment area information of the moving target.
[0053] In an embodiment of the present application, the image containing the label includes the image containing the label collected by the image acquisition unit at any time. According to the depth information of each pixel in the image containing the label, the distance between the label and the corresponding area can be determined, thereby reflecting the area information of the area corresponding to the label, that is, the flatness information of the area and / or the speed adjustment area information of the mobile target. The speed adjustment area information of the mobile target can be directly determined based on the depth information of each pixel in the image containing the label collected by the image acquisition unit, or it can be determined based on the flatness information of the area. In an embodiment of the present application, the area information of the area corresponding to the label is determined based on the depth information of each pixel in the image containing the label collected by the image acquisition unit, including: obtaining the depth information of each pixel in the historical area image containing the label collected by the image acquisition unit; wherein the historical area image is collected before the current area image collection moment; according to the depth information of each pixel in the historical area image, and the depth information of each pixel in the area image, the flatness of the carrying plane of the mobile target corresponding to the label is determined.
[0054] Exemplarily, the label in the historical area image and the label in the regional image do not belong to the same label, the label in the historical area image is a label set at another location, and the mobile target has passed through other locations before moving to the current location, and collected historical area images containing labels of other locations. The mobile target moves on the carrying plane, and the flatness of the carrying plane can be reflected by the depth information of the image collected by the image acquisition unit on the mobile target. The depth information of the historical area image containing the label collected previously can be obtained, and the changes in the depth information of the regional image and the depth information of the historical area image can be analyzed. If the depth average value of the pixels in the regional image is consistent with the depth average value of the pixels in the historical area image, it means that the carrying plane corresponding to the label is relatively flat. If the depth average value of the pixels in the regional image is inconsistent with the depth average value of the pixels in the historical area image, it means that the carrying plane corresponding to the label is uneven.
[0055] In an embodiment of the present application, the area information of the area corresponding to the label is determined based on the depth information of each pixel in the image containing the label collected by the image acquisition unit, including: if the depth average value of the pixel points in the historical area image is different from the depth average value of the pixel points in the area image, then the area corresponding to the label is used as the speed adjustment area of the moving target to adjust the speed of the moving target in the speed adjustment area.
[0056] For example, if the average depth of the pixels in the historical region image differs from the average depth of the pixels in the region image, it indicates that the supporting surface of the area corresponding to the label is uneven. In this case, the area is designated as a speed adjustment area, and the speed of the moving target in the speed adjustment area needs to be adjusted to prevent the moving target from becoming unstable when moving on the uneven supporting surface. Alternatively, if the average depth of the pixels in the historical region image differs from the average depth of the pixels in the region image, the moving target in the speed adjustment area is controlled to stop moving to prevent the moving target from tipping over due to the uneven supporting surface.
[0057] In an embodiment of the present application, the method further includes: if the difference between the depth average value of the pixel points in the current image captured by the image acquisition unit on the moving target and the preset depth average value is greater than the preset difference, then adjusting the speed of the moving target; wherein the preset depth average value is determined based on the distance between the reference plane and the image acquisition unit.
[0058] Exemplarily, the preset difference value can be determined based on actual conditions, for example, it can be one tenth of the preset depth average value. The smaller the preset difference value is set, the more accurately it can be judged whether the depth average value of the pixel points is consistent with the preset depth average value. The preset depth average value is determined in advance based on the distance between the reference plane and the image acquisition unit. During the process of real-time image acquisition by the image acquisition unit on the mobile target, if the difference between the depth average value of the pixel points and the preset depth average value in the current image acquired by the image acquisition unit on the mobile target is greater than the preset difference, it means that the distance between the supporting plane and the reference plane has changed, that is, the supporting plane is not flat. At this time, the speed of the mobile target can be adjusted to avoid accidents such as instability and tipping of the mobile target during movement. If the difference between the depth average value of the pixel points and the preset depth average value in the current image acquired by the image acquisition unit on the mobile target is not greater than the preset difference, it means that the depth average value of the pixel points is not much different from the preset depth average value, and is approximately consistent, and the supporting plane is determined to be flat.
[0059] The beneficial effect of the above scheme is that, based on the depth information of the image captured by the image acquisition unit on the mobile target, the flatness of the carrying surface can be analyzed in a timely manner, and the speed of the moving target can be adjusted in a timely manner to avoid the mobile target from tipping over when it continues to move at the original speed due to an uneven carrying surface.
[0060] Figure 3This is an application scenario diagram for the specific implementation of the mobile target positioning method provided by another embodiment of this application. The embodiment of this application is an introduction to a specific implementation manner of the mobile target positioning method. In the embodiment of this application, the mobile target is a robot, which includes a processor and a memory. The processor can execute the mobile target positioning method in any of the above embodiments. An image acquisition unit is installed on the robot. The image acquisition unit is a binocular image acquisition unit or a multiocular image acquisition unit. The robot moves on a horizontal ground plane. The reference plane is located above the ground plane and parallel to the horizontal ground plane. The distance between the reference plane and the horizontal ground plane is within the depth detection range of the image acquisition unit. The tag is set on the reference plane. The distance between the lower surface of the tag and the reference plane can be set to 10 cm. The lower surface of the tag is the surface recognized by the image acquisition unit. The application scenario diagram is as Figure 3 shown. The specific implementation is as follows:
[0061] Assume that the height of the robot is 1 m, the image acquisition unit is installed on the top of the robot's head, the height of the wall is 7 m, the depth detection range of the area array binocular depth camera is 0.6 m to 8 m, and the size range of the image captured by the image acquisition unit is 1280 * 960 pixels. The tag is pasted 10 cm below the position from the wall. The robot continuously acquires images of the reference plane during movement. When the robot moves near the tag, an image containing the tag is captured. There is depth information corresponding to 1280 * 960 pixel points in this image. Traverse the depth information of each pixel point and calculate the average value to obtain the depth average value avge. Then traverse the depth values of each pixel point in the image to find the pixel points where the absolute value of the difference fabs|avge - len| between the depth value and avge is near 10 cm. The area composed of these pixel points is the tag area. Other interfering pixel points can be ignored. Assume that the tag area is 100 * 100 pixels. Then only the image with a size of 100 * 100 pixels needs to be detected and recognized, instead of detecting the image with a size of 1280 * 960 pixels, which can reduce the calculation amount by about 90% and greatly improve the operation efficiency. At the same time, the flatness of the horizontal ground plane can also be determined by using the depth information of the images continuously acquired with the image containing the tag. Calculate the average value Ha of the pixel point depths of the previously acquired image containing the tag and the information of the average value Hb of the pixel point depths of the currently acquired image containing the tag. If Ha < Hb, it means that the machine is moving downward from the flat ground to the sloping ground. At this time, the robot can be controlled to decelerate. Similarly, if Ha > Hb, it means that the machine is moving upward from the flat ground to the sloping ground. At this time, the robot can be controlled to decelerate. Among them, Ha can also be the value obtained by averaging the depth information of multiple images containing the tag acquired previously.
[0062] Figure 4This is a schematic diagram of the structure of a mobile target positioning device provided by an embodiment of the present application. The device can be used to locate a mobile target. Typically, the embodiment of the present application is suitable for determining the tag area and then locating the mobile target by using the depth information obtained by the image acquisition unit on the mobile target. The device can be implemented by software and / or hardware, and can be integrated into an electronic device. Figure 4 , the device specifically includes:
[0063] A depth information acquisition module 310 is configured to acquire depth information of each pixel in an image of a region containing a tag, captured by an image acquisition unit on the mobile target; wherein the image acquisition unit is a binocular image acquisition unit or a multi-camera image acquisition unit, the tag is disposed on a reference plane, and the surface of the tag recognized by the image acquisition unit is located on a different plane from the reference plane;
[0064] a label region extraction module 320 for extracting a label region from the region image based on depth information of each pixel;
[0065] The positioning determination module 330 is configured to determine the positioning of the mobile target based on the feature points in the tag area.
[0066] In the embodiment of the present application, the label region extraction module 320 includes:
[0067] a depth average value determining unit, configured to determine a depth average value of pixels in the regional image based on depth information of each pixel;
[0068] The extraction unit is configured to extract the label area from the area image according to the difference between the depth value in the depth information of each pixel and the depth average value.
[0069] In the embodiment of the present application, the extraction unit is specifically used to:
[0070] Filtering label pixels from the pixels of the regional image according to a difference between a depth value in the depth information of each pixel and the depth average value;
[0071] The area where the label pixel point is located is used as the label area.
[0072] In the embodiment of the present application, the extraction unit is specifically used to:
[0073] If the difference between the depth value of the pixel point and the depth average value is less than a preset depth difference threshold, the pixel point is determined to be a label pixel point; wherein the preset depth value is determined based on the distance between the reference plane and the surface on which the label is recognized by the image acquisition unit.
[0074] In an embodiment of the present application, the device further includes:
[0075] The region information determination module is used to determine the region information of the region corresponding to the label based on the depth information of each pixel point in the image containing the label acquired by the image acquisition unit; wherein the region information includes the flatness information of the region and / or the speed adjustment region information of the moving target.
[0076] In the embodiment of the present application, the region information determination module includes:
[0077] a depth information acquisition unit, configured to acquire depth information of each pixel in the historical region image containing the label acquired by the image acquisition unit; wherein the historical region image is acquired before the current region image acquisition moment;
[0078] The flatness determination unit is used to determine the flatness of the mobile target bearing plane corresponding to the tag according to the depth information of each pixel point in the historical area image and the depth information of each pixel point in the area image.
[0079] In the embodiment of the present application, the region information determination module includes:
[0080] A speed adjustment unit is configured to use the area corresponding to the label as a speed adjustment area for the moving target if the depth average value of the pixel points in the historical area image is different from the depth average value of the pixel points in the area image, so as to adjust the speed of the moving target in the speed adjustment area.
[0081] In an embodiment of the present application, the device further includes:
[0082] an adjustment module, configured to adjust the speed of the moving target if a difference between an average depth value of pixels in a current image captured by an image capture unit on the moving target and a preset average depth value is greater than a preset difference;
[0083] The preset depth average value is determined according to the distance between the reference plane and the image acquisition unit.
[0084] The mobile target positioning device provided in the embodiments of the present application can execute the mobile target positioning method provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method.
[0085] Figure 5 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application. Figure 5 A block diagram of an exemplary electronic device 412 suitable for implementing embodiments of the present application is shown. Figure 5The electronic device 412 shown is merely an example and should not limit the functionality and scope of use of the embodiments of the present application.
[0086] like Figure 5 As shown, the electronic device 412 may include: one or more processors 416; and a memory 428 for storing one or more programs. When the one or more programs are executed by the one or more processors 416, the one or more processors 416 implement the mobile target positioning method provided in the embodiment of the present application, including:
[0087] Acquiring depth information of each pixel in an image of a region containing a tag captured by an image acquisition unit on a mobile target; wherein the tag is disposed on a reference plane, and a surface of the tag recognized by the image acquisition unit and the reference plane are different planes;
[0088] Extracting a label area from the area image according to the depth information of each pixel;
[0089] The positioning of the moving object is determined according to the feature points in the label area.
[0090] Components of the electronic device 412 may include, but are not limited to, one or more processors or processor 416 , memory 428 , and a bus 418 that connects the various device components, including the memory 428 and the processor 416 .
[0091] Bus 418 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. Examples of these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, a processed ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0092] The electronic device 412 typically includes a variety of computer-readable storage media, which can be any available storage media that can be accessed by the electronic device 412, including volatile and non-volatile storage media, removable and non-removable storage media.
[0093] The memory 428 may include computer-readable storage media in the form of volatile memory, such as random access memory (RAM) 430 and / or cache memory 432. The electronic device 412 may further include other removable / non-removable, volatile / non-volatile computer storage media. By way of example only, the storage system 434 may be configured to read and write non-removable, non-volatile magnetic storage media ( Figure 5Not shown, often called a "hard drive"). Although Figure 5 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical storage medium) may be provided. In these cases, each drive may be connected to bus 418 via one or more data storage medium interfaces. Memory 428 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of various embodiments of the present application.
[0094] A program / utility 440 having a set (at least one) of program modules 442 may be stored, for example, in memory 428. Such program modules 442 include, but are not limited to, operating devices, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may include an implementation of a network environment. Program modules 442 generally implement the functions and / or methods of the embodiments described herein.
[0095] The electronic device 412 may also communicate with one or more external devices 414 (e.g., a keyboard, a pointing device, a display 424, etc.), and may also communicate with one or more devices that enable a user to interact with the electronic device 412, and / or any device that enables the electronic device 412 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed through an input / output (I / O) interface 422. Furthermore, the electronic device 412 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 420. Figure 5 As shown, the network adapter 420 communicates with other modules of the electronic device 412 via the bus 418. Figure 5 Not shown, other hardware and / or software modules may be used in conjunction with electronic device 412, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID devices, tape drives, and data backup storage devices.
[0096] The processor 416 executes various functional applications and data processing by running at least one of the other programs among the multiple programs stored in the memory 428, such as implementing a mobile target positioning method provided in an embodiment of the present application.
[0097] Figure 6 This is a schematic diagram of the structure of a mobile target positioning system provided in one embodiment of the present application. The mobile target positioning system provided in this embodiment of the present application includes:
[0098] The tag 501 is disposed on a reference plane, and the surface of the tag 501 recognized by the image acquisition unit 503 and the reference plane are in different planes;
[0099] A mobile target 502 and an image acquisition unit 503 disposed on the mobile target, for acquiring images of the reference plane and the tag 501 disposed on the reference plane, wherein the image acquisition unit 503 is a binocular camera or a multi-camera;
[0100] The electronic device 504 is disposed in the mobile target 502 or outside the mobile target 502. The electronic device can implement the mobile target positioning method in any of the above embodiments.
[0101] In the embodiment of the present application, the image acquisition unit 503 can communicate with the electronic device 504 via wired or / and wireless means. The mobile target 502 and the electronic device 504 can also be integrated, that is, the mobile target in this application is an electronic device, which can implement the mobile target positioning method in any embodiment.
[0102] The mobile target positioning system provided in the embodiments of the present application can execute the mobile target positioning method provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method.
[0103] One embodiment of the present application provides a storage medium containing computer-executable instructions. When the computer-executable instructions are executed by a computer processor, the computer-executable instructions are used to perform a method for locating a mobile target, including:
[0104] Acquiring depth information of each pixel in an image of a region containing a tag captured by an image acquisition unit on a mobile target; wherein the tag is disposed on a reference plane, and a surface of the tag recognized by the image acquisition unit and the reference plane are different planes;
[0105] Extracting a label area from the area image according to the depth information of each pixel;
[0106] The positioning of the moving object is determined according to the feature points in the label area.
[0107] The computer storage medium of the embodiment of the present application can adopt any combination of one or more computer-readable storage media. The computer-readable storage medium can be a computer-readable signal storage medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor device, apparatus or device, or any combination thereof. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In an embodiment of the present application, a computer-readable storage medium can be any tangible storage medium containing or storing a program, which can be used by an instruction execution device, device or device or used in combination with it.
[0108] A computer-readable signal storage medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal storage medium may also be any computer-readable storage medium other than a computer-readable storage medium that can transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution device, apparatus, or component.
[0109] The program code embodied on the computer-readable storage medium may be transmitted using any appropriate storage medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0110] The computer program code for performing the operations of the present application can be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or device. In cases involving a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0111] Note that the above are only preferred embodiments of the present application and the technical principles employed. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application has been described in more detail through the above embodiments, the present application is not limited to the above embodiments and may include many other equivalent embodiments without departing from the scope of the present application. The scope of the present application is determined by the scope of the appended claims.
Claims
1. A method for positioning a mobile target, characterized in that: The method comprises: Acquire depth information of each pixel in an area image containing a tag acquired by an image acquisition unit on a mobile target; wherein the tag is set on a reference plane, and a surface of the tag recognized by the image acquisition unit belongs to a different plane from the reference plane; Extracting a label region from the region image according to the depth information of each pixel; Determining the location of the mobile target according to the feature points in the label area; The method further comprises: Determine the region information of the region corresponding to the label according to the depth information of each pixel in the image containing the label acquired by the image acquisition unit; wherein the region information includes the flatness information of the region and / or the speed adjustment region information of the moving object; Determining area information of an area corresponding to the label according to depth information of each pixel in the image containing the label acquired by the image acquisition unit, including: Acquire the depth information of each pixel in the historical region image containing the label acquired by the image acquisition unit; wherein the historical region image is acquired before the current region image acquisition moment; Determine the flatness of the mobile target bearing plane corresponding to the tag according to the depth information of each pixel in the historical area image and the depth information of each pixel in the area image; Determining area information of an area corresponding to the label according to depth information of each pixel in the image containing the label acquired by the image acquisition unit, including: If the average depth value of the pixels in the historical area image is different from the average depth value of the pixels in the area image, it means that the carrying plane of the moving target in the area corresponding to the label is uneven. The area corresponding to the label is used as the speed adjustment area of the moving target to adjust the speed of the moving target in the speed adjustment area.
2. The method according to claim 1, characterized in that Extracting a label region from the region image according to the depth information of each pixel point includes: Determine the average depth of the pixels in the image according to the depth information of each pixel; The label area is extracted from the area image according to the difference between the depth value in the depth information of each pixel and the depth average value.
3. The method according to claim 2, characterized in that Extracting a label area from the area image according to a difference between a depth value in the depth information of each pixel and the depth average value includes: Filtering label pixels from the pixels of the regional image according to the difference between the depth value in the depth information of each pixel and the depth average value; The area where the label pixel point is located is taken as the label area.
4. The method according to claim 3, characterized in that According to the difference between the depth value in the depth information of each pixel and the depth average value, the label pixel points are selected from the pixel points of the regional image, including: If the difference between the depth value of the pixel point and the depth average value is less than the preset depth value, the pixel point is determined to be a label pixel point; wherein the preset depth value is determined based on the distance between the reference plane and the surface on which the label is recognized by the image acquisition unit.
5. The method according to claim 1, characterized in that The method further comprises: If the difference between the depth average value of the pixels in the current image captured by the image capture unit on the moving target and the preset depth average value is greater than the preset difference value, the speed of the moving target is adjusted; The preset depth average value is determined according to the distance between the reference plane and the image acquisition unit.
6. A mobile target positioning device, characterized in that: The device comprises: A depth information acquisition module, used to acquire depth information of each pixel in an area image containing a label acquired by an image acquisition unit on a mobile target; wherein the label is set on a reference plane, and a surface of the label recognized by the image acquisition unit belongs to a different plane from the reference plane; A label region extraction module, used to extract the label region from the region image according to the depth information of each pixel; A positioning determination module, used to determine the position of the mobile target according to the feature points in the label area; A region information determination module, configured to determine region information of a region corresponding to the label according to depth information of each pixel in an image containing the label acquired by an image acquisition unit; wherein the region information includes flatness information of the region and / or speed adjustment region information of the moving object; The area information determination module includes: A depth information acquisition unit, used to acquire depth information of each pixel in the historical region image containing the label acquired by the image acquisition unit; wherein the historical region image is acquired before the current region image acquisition moment; A flatness determination unit, configured to determine the flatness of the mobile target bearing plane corresponding to the tag according to the depth information of each pixel point in the historical area image and the depth information of each pixel point in the area image; The area information determination module includes: A speed adjustment unit is used to adjust the speed of the moving target in the speed adjustment area by using the area corresponding to the label as the speed adjustment area of the moving target if the depth average value of the pixel points in the historical area image is different from the depth average value of the pixel points in the area image, indicating that the carrying plane of the moving target in the area corresponding to the label is uneven.
7. An electronic device, characterized in that: The electronic device comprises: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the mobile target positioning method according to any one of claims 1 to 5.
8. A mobile target positioning system, characterized in that: The system comprises: A label is arranged on a reference plane, wherein a surface of the label recognized by the image acquisition unit and the reference plane belong to different planes; A mobile target and an image acquisition unit disposed on the mobile target, for acquiring images of the reference plane and the label; An electronic device is arranged in a mobile target or outside a mobile target, and is used to implement a mobile target positioning method as described in any one of claims 1 to 5.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the mobile target positioning method as described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Method, device and system for detecting road surface conditions through depth camera
CN108445874A
Container position detection method and device
CN110349216A
