A pallet identification method, device, equipment and readable storage medium
Through straight line fitting and cluster analysis of the laser detection point set, the problem of uncertainty in the position of the pallet is solved, the intelligent forklift can accurately pick up the pallet, and the recognition accuracy and picking intelligence are improved.
Patent Information
- Application Number
- CN202210940002.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-05
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-08-05
AI Technical Summary
In the complex environment of an unstructured warehouse, there is great uncertainty in the position and orientation of the pallet, which affects the flexible picking ability of the smart forklift and makes it difficult to achieve accurate pallet position and orientation detection.
By obtaining the laser detection point set of the pallet to be identified, perform straight line fitting, combine the characteristics of the pallet and the fitting straight line parameters, determine the posture of the pallet, filter out the target detection point set that constitutes a continuous curve, and construct a target window for fitting. Check whether the laser detection point is located on the fitting straight line, and cluster analysis determines the center position of the pallet.
It improves the accuracy and recognition accuracy of pallet pose detection, makes pallet picking more intelligent, avoids the influence of irrelevant detection points, and enhances the accuracy of subsequent recognition.
Smart Images

Figure CN115164855B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent identification technology, and in particular to a pallet identification method, device, equipment and readable storage medium. Background Art
[0002] With the rapid development of computer and robot technology, the widespread application of intelligent forklifts in the logistics industry marks the development of warehousing and logistics technology towards automation and intelligence. However, in the complex environment of unstructured warehouses, affected by factors such as operation process, equipment accuracy, and manual operation, there is a large uncertainty in the position and posture of pallets, which affects the flexible picking of pallets by intelligent forklifts. Therefore, how to realize the detection of pallet posture has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] In view of this, embodiments of the present invention provide a pallet identification method, device, equipment and readable storage medium to solve the problem of difficulty in detecting the position and posture of a pallet.
[0004] According to a first aspect, an embodiment of the present invention provides a pallet identification method, comprising: obtaining a laser detection point set of a pallet to be identified; performing straight line fitting on the laser detection point set to obtain at least one fitting straight line; and determining a target posture of the pallet to be identified based on parameters of the at least one fitting straight line.
[0005] The pallet identification method provided in the embodiment of the present invention obtains a laser detection point set for the pallet to be identified, extracts a straight line point set therefrom for straight line fitting, and then combines the characteristics of the pallet and the parameters of multiple fitting lines to determine the current posture of the pallet, thereby realizing the posture detection of the pallet, facilitating the picking of the pallet according to the pallet posture, and making the pallet picking more intelligent.
[0006] In combination with the first aspect, in a first implementation of the first aspect, obtaining a laser detection point set of a pallet to be identified includes: obtaining an initial laser detection point set of the pallet to be identified; screening out a target detection point set forming a continuous curve from the initial laser detection point set; and determining the target detection point set as the laser detection point set.
[0007] In combination with the first embodiment of the first aspect, in the second embodiment of the first aspect, the target detection point set constituting a continuous curve is screened out from the initial laser detection point set, comprising: performing curve fitting on the initial laser detection point set to obtain the continuous curve; and constituting the target detection point set with multiple detection points located on the continuous curve.
[0008] The pallet identification method provided by the embodiment of the present invention can determine the target detection point set used to characterize the position of the pallet by screening the target detection point set that constitutes a continuous curve, because the boundaries of the pallet are connected, thereby avoiding the influence of irrelevant detection points and improving the accuracy of subsequent identification of the pallet's posture.
[0009] In combination with the first aspect, in a third implementation of the first aspect, the performing straight line fitting on the laser detection point set to obtain at least one fitted straight line includes: sorting the laser detection points in the laser detection point set to obtain an arrangement order of the laser detection points; extracting a preset number of laser detection points in sequence based on the arrangement order; and performing straight line fitting on the preset number of laser detection points in sequence to obtain at least one fitted straight line.
[0010] The pallet identification method provided in the embodiment of the present invention realizes orderly processing of laser detection points by sorting each laser detection point and then performing fitting processing according to the sorted laser detection points, so as to facilitate determining the line segments that meet the geometric constraints of the pallet according to the changes in the spatial positions of the laser detection points.
[0011] In combination with the third embodiment of the first aspect, in the fourth embodiment of the first aspect, the extracting of a preset number of laser detection points in sequence based on the arrangement order includes: extracting the 1st to nth laser detection points, and constructing a target window for the extracted n laser detection points; moving the target window based on the arrangement order, adding the next laser detection point to the target window in sequence, and releasing the first laser detection point in the target window; wherein n is a positive integer.
[0012] The pallet recognition method provided in an embodiment of the present invention constructs a target window containing a preset number of laser detection points so that the number of laser detection points in the target window remains unchanged, and then performs straight line fitting based on the laser detection points contained in the target window, thereby being able to estimate the pallet posture through the changes in different fitting straight lines.
[0013] In combination with the fourth embodiment of the first aspect, in the fifth embodiment of the first aspect, the method also includes: when the next laser detection point is added to the target window and the first laser detection point in the target window is released, the preset number of laser detection points in the target window are re-fitted to generate a current fitting straight line; determining a first angle between the last generated fitting straight line and the horizontal direction, and a second angle between the current fitting straight line and the horizontal direction; judging whether the difference between the first angle and the second angle is less than a first preset threshold, and whether the first angle is less than a second preset threshold; when the difference is less than the preset threshold, and the first angle is less than the second preset threshold, determining that the next laser detection point added to the target window is located on the current fitting straight line.
[0014] The pallet recognition method provided by the embodiment of the present invention ensures the accuracy of the generated fitting line by detecting whether the laser detection point is located on the fitting line. Since the fitting line contains the pallet posture feature, the accuracy of the subsequent recognition of the pallet posture is ensured.
[0015] In combination with the fifth embodiment of the first aspect, in the sixth embodiment of the first aspect, the method also includes: when the difference is greater than the preset threshold, and / or the first angle is less than the second preset threshold, obtaining the number of laser detection points of the current fitting straight line and the length of the current fitting straight line; when the number of laser detection points of the current fitting straight line is greater than the preset value, and the length is less than the preset length, extracting the third angle between the current fitting straight line and the horizontal direction, and executing the steps of adding the next laser detection point to the target window and releasing the first laser detection point in the target window.
[0016] The pallet recognition method provided by the embodiment of the present invention combines the angle change, length and number of laser detection points of the fitting straight line to screen the fitting straight line, thereby ensuring to the greatest extent that the fitting straight line can accurately reflect the pallet posture characteristics.
[0017] In combination with the first aspect, in the seventh implementation of the first aspect, determining the target posture of the pallet to be identified based on the parameters of the at least one fitting straight line includes: acquiring geometric information of the pallet to be identified; determining a set of candidate position points of the pallet to be identified based on a matching relationship between the parameters and the geometric information; performing cluster analysis on the set of candidate position points to determine the center position of the pallet; and determining the target posture of the pallet to be identified based on the center position of the pallet to be identified.
[0018] The pallet recognition method provided in the embodiment of the present invention determines the center position of the pallet by performing cluster analysis on the candidate position point set, and then determines the target position and posture of the pallet based on the center position of the pallet, thereby realizing the detection of the pallet position and posture.
[0019] In combination with the seventh implementation manner of the first aspect, in the eighth implementation manner of the first aspect, the parameters include the slope of the fitting straight line, and the determining the candidate position point set of the pallet to be identified based on the matching relationship between the parameters and the geometric information includes: obtaining the number of line segments, the length of the line segments, the distance between the line segments, and the ratio between the line segments corresponding to the fitting straight line; when the number of line segments, the length of the line segments, the distance between the line segments, and the ratio between the line segments of the fitting straight line meet preset conditions, extracting the slope of the fitting straight line; based on the matching relationship between the slope of the fitting straight line and the geometric information, determining the candidate position point set of the pallet to be identified.
[0020] The pallet recognition method provided in an embodiment of the present invention matches the geometric information of the pallet with the slope of the fitting line, and determines a set of candidate position points of the pallet based on the matching relationship, thereby ensuring that the candidate position points can characterize the posture characteristics of the pallet to the greatest extent, thereby improving the subsequent recognition accuracy.
[0021] According to the second aspect, an embodiment of the present invention provides a pallet identification device, including: an acquisition module, used to acquire a laser detection point set of a pallet to be identified; a generation module, used to extract a straight line point set from the laser detection point set, and generate at least one fitting straight line based on the straight line point set; a determination module, used to determine the target posture of the pallet to be identified based on the parameters of the at least one fitting straight line.
[0022] According to the third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the pallet identification method described in the first aspect or any embodiment of the first aspect by executing the computer instructions.
[0023] According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the pallet identification method described in the first aspect or any embodiment of the first aspect.
[0024] It should be noted that the corresponding beneficial effects of the pallet identification device, electronic device, and computer-readable storage medium provided by the embodiments of the present invention can be found in the description of the corresponding contents in the pallet identification method, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0026] Figure 1 is a flow chart of a pallet identification method according to an embodiment of the present invention;
[0027] Figure 2 is another flow chart of a pallet identification method according to an embodiment of the present invention;
[0028] Figure 3 is another flow chart of a pallet identification method according to an embodiment of the present invention;
[0029] Figure 4 is a detection schematic diagram of a laser radar according to an embodiment of the present invention;
[0030] Figure 5 is another schematic diagram of detection of a laser radar according to an embodiment of the present invention;
[0031] Figure 6 is a schematic diagram of generating a fitting straight line according to an embodiment of the present invention;
[0032] Figure 7 is a structural block diagram of a pallet identification device according to an embodiment of the present invention;
[0033] Figure 8 It is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0035] According to an embodiment of the present invention, an embodiment of a pallet identification method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0036] In this embodiment, a pallet identification method is provided, which can be used for electronic devices, such as a host, a server, etc. The electronic device is arranged on an intelligent forklift to guide the intelligent forklift to grab a pallet. Figure 1 is a flow chart of a pallet identification method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0037] S11, obtaining a laser detection point set of the pallet to be identified.
[0038] The pallet to be identified usually consists of a top surface, a bottom surface, and a number of (for example, 9) pallet supports. A laser radar is installed on the smart forklift, and the laser radar is connected to the electronic equipment installed on the smart forklift. When the smart forklift is moving, the laser radar emits a laser beam to act on each pallet to be identified. When the laser radar vertically scans the pallet support, the electronic equipment can collect the set of laser detection points obtained after the laser beam acts on the pallet to be identified, that is, the laser detection point set. Figure 4 The laser detection point set obtained when the laser radar is scanned vertically to the pallet support.
[0039] It should be noted that the principle of laser radar detection of pallets is as follows:
[0040] The laser radar is a 2-D laser radar, which mainly realizes active distance measurement based on the measurement method of time of flight (TOF), and its distance data can be arranged according to the laser beam sequence number. As the laser radar detection distance H increases, the laser beam of the laser radar becomes sparse. The farther the distance, the fewer laser beams that detect the pallet bracket. If there are too few laser beams, the pallet cannot be identified.
[0041] S12, performing straight line fitting on the laser detection point set to obtain at least one fitting straight line.
[0042] In the laser detection point set, for the pallet support, it is mainly manifested as a short line segment composed of discrete points, and the straight line where the line segment is located contains the position characteristics and posture characteristics of the pallet. The electronic device performs one or more straight line fitting on each laser detection point included in the laser detection point set, and extracts at least one fitting straight line from the laser detection set.
[0043] S13, determining a target posture of the pallet to be identified based on parameters of at least one fitting straight line.
[0044] The electronic device of the intelligent forklift is preloaded with a binary image template corresponding to the pallet to be identified, which is constructed based on the parameters of the fitting line and the geometric information of the pallet to be identified. The electronic device can determine the matching binary image template and the geometric information of the pallet to be identified based on the fitting line it obtains, and then determine the target posture of the pallet to be identified based on the binary image template and the geometric information of the pallet to be identified.
[0045] The pallet recognition method provided in this embodiment obtains a laser detection point set for the pallet to be identified, extracts a straight line point set therefrom for straight line fitting, and then combines the characteristics of the pallet and the parameters of multiple fitting lines to determine the current posture of the pallet, thereby realizing the posture detection of the pallet, facilitating the picking of the pallet according to the pallet posture, and making the pallet picking more intelligent.
[0046] In this embodiment, a pallet identification method is provided, which can be used for electronic devices, such as a host, a server, etc. The electronic device is arranged on an intelligent forklift to guide the intelligent forklift to grab a pallet. Figure 2 is a flow chart of a pallet identification method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0047] S21, obtaining a laser detection point set of the pallet to be identified.
[0048] For detailed description, please refer to the relevant description corresponding to the above embodiments, which will not be repeated here.
[0049] S22, performing straight line fitting on the laser detection point set to obtain at least one fitting straight line.
[0050] As an optional implementation, the above step S22 may include:
[0051] S221, sorting the laser detection points in the laser detection point set to obtain an arrangement order of the laser detection points.
[0052] The electronic device uses the laser radar as the center point, and the laser beam is emitted with the laser radar as the center to hit the side of the pallet to be identified. Here, the surface to be detected of the pallet to be identified is parallel to the horizontal direction. Figure 5 As shown, the electronic device sorts each laser detection point in the laser detection point set according to the laser beam sequence number to obtain an arrangement order corresponding to each laser detection point in the laser detection point set.
[0053] It should be noted that the inclination of the surface of the pallet to be identified relative to the horizontal direction does not affect the detection range and detection accuracy of the laser radar, but mainly affects the direction of the detection range. Figure 4The laser detection point in the image is rotated by a certain angle with the origin, i.e., the laser radar, as the center. Figure 5 When the surface to be detected of the pallet to be identified is parallel to the horizontal direction (x-axis), the relative positions of the laser radar, laser beam and pallet do not change. Therefore, the conclusion that the surface to be detected of the pallet to be identified is parallel to the horizontal direction is applicable to the scenario of any angle of the pallet to be identified.
[0054] S222, extracting a preset number of laser detection points in sequence based on the arrangement order.
[0055] The preset number is the number of laser detection points required for linear fitting, which can be 3, 4, or other values. It is not specifically limited here, and can be determined by those skilled in the art according to actual needs. The electronic device extracts the preset number of laser detection points from the beginning to the end according to the arrangement order of each laser detection point.
[0056] Specifically, the above step S222 may include:
[0057] (1) Extract the 1st to nth laser detection points and construct a target window for the extracted n laser detection points.
[0058] Wherein, n is a positive integer, indicating a preset number.
[0059] The electronic device in the intelligent forklift extracts the laser detection points ranked 1 to n according to the arrangement order of the laser detection points, starting from the laser detection point ranked 1, and establishes a target window for these n laser detection points, such as Figure 6 shown.
[0060] (2) Move the target window based on the arrangement order, add the next laser detection point to the target window in sequence, and release the first laser detection point in the target window.
[0061] The target window is controlled to move in the order of arrangement, and the number of laser detection points contained in the target window is ensured to remain unchanged during the movement of the target window, that is, during the movement of the target window, the next laser detection point is added to the target window in sequence, and the first laser detection point in the target window is released.
[0062] Specifically, taking n=4 as an example, if the laser detection points currently contained in the target window are the 1st to the 4th, then after moving the target window once, the laser detection points it contains are the 2nd to the 5th, and so on, until all the laser detection points are traversed, such as Figure 6 shown.
[0063] By constructing a target window containing a preset number of laser detection points, the number of laser detection points in the target window remains unchanged, and then straight line fitting is performed according to the laser detection points contained in the target window, so that the pallet posture can be estimated through the changes of different fitting straight lines.
[0064] S223, performing straight line fitting on a preset number of laser detection points in sequence to obtain at least one fitting straight line.
[0065] The electronic device in the intelligent forklift can obtain the coordinate positions of a preset number of laser detection points contained in the target window, perform straight line fitting according to their coordinate positions, and obtain the corresponding fitting straight line. Figure 6 As shown, according to the movement of the target window, straight line fitting can be performed in sequence to obtain multiple fitting straight lines.
[0066] As an optional implementation, the above method further includes:
[0067] (1) When the next laser detection point is added to the target window and the first laser detection point in the target window is released, the preset number of laser detection points in the target window are refitted to generate the current fitting line.
[0068] (2) Determine the initial angle between the fitted straight line obtained by the first fitting and the horizontal direction, the first angle between the fitted straight line generated last time and the horizontal direction, and the second angle between the current fitted straight line and the horizontal direction.
[0069] After generating the fitting straight lines, the electronic device can determine the angles between each fitting straight line and the horizontal direction, ie, the initial angle, the first angle and the second angle, according to the inclination of each fitting straight line relative to the horizontal direction.
[0070] (3) Determine whether the difference between the first angle and the second angle is less than a first preset threshold, and whether the initial angle is less than a second preset threshold.
[0071] The first preset threshold is a preset angle difference, and the second preset threshold is a preset initial angle value. The first preset threshold and the second preset threshold are both determined by technicians based on experience, and the first preset threshold and the second preset threshold are used to characterize whether the laser detection point is on the fitting straight line.
[0072] The electronic device in the intelligent forklift can determine the angle difference between the first angle and the second angle based on the first angle and the second angle, and compare the difference with the first preset threshold to determine whether the difference is less than the first preset threshold. At the same time, the initial angle is compared with the second preset threshold to determine whether the initial angle is less than the second preset threshold.
[0073] (4) When the difference is less than a preset threshold and the first angle is less than a second preset threshold, it is determined that the next laser detection point added to the target window is located on the current fitting straight line.
[0074] When the difference is less than the preset threshold and the first angle is less than the second preset threshold, it means that there is no mutation in the fitting line, that is, the next laser detection point added to the target window can be recorded as a point on the current fitting line, that is, the laser detection point is located on the current fitting line.
[0075] (5) When the difference is greater than a preset threshold and / or the initial angle is less than a second preset threshold, the number of laser detection points of the current fitting line and the length of the current fitting line are obtained.
[0076] When the difference is greater than the preset threshold, and / or the initial angle is less than the second preset threshold, the number of laser detection points constituting the current fitting line and the length of the current fitting line are continuously obtained. The length of the current fitting line is the distance between the starting laser detection point and the ending laser detection point constituting the fitting line. The length of the current fitting line can be obtained according to the distance formula between two points.
[0077] (6) If the number of laser detection points of the current fitting line is greater than the preset value and the length is less than the preset length, extract the third angle between the current fitting line and the horizontal direction, and return to execute the steps of adding the next laser detection point to the target window and releasing the first laser detection point in the target window.
[0078] The preset value is the minimum number of points for generating a fitted line; the preset length is the maximum length allowed for a fitted line. If the number of laser detection points of the current fitted line is greater than the preset value, and the length of the current fitted line is less than the preset length, it means that the current fitted line is a line segment that meets the geometric constraints of the pallet to be identified. At this time, continue to add the next laser detection point to the target window and release the first laser detection point in the target window to continue generating the fitted line.
[0079] By detecting whether the laser detection point is on the fitting line, the accuracy of the generated fitting line is guaranteed. Since the fitting line contains the pallet posture characteristics, the accuracy of the subsequent identification of the pallet posture is guaranteed. The fitting line is screened by combining the angle change, length and number of laser detection points of the fitting line, which ensures that the fitting line can accurately reflect the pallet posture characteristics to the greatest extent.
[0080] S23, determining a target posture of the pallet to be identified based on parameters of at least one fitting straight line.
[0081] For detailed description, please refer to the relevant description corresponding to the above embodiments, which will not be repeated here.
[0082] The pallet identification method provided in this embodiment realizes orderly processing of laser detection points by sorting the laser detection points and then performing fitting processing based on the sorted laser detection points, thereby facilitating determination of line segments that satisfy the geometric constraints of the pallet based on changes in the spatial positions of the laser detection points.
[0083] In this embodiment, a pallet identification method is provided, which can be used for electronic devices, such as a host, a server, etc. The electronic device is arranged on an intelligent forklift to guide the intelligent forklift to grab a pallet. Figure 3 is a flow chart of a pallet identification method according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0084] S31, obtaining a laser detection point set of the pallet to be identified.
[0085] As an optional implementation, the above step S31 may include:
[0086] S311, obtaining an initial laser detection point set of the pallet to be identified.
[0087] The initial laser detection point set is the set of all laser detection points obtained when the laser radar scans the pallet to be identified. When the intelligent forklift is moving, the laser radar emits a laser beam to scan the pallet to be identified and collects the initial laser detection point set corresponding to the pallet to be identified.
[0088] S312, selecting a target detection point set that forms a continuous curve from the initial laser detection point set.
[0089] There are some invalid points in the initial laser detection point set. For example, when the pallet is stacked close to a wall or close to other pallets, there may be laser detection points representing the wall or other pallets in the collected initial laser detection point set.
[0090] The laser detection points belonging to the pallet to be identified can form a continuous curve. The electronic equipment in the intelligent forklift filters the initial laser detection point set to remove invalid points, and selects the target detection point set that constitutes the continuous curve.
[0091] As an optional implementation, the above step S312 may include:
[0092] (1) Perform curve fitting on the initial laser detection point set to obtain a continuous curve.
[0093] The electronic equipment in the smart forklift constructs a coordinate system with the laser radar as the center point, and then can obtain the coordinate position of each laser detection point contained in the initial laser detection point set, and perform curve fitting according to the coordinate position of each laser detection point to obtain one or more continuous curves.
[0094] (2) Multiple detection points located on the continuous curve constitute a target detection point set.
[0095] The obtained continuous curve is filtered to filter out invalid points outside the continuous curve, and the curve is smoothed to remove invalid singular points. After the processing for the continuous curve is completed, the multiple detection points currently constituting the continuous curve are determined as the target detection point set.
[0096] S313, determining the target detection point set as a laser detection point set.
[0097] The electronic equipment in the intelligent forklift determines the target detection point set constituting the continuous curve as the laser detection point set, performs subsequent straight line extraction on the laser detection point set, and uses the extracted multiple straight lines as candidates for the pallet support.
[0098] S32, performing straight line fitting on the laser detection point set to obtain at least one fitting straight line.
[0099] For detailed description, please refer to the relevant description corresponding to the above embodiments, which will not be repeated here.
[0100] S33, determining a target position and posture of the pallet based on parameters of at least one fitting straight line.
[0101] As an optional implementation, the above step S33 may include:
[0102] S331, obtaining geometric information of the pallet to be identified.
[0103] The geometric information is used to characterize the spatial structure of the pallet to be identified. The geometric information of the pallet to be identified can be pre-stored in the electronic equipment of the intelligent forklift, or stored in other storage spaces (such as cloud space). The storage location of the geometric information is not limited here, and those skilled in the art can determine it according to actual needs.
[0104] Accordingly, the electronic device in the smart forklift can obtain the geometric information of the pallet to be identified from the local storage space, and can also retrieve the geometric information of the pallet to be identified from other storage spaces.
[0105] S332: Determine a candidate position point set of the pallet to be identified based on the matching relationship between the parameters and the geometric information.
[0106] If the fitting line contains the posture features of the pallet to be identified, there is a matching relationship between the parameters of the fitting line and the geometric information of the pallet to be identified. The electronic equipment in the intelligent forklift can collect laser detection points in the neighborhood of the fitting line based on the matching degree between the parameters of the fitting line and the geometric information of the pallet to be identified, and determine the laser detection points on the fitting line and the laser detection points in its neighborhood as the candidate position point set of the pallet to be identified.
[0107] Specifically, the parameters of the fitted straight line include the slope of the fitted straight line. Accordingly, the above step S332 may include:
[0108] (1) Obtain the number of line segments, line segment length, distance between line segments, and ratio between line segments corresponding to the fitted straight line.
[0109] The number of segments, segment lengths, distances between segments, and ratios between segments of the currently generated fitting straight line corresponding to the pallet to be identified are counted, wherein the distances between segments are the distances between adjacent fitting straight lines, and the ratios between segments are the ratios of the distances between adjacent fitting straight lines.
[0110] (2) When the number of line segments, line segment length, distance between line segments, and ratio between line segments of the fitted line meet the preset conditions, the slope of the fitted line is extracted.
[0111] The preset conditions include a preset number of line segments, a preset line segment length, and a proportionality between line segment intervals. The electronic device in the intelligent forklift sequentially determines whether the number of line segments of the fitted straight line meets the preset number of line segments, whether the line segment length meets the preset line segment length, and whether the intervals between adjacent fitted straight lines are proportional.
[0112] When the number of line segments of the fitted straight line meets the preset line segment number value, the line segment length meets the preset line segment length value, and the intervals between adjacent fitted straight lines are proportional, it means that the number of line segments, line segment length, distance between line segments, and ratio between line segments of the fitted straight line meet the preset conditions. At this time, the electronic device in the intelligent forklift can extract the slope of each fitted straight line to obtain the slope of each fitted straight line.
[0113] (3) Based on the matching relationship between the slope of the fitted line and the geometric information, the candidate position point set of the pallet to be identified is determined.
[0114] The electronic device of the intelligent forklift stores a pallet binary image template constructed according to the slope of the fitting line and the geometric information of the pallet to be identified. According to the slope of the fitting line, the binary image template that matches it can be determined, and then the candidate position point set of the pallet to be identified can be determined according to the binary image template of the pallet to be identified.
[0115] S333, performing cluster analysis on the candidate position point set to determine the center position of the pallet to be identified.
[0116] The electronic equipment of the intelligent forklift uses a clustering algorithm to perform cluster analysis on the candidate position point set, determine the weight of each class, select the class with the largest weight, and determine the core of the class with the largest weight, and determine the core as the center position of the pallet to be identified.
[0117] S334, determining a target position of the pallet to be identified based on the center position of the pallet to be identified.
[0118] After determining the center position of the pallet to be identified, the electronic equipment of the intelligent forklift can determine the spatial position of the pallet to be identified based on the center position and the geometric information of the pallet to be identified, and then determine the target posture of the pallet to be identified.
[0119] In the pallet recognition method provided in this embodiment, since the boundaries of the pallet are connected, the target detection point set used to characterize the position of the pallet can be determined by screening the target detection point set that constitutes a continuous curve, thereby avoiding the influence of irrelevant detection points and improving the accuracy of subsequent recognition of the pallet's posture. By matching the geometric information of the pallet with the slope of the fitted straight line, the candidate position point set of the pallet is determined based on the matching relationship, thereby ensuring that the candidate position points can characterize the posture characteristics of the pallet to the greatest extent, thereby improving the subsequent recognition accuracy. The center position of the pallet is determined by clustering analysis of the candidate position point set, and then the target posture of the pallet can be determined based on the center position of the pallet, thereby realizing the detection of the pallet's posture.
[0120] In this embodiment, a pallet identification device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0121] This embodiment provides a pallet identification device that can be used in an intelligent forklift to guide the intelligent forklift to grab a pallet. Figure 7 As shown, including:
[0122] The acquisition module 41 is used to acquire a laser detection point set of the pallet to be identified.
[0123] The generating module 42 is used to perform straight line fitting on the laser detection point set to obtain at least one fitting straight line.
[0124] The determination module 43 is used to determine the target posture of the pallet based on the parameters of at least one fitting line.
[0125] Optionally, the acquisition module 41 may include:
[0126] The first acquisition submodule is used to acquire an initial laser detection point set of the pallet to be identified.
[0127] The screening submodule is used to screen out a target detection point set that constitutes a continuous curve from the initial laser detection point set.
[0128] The first determination submodule is used to determine the target detection point set as the laser detection point set.
[0129] Optionally, the above screening submodule may include:
[0130] The fitting subunit is used to perform curve fitting on the initial laser detection point set to obtain a continuous curve.
[0131] The determination subunit is used to determine a plurality of detection points located on the continuous curve as a target detection point set.
[0132] Optionally, the generating module 42 may include:
[0133] The sorting submodule is used to sort the laser detection points in the laser detection point set to obtain the arrangement order of the laser detection points.
[0134] The extraction submodule is used to extract a preset number of laser detection points in sequence based on the arrangement order.
[0135] The fitting submodule is used to perform straight line fitting on a preset number of laser detection points in sequence to obtain at least one fitting straight line.
[0136] Optionally, the above extraction submodule may include:
[0137] The extraction subunit is used to extract the 1st to nth laser detection points and construct a target window for the extracted n laser detection points, wherein n is a positive integer representing a preset number.
[0138] The moving subunit is used to move the target window based on the arrangement order, add the next laser detection point to the target window in sequence, and release the first laser detection point in the target window.
[0139] Optionally, the generating module 42 may further include:
[0140] The refitting submodule is used to refit a preset number of laser detection points in the target window to generate a current fitting line when the next laser detection point is added to the target window and the first laser detection point in the target window is released.
[0141] The second determination submodule is used to determine the initial angle between the fitting line obtained by the initial fitting and the horizontal direction, the first angle between the fitting line generated last time and the horizontal direction, and the second angle between the current fitting line and the horizontal direction.
[0142] The first judgment submodule is used to judge whether the difference between the first angle and the second angle is less than a first preset threshold, and whether the initial angle is less than a second preset threshold.
[0143] The first determination submodule is used to determine that the next laser detection point added to the target window is located on the current fitting straight line when the difference is less than a preset threshold and the first angle is less than a second preset threshold.
[0144] The second acquisition submodule is used to acquire the number of laser detection points of the current fitting straight line and the length of the current fitting straight line when the difference is greater than a preset threshold and / or the initial angle is less than a second preset threshold.
[0145] The loop submodule is used to extract the third angle between the current fitting line and the horizontal direction if the number of laser detection points of the current fitting line is greater than the preset value and the length is less than the preset length, and return to execute the steps of adding the next laser detection point to the target window and releasing the first laser detection point in the target window.
[0146] Optionally, the determination module 43 may include:
[0147] The third acquisition submodule is used to acquire geometric information of the pallet to be identified.
[0148] The third determination submodule is used to determine a candidate position point set of the pallet to be identified based on the matching relationship between the parameters and the geometric information.
[0149] The fourth determination submodule is used to perform cluster analysis on the candidate position point set to determine the center position of the pallet to be identified.
[0150] The fifth determination submodule is used to determine the target posture of the pallet to be identified based on the center position of the pallet to be identified.
[0151] Optionally, the parameters of the fitted straight line include the slope of the fitted straight line. Accordingly, the third determining submodule may include:
[0152] The acquisition subunit is used to obtain the number of line segments, line segment length, distance between line segments and ratio between line segments corresponding to the fitted straight line.
[0153] The slope extraction subunit is used to extract the slope of the fitted straight line when the number of line segments, the length of line segments, the distance between line segments and the ratio between line segments of the fitted straight line meet preset conditions.
[0154] The point set determination subunit is used to determine the candidate position point set of the pallet to be identified based on the matching relationship between the slope of the fitting line and the geometric information.
[0155] The pallet identification device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC circuit, a processor and a memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0156] The further functional description of each of the above modules is the same as that of the above corresponding embodiments and will not be repeated here.
[0157] The pallet identification device provided in this embodiment obtains a laser detection point set for the pallet to be identified, extracts a straight line point set therefrom for straight line fitting, and then combines the characteristics of the pallet and the parameters of multiple fitting lines to determine the current posture of the pallet, thereby realizing the posture detection of the pallet, facilitating the picking of the pallet according to the pallet posture, and making the pallet picking more intelligent.
[0158] The embodiment of the present invention also provides an electronic device having the above Figure 7 The pallet identification device shown.
[0159] See also Figure 8 , Figure 8 is a schematic diagram of the structure of an electronic device provided by an optional embodiment of the present invention, such as Figure 8 As shown, the electronic device may include: at least one processor 501, such as a CPU (Central Processing Unit), at least one communication interface 503, a memory 504, and at least one communication bus 502. The communication bus 502 is used to realize the connection and communication between these components. The communication interface 503 may include a display screen (Display), a keyboard (Keyboard), and the optional communication interface 503 may also include a standard wired interface and a wireless interface. The memory 504 may be a high-speed RAM memory (Random Access Memory) or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 504 may optionally be at least one storage device located away from the aforementioned processor 501. The processor 501 may be combined with Figure 7 In the described device, the memory 504 stores an application program, and the processor 501 calls the program code stored in the memory 504 to execute any of the above method steps.
[0160] The communication bus 502 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The communication bus 502 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0161] Among them, the memory 504 may include a volatile memory (English: volatile memory), such as a random access memory (English: random-access memory, abbreviated: RAM); the memory may also include a non-volatile memory (English: non-volatile memory), such as a flash memory (English: flash memory), a hard disk drive (English: hard disk drive, abbreviated: HDD) or a solid-state drive (English: solid-state drive, abbreviated: SSD); the memory 504 may also include a combination of the above types of memory.
[0162] The processor 501 may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and a NP.
[0163] The processor 501 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0164] Optionally, the memory 504 is also used to store program instructions. The processor 501 can call the program instructions to implement the present application Figures 1 to 3 The pallet identification method shown in the embodiment.
[0165] The embodiment of the present invention further provides a non-transitory computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the tray identification method in any of the above method embodiments. The storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above types of memory.
[0166] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A pallet identification method, It is characterized in that include: Obtain the laser detection point set of the pallet to be identified; Performing straight line fitting on the laser detection point set to obtain at least one fitting straight line; Determining a target position and posture of the to-be-identified pallet based on the parameters of the at least one fitting straight line; The step of determining the target position of the to-be-identified pallet based on the parameters of the at least one fitting straight line comprises: Acquiring geometric information of the pallet to be identified; Determining a candidate position point set of the to-be-identified pallet based on a matching relationship between the parameters and the geometric information; Performing cluster analysis on the candidate position point set to determine the center position of the pallet; The target position of the pallet to be identified is determined based on the center position of the pallet to be identified.
2. The method according to claim 1, It is characterized in that The step of obtaining a laser detection point set of a pallet to be identified includes: Obtain an initial laser detection point set of the pallet to be identified; Selecting a target detection point set constituting a continuous curve from the initial laser detection point set; The target detection point set is determined as the laser detection point set.
3. The method according to claim 2, It is characterized in that The step of selecting a target detection point set constituting a continuous curve from the initial laser detection point set comprises: Performing curve fitting on the initial laser detection point set to obtain the continuous curve; A plurality of detection points located on the continuous curve are determined as the target detection point set.
4. The method according to claim 1, It is characterized in that The step of performing straight line fitting on the laser detection point set to obtain at least one fitting straight line comprises: Sorting the laser detection points in the laser detection point set to obtain an arrangement order of the laser detection points; Sequentially extracting a preset number of laser detection points based on the arrangement order; Straight line fitting is performed on the preset number of laser detection points in sequence to obtain at least one fitting straight line.
5. The method according to claim 4, It is characterized in that The extracting a preset number of laser detection points in sequence based on the arrangement order includes: Extracting the first to nth laser detection points, and constructing a target window for the extracted n laser detection points; Moving the target window based on the arrangement order, sequentially adding the next laser detection point to the target window, and releasing the first laser detection point in the target window; Wherein, n is a positive integer, indicating a preset number.
6. The method according to claim 5, It is characterized in that Also includes: When the next laser detection point is added to the target window and the first laser detection point in the target window is released, the preset number of laser detection points in the target window are refitted to generate a current fitting straight line; Determine the initial angle between the fitted straight line obtained by the first fitting and the horizontal direction, the first angle between the fitted straight line generated last time and the horizontal direction, and the second angle between the current fitted straight line and the horizontal direction; Determine whether a difference between the first angle and the second angle is less than a first preset threshold, and whether the initial angle is less than a second preset threshold; When the difference is smaller than the preset threshold, and the initial angle is smaller than the second preset threshold, it is determined that the next laser detection point added to the target window is located on the current fitting straight line.
7. The method according to claim 6, It is characterized in that Also includes: When the difference is greater than the preset threshold, and / or the initial angle is less than the second preset threshold, obtaining the number of laser detection points of the current fitting straight line and the length of the current fitting straight line; When the number of laser detection points of the current fitting straight line is greater than a preset value and the length is less than a preset length, the third angle between the current fitting straight line and the horizontal direction is extracted, and the process returns to execute the steps of adding the next laser detection point to the target window and releasing the first laser detection point in the target window.
8. The method according to claim 1, It is characterized in that The parameter includes the slope of the fitted straight line, and the determining of the candidate position point set of the to-be-identified pallet based on the matching relationship between the parameter and the geometric information includes: Obtain the number of line segments, line segment lengths, distances between line segments, and ratios between line segments corresponding to the fitted straight line; When the number of line segments, the length of line segments, the distance between line segments and the ratio between line segments of the fitting straight line meet preset conditions, extracting the slope of the fitting straight line; Based on the matching relationship between the slope of the fitting straight line and the geometric information, a set of candidate position points of the to-be-identified pallet is determined.
9. A pallet identification device, It is characterized in that include: An acquisition module, used to acquire a laser detection point set of a pallet to be identified; A generating module, used for extracting a straight line point set from the laser detection point set, and generating at least one fitting straight line based on the straight line point set; A determination module, configured to determine a target posture of the pallet to be identified based on the parameters of the at least one fitting straight line; The determining the target posture of the pallet to be identified based on the parameters of the at least one fitting straight line includes: acquiring geometric information of the pallet to be identified; Based on the matching relationship between the parameters and the geometric information, a candidate position point set of the pallet to be identified is determined; cluster analysis is performed on the candidate position point set to determine the center position of the pallet; and based on the center position of the pallet to be identified, a target posture of the pallet to be identified is determined.
10. An electronic device, It is characterized in that include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the pallet identification method according to any one of claims 1 to 8 by executing the computer instructions.
11. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the pallet identification method according to any one of claims 1 to 8.
