[go: up one dir, main page]

CN115100271A - Detection method, device, computer equipment and storage medium for picking height - Google Patents

Detection method, device, computer equipment and storage medium for picking height Download PDF

Info

Publication number
CN115100271A
CN115100271A CN202210699026.4A CN202210699026A CN115100271A CN 115100271 A CN115100271 A CN 115100271A CN 202210699026 A CN202210699026 A CN 202210699026A CN 115100271 A CN115100271 A CN 115100271A
Authority
CN
China
Prior art keywords
cloud data
point cloud
target
voxel
picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210699026.4A
Other languages
Chinese (zh)
Other versions
CN115100271B (en
Inventor
杨秉川
方牧
鲁豫杰
李陆洋
王琛
方晓曼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Visionnav Robotics Shenzhen Co Ltd
Original Assignee
Visionnav Robotics Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Visionnav Robotics Shenzhen Co Ltd filed Critical Visionnav Robotics Shenzhen Co Ltd
Priority to CN202210699026.4A priority Critical patent/CN115100271B/en
Publication of CN115100271A publication Critical patent/CN115100271A/en
Application granted granted Critical
Publication of CN115100271B publication Critical patent/CN115100271B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0014Image feed-back for automatic industrial control, e.g. robot with camera
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/20Image enhancement or restoration using local operators
    • G06T5/30Erosion or dilatation, e.g. thinning
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10028Range image; Depth image; 3D point clouds

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Robotics (AREA)
  • Geometry (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Image Processing (AREA)

Abstract

The application relates to a method and a device for detecting the goods picking height, computer equipment and a storage medium. The method comprises the following steps: acquiring original point cloud data of a target goods taking area; the target goods taking area comprises a tray for storing and taking goods; carrying out picture conversion based on the original point cloud data to obtain a target picture; the target picture comprises a tray object used for representing the tray; determining a positioning contour edge of the tray object from the target picture; the positioning contour edge is an edge used for positioning the goods taking height in the contour of the tray object; determining target point cloud data matched with the positioning contour edge in the original point cloud data; and determining the target goods taking height based on the target point cloud data. According to the method and the device, the target goods taking height can still be normally calculated under the condition that original point cloud data are incomplete, and therefore the accuracy of the target goods taking height is improved.

Description

取货高度的检测方法、装置、计算机设备和存储介质Detection method, device, computer equipment and storage medium for picking height

技术领域technical field

本申请涉及物流应用技术领域,特别是涉及一种取货高度的检测方法、装置、计算机设备和存储介质。The present application relates to the technical field of logistics applications, and in particular, to a method, device, computer equipment and storage medium for detecting the height of pickup.

背景技术Background technique

随着物流产业的发展,货物数量不断增加,对取货需求也日益攀升。目前,主要通过搬运设备,例如通过无人搬运叉车根据预先确定的取货高度进行取货。With the development of the logistics industry, the number of goods continues to increase, and the demand for picking up goods is also increasing. Currently, the pickup is mainly carried out by means of handling equipment, for example by an unmanned forklift, according to a predetermined pickup height.

在通常情况下,取货高度是直接对托盘上的点云数据进行计算得到的。但是,当托盘出现缺损或遮挡的情况下,会导致托盘上的点云数据不够完整,从而影响取货高度的准确性。因此,如何提高取货高度的准确性,成为本领域技术人员亟需解决的技术问题。Under normal circumstances, the pickup height is directly calculated from the point cloud data on the pallet. However, when the pallet is defective or occluded, the point cloud data on the pallet will be incomplete, thus affecting the accuracy of the pickup height. Therefore, how to improve the accuracy of the pickup height has become a technical problem that needs to be solved urgently by those skilled in the art.

发明内容SUMMARY OF THE INVENTION

基于此,有必要针对上述技术问题,提供一种能够提高取货高度准确性的取货高度的检测方法、装置、计算机设备和存储介质。Based on this, it is necessary to provide a pickup height detection method, device, computer equipment and storage medium that can improve the pickup height accuracy in response to the above technical problems.

第一方面,本申请提供了一种取货高度的检测方法。所述方法包括:In a first aspect, the present application provides a method for detecting a pickup height. The method includes:

获取目标取货区域的原始点云数据;所述目标取货区域中包括用于存取货物的托盘;Obtain the original point cloud data of the target pickup area; the target pickup area includes pallets for accessing goods;

基于所述原始点云数据进行图片转换,得到目标图片;所述目标图片中包括用于表征所述托盘的托盘对象;Perform image conversion based on the original point cloud data to obtain a target image; the target image includes a tray object used to represent the tray;

从所述目标图片中确定所述托盘对象的定位轮廓边缘;所述定位轮廓边缘是所述托盘对象的轮廓中用于定位取货高度的边缘;Determine the positioning contour edge of the pallet object from the target image; the positioning contour edge is an edge in the contour of the pallet object used for positioning the pickup height;

确定所述原始点云数据中与所述定位轮廓边缘相匹配的目标点云数据;Determine the target point cloud data that matches the edge of the positioning contour in the original point cloud data;

基于所述目标点云数据确定目标取货高度。The target pickup height is determined based on the target point cloud data.

第二方面,本申请还提供了一种取货高度的检测装置。所述装置包括:In a second aspect, the present application also provides a device for detecting the height of a pickup. The device includes:

数据获取模块,用于获取目标取货区域的原始点云数据;所述目标取货区域中包括用于存取货物的托盘;a data acquisition module for acquiring original point cloud data of a target pickup area; the target pickup area includes a pallet for accessing goods;

图片转换模块,用于基于所述原始点云数据进行图片转换,得到目标图片;所述目标图片中包括用于表征所述托盘的托盘对象;A picture conversion module, configured to perform picture conversion based on the original point cloud data to obtain a target picture; the target picture includes a tray object used to represent the tray;

边缘确定模块,用于从所述目标图片中确定所述托盘对象的定位轮廓边缘;所述定位轮廓边缘是所述托盘对象的轮廓中用于定位取货高度的边缘;an edge determination module, configured to determine a positioning contour edge of the pallet object from the target image; the positioning contour edge is an edge in the contour of the pallet object used for positioning the pickup height;

数据匹配模块,用于确定所述原始点云数据中与所述定位轮廓边缘相匹配的目标点云数据;a data matching module for determining the target point cloud data in the original point cloud data that matches the edge of the positioning contour;

高度确定模块,用于基于所述目标点云数据确定目标取货高度。A height determination module, configured to determine a target pickup height based on the target point cloud data.

在一些实施例中,所述图片转换模块包括筛选单元和投影单元。所述筛选单元用于从所述原始点云数据中筛选位于激光坐标系下的竖直截面上的点云数据,得到参照点云数据。所述投影单元用于对所述参照点云数据进行投影处理,得到所述目标图片。所述数据匹配模块还用于从所述参照点云数据中,确定与所述定位轮廓边缘相匹配的目标点云数据。In some embodiments, the picture conversion module includes a screening unit and a projection unit. The screening unit is used for screening point cloud data on a vertical section under the laser coordinate system from the original point cloud data to obtain reference point cloud data. The projection unit is configured to perform projection processing on the reference point cloud data to obtain the target picture. The data matching module is further configured to determine, from the reference point cloud data, target point cloud data matching the edge of the positioning contour.

在一些实施例中,所述筛选单元还用于从原始点云数据中初步筛选符合预设条件的初步点云数据;对所述初步点云数据划分体素网格;分别从每个体素网格中筛选所述激光坐标系下的竖直截面上的目标点,得到所述参照点云数据。In some embodiments, the screening unit is further configured to preliminarily screen preliminary point cloud data that meets preset conditions from the original point cloud data; divide the preliminary point cloud data into a voxel grid; The target points on the vertical section under the laser coordinate system are screened in the grid to obtain the reference point cloud data.

在一些实施例中,所述边缘确定模块还用于对所述目标图片进行预处理,得到预处理图片;对所述预处理图片进行轮廓识别,得到识别轮廓;从所述识别轮廓中确定所述托盘对象的所述定位轮廓边缘。In some embodiments, the edge determination module is further configured to preprocess the target image to obtain a preprocessed image; perform contour recognition on the preprocessed image to obtain an identified contour; determine the identified contour from the identified contour. the positioning contour edge of the pallet object.

在一些实施例中,每一所述体素网格在体素坐标系下对应一个体素索引,所述体素索引用于表征对应的所述体素网格是否有点云数据,所述边缘确定模块还用于针对所述目标图片的像素坐标系下的每一像素坐标点,确定与所述像素坐标点对应的体素索引;所述与所述像素坐标点对应的体素索引,是所述像素坐标点所对应的体素网格在所述体素坐标系下的体素索引;根据与所述像素坐标点对应的体素索引,对所述目标图片进行灰度处理,得到灰度图像;对所述灰度图像进行膨胀腐蚀运算,得到所述预处理图片。In some embodiments, each voxel grid corresponds to a voxel index in the voxel coordinate system, and the voxel index is used to represent whether the corresponding voxel grid has point cloud data, the edge The determining module is further configured to, for each pixel coordinate point in the pixel coordinate system of the target picture, determine a voxel index corresponding to the pixel coordinate point; the voxel index corresponding to the pixel coordinate point is The voxel index of the voxel grid corresponding to the pixel coordinate point in the voxel coordinate system; according to the voxel index corresponding to the pixel coordinate point, grayscale processing is performed on the target image to obtain grayscale degree image; perform dilation and erosion operation on the grayscale image to obtain the preprocessed image.

在一些实施例中,所述数据匹配模块还用于确定所述定位轮廓边缘的像素坐标点所对应的目标体素索引;从所述参照点云数据中,确定位于所述目标体素索引所指向的目标体素网格中的点,得到所述目标点云数据。In some embodiments, the data matching module is further configured to determine the target voxel index corresponding to the pixel coordinate point of the edge of the positioning contour; Point to the point in the target voxel grid to obtain the target point cloud data.

在一些实施例中,所述高度确定模块还用于对所述目标点云数据进行直线拟合,得到拟合线段;基于所述拟合线段的线段中点值,确定所述目标取货高度。In some embodiments, the height determination module is further configured to perform straight line fitting on the target point cloud data to obtain a fitted line segment; and determine the target pickup height based on the midpoint value of the fitted line segment .

第三方面,本申请还提供了一种计算机设备。所述计算机设备包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现上述取货高度的检测方法中的步骤。In a third aspect, the present application also provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the steps in the above method for detecting a pickup height are implemented.

第四方面,本申请还提供了一种计算机可读存储介质。所述计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述取货高度的检测方法中的步骤。In a fourth aspect, the present application also provides a computer-readable storage medium. The computer-readable storage medium has a computer program stored thereon, and when the computer program is executed by the processor, implements the steps in the above-mentioned method for detecting a pickup height.

第五方面,本申请还提供了一种计算机程序产品。所述计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述取货高度的检测方法中的步骤。In a fifth aspect, the present application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the steps in the above method for detecting a pickup height.

上述取货高度的检测方法、装置、计算机设备和存储介质,获取目标取货区域的原始点云数据;目标取货区域中包括用于存取货物的托盘;基于原始点云数据进行图片转换,得到目标图片;目标图片中包括用于表征托盘的托盘对象;从目标图片中确定托盘对象的定位轮廓边缘;定位轮廓边缘是托盘对象的轮廓中用于定位取货高度的边缘;确定原始点云数据中与定位轮廓边缘相匹配的目标点云数据;基于目标点云数据确定目标取货高度。本申请通过获取目标取货区域的原始点云数据,对原始点云数据进行图片转换得到目标图片,且只针对目标图片中的定位轮廓边缘,确定原始点云数据中与定位轮廓边缘相匹配的目标点云数据,并基于目标点云数据确定目标取货高度,能够在原始点云数据不够完整的情况下,仍然可以正常计算目标取货高度,从而提高目标取货高度的准确性。The above-mentioned detection method, device, computer equipment and storage medium for the height of the pickup are to obtain the original point cloud data of the target pickup area; the target pickup area includes a pallet for accessing the goods; image conversion is performed based on the original point cloud data, Obtain the target image; the target image includes the pallet object used to characterize the pallet; determine the positioning contour edge of the pallet object from the target image; the positioning contour edge is the edge used to locate the pickup height in the contour of the pallet object; determine the original point cloud The target point cloud data in the data that matches the edge of the positioning contour; the target pickup height is determined based on the target point cloud data. In this application, the original point cloud data of the target pickup area is obtained, and the original point cloud data is image-converted to obtain the target image, and only the positioning contour edges in the target image are determined to match the positioning contour edges in the original point cloud data. Target point cloud data, and determine the target pickup height based on the target point cloud data, can still calculate the target pickup height normally when the original point cloud data is not complete, thereby improving the accuracy of the target pickup height.

附图说明Description of drawings

图1为一些实施例中取货高度的检测方法的流程示意图;1 is a schematic flowchart of a method for detecting a pickup height in some embodiments;

图2为一些实施例中托盘的示意图;Figure 2 is a schematic diagram of a tray in some embodiments;

图3为一些实施例中激光坐标系的示意图;3 is a schematic diagram of a laser coordinate system in some embodiments;

图4为一些实施例中体素坐标系的示意图;4 is a schematic diagram of a voxel coordinate system in some embodiments;

图5为一些实施例中像素坐标系的示意图;5 is a schematic diagram of a pixel coordinate system in some embodiments;

图6为一些实施例中取货高度的检测装置的结构框图;6 is a structural block diagram of a device for detecting a pickup height in some embodiments;

图7为一些实施例中计算机设备的内部结构图。Figure 7 is a diagram of the internal structure of a computer device in some embodiments.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.

在一些实施例中,如图1所示,提供了一种取货高度的检测方法,本实施例以该方法应用于服务器进行举例说明,可以理解的是,该方法也可以应用于搬运设备,还可以应用于包括搬运设备和服务器的系统,并通过搬运设备和服务器的交互实现。其中,搬运设备指的是用于搬运货物的运输设备,搬运设备可以但不限于自动引导车(Automated GuidedVehicle,AGV小车)和叉车中的至少一种,其中叉车可以但不限于是无人搬运叉车。本实施例中,该方法包括以下步骤:In some embodiments, as shown in FIG. 1 , a method for detecting the height of picking up goods is provided. In this embodiment, the method is applied to a server for illustration. It can be understood that this method can also be applied to handling equipment. It can also be applied to a system including a handling device and a server, and is realized through the interaction of the handling device and the server. Wherein, the handling equipment refers to the transportation equipment for handling goods, and the handling equipment may be, but is not limited to, at least one of an Automated Guided Vehicle (AGV) and a forklift, wherein the forklift may be, but is not limited to, an unmanned forklift. . In this embodiment, the method includes the following steps:

步骤102,获取目标取货区域的原始点云数据。Step 102: Obtain original point cloud data of the target pickup area.

其中,目标取货区域中包括一个或多个用于存取货物的托盘。Wherein, the target pickup area includes one or more pallets for accessing goods.

托盘,是一种成组运输货物的载货工具。A pallet is a cargo tool for transporting goods in groups.

点云数据,是指在一个三维坐标系统中的一组向量的集合,这些向量通常以X、Y、Z三维坐标的形式表示,一般用来代表一个物体的外表面形状。Point cloud data refers to a set of vectors in a three-dimensional coordinate system. These vectors are usually expressed in the form of X, Y, and Z three-dimensional coordinates, which are generally used to represent the outer surface shape of an object.

具体地,通过激光设备对目标取货区域进行激光扫描,得到对应的原始点云数据,其中,激光设备指的是能够发射激光的装置。服务器则获取激光设备进行激光扫描得到的原始点云数据,用于后续计算搬运设备的目标取货高度。Specifically, laser scanning is performed on the target pickup area by a laser device to obtain corresponding original point cloud data, where the laser device refers to a device capable of emitting laser light. The server obtains the original point cloud data obtained by laser scanning of the laser equipment, which is used for subsequent calculation of the target pickup height of the handling equipment.

在一些实施例中,激光设备可固定在搬运设备上,并不限定对激光设备的具体固定位置,只要能够使得被固定的激光设备能准确扫描到点云数据即可。In some embodiments, the laser device can be fixed on the handling device, and the specific fixing position of the laser device is not limited, as long as the fixed laser device can accurately scan the point cloud data.

在一些实施例中,可以将激光设备固定在搬运设备中的两个用于夹取或者托取货物的夹臂根部之间的中点位置上,这样能够保证激光设备在进行激光扫描时不会被货物遮挡,从而提高激光扫描准确性。其中,夹臂根部指的是搬运设备中的夹臂朝向搬运设备车身的一端。In some embodiments, the laser device can be fixed at the midpoint between the roots of the two gripping arms used for gripping or picking up goods in the handling device, so as to ensure that the laser device does not perform laser scanning during laser scanning. Obstructed by cargo, thereby improving laser scanning accuracy. The root of the clamp arm refers to the end of the clamp arm in the handling equipment that faces the body of the handling equipment.

在一些实施例中,将激光设备固定在搬运设备上之后,服务器控制搬运设备行驶至待取货位,激光设备则针对目标取货区域进行激光扫描,得到原始点云数据。其中,待取货位是预先设定好的搬运设备的大致取货位置。In some embodiments, after the laser equipment is fixed on the handling equipment, the server controls the handling equipment to drive to the position to be picked up, and the laser equipment performs laser scanning on the target pickup area to obtain original point cloud data. Wherein, the position to be picked up is a pre-set approximate pick-up position of the handling equipment.

在另一些实施例中,服务器控制搬运设备行驶至待取货位之后,搬运设备将待取托盘的预目标位反馈给感知算法模块。感知算法模块则通过固定在搬运设备上的激光设备来获取搬运设备前方的点云数据,并根据搬运设备发送的预目标位,从搬运设备前方的点云数据中获取与预目标位相关联的部分点云数据,作为原始点云数据。In other embodiments, after the server controls the handling equipment to travel to the position to be picked up, the handling equipment feeds back the pre-target position of the pallet to be picked up to the sensing algorithm module. The perception algorithm module obtains the point cloud data in front of the handling equipment through the laser equipment fixed on the handling equipment, and obtains the point cloud data associated with the pre-target position from the point cloud data in front of the handling equipment according to the pre-target position sent by the handling equipment. Part of the point cloud data, as the original point cloud data.

其中,待取托盘指的是目标取货区域中需要搬运设备进行取货所指定的托盘。感知算法模块,是服务器上用于提取点云数据的模块。Wherein, the pallet to be picked up refers to the pallet designated by the handling equipment to pick up the goods in the target picking area. The perception algorithm module is a module on the server for extracting point cloud data.

待取托盘的预目标位,指的是待取托盘相对于搬运设备所在的坐标系的坐标位姿,具体包括但不限于待取托盘相对于搬运设备所在坐标系在X轴方向上的纵向宽度、待取托盘相对于搬运设备所在坐标系在Y轴方向上的横向长度、待取托盘相对于搬运设备所在坐标系在Z轴方向上的垂直高度,以及待取托盘的托盘平面相较于搬运设备所在的坐标系在Y轴方向上的夹角中的至少一种。The pre-target position of the pallet to be taken refers to the coordinate pose of the pallet to be taken relative to the coordinate system where the handling equipment is located, specifically including but not limited to the longitudinal width of the pallet to be taken relative to the coordinate system where the handling equipment is located in the X-axis direction , the lateral length of the pallet to be taken in the Y-axis direction relative to the coordinate system where the handling equipment is located, the vertical height of the pallet to be taken relative to the coordinate system of the handling equipment in the Z-axis direction, and the pallet plane of the pallet to be taken compared to the handling equipment. At least one of the included angles in the Y-axis direction of the coordinate system where the device is located.

其中,搬运设备前方的点云数据包括待取托盘的点云数据,以及待取托盘周围环境的点云数据。The point cloud data in front of the handling equipment includes point cloud data of the pallet to be taken, and point cloud data of the surrounding environment of the pallet to be taken.

在一些实施例中,感知算法模块根据预目标位,从搬运设备前方的点云数据中提取感兴趣点云数据的过程为:感知算法模块根据提前标定好的激光外参和提前配置好的待取托盘的托盘尺寸参数,从搬运设备前方的点云数据中提取与待取托盘的预目标位相匹配的部分点云数据,作为原始点云数据。In some embodiments, the process of extracting the point cloud data of interest from the point cloud data in front of the handling equipment by the perception algorithm module according to the predetermined target position is as follows: the perception algorithm module is based on the pre-calibrated laser external parameters and pre-configured waiting Take the pallet size parameters of the pallet, and extract part of the point cloud data that matches the pre-target position of the pallet to be taken from the point cloud data in front of the handling equipment, as the original point cloud data.

其中,激光外参指的是激光设备与其他坐标系,例如与搬运设备所在坐标系之间的坐标系转换关系。托盘尺寸参数,包括但不限于托盘长度、托盘宽度和托盘高度中的至少一种。Among them, the laser external parameter refers to the coordinate system conversion relationship between the laser equipment and other coordinate systems, such as the coordinate system where the handling equipment is located. Tray size parameters, including but not limited to at least one of tray length, tray width, and tray height.

在一些实施例中,感知算法模块还可以根据托盘尺寸参数,提取位于预设尺寸范围、且与待取托盘相匹配的点云数据,作为原始点云数据。其中,预设尺寸范围根据托盘尺寸参数和预设数值设定。具体地,将托盘尺寸参数与预设数值之差作为预设尺寸范围的最小值,将托盘尺寸参数与预设数值之和作为预设尺寸范围的最大值。其中,预设数值可根据实际需求设定,例如可以将预设数值设定为0.3厘米。In some embodiments, the perception algorithm module may further extract, according to the tray size parameter, point cloud data located in a preset size range and matching the tray to be taken, as the original point cloud data. The preset size range is set according to the pallet size parameter and the preset value. Specifically, the difference between the tray size parameter and the preset value is used as the minimum value of the preset size range, and the sum of the tray size parameter and the preset value is used as the maximum value of the preset size range. The preset value can be set according to actual needs, for example, the preset value can be set to 0.3 cm.

在另一些实施例中,激光设备也可以与搬运设备分体设置,具体可以将激光设备固定安装在某个可以针对目标取货区域进行激光扫描的位置,当需要采集目标取货区域的原始点云数据时,直接通过激光设备进行激光扫描。In other embodiments, the laser device can also be set separately from the handling device. Specifically, the laser device can be fixedly installed in a position where laser scanning can be performed for the target pickup area. When the original point of the target pickup area needs to be collected When cloud data is used, laser scanning is performed directly through laser equipment.

步骤104,基于原始点云数据进行图片转换,得到目标图片。Step 104: Perform image conversion based on the original point cloud data to obtain a target image.

其中,目标图片中包括用于表征托盘的托盘对象。Wherein, the target picture includes a tray object used to represent the tray.

在一些实施例中,服务器可直接将原始点云数据转换成图片,得到目标图片。在另一些实施例中,服务器还可以对原始点云数据进行筛选,并将筛选后的点云数据转换成图片,得到目标图片。本申请通过在图片转换之前,筛选掉一部分的原始点云数据,能够提高目标图片的精度。In some embodiments, the server may directly convert the original point cloud data into a picture to obtain a target picture. In other embodiments, the server may also filter the original point cloud data, and convert the filtered point cloud data into a picture to obtain the target picture. The present application can improve the accuracy of the target image by filtering out a part of the original point cloud data before image conversion.

步骤106,从目标图片中确定托盘对象的定位轮廓边缘。Step 106: Determine the positioning contour edge of the pallet object from the target image.

其中,定位轮廓边缘是托盘对象的定位轮廓中用于定位取货高度的边缘。在实际应用中,托盘对象的轮廓包括内轮廓和外轮廓,托盘对象的定位轮廓为托盘对象的内轮廓,托盘对象的定位轮廓边缘包括但不限于托盘对象内轮廓的上边沿线和托盘对象内轮廓的下边沿线中的至少一种。Wherein, the edge of the positioning contour is the edge in the positioning contour of the pallet object used to locate the pickup height. In practical applications, the contour of the pallet object includes an inner contour and an outer contour, the positioning contour of the pallet object is the inner contour of the pallet object, and the edge of the positioning contour of the pallet object includes but is not limited to the upper edge of the inner contour of the pallet object and the inner contour of the pallet object at least one of the lower edge lines.

其中,托盘对象的内轮廓、托盘对象的外轮廓以及托盘对象内轮廓的上边沿线和托盘对象内轮廓的下边沿线的位置具体可参照2所示。The positions of the inner contour of the pallet object, the outer contour of the pallet object, the upper edge of the inner contour of the pallet object, and the lower edge of the inner contour of the pallet object can be referred to as shown in 2.

在一些实施例中,服务器可以从目标图片中,直接提取托盘对象的定位轮廓,即内轮廓,并基于托盘对象的内轮廓提取对应的定位轮廓边缘,即托盘对象内轮廓的上边沿线或托盘对象内轮廓的下边沿线。In some embodiments, the server may directly extract the positioning contour of the tray object, that is, the inner contour, from the target image, and extract the corresponding positioning contour edge based on the inner contour of the tray object, that is, the upper edge of the inner contour of the tray object or the tray object. The lower edge of the inner contour.

在另一些实施例中,服务器还可以从目标图片中,先提取托盘对象的外轮廓,并识别在外轮廓的轮廓范围内的定位轮廓,即内轮廓,接着基于托盘对象的内轮廓提取对应的定位轮廓边缘,即托盘对象内轮廓的上边沿线或托盘对象内轮廓的下边沿线。In other embodiments, the server may also first extract the outer contour of the pallet object from the target image, identify the positioning contour within the contour range of the outer contour, that is, the inner contour, and then extract the corresponding positioning based on the inner contour of the pallet object The contour edge, that is, the upper edge of the inner contour of the pallet object or the lower edge of the inner contour of the pallet object.

步骤108,确定原始点云数据中与定位轮廓边缘相匹配的目标点云数据。Step 108: Determine the target point cloud data matching the edge of the positioning contour in the original point cloud data.

具体地,服务器根据在目标图片中确定好的定位轮廓边缘,从原始点云数据中确定与定位轮廓边缘相匹配的点云数据,作为目标点云数据。Specifically, the server determines, from the original point cloud data, point cloud data that matches the edge of the positioning contour according to the positioning contour edge determined in the target image, as the target point cloud data.

在一些实施例中,服务器还可以对原始点云数据进行筛选,并从筛选后的点云数据中确定与定位轮廓边缘相匹配的点云数据,作为目标点云数据。In some embodiments, the server may also filter the original point cloud data, and determine the point cloud data that matches the edge of the positioning contour from the filtered point cloud data, as the target point cloud data.

步骤110,基于目标点云数据确定目标取货高度。Step 110: Determine the target pickup height based on the target point cloud data.

其中,目标取货高度指的是搬运设备针对待取托盘进行取货的高度。The target picking height refers to the height at which the handling equipment picks up the pallets to be picked up.

具体地,服务器在获取与定位轮廓边缘相匹配的目标点云数据之后,对目标点云数据进行拟合,根据拟合的结果确定目标取货高度。Specifically, after acquiring the target point cloud data matching the edge of the positioning contour, the server performs fitting on the target point cloud data, and determines the target pickup height according to the fitting result.

在一些实施例中,服务器还可以针对目标点云数据确定待取托盘的取货平面,并根据取货平面确定目标取货高度。其中,取货平面指的是搬运设备需要针对待取托盘进行取货的平面。In some embodiments, the server may further determine the pickup plane of the pallet to be taken according to the target point cloud data, and determine the target pickup height according to the pickup plane. The picking plane refers to the plane on which the handling equipment needs to pick up the pallets to be taken.

上述取货高度的检测方法中,通过获取目标取货区域的原始点云数据;目标取货区域中包括用于存取货物的托盘;基于原始点云数据进行图片转换,得到目标图片;目标图片中包括用于表征托盘的托盘对象;从目标图片中确定托盘对象的定位轮廓边缘;定位轮廓边缘是托盘对象的轮廓中用于定位取货高度的边缘;确定原始点云数据中与定位轮廓边缘相匹配的目标点云数据;基于目标点云数据确定目标取货高度。本申请通过获取目标取货区域的原始点云数据,对原始点云数据进行图片转换得到目标图片,且只针对目标图片中的定位轮廓边缘,确定原始点云数据中与定位轮廓边缘相匹配的目标点云数据,并基于目标点云数据确定目标取货高度,能够在原始点云数据不够完整的情况下,仍然可以正常计算目标取货高度,从而提高目标取货高度的准确性。In the above method for detecting the pickup height, the original point cloud data of the target pickup area is obtained; the target pickup area includes a pallet for accessing the goods; image conversion is performed based on the original point cloud data to obtain the target image; the target image including the pallet object used to characterize the pallet; determine the positioning contour edge of the pallet object from the target image; the positioning contour edge is the edge in the contour of the pallet object used to locate the pickup height; determine the original point cloud data and the positioning contour edge Match the target point cloud data; determine the target pickup height based on the target point cloud data. In this application, the original point cloud data of the target pickup area is obtained, and the original point cloud data is image-converted to obtain the target image, and only the positioning contour edges in the target image are determined to match the positioning contour edges in the original point cloud data. Target point cloud data, and determine the target pickup height based on the target point cloud data, can still calculate the target pickup height normally when the original point cloud data is not complete, thereby improving the accuracy of the target pickup height.

在一些实施例中,步骤104具体包括但不限于:从原始点云数据中筛选位于激光设备所在的激光坐标系下的竖直截面上的点云数据,得到参照点云数据;对参照点云数据进行投影处理,得到目标图片。In some embodiments, step 104 specifically includes, but is not limited to: screening point cloud data on a vertical section under the laser coordinate system where the laser device is located from the original point cloud data to obtain reference point cloud data; The data is subjected to projection processing to obtain the target image.

其中,激光坐标系指的是基于激光设备构建的三维坐标系,位于激光坐标系下的竖直截面指的是位于激光坐标系在竖直方向上的二维平面,具体可以是xoy平面,即在激光坐标系下z=0的平面。其中,激光坐标系的示意图可参照图3。The laser coordinate system refers to a three-dimensional coordinate system constructed based on laser equipment, and the vertical section located under the laser coordinate system refers to a two-dimensional plane located in the vertical direction of the laser coordinate system, specifically the xoy plane, that is The plane of z=0 in the laser coordinate system. The schematic diagram of the laser coordinate system may refer to FIG. 3 .

具体地,服务器从原始点云数据中,筛选出位于激光坐标系下竖直截面的二维平面,即在激光坐标系下Z=0的XOY平面的点云数据,得到参照点云数据。将参考点云数据投影成图片,得到目标图片。Specifically, the server selects the two-dimensional plane of the vertical section under the laser coordinate system from the original point cloud data, that is, the point cloud data of the XOY plane with Z=0 under the laser coordinate system, and obtains the reference point cloud data. Project the reference point cloud data into a picture to get the target picture.

在一些实施例中,服务器还可以先从原始点云数据中,筛选出位于激光坐标系下竖直方向的二维平面的点云数据之后,对位于激光坐标系下竖直方向的二维平面的点云数据再次筛选,得到参照点云数据。将参照点云数据投影成图片,得到目标图片。In some embodiments, the server may also select the point cloud data of the two-dimensional plane located in the vertical direction under the laser coordinate system from the original point cloud data, and then select the point cloud data of the two-dimensional plane located in the vertical direction under the laser coordinate system. The point cloud data is filtered again to obtain the reference point cloud data. Project the reference point cloud data into a picture to get the target picture.

在一些实施例中,步骤108具体包括但不限于:从参照点云数据中,确定与定位轮廓边缘相匹配的目标点云数据。In some embodiments, step 108 specifically includes, but is not limited to, determining, from the reference point cloud data, target point cloud data that matches the edge of the positioning contour.

具体地,服务器从参照点云数据中确定与定位轮廓边缘相匹配的点云数据,作为目标点云数据。Specifically, the server determines, from the reference point cloud data, point cloud data that matches the edge of the positioning contour as the target point cloud data.

在一些实施例中,步骤“从原始点云数据中筛选位于激光坐标系下的竖直截面上的点云数据,得到参照点云数据”具体包括但不限于:从原始点云数据中初步筛选符合预设条件的初步点云数据;对初步点云数据划分体素网格;分别从每个体素网格中筛选激光坐标系下的竖直截面上的目标点,得到参照点云数据。In some embodiments, the step of "screening point cloud data on a vertical section under the laser coordinate system from the original point cloud data to obtain reference point cloud data" specifically includes but is not limited to: preliminary screening from the original point cloud data Preliminary point cloud data that meets the preset conditions; divide the preliminary point cloud data into a voxel grid; screen the target points on the vertical section under the laser coordinate system from each voxel grid to obtain the reference point cloud data.

其中,预设条件指的是对位于激光设备所在的激光坐标系下的XOY平面(即激光坐标系下Z=0的平面)的原始点云数据进行平面拟合之后的每个点,距离拟合平面的预设距离范围,其中,拟合平面为原始点云数据进行平面拟合之后得到的平面,预设距离范围可设置为2厘米至3厘米。The preset condition refers to each point after plane fitting is performed on the original point cloud data of the XOY plane under the laser coordinate system where the laser equipment is located (that is, the plane with Z=0 under the laser coordinate system). The preset distance range of the combined plane, where the fitted plane is the plane obtained after plane fitting the original point cloud data, and the preset distance range can be set to 2 cm to 3 cm.

在实际应用中,可以采用随机抽样一致(Random Sample Consensus,RANSAC)算法对原始点云数据进行平面拟合。其中,随机抽样一致算法是根据一组包含异常数据的样本数据集,计算出数据的数学模型参数,得到有效样本数据的算法。In practical applications, the Random Sample Consensus (RANSAC) algorithm can be used to perform plane fitting on the original point cloud data. Among them, the random sampling consensus algorithm is an algorithm that calculates the mathematical model parameters of the data according to a set of sample data sets containing abnormal data, and obtains valid sample data.

具体地,服务器对原始点云数据进行平面拟合之后,得到拟合平面之后,筛选出满足预设距离范围的点云数据,例如筛选出距离拟合平面2厘米至3厘米范围内的点,以形成初步点云数据。接着,服务器对初步点云数据进行体素过滤,具体为:对初步点云数据划分体素网格,并分别从每个体素网格中筛选激光坐标系下的竖直截面上的目标点之后,将每个体素网格中筛选出的目标点替代对应的体素网格中的所有点,得到参照点云数据。Specifically, after the server performs plane fitting on the original point cloud data and obtains the fitted plane, it screens out the point cloud data that meets the preset distance range, for example, screens out points within a range of 2 cm to 3 cm from the fitted plane, to form preliminary point cloud data. Next, the server performs voxel filtering on the preliminary point cloud data, specifically: dividing the preliminary point cloud data into voxel grids, and filtering the target points on the vertical section under the laser coordinate system from each voxel grid respectively. , and replace all the points in the corresponding voxel grid with the target points screened out in each voxel grid to obtain the reference point cloud data.

其中,体素网格可以是一个立方体的网格,具体可以是正方体,且体素网格的棱长可以为1厘米。体素网格在激光坐标系下的竖直截面上,还可以是一个平面网格,具体可以是正方形,且对应的边长也可以是1厘米。The voxel grid may be a cubic grid, specifically a cube, and the edge length of the voxel grid may be 1 cm. The voxel grid on the vertical section in the laser coordinate system may also be a plane grid, specifically a square, and the corresponding side length may also be 1 cm.

其中,目标点是根据预设的标准分别从每个体素网格中筛选的点。一般地,可将每个体素网格中,在激光坐标系下Y坐标(即激光坐标系下的纵坐标)最大的点作为目标点。为了便于描述,以下将激光坐标系下的纵坐标简称为Y坐标。Among them, the target points are points selected from each voxel grid according to preset criteria. Generally, in each voxel grid, the point with the largest Y coordinate in the laser coordinate system (that is, the ordinate in the laser coordinate system) can be used as the target point. For ease of description, the ordinate in the laser coordinate system is simply referred to as the Y coordinate below.

在另一些实施例中,服务器还可以先从初步点云数据中筛选位于激光坐标系下的竖直截面上的点云数据,并对位于激光坐标系下的竖直截面上的点云数据划分体素网格后,直接从每个体素网格中筛选目标点,并将每个体素网格中筛选出的目标点替代对应的体素网格中的所有点,得到参照点云数据。In other embodiments, the server may also first screen the point cloud data on the vertical section under the laser coordinate system from the preliminary point cloud data, and divide the point cloud data on the vertical section under the laser coordinate system After the voxel grid is formed, the target points are directly screened from each voxel grid, and the target points screened in each voxel grid are replaced by all points in the corresponding voxel grid to obtain the reference point cloud data.

在一些实施例中,步骤106具体包括但不限于:对目标图片进行预处理,得到预处理图片;对预处理图片进行轮廓识别,得到识别轮廓;从识别轮廓中确定托盘对象的定位轮廓边缘。In some embodiments, step 106 specifically includes but is not limited to: preprocessing the target image to obtain a preprocessed image; performing contour recognition on the preprocessed image to obtain a recognized contour; and determining the positioning contour edge of the pallet object from the recognized contour.

具体地,服务器需要对目标图片进行预处理,例如需要对目标图片进行灰度处理和腐蚀膨胀运算等,用于提高图片精度。接着,服务器从预处理图片识别出托盘对象的轮廓,并将托盘对象的轮廓和实际托盘的尺寸进行比较之后,提取出符合实际托盘大小的轮廓,作为备选轮廓,从备选轮廓中识别出托盘对象的定位轮廓边缘。Specifically, the server needs to preprocess the target image, for example, the target image needs to be subjected to grayscale processing and erosion and expansion operations, so as to improve the image accuracy. Next, the server identifies the contour of the pallet object from the preprocessed image, and compares the contour of the pallet object with the size of the actual pallet, and extracts the contour that conforms to the actual size of the pallet as an alternative contour, and identifies the contour from the alternative contour. The positioning contour edge of the pallet object.

其中,实际托盘的尺寸包括但不限于实际托盘的长和宽中的至少一种。Wherein, the size of the actual tray includes, but is not limited to, at least one of the length and width of the actual tray.

在一些实施例中,从备选轮廓中识别出托盘对象的定位轮廓边缘的具体过程为:对于每一个备选轮廓,从下往下或者从下往上寻找灰度值为预设数值的像素点,例如寻找灰度值为255的像素点,以此找出托盘对象上所有定位轮廓边缘。In some embodiments, the specific process of identifying the edge of the positioning contour of the pallet object from the candidate contours is as follows: for each candidate contour, search for pixels whose gray value is a preset value from bottom to bottom or from bottom to top For example, find the pixel point with a gray value of 255, so as to find all the positioning contour edges on the pallet object.

在一些实施例中,在步骤“将每个体素网格中筛选出的目标点替代对应的体素网格中的所有点,得到参照点云数据”之后,还可以根据参照点云数据建立体素坐标系,并根据建立好的体素坐标系设置参照点云数据对应的索引数组,为了便于描述,将参照点云数据对应的索引数组简称为体素网格索引数组。In some embodiments, after the step "replace all points in the corresponding voxel grid with the target points selected in each voxel grid to obtain reference point cloud data", a volume can also be established according to the reference point cloud data The index array corresponding to the reference point cloud data is set according to the established voxel coordinate system. For the convenience of description, the index array corresponding to the reference point cloud data is referred to as the voxel grid index array for short.

其中,每一对体素网格索引数组即每个体素网格中目标点的索引数组。也就是说,[每个体素网格的体素索引]=(体素网格中每个Y坐标最大的目标点的体素索引),若体素网格中没有点,则[该体素网格的体素索引]的数组值设置为一个固定数值,例如负1。Among them, each pair of voxel grid index arrays is an index array of target points in each voxel grid. That is, [the voxel index of each voxel grid] = (the voxel index of each target point with the largest Y coordinate in the voxel grid), if there is no point in the voxel grid, then [the voxel Grid's voxel index] array value is set to a fixed number, such as negative 1.

其中,体素坐标系的具体形式可参照图4,在图4坐标系中显示的0、1、2等都是体素索引。图4中的(x_min,y_min)表示在激光坐标系下X坐标最小且Y坐标最小的坐标点,也是体素坐标系的原点。图4中的(x_max,y_min)表示在激光坐标系下X坐标最大且Y坐标最小的坐标点,(x_min,y_max)表示在激光坐标系下X坐标最小且Y坐标最大的坐标点,(x_max,y_max)表示在激光坐标系下X坐标最大且Y坐标最大的坐标点。其中,激光坐标系下的X坐标即为激光坐标系下得到的横坐标,激光坐标系下的Y坐标即为激光坐标系下得到的纵坐标,为了便于描述,以下也将激光坐标系下的横坐标简称为X坐标,激光坐标系下的纵坐标简称为Y坐标。The specific form of the voxel coordinate system may refer to FIG. 4 , and 0, 1, 2, etc. displayed in the coordinate system of FIG. 4 are all voxel indices. (x_min, y_min) in FIG. 4 represents the coordinate point with the smallest X coordinate and the smallest Y coordinate in the laser coordinate system, and is also the origin of the voxel coordinate system. (x_max, y_min) in Figure 4 represents the coordinate point with the largest X coordinate and the smallest Y coordinate in the laser coordinate system, (x_min, y_max) represents the coordinate point with the smallest X coordinate and the largest Y coordinate in the laser coordinate system, (x_max , y_max) represents the coordinate point with the largest X coordinate and the largest Y coordinate in the laser coordinate system. Among them, the X coordinate under the laser coordinate system is the abscissa obtained under the laser coordinate system, and the Y coordinate under the laser coordinate system is the ordinate obtained under the laser coordinate system. For the convenience of description, the following also refers to the laser coordinate system. The abscissa is abbreviated as the X coordinate, and the ordinate in the laser coordinate system is abbreviated as the Y coordinate.

需要说明的是,将(x_min,y_min)作为体素坐标系的原点是为了方便计算。在实际应用中,也可以取参照点云数据中其他位置的点作为体素坐标系的原点,本申请对此不做限定。It should be noted that taking (x_min, y_min) as the origin of the voxel coordinate system is for the convenience of calculation. In practical applications, points at other positions in the reference point cloud data may also be taken as the origin of the voxel coordinate system, which is not limited in this application.

在一些实施例中,每一体素网格在体素坐标系下对应一个体素索引,体素索引用于表征对应的体素网格是否有点云数据,具体地,根据体素索引对应的值确定对应的体素网格是否有点云数据,若体素索引对应的数组值为负1,则表示对应的体素网格没有点云数据,若体素索引对应的数组值不为负1,则表示对应的体素网格有点云数据。In some embodiments, each voxel grid corresponds to a voxel index in the voxel coordinate system, and the voxel index is used to represent whether the corresponding voxel grid has point cloud data. Specifically, according to the value corresponding to the voxel index Determine whether the corresponding voxel grid has point cloud data. If the array value corresponding to the voxel index is negative 1, it means that the corresponding voxel grid has no point cloud data. If the array value corresponding to the voxel index is not negative 1, It means that the corresponding voxel grid is point cloud data.

在一些实施例中,还可以对体素坐标系下的所有体素索引所对应体素网格中的点进行投影,得到目标图片。具体地,体素网格中的点都位于激光设备所在激光坐标系的XOY平面上,因此,需要在平行于XOY平面处对体素网格中的点进行投影,得到目标图片。In some embodiments, points in the voxel grid corresponding to all voxel indices in the voxel coordinate system may also be projected to obtain the target picture. Specifically, the points in the voxel grid are all located on the XOY plane of the laser coordinate system where the laser device is located. Therefore, it is necessary to project the points in the voxel grid parallel to the XOY plane to obtain the target image.

在一些实施例中,得到目标图片之后,还能够根据体素索引所对应体素网格中的点在体素坐标系下的位置,确定基于目标图片建立的像素坐标系中,与体素索引对应的像素坐标点。In some embodiments, after the target picture is obtained, it can also be determined according to the position of the point in the voxel grid corresponding to the voxel index in the voxel coordinate system, in the pixel coordinate system established based on the target picture, and the voxel index The corresponding pixel coordinate point.

在一些实施例中,步骤“对目标图片进行预处理,得到预处理图片”,具体包括但不限于:针对目标图片的像素坐标系下的每一像素坐标点,确定与像素坐标点对应的体素索引;根据与像素坐标点对应的在体素坐标系下的体素索引,对目标图片进行灰度处理,得到灰度图像;对灰度图像进行膨胀腐蚀运算,得到预处理图片。In some embodiments, the step of "preprocessing the target picture to obtain a preprocessed picture" specifically includes but is not limited to: for each pixel coordinate point in the pixel coordinate system of the target image, determining the volume corresponding to the pixel coordinate point Pixel index; according to the voxel index in the voxel coordinate system corresponding to the pixel coordinate point, grayscale processing is performed on the target image to obtain a grayscale image;

其中,像素坐标系指的是基于目标图片建立的像素坐标系,该像素坐标系的原点需要与体素坐标系的原点保持一致。与像素坐标点对应的体素索引,是像素坐标点所对应的体素网格在体素坐标系下的体素索引。The pixel coordinate system refers to a pixel coordinate system established based on the target image, and the origin of the pixel coordinate system needs to be consistent with the origin of the voxel coordinate system. The voxel index corresponding to the pixel coordinate point is the voxel index of the voxel grid corresponding to the pixel coordinate point in the voxel coordinate system.

在一些实施例中,像素坐标系的具体形式可参照图5,以体素坐标系原点(x_min,y_min)为目标图片所在像素坐标系的原点,(x_min,y_min)表示在像素坐标系下X坐标最小且Y坐标最小的像素点。图5中的(x_max,y_min)表示在像素坐标系下X坐标最大且Y坐标最小的像素点,(x_min,y_max)表示在像素坐标系下X坐标最小且Y坐标最大的像素点,(x_max,y_max)表示在像素坐标系下X坐标最大且Y坐标最大的像素点。In some embodiments, the specific form of the pixel coordinate system can refer to FIG. 5 , the origin of the voxel coordinate system (x_min, y_min) is the origin of the pixel coordinate system where the target picture is located, and (x_min, y_min) represents the X in the pixel coordinate system The pixel with the smallest coordinate and the smallest Y coordinate. (x_max, y_min) in Figure 5 represents the pixel with the largest X coordinate and the smallest Y coordinate in the pixel coordinate system, (x_min, y_max) represents the pixel with the smallest X coordinate and the largest Y coordinate in the pixel coordinate system, (x_max , y_max) represents the pixel with the largest X coordinate and the largest Y coordinate in the pixel coordinate system.

具体地,服务器针对目标图片的像素坐标系下的每一像素坐标点,确定与像素坐标点一一对应的在体素坐标系下的体素索引。服务器根据体素索引从体素网格索引数组中获取对应的数组值,根据不同的数组值的体素索引所对应的像素坐标点设置为不同的灰度值,以此得到灰度图像。接着,服务器对灰度图像进行膨胀腐蚀运算,具体可以对灰度图像进行闭运算,以此填平灰度图像中的小孔,并对灰度图像中的裂缝进行拟合,保证灰度图像中总的位置和形状不变。对灰度图像进行闭运算,可以防止由于待取托盘上贴有遮挡物、或其他因素导致针对待取托盘扫描得到的点云数据所产生的空洞。Specifically, the server determines, for each pixel coordinate point in the pixel coordinate system of the target image, a voxel index in the voxel coordinate system that corresponds to the pixel coordinate point one-to-one. The server obtains the corresponding array value from the voxel grid index array according to the voxel index, and sets the pixel coordinate points corresponding to the voxel index of different array values to different grayscale values, thereby obtaining a grayscale image. Next, the server performs an expansion and erosion operation on the grayscale image, specifically, a closing operation on the grayscale image, so as to fill in the holes in the grayscale image, and fit the cracks in the grayscale image to ensure the grayscale image. The position and shape of the center remains unchanged. Closing the grayscale image can prevent voids in the point cloud data scanned for the pallet to be taken due to obstructions attached to the pallet to be taken or other factors.

在实际应用中,步骤“根据不同的数组值的体素索引所对应的像素坐标点设置为不同的灰度值,以此得到灰度图像”具体包括但不限于:若体素索引对应的数组值大于固定数值(该固定数值可设置为负1),则将数组值大于固定数值的体素索引所对应的像素坐标点的灰度值设置为预设数值,例如设置为255。若体素索引对应的数组值等于或小于固定数值,则将数组值等于或小于负1的体素索引所对应的像素坐标点的灰度值设置为另一个预设数值,例如设置为0。In practical applications, the step "setting pixel coordinate points corresponding to voxel indices of different array values to different grayscale values to obtain a grayscale image" specifically includes but is not limited to: if the array corresponding to the voxel index If the value is greater than a fixed value (the fixed value can be set to minus 1), the gray value of the pixel coordinate point corresponding to the voxel index whose array value is greater than the fixed value is set to a preset value, for example, 255. If the array value corresponding to the voxel index is equal to or less than the fixed value, the gray value of the pixel coordinate point corresponding to the voxel index whose array value is equal to or less than minus 1 is set to another preset value, for example, set to 0.

在一些实施例中,步骤“从参照点云数据中,确定与定位轮廓边缘相匹配的目标点云数据”具体包括但不限于:确定定位轮廓边缘的像素坐标点所对应的目标体素索引;从参照点云数据中,确定位于目标体素索引所指向的目标体素网格中的点,得到目标点云数据。In some embodiments, the step "from the reference point cloud data, determine the target point cloud data that matches the edge of the positioning contour" specifically includes but is not limited to: determining the target voxel index corresponding to the pixel coordinate point of the edge of the positioning contour; From the reference point cloud data, determine the point located in the target voxel grid pointed to by the target voxel index, and obtain the target point cloud data.

具体地,服务器在目标图片中确定定位轮廓边缘在像素坐标系下的像素坐标点,并从体素索引中确定与定位轮廓边缘的像素坐标点对应的体素索引,作为目标体素索引。随后,服务器从参照点云数据中,确定位于目标体素索引所指向的体素网格,即目标体素网格,从目标体素网格中提取对应的目标点,得到目标点云数据。Specifically, the server determines the pixel coordinate point of the edge of the positioning contour in the pixel coordinate system in the target picture, and determines the voxel index corresponding to the pixel coordinate point of the edge of the positioning contour from the voxel index as the target voxel index. Then, the server determines the voxel grid pointed to by the target voxel index from the reference point cloud data, that is, the target voxel grid, and extracts the corresponding target point from the target voxel grid to obtain the target point cloud data.

在一些实施例中,步骤110具体包括但不限于:对目标点云数据进行直线拟合,得到拟合线段;基于拟合线段的线段中点值,确定目标取货高度。In some embodiments, step 110 specifically includes but is not limited to: performing straight line fitting on the target point cloud data to obtain a fitted line segment; and determining the target pickup height based on the midpoint value of the line segment of the fitted line segment.

具体地,服务器对目标点云数据进行直线拟合,例如对目标点云数据进行最小二乘直线拟合,得到拟合直线。服务器获取目标点云数据在拟合直线上所形成的拟合线段,并根据该拟合线段的中点所对应的线段中点值,确定搬运设备的目标取货高度。其中,线段中点值指的是拟合线段的中点在激光坐标系下的Y值。Specifically, the server performs straight line fitting on the target point cloud data, for example, performs least squares straight line fitting on the target point cloud data to obtain the fitted straight line. The server obtains the fitted line segment formed by the target point cloud data on the fitted straight line, and determines the target pickup height of the handling equipment according to the midpoint value of the line segment corresponding to the midpoint of the fitted line segment. The midpoint value of the line segment refers to the Y value of the midpoint of the fitted line segment in the laser coordinate system.

需要说明的是,对于任意一条直线,都可以表达成直线方程,即y=bx+a的形式,其中b为斜率,a为截距。对于目标点云数据中的N个点,可以使用无数条直线来拟合,用最小二乘法拟合目标函数,以求取目标函数的最优解,即直线方程中的最佳斜率和最佳截距,根据直线方程中的最佳斜率和最佳截距,就能确定拟合直线。It should be noted that, for any straight line, it can be expressed as a straight line equation, that is, in the form of y=bx+a, where b is the slope and a is the intercept. For N points in the target point cloud data, countless straight lines can be used to fit, and the least squares method is used to fit the objective function to obtain the optimal solution of the objective function, that is, the best slope and the best slope in the straight line equation. Intercept, according to the best slope and best intercept in the equation of the straight line, the fitting straight line can be determined.

在一些实施例中,利用最小二乘直线拟合求取直线方程中的最佳斜率和最佳截距的步骤如下,且涉及的公式包括公式(1)至公式(7)。In some embodiments, the steps of using least squares straight line fitting to obtain the optimal slope and optimal intercept in the straight line equation are as follows, and the involved formulas include formulas (1) to (7).

第一步:基于直线方程建立目标函数。The first step: establish the objective function based on the straight line equation.

Figure BDA0003703769700000131
Figure BDA0003703769700000131

第二步:对公式(1)的目标函数进行求导,得到直线方程表达式。The second step: derivation of the objective function of formula (1) to obtain the expression of the straight line equation.

Figure BDA0003703769700000132
Figure BDA0003703769700000132

Figure BDA0003703769700000133
Figure BDA0003703769700000133

第三步:对公式(2)和公式(3)得到的直线方程表达式进行整理后,得到整理后的直线方程表达式。The third step: after sorting out the straight line equation expressions obtained by the formula (2) and the formula (3), the sorted straight line equation expressions are obtained.

aN+b∑xi=∑yi (4)aN+b∑x i =∑y i (4)

a∑xi+b∑xi 2=∑xiyi (5)a∑x i +b∑x i 2 =∑x i y i (5)

第四步:求解整理后的直线方程表达式,得到直线参数a和b的最佳估计值,以此得到拟合直线。Step 4: Solve the straight line equation expression after sorting, and obtain the best estimated values of the straight line parameters a and b, so as to obtain the fitted straight line.

Figure BDA0003703769700000134
Figure BDA0003703769700000134

Figure BDA0003703769700000135
Figure BDA0003703769700000135

其中,xi和yi就是目标点云数据在激光坐标系下的每个点的X坐标值(即激光坐标系下每个点的横坐标值)和Y坐标值(即激光坐标系下每个点的纵坐标值),a和b分别表示直线方程中的斜率和截距,

Figure BDA0003703769700000136
Figure BDA0003703769700000137
表示直线方程中最佳的斜率和最佳的截距,N表示目标点云数据中点的数量。Among them, x i and y i are the X coordinate value of each point of the target point cloud data in the laser coordinate system (that is, the abscissa value of each point in the laser coordinate system) and the Y coordinate value (that is, each point in the laser coordinate system). The ordinate value of each point), a and b represent the slope and intercept in the equation of the line, respectively,
Figure BDA0003703769700000136
and
Figure BDA0003703769700000137
Represents the best slope and best intercept in the line equation, and N represents the number of points in the target point cloud data.

在另一些实施例中,为了防止搬运设备在取货过程中发生碰撞,本申请的目标取货高度还可以根据Y值(即拟合线段的线段中点值)和设置在托盘底部的托盘脚墩的高度确定。具体地,目标取货高度=Y值+托盘脚墩高度的一半。其中,托盘脚墩设置在托盘的底部,托盘脚墩又称为托盘垫脚、托盘垫块和托盘方墩等,用于保护货物在运输过程中不被搬运设备挤压碰撞。In other embodiments, in order to prevent the handling equipment from colliding during the pickup process, the target pickup height of the present application may also be based on the Y value (ie, the midpoint value of the fitted line segment) and the pallet foot set at the bottom of the pallet. The height of the pier is determined. Specifically, the target pickup height = Y value + half of the height of the pallet foot pier. Among them, the pallet foot pier is set at the bottom of the pallet, and the pallet foot pier is also called pallet foot, pallet block and pallet square pier, etc., which are used to protect the goods from being squeezed and collided by the handling equipment during transportation.

在一些实施例中,本申请的取货高度的检测方法具体还包括但不限于包括以下步骤:In some embodiments, the detection method of the pickup height of the present application further includes, but is not limited to, the following steps:

首先,在搬运设备上固定激光设备,且控制搬运设备行驶到待取货位之后,通过激光设备获取目标区域的原始点云数据。First, fix the laser equipment on the handling equipment, and control the handling equipment to drive to the position to be picked up, then obtain the original point cloud data of the target area through the laser equipment.

其次,服务器获取激光设备采集的原始点云数据,从原始点云数据中初步筛选符合预设条件的初步点云数据,并对初步点云数据划分体素网格,且分别从每个体素网格中筛选激光坐标系下的竖直截面上的目标点,得到参照点云数据。Secondly, the server obtains the original point cloud data collected by the laser device, preliminarily screens the preliminary point cloud data that meets the preset conditions from the original point cloud data, divides the preliminary point cloud data into voxel grids, and selects the preliminary point cloud data from each voxel network. The target points on the vertical section under the laser coordinate system are screened in the grid to obtain the reference point cloud data.

接着,服务器针对参照点云数据建立体素坐标系,并确定体素坐标系对应的体素索引。服务器对参照点云数据进行投影处理,得到目标图片,并对目标图片进行预处理,得到预处理图片。Next, the server establishes a voxel coordinate system for the reference point cloud data, and determines a voxel index corresponding to the voxel coordinate system. The server performs projection processing on the reference point cloud data to obtain the target image, and preprocesses the target image to obtain the preprocessed image.

在一些实施例中,对目标图片进行预处理的过程为:针对目标图片建立像素坐标系,针对目标图片的像素坐标系下的每一像素坐标点,确定与像素坐标点对应的体素索引,根据与像素坐标点对应的体素索引,对目标图片进行灰度处理,得到灰度图像;对灰度图像进行膨胀腐蚀运算,得到预处理图片。其中,每一体素网格在体素坐标系下对应一个体素索引,体素索引用于表征对应的体素网格是否有点云数据,与像素坐标点对应的体素索引,是像素坐标点所对应的体素网格在体素坐标系下的体素索引。In some embodiments, the process of preprocessing the target image is: establishing a pixel coordinate system for the target image, determining a voxel index corresponding to the pixel coordinate point for each pixel coordinate point in the pixel coordinate system of the target image, According to the voxel index corresponding to the pixel coordinate point, grayscale processing is performed on the target image to obtain a grayscale image; the grayscale image is subjected to dilation and erosion operation to obtain a preprocessed image. Among them, each voxel grid corresponds to a voxel index in the voxel coordinate system, and the voxel index is used to indicate whether the corresponding voxel grid is point cloud data, and the voxel index corresponding to the pixel coordinate point is the pixel coordinate point. The voxel index of the corresponding voxel grid in the voxel coordinate system.

随后,服务器对预处理图片进行轮廓识别,得到识别轮廓;从识别轮廓中确定托盘对象的定位轮廓边缘。具体地,服务器先识别出预处理图片中全部的轮廓,得到识别轮廓,再从识别轮廓中确定托盘对象的定位轮廓边缘。Then, the server performs contour recognition on the preprocessed image to obtain the recognized contour; the positioning contour edge of the pallet object is determined from the recognized contour. Specifically, the server first identifies all the contours in the preprocessed picture to obtain the identified contour, and then determines the positioning contour edge of the pallet object from the identified contour.

接着,服务器确定定位轮廓边缘的像素坐标点所对应的目标体素索引,并从参照点云数据中,确定位于目标体素索引所指向的目标体素网格中的点,得到目标点云数据。Next, the server determines the target voxel index corresponding to the pixel coordinate point of the edge of the positioning contour, and from the reference point cloud data, determines the point located in the target voxel grid pointed to by the target voxel index, and obtains the target point cloud data .

最后,服务器对目标点云数据进行直线拟合,得到拟合线段,基于拟合线段的线段中点值,确定目标取货高度。Finally, the server performs straight line fitting on the target point cloud data to obtain a fitted line segment, and determines the target pickup height based on the midpoint value of the fitted line segment.

应该理解的是,虽然如上所述的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上所述的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the steps in the flowcharts involved in the above embodiments are sequentially displayed according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but may be performed at different times The execution order of these steps or phases is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or phases in the other steps.

基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的取货高度的检测方法的取货高度的检测装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个取货高度的检测装置实施例中的具体限定可以参见上文中对于取货高度的检测方法的限定,在此不再赘述。Based on the same inventive concept, an embodiment of the present application also provides a pickup height detection device for implementing the above-mentioned pickup height detection method. The solution to the problem provided by the device is similar to the solution described in the above method, so the specific limitations in the embodiments of the one or more pickup height detection devices provided below can refer to the above for the pickup height The limitation of the detection method is not repeated here.

在一些实施例中,如图6所示,提供了一种取货高度的检测装置,包括:数据获取模块602、图片转换模块604、边缘确定模块606、数据匹配模块608和高度确定模块610,其中:In some embodiments, as shown in FIG. 6 , a detection device for picking height is provided, including: a data acquisition module 602, a picture conversion module 604, an edge determination module 606, a data matching module 608, and a height determination module 610, in:

数据获取模块602,用于获取目标取货区域的原始点云数据;目标取货区域中包括用于存取货物的托盘;The data acquisition module 602 is used for acquiring the original point cloud data of the target pickup area; the target pickup area includes pallets for accessing goods;

图片转换模块604,用于基于原始点云数据进行图片转换,得到目标图片;目标图片中包括用于表征托盘的托盘对象;The picture conversion module 604 is configured to perform picture conversion based on the original point cloud data to obtain a target picture; the target picture includes a tray object used to represent the tray;

边缘确定模块606,用于从目标图片中确定托盘对象的定位轮廓边缘;定位轮廓边缘是托盘对象的轮廓中用于定位取货高度的边缘;The edge determination module 606 is used to determine the positioning contour edge of the pallet object from the target image; the positioning contour edge is the edge used for positioning the pickup height in the contour of the pallet object;

数据匹配模块608,用于确定原始点云数据中与定位轮廓边缘相匹配的目标点云数据;A data matching module 608, configured to determine the target point cloud data that matches the edge of the positioning contour in the original point cloud data;

高度确定模块610,用于基于目标点云数据确定目标取货高度。The height determination module 610 is configured to determine the target pickup height based on the target point cloud data.

本申请通过上述取货高度的检测装置,通过获取目标取货区域的原始点云数据;目标取货区域中包括用于存取货物的托盘;基于原始点云数据进行图片转换,得到目标图片;目标图片中包括用于表征托盘的托盘对象;从目标图片中确定托盘对象的定位轮廓边缘;定位轮廓边缘是托盘对象的轮廓中用于定位取货高度的边缘;确定原始点云数据中与定位轮廓边缘相匹配的目标点云数据;基于目标点云数据确定目标取货高度。通过获取目标取货区域的原始点云数据,对原始点云数据进行图片转换得到目标图片,且只针对目标图片中的定位轮廓边缘,确定原始点云数据中与定位轮廓边缘相匹配的目标点云数据,并基于目标点云数据确定目标取货高度,能够在原始点云数据不够完整的情况下,仍然可以正常计算目标取货高度,从而提高目标取货高度的准确性。The present application obtains the original point cloud data of the target pickup area through the above-mentioned detection device for the pickup height; the target pickup area includes a pallet for accessing the goods; image conversion is performed based on the original point cloud data to obtain the target picture; The target image includes the pallet object used to characterize the pallet; the positioning contour edge of the pallet object is determined from the target image; the positioning contour edge is the edge in the contour of the pallet object used to locate the pickup height; determine the difference between the original point cloud data and the positioning The target point cloud data that matches the contour edge; the target pickup height is determined based on the target point cloud data. By obtaining the original point cloud data of the target pickup area, converting the original point cloud data to a picture to obtain the target picture, and only for the positioning contour edge in the target picture, determine the target point in the original point cloud data that matches the positioning contour edge Cloud data, and the target pickup height is determined based on the target point cloud data, so that the target pickup height can still be calculated normally when the original point cloud data is not complete, thereby improving the accuracy of the target pickup height.

在一些实施例中,图片转换模块604包括筛选单元和投影单元。筛选单元用于从原始点云数据中筛选位于激光坐标系下的竖直截面上的点云数据,得到参照点云数据。投影单元用于对参照点云数据进行投影处理,得到目标图片。数据匹配模块608还用于从参照点云数据中,确定与定位轮廓边缘相匹配的目标点云数据。In some embodiments, the picture conversion module 604 includes a screening unit and a projection unit. The screening unit is used for screening the point cloud data on the vertical section under the laser coordinate system from the original point cloud data to obtain the reference point cloud data. The projection unit is used for projecting the reference point cloud data to obtain the target picture. The data matching module 608 is further configured to determine, from the reference point cloud data, the target point cloud data that matches the edge of the positioning contour.

在一些实施例中,筛选单元还用于从原始点云数据中初步筛选符合预设条件的初步点云数据;对初步点云数据划分体素网格;分别从每个体素网格中筛选激光坐标系下的竖直截面上的目标点,得到参照点云数据。In some embodiments, the screening unit is further configured to preliminarily screen preliminary point cloud data that meets preset conditions from the original point cloud data; divide the preliminary point cloud data into a voxel grid; and screen the laser light from each voxel grid respectively The target point on the vertical section in the coordinate system is obtained to obtain the reference point cloud data.

在一些实施例中,边缘确定模块606还用于对目标图片进行预处理,得到预处理图片;对预处理图片进行轮廓识别,得到识别轮廓;从识别轮廓中确定托盘对象的定位轮廓边缘。In some embodiments, the edge determination module 606 is further configured to preprocess the target image to obtain a preprocessed image; perform contour recognition on the preprocessed image to obtain a recognized contour; and determine the positioning contour edge of the pallet object from the recognized contour.

在一些实施例中,每一体素网格在体素坐标系下对应一个体素索引,体素索引用于表征对应的体素网格是否有点云数据,边缘确定模块606还用于针对目标图片的像素坐标系下的每一像素坐标点,确定与像素坐标点对应的体素索引;与像素坐标点对应的体素索引,是像素坐标点所对应的体素网格在体素坐标系下的体素索引;根据与像素坐标点对应的体素索引,对目标图片进行灰度处理,得到灰度图像;对灰度图像进行膨胀腐蚀运算,得到预处理图片。In some embodiments, each voxel grid corresponds to a voxel index in the voxel coordinate system, and the voxel index is used to represent whether the corresponding voxel grid has point cloud data, and the edge determination module 606 is further configured to target the target image For each pixel coordinate point in the pixel coordinate system of , determine the voxel index corresponding to the pixel coordinate point; the voxel index corresponding to the pixel coordinate point is the voxel grid corresponding to the pixel coordinate point in the voxel coordinate system. According to the voxel index corresponding to the pixel coordinate point, gray-scale processing is performed on the target image to obtain a gray-scale image; the gray-scale image is subjected to dilation and erosion operation to obtain a pre-processed image.

在一些实施例中,数据匹配模块608还用于确定定位轮廓边缘的像素坐标点所对应的目标体素索引;从参照点云数据中,确定位于目标体素索引所指向的目标体素网格中的点,得到目标点云数据。In some embodiments, the data matching module 608 is further configured to determine the target voxel index corresponding to the pixel coordinate point of the edge of the positioning contour; from the reference point cloud data, determine the target voxel grid pointed to by the target voxel index to get the target point cloud data.

在一些实施例中,高度确定模块610还用于对目标点云数据进行直线拟合,得到拟合线段;基于拟合线段的线段中点值,确定目标取货高度。In some embodiments, the height determination module 610 is further configured to perform straight line fitting on the target point cloud data to obtain a fitted line segment; and determine the target pickup height based on the midpoint value of the line segment of the fitted line segment.

上述取货高度的检测装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above-mentioned detection device for picking height can be implemented in whole or in part by software, hardware and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

在一些实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图7所示。该计算机设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质和内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储点云数据和图片。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种取货高度的检测方法。In some embodiments, a computer device is provided, and the computer device may be a server, and its internal structure diagram may be as shown in FIG. 7 . The computer device includes a processor, memory, and a network interface connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes non-volatile storage media and internal memory. The nonvolatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The computer equipment's database is used to store point cloud data and pictures. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for detecting a pickup height is realized.

本领域技术人员可以理解,图7中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 7 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.

在一些实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现上述各方法实施例中的步骤。In some embodiments, a computer device is provided, including a memory and a processor, where a computer program is stored in the memory, and the processor implements the steps in the foregoing method embodiments when the processor executes the computer program.

在一些实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述各方法实施例中的步骤。In some embodiments, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, implements the steps in the foregoing method embodiments.

在一些实施例中,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述各方法实施例中的步骤。In some embodiments, a computer program product is provided, including a computer program, which implements the steps in each of the foregoing method embodiments when the computer program is executed by a processor.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-OnlyMemory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic RandomAccess Memory,DRAM)等。本申请所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本申请所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage In the medium, when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to a memory, a database or other media used in the various embodiments provided in this application may include at least one of a non-volatile memory and a volatile memory. Non-volatile memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetic variable memory (Magnetoresistive Random Memory) Access Memory, MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (Phase Change Memory, PCM), graphene memory, etc. Volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration and not limitation, the RAM may be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM). The database involved in the various embodiments provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a blockchain-based distributed database, etc., but is not limited thereto. The processors involved in the various embodiments provided in this application may be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, data processing logic devices based on quantum computing, etc., and are not limited to this.

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features It is considered to be the range described in this specification.

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but should not be construed as a limitation on the scope of the patent of the present application. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the present application should be determined by the appended claims.

Claims (10)

1. A method for detecting pickup height, the method comprising:
acquiring original point cloud data of a target goods taking area; the target goods taking area comprises a tray for storing and taking goods;
performing picture conversion based on the original point cloud data to obtain a target picture; the target picture comprises a tray object used for representing the tray;
determining a positioning contour edge of the tray object from the target picture; the locating profile edge is an edge in the profile of the pallet object for locating a pickup height;
determining target point cloud data matched with the positioning contour edge in the original point cloud data;
and determining a target goods taking height based on the target point cloud data.
2. The method of claim 1, wherein the performing a picture conversion based on the original point cloud data to obtain a target picture comprises:
screening point cloud data on a vertical section under a laser coordinate system from the original point cloud data to obtain reference point cloud data;
performing projection processing on the reference point cloud data to obtain the target picture;
the determining the target point cloud data matched with the positioning contour edge in the original point cloud data comprises:
and determining target point cloud data matched with the positioning contour edge from the reference point cloud data.
3. The method of claim 2, wherein the step of filtering the point cloud data on a vertical section under a laser coordinate system from the original point cloud data to obtain reference point cloud data comprises:
preliminarily screening preliminary point cloud data which accord with preset conditions from the original point cloud data;
dividing a voxel grid for the preliminary point cloud data;
and respectively screening target points on the vertical section under the laser coordinate system from each voxel grid to obtain the reference point cloud data.
4. The method of claim 3, wherein said determining a locating profile edge of said tray object from said target picture comprises:
preprocessing the target picture to obtain a preprocessed picture;
carrying out contour recognition on the preprocessed picture to obtain a recognition contour;
determining the locating profile edge of the tray object from the identified profile.
5. The method according to claim 4, wherein each voxel grid corresponds to a voxel index in a voxel coordinate system, and the voxel index is used for characterizing whether the corresponding voxel grid has some cloud data;
the preprocessing the target picture to obtain a preprocessed picture comprises the following steps:
determining a voxel index corresponding to each pixel coordinate point in a pixel coordinate system of the target picture; the voxel index corresponding to the pixel coordinate point is the voxel index of the voxel grid corresponding to the pixel coordinate point in the voxel coordinate system;
performing gray processing on the target picture according to the voxel index corresponding to the pixel coordinate point to obtain a gray image;
and performing expansion corrosion operation on the gray level image to obtain the preprocessed picture.
6. The method of claim 3, wherein determining target point cloud data from the reference point cloud data that matches the locating profile edges comprises:
determining a target voxel index corresponding to a pixel coordinate point of the edge of the positioning contour;
and determining points in a target voxel grid pointed by the target voxel index from the reference point cloud data to obtain the target point cloud data.
7. The method of any one of claims 1 to 6, wherein determining a target pickup height based on the target point cloud data comprises:
performing linear fitting on the target point cloud data to obtain a fitting line segment;
and determining the target goods taking height based on the line segment midpoint value of the fitted line segment.
8. A device for detecting the height of a pick, the device comprising:
the data acquisition module is used for acquiring original point cloud data of a target goods taking area; the target goods taking area comprises a tray for storing and taking goods;
the picture conversion module is used for carrying out picture conversion based on the original point cloud data to obtain a target picture; the target picture comprises a tray object used for representing the tray;
an edge determination module for determining a positioning contour edge of the tray object from the target picture; the locating profile edge is an edge in the profile of the pallet object for locating a pickup height;
the data matching module is used for determining target point cloud data matched with the positioning contour edge in the original point cloud data;
and the height determining module is used for determining the target goods picking height based on the target point cloud data.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202210699026.4A 2022-06-20 2022-06-20 Method, device, computer equipment and storage medium for detecting goods taking height Active CN115100271B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210699026.4A CN115100271B (en) 2022-06-20 2022-06-20 Method, device, computer equipment and storage medium for detecting goods taking height

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210699026.4A CN115100271B (en) 2022-06-20 2022-06-20 Method, device, computer equipment and storage medium for detecting goods taking height

Publications (2)

Publication Number Publication Date
CN115100271A true CN115100271A (en) 2022-09-23
CN115100271B CN115100271B (en) 2025-09-09

Family

ID=83290629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210699026.4A Active CN115100271B (en) 2022-06-20 2022-06-20 Method, device, computer equipment and storage medium for detecting goods taking height

Country Status (1)

Country Link
CN (1) CN115100271B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115546300A (en) * 2022-10-11 2022-12-30 未来机器人(深圳)有限公司 Method and device for identifying pose of tray placed tightly, computer equipment and medium
CN115818515A (en) * 2022-12-30 2023-03-21 未来机器人(深圳)有限公司 Cargo handling method and system, equipment, storage medium
CN115839675A (en) * 2023-02-20 2023-03-24 宜科(天津)电子有限公司 Object contour line recognition system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107507167A (en) * 2017-07-25 2017-12-22 上海交通大学 A kind of cargo pallet detection method and system matched based on a cloud face profile
CN109903327A (en) * 2019-03-04 2019-06-18 西安电子科技大学 A target size measurement method for sparse point cloud
CN112070838A (en) * 2020-09-07 2020-12-11 洛伦兹(北京)科技有限公司 Object identification and positioning method and device based on two-dimensional-three-dimensional fusion characteristics
CN112686924A (en) * 2019-10-17 2021-04-20 北京极智嘉科技有限公司 Intelligent forklift and method for positioning pallet
CN113137919A (en) * 2021-04-29 2021-07-20 中国工程物理研究院应用电子学研究所 Laser point cloud rasterization method
CN113267180A (en) * 2021-06-10 2021-08-17 上海大学 AGV forklift tray positioning and forking method based on 3D depth vision
CN113989366A (en) * 2021-12-27 2022-01-28 机科发展科技股份有限公司 Tray positioning method and device
US20220044430A1 (en) * 2020-08-05 2022-02-10 Lineage Logistics, LLC Point cloud annotation for a warehouse environment
CN114265374A (en) * 2021-11-25 2022-04-01 云南昆船智能装备有限公司 System and method for AGV to access van truck goods

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107507167A (en) * 2017-07-25 2017-12-22 上海交通大学 A kind of cargo pallet detection method and system matched based on a cloud face profile
CN109903327A (en) * 2019-03-04 2019-06-18 西安电子科技大学 A target size measurement method for sparse point cloud
CN112686924A (en) * 2019-10-17 2021-04-20 北京极智嘉科技有限公司 Intelligent forklift and method for positioning pallet
US20220044430A1 (en) * 2020-08-05 2022-02-10 Lineage Logistics, LLC Point cloud annotation for a warehouse environment
CN112070838A (en) * 2020-09-07 2020-12-11 洛伦兹(北京)科技有限公司 Object identification and positioning method and device based on two-dimensional-three-dimensional fusion characteristics
CN113137919A (en) * 2021-04-29 2021-07-20 中国工程物理研究院应用电子学研究所 Laser point cloud rasterization method
CN113267180A (en) * 2021-06-10 2021-08-17 上海大学 AGV forklift tray positioning and forking method based on 3D depth vision
CN114265374A (en) * 2021-11-25 2022-04-01 云南昆船智能装备有限公司 System and method for AGV to access van truck goods
CN113989366A (en) * 2021-12-27 2022-01-28 机科发展科技股份有限公司 Tray positioning method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
薛连杰;齐臣坤;张彪;张霄远;吴长征;: "基于3维点云欧氏聚类和RANSAC边界拟合的目标物体尺寸和方位识别", 机械设计与研究, no. 05, 20 October 2018 (2018-10-20) *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115546300A (en) * 2022-10-11 2022-12-30 未来机器人(深圳)有限公司 Method and device for identifying pose of tray placed tightly, computer equipment and medium
CN115818515A (en) * 2022-12-30 2023-03-21 未来机器人(深圳)有限公司 Cargo handling method and system, equipment, storage medium
CN115839675A (en) * 2023-02-20 2023-03-24 宜科(天津)电子有限公司 Object contour line recognition system
CN115839675B (en) * 2023-02-20 2023-05-12 宜科(天津)电子有限公司 Object contour line identification system

Also Published As

Publication number Publication date
CN115100271B (en) 2025-09-09

Similar Documents

Publication Publication Date Title
CN112233181B (en) 6D pose recognition method and device and computer storage medium
CN115100271A (en) Detection method, device, computer equipment and storage medium for picking height
CN114418952B (en) Cargo counting method, device, computer equipment, and storage medium
CN113159103B (en) Image matching method, device, electronic equipment and storage medium
CN116309882B (en) A pallet detection and positioning method and system for unmanned forklift applications
CN116494253B (en) Target object grabbing pose acquisition method and robot grabbing system
CN116429098A (en) Visual navigation positioning method and system for low-speed unmanned aerial vehicle
KR20230094948A (en) Method for forklift pickup, computer device, and non-volatile storage medium
CN119445005B (en) A point cloud image fusion method based on vision
CN116523898A (en) Tobacco phenotype character extraction method based on three-dimensional point cloud
CN118518093B (en) Laser SLAM method, device and medium based on multi-frame space occupancy
CN119600320A (en) Weld path planning method, device, computer equipment and readable storage medium
CN115546300A (en) Method and device for identifying pose of tray placed tightly, computer equipment and medium
CN118967702A (en) Position estimation method, medium and device combining two-dimensional image and three-dimensional point cloud
CN114653629A (en) Sorting method based on visual identification, intelligent sorting system and readable storage medium
CN110969650A (en) Intensity image and texture sequence registration method based on central projection
CN115760911B (en) Teaching path processing method, teaching path processing device, computer equipment and storage medium
CN114359314A (en) Real-time visual key detection and positioning method for humanoid piano playing robot
CN114882112B (en) Pallet stacking method, device, computer equipment and computer readable storage medium
CN118351059A (en) Circuit board detection method, device, computer equipment and storage medium
CN116007659A (en) Calibration method of laser sensor, robot and storage medium
US20240233336A1 (en) Machine learning device
CN114202580B (en) Two-vehicle ranging method, ranging device, system and computer readable storage medium
CN119919463B (en) Infrared and visible light image registration method integrating depth estimation
CN118982480B (en) Method, device and apparatus for removing dynamic point clouds from noise maps

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant