Container placement control method and device and hoisting equipment
By building a reference model and camera cutting technology, the accurate placement of containers is achieved, which solves the problem of low efficiency of manual observation and improves port loading and unloading efficiency.
Patent Information
- Application Number
- CN202410780800.3
- 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
The manual observation method of placing containers in the existing technology results in low efficiency of container placement and is prone to operational errors. It is especially difficult to meet the demand for efficient loading and unloading in large ports or high-traffic situations.
By building a reference model, use a camera to take a video of the container's corner, crop the picture to determine the actual coordinate position, and compare it with the reference coordinate position. If the difference is less than the threshold, place the container to the target location, and use a spreader to achieve accurate placement.
It improves the accuracy and efficiency of container placement, reduces the risk of manual operation errors, and is suitable for efficient loading and unloading needs in large ports or high-traffic situations.
Smart Images

Figure CN118701968A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of container loading and unloading, and in particular to a control method and device for placing a container and a lifting device. Background Art
[0002] At present, loading and unloading containers at ports is a key link in logistics and transportation, involving logistics management, shipping, port management, supply chain management, technology and automation, trade, safety and environmental protection and other fields. As the main unit of maritime transportation, containers directly affect the efficiency and safety of cargo transportation. As an important trade hub, ports are responsible for cargo loading, unloading, storage and transshipment. In recent years, manual observation is usually used to place containers in designated locations, but manual observation is easily affected by subjective factors, which may lead to the wrong placement of containers or neglect of some important details, increasing the risk of operational errors. In addition, manual observation requires a lot of time and human resources, especially in large ports or high traffic conditions, and it is difficult to meet the needs of efficient loading and unloading. Summary of the invention
[0003] In order to solve the above technical problems, the present application is proposed. The embodiments of the present application provide a control method, device and lifting equipment for container placement, which solves the problem of low efficiency of placing containers at designated locations by manual observation in the prior art.
[0004] According to one aspect of the present application, a method for controlling container placement is provided, comprising:
[0005] Constructing a reference model; wherein the reference model is used to represent the correspondence between a reference picture containing a corner of a container and a reference coordinate position of the corner in the reference picture;
[0006] Controlling a camera to shoot a video of each corner of the current container; wherein the video of the corner includes a plurality of photographed pictures, and the camera is installed on a spreader, and the spreader is used to carry the container;
[0007] Based on the area in which the corner of the current container is located in the photographed picture, cropping the photographed picture to obtain a cropped picture including the corner of the container;
[0008] Determine the actual coordinate position of the box corner in the cropped image;
[0009] Inputting the cut picture into the reference model for simulation to generate the reference coordinate position of the box corner in the cut picture;
[0010] If the difference between the actual coordinate position of each corner of the current container and its corresponding reference coordinate position is less than a preset coordinate threshold, the spreader is controlled to place the current container at the target position.
[0011] In one embodiment, the container placement control method further includes:
[0012] If the difference between the actual coordinate position of the first corner of the current container and its corresponding reference coordinate position is greater than the preset coordinate threshold, it is determined that the camera corresponding to the first corner is loose, so as to generate a prompt message and send it to the electronic device.
[0013] In one embodiment, constructing a reference model includes:
[0014] Acquire a plurality of reference images containing the corners of the container;
[0015] Based on the cropping condition, cropping the reference image to obtain a cropped reference image;
[0016] Determining the reference coordinate positions of the box corners in the cropped reference image;
[0017] Obtaining a feature vector of a reference object of a box corner in the cropped reference image;
[0018] Establishing a first correspondence between the reference coordinate position, the feature vector of the reference object of the box corner in the cropped reference picture, and a plurality of reference pictures;
[0019] The reference model is constructed according to the multiple first corresponding relationships.
[0020] In one embodiment, cropping the reference picture based on the cropping condition to obtain a cropped reference picture includes:
[0021] Determine whether the reference image contains only one corner of the container, one fixed lock head adjacent to the corner of the container, and one corner of the container adjacent to the fixed lock head; wherein the corner of the container, the fixed lock head, and the container adjacent to the fixed lock head are located in the same horizontal direction or the same vertical direction;
[0022] If the reference picture only contains one corner of the container, one fixed lock head adjacent to the corner of the container, and one corner of the container adjacent to the fixed lock head, the reference picture is cropped to obtain the cropped reference picture.
[0023] In one embodiment, establishing a first correspondence between the reference coordinate position, the feature vector of the reference object of the box corner in the cropped reference picture, and a plurality of reference pictures comprises:
[0024] Obtaining a feature vector of a fixed lock head adjacent to a box corner in the cropped reference image;
[0025] Obtaining a feature vector of a container adjacent to the fixed lock in the cropped reference image;
[0026] A first correspondence is established between the reference coordinate position, the feature vector of the fixed lock adjacent to the box corner in the cropped reference image, the feature vector of the container adjacent to the fixed lock, and multiple reference images.
[0027] In one embodiment, cropping the reference picture based on the cropping condition to obtain a cropped reference picture includes:
[0028] Determine whether there is only one corner of the container, one fixed lock head adjacent to the corner, and one lock head adjacent to the fixed lock head in the reference picture; wherein the corner, the fixed lock head, and one lock head adjacent to the fixed lock head are located in the same horizontal direction or the same vertical direction;
[0029] If the reference picture only contains one corner of the container, one fixed lock head adjacent to the corner, and one lock head adjacent to the fixed lock head, the reference picture is cropped to obtain the cropped reference picture.
[0030] In one embodiment, the step of inputting the cut picture into the reference model for simulation to generate the reference coordinate position of the box corner in the cut picture includes:
[0031] Extracting a feature vector corresponding to the cropped photograph;
[0032] Inputting the feature vector into the reference model and identifying the cropped photograph to determine whether a reference object exists in the cropped photograph;
[0033] If the reference object exists in the cropped photograph, the reference coordinate position of the box corner corresponding to the cropped photograph is obtained.
[0034] In one embodiment, after the control camera captures the corner video of each corner of the current container, the container placement control method further includes:
[0035] If there is a spot in the photographed image, calibrate the outline of the spot;
[0036] Dividing the contour into a plurality of area blocks;
[0037] Analyzing texture information of pixel blocks in a preset area adjacent to the area block;
[0038] Inferring the missing content of the region block according to the texture information;
[0039] Supplementing the missing content in the corresponding area block to obtain a repaired photograph;
[0040] The method of cropping the captured image to obtain a cropped image including the box corner comprises:
[0041] The repaired photographed image is cropped to obtain a cropped image including the box corner.
[0042] According to another aspect of the present application, a control device for placing a container is provided, comprising:
[0043] A construction module, used to construct a reference model; wherein the reference model is used to represent the correspondence between a reference picture containing a corner of a container and a reference coordinate position of the corner in the reference picture;
[0044] A video acquisition module, used to control the camera to capture a video of each corner of the current container; wherein the video of each corner includes a plurality of captured images, and the camera is installed on a spreader, and the spreader is used to carry the container;
[0045] A cropping module, configured to crop the captured image based on the area where the corner of the current container is located in the captured image, so as to obtain a cropped image including the corner of the container;
[0046] A determination module, used to determine the actual coordinate position of the box corner in the cropped image;
[0047] A position acquisition module, used for inputting the cut picture into the reference model for simulation to generate the reference coordinate position of the box corner in the cut picture;
[0048] A generation module is used to control the spreader to place the current container at a target position if the difference between the actual coordinate position of each corner of the current container and its corresponding reference coordinate position is less than a preset coordinate threshold.
[0049] According to another aspect of the present application, there is provided a lifting device, comprising:
[0050] The crane itself; and
[0051] A spreader, wherein the spreader is arranged on the crane body and is used to carry containers. A plurality of cameras are installed on the spreader, each camera is arranged opposite to a corner of the container, and the cameras are used to photograph the corners of the container.
[0052] The control method, device and lifting equipment for container placement provided in the present application include: constructing a reference model, wherein the reference model is used to represent the correspondence between a reference picture including the corners of the container and the reference coordinate position of the corners in the reference picture, controlling a camera to capture a corner video of each corner of the current container, wherein the corner video includes a plurality of captured pictures, the camera is mounted on a sling, the sling is used to carry the container, based on the area in the captured picture where the corners of the current container are located, the captured picture is cropped to obtain a cropped picture including the corners, the actual coordinate position of the corners in the cropped picture is determined, the cropped picture is input into the reference model for simulation to generate the reference coordinate position of the corners in the cropped picture, and if the difference between the actual coordinate position of each corner of the current container and its corresponding reference coordinate position is less than a preset coordinate threshold, controlling the sling to place the current container at the target position. The reference coordinate position of the box corner is obtained by cropping the captured image of the box corner and inputting the cropped image into the reference model. Then, the actual coordinate position of the box corner in the captured image and the distance value between the reference coordinate position are used as the mechanism for placing the container with the sling. In this way, it is determined whether the current position of the box corner of the container corresponds to its placement position, so that the box corner can be accurately placed at the target position, thereby improving the accuracy and efficiency of container placement. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.
[0054] Figure 1 It is a flowchart of a method for controlling container placement provided by an exemplary embodiment of the present application.
[0055] Figure 2 It is a flowchart of a method for controlling container placement provided by another exemplary embodiment of the present application.
[0056] Figure 3 It is a flowchart of a reference model construction method provided by an exemplary embodiment of the present application.
[0057] Figure 4 It is a schematic diagram of the structure of a reference picture provided by an exemplary embodiment of the present application.
[0058] Figure 5 It is a structural schematic diagram of a cropped reference image provided by an exemplary embodiment of the present application.
[0059] Figure 6 It is a flowchart of a reference image cropping method provided by an exemplary embodiment of the present application.
[0060] Figure 7 It is a structural diagram of cutting a reference picture based on a reference object provided by an exemplary embodiment of the present application.
[0061] Figure 8 It is a structural schematic diagram of a reference picture provided by an exemplary embodiment of the present application, taking the baffle of an inner container truck as a reference object.
[0062] Fig. 9 It is a structural schematic diagram of a reference picture of a bottom line of a yard bottom opening provided by an exemplary embodiment of the present application.
[0063] Fig.10 It is a structural schematic diagram of a control device for placing containers provided by an exemplary embodiment of the present application.
[0064] Fig.11 It is a structural schematic diagram of a control device for placing containers provided by another exemplary embodiment of the present application.
[0065] Fig.12 It is a structural diagram of an electronic device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0066] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.
[0067] Figure 1 FIG. 1 is a flow chart of a method for controlling container placement provided by an exemplary embodiment of the present application. Figure 1 As shown, the control method for container placement includes:
[0068] Step 110: construct a reference model, wherein the reference model is used to represent the correspondence between the reference image containing the corner of the container and the reference coordinate position of the corner in the reference image.
[0069] In an embodiment of the present application, since it is impossible to accurately determine the position of the container when the container is being moved in real time, a reference model can be constructed. The reference coordinate positions of the corners of the container are obtained using the reference model as a reference benchmark. Based on the reference coordinate positions and the actual coordinate positions, it is determined whether the current actual position of each corner of the container deviates from its corresponding storage position. By correcting the actual position of each corner, the system is helped to quickly correct the current actual position of the container, so that the container can be disassembled to the accurate storage position.
[0070] Step 120: Control the camera to capture a corner video of each corner of the current container, wherein the corner video includes a plurality of captured images, and the camera is installed on a spreader, which is used to carry the container.
[0071] In the embodiment of the present application, in order to obtain the video of each corner of the current container, cameras are installed at different positions of the spreader, and each camera is located in the same vertical direction as the corner of the container, so that each camera can shoot the corresponding corner of the container. When the container is actually moved, the camera will shoot the corner of the container and generate a video. Since the video is composed of multiple pictures, the actual coordinate position of the corner of the container on each picture is determined by identifying the pictures.
[0072] Step 130: based on the area where the corner of the current container is located in the photographed picture, the photographed picture is cropped to obtain a cropped picture including the corner of the container.
[0073] In an embodiment of the present application, due to the presence of interference information in the captured image, for example, in addition to the adjacent locks that need to be referenced on the container truck, there are other locks or other container information that become interference information, resulting in the inability to accurately determine the reference object for placing the container. Therefore, the captured image needs to be cropped to filter out most of the interference information, thereby improving the determination of the fixed position of the box corner, and then determining the position where the container is placed.
[0074] Step 140: Determine the actual coordinate positions of the box corners in the cropped image.
[0075] In the embodiment of the present application, in order to determine the actual position of each corner of the current container, the actual coordinate position of the corner in the cropped image can be determined to determine the actual position of each corner.
[0076] Specifically, the actual coordinate positions of the box corners in the cropped image may be determined by the pixel coordinates.
[0077] Step 150: Input the cut image into a reference model for simulation to generate reference coordinate positions of the box corners in the cut image.
[0078] In an embodiment of the present application, since the reference model includes a correspondence between a reference image of the corners of a container and the reference coordinate positions of the corners in the reference image, the reference coordinate positions of the corners in the cropped image are obtained by searching the corresponding reference image through the cropped image, thereby determining whether each corner of the container deviates from the fixed position based on the reference coordinate position and the actual coordinate position.
[0079] Step 160: If the difference between the actual coordinate position of each corner of the current container and its corresponding reference coordinate position is less than a preset coordinate threshold, control the spreader to place the current container at the target position.
[0080] In the embodiment of the present application, in order to determine whether each corner of the container deviates from the fixed position, a preset coordinate threshold is set, and the preset coordinate threshold is a limiting value for controlling the spreader to place the current container on the container truck. That is to say, if the difference between the actual coordinate position of each corner of the current container and its corresponding reference coordinate position is less than the preset coordinate threshold, the deviation between the position of each corner of the current container and the fixed position is small, and the spreader places the current container to the target position more accurately, wherein the target position can be placed on the inner container truck or the outer container truck or on other containers located at the bottom of the yard or on the target area formed by the bottom line of the bottom of the yard, and other containers are provided with multiple fixed lock holes, each of which is used to fix a corner of the current container. Among them, multiple fixed locks are provided on the edge position of the car plate of the outer container truck. Multiple baffles are provided on the edge position of the car plate of the inner container truck, and the car plates of the outer container truck and the inner container truck may include car plates constructed of hollow frames, or may include car plates constructed of rectangular metal plates. The yard open bottom refers to the open space or area in the container yard. There are multiple open bottom lines in the yard open bottom, and the placement of the container can be located by the open bottom lines.
[0081] In the present application, the reference object in the captured image includes a fixed lock and a corner of a container adjacent to the fixed lock, and the corresponding current container placement position (target position) is on the outer container truck; the reference object in the captured image includes a baffle and a corner of a container adjacent to the baffle, and the corresponding current container placement position is on the inner container truck; the reference object in the captured image includes a fixed lock hole of other containers and a corner of a container adjacent to the fixed lock hole, and the corresponding current container placement position is on other containers located at the open bottom of the yard; the reference object in the captured image includes a corner of a container located at a target area formed by the open bottom line of the open bottom of the yard and adjacent to the target area, and the corresponding current container placement position is on the target area formed by the open bottom line of the open bottom of the yard; the reference object in the captured image includes a target area formed by the open bottom line of the open bottom of the yard, and the corresponding current container placement position is on the target area formed by the open bottom line of the open bottom of the yard.
[0082] The container placement control method provided in the present application includes: constructing a reference model, wherein the reference model is used to represent the correspondence between a reference picture including the box corners of the container and the reference coordinate position of the box corner in the reference picture, controlling a camera to capture a box corner video of each box corner of the current container, wherein the box corner video includes multiple captured pictures, the camera is installed on a sling, and the sling is used to carry the container, based on the area where the box corner of the current container is located in the captured picture, the captured picture is cropped to obtain a cropped picture including the box corner, the actual coordinate position of the box corner in the cropped picture is determined, and the cropped picture is input into the reference model for simulation to generate the reference coordinate position of the box corner in the cropped picture, and if the difference between the actual coordinate position of each box corner of the current container and its corresponding reference coordinate position is less than a preset coordinate threshold, the sling is controlled to place the current container at a target position. The reference coordinate position of the box corner is obtained by cropping the captured image of the box corner and inputting the cropped image into the reference model. Then, the actual coordinate position of the box corner in the captured image and the distance value between the reference coordinate position are used as the mechanism for placing the container with the sling. In this way, it is determined whether the current position of the box corner of the container corresponds to its target position, so that the box corner can be accurately placed at the target position, thereby improving the accuracy and efficiency of container placement.
[0083] Figure 2 FIG. 1 is a flow chart of a method for controlling container placement provided by another exemplary embodiment of the present application. Figure 2 As shown, the container placement control method may further include:
[0084] Step 170: If the difference between the actual coordinate position of the first corner of the current container and its corresponding reference coordinate position is greater than a preset coordinate threshold, it is determined that the camera corresponding to the first corner is loose, so as to generate a prompt message and send it to the electronic device.
[0085] In the embodiment of the present application, if the camera becomes loose when the sling is moving the container, the difference between the actual coordinate position of the first corner of the current container and its corresponding reference coordinate position will be greater than the preset coordinate threshold, that is, the deviation between the actual coordinate position of the corner of the container and its corresponding reference coordinate position is large. Therefore, if the difference between the actual coordinate position of the first corner of the current container and its corresponding reference coordinate position is greater than the preset coordinate threshold, it is determined that the camera corresponding to the first corner is loose.
[0086] In addition, in the present application, each corner of the container can be judged to determine whether the camera corresponding to each corner is loose. Once the camera is loose, the system will generate a prompt message indicating that the camera corresponding to the first corner is loose, and send the prompt message to the electronic device, so that the operator can immediately fix the camera corresponding to the first corner to prevent the camera from loosening and causing the container to be unable to be accurately fixed in a fixed position.
[0087] Figure 3 It is a flowchart of a reference model construction method provided by an exemplary embodiment of the present application. Figure 4 It is a schematic diagram of the structure of a reference picture provided by an exemplary embodiment of the present application. Figure 5 is a schematic diagram of the structure of a cropped reference image provided by an exemplary embodiment of the present application. Figure 3-Figure 5 As shown, step 110 may include:
[0088] Step 111: Acquire a plurality of reference images containing corners of containers.
[0089] In the embodiment of the present application, in order to more quickly determine whether the corner of the container deviates from the reference position, it is necessary to obtain multiple reference images containing the corner of the container in advance, and train a reference model based on the reference images for application.
[0090] Specifically, Figure 4 As shown, a reference image containing each corner of the container can be obtained, and the position point of each corner is point A.
[0091] Step 112: based on the cropping condition, crop the reference image to obtain a cropped reference image.
[0092] In the embodiment of the present application, in order to more accurately identify the reference coordinate position of the box corner in the reference image, it is necessary to select a suitable cropping range to crop the reference image, that is, to set the cropping conditions and crop the reference image.
[0093] Specifically, Figure 5 As shown, the position point of the box corner in the cropped reference image is transformed from point A to point B.
[0094] Step 113: Determine the reference coordinate positions of the box corners in the cropped reference image.
[0095] In an embodiment of the present application, since interference information has been filtered out in the cropped reference image, the reference coordinate position of the box corner determined based on the reference image can be more accurate. Therefore, the reference coordinate position of the box corner in the cropped reference image can be obtained through the pixel coordinates of the box corner in the reference image.
[0096] Specifically, Figure 5 As shown, Figure 5 The coordinate position of the middle point B is the reference coordinate position of the box corner.
[0097] Step 114: Obtain the feature vector of the reference object of the box corner in the cropped reference image.
[0098] In an embodiment of the present application, since in actual operation, the camera can only identify the position of the box corner in the picture taken by the camera, but cannot determine the surrounding reference objects, the present application needs to obtain the feature vector of the reference object in advance when training the model. The reference object feature vector can be used to identify whether there is a reference object in the actual picture, thereby determining whether the box corner of the current container is close to the reference object based on the reference object.
[0099] Step 115: Establish a first correspondence between the reference coordinate position, the feature vector of the reference object of the box corner in the cropped reference picture, and multiple reference pictures.
[0100] In the embodiment of the present application, by establishing the first corresponding relationship, it is possible to more conveniently obtain the reference coordinate position of the box corner and identify the reference object in the actual captured image.
[0101] Step 116: construct a reference model according to the multiple first correspondences.
[0102] Figure 6 It is a flowchart of a reference image cropping method provided by an exemplary embodiment of the present application. Figure 7 is a schematic diagram of a structure for cutting a reference picture based on a reference object provided by an exemplary embodiment of the present application. Figure 6-Figure 7 As shown, step 112 may include:
[0103] Step 1121: Determine whether there are only one corner of the container, one fixed lock adjacent to the corner, and one corner of the container adjacent to the fixed lock in the reference image, wherein the corner, the fixed lock, and the container adjacent to the fixed lock are located in the same horizontal direction or the same vertical direction.
[0104] In the embodiment of the present application, the reference objects selected by the present application are a fixed lock head adjacent to the corner of the box and a corner of the container adjacent to the fixed lock head, wherein the fixed lock head itself is used as a reference object for the currently transported container, and selecting a corner of the container adjacent to the fixed lock head is also to prevent the corner of the box from being located on the fixed lock head without a reference object. In order to reduce interference information, only one corner of the container is selected when the picture is cropped, which not only reduces the size of the picture, but also makes the interference information in the cropped picture less, and there are also enough reference objects.
[0105] Specifically, Figure 7 As shown, a corner C of a container, a fixed lock D adjacent to the corner C, and a corner E of a container adjacent to the fixed lock can be identified from the reference image, and then the cropping range is to enclose C, D, and E together, but the cropped image must only contain C, D, and E. The purpose of doing this is to prevent other locks and other containers from becoming interference information that leads to inaccurate determination of the placement position of the corner.
[0106] Step 1122: If the reference image only contains one corner of the container, one fixed lock adjacent to the corner, and one corner of the container adjacent to the fixed lock, the reference image is cropped to obtain a cropped reference image.
[0107] In the embodiment of the present application, since the reference object is determined, it is possible to identify whether there is a reference object from the reference image, and then determine the cropping range based on the reference object to crop the reference image, and the cropped reference image must also include a corner of the container, a fixed lock adjacent to the corner, and a corner of the container adjacent to the fixed lock. And based on the cropping area, the reference image is cropped to obtain the cropped reference image, wherein the cropping area is the minimum area including a corner of the container, a fixed lock adjacent to the corner, and a corner of the container adjacent to the fixed lock.
[0108] In one embodiment, step 115 can be specifically implemented as follows: obtaining a feature vector of a fixed lock adjacent to a box corner in a cropped reference image; obtaining a feature vector of a container adjacent to the fixed lock in a cropped reference image; and establishing a first correspondence between the reference coordinate position, the feature vector of the fixed lock adjacent to a box corner in a cropped reference image, the feature vector of the container adjacent to the fixed lock, and multiple reference images.
[0109] In an embodiment of the present application, the present application needs to obtain the feature vector of the fixed lock adjacent to the box corner in the reference picture after cutting in advance when training the model, and compare the feature vector with the feature vector obtained in the actual captured picture to determine whether there is a fixed lock adjacent to the box corner in the captured picture. It can be seen that the fixed lock adjacent to the box corner is used as a reference object in the present application, so as to exclude the pictures without fixed locks in the actual captured pictures, and improve the accuracy of the box corner placed on the fixed lock. It should be understood that if there is no picture of the fixed lock in the actual captured picture, it can be determined that the box corner is far away from the fixed lock, or the small cutting range causes the absence of the fixed lock in the cut picture. Through the feature vector of the fixed lock, it is not only helpful to help identify whether there is a fixed lock in the actual captured picture, but also improve the accuracy of the box corner placed near the fixed lock, thereby improving the accuracy of container placement.
[0110] In order to improve the accuracy of container placement, the present application not only requires a fixed lock as a reference object, but also adds a container adjacent to the fixed lock as another reference object, and the two reference objects jointly determine the placement position or fixed position of the container corner. Then, by establishing a first correspondence between the reference coordinate position, the feature vector of the fixed lock adjacent to the corner of the container in the cropped reference image, the feature vector of the container adjacent to the fixed lock, and multiple reference images, the fixed lock adjacent to the corner of the container and the container adjacent to the fixed lock can be identified in the actual captured image.
[0111] In one embodiment, step 112 can be specifically implemented as follows: determine whether there are only one corner of the container, a fixed lock adjacent to the corner, and a lock adjacent to the fixed lock in the reference image; wherein the reference coordinate position of the corner, the fixed lock, and a lock adjacent to the fixed lock are located in the same horizontal direction or the same vertical direction; if there are only one corner of the container, a fixed lock adjacent to the corner, and a lock adjacent to the fixed lock in the reference image, then crop the reference image to obtain a cropped reference image.
[0112] In the embodiment of the present application, in addition to selecting a fixed lock head adjacent to the box corner as a reference object, the present application can also select a lock head adjacent to the fixed lock head as another reference object. Since the current container may be the first container to be transported during container handling, there is no container that has been transported on the external container truck. Therefore, in order to improve the accuracy of the placement of the box corner, a lock head adjacent to the fixed lock head of the fixed box corner can be selected as a reference object, so that the first placed container can have a reference object to refer to, so that the container can be accurately placed on the external container truck. And based on the cropping area, the reference image is cropped to obtain a cropped reference image, wherein the cropping area is an area with the minimum area including a box corner of the container, a fixed lock head adjacent to the box corner, and a lock head adjacent to the fixed lock head.
[0113] In one embodiment, step 115 can be specifically implemented as follows: obtaining a feature vector of a fixed lock adjacent to a box corner in a cropped reference image; obtaining a feature vector of a lock adjacent to the fixed lock in the cropped reference image; and establishing a first corresponding relationship between the reference coordinate position, the feature vector of the fixed lock adjacent to the box corner in the cropped reference image, the feature vector of a lock adjacent to the fixed lock, and multiple reference images.
[0114] In the embodiment of the present application, in order to improve the accuracy of container placement, the present application not only requires a fixed lock as a reference object, but also can add a lock adjacent to the fixed lock as another reference object, and the two reference objects jointly determine the placement position or fixed position of the container corner. Then, by establishing a first correspondence between the reference coordinate position, the feature vector of the fixed lock adjacent to the corner of the container in the cropped reference image, the feature vector of a lock adjacent to the fixed lock, and multiple reference images, the fixed lock adjacent to the corner of the container and the lock adjacent to the fixed lock can be identified in the actual captured image.
[0115] In one embodiment, step 150 can be specifically implemented as follows: extracting a feature vector corresponding to the cropped photograph; inputting the feature vector into a reference model and identifying the cropped photograph to determine whether a corner of the current container, a fixed lock adjacent to the corner, and a container adjacent to the fixed lock exist in the cropped photograph; if a corner of the current container, a fixed lock adjacent to the corner, and a container adjacent to the fixed lock exist in the cropped photograph, then obtaining the reference coordinate position of the corner corresponding to the cropped photograph.
[0116] In the embodiment of the present application, since the reference object, that is, the fixed lock adjacent to the corner of the current container and the container adjacent to the fixed lock, cannot be identified in the cropped photograph, it is necessary to extract the feature vector corresponding to the cropped photograph, that is, extract the feature vector of other objects in the cropped photograph except the corner of the current container, and input the feature vector into the reference model to identify the cropped photograph and determine whether there is a corner of the current container, a fixed lock adjacent to the corner, and a container adjacent to the fixed lock in the cropped photograph. The feature vectors of other objects are matched with the feature vectors of the fixed lock adjacent to the corner of the current container and the feature vectors of the container adjacent to the fixed lock in the reference model respectively. If there is a feature vector in the feature vectors of other objects that can match the feature vector of the fixed lock adjacent to the corner of the current container, and there is a feature vector in the feature vectors of other objects that can match the feature vector of the container adjacent to the fixed lock, then it can be determined that there is a fixed lock adjacent to the corner of the current container and a container adjacent to the fixed lock in the cropped photograph. Then if the cropped picture contains a corner of the current container, a fixed lock adjacent to the corner, and a container adjacent to the fixed lock, and the feature vectors of other objects contain a feature vector that can match the feature vector of the fixed lock adjacent to the corner of the current container, and the feature vectors of other objects contain a feature vector that can match the feature vector of the container adjacent to the fixed lock, then the reference coordinate position of the corner corresponding to the cropped picture is obtained.
[0117] In addition, if a corner of the current container, a fixed lock adjacent to the corner, and a container adjacent to the fixed lock do not exist in the cropped photograph, then the photograph needs to be cropped again. If the photograph does not have a fixed lock adjacent to the corner and a container adjacent to the fixed lock during identification, then the photograph will not be used, and the next frame of the photograph will be taken until a photograph is found that contains a corner of the current container, a fixed lock adjacent to the corner, and a container adjacent to the fixed lock, and then the photograph is cropped.
[0118] In one embodiment, step 150 can be specifically implemented as follows: extracting a feature vector corresponding to the cropped picture; inputting the feature vector into a reference model and identifying the cropped picture to determine whether a reference object exists in the cropped picture; if a reference object exists in the cropped picture, obtaining the reference coordinate position of the box corner corresponding to the cropped picture.
[0119] In the embodiment of the present application, since the reference object cannot be identified in the cropped photograph, it is necessary to extract the feature vector corresponding to the cropped photograph, that is, to extract the feature vectors of other objects in the cropped photograph except the corner of the current container, and input the feature vector into the reference model to identify the cropped photograph and determine whether the reference object exists in the cropped photograph. The feature vectors of other objects are matched with the feature vectors of the reference object in the reference model respectively. If there is a feature vector in the feature vector of the other object that can match the feature vector of the reference object, then it can be determined that there is a reference object in the cropped photograph. Then, if there is a reference object in the cropped photograph and there is a feature vector in the feature vector of the other object that matches the feature vector of the reference object, the reference coordinate position of the corner corresponding to the cropped photograph is obtained.
[0120] In addition, if there is no reference object in the cropped picture, the picture needs to be cropped again. If there is no reference object in the picture during recognition, the picture will not be used and the next frame of the picture will be used until a picture with a reference object is found, and then the picture will be cropped.
[0121] Among them, the reference object may include a fixed lock adjacent to the box corner and a box corner of the container adjacent to the fixed lock, or a fixed lock adjacent to the box corner and a lock adjacent to the fixed lock, or a baffle adjacent to the box corner and a box corner of the container adjacent to the baffle, or a fixed lock hole adjacent to the box corner and a box corner of the container adjacent to the fixed lock hole, or a target area formed by the bottom line of the open bottom of the yard adjacent to the box corner and a box corner of the container adjacent to the target area, or a target area formed by the open bottom of the yard, wherein the fixed lock hole is a fixed lock hole on other containers located in the open bottom of the yard.
[0122] In one embodiment, after step 120, the control method for container placement can be specifically implemented as follows: if there is a stain in the captured image, calibrate the outline of the stain; divide the outline into multiple area blocks; analyze the texture information of the pixel blocks of the preset area adjacent to the area block; infer the missing content of the area block based on the texture information; supplement the missing content in the corresponding area block to obtain a repaired captured image; step 130 can be specifically implemented as follows: crop the repaired captured image to obtain a cropped image including the box corner.
[0123] In an embodiment of the present application, due to external weather or stains on the camera, spots may appear on the captured picture, resulting in an incomplete captured picture. Therefore, the spots need to be repaired, that is, the captured picture needs to be repaired to obtain a complete captured picture.
[0124] Specifically, if there are stains on the captured image, the outline of the stain can be calibrated, and the area where the stain is located can be determined through the outline. Then, the image of the area with the outline can be divided into multiple area blocks, and the texture information of the pixel blocks in the preset areas adjacent to the area blocks is analyzed. The missing content corresponding to the stain in the area blocks can be inferred through the texture information, and then the missing content can be supplemented in the corresponding area blocks to obtain the repaired captured image.
[0125] In addition, the size of the area with the outline cannot exceed the preset area size, that is, the area with the outline is less than or equal to the preset area. The purpose of this is to quickly repair the pictures with smaller stains, but for pictures with larger stains, the repaired pictures may not be applicable. Therefore, if the stain is larger, that is, the size of the area with the outline is larger than the preset area size, a warning message can be generated and sent to the electronic device to inform the operator that the picture is seriously damaged, which may be due to bad weather outside or damage to the camera, so that the operator can respond in time according to the warning message.
[0126] Figure 8 1 is a schematic diagram of a reference picture provided by an exemplary embodiment of the present application, taking the baffle of an inner container truck as a reference object. Figure 8 As shown, step 112 can be specifically implemented as follows: determining whether there are only one corner of the container, one baffle adjacent to the corner, and one corner of the container adjacent to the baffle in the reference image, wherein the corner, the baffle, and the container adjacent to the baffle are located in the same horizontal direction or the same vertical direction; if there are only one corner of the container, one baffle adjacent to the corner, and one corner of the container adjacent to the baffle in the reference image, cropping the reference image to obtain a cropped reference image.
[0127] In the embodiment of the present application, the present application selects reference objects as a baffle adjacent to the box corner and a box corner of the container adjacent to the baffle. It is judged whether there is only one box corner of the container, one baffle adjacent to the box corner and one box corner of the container adjacent to the baffle in the reference picture. If there is only one box corner of the container, one baffle adjacent to the box corner and one box corner of the container adjacent to the baffle in the reference picture, the reference picture is cropped to obtain a cropped reference picture. The purpose of this is to reduce interference information. The cropped picture only includes one box corner of the container, one baffle adjacent to the box corner and one box corner of the container adjacent to the baffle. This not only reduces the size of the picture, but also makes the interference information in the cropped picture less, and there are also enough reference objects. Among them, based on the cropping area, the reference picture is cropped to obtain the cropped reference picture. The cropping area is the minimum area containing one box corner of the container, one baffle adjacent to the box corner and one box corner of the container adjacent to the baffle.
[0128] Specifically, Figure 8 As shown, it can be identified from the reference image that the corner C of the container is adjacent to the baffle F, and the baffle F is adjacent to a corner H of the container. In order to reduce interference information, the cutting range can be set by referring to the fact that there is only one corner of the container, one baffle adjacent to the corner, and one corner of the container adjacent to the baffle in the reference image. The cutting range only includes one corner of the container, one baffle adjacent to the corner, and one corner of the container adjacent to the baffle, that is, the cutting range is to surround C, H, and F together and the surrounded area is the minimum value. The purpose of this is to prevent other locks and other containers from becoming interference information, resulting in inaccurate determination of the placement position of the corner. In addition, the H in the above is only different for adjacent objects, but for the current container, the corners of adjacent containers belong to the same object, so H can be used to represent the corners of adjacent containers of different reference objects.
[0129] In one embodiment, step 112 can be specifically implemented as follows: determining whether there are only one corner of the container, one fixed lock hole adjacent to the corner, and one corner of the container adjacent to the fixed lock hole in the reference image; wherein the corner, the fixed lock hole, and the container adjacent to the fixed lock hole are located in the same horizontal direction or the same vertical direction; if there are only one corner of the container, one fixed lock hole adjacent to the corner, and one corner of the container adjacent to the fixed lock hole in the reference image, then cropping the reference image to obtain a cropped reference image.
[0130] In the embodiment of the present application, the present application selects reference objects as a fixed lock hole adjacent to the box corner and a box corner of the container adjacent to the fixed lock hole. Since the fixed lock hole is the placement position corresponding to the box corner of the container, it is necessary to use the fixed lock hole as a reference object. In order to further determine the distance between the box corner of the container and the fixed lock hole, a box corner of the container adjacent to the fixed lock hole is used as a reference object to jointly adjust the position of the box corner of the container. Among them, based on the cropping area, the reference image is cropped to obtain a cropped reference image. The cropping area is an area with the minimum area including a box corner of the container, a fixed lock hole adjacent to the box corner, and a box corner of the container adjacent to the fixed lock hole.
[0131] In order to reduce interference information, the cropped image only includes one corner of the container, a fixed lock hole adjacent to the corner, and one corner of the container adjacent to the fixed lock hole. That is to say, the cropped area is the minimum area surrounding one corner of the container, one fixed lock hole adjacent to the corner, and one corner of the container adjacent to the fixed lock hole. This not only reduces the size of the image, but also makes the interference information in the cropped image less, and there are also enough reference objects.
[0132] Fig. 9 1 is a structural schematic diagram of a reference picture of a bottom opening of a storage yard provided by an exemplary embodiment of the present application. Fig. 9 As shown, step 112 can be specifically implemented as follows: determine whether the reference image contains only one corner of the container, the target area formed by the bottom line of the open bottom of the yard adjacent to the corner, and one corner of the container adjacent to the target area; one corner of the container, the open bottom of the yard adjacent to the corner, and one corner of the container adjacent to the target area are located in the same horizontal direction or the same vertical direction; if the reference image contains only one corner of the container, the target area formed by the bottom line of the open bottom of the yard adjacent to the corner, and one corner of the container adjacent to the target area, then crop the reference image to obtain a cropped reference image.
[0133] In an embodiment of the present application, the reference object selected by the present application is the bottom line of the bottom opening of the yard adjacent to the box corner and a box corner of the container adjacent to the target area, so as to judge whether the box corner of the container is close to the bottom line of the bottom opening of the yard according to the reference object. Among them, multiple bottom lines are drawn in the bottom opening of the yard, each of which can be a cross line or a double cross line, and each bottom line can divide the white area of the bottom opening of the yard into 4 areas, each of which corresponds to a box corner of a container. The position of the box corner of the container is determined by the bottom line of the bottom opening of the yard and the adjacent container. In addition, it is necessary to select the target area in the multiple areas formed by the bottom line of the bottom opening. Among them, the reference image can be cropped based on the cropping area to obtain the cropped reference image, and the cropping area is a minimum area of a box corner of a container, a target area composed of the bottom line of the bottom opening of the yard adjacent to the box corner, and a box corner of a container adjacent to the bottom opening of the yard.
[0134] Specifically, Fig. 9 As shown, it can be identified from the reference image that a corner C of the container is adjacent to a target area G located at the bottom line of the open bottom of the yard, and the target area G is adjacent to a corner P of the adjacent container. In order to reduce interference information, a cutting range can be set by referring to the fact that only a corner C of the container, a target area G formed by the bottom line of the open bottom of the yard adjacent to the corner, and a corner P of the container adjacent to the target area exist in the reference image. The cutting range only includes a corner C of the container, a target area G formed by the bottom line of the open bottom of the yard adjacent to the corner, and a corner P of the container adjacent to the target area. That is, the cutting range encloses C, P, and G together, and the enclosed area is the minimum. The purpose of this is to prevent other locks and other containers from becoming interference information, resulting in inaccurate determination of the placement position of the corner.
[0135] In one embodiment, step 115 can be specifically implemented as follows: obtaining a feature vector of a baffle adjacent to a box corner in the cropped reference image; obtaining a feature vector of a box corner of a container adjacent to the baffle in the cropped reference image; and establishing a first corresponding relationship between the reference coordinate position, the feature vector of a baffle adjacent to a box corner in the cropped reference image, the feature vector of a box corner of the container adjacent to the baffle, and multiple reference images.
[0136] In one embodiment, step 115 can be specifically implemented as follows: obtaining a feature vector of a fixed key hole adjacent to a box corner in a cropped reference image; obtaining a feature vector of a box corner of a container adjacent to the fixed key hole in the cropped reference image; and establishing a first corresponding relationship between the reference coordinate position, the feature vector of a fixed key hole adjacent to a box corner in the cropped reference image, the feature vector of a box corner of a container adjacent to the fixed key hole, and multiple reference images.
[0137] In one embodiment, step 115 can be specifically implemented as follows: obtaining a feature vector of a target area formed by the bottom line of the open bottom of the yard adjacent to the box corner in the cropped reference image; obtaining a feature vector of a box corner of the container adjacent to the open bottom of the yard in the cropped reference image; and establishing a first corresponding relationship between the reference coordinate position, the feature vector of the target area formed by the bottom line of the open bottom of the yard adjacent to the box corner in the cropped reference image, the feature vector of a box corner of the container adjacent to the target area, and multiple reference images.
[0138] Fig.10 Schematic diagram of the structure of a container placement control device provided by an exemplary embodiment of the present application. Fig.10 As shown, the control device 20 for placing a container includes: a construction module 201, which is used to construct a reference model; wherein the reference model is used to represent the correspondence between a reference picture containing the corners of the container and the reference coordinate position of the corners in the reference picture; a video acquisition module 202, which is used to control the camera to capture a corner video of each corner of the current container; wherein the corner video includes a plurality of captured pictures, the camera is installed on a sling, and the sling is used to carry the container; a cutting module 203, which is used to cut the captured picture based on the area where the corner of the current container is located in the captured picture, so as to obtain a cut picture including the corner; a determination module 204, which is used to determine the actual coordinate position of the corner in the cut picture; a position acquisition module 205, which is used to input the cut picture into the reference model for simulation, so as to generate the reference coordinate position of the corner in the cut picture; a generation module 206, which is used to control the sling to place the current container at the target position if the difference between the actual coordinate position of each corner of the current container and its corresponding reference coordinate position is less than a preset coordinate threshold.
[0139] The control device for placing a container provided in the present application includes: a construction module, which is used to construct a reference model; wherein the reference model is used to represent the correspondence between a reference image containing a corner of a container and a reference coordinate position of the corner in the reference image; a video acquisition module, which is used to control a camera to capture a corner video of each corner of the current container; wherein the corner video includes a plurality of captured images, the camera is mounted on a sling, and the sling is used to carry the container; a cutting module, which is used to cut the captured image based on the area where the corner of the current container is located in the captured image, so as to obtain a cut image including the corner; a determination module, which is used to determine the actual coordinate position of the corner in the cut image; a position acquisition module, which is used to input the cut image into the reference model for simulation, so as to generate the reference coordinate position of the corner in the cut image; and a generation module, which is used to control the sling to place the current container at a target position if the difference between the actual coordinate position of each corner of the current container and its corresponding reference coordinate position is less than a preset coordinate threshold. The reference coordinate position of the box corner is obtained by cropping the captured image of the box corner and inputting the cropped image into the reference model. Then, the actual coordinate position of the box corner in the captured image and the distance value between the reference coordinate position are used as the mechanism for placing the container with the sling. In this way, it is determined whether the current position of the box corner of the container corresponds to its placement position, so that the box corner can be accurately placed at the target position, and then the container can be placed at the target position, thereby improving the accuracy and efficiency of container placement.
[0140] Fig.11 FIG. 1 is a schematic diagram of a control device for placing containers provided by another exemplary embodiment of the present application. Fig.11 As shown, the control device 20 for container placement can be specifically configured as follows: if the difference between the actual coordinate position of the first corner of the current container and its corresponding reference coordinate position is greater than a preset coordinate threshold, it is determined that the camera corresponding to the first corner of the container is loose, so as to generate a prompt message and send it to the electronic device.
[0141] In one embodiment, if Fig. 9 As shown, the construction module 201 may include: an image acquisition unit 2011, used to acquire multiple reference images containing the corners of the container; a cropping unit 2012, used to crop the reference image based on the cropping condition to obtain the cropped reference image; a position determination unit 2013, used to determine the reference coordinate position of the corner in the cropped reference image; a vector acquisition unit 2014, used to acquire the feature vector of the reference object of the corner in the cropped reference image; a construction unit 2015, used to establish a first correspondence between the reference coordinate position, the feature vector of the reference object of the corner in the cropped reference image, and multiple reference images; and a construction subunit 2016, used to construct a reference model based on the multiple first correspondences.
[0142] In one embodiment, the cropping unit 2012 can be specifically implemented as follows: determining whether there are only one corner of the container, a fixed lock adjacent to the corner, and a corner of the container adjacent to the fixed lock in the reference image; wherein the reference coordinate position of the corner, the fixed lock, and the container adjacent to the fixed lock are located in the same horizontal direction or the same vertical direction; if there are only one corner of the container, a fixed lock adjacent to the corner, and a corner of the container adjacent to the fixed lock in the reference image, then cropping the reference image to obtain a cropped reference image.
[0143] In one embodiment, the establishing unit 2015 can be specifically configured to: obtain the feature vector of the fixed lock adjacent to the box corner in the cropped reference image; obtain the feature vector of the container adjacent to the fixed lock in the cropped reference image; establish a first corresponding relationship between the reference coordinate position, the feature vector of the fixed lock adjacent to the box corner in the cropped reference image, the feature vector of the container adjacent to the fixed lock, and multiple reference images.
[0144] In one embodiment, the cropping unit 2012 can be specifically implemented as follows: determining whether there are only one corner of the container, a fixed lock adjacent to the corner, and a lock adjacent to the fixed lock in the reference image; wherein the corner, the fixed lock, and a lock adjacent to the fixed lock are located in the same horizontal direction or the same vertical direction; if there are only one corner of the container, a fixed lock adjacent to the corner, and a lock adjacent to the fixed lock in the reference image, then cropping the reference image to obtain a cropped reference image.
[0145] In one embodiment, if Fig. 9 As shown, the position acquisition module 205 may include: an extraction unit 2051, used to extract the feature vector corresponding to the cropped photograph; an input unit 2052, used to input the feature vector into the reference model and identify the cropped photograph to determine whether there is a reference object in the cropped photograph; and a result unit 2053, used to obtain the reference coordinate position of the box corner corresponding to the cropped photograph if there is a reference object in the cropped photograph.
[0146] In one embodiment, after the video acquisition module 202, the control device 20 for container placement can be specifically configured as follows: if there are spots in the captured image, calibrate the outline of the spot; divide the outline into multiple area blocks; analyze the texture information of the pixel blocks in the preset area adjacent to the area block; infer the missing content of the area block based on the texture information; supplement the missing content in the corresponding area block to obtain a repaired captured image; wherein the cropping module 203 can be specifically implemented as follows: crop the repaired captured image to obtain a cropped image including the box corner.
[0147] The present application provides a lifting device, comprising:
[0148] A crane body and a spreader, wherein the spreader is arranged on the crane body and is used to carry containers. A plurality of cameras are installed on the spreader, each camera is arranged opposite to a corner of the container, and the camera is used to photograph the corner of the container.
[0149] Fig.12 A block diagram of an electronic device according to an embodiment of the present application is illustrated.
[0150] like Fig.12 As shown, the electronic device 10 includes one or more processors 11 and a memory 12 .
[0151] The processor 11 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 10 to perform desired functions.
[0152] The memory 12 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 11 may execute the program instructions to implement the container placement control method of each embodiment of the present application described above and / or other desired functions. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.
[0153] In one example, the electronic device 10 may further include: an input device 13 and an output device 14, and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0154] When the electronic device is a stand-alone device, the input device 13 may be a communication network connector, which is used to receive the collected input signals from the first device and the second device.
[0155] In addition, the input device 13 may also include, for example, a keyboard, a mouse, and the like.
[0156] The output device 14 can output various information to the outside, including the determined distance information, direction information, etc. The output device 14 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.
[0157] Of course, to simplify, Fig.12 Only some of the components related to the present application in the electronic device 10 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 10 may also include any other appropriate components.
[0158] The computer program product may be written in any combination of one or more programming languages to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0159] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable 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 of the above.
[0160] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A container placement control method, characterized in that: include: Constructing a reference model; wherein the reference model is used to represent the correspondence between a reference picture containing a corner of a container and a reference coordinate position of the corner in the reference picture; Controlling a camera to shoot a video of each corner of the current container; wherein the video of the corner includes a plurality of photographed pictures, and the camera is installed on a spreader, and the spreader is used to carry the container; Based on the area in which the corner of the current container is located in the photographed picture, cropping the photographed picture to obtain a cropped picture including the corner of the container; Determine the actual coordinate position of the box corner in the cropped image; Inputting the cut picture into the reference model for simulation to generate the reference coordinate position of the box corner in the cut picture; If the difference between the actual coordinate position of each corner of the current container and its corresponding reference coordinate position is less than a preset coordinate threshold, the spreader is controlled to place the current container at the target position.
2. The container placement control method according to claim 1, characterized in that: Also includes: If the difference between the actual coordinate position of the first corner of the current container and its corresponding reference coordinate position is greater than the preset coordinate threshold, it is determined that the camera corresponding to the first corner is loose, so as to generate a prompt message and send it to the electronic device.
3. The container placement control method according to claim 1, characterized in that: The construction of the reference model comprises: Acquire a plurality of reference images containing the corners of the container; Based on the cropping condition, cropping the reference image to obtain a cropped reference image; Determining the reference coordinate positions of the box corners in the cropped reference image; Obtaining a feature vector of a reference object of a box corner in the cropped reference image; Establishing a first correspondence between the reference coordinate position, the feature vector of the reference object of the box corner in the cropped reference picture, and a plurality of reference pictures; The reference model is constructed according to the multiple first corresponding relationships.
4. The container placement control method according to claim 3, characterized in that: The step of cropping the reference picture based on the cropping condition to obtain a cropped reference picture includes: Determine whether the reference image contains only one corner of the container, one fixed lock head adjacent to the corner of the container, and one corner of the container adjacent to the fixed lock head; wherein the corner of the container, the fixed lock head, and the container adjacent to the fixed lock head are located in the same horizontal direction or the same vertical direction; If the reference picture only contains one corner of the container, one fixed lock head adjacent to the corner of the container, and one corner of the container adjacent to the fixed lock head, the reference picture is cropped to obtain the cropped reference picture.
5. The container placement control method according to claim 3, characterized in that: The establishing of a first correspondence between the reference coordinate position, the feature vector of the reference object of the box corner in the cropped reference picture, and a plurality of reference pictures comprises: Obtaining a feature vector of a fixed lock head adjacent to a box corner in the cropped reference image; Obtaining a feature vector of a container adjacent to the fixed lock in the cropped reference image; A first correspondence is established between the reference coordinate position, the feature vector of the fixed lock adjacent to the box corner in the cropped reference image, the feature vector of the container adjacent to the fixed lock, and multiple reference images.
6. The container placement control method according to claim 3, characterized in that: The step of cropping the reference picture based on the cropping condition to obtain a cropped reference picture includes: Determine whether there is only one corner of the container, one fixed lock head adjacent to the corner, and one lock head adjacent to the fixed lock head in the reference picture; wherein the corner, the fixed lock head, and one lock head adjacent to the fixed lock head are located in the same horizontal direction or the same vertical direction; If the reference picture only contains one corner of the container, one fixed lock head adjacent to the corner, and one lock head adjacent to the fixed lock head, the reference picture is cropped to obtain the cropped reference picture.
7. The container placement control method according to claim 1, characterized in that: The step of inputting the cut picture into the reference model for simulation to generate the reference coordinate position of the box corner in the cut picture includes: Extracting a feature vector corresponding to the cropped photograph; Inputting the feature vector into the reference model and identifying the cropped photograph to determine whether a reference object exists in the cropped photograph; If the reference object exists in the cropped photograph, the reference coordinate position of the box corner corresponding to the cropped photograph is obtained.
8. The container placement control method according to claim 1, characterized in that: After the control camera captures the video of each corner of the current container, the method further includes: If there is a spot in the photographed image, calibrate the outline of the spot; Dividing the contour into a plurality of area blocks; Analyzing texture information of pixel blocks in a preset area adjacent to the area block; Inferring the missing content of the region block according to the texture information; Supplementing the missing content in the corresponding area block to obtain a repaired photograph; The method of cropping the captured image to obtain a cropped image including the box corner comprises: The repaired photographed image is cropped to obtain a cropped image including the box corner.
9. A container placement control device, characterized in that: include: A construction module, used to construct a reference model; wherein the reference model is used to represent the correspondence between a reference picture containing a corner of a container and a reference coordinate position of the corner in the reference picture; A video acquisition module, used to control the camera to capture a video of each corner of the current container; wherein the video of each corner includes a plurality of captured images, and the camera is installed on a spreader, and the spreader is used to carry the container; A cropping module, configured to crop the captured image based on the area where the corner of the current container is located in the captured image, so as to obtain a cropped image including the corner of the container; A determination module, used to determine the actual coordinate position of the box corner in the cropped image; A position acquisition module, used for inputting the cut picture into the reference model for simulation to generate the reference coordinate position of the box corner in the cut picture; A generation module is used to control the spreader to place the current container at a target position if the difference between the actual coordinate position of each corner of the current container and its corresponding reference coordinate position is less than a preset coordinate threshold.
10. A lifting device, characterized in that: include: Crane body; as well as A spreader, wherein the spreader is arranged on the crane body and is used to carry containers. A plurality of cameras are installed on the spreader, each camera is arranged opposite to a corner of the container, and the cameras are used to photograph the corners of the container.
