Object offset detection method and device, equipment, storage medium and computer product

By acquiring and analyzing the initial image of the object pallet, the offset state of the object to be detected is determined, and accurate coordinate and angle data are provided to solve the problem of reliability caused by the position or attitude of the goods when unmanned forklifts transport goods in intelligent warehouses. safety and efficiency issues, improving transportation reliability and efficiency.

CN118691676APending Publication Date: 2024-09-24WAYZIM TECH CO LTD

Patent Information

Application Number
CN202410942146.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In intelligent warehouses, the placement or posture of goods prevents unmanned forklifts from effectively transporting goods, affecting their work reliability and efficiency.

Method used

By obtaining an initial image of the object to be detected, including the object pallet, the pallet position and offset state are determined, and coordinate and angle data are provided to improve the transportation reliability and efficiency of unmanned forklifts.

Benefits of technology

It realizes the provision of accurate position data for unmanned forklift object handling, improves the reliability and efficiency of cargo transportation, and solves the difficulty of transportation caused by the position or attitude of goods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118691676A
    Figure CN118691676A
Patent Text Reader

Abstract

The invention relates to an object offset detection method and device, equipment, a storage medium and a computer product. The method comprises the following steps: acquiring an initial image of a to-be-detected object, wherein the initial image further comprises an object tray for placing the to-be-detected object; determining a feature region corresponding to the object tray in the initial image, and determining a tray position of the object tray according to the feature region; wherein the feature region is used for representing a target end face of the object tray; and determining a target position of the to-be-detected object according to the tray position so as to determine an offset state of the to-be-detected object according to the target position. By the adoption of the method, deviation detection can be carried out on the transported object, coordinate and angle data are provided for follow-up carrying of the unmanned forklift, and the reliability and working efficiency of the unmanned forklift for transporting goods can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of cargo detection, and in particular to an object deviation detection method, device, equipment, storage medium and computer product. Background Art

[0002] Industrial intelligence provides an intelligent working mode for warehouse management. Through intelligent transportation, goods can be efficiently moved within the warehouse, and the storage location of goods can be automatically adjusted according to inventory needs, optimizing the utilization of warehouse space and reducing labor costs.

[0003] In intelligent transportation, unmanned forklifts replace manual driving to transport goods to improve the efficiency of goods transportation. However, the placement or posture of goods in the warehouse will cause the unmanned forklift to be unable to effectively transport goods, affecting the reliability and work efficiency of the unmanned forklift. Summary of the invention

[0004] Based on this, it is necessary to provide an object offset detection method, device, equipment, storage medium and computer product to address the above technical problems. The offset detection of this method can improve the reliability and work efficiency of unmanned forklifts in transporting goods.

[0005] In a first aspect, the present application provides an object offset detection method, the method comprising:

[0006] Acquire an initial image of the object to be detected, the initial image also including an object tray for placing the object to be detected;

[0007] Determine a feature region corresponding to the object tray in the initial image, and determine the tray position of the object tray according to the feature region; wherein the feature region is used to characterize a target end face of the object tray;

[0008] The target position of the object to be detected is determined according to the position of the tray, so as to determine the offset state of the object to be detected according to the target position.

[0009] In one embodiment, determining a feature area corresponding to the object tray in the initial image includes:

[0010] Performing image segmentation on the initial image to obtain multiple segmented regions, and determining the region attributes corresponding to each segmented region;

[0011] Image analysis is performed on each segmented area according to the area attributes to obtain the feature area.

[0012] In one embodiment, the pallet position includes a pallet angle and a pallet coordinate, and determining the pallet position of the object pallet according to the feature area includes:

[0013] Determine a first rectangle circumscribing the characteristic area, and determine the angle of the tray according to the angle between the first rectangle and the standard regular rectangle;

[0014] The pallet coordinates are determined based on the pallet angle and the coordinates of the object to be detected.

[0015] In one embodiment, determining a target position of an object to be detected according to a position of a pallet includes:

[0016] Determine a pallet side length of the object pallet based on the pallet position;

[0017] Obtain the side length of the area corresponding to the placement area of ​​the object to be detected, and determine the prohibited area of ​​the outer frame of the object tray according to the side length of the area and the side length of the tray;

[0018] The overlapping area between the forbidden area and the placement area is used as the non-offset area of ​​the object to be detected, and the target position is determined according to the non-offset area, so as to determine the offset state of the object to be detected according to the target position.

[0019] In one embodiment, the method further comprises:

[0020] Determining a detection distance between the image acquisition device and the object to be detected;

[0021] Correcting the pallet position based on the detection distance to obtain a corrected pallet position;

[0022] Determine the target position of the object to be detected based on the position of the pallet, including:

[0023] The target position of the object to be detected is determined according to the corrected pallet position.

[0024] In one embodiment, obtaining an initial image of an object to be detected includes:

[0025] Acquire the original image of the area where the object is placed, and determine the target area of ​​the original image;

[0026] Perform image recognition on the target area. If the target area includes the object to be detected, the target area is used as the initial image.

[0027] In a second aspect, the present application provides an object offset detection device, the device comprising:

[0028] An acquisition module, used for acquiring an initial image of the object to be detected, wherein the initial image also includes an object tray for placing the object to be detected;

[0029] A processing module, used to determine a feature area corresponding to the object tray in the initial image, and determine the tray position of the object tray according to the feature area; wherein the feature area is used to characterize a target end face of the object tray;

[0030] The detection module is used to determine the target position of the object to be detected according to the position of the tray, so as to determine the offset state of the object to be detected according to the target position.

[0031] In a third aspect, the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0032] Acquire an initial image of the object to be detected, the initial image also including an object tray for placing the object to be detected;

[0033] Determine a feature region corresponding to the object tray in the initial image, and determine the tray position of the object tray according to the feature region; wherein the feature region is used to characterize a target end face of the object tray;

[0034] The target position of the object to be detected is determined according to the position of the tray, so as to determine the offset state of the object to be detected according to the target position.

[0035] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0036] Acquire an initial image of the object to be detected, the initial image also including an object tray for placing the object to be detected;

[0037] Determine a feature region corresponding to the object tray in the initial image, and determine the tray position of the object tray according to the feature region; wherein the feature region is used to characterize a target end face of the object tray;

[0038] The target position of the object to be detected is determined according to the position of the tray, so as to determine the offset state of the object to be detected according to the target position.

[0039] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0040] Acquire an initial image of the object to be detected, the initial image also including an object tray for placing the object to be detected;

[0041] Determine a feature region corresponding to the object tray in the initial image, and determine the tray position of the object tray according to the feature region; wherein the feature region is used to characterize a target end face of the object tray;

[0042] The target position of the object to be detected is determined according to the position of the tray, so as to determine the offset state of the object to be detected according to the target position.

[0043] The object offset detection method, device, equipment, storage medium and computer product described above acquire an initial image of the object to be detected, wherein the initial image also includes an object tray for placing the object to be detected; determine a feature area corresponding to the object tray in the initial image, wherein the feature area is used to characterize the target end face of the object tray, and determine the tray position of the object tray according to the feature area; then determine the target position of the object to be detected according to the tray position, so as to determine the offset state of the object to be detected according to the target position. According to the characteristics of the application scenario, the initial image acquired by the present application includes, in addition to the image of the object to be detected, an object tray for placing the object to be detected, and uses the target end face of the object tray as the feature area of ​​the initial image. The tray position of the object tray is obtained by analyzing and processing the feature area. Then, the target position of the object to be detected is obtained based on the position of the object tray, and the offset state of the object to be detected is determined by the target position. In addition, position data such as coordinates and angles are provided for the object handling of the unmanned forklift, thereby improving the reliability and work efficiency of the unmanned forklift in transporting goods. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 is a flow chart of an object offset detection method in one embodiment;

[0046] Figure 2 is a schematic diagram of image distortion in one embodiment;

[0047] Figure 3 A schematic diagram of the position between the image acquisition device and the object to be detected in one embodiment;

[0048] Figure 4 is a schematic diagram of a non-offset area in one embodiment;

[0049] Figure 5 is a schematic flow chart of an object offset detection method in another embodiment;

[0050] Figure 6 is a structural block diagram of an object deviation detection device in one embodiment;

[0051] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0053] In an exemplary embodiment, Figure 1 As shown, a method for detecting object offset is provided, comprising the following steps 102 to 106. Among them:

[0054] Step 102: Acquire an initial image of the object to be detected, where the initial image also includes an object tray for placing the object to be detected.

[0055] When an unmanned forklift needs to transport items, it is necessary to first detect the placement status of the goods in real time to ensure that the transportation can be achieved. The traditional offset detection method sets an image acquisition device above the object to be detected to determine the offset status of the object to be detected. However, this method limits the installation position of the image acquisition device and is not universal enough.

[0056] When using a forklift to transport goods, in order to ensure that the goods are not damaged and to improve the transportation efficiency and packing efficiency of the goods, a pallet will be placed under the goods. This application obtains an initial image of the object to be detected and the object pallet as a whole, and then the position of the object to be detected can be calculated by the position of the object pallet.

[0057] Step 104 , determining a feature region corresponding to the object tray in the initial image, and determining a tray position of the object tray according to the feature region; wherein the feature region is used to characterize a target end face of the object tray.

[0058] The object tray is a tray used for loading, transporting, and stacking the objects to be detected. The four sides of the tray are rectangular end faces. The feature area represents the area of ​​the object tray in the initial image. According to the state of the object to be detected in the initial image, an end face is selected from the four sides of the object tray as the target end face, and the area of ​​the target end face is represented as the feature area. For example, if the initial image is mainly the left side of the object to be detected, the end face of the left end of the object to be detected is used as the target end face.

[0059] Step 106 , determining a target position of the object to be detected according to the position of the tray, so as to determine a deviation state of the object to be detected according to the target position.

[0060] Since the object tray has a fixed shape and is set below the object to be detected, the target position of the object to be detected can be obtained by the tray position of the object tray. Then, by analyzing the object to be detected and the position of the object tray, the offset state of the object to be detected can be obtained, and it can be determined whether the object to be detected is offset, so as to realize the offset detection of the object to be detected and provide data support for the handling of unmanned forklifts.

[0061] In the above object offset detection, an initial image of the object to be detected is obtained, and the initial image also includes an object pallet for placing the object to be detected; a feature area corresponding to the object pallet is determined in the initial image, and the feature area is used to characterize the target end face of the object pallet, and the pallet position of the object pallet is determined according to the feature area; then the target position of the object to be detected is determined according to the pallet position, so as to determine the offset state of the object to be detected according to the target position. In this application, in addition to the image of the object to be detected, the initial image obtained includes an object pallet for placing the object to be detected, and the target end face of the object pallet is used as the feature area of ​​the initial image according to the characteristics of the application scenario. The pallet position of the object pallet is obtained by analyzing and processing the feature area. Then, the target position of the object to be detected is obtained based on the position of the object pallet, and the offset state of the object to be detected is determined by the target position. In addition, position data such as coordinates and angles are provided for the object handling of the unmanned forklift, thereby improving the reliability and work efficiency of the unmanned forklift in transporting goods.

[0062] In one embodiment, obtaining an initial image of the object to be detected includes: obtaining an original image of the area where the object is placed, and determining a target area of ​​the original image; performing image recognition on the target area, and if the target area includes the object to be detected, using the target area as the initial image.

[0063] When performing offset detection on an object to be detected, the object placement area of ​​the object to be detected is first determined. The original image of the object placement area is obtained by an image acquisition device, and a region of interest (ROI) is obtained by processing and analyzing the original image. This region of interest is used as a target area for detecting the offset state of the object to be detected. Image recognition is performed on the target area based on whether it includes the object to be detected, and the target area including the object to be detected is used as the initial image of this embodiment.

[0064] In order to improve the acquisition efficiency of the image acquisition device, the image acquisition device is set outside the object placement area to acquire images of more objects to be detected. For example, the image acquisition device is set on the midline of the object placement area, and images of multiple objects to be detected can be acquired from the side from outside the object placement area at the same time.

[0065] Before performing offset detection on the object to be detected, a reference image without the object to be detected is first obtained, and the target area is divided according to the reference image. The division of the target area can be determined by information related to the object to be detected in historical data, or by the location of the image acquisition device.

[0066] When it is necessary to perform offset detection on the object to be detected, image recognition is performed on each target area in the original image according to whether there is an object to be detected. If there is an object to be detected in a certain target area, the target area is used as the initial image to achieve further offset detection. If there is no object to be detected in a certain target area, data processing is not performed on the object to be detected.

[0067] Exemplarily, the target area can be classified and identified by a deep learning algorithm. The image of the target area is preprocessed before image processing to obtain a regional image of the same size. The preprocessed regional image is classified based on the image classification algorithm. For example, the target area is detected by a row-by-row detection method, that is, the target area of ​​the first row is detected first. If there is no object to be detected in the first row, the second row is detected until the last row of the target area is detected. The results of the row-by-row detection include whether there is an object and the corresponding confidence level.

[0068] This embodiment has no restriction on the image classification and recognition method used. In practical applications, the image classification model can be customized according to needs, such as the PPLCNet model based on PaddleClas.

[0069] The image preprocessing mentioned in the above example is used to obtain a region image of uniform size. For example, the image within the target region is first intercepted by a mask, and the image outside the target region is uniformly grayed, such as filling the gray value with zero. The intercepted target region is then uniformly sized by stretching to obtain a region image of the same size, and interference information irrelevant to the object to be detected is eliminated.

[0070] It should be noted that, since the original image is preprocessed to unify the size of the target area during image classification and recognition, after the image is classified, the processed image needs to be restored to its original size to facilitate subsequent processing operations.

[0071] In a further embodiment, determining a characteristic region corresponding to the object tray in the initial image includes: performing image segmentation on the initial image to obtain multiple segmented regions, and determining region attributes corresponding to each segmented region; performing image analysis on each segmented region according to the region attributes to obtain a characteristic region.

[0072] If there is an object to be detected in the target area, the target area is taken as the initial image, and image processing is continued on the initial image corresponding to the target area to obtain a feature area for characterizing the object tray.

[0073] For example, when analyzing the initial image, the initial image is preprocessed first, for example, the initial image is intercepted by a mask, and the image outside the mask is uniformly grayscaled, such as filling the grayscale value with zero. The intercepted initial image is then stretched to unify the size to obtain an initial image of the same size, and interference information around the initial image is removed.

[0074] The initial image is segmented based on the semantic segmentation model to obtain multiple segmented regions. Each segmented region also includes the corresponding mask, circumscribed rectangular box, confidence and other regional attribute data. Based on the attribute data of each segmented region, the segmented regions are morphologically analyzed and sorted by the area of ​​the circumscribed rectangular box of each segmented region. The segmented region with the largest circumscribed rectangular area is taken as the feature region.

[0075] This embodiment has no restriction on the image segmentation method. In practical applications, the image segmentation model can be customized according to needs, such as the pp_liteseg_stdc1 model based on PaddleSeg.

[0076] It should be noted that, since the initial image is preprocessed to unify the size of the initial image during image segmentation, after the image is segmented, the processed image needs to be restored to its original size to facilitate subsequent processing operations.

[0077] In another embodiment, the pallet position includes a pallet angle and a pallet coordinate, and determining the pallet position of the object pallet according to the feature area includes: determining a first rectangle of the circumscribed feature area, determining the pallet angle according to the angle between the first rectangle and a standard regular rectangle; and determining the pallet coordinates according to the pallet angle and the coordinates of the object to be detected.

[0078] The reference angles of the object to be detected and the object pallet are preset. The pallet angle is the offset between the object pallet and the reference angle. It can be understood that if the angle of the object pallet or the object to be detected is greatly offset from the reference angle, it will affect the transportation efficiency of the unmanned forklift. The pallet coordinates are used to represent the distance between the object pallet and the image acquisition device.

[0079] Exemplarily, in the feature area, the oblique rectangle circumscribed by the target end face of the object tray is used as the first rectangle. The standard rectangle is a standard rectangle determined according to the reference coordinate system constructed by the image acquisition device, and the XY axis of the reference coordinate system is parallel to the horizontal plane, and the Z axis is perpendicular to the horizontal plane. The angle of the first rectangle is the angle of the object tray in the initial image. The tray coordinates of the object tray are obtained according to the horizontal distance and vertical distance between the image acquisition device and the object to be detected.

[0080] In a further embodiment, the method also includes: determining a detection distance between the image acquisition device and the object to be detected; correcting the pallet position based on the detection distance to obtain a corrected pallet position; determining a target position of the object to be detected according to the pallet position, including: determining the target position of the object to be detected according to the corrected pallet position.

[0081] Since the original image acquired by the image acquisition device is affected by the shooting angle, the angle and other information of the object to be detected in the image are offset from the actual position. In order to ensure the accuracy of object offset detection, the pallet position is corrected according to the distance between the image acquisition device and the object to be detected to obtain an updated pallet position. At this time, the updated pallet position is the real pallet position.

[0082] For example, please refer to Figure 2 A schematic diagram of the image distortion obtained by the image acquisition device shown, and Figure 3 The schematic diagram of the position between the image acquisition device and the object to be detected shows that, according to the projection principle, the mapping relationship between the angle of the object tray in the initial image and the angle of the actual object tray is obtained. The mapping relationship can be expressed as:

[0083]

[0084] In the formula, b can be obtained by the following mapping relationship:

[0085]

[0086] Where:

[0087]

[0088] Wherein, α represents the angle of deviation of the actual object, a and c represent the two right-angled sides corresponding to the deviation angle of the cargo in the image, d represents the horizontal distance from the image acquisition device to the cargo, and h represents the vertical height of the image acquisition device.

[0089] Combination Figure 2 and Figure 3 As shown in FIG. 1 , since the image acquisition device has an inclination when acquiring images, the acquired images may be distorted. Figure 2 For example, if the image acquisition device rotates around the x-axis, the size in the y-direction will be distorted, which will cause the actual offset angle α of the cargo to be distorted to β in the image. Since a in the x-direction does not change, α can be restored through the mapping relationship between b and c.

[0090] Depend on Figure 2 It can be concluded that:

[0091]

[0092] Depend on Figure 3 It can be concluded that:

[0093]

[0094] According to the similarity relationship of triangles, we can conclude that:

[0095]

[0096] And because:

[0097]

[0098] Substituting in, we get:

[0099]

[0100] And because:

[0101]

[0102] Substituting in, we can get the mapping relationship between c and b:

[0103]

[0104] According to the above formula of the mapping relationship between c and b, the angular position of the object tray can be corrected to obtain the actual angular position of the object tray.

[0105] In another embodiment, the target position of the object to be detected is determined according to the position of the tray, including: determining the tray side length of the object tray according to the tray position; obtaining the area side length of the placement area corresponding to the object to be detected, and determining the forbidden area of ​​the outer frame of the object tray according to the area side length and the tray side length; using the overlapping area of ​​the forbidden area and the placement area as the non-offset area of ​​the object to be detected, determining the target position according to the non-offset area, so as to determine the offset state of the object to be detected according to the target position.

[0106] Please refer to Figure 4 Schematic diagram of the non-offset area. This embodiment determines the offset state of the object to be detected by the object offset algorithm. Based on the projection principle, the actual position of the object tray is obtained. The area side length of the area where the object to be detected is placed is obtained, denoted as a. The tray side length of the object tray is obtained, denoted as b. The relationship between the side lengths a and b satisfies the constraint condition:

[0107] Since the object placement area requires a complete simulated object tray. Figure 4 As shown, the forbidden area of ​​the outer frame of the object tray can be calculated according to the side length of the tray and the side length of the area. The side length c of the forbidden area is expressed as:

[0108]

[0109] in,

[0110]

[0111] Please refer to Figure 4 , according to the Pythagorean theorem:

[0112] b 2 =d 2 +e 2

[0113] We also have a=d+e, simplifying to get:

[0114]

[0115] So we can get:

[0116]

[0117] Similarly, according to the Pythagorean theorem:

[0118] c 2 =g 2 +f 2

[0119] There are

[0120]

[0121] b=g+f

[0122] Bring in:

[0123]

[0124] The two areas are ANDed to obtain the overlapping area of ​​the forbidden area and the placement area, and the non-offset area of ​​the object to be detected is obtained. The target position of the object to be detected is further determined by the non-offset area, and the offset state of the object to be detected is determined according to the target position.

[0125] In a specific embodiment, Figure 5 As shown, a method for detecting object offset is provided, comprising the following steps 502 to 512. Among them:

[0126] Step 502: Acquire the original image of the object placement area and determine the target area of ​​the original image.

[0127] The image acquisition device is arranged on the outer midline of the area where the object to be detected is placed, and acquires the original image of the object to be detected from the side, analyzes the original image, and determines several target areas in the original image.

[0128] Step 504: perform image recognition on the target area. If the target area includes the object to be detected, the target area is used as the initial image.

[0129] Image classification and recognition are performed on each target area, and an initial image is obtained according to the target area where the object to be detected exists. The initial image also includes an object tray for placing the object to be detected.

[0130] Step 506, performing image segmentation on the initial image to obtain a plurality of segmented regions, and determining the region attribute corresponding to each segmented region; performing image analysis on each segmented region according to the region attribute to obtain a feature region.

[0131] The initial image is subjected to image segmentation processing to determine a feature region in the initial image for characterizing the object tray.

[0132] Step 508, determining a first rectangle circumscribing the feature area, determining the angle of the tray according to the angle between the first rectangle and the standard regular rectangle; and determining the coordinates of the tray according to the angle of the tray and the coordinates of the object to be detected.

[0133] In the feature area, the oblique rectangle circumscribed by the target end face of the object tray is taken as the first rectangle. The standard rectangle is a standard rectangle determined according to the reference coordinate system constructed by the image acquisition device, where the XY axis of the reference coordinate system is parallel to the horizontal plane and the Z axis is perpendicular to the horizontal plane. The angle of the first rectangle is the angle of the object tray in the initial image. The tray coordinates of the object tray are obtained according to the horizontal distance and vertical distance between the image acquisition device and the object to be detected.

[0134] Step 510, determining the detection distance between the image acquisition device and the object to be detected; and correcting the tray position based on the detection distance to obtain a corrected tray position.

[0135] Since the original image acquired by the image acquisition device is affected by the shooting angle, the angle and other information of the object to be detected in the image are offset from the actual position. In order to ensure the accuracy of object offset detection, the pallet position is corrected according to the distance between the image acquisition device and the object to be detected to obtain an updated pallet position. At this time, the updated pallet position is the real pallet position.

[0136] Step 512, determine the tray side length of the object tray according to the tray position; obtain the area side length of the placement area corresponding to the object to be detected, and determine the forbidden area of ​​the outer frame of the object tray according to the area side length and the tray side length; use the overlapping area of ​​the forbidden area and the placement area as the non-offset area of ​​the object to be detected, determine the target position according to the non-offset area, and determine the offset state of the object to be detected according to the target position.

[0137] The object offset detection method proposed in this embodiment supports the image acquisition device to collect images from the side of the object to be detected, which can improve the field of view of the acquired image and perform offset detection on more goods at one time. It is suitable for scenes where the image of the object placement area cannot be obtained from directly above due to height restrictions. This embodiment uses the object pallet as a reference to perform image recognition and coordinate conversion, determine the target position of the object to be detected, and realize offset detection of the object to be detected, which can improve the reliability and work efficiency of unmanned forklifts in transporting goods.

[0138] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0139] Based on the same inventive concept, the embodiment of the present application also provides an object offset detection device for implementing the object offset detection method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more object offset detection device embodiments provided below can refer to the limitations of the object offset detection method above, and will not be repeated here.

[0140] In an exemplary embodiment, Figure 6 As shown, an object offset detection device is provided, including: an acquisition module 602, a processing module 604 and a detection module 606, wherein:

[0141] An acquisition module 602 is used to acquire an initial image of the object to be detected, wherein the initial image also includes an object tray for placing the object to be detected;

[0142] Processing module 604, used to determine the characteristic region corresponding to the object tray in the initial image, and determine the tray position of the object tray according to the characteristic region; wherein the characteristic region is used to characterize the target end face of the object tray;

[0143] The detection module 606 is used to determine the target position of the object to be detected according to the position of the tray, so as to determine the offset state of the object to be detected according to the target position.

[0144] In one embodiment, the processing module 604 is further used to: perform image segmentation on the initial image to obtain multiple segmented regions, and determine the region attributes corresponding to each segmented region; perform image analysis on each segmented region according to the region attributes to obtain a feature region.

[0145] In one embodiment, the pallet position includes the pallet angle and the pallet coordinates, and the processing module 604 is further used to: determine a first rectangle of the circumscribed feature area, determine the pallet angle according to the angle between the first rectangle and the standard regular rectangle; determine the pallet coordinates according to the pallet angle and the coordinates of the object to be detected.

[0146] In one embodiment, the detection module 606 is also used to: determine the tray side length of the object tray according to the tray position; obtain the area side length of the placement area corresponding to the object to be detected, and determine the forbidden area of ​​the outer frame of the object tray according to the area side length and the tray side length; use the overlapping area of ​​the forbidden area and the placement area as the non-offset area of ​​the object to be detected, determine the target position according to the non-offset area, and determine the offset state of the object to be detected according to the target position.

[0147] In one embodiment, the processing module 604 is also used to: determine the detection distance between the image acquisition device and the object to be detected; correct the tray position based on the detection distance to obtain a corrected tray position; determine the target position of the object to be detected according to the tray position, including: determining the target position of the object to be detected according to the corrected tray position.

[0148] In one embodiment, the acquisition module is further used to: acquire an original image of the object placement area and determine a target area of ​​the original image; perform image recognition on the target area, and if the target area includes the object to be detected, use the target area as the initial image.

[0149] Each module in the above-mentioned object offset detection device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0150] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 7As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an object offset detection method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0151] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0152] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0153] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0154] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0155] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0156] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0157] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for detecting object offset, It is characterized in that The method comprises: Acquire an initial image of the object to be detected, wherein the initial image also includes an object tray for placing the object to be detected; Determine a feature area corresponding to the object tray in the initial image, and determine a tray position of the object tray according to the feature area; wherein the feature area is used to characterize a target end face of the object tray; The target position of the object to be detected is determined according to the position of the tray, so as to determine the offset state of the object to be detected according to the target position.

2. The method according to claim 1, It is characterized in that The step of determining the feature area corresponding to the object tray in the initial image includes: Performing image segmentation on the initial image to obtain a plurality of segmented regions, and determining a region attribute corresponding to each of the segmented regions; Image analysis is performed on each of the segmented regions according to the region attributes to obtain the characteristic region.

3. The method according to claim 2, It is characterized in that The pallet position includes a pallet angle and a pallet coordinate, and determining the pallet position of the object pallet according to the feature area includes: Determine a first rectangle circumscribing the characteristic area, and determine the angle of the tray according to the angle between the first rectangle and a standard regular rectangle; The pallet coordinates are determined according to the pallet angle and the coordinates of the object to be detected.

4. The method according to claim 3, It is characterized in that Determining the target position of the object to be detected according to the position of the tray includes: determining a tray side length of the object tray according to the tray position; Obtaining the side length of the area corresponding to the placement area of ​​the object to be detected, and determining the forbidden area of ​​the outer frame of the object tray according to the side length of the area and the side length of the tray; The overlapping area between the forbidden area and the placement area is used as the non-deviation area of ​​the object to be detected, and the target position is determined according to the non-deviation area, so as to determine the deviation state of the object to be detected according to the target position.

5. The method according to claim 3, It is characterized in that The method further comprises: Determining a detection distance between an image acquisition device and the object to be detected; Correcting the position of the pallet based on the detection distance to obtain a corrected position of the pallet; Determining the target position of the object to be detected according to the position of the tray includes: The target position of the object to be detected is determined according to the corrected tray position.

6. The method according to claim 1, It is characterized in that The step of obtaining an initial image of the object to be detected comprises: Acquire an original image of the area where the object is placed, and determine a target area of ​​the original image; Perform image recognition on the target area, and if the target area includes the object to be detected, use the target area as the initial image.

7. An object deviation detection device, It is characterized in that The device comprises: An acquisition module, used for acquiring an initial image of the object to be detected, wherein the initial image also includes an object tray for placing the object to be detected; A processing module, used to determine a feature area corresponding to the object tray in the initial image, and determine a tray position of the object tray according to the feature area; wherein the feature area is used to characterize a target end face of the object tray; The detection module is used to determine the target position of the object to be detected according to the position of the tray, so as to determine the offset state of the object to be detected according to the target position.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Tray posture identifying system for AGV forklift and method thereof

    CN110950277A

  • Equipment control signal generation method and device based on visual identification and forklift

    CN112707340A

  • Tray detection method, device and equipment and storage medium

    CN115546216A

  • Tray pose detection method and device, unmanned forklift and storage medium

    CN116128841A

  • Tray pose detection method, system and equipment based on image processing and medium

    CN118229772A

Cited By

  • Method and device for positioning engine in production line

    CN121475013A