Method and device for measuring object parameters

文档序号:1220304 发布日期:2020-09-04 浏览:11次 中文

阅读说明:本技术 测量物体参数的方法及装置 (Method and device for measuring object parameters ) 是由 张旭 柯政遠 王强 那柏林 于 2018-07-12 设计创作,主要内容包括:一种测量物体参数的方法及装置,其中方法包括:S101识别图像中待测量物体的类别;S102确定在图像中待测量物体的面积;S103确定图像中待测量物体的深度,所述待测量物体的深度为用于拍摄图像的设备在拍摄图像时,设备到待测量物体的距离;S104根据待测量物体的类别、待测量物体的面积和待测量物体的深度确定待测量物体的参数。该测量物体参数的方法及装置能够将拍摄距离对待测量物体参数的影响纳入测量范围,根据待测量物体的类别、待测量物体在图像中的面积和待测量物体的深度共同确定待测量物体的参数,提高了测量物体参数时的准确度。(A method and apparatus for measuring parameters of an object, wherein the method comprises: s101, identifying the category of an object to be measured in the image; s102, determining the area of an object to be measured in the image; s103, determining the depth of an object to be measured in the image, wherein the depth of the object to be measured is the distance from equipment to the object to be measured when the equipment for shooting the image shoots the image; s104, determining parameters of the object to be measured according to the category of the object to be measured, the area of the object to be measured and the depth of the object to be measured. The method and the device for measuring the object parameters can bring the influence of the shooting distance on the parameters of the object to be measured into a measuring range, and the parameters of the object to be measured are determined together according to the type of the object to be measured, the area of the object to be measured in the image and the depth of the object to be measured, so that the accuracy in measuring the object parameters is improved.)

A method of measuring a parameter of an object, comprising:

identifying the category of an object to be measured in the image;

determining an area of the object to be measured in the image;

determining the depth of the object to be measured in the image, wherein the depth of the object to be measured is the distance from equipment used for shooting the image to the object to be measured when the equipment shoots the image;

and determining parameters of the object to be measured according to the category of the object to be measured, the area of the object to be measured and the depth of the object to be measured.

The method according to claim 1, wherein the determining the parameter of the object to be measured according to the category of the object to be measured, the area of the object to be measured, and the depth of the object to be measured comprises:

and determining parameters of the object to be measured corresponding to the category of the object to be measured, the area of the object to be measured and the depth of the object to be measured by searching a mapping relation, wherein the mapping relation comprises the corresponding relation among the category, the area, the depth and the parameters of at least one object.

The method of claim 2, further comprising:

determining a correspondence between the category, area, depth and parameters of at least one object;

and determining the mapping relation according to the corresponding relation among the category, the area, the depth and the parameters of the at least one object.

The method of claim 3, wherein the correspondence between the category, area, depth, and parameter of the at least one object comprises:

the at least one object has the same category and the same parameter, and the area and the depth of the at least one object are in a proportional relation.

The method according to any one of claims 1-4, wherein said obtaining the depth of the object to be measured in the image comprises:

determining a distance measuring mode corresponding to the environment information according to the environment information when the equipment shoots the object to be measured;

and determining the depth of the object to be measured by the distance measuring mode.

The method of claim 5, wherein the ranging method comprises:

determining the depth of the object to be measured through the parallax of the two cameras of the equipment;

alternatively, the first and second electrodes may be,

determining the depth of the object to be measured through an automatic zooming AF camera of the equipment;

alternatively, the first and second electrodes may be,

determining the depth of the object to be measured by laser ranging through a sensor of the equipment;

alternatively, the first and second electrodes may be,

determining the depth of the object to be measured through the flight time TOF of the equipment camera;

alternatively, the first and second electrodes may be,

and determining the depth of the object to be measured through the structured light of the camera of the equipment.

Method according to any of claims 1-6, characterized in that the parameter of the object to be measured is used to indicate the heat of the object to be measured.

An apparatus for measuring a parameter of an object, comprising:

the identification module is used for identifying the category of the object to be measured in the image;

a first determining module, configured to determine an area of the object to be measured in the image;

a second determining module, configured to determine a depth of the object to be measured in the image, where the depth of the object to be measured is a distance from a device used for capturing the image to the object to be measured when the device captures the image;

and the third determining module is used for determining the parameters of the object to be measured according to the category of the object to be measured, the area of the object to be measured and the depth of the object to be measured.

The apparatus of claim 8, wherein the third determination module is specifically configured to,

and determining parameters of the object to be measured corresponding to the category of the object to be measured, the area of the object to be measured and the depth of the object to be measured by searching a mapping relation, wherein the mapping relation comprises the corresponding relation among the category, the area, the depth and the parameters of at least one object.

The apparatus of claim 9, further comprising:

the fourth determination module is used for determining the corresponding relation among the category, the area, the depth and the parameters of at least one object;

the fourth determining module is further configured to determine the mapping relationship according to a correspondence between the category, the area, the depth, and the parameter of the at least one object.

The apparatus of claim 10, wherein the correspondence between the category, area, depth, and parameter of the at least one object comprises:

the at least one object has the same category and the same parameter, and the area and the depth of the at least one object are in a proportional relation.

The apparatus according to any of the claims 8-11, wherein the second determination module is specifically configured to,

determining a distance measuring mode corresponding to the environment information according to the environment information when the equipment shoots the object to be measured;

and determining the depth of the object to be measured by the distance measuring mode.

The apparatus of claim 12, wherein the ranging method comprises:

determining the depth of the object to be measured through the parallax of the two cameras of the equipment;

alternatively, the first and second electrodes may be,

determining the depth of the object to be measured through an automatic zooming AF camera of the equipment;

alternatively, the first and second electrodes may be,

determining the depth of the object to be measured by laser ranging through a sensor of the equipment;

alternatively, the first and second electrodes may be,

determining the depth of the object to be measured through the flight time TOF of the equipment camera;

alternatively, the first and second electrodes may be,

and determining the depth of the object to be measured through the structured light of the camera of the equipment.

An apparatus according to any one of claims 8-13, characterized in that the parameter of the object to be measured is used to indicate the heat of the object to be measured.

An object parameter measuring device, comprising:

a processor and a memory;

the memory is used for storing programs;

the processor for invoking a program stored by the memory to perform a method of measuring a parameter of an object as recited in any of claims 1-7.

A computer-readable storage medium, characterized in that the computer-readable storage medium stores program code which, when executed, performs a method of measuring a parameter of an object according to any one of claims 1-7.

1页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:使用图像强度和解剖位置进行组织分类

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!