Positioning calibration method and device, equipment and storage medium
The visual image obtained by the camera and the position of the target rectangular hole is detected using the deep learning model, which solves the system complexity and cost increase caused by multiple sensors in automated car positioning calibration, and achieves accurate positioning calibration and cost reduction.
Patent Information
- Application Number
- CN202411096056.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-11-29
AI Technical Summary
In the existing automated car positioning calibration solution, the fusion of multiple sensor data leads to increased system complexity, increased computing demand and increased costs.
The camera is used to obtain visual images within the field of view, detect the position of the target rectangular hole through computer vision algorithms and deep learning models, adjust the rotation angle and fork rod height of the automated car, realize positioning calibration, simplify the system structure, reduce the computational complexity and hardware cost.
While ensuring calibration accuracy, the system structure is simplified, the calculation complexity and hardware cost are reduced, and the precise positioning and calibration of automated trolleys is realized.
Smart Images

Figure CN119045477A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a positioning calibration method, device, equipment and storage medium. Background Art
[0002] With the rapid development of automation technology, automated guided vehicles (AGVs) have been widely used in industry and logistics. In order to ensure that automated guided vehicles can perform tasks accurately and efficiently, calibrating their navigation and positioning systems has become a key step.
[0003] At present, the solution for positioning and calibration of automated vehicles can be mainly implemented through a calibration solution based on fusion sensors. The calibration solution based on fusion sensors combines the advantages of lidar, ultrasonic and visual sensors, and improves calibration accuracy and system robustness through multi-sensor data fusion. However, the solution integrates data from multiple sensors, which increases the complexity of the system, which may lead to an increase in the system's computing requirements and increase the overall cost of the solution. Summary of the invention
[0004] In order to help solve the problem that fusing data from multiple sensors increases system complexity, increases system computing requirements, and increases the overall cost of the solution, the present application provides a positioning calibration method, device, equipment and storage medium.
[0005] In a first aspect, the present application provides a positioning and calibration method, which adopts the following technical solution: the method is applied to a positioning and calibration system, the positioning and calibration system includes a camera, and the camera is fixedly placed on a fork rod of an automated vehicle, and the method includes:
[0006] Controlling the camera to acquire a visual image within the camera's field of view, wherein the visual image includes a target shelf;
[0007] Calibrate the automated vehicle based on the ground position according to the position of the target shelf in the visual image;
[0008] Controlling the camera to acquire a target area image, wherein the target area image includes a target shelf;
[0009] Using a deep learning model to detect the position of the target rectangular hole of the target shelf in the target area image, and generating a rectangular hole detection frame corresponding to the target rectangular hole in the target area image;
[0010] The automated vehicle and the fork rod of the automated vehicle are positioned and calibrated according to the position of the rectangular hole detection frame in the target area image.
[0011] In a specific implementation scheme, the ground position-based calibration of the automated vehicle according to the position of the target shelf in the visual image includes:
[0012] Using a computer vision algorithm to detect and identify a bottom straight line of the target shelf in the visual image;
[0013] Comparing the angle between the bottom straight line of the target shelf and the horizontal line of the visual image with a preset reference angle;
[0014] If the angle between the bottom straight line of the target shelf and the horizontal line of the visual image does not meet the preset reference angle, output a control signal to adjust the rotation angle of the automated vehicle;
[0015] Comparing the distance between the bottom straight line of the target shelf and the bottom of the visual image with a preset reference distance;
[0016] If the distance between the bottom straight line of the target shelf and the bottom of the visual image does not meet the preset reference distance, a control signal is output to control the automated vehicle to approach or move away from the target shelf.
[0017] In a specific implementation manner, controlling the camera to acquire an image of the target area includes:
[0018] Controlling the camera to obtain a calibration image within a field of view after calibration based on a ground position is completed;
[0019] An image of a middle area portion of the calibration image is intercepted to generate the target area image.
[0020] In a specific implementation scheme, the target shelf includes two target rectangular holes, the rectangular hole detection frames include two, and the positioning and calibration of the automated trolley and the fork rod of the automated trolley according to the positions of the rectangular hole detection frames in the target area image includes:
[0021] Calculating the distance deviation between the midpoint of the rectangular hole detection frame and the reference midpoint;
[0022] If the distance deviation is outside the preset threshold range, a horizontal movement control signal is output to control the position of the automated vehicle to be adjusted in the horizontal direction;
[0023] A computer vision algorithm is used to calculate the position of the shadow portion in the target rectangular hole, and the rotation angle of the automated vehicle is adjusted according to the position of the shadow portion relative to the target rectangular hole;
[0024] Calculating the height of the rectangular hole detection frame from the bottom of the target area image, and comparing the height of the rectangular hole detection frame with a preset reference height;
[0025] If the height of the rectangular hole detection frame does not meet the preset reference height, a fork rod adjustment control signal is output to control the fork rod adjustment height of the automated vehicle.
[0026] In a specific implementation scheme, adjusting the rotation angle of the automated vehicle according to the position of the shadow portion relative to the position of the target rectangular hole comprises:
[0027] Generating a shadow detection frame corresponding to the shadow portion in the target area image;
[0028] Calculating the horizontal ratio of the shadow detection frame to the rectangular hole detection frame;
[0029] Determine whether the calculated horizontal ratio is within a preset threshold range;
[0030] If the lateral proportion value is within a preset threshold range, the rotation angle of the automated vehicle is not adjusted;
[0031] If the lateral proportion value is not within a preset threshold range, a rotation angle control signal is output to control the automated vehicle to adjust the rotation angle.
[0032] In a specific implementation scheme, after the output fork rod adjustment control signal controls the fork rod of the automated vehicle to adjust the height, the method further includes:
[0033] Determine whether the angle between the lateral position of the rectangular hole detection frame and the horizontal line of the target area image is within a preset range;
[0034] If the angle between the lateral position of the rectangular hole detection frame and the horizontal line of the target area image is not within a preset range, outputting a tilt warning;
[0035] If the angle between the lateral position of the rectangular hole detection frame and the horizontal line of the target area image is within a preset range, the positioning calibration is completed.
[0036] In a specific implementation manner, after positioning and calibrating the automated vehicle and the fork rod of the automated vehicle according to the position of the rectangular hole detection frame in the target area image, the method further includes:
[0037] The automated vehicle is controlled to perform secondary calibration at positions at different distances from the target container.
[0038] In a second aspect, the present application provides a positioning and calibration device, which adopts the following technical solution: the device is applied to a positioning and calibration system, the positioning and calibration system includes a camera, the camera is fixedly placed on a fork rod of an automated vehicle, and the device includes:
[0039] A visual image acquisition module, used to control the camera to acquire a visual image within the camera's field of view, wherein the visual image includes a target shelf;
[0040] A ground position calibration module, used for calibrating the automated vehicle based on the ground position according to the position of the target shelf in the visual image;
[0041] A target image acquisition module, used to control the camera to acquire a target area image, wherein the target area image includes a target shelf;
[0042] A target hole detection module, used to detect the position of the target rectangular hole of the target shelf in the target area image by using a deep learning model, and generate a rectangular hole detection frame corresponding to the target rectangular hole in the target area image;
[0043] The target positioning and calibration module is used to position and calibrate the automated vehicle and the fork rod of the automated vehicle according to the position of the rectangular hole detection frame in the target area image.
[0044] In a third aspect, the present application provides a computer device, which adopts the following technical solution: it includes a memory and a processor, and the memory stores a computer program that can be loaded by the processor and execute any of the above-mentioned positioning calibration methods.
[0045] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution: storing a computer program that can be loaded by a processor and execute any of the above-mentioned positioning calibration methods.
[0046] In summary, this application has the following beneficial technical effects:
[0047] The camera is used to capture the image within the camera's field of view, and the automated vehicle is calibrated on the ground based on the image obtained. After the ground calibration is completed, the image of the target area is taken again. The image of the target area contains the shelf that needs to be positioned, and the shelf contains the target rectangular hole on which the fork of the automated vehicle needs to be accurately positioned. According to the image of the target area taken, the deep learning model is used to detect the position of the target rectangular hole in the image. The system can adjust the horizontal position of the automated vehicle relative to the target rectangular hole on the shelf and the longitudinal position of the fork of the automated vehicle relative to the target rectangular hole according to the position of the detected target rectangular hole, which helps to achieve the positioning calibration of the automated vehicle. In the entire solution, only the camera is used to obtain the image within the field of view, and the image is processed to achieve calibration. While ensuring the calibration accuracy, multiple fusion sensors are not used. The entire system is simple to implement, which simplifies the complexity of the system, thereby reducing the computational complexity of the system. In addition, the entire solution does not require multiple fusion sensors, that is, no additional hardware equipment is required, and the hardware cost is relatively low. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 is a flow chart of a positioning calibration method in an embodiment of the present application;
[0049] Figure 2 is a flow chart based on ground calibration in an embodiment of the present application;
[0050] Figure 3 is a flow chart of target positioning calibration in an embodiment of the present application;
[0051] Figure 4 1 is a schematic diagram of the horizontal proportions of the shadow portion detection frame and the rectangular hole detection frame of the target shelf rectangular hole in the embodiment of the present application;
[0052] Figure 5 is a schematic diagram of a positioning calibration device in an embodiment of the present application;
[0053] Figure 6 It is a schematic diagram used to embody a computer device in an embodiment of the present application.
[0054] Reference numerals: 501, visual image acquisition module; 502, ground position calibration module; 503, target image acquisition module; 504, target hole detection module; 505, target positioning calibration module. DETAILED DESCRIPTION
[0055] The following combination Figure 1-Figure 6 This application is described in further detail.
[0056] The embodiment of the present application discloses a positioning and calibration method, which is applied to the positioning and calibration system of an automated cart. In the embodiment of the present application, the forklift in the automated cart is mainly used as an example for explanation. The front end of the forklift includes two fork rods. When transporting goods, the two fork rods at the front end need to be passed through the corresponding rectangular holes on the shelf to obtain and transport the goods. With the rapid development of automation technology, automated carts have been widely used in the fields of industry and logistics, which also means that the automated cart can automatically obtain and transport goods through system control. Therefore, in order to ensure that the automated cart can perform tasks accurately and efficiently, calibrating its navigation and positioning system has become a key step.
[0057] At present, the commonly used positioning and calibration schemes for automated vehicles mainly include the following: laser radar-based calibration scheme, ultrasonic-based calibration scheme, and fusion sensor-based calibration scheme. The above schemes can achieve high-precision positioning and calibration for automated vehicles. However, these schemes also have some problems. For example, the laser radar equipment involved in the laser radar-based scheme is expensive, which makes the overall cost of the calibration scheme high and not easy to be widely applied. In addition, the laser radar is easily affected by bad weather environments, etc.; the ultrasonic-based scheme is easily disturbed by obstacles and environmental noise, thereby affecting the accuracy of positioning; the fusion sensor-based scheme uses a variety of fusion sensors, which increases the complexity and computing requirements of the system, and requires additional hardware equipment to connect the sensor to the system, as well as additional data processing units to process the sensor data, which increases the overall cost of the scheme. In order to help reduce the complexity of the system, reduce computing requirements, and reduce the overall implementation cost of the system as much as possible, the present application provides a positioning and calibration method.
[0058] Reference Figure 1 , the method comprises the following steps:
[0059] S10, controlling the camera to obtain a visual image within a camera field of view, where the visual image includes a target shelf.
[0060] Specifically, when the automated trolley is transporting goods, it is ultimately necessary to locate the position of the target rectangular hole in the target shelf so that the two forks at the front of the trolley can pass through the target rectangular hole, thereby smoothly acquiring and transporting the goods. The camera is fixed on one of the forks of the automated trolley. The camera is controlled to acquire the visual image within the field of view directly in front of the camera. The target shelf is located directly in front of the trolley. Therefore, the acquired visual image includes the target shelf. Based on the position of the target shelf in the acquired image, the trolley is first positioned and calibrated based on the ground position. It should be noted that the device for acquiring images by the system can be a camera, but is not limited to a camera. It can also be other devices with image acquisition functions such as a camera. In actual applications, users can choose according to actual conditions.
[0061] S20, calibrating the automated vehicle based on the ground position according to the position of the target shelf in the visual image.
[0062] Specifically, after the user determines the target shelf, the automated cart will first move to an initial position. At the initial position, the target shelf is located directly in front of the automated cart. Therefore, the visual image acquired by the camera includes the target shelf. By processing and analyzing the specific position of the target shelf in the image, the corresponding control signal is output and the position of the cart is adjusted to realize the calibration operation of the automated cart based on the ground position.
[0063] S30, controlling the camera to obtain a target area image, where the target area image includes a target shelf.
[0064] Specifically, after the ground calibration operation is completed, the automated trolley is positioned based on the target rectangular hole in the target shelf to achieve more accurate positioning calibration, so that the fork rod at the front end of the trolley can pass through the rectangular hole completely without obstacles, so that the goods can be obtained and transported. Specifically, it is necessary to first control the camera on the fork rod of the automated trolley to obtain an image again, and the image obtained is an image of the target area, and the target area image obtained includes the target shelf.
[0065] S40, using a deep learning model to detect the position of the target rectangular hole of the target shelf in the target area image, and generating a rectangular hole detection frame corresponding to the target rectangular hole in the target area image.
[0066] Specifically, the target area image includes a target shelf, and there is a corresponding target rectangular hole on the target shelf. A deep learning model is used to detect the position of the target rectangular hole of the target shelf in the target area image. Specifically, a target detection model can be used to detect the position of the target rectangular hole in the image, wherein the target detection model can directly use an existing detection model; then, a rectangular hole detection frame corresponding to the target rectangular hole is generated in the target area image, which can also be understood as using a rectangular frame to frame the detected target rectangular hole at the position of the target rectangular hole in the image, and the rectangular frame can use different colors to facilitate the display distinction from the image.
[0067] S50, positioning and calibrating the automated vehicle and the fork rod of the automated vehicle according to the position of the rectangular hole detection frame in the target area image.
[0068] Specifically, after detecting the target rectangular hole, according to the position of the target rectangular hole in the image, the system outputs the corresponding control signal to control the automated trolley for positioning and calibration, and adjusts the horizontal position of the automated trolley, the rotation angle of the trolley, and the height of the trolley fork to achieve positioning and calibration of the automated trolley, so that the fork bar at the front end of the trolley can face the target rectangular hole on the target shelf.
[0069] In the present application, a camera is used to capture images within the camera's field of view, and the automated trolley is ground calibrated based on the acquired images. After the ground calibration is completed, an image of the target area is taken again. The image of the target area contains the shelf that needs to be positioned, and the shelf contains the target rectangular hole on which the fork of the automated trolley needs to be accurately positioned. Based on the captured image of the target area, a deep learning model is used to detect the position of the target rectangular hole in the image. The system can adjust the lateral position of the automated trolley relative to the target rectangular hole on the shelf and the longitudinal position of the fork of the automated trolley relative to the target rectangular hole based on the detected position of the target rectangular hole, which helps to achieve the positioning calibration of the automated trolley. In the entire solution, only the camera is used to obtain images within the field of view, and the images are processed to achieve calibration. While ensuring the calibration accuracy, multiple fusion sensors are not used. The entire system is simple to implement, which simplifies the complexity of the system, thereby reducing the computational complexity of the system.
[0070] In one embodiment, referring to Figure 2 , the steps of calibrating the automated vehicle based on the ground position according to the position of the target shelf in the visual image can be specifically performed as follows:
[0071] First, a computer vision algorithm (CV) is used to detect and identify the bottom straight line of the target shelf in the visual image. In the image, the bottom straight line of the target shelf can also be understood as the boundary between the target shelf and the ground. Afterwards, the angle between the bottom straight line of the target shelf and the horizontal line of the visual image is compared with a preset reference angle, wherein the horizontal line of the visual image refers to a line parallel to the upper and lower sides of the rectangular visual image; the angle between the bottom straight line of the target shelf and the horizontal line of the visual image is calculated, and the calculated angle is compared with a preset reference angle to determine whether the calculated angle is within a reasonable range. If the calculated angle satisfies the reference angle, that is, the calculated angle is within a reasonable range, there is no need to adjust the rotation angle of the trolley; if the angle between the bottom straight line of the target shelf and the horizontal line of the visual image does not meet the preset reference angle, that is, the angle is not within a reasonable range, a control signal of the rotation angle is output to adjust the rotation angle of the automated trolley. After the adjustment is completed, the steps of acquiring the image, calculating the bottom straight line of the target shelf using a computer vision algorithm, calculating the angle, and comparing the calculated angle with the reference angle are repeated until the angle between the bottom straight line of the container in the image and the horizontal line of the image is within a reasonable threshold range.
[0072] Finally, the distance between the bottom straight line of the target shelf and the bottom of the visual image is compared with the preset reference distance. Specifically, it refers to the distance between the bottom straight line of the target shelf detected in the visual image and the lower edge of the visual image, that is, the distance between the two lines in the visual image, and is compared with the preset reference distance. If the distance between the two lines in the visual image meets the reference distance, that is, it is within a reasonable preset range, there is no need to adjust the front and rear position of the trolley; if the distance between the bottom straight line of the target shelf and the bottom of the visual image does not meet the preset reference distance, that is, the distance between the two straight lines in the visual image is outside a reasonable range, then a control signal is output to control the automated trolley to approach or move away from the target shelf, and control the trolley to move forward or backward for adjustment. After the adjustment is completed, the steps of acquiring the image, calculating the distance between the two straight lines in the image and comparing it with the reference distance are repeated until the distance between the two straight lines in the visual image meets the reference distance and is within a reasonable range.
[0073] In the present application scheme, the automated trolley is calibrated based on the ground position to determine the rotation angle of the trolley and the position of the trolley from the target shelf. Positioning calibration is performed using pure image processing, which can greatly reduce the complexity of the system. The entire calibration process only requires the acquisition of images using a computer vision (CV) algorithm and a simple image processing algorithm, which reduces the complexity of the calculation, thereby reducing the demand for system computing resources and, in turn, reducing costs.
[0074] In one embodiment, the step of controlling the camera to acquire the target area image may be specifically performed as follows:
[0075] The camera is controlled to obtain a calibration image within the field of view after the calibration based on the ground position is completed, that is, the image within the field of view directly in front of the camera, and the obtained image includes the target shelf where the cart needs to be positioned; the image of the middle area of the calibration image is captured, which can also be understood as capturing the middle area of the image according to the size set in advance by the user, and generating an image of the target area.
[0076] In the present application, since the camera or other image acquisition devices have a wide angle when taking images, the middle area of the image is partially clear, while the parts around the edge of the image are relatively unclear. By cutting out the part of the middle area that includes the target shelf, the image quality is improved, which helps to improve the accuracy of subsequent image processing.
[0077] In one embodiment, the target shelf includes two target rectangular holes, and the rectangular hole detection frames include two. Figure 3 , the steps of positioning and calibrating the automated vehicle and the fork rod of the automated vehicle according to the position of the rectangular hole detection frame in the target area image can be specifically performed as follows:
[0078] First, the distance deviation between the midpoint of the rectangular hole detection frame and the reference midpoint is calculated. If the distance deviation is within a reasonable range, there is no need to adjust the automated vehicle. If the distance deviation is outside the preset threshold range, a horizontal movement control signal is output to control the automated vehicle to adjust its position in the horizontal direction. After the left and right position adjustments are completed, the steps of capturing the image to detect the midpoint position are repeated until the deviation between the midpoint position of the captured image and the reference midpoint meets the threshold; the midpoint position between the two detected rectangular hole detection frames is identified in the captured target area image and compared with the reference midpoint position to realize the left and right position of the automated vehicle.
[0079] After that, the computer vision algorithm is used to calculate the position of the shadow part in the target rectangular hole, and the rotation angle of the automated vehicle is adjusted according to the position of the shadow part relative to the target rectangular hole. Specifically, a shadow detection frame corresponding to the shadow part is first generated in the target area image, and then the shadow detection frame is generated. Figure 4 , calculate the lateral proportions of the shadow detection frame and the rectangular hole detection frame, and determine whether the calculated lateral proportions are within the preset threshold range. If the lateral proportions are within the preset threshold range, there is no need to adjust the rotation angle of the automated trolley; if the lateral proportions are not within the preset threshold range, output a rotation angle control signal to control the automated trolley to adjust the rotation angle. After the trolley rotation angle is adjusted, repeat the steps of acquiring the image, comparing the midpoint position, detecting the shadow part and generating the shadow part detection frame, and calculating the lateral proportions of the shadow detection frame and the rectangular hole detection frame until the calculated lateral proportions meet the preset threshold.
[0080] Finally, the height of the rectangular hole detection frame from the bottom of the target area image is calculated, and the height of the rectangular hole detection frame is compared with the preset reference height. Specifically, the height between the bottom of the rectangular hole detection frame generated in the image and the bottom of the target area image is compared with the reference height. If the calculated height meets the preset reference height, there is no need to adjust the height of the trolley's fork rod, and the target positioning calibration is completed; if the height of the rectangular hole detection frame does not meet the preset reference height, the fork rod adjustment control signal is output to control the height of the fork rod of the automated trolley to adjust the height. After the height of the trolley's fork rod is adjusted, the above steps are repeated, and the calculated height is compared with the reference height again until the calculated height is within the preset reasonable range, and the target positioning calibration of the trolley is finally completed.
[0081] In the present application, the purpose of ground-based calibration is to perform preliminary calibration on the position of the trolley so that the trolley is at an initial accurate position. The purpose of target position positioning calibration is to make the fork of the trolley finally correspond to the rectangular hole on the target shelf. Before the trolley moves to the target shelf, the fork of the trolley can smoothly pass through the rectangular hole on the target shelf, thereby achieving acquisition and transportation acquisition. The entire positioning calibration process reduces the complexity of the calculation by processing the image acquired by the camera with the CV algorithm and a simple image processing algorithm, thereby reducing the demand for system computing resources and thus reducing costs.
[0082] In one embodiment, considering that the shelf may be tilted when the goods are stacked, after outputting the fork adjustment control signal to control the fork adjustment height of the automated vehicle, the following steps may be performed:
[0083] Judging whether the angle between the lateral position of the rectangular hole detection frame and the horizontal line of the target area image is within a preset range can also be understood as calculating and judging whether the angle formed by the direction of the long side of the rectangular hole detection frame and the long side of the image is within a preset reasonable range; if the angle between the lateral position of the rectangular hole detection frame and the horizontal line of the target area image is not within the preset range, a tilt warning is output to remind the user that the shelf is tilted and needs to be dealt with in time; if the angle between the lateral position of the rectangular hole detection frame and the horizontal line of the target area image is within the preset range, the positioning calibration is completed.
[0084] In the present application, the shelf may tilt when goods are stacked, which may cause certain safety hazards. By setting a shelf tilt warning, users can be reminded in time, and dangerous situations can be handled in time to eliminate safety hazards.
[0085] In one embodiment, considering that a single positioning calibration may result in an inaccurate calibration position, which may cause the fork of the trolley to have difficulty passing through the rectangular hole of the shelf, after the automated trolley and the fork of the automated trolley are positioned and calibrated according to the position of the rectangular hole detection frame in the target area image, the following steps may be performed:
[0086] The automated trolley is controlled to perform secondary calibration at different distances from the target container. Specifically, the automated trolley is controlled to perform secondary calibration at different distances from the target container using the solution in the embodiment of the present application. For example, the trolley moves to a position 2m away from the target shelf for a first calibration. After the first calibration is completed, the trolley is controlled to move to a position 0.5m away from the target shelf for a second calibration to make the positioning result more accurate. Since the first calibration has been completed, the second calibration generally does not need to take too much time, and can improve the efficiency of positioning calibration while improving positioning accuracy.
[0087] In the present application, the positioning of the automated trolley is made more accurate by performing a secondary calibration on the trolley. In addition, the secondary calibration takes less time, thereby improving the efficiency of the trolley positioning calibration while improving the accuracy of the trolley positioning calibration.
[0088] Figure 1 FIG. 1 is a flow chart of a positioning calibration method in one embodiment. It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but the steps are not necessarily executed in the order indicated by the arrows; unless otherwise specified in this document, there is no strict order restriction for the execution of the steps, and the steps may be executed in other orders; and Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0089] Based on the above method, an embodiment of the present application also discloses a positioning calibration device.
[0090] Reference Figure 5 , the device includes the following modules:
[0091] A visual image acquisition module 501 is used to control the camera to acquire a visual image within the camera field of view, where the visual image includes a target shelf;
[0092] A ground position calibration module 502 is used to calibrate the automated vehicle based on the ground position according to the position of the target shelf in the visual image;
[0093] A target image acquisition module 503 is used to control the camera to acquire a target area image, where the target area image includes a target shelf;
[0094] A target hole detection module 504 is used to detect the position of the target rectangular hole of the target shelf in the target area image by using a deep learning model, and generate a rectangular hole detection frame corresponding to the target rectangular hole in the target area image;
[0095] The target positioning and calibration module 505 is used to position and calibrate the automated vehicle and the fork rod of the automated vehicle according to the position of the rectangular hole detection frame in the target area image.
[0096] In one embodiment, the ground position calibration module 502 is specifically used to use a computer vision algorithm to detect and identify the bottom straight line of the target shelf in the visual image; compare the angle between the bottom straight line of the target shelf and the horizontal line of the visual image with a preset reference angle; if the angle between the bottom straight line of the target shelf and the horizontal line of the visual image does not meet the preset reference angle, output a control signal to adjust the rotation angle of the automated vehicle; compare the distance between the bottom straight line of the target shelf and the bottom of the visual image with a preset reference distance; if the distance between the bottom straight line of the target shelf and the bottom of the visual image does not meet the preset reference distance, output a control signal to control the automated vehicle to approach or move away from the target shelf.
[0097] In one embodiment, the target image acquisition module 503 is specifically used to control the camera to acquire a calibration image within the field of view after the calibration based on the ground position is completed; capture the image of the middle area of the calibration image, and generate a target area image.
[0098] In one embodiment, the target positioning calibration module 505 is specifically used to calculate the distance deviation between the midpoint of the rectangular hole detection frame and the reference midpoint; if the distance deviation is outside the preset threshold range, a horizontal movement control signal is output to control the automated vehicle to adjust its position in the horizontal direction; a computer vision algorithm is used to calculate the position of the shadow part in the target rectangular hole, and the rotation angle of the automated vehicle is adjusted according to the position of the shadow part relative to the position of the target rectangular hole; the height of the rectangular hole detection frame from the bottom of the target area image is calculated, and the height of the rectangular hole detection frame is compared with a preset reference height; if the height of the rectangular hole detection frame does not meet the preset reference height, a fork rod adjustment control signal is output to control the fork rod of the automated vehicle to adjust its height.
[0099] In one embodiment, the target positioning calibration module 505 is specifically used to generate a shadow detection frame corresponding to the shadow part in the target area image; calculate the lateral ratio of the shadow detection frame and the rectangular hole detection frame; determine whether the calculated lateral ratio is within a preset threshold range; if the lateral ratio is within the preset threshold range, the rotation angle of the automated vehicle is not adjusted; if the lateral ratio is not within the preset threshold range, a rotation angle control signal is output to control the automated vehicle to adjust the rotation angle.
[0100] In one embodiment, the target positioning calibration module 505 is also used to determine whether the angle between the lateral position of the rectangular hole detection frame and the horizontal line of the target area image is within a preset range; if the angle between the lateral position of the rectangular hole detection frame and the horizontal line of the target area image is not within the preset range, a tilt warning is output; if the angle between the lateral position of the rectangular hole detection frame and the horizontal line of the target area image is within the preset range, the positioning calibration is completed.
[0101] In one embodiment, the target positioning calibration module 505 is also used to control the automated vehicle to perform secondary calibration at different distances from the target container.
[0102] The positioning and calibration device provided in the embodiment of the present application can be applied to the positioning and calibration method provided in the above embodiment. For relevant details, refer to the above method embodiment. The implementation principle and technical effect are similar and will not be repeated here.
[0103] It should be noted that: when the positioning calibration device provided in the embodiment of the present application performs positioning calibration, only the division of the above-mentioned functional modules / functional units is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules / functional units as needed, that is, the internal structure of the positioning calibration device is divided into different functional modules / functional units to complete all or part of the functions described above. In addition, the implementation method of the positioning calibration method provided in the above method embodiment and the implementation method of the positioning calibration device provided in this embodiment belong to the same concept. The specific implementation process of the positioning calibration device provided in this embodiment is detailed in the above method embodiment, which will not be repeated here.
[0104] The embodiment of the present application also discloses a computer device.
[0105] Specifically, if Figure 6 As shown, the computer device can be a computer device such as a desktop computer, a laptop computer, a PDA, and a cloud server. The computer device may include, but is not limited to, a processor and a memory. The processor and the memory may be connected via a bus or otherwise. The processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, graphics processors (GPU), embedded neural network processors (NPU) or other dedicated deep learning coprocessors, discrete gates or transistor logic devices, discrete hardware components and other chips, or a combination of the above-mentioned various chips.
[0106] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the methods in the above-mentioned embodiments of the present application. The processor executes various functional applications and data processing of the processor by running the non-transient software programs, instructions and modules stored in the memory, that is, the method in the above-mentioned method implementation is realized. The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.
[0107] The embodiment of the present application also discloses a computer-readable storage medium.
[0108] Specifically, a computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the method in the above-mentioned method implementation is implemented. Those skilled in the art will understand that the implementation of all or part of the process in the above-mentioned implementation method of the present application can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and the program, when executed, may include the process of the implementation of the above-mentioned methods. Among them, the storage medium may be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviated as: HDD) or a solid-state drive (SSD), etc.; the storage medium may also include a combination of the above-mentioned types of memory.
[0109] This specific embodiment is merely an explanation of the present invention and is not a limitation of the present invention. After reading this specification, those skilled in the art may make non-creative modifications to the present embodiment as needed. However, as long as they are within the scope of the claims of the present invention, they are protected by the patent law.
Claims
1. A positioning calibration method, characterized in that: The method is applied to a positioning and calibration system, wherein the positioning and calibration system comprises a camera, wherein the camera is fixedly placed on a fork rod of an automated vehicle, and the method comprises: Controlling the camera to acquire a visual image within the camera's field of view, wherein the visual image includes a target shelf; Calibrate the automated vehicle based on the ground position according to the position of the target shelf in the visual image; Controlling the camera to acquire a target area image, wherein the target area image includes a target shelf; Using a deep learning model to detect the position of the target rectangular hole of the target shelf in the target area image, and generating a rectangular hole detection frame corresponding to the target rectangular hole in the target area image; The automated vehicle and the fork rod of the automated vehicle are positioned and calibrated according to the position of the rectangular hole detection frame in the target area image.
2. The method according to claim 1, characterized in that: The calibrating the automated vehicle based on the ground position according to the position of the target shelf in the visual image includes: Using a computer vision algorithm to detect and identify a bottom straight line of the target shelf in the visual image; Comparing the angle between the bottom straight line of the target shelf and the horizontal line of the visual image with a preset reference angle; If the angle between the bottom straight line of the target shelf and the horizontal line of the visual image does not meet the preset reference angle, output a control signal to adjust the rotation angle of the automated vehicle; Comparing the distance between the bottom straight line of the target shelf and the bottom of the visual image with a preset reference distance; If the distance between the bottom straight line of the target shelf and the bottom of the visual image does not meet the preset reference distance, a control signal is output to control the automated vehicle to approach or move away from the target shelf.
3. The method according to claim 1, characterized in that: The controlling the camera to acquire the target area image comprises: Controlling the camera to obtain a calibration image within a field of view after calibration based on a ground position is completed; An image of a middle area portion of the calibration image is intercepted to generate the target area image.
4. The method according to claim 1, characterized in that: The target shelf includes two target rectangular holes, the rectangular hole detection frames include two, and the positioning and calibration of the automated trolley and the fork rod of the automated trolley according to the positions of the rectangular hole detection frames in the target area image includes: Calculating the distance deviation between the midpoint of the rectangular hole detection frame and the reference midpoint; If the distance deviation is outside the preset threshold range, a horizontal movement control signal is output to control the position of the automated vehicle to be adjusted in the horizontal direction; A computer vision algorithm is used to calculate the position of the shadow portion in the target rectangular hole, and the rotation angle of the automated vehicle is adjusted according to the position of the shadow portion relative to the target rectangular hole; Calculating the height of the rectangular hole detection frame from the bottom of the target area image, and comparing the height of the rectangular hole detection frame with a preset reference height; If the height of the rectangular hole detection frame does not meet the preset reference height, a fork rod adjustment control signal is output to control the fork rod adjustment height of the automated vehicle.
5. The method according to claim 4, characterized in that: The step of adjusting the rotation angle of the automated vehicle according to the position of the shadow portion relative to the position of the target rectangular hole comprises: Generating a shadow detection frame corresponding to the shadow portion in the target area image; Calculating the horizontal ratio of the shadow detection frame to the rectangular hole detection frame; Determine whether the calculated horizontal ratio is within a preset threshold range; If the lateral proportion value is within a preset threshold range, the rotation angle of the automated vehicle is not adjusted; If the lateral proportion value is not within a preset threshold range, a rotation angle control signal is output to control the automated vehicle to adjust the rotation angle.
6. The method according to claim 4, characterized in that: After the output fork rod adjustment control signal controls the fork rod of the automated vehicle to adjust the height, the method further includes: Determine whether the angle between the lateral position of the rectangular hole detection frame and the horizontal line of the target area image is within a preset range; If the angle between the lateral position of the rectangular hole detection frame and the horizontal line of the target area image is not within a preset range, outputting a tilt warning; If the angle between the lateral position of the rectangular hole detection frame and the horizontal line of the target area image is within a preset range, the positioning calibration is completed.
7. The method according to claim 1, characterized in that: After positioning and calibrating the automated vehicle and the fork rod of the automated vehicle according to the position of the rectangular hole detection frame in the target area image, the method further includes: The automated vehicle is controlled to perform secondary calibration at positions at different distances from the target container.
8. A positioning calibration device, characterized in that: The device is applied to a positioning and calibration system, wherein the positioning and calibration system comprises a camera, wherein the camera is fixedly placed on a fork rod of an automated vehicle, and the device comprises: A visual image acquisition module (501), used to control the camera to acquire a visual image within the camera's field of view, wherein the visual image includes a target shelf; A ground position calibration module (502), configured to calibrate the automated vehicle based on the ground position according to the position of the target shelf in the visual image; A target image acquisition module (503), used to control the camera to acquire a target area image, wherein the target area image includes a target shelf; A target hole detection module (504), configured to detect the position of the target rectangular hole of the target shelf in the target area image by using a deep learning model, and to generate a rectangular hole detection frame corresponding to the target rectangular hole in the target area image; The target positioning and calibration module (505) is used to position and calibrate the automated vehicle and the fork rod of the automated vehicle according to the position of the rectangular hole detection frame in the target area image.
9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and executes the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: A computer program is stored which can be loaded by a processor and execute the method according to any one of claims 1 to 7.
