Power distribution cabinet power-on and power-off state identification method and device based on machine vision

文档序号:1113574 发布日期:2020-09-29 浏览:6次 中文

阅读说明:本技术 基于机器视觉的配电柜停送电状态识别方法及装置 (Power distribution cabinet power-on and power-off state identification method and device based on machine vision ) 是由 李太友 胡艳玲 冯俊 于 2019-03-20 设计创作,主要内容包括:本发明提供了一种基于机器视觉的配电柜停送电状态识别方法及装置,涉及配电柜监测的技术领域,上述方法包括:获取目标图片并对目标图片进行预处理;基于已进行预处理的目标图片获取目标轮廓的面积并判断目标轮廓的面积是否在预设值范围内;若目标轮廓的面积在预设值范围内,则基于目标轮廓计算目标轮廓的质心位置坐标并判断上述质心位置坐标是否在质心位置预设值范围内;若目标轮廓的质心位置坐标在质心位置预设值范围内,则判定配电柜处于停电状态;若目标轮廓的质心位置坐标未在质心位置预设值范围内,则判定配电柜处于送电状态。通过上述方法缓解了现有技术中配电柜状态识别智能化程度低的问题,提高了配电柜的停送电状态识别的准确度。(The invention provides a power-on and power-off state identification method and device of a power distribution cabinet based on machine vision, and relates to the technical field of power distribution cabinet monitoring, wherein the method comprises the following steps: acquiring a target picture and preprocessing the target picture; acquiring the area of a target contour based on the preprocessed target picture and judging whether the area of the target contour is within a preset value range; if the area of the target contour is within the preset value range, calculating the centroid position coordinate of the target contour based on the target contour and judging whether the centroid position coordinate is within the centroid position preset value range; if the centroid position coordinate of the target contour is within the centroid position preset value range, judging that the power distribution cabinet is in a power failure state; and if the centroid position coordinate of the target contour is not within the centroid position preset value range, judging that the power distribution cabinet is in a power transmission state. By the method, the problem of low intelligent degree of state identification of the power distribution cabinet in the prior art is solved, and the accuracy of power failure and power transmission state identification of the power distribution cabinet is improved.)

1. The utility model provides a switch board power failure and transmission state identification method based on machine vision, is applied to the host computer, its characterized in that includes:

acquiring a target picture and preprocessing the target picture;

acquiring the area of a target contour based on the preprocessed target picture;

judging whether the area of the target contour is within a preset value range or not based on the area of the target contour;

if the area of the target contour is within a preset value range, calculating the position coordinate of the center of mass of the target contour based on the target contour;

judging whether the centroid position coordinate of the target contour is within a centroid position preset value range or not based on the centroid position coordinate;

if the coordinate of the centroid position of the target contour is within the range of the centroid position preset value, judging that the power distribution cabinet is in a power failure state;

and if the centroid position coordinate of the target contour is not within the centroid position preset value range, determining that the power distribution cabinet is in a power transmission state.

2. The machine vision-based power distribution cabinet power-on state identification method according to claim 1, wherein the step of acquiring the target picture for preprocessing comprises:

acquiring the target picture;

constructing a gray ROI (region of interest) based on the target picture;

performing median filtering on the gray ROI area;

and (4) carrying out binarization processing on the grayscale ROI after median filtering.

3. The machine vision-based power distribution cabinet power-on state identification method according to claim 1, wherein the step of obtaining the area of the target contour based on the preprocessed target picture comprises:

extracting a target contour from the preprocessed target picture;

calculating the area of the target contour.

4. The machine vision-based power distribution cabinet power-on state identification method according to claim 1, wherein the step of judging whether the centroid position coordinate of the target contour is within a centroid position preset value range based on the centroid position coordinate comprises the steps of:

acquiring a centroid position threshold and a centroid position offset, wherein the lower limit of the centroid position preset value is the centroid position offset; and the upper limit of the preset centroid position value is the sum of the centroid position threshold value and the centroid position offset.

5. The machine vision-based power distribution cabinet power-on state identification method according to claim 1, wherein the step of calculating the centroid position coordinates of the target contour based on the target contour comprises:

calculating the centroid of the target contour using the following formula:

defining an M N image f (i, j);

then

Figure FDA0002001685820000021

Figure FDA0002001685820000022

a-the abscissa of the centroid of the target profile;

b-ordinate of the centroid of the object contour.

6. The utility model provides a switch board power failure and transmission state recognition device based on machine vision which characterized in that includes:

the target picture preprocessing module is used for acquiring a target picture and preprocessing the target picture;

the target contour area acquisition module is used for acquiring the area of a target contour based on the preprocessed target picture;

the area threshold value judging module is used for judging whether the area value of the target contour is in a preset range or not based on the area of the target contour;

and the centroid position judging module is used for judging whether the centroid position coordinate of the target contour is within the centroid position preset value range or not based on the centroid position coordinate.

7. The machine vision-based power distribution cabinet power-on state recognition device as claimed in claim 6, wherein the target picture preprocessing module comprises:

the image acquisition module is used for acquiring the target picture;

the gray ROI area construction module is used for constructing a gray ROI area based on the target picture;

the median filtering module is used for performing median filtering on the gray ROI area;

and the binarization processing module is used for carrying out binarization processing on the grayscale ROI after median filtering.

8. The machine vision-based power distribution cabinet power-on state recognition device as claimed in claim 6, wherein the target contour area acquisition module comprises:

a target contour extraction module: extracting a target contour from the preprocessed target picture;

and the area calculation module is used for calculating the area of the target contour.

9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program operable on the processor, and wherein the processor implements the steps of the method of any of claims 1 to 5 when executing the computer program.

10. A computer-readable medium having non-volatile program code executable by a processor, wherein the program code causes the processor to perform the method of any of claims 1-5.

Technical Field

The invention relates to the technical field of power distribution cabinet state identification, in particular to a power distribution cabinet power-on and power-off state identification method and device based on machine vision.

Background

Disclosure of Invention

In view of the above, the present invention provides a method and an apparatus for identifying a power outage and transmission state of a power distribution cabinet based on machine vision, so as to alleviate the technical problem in the prior art that the power distribution cabinet has a low intelligent degree of power outage and transmission state identification, ensure the normal operation of a high voltage power distribution cabinet, and prevent accidents.

In a first aspect, an embodiment of the present invention provides a power distribution cabinet power-on/power-off state identification method based on machine vision, including: acquiring a target picture and preprocessing the target picture;

acquiring the area of a target contour based on the preprocessed target picture;

judging whether the area of the target contour is within a preset value range or not based on the area of the target contour;

if the area of the target contour is within a preset value range, calculating the position coordinate of the center of mass of the target contour based on the target contour;

judging whether the centroid position coordinate of the target contour is within a centroid position preset value range or not based on the centroid position coordinate;

if the coordinate of the centroid position of the target contour is within the range of the centroid position preset value, judging that the power distribution cabinet is in a power failure state;

and if the centroid position coordinate of the target contour is not within the centroid position preset value range, determining that the power distribution cabinet is in a power transmission state.

With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the step of obtaining the target picture for preprocessing includes:

acquiring the target picture;

constructing a gray ROI (region of interest) based on the target picture;

performing median filtering on the gray ROI area;

and (4) carrying out binarization processing on the grayscale ROI after median filtering.

With reference to the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the step of obtaining an area of the target contour based on the target picture that has been subjected to the preprocessing includes:

extracting a target contour from the preprocessed target picture;

calculating the area of the target contour.

With reference to the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the step of determining, based on the centroid position coordinate, whether the centroid position coordinate of the target contour is within a range of a centroid position preset value includes:

acquiring a centroid position threshold and a centroid position offset, wherein the lower limit of the centroid position preset value is the centroid position offset; and the upper limit of the preset centroid position value is the sum of the centroid position threshold value and the centroid position offset.

In a second aspect, an embodiment of the present invention further provides a power distribution cabinet power-on/power-off state identification device based on machine vision, including:

the target picture preprocessing module is used for acquiring a target picture and preprocessing the target picture;

the target contour area acquisition module is used for acquiring the area of a target contour based on the preprocessed target picture;

the area threshold value judging module is used for judging whether the area value of the target contour is in a preset range or not based on the area of the target contour;

and the centroid position judging module is used for judging whether the centroid position coordinate of the target contour is within the centroid position preset value range or not based on the centroid position coordinate.

In combination with the second aspect, the embodiments of the present invention provide a first possible implementation manner of the second aspect, wherein,

the target picture preprocessing module comprises:

the image acquisition module is used for acquiring the target picture;

the gray ROI area construction module is used for constructing a gray ROI area based on the target picture;

the median filtering module is used for performing median filtering on the gray ROI area;

and the binarization processing module is used for carrying out binarization processing on the grayscale ROI after median filtering.

In combination with the second aspect, the embodiments of the present invention provide a second possible implementation manner of the second aspect, wherein,

the target contour area acquisition module includes:

a target contour extraction module: extracting a target contour from the preprocessed target picture;

and the area calculation module is used for calculating the area of the target contour.

In a third aspect, an embodiment of the present invention further provides an electronic device, where a computer program operable on the processor is stored in the memory, and when the processor executes the computer program, the method according to any one of the first aspects is implemented.

In a fourth aspect, the present invention further provides a computer-readable medium having non-volatile program code executable by a processor, where the program code causes the processor to execute any one of the methods in the first aspect.

The embodiment of the invention has the following beneficial effects: the invention provides a power distribution cabinet power-on and power-off state identification method and device based on machine vision, wherein the method comprises the following steps: acquiring a target picture and preprocessing the target picture; acquiring the area of a target contour based on the preprocessed target picture; judging whether the area of the target contour is within a preset value range or not based on the area of the target contour; if the area of the target contour is within the preset value range, calculating the position coordinate of the mass center of the target contour based on the target contour; judging whether the centroid position coordinate of the target contour is within the centroid position preset value range or not based on the centroid position coordinate; if the centroid position coordinate of the target contour is within the centroid position preset value range, judging that the power distribution cabinet is in a power failure state; and if the centroid position coordinate of the target contour is not within the centroid position preset value range, judging that the power distribution cabinet is in a power transmission state. By the method, the target position can be judged by judging the mass center position of the target contour, and then the power-on and power-off state of the power distribution cabinet is judged, so that the technical problem of low intelligent degree of power-on and power-off state identification work of the power distribution cabinet in the prior art is solved, the accuracy of power-on and power-off state identification of the power distribution cabinet is improved, and the normal operation of the power distribution cabinet can be ensured and accidents can be prevented.

Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.

In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.

Fig. 1 is a flowchart of a power distribution cabinet power-on/power-off state identification method based on machine vision according to an embodiment of the present invention;

fig. 2 is a flowchart of another power distribution cabinet power-on/power-off state identification method based on machine vision according to an embodiment of the present invention;

fig. 3 is a flowchart of a power distribution cabinet power-on/power-off state identification method based on machine vision according to a second embodiment of the present invention;

fig. 4 is a flowchart of a power distribution cabinet power-on/power-off state identification method based on machine vision according to a third embodiment of the present invention;

fig. 5 is a structural diagram of a power outage and transmission state recognition device of a power distribution cabinet based on machine vision according to an embodiment of the present invention;

fig. 6 is a structural diagram of an electronic device for identifying a power outage and supply state of a power distribution cabinet based on machine vision according to an embodiment of the present invention.

Icon:

100-identifying electronic equipment of the power-on and power-off state of a power distribution cabinet based on machine vision; 40-a processor; 41-a memory; 42-a bus; 43-communication interface.

Detailed Description

To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种确定三维目标的包围框的方法及系统

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!