Container truck positioning method and device, electronic equipment and storage medium

Through the binocular vision positioning algorithm and multi-view image collection, the problem of judging the alignment of the spreader and the container truck is solved, and the efficiency and safety of container loading and unloading operations are improved.

CN118701964APending Publication Date: 2024-09-27SANY MARINE HEAVY INDUSTRY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410780796.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In container loading and unloading operations, it is difficult to accurately judge whether the spreader is aligned with the container truck with the existing technology. Especially in a multi-girder crane environment, the installation position of the image acquisition equipment is limited, resulting in viewing angle problems and making it impossible to accurately determine whether the spreader and the container truck are aligned. relative position.

Method used

Using a binocular vision positioning algorithm and multiple image acquisition devices, by setting the parallax angle greater than the preset angle to ensure that the image acquisition device is on the same side of the spreader, multi-view images are obtained, and image recognition and simulated image calculation are used to determine the truck and crane relative positional relationship of tools.

Benefits of technology

It enables accurate judgment of the alignment status of the spreader and the container truck in a complex environment, improves the efficiency and safety of container loading and unloading operations, and ensures the correct alignment of the spreader and the container truck.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118701964A
    Figure CN118701964A
Patent Text Reader

Abstract

The invention aims to provide a method for positioning a container truck according to a binocular vision positioning algorithm and images acquired by a plurality of image acquisition devices. A plurality of image acquisition devices are mounted on a crane beam structure, and a specific rule for selecting the mounting positions of the image acquisition devices is provided. The visual angles of the image acquisition devices relative to the lifting appliance and the container truck are different, and parallax exists between the image acquisition devices. By setting the minimum value of the parallax angle and limiting the at least two image acquisition devices to be located on the same side of the lifting appliance, the accuracy of a result obtained by applying a binocular vision positioning algorithm is ensured. Therefore, the relative position relation between the container truck and the lifting appliance can be accurately obtained according to a binocular vision positioning algorithm and information in the to-be-analyzed image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of container loading and unloading operations, and in particular to a container truck positioning method, device, electronic equipment and storage medium. Background Art

[0002] In container loading and unloading operations, it is necessary to determine the position of the container truck (the truck that transports the container) relative to the spreader, and then determine whether the spreader is aligned with the container truck. Only when it is determined that the spreader is aligned with the container truck will the container loading and unloading operation continue. Therefore, the positioning method of the container truck will directly affect the efficiency and safety of container loading and unloading operations.

[0003] Due to the heavy weight of containers, specialized engineering machinery, such as bridge cranes or gantry cranes (gantry cranes) based on the deformation of bridge cranes, is generally used in port and other environments for container lifting operations. For cranes with multiple main beams, the main beam of the spreader may not pass directly above the spreader. If the image acquisition device is installed at a position other than directly above the spreader, it may not be possible to accurately determine whether the spreader is aligned with the container truck due to the viewing angle. Summary of the invention

[0004] In view of this, the present invention is committed to providing a container truck positioning method, device, electronic device and storage medium, so as to provide a method for positioning a container truck based on a binocular vision positioning algorithm and images captured by multiple image acquisition devices.

[0005] In a first aspect, an embodiment of the present application provides a container truck positioning method, comprising:

[0006] Acquire images to be analyzed including a container truck and a spreader, the images to be analyzed including at least two images acquired by at least two image acquisition devices installed on the crane beam structure, respectively, a parallax angle formed by projections of at least two of the image acquisition devices and the spreader on a horizontal plane with the spreader as a vertex is always greater than a preset angle, a container loading and unloading working environment is divided into a first space and a second space with a plane passing through any point on a straight line where the container truck head is located and perpendicular to the horizontal plane as a dividing interface, and at least two of the image acquisition devices are located in the first space or the second space;

[0007] Performing image recognition on the image to be analyzed, and extracting the container truck and the spreader from the image to be analyzed as image recognition results;

[0008] The relative position relationship between the container truck and the spreader is determined according to the binocular vision positioning algorithm and the image recognition result.

[0009] Optionally, performing image recognition on the image to be analyzed and extracting the container truck and the spreader from the image to be analyzed as image recognition results includes:

[0010] The corner points of the loading structure of the container truck and the sling coil of the sling are used as identification features, and an image having the identification features is identified in the image to be analyzed as the image recognition result.

[0011] Optionally, determining the relative position relationship between the container truck and the spreader according to a binocular vision positioning algorithm and the image recognition result includes:

[0012] Determining the distance between the image acquisition device and the spreader according to the image recognition result;

[0013] According to the distance between the image acquisition device and the spreader and the binocular vision positioning algorithm, a simulated image is calculated and established, wherein the simulated image is an image including the container truck and the spreader acquired by assuming that there is an image acquisition device installed at the simulated image acquisition position, and the straight line formed by the simulated image acquisition position and the position of the spreader is perpendicular to the straight line where the container truck head is facing;

[0014] The relative positional relationship between the container truck and the spreader is determined according to the relative positional relationship between the container truck and the spreader in the simulation image.

[0015] Optionally, determining the relative positional relationship between the container truck and the spreader according to the relative positional relationship between the container truck and the spreader in the simulated image includes:

[0016] According to the relative positional relationship between the container truck and the spreader in the simulation image, a first relative positional relationship between the loading structure of the container truck and the spreader coil of the spreader in the direction in which the container truck head is facing is determined.

[0017] Optionally, the method further includes:

[0018] Obtaining the length of the loading structure of the container truck and the length of the container hoisted by the hoist, and determining a loading plan;

[0019] After determining the first relative positional relationship between the loading structure of the container truck and the spreader coil of the spreader in the direction in which the container truck head is facing according to the relative positional relationship between the container truck and the spreader in the simulated image, the method further includes:

[0020] According to the first relative position relationship and the loading plan, the container truck is guided to move to a position that meets the loading plan to perform operation.

[0021] Optionally, the simulated image acquisition position coincides with a projection of the center of gravity of the sling coil of the sling on a horizontal plane;

[0022] Determining the relative positional relationship between the container truck and the spreader according to the relative positional relationship between the container truck and the spreader in the simulated image includes:

[0023] According to the relative positional relationship between the container truck and the spreader in the simulation image, a second relative positional relationship between the loading structure of the container truck and the spreader coil of the spreader in a direction perpendicular to the direction of the container truck head is determined.

[0024] Optionally, there are at least two image acquisition devices among the image acquisition devices, so that a straight line determined by projection points of the two image acquisition devices on a horizontal plane is parallel to a straight line along which the truck head is directed.

[0025] In a second aspect, an embodiment of the present application provides a container truck positioning device, comprising:

[0026] An image acquisition unit is used to acquire images to be analyzed including a container truck and a spreader, wherein the images to be analyzed include at least two images acquired by at least two image acquisition devices installed on the crane beam structure, respectively; a parallax angle formed by projections of at least two of the image acquisition devices and the spreader on a horizontal plane with the spreader as a vertex is always greater than a preset angle; a container loading and unloading working environment is divided into a first space and a second space by a plane passing through any point on a straight line where the container truck head is located and perpendicular to the horizontal plane as a dividing interface; and at least two of the image acquisition devices are located in the first space or the second space;

[0027] An image recognition unit is used to perform image recognition on the image to be analyzed, and extract the container truck and the spreader from the image to be analyzed as an image recognition result;

[0028] A positioning unit is used to determine the relative position relationship between the container truck and the spreader according to a binocular vision positioning algorithm and the image recognition result.

[0029] In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor;

[0030] The memory is connected to the processor and is used to store programs;

[0031] The processor is used to implement the container truck positioning method as described in the first aspect by running the program in the memory.

[0032] In a fourth aspect, an embodiment of the present application provides a storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for locating a container truck as described in the first aspect is implemented.

[0033] The present application provides a method for positioning a container truck. Multiple image acquisition devices are installed on the crane beam structure and specific rules for selecting the installation positions of the image acquisition devices are proposed. Each image acquisition device has a different viewing angle relative to the spreader and the container truck, and has parallax between each other. By setting a minimum parallax angle and limiting at least two image acquisition devices to be located on the same side of the spreader, the accuracy of the results obtained by applying a binocular vision positioning algorithm is guaranteed. This allows the relative position relationship between the container truck and the spreader to be accurately obtained based on the binocular vision positioning algorithm and the information in the image to be analyzed. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0035] Figure 1 A schematic diagram of a flow chart of a method for locating a container truck provided in an embodiment of the present application.

[0036] Figure 2 A schematic top view of a crane with two main beams performing a container lifting operation provided in an embodiment of the present application.

[0037] Figure 3 A schematic side view of the crane provided in an embodiment of the present application performing a container lifting operation.

[0038] Figure 4 This is a schematic diagram used in the embodiment of the present application to illustrate the relationship between the images of the spreader and the container truck and the installation position of the image acquisition device when the crane performs a container lifting operation.

[0039] Figure 5 This is a schematic diagram used in the embodiment of the present application to illustrate the installation position of the image acquisition device by taking a gantry crane as an example.

[0040] Figure 6 This is a schematic diagram used in the embodiment of the present application to illustrate the "parallax angle formed by the projections of two image acquisition devices and the sling on the horizontal plane with the sling as the vertex".

[0041] Figure 7 This is a schematic diagram used to illustrate the “straight line where the front of the container truck is facing” in the embodiment of the present application.

[0042] Figure 8 This is a schematic diagram used to illustrate the simulated image acquisition position in the embodiment of the present application.

[0043] Fig. 9 It is a schematic diagram of flipping the inverted image in the imaging principle of the image acquisition device in the embodiment of the present application and flipping the inverted image in the imaging principle of the simulated image acquisition.

[0044] Fig.10 It is a schematic diagram of the imaging principle of the image acquisition device and the imaging principle of the simulated image acquisition in the embodiment of the present application.

[0045] Fig.11 Schematic diagram of the loading scheme in the embodiment of the present application.

[0046] Fig.12 It is a structural schematic diagram of a container truck positioning device in an embodiment of the present application.

[0047] Fig.13 It is a schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0049] The first embodiment of the present application provides a method for locating a container truck, such as Figure 1 As shown, the method may include the following steps:

[0050] Step 101, obtaining images to be analyzed including a container truck and a spreader, wherein the images to be analyzed include at least two images respectively obtained by at least two image acquisition devices installed on the crane beam structure, wherein a parallax angle formed by projections of at least two image acquisition devices among the image acquisition devices and the spreader on a horizontal plane with the spreader as a vertex is always greater than a preset angle, and a container loading and unloading working environment is divided into a first space and a second space by a plane passing through any point on a straight line where a container truck head is located and perpendicular to the horizontal plane as a dividing interface, and at least two image acquisition devices among the image acquisition devices are located in the first space or the second space.

[0051] by Figure 2 For example, Figure 2 This is a top view schematic diagram of a container lifting operation using a crane with two main beams. Figure 2In the figure, the two long sides of rectangle 201 represent the two main beams of the crane. Rectangle 202 represents the container truck, and rectangle 203 represents the spreader. Rectangle 203 has a circle P in it, representing the coil of the spreader.

[0052] based on Figure 2 In the above example, the technical problem of "how to accurately determine whether the spreader is aligned with the container truck" can be further described as "how to obtain the relative position relationship between the center of gravity of rectangle 203 and the center of gravity of rectangle 202". If the coil P of the spreader is exactly located at the center of gravity of the spreader, i.e. rectangle 203, and an image acquisition device can be installed directly above the coil P of the spreader, then the above technical problem seems to be very easy to solve - an image acquisition device can be installed directly above point P, and the viewing angle of the image acquisition device is perpendicular to the horizontal plane downward. In the image captured under this viewing angle, the relative position relationship between the spreader and the container truck is accurate and has no parallax.

[0053] However, Figure 3 For example, Figure 3 This is a side view of a crane performing container lifting operations. Figure 3 The figure still includes the coil P of the spreader, the rectangle 203 representing the spreader and the rectangle 202 representing the container truck. Figure 3 A rectangle 301 also appears in the figure, and the rectangle 301 represents a container. Figure 3 It can be seen that the image acquisition device installed directly above the spreader is easily blocked by the container during loading and unloading operations and cannot obtain images including the container truck. Therefore, the feasibility of installing the image acquisition device directly above the spreader is low.

[0054] In addition, for multi-girder cranes, the main beam of the spreader may not pass directly above the spreader. Figure 2 In the crane with two main beams shown, there is space directly above the spreader, and no main beam passes through there, so the image acquisition equipment cannot be installed.

[0055] If the installation position of the image acquisition device is changed according to the structure of the crane, for example Figure 4 As shown, an image acquisition device is installed in Figure 4 Point C1 in the top view on the left side of the figure, according to the dotted line representing the light path in the figure, the image captured by the image acquisition device installed at position C1 should be Figure 4 As shown in the right-side stereogram, it is clear that the image acquired by the image acquisition device at C1 is not sufficient to determine whether the container truck is aligned with the spreader.

[0056] One solution is to use a binocular vision positioning algorithm. Binocular vision is a method of locating objects by simulating the principle of human vision. Observe an object from two or more points, obtain images at different perspectives, and determine the three-dimensional spatial position information of the object based on the matching relationship between pixels in the images, through geometric principles and the offset between pixels. However, how to reasonably select the installation position of the image acquisition device to ensure that the acquired multi-perspective images can be used to apply the binocular vision positioning algorithm to locate the container truck in the container loading and unloading work environment?

[0057] In this regard, this embodiment specifically defines the following rules to reasonably select the installation location of the image acquisition device:

[0058] Rule 1: The images to be analyzed include at least two images acquired by at least two image acquisition devices installed on the crane beam structure.

[0059] Rule 1 ensures that there are at least two image acquisition devices installed on the crane beam structure, and at least two images are required as images to be analyzed in order to locate the container truck using the binocular vision positioning algorithm. Since there may be a situation where the images of multiple image acquisition devices are stitched into one image, the number of image acquisition devices should be greater than or equal to the number of images in the image to be analyzed.

[0060] The image acquisition device is installed on the beam structure of the crane. For example, Figure 5 It is an image of a gantry crane, including the main beam and supporting structure (side beam). The image acquisition device can be installed on the main beam, such as C1 and C2, or on the side beam, such as C3.

[0061] It should be noted that, although in theory, the binocular vision positioning algorithm does not limit the horizontal height of the image acquisition device, for example, there are two image acquisition devices installed at Figure 5 In the C2 and C3 positions, the C2 and C3 positions are regarded as binocular, and the positioning of the container truck can be achieved in theory. However, placing the image acquisition devices at different levels will make the calculation process of the binocular vision positioning algorithm more complicated. Therefore, a preferred image installation position is: installing the image acquisition devices at the same level.

[0062] Rule 2: The parallax angle formed by the projections of at least two image acquisition devices among the image acquisition devices and the sling on the horizontal plane with the sling as the vertex is always greater than the preset angle.

[0063] For example, when the distance between the two image acquisition devices representing binocular vision gradually decreases until it decreases to 0, the positions of the two image acquisition devices overlap. At this time, there is no parallax between the images acquired by the image acquisition devices, and the binocular vision positioning algorithm cannot be used to locate the object. As the distance between the two image acquisition devices gradually decreases, the parallax angle formed by the image acquisition device-object-image acquisition device is also constantly decreasing, and the object position error calculated by the binocular vision positioning algorithm will gradually increase.

[0064] Therefore, Rule 2 ensures that the parallax angle formed by the projection of at least two image acquisition devices among the image acquisition devices and the sling on the horizontal plane with the sling as the vertex is always greater than the preset angle, so as to ensure the accuracy of the results obtained by applying the binocular vision positioning algorithm.

[0065] For example, Figure 6 As shown, point C2, point C4 and the hoist coil P form a parallax angle α on the horizontal plane. If the length of line segment C2C4 is too small, the angle α is too small, which will cause a large error in the calculation result of the binocular vision positioning algorithm. Therefore, the preset angle should be set to be greater than α.

[0066] Rule 3: The container loading and unloading working environment is divided into a first space and a second space with a plane perpendicular to the horizontal plane and any point on the straight line where the head of the container truck is located as the dividing interface, and at least two of the image acquisition devices are located in the first space or the second space.

[0067] Another way to improve the accuracy of the results obtained by using the binocular vision positioning algorithm is to minimize the differences between the multiple distances between the multiple image acquisition devices and the object. Figure 7 For example, when the spreader moves to one side of the crane, if C2 and C5 are selected as the installation positions of the image acquisition device, the length of the line segment formed by the center of gravity of the spreader coil P and point C5 is obviously much different from the length of the line segment formed by the center of gravity of the spreader coil P and point C2. When C1 and C2 are selected as the installation positions of the image acquisition device, the length of the line segment formed by the center of gravity of the spreader coil P and point C1 is less different from the length of the line segment formed by the center of gravity of the spreader coil P and point C2.

[0068] In summary, this embodiment proposes to select any point on the straight line where the truck head is located and make a plane perpendicular to the horizontal plane, with reference to Figure 7 The dashed line in Figure 7 The plane perpendicular to the horizontal plane is a line in the top view. The plane divides the container loading and unloading working environment into a first space and a second space. Figure 7As shown, at least two of the image acquisition devices are located in the first space or the second space of the two spaces. For example, the installation positions of a group of image acquisition devices are points C1, C2 and C5, where points C1 and C2 are both located in the second space. Then the installation positions of this group of image acquisition devices comply with Rule 3.

[0069] In summary, this embodiment proposes the above rules to ensure the accuracy of positioning the container truck using the binocular vision positioning algorithm.

[0070] Step 102: perform image recognition on the image to be analyzed, and extract the container truck and the spreader from the image to be analyzed as the image recognition result.

[0071] This embodiment proposes to perform image recognition on the acquired multiple images to be analyzed. The image recognition method can be selected according to actual needs, such as YOLO image recognition or CNN image recognition, and the most accurate image recognition method can be selected.

[0072] Step 103: Determine the relative position relationship between the container truck and the spreader according to the binocular vision positioning algorithm and the image recognition result.

[0073] In the above steps, several rules for limiting the image acquisition device are proposed. Based on the above rules, a more reasonable installation position of the image acquisition device can be selected to ensure the accuracy of the results obtained by applying the binocular vision positioning algorithm.

[0074] Choosing different reference objects will change the way of describing the position of an object. For example, if you only need to determine the position of a container truck, a common way to describe the position of the container truck is to select a coordinate origin, establish a spatial coordinate system, calculate the coordinates of the container truck in the spatial coordinate system, and use the coordinates to describe the position of the container truck.

[0075] Since the container truck positioning method described in this embodiment only needs to determine whether the spreader has been aligned with the container truck, the absolute position of the container truck in space can be described without using a reference system in this embodiment. Instead, it is only necessary to accurately describe the relative position relationship between the container truck and the spreader based on the binocular vision positioning algorithm through the parallax between the image acquisition devices.

[0076] The relative position relationship can be described in the form of: the container truck deviates in the x direction relative to the spreader. The word x describing the position relationship can be any word that can help the loading and unloading staff understand the spatial relationship. For example, east, west, south, north, left, right, etc. Furthermore, the relative position relationship can also include specific data, such as the container truck deviates in the x direction relative to the spreader by a distance y.

[0077] The second embodiment of the present application further defines the container truck positioning method in the first embodiment in more detail and specificity. Some or all of the technical features in the second embodiment can be combined with or replaced with the first embodiment alone or in combination, so as to obtain more feasible data compression methods.

[0078] The following is a detailed description of the container truck positioning method in the second embodiment of the present application:

[0079] Optionally, image recognition is performed on the image to be analyzed, and the container truck and the spreader are extracted from the image to be analyzed as image recognition results, including: taking the corner points of the loading structure of the container truck and the spreader coil of the spreader as identification features, and identifying an image with the identification features in the image to be analyzed as the image recognition result.

[0080] For image recognition, selecting more obvious and easily recognizable features of the object to be identified helps improve the accuracy of the image recognition results.

[0081] This embodiment proposes the corner points of the loading structure of the container truck and the sling coil of the sling as identification features. Specifically, the color of the container truck generally has a large color difference with the ground. For a parallelogram, it is only necessary to obtain the vertex positions of the four corners of the parallelogram to locate the position of the parallelogram in the image. Therefore, the corner points of the loading structure of the container truck have a large color difference and are easy to identify, and the point-shaped identification target is small, which is suitable as an identification feature. The sling coil is a circular structure that rarely appears in engineering machinery structures. Its shape is significantly different from other rectangular structures, and it is also easy to identify, which is suitable as an identification feature.

[0082] Optionally, the relative position relationship between the container truck and the spreader is determined based on the binocular vision positioning algorithm and the image recognition result, including: determining the distance between the image acquisition device and the spreader based on the image recognition result; calculating and establishing a simulation image based on the distance between the image acquisition device and the spreader and the binocular vision positioning algorithm, the simulation image is an image including the container truck and the spreader acquired by assuming that there is an image acquisition device installed at the simulation image acquisition position, the straight line formed by the simulation image acquisition position and the position of the spreader is perpendicular to the straight line where the container truck head is facing; determining the relative position relationship between the container truck and the spreader based on the relative position relationship between the container truck and the spreader in the simulation image.

[0083] As described in the first embodiment, if there is no occlusion problem and there is an installation position, the image acquisition device is installed at a position without parallax, such as directly above the spreader coil, which can easily determine whether the spreader and the container truck are aligned. However, due to practical conditions, this solution is often not implemented in actual applications.

[0084] In summary, assuming that there is a simulated image acquisition position with no parallax relative to the spreader and the container truck, if the image acquisition device is installed at the assumed position, the image including the container truck and the spreader is called a simulated image. Then, the simulated image can also be used to simply determine whether the spreader and the container truck are aligned.

[0085] It is necessary to determine at which positions there is no parallax to determine the simulated image acquisition position. This embodiment proposes a rule, such as Figure 8 As shown in the figure, the straight line formed by the simulated image acquisition position and the position of the spreader is perpendicular to the straight line where the truck head is facing. Figure 8 The positions indicated by the dotted line can all be used as the simulated image acquisition positions. Preferably, C7 is the intersection of the dotted line and the line connecting C1C2. When the position indicated by C7 is used as the simulated image acquisition position, the calculation process is relatively simple.

[0086] It should be noted that the simulated image is an image created based on the distance between the image acquisition device and the sling and the binocular vision positioning algorithm. For example, the distance between the image acquisition device and the sling can be described in the form of "the distance between the image acquisition device at position C1 and the sling is 10M, and the distance between the image acquisition device at position C2 and the sling is 10M". The simulated image created based on the above data may not be the same as the image actually captured by the image acquisition device. Specifically, the simulated image can be similar to Figure 2 It is a vector diagram that records the spatial geometric relationship between objects such as container trucks and spreaders, rather than a bitmap composed of pixels.

[0087] Next, we analyze the feasibility of creating simulated images. Fig. 9 or Fig.10 As shown, Fig. 9 or Fig.10 In the example, C1 and C2 are Figure 8 The corresponding positions of C1 and C2 in . Fig. 9 or Fig.10 P in the figure is the spreader coil, and a and b represent the two corner points of the loading structure of the container truck. Fig.10 This is a schematic diagram that is more in line with the imaging principle of the image acquisition device (pinhole imaging, inverted image inside the image acquisition device). Fig.10 The inverted image shown may cause some difficulty in understanding the following analysis. Fig. 9 The inverted image is reversed to facilitate understanding. The following analysis process can be based on Fig. 9 or Fig.10 Complete any one of them.

[0088] exist Fig. 9 or Fig.10In the stereogram on the left, C1 and C2 are image acquisition devices installed on the crane beam structure, and the installation positions are known. The images of a, b, and P in image acquisition devices C1 and C2 are a1, b1, and P1, and a2, b2, and P2. The focal length of the image acquisition device is known, and the lengths of the various line segments inside the image acquisition device are also known. For example, the lengths of line segments a1C1, P1C1, and C1b1 can all be determined directly or indirectly based on calculations. Then, based on the focal length of the image acquisition device, the lengths of the various line segments inside the image acquisition device, and the imaging principle, it can be calculated. Fig. 9 or Fig.10 The length of all line segments in the actual space, such as the length of line segment bC1, the length of line segment aC2, etc. In addition, for a crane, the driver issues instructions to control the movement of the spreader on the crane. The position of the spreader coil P and the height of the spreader coil P relative to the horizontal plane should be obtained from the log of the driving computer. Fig. 9 or Fig.10 In the stereogram on the left, the spatial geometric relationships between all objects can be determined directly or indirectly through calculation.

[0089] Fig. 9 or Fig.10 In the front view on the right side, C8 is the simulated image acquisition position, that is, C8 can be Figure 8 For ease of understanding, assume that C8 and Figure 8 The C7 position in the middle overlaps, so Fig. 9 or Fig.10 In the front view on the right side, the lengths of line segments C8a and C8b can obviously be calculated based on the geometric relationship and used to create a simulated image.

[0090] Finally, the relative position relationship between the container truck and the spreader is determined according to the relative position relationship between the container truck and the spreader in the simulation image. Fig. 9 In the image shown on the right, the projection point of P8 on the line segment a8b8 is located at the midpoint of the line segment, and it is considered that the container truck and the spreader are aligned at this time.

[0091] Optionally, the relative position relationship between the container truck and the spreader is determined based on the relative position relationship between the container truck and the spreader in the simulated image, including: determining a first relative position relationship between the loading structure of the container truck and the spreader coil of the spreader in the direction of the container truck head based on the relative position relationship between the container truck and the spreader in the simulated image.

[0092] by Figure 7 For example, the direction of the truck head is Figure 7In the direction of the middle dotted line. If the container truck fails to align with the spreader in this direction, the container may hit the front of the container truck when placing the container, or the rear half of the container may be suspended in the air. Therefore, this embodiment proposes to determine the first relative position relationship between the loading structure of the container truck and the spreader coil of the spreader in the direction of the front of the container truck according to the relative position relationship between the container truck and the spreader in the simulation image.

[0093] Optionally, the method also includes: obtaining the length of the loading structure of the container truck and the length of the container hoisted by the sling to determine the loading plan; after determining the first relative position relationship between the loading structure of the container truck and the sling coil of the sling in the direction of the container truck head according to the relative position relationship between the container truck and the sling in the simulated image, it also includes: guiding the container truck to move to a position that meets the loading plan to perform operations according to the first relative position relationship and the loading plan.

[0094] For example, there are several 40-foot trucks and containers, and several 20-foot trucks and containers. Then the loading plan can be as follows: Fig.11 As shown, Fig.11 From top to bottom, they are: a loading plan for a 40-foot (or 20-foot) container truck loaded with a single 40-foot (or 20-foot) container; a loading plan for a 40-foot container truck loaded with a 20-foot container at the front of the loading section; and a loading plan for a 40-foot container truck loaded with a 20-foot container at the rear of the loading section.

[0095] Therefore, after the first relative position relationship between the loading structure of the container truck and the sling coil of the sling in the direction of the container truck head is determined, it is also necessary to determine whether the expected loading part is aligned with the sling according to the loading plan. For example, if the loading plan is to load a 20-foot container at the rear of the loading part of a 40-foot container truck, but the sling is aligned with the center of gravity of the entire loading part of the 40-foot container truck, then it is necessary to guide the container truck to move forward a certain distance so that the sling is aligned with the center of gravity of the 20-foot loading part behind the 40-foot container truck.

[0096] Optionally, the simulated image acquisition position and the projection of the center of gravity of the sling coil of the sling on the horizontal plane coincide with each other; based on the relative position relationship between the container truck and the sling in the simulated image, the relative position relationship between the container truck and the sling is determined, including: based on the relative position relationship between the container truck and the sling in the simulated image, determining a second relative position relationship between the loading structure of the container truck and the sling coil of the sling in a direction perpendicular to the direction of the container truck head.

[0097] In the container truck positioning method described in the above embodiment, the relative position of the container truck and the spreader in the direction of the container truck head is mainly positioned. This embodiment proposes that a second relative position relationship between the loading structure of the container truck and the spreader coil of the spreader in a direction perpendicular to the direction of the container truck head can also be determined. Figure 8As shown, the loading structure of the container truck and the spreader coil of the spreader are in a direction perpendicular to the direction of the container truck head. Figure 8 In actual operation, if there is a deviation in this direction, half of the container may be suspended on the left or right side of the container truck when the container is placed.

[0098] In order to determine the second positional relationship, it is necessary to ensure that the loading structure of the container truck and the spreader coil of the spreader in the simulated image have no parallax in the direction perpendicular to the direction of the container truck head, and at the same time, the simulated image acquisition position without parallax in both directions is only directly above the coil P. Therefore, the projection of the center of gravity of the spreader coil of the spreader on the horizontal plane coincides with the simulated image acquisition position.

[0099] If the spreader and the container truck deviate in a direction perpendicular to the direction of the container truck head, the container truck driver can be informed to re-park in the loading and unloading operation area, or the crane driver can be informed to control the spreader to move so that the spreader and the container truck are aligned.

[0100] Optionally, there are at least two image acquisition devices in the image acquisition devices, so that the straight line determined by the projection points of the two image acquisition devices on the horizontal plane is parallel to the straight line where the front of the truck is facing.

[0101] Through the analysis described above, it can be found that different installation positions of image acquisition devices will affect the complexity and error of calculations using the binocular vision positioning algorithm.

[0102] This embodiment proposes a rule to further determine the image acquisition position with lower computational complexity and smaller error based on the rule. The rule requires that there are at least two image acquisition devices in the image acquisition device, so that the straight line determined by the projection points of the two image acquisition devices on the horizontal plane is parallel to the straight line where the truck head is facing, for example Figure 7 As shown, the straight line where the line segment C1C2 is located is parallel to the dotted line, and the position of C1 and the position of C2 conform to the rules proposed in this embodiment.

[0103] The third embodiment of the present application also provides a container truck positioning device, such as Fig.12 As shown, including:

[0104] An image acquisition unit 1201 is used to acquire images to be analyzed including a container truck and a spreader, wherein the images to be analyzed include at least two images acquired by at least two image acquisition devices installed on the crane beam structure, respectively; a parallax angle formed by projections of at least two of the image acquisition devices and the spreader on a horizontal plane with the spreader as a vertex is always greater than a preset angle; a container loading and unloading working environment is divided into a first space and a second space by a plane perpendicular to the horizontal plane and passing through any point on a straight line where the container truck head is located; and at least two of the image acquisition devices are located in the first space or the second space;

[0105] An image recognition unit 1202 is used to perform image recognition on the image to be analyzed, and extract the container truck and the spreader from the image to be analyzed as an image recognition result;

[0106] The positioning unit 1203 is used to determine the relative position relationship between the container truck and the spreader according to the binocular vision positioning algorithm and the image recognition result.

[0107] Optionally, performing image recognition on the image to be analyzed, and extracting the container truck and the spreader from the image to be analyzed as the image recognition result, includes:

[0108] The corner points of the loading structure of the container truck and the spreader coil of the spreader are used as recognition features, and images with the recognition features are identified in the images to be analyzed as image recognition results.

[0109] Optionally, the relative position relationship between the container truck and the spreader is determined according to the binocular vision positioning algorithm and the image recognition result, including:

[0110] According to the image recognition result, determine the distance between the image acquisition device and the spreader;

[0111] According to the distance between the image acquisition device and the spreader and the binocular vision positioning algorithm, a simulated image is calculated and established. The simulated image is an image including the container truck and the spreader acquired by assuming that there is an image acquisition device installed at the simulated image acquisition position. The straight line formed by the simulated image acquisition position and the position of the spreader is perpendicular to the straight line where the container truck head is facing.

[0112] The relative position relationship between the container truck and the spreader is determined according to the relative position relationship between the container truck and the spreader in the simulation image.

[0113] Optionally, determining the relative positional relationship between the container truck and the spreader according to the relative positional relationship between the container truck and the spreader in the simulated image includes:

[0114] According to the relative positional relationship between the container truck and the spreader in the simulation image, a first relative positional relationship between the loading structure of the container truck and the spreader coil of the spreader in the direction in which the front end of the container truck is facing is determined.

[0115] Optionally, the method further comprises:

[0116] Obtain the length of the loading structure of the container truck and the length of the container hoisted by the spreader to determine the loading plan;

[0117] After determining the first relative position relationship between the loading structure of the container truck and the spreader coil of the spreader in the direction of the container truck head according to the relative position relationship between the container truck and the spreader in the simulation image, the method further includes:

[0118] According to the first relative position relationship and the loading plan, the container truck is guided to move to a position that meets the loading plan to perform operations.

[0119] Optionally, the simulated image acquisition position coincides with a projection of the center of gravity of the sling coil of the sling on a horizontal plane;

[0120] According to the relative position relationship between the container truck and the spreader in the simulation image, the relative position relationship between the container truck and the spreader is determined, including:

[0121] According to the relative positional relationship between the container truck and the spreader in the simulation image, a second relative positional relationship between the loading structure of the container truck and the spreader coil of the spreader in a direction perpendicular to the direction of the container truck head is determined.

[0122] Optionally, there are at least two image acquisition devices in the image acquisition devices, so that the straight line determined by the projection points of the two image acquisition devices on the horizontal plane is parallel to the straight line where the front of the truck is facing.

[0123] The container truck positioning device provided in this embodiment belongs to the same application concept as the container truck positioning method provided in the above embodiments of this application, and can execute the container truck positioning method provided in any of the above embodiments of this application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not fully described in this embodiment, please refer to the specific processing content of the container truck positioning method provided in the above embodiments of this application, and will not be repeated here.

[0124] The functions implemented by the above-mentioned image acquisition unit 1201, image recognition unit 1202 and positioning unit 1203 may be implemented by the same or different processors respectively, which is not limited in the embodiment of the present application.

[0125] It should be understood that the units in the above devices can be implemented in the form of a processor calling software. For example, the device includes a processor, the processor is connected to a memory, and instructions are stored in the memory. The processor calls the instructions stored in the memory to implement any of the above methods or realize the functions of each unit of the device, wherein the processor can be a general-purpose processor, such as a CPU or a microprocessor, etc., and the memory can be a memory in the device or a memory outside the device. Alternatively, the units in the device can be implemented in the form of hardware circuits, and the functions of some or all units can be realized by designing the hardware circuits. The hardware circuit can be understood as one or more processors; for example, in one implementation, the hardware circuit is an ASIC, and the functions of some or all of the above units are realized by designing the logical relationship of the components in the circuit; for another example, in another implementation, the hardware circuit can be implemented by PLD, taking FPGA as an example, which can include a large number of logic gate circuits, and the connection relationship between the logic gate circuits is configured by the configuration file, so as to realize the functions of some or all of the above units. All units of the above devices can be implemented in the form of a processor calling software, or in the form of hardware circuits, or in part by a processor calling software, and the remaining part is implemented in the form of hardware circuits.

[0126] In an embodiment of the present application, a processor is a circuit with the ability to process signals. In one implementation, the processor may be a circuit with the ability to read and run instructions, such as a CPU, a microprocessor, a GPU, or a DSP; in another implementation, the processor may implement certain functions through the logical relationship of a hardware circuit, and the logical relationship of the hardware circuit is fixed or reconfigurable, such as a hardware circuit implemented by an ASIC or PLD, such as an FPGA. In a reconfigurable hardware circuit, the process of the processor loading a configuration document to implement the hardware circuit configuration can be understood as the process of the processor loading instructions to implement the functions of some or all of the above units. In addition, it can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as an NPU, TPU, DPU, etc.

[0127] It can be seen that each unit in the above device can be one or more processors (or processing circuits) configured to implement the above method, such as: CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor forms.

[0128] In addition, all or part of the units in the above device can be integrated together, or can be implemented independently. In one implementation, these units are integrated together and implemented in the form of a SOC. The SOC may include at least one processor for implementing any of the above methods or implementing the functions of each unit of the device. The type of the at least one processor may be different, for example, including a CPU and an FPGA, a CPU and an artificial intelligence processor, a CPU and a GPU, etc.

[0129] The fourth embodiment of the present application also provides an electronic device, see Fig.13 As shown, the device includes:

[0130] Memory 1300 and processor 1310;

[0131] The memory 1300 is connected to the processor 1310 and is used to store programs;

[0132] The processor 1310 is used to implement the container truck positioning method disclosed in any of the above embodiments by running the program stored in the memory 1300.

[0133] Specifically, the electronic device may further include: a bus, a communication interface 1320 , an input device 1330 and an output device 1340 .

[0134] The processor 1310, the memory 1300, the communication interface 1320, the input device 1330 and the output device 1340 are connected to each other via a bus.

[0135] A bus may include a pathway that transfers information between components of a computer system.

[0136] The processor 1310 may be a general-purpose processor, such as a general-purpose central processing unit (CPU), a microprocessor, etc., or an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the scheme of the present invention. It may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0137] The processor 1310 may include a main processor, and may also include a baseband chip, a modem, and the like.

[0138] The memory 1300 stores a program for executing the technical solution of the present invention, and may also store an operating system and other key services. Specifically, the program may include a program code, and the program code includes a computer operation instruction. More specifically, the memory 1300 may include a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM), other types of dynamic storage devices that can store information and instructions, a disk storage, a flash, and the like.

[0139] The input device 1330 may include a device for receiving data and information input by a user, such as a keyboard, a mouse, a camera, a scanner, a light pen, a voice input device, a touch screen, a pedometer, or a gravity sensor.

[0140] Output device 1340 may include devices that allow information to be output to a user, such as a display screen, printer, speaker, etc.

[0141] The communication interface 1320 may include any transceiver or the like to communicate with other devices or communication networks, such as Ethernet, a radio access network (RAN), a wireless local area network (WLAN), etc.

[0142] The processor 1310 executes the program stored in the memory 1300 and calls other devices, which can be used to implement each step of any one of the container truck positioning methods provided in the above embodiments of the present application.

[0143] The fifth embodiment of the present application further proposes a storage medium on which a computer program is stored. The computer program is used by a processor to execute the steps of the container truck positioning method described in the above “Exemplary Method” section of this specification, and specifically the following steps can be implemented:

[0144] Step 101: Acquire images to be analyzed including a container truck and a spreader, wherein the images to be analyzed include at least two images acquired by at least two image acquisition devices installed on the crane beam structure respectively, wherein a parallax angle formed by projections of at least two image acquisition devices among the image acquisition devices and the spreader on a horizontal plane with the spreader as a vertex is always greater than a preset angle, and a container loading and unloading working environment is divided into a first space and a second space by a plane passing through any point on a straight line where the container truck head is located and which is perpendicular to the horizontal plane, and at least two image acquisition devices among the image acquisition devices are located in the first space or the second space.

[0145] Step 102: performing image recognition on the image to be analyzed, and extracting the container truck and the spreader from the image to be analyzed as the image recognition result.

[0146] Step 103: Determine the relative position relationship between the container truck and the spreader based on the binocular vision positioning algorithm and the image recognition result.

[0147] For the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0148] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0149] The steps in the methods of each embodiment of the present application can be adjusted in order, combined and deleted according to actual needs, and the technical features recorded in each embodiment can be replaced or combined.

[0150] The modules and sub-modules in the devices and terminals of the various embodiments of the present application can be combined, divided and deleted according to actual needs.

[0151] In the several embodiments provided in the present application, it should be understood that the disclosed terminals, devices and methods can be implemented in other ways. For example, the terminal embodiments described above are only schematic, for example, the division of modules or submodules is only a logical function division, and there may be other division methods in actual implementation, for example, multiple submodules or modules can be combined or integrated into another module, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0152] The modules or submodules described as separate components may or may not be physically separated, and the components of the modules or submodules may or may not be physical modules or submodules, that is, they may be located in one place, or they may be distributed on multiple network modules or submodules. Some or all of the modules or submodules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0153] In addition, each functional module or submodule in each embodiment of the present application may be integrated into one processing module, or each module or submodule may exist physically separately, or two or more modules or submodules may be integrated into one module. The above-mentioned integrated modules or submodules may be implemented in the form of hardware or in the form of software functional modules or submodules.

[0154] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0155] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly by hardware, software units executed by a processor, or a combination of the two. The software units may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0156] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0157] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A container truck positioning method, characterized in that: include: Acquire images to be analyzed including a container truck and a spreader, the images to be analyzed including at least two images acquired by at least two image acquisition devices installed on the crane beam structure, respectively, a parallax angle formed by projections of at least two of the image acquisition devices and the spreader on a horizontal plane with the spreader as a vertex is always greater than a preset angle, a container loading and unloading working environment is divided into a first space and a second space with a plane passing through any point on a straight line where the container truck head is located and perpendicular to the horizontal plane as a dividing interface, and at least two of the image acquisition devices are located in the first space or the second space; Performing image recognition on the image to be analyzed, and extracting the container truck and the spreader from the image to be analyzed as image recognition results; The relative position relationship between the container truck and the spreader is determined according to the binocular vision positioning algorithm and the image recognition result.

2. The method according to claim 1, characterized in that The performing image recognition on the image to be analyzed and extracting the container truck and the spreader from the image to be analyzed as the image recognition result comprises: The corner points of the loading structure of the container truck and the sling coil of the sling are used as identification features, and an image having the identification features is identified in the image to be analyzed as the image recognition result.

3. The method according to claim 1, characterized in that Determining the relative position relationship between the container truck and the spreader according to the binocular vision positioning algorithm and the image recognition result includes: Determining the distance between the image acquisition device and the spreader according to the image recognition result; According to the distance between the image acquisition device and the spreader and the binocular vision positioning algorithm, a simulated image is calculated and established, wherein the simulated image is an image including the container truck and the spreader acquired by assuming that there is an image acquisition device installed at the simulated image acquisition position, and the straight line formed by the simulated image acquisition position and the position of the spreader is perpendicular to the straight line where the front of the container truck is located; The relative positional relationship between the container truck and the spreader is determined according to the relative positional relationship between the container truck and the spreader in the simulation image.

4. The method according to claim 3, characterized in that Determining the relative positional relationship between the container truck and the spreader according to the relative positional relationship between the container truck and the spreader in the simulated image includes: According to the relative positional relationship between the container truck and the spreader in the simulation image, a first relative positional relationship between the loading structure of the container truck and the spreader coil of the spreader in the direction in which the container truck head is facing is determined.

5. The method according to claim 4, characterized in that The method further comprises: Obtaining the length of the loading structure of the container truck and the length of the container hoisted by the hoist, and determining a loading plan; After determining the first relative positional relationship between the loading structure of the container truck and the spreader coil of the spreader in the direction in which the container truck head is facing according to the relative positional relationship between the container truck and the spreader in the simulated image, the method further includes: According to the first relative position relationship and the loading plan, the container truck is guided to move to a position that meets the loading plan to perform operation.

6. The method according to claim 3, characterized in that The simulated image acquisition position coincides with the projection of the center of gravity of the sling coil of the sling on a horizontal plane; Determining the relative positional relationship between the container truck and the spreader according to the relative positional relationship between the container truck and the spreader in the simulated image includes: According to the relative positional relationship between the container truck and the spreader in the simulation image, a second relative positional relationship between the loading structure of the container truck and the spreader coil of the spreader in a direction perpendicular to the direction of the container truck head is determined.

7. The method according to claim 1, characterized in that There are at least two image acquisition devices among the image acquisition devices, so that the straight line determined by the projection points of the two image acquisition devices on the horizontal plane is parallel to the straight line where the front end of the truck is facing.

8. A container truck positioning device, characterized in that: include: An image acquisition unit is used to acquire images to be analyzed including a container truck and a spreader, wherein the images to be analyzed include at least two images acquired by at least two image acquisition devices installed on the crane beam structure, respectively; a parallax angle formed by projections of at least two of the image acquisition devices and the spreader on a horizontal plane with the spreader as a vertex is always greater than a preset angle; a container loading and unloading working environment is divided into a first space and a second space by a plane passing through any point on a straight line where the container truck head is located and perpendicular to the horizontal plane as a dividing interface; and at least two of the image acquisition devices are located in the first space or the second space; An image recognition unit is used to perform image recognition on the image to be analyzed, and extract the container truck and the spreader from the image to be analyzed as an image recognition result; A positioning unit is used to determine the relative position relationship between the container truck and the spreader according to a binocular vision positioning algorithm and the image recognition result.

9. An electronic device, characterized in that: including memory and processor; The memory is connected to the processor and is used to store programs; The processor is used to implement the container truck positioning method as described in any one of claims 1 to 7 by running the program in the memory.

10. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the method for locating a container truck as claimed in any one of claims 1 to 7 is implemented.