Disclosure of Invention
The embodiment of the invention aims to provide a method, a device and a system for acquiring equipment state information, a computer-readable storage medium and an indoor rail-mounted intelligent inspection robot, which can accurately and efficiently inspect equipment and timely feed back the running state of the equipment so as to take measures in time, eliminate hidden dangers as early as possible and avoid unnecessary loss.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
the embodiment of the invention provides an equipment state information acquisition method, which is applied to an indoor rail-mounted intelligent inspection robot and comprises the following steps:
acquiring a target image of equipment to be identified, which is acquired by a camera;
extracting corresponding types of identification feature vectors in the target image according to the target attribute information of the equipment to be identified, wherein the types of the identification feature vectors are color feature vectors or shape feature vectors;
matching a corresponding feature recognition sub-model in a pre-established feature recognition model library according to the target attribute information;
calling the feature identifier model to analyze the identification feature vector to obtain the running state information of the equipment to be identified;
the characteristic identification model library comprises a plurality of characteristic identification submodels, each characteristic identification submodel is formed by utilizing a support vector machine and training according to a plurality of pieces of sample information of each device, and the sample information comprises attribute information of the device, a corresponding relation between a color characteristic vector and running state information of the device or a corresponding relation between a shape characteristic vector and the running state information of the device.
Optionally, the method further includes:
and judging whether the equipment to be tested operates normally or not according to the operating state information and the prestored corresponding operating state information when the equipment operates abnormally.
Optionally, the method further includes:
and when the equipment to be identified runs abnormally, giving an alarm prompt, and feeding back the position information of the equipment to be identified to the user side.
Optionally, the feature recognition submodel is an equipment type recognition submodel, the equipment type recognition submodel corresponds to the equipment types one to one, and each equipment type recognition submodel includes attribute information of the equipment, and a corresponding relationship between an equipment running state and a recognition feature vector; or
The feature recognition sub-models comprise color feature recognition models and shape feature recognition models, and the color feature recognition models and the shape feature recognition models respectively comprise a plurality of corresponding feature type recognition sub-models; each feature type identification submodel corresponds to the equipment one by one, and each feature type identification submodel comprises the corresponding relation of the attribute information of the equipment, the running state of the equipment and the identification feature vector.
Optionally, after the target image of the device to be identified, acquired by the camera, is acquired, the method further includes:
and normalizing the target image into an image with a preset size.
Optionally, the extracting, according to the target attribute information of the device to be identified, the identification feature vector of the corresponding type in the target image includes:
judging the type of the extracted identification feature vector according to the target attribute information of the equipment to be identified;
when the type of the extracted identification feature vector is judged to be a color feature vector, converting the color type of the target image into an HSV color space type, respectively calculating a color histogram of each channel, and connecting the color histograms into a one-dimensional array to serve as the color feature vector of the target image;
when the type of the extracted identification feature vector is judged to be a shape feature vector, extracting the cumulative gradient histogram of the target image as the shape feature vector of the target image.
Another aspect of the embodiments of the present invention provides an apparatus state information acquiring device, which is applied to an indoor rail-mounted intelligent inspection robot, and includes:
the image acquisition module is used for acquiring a target image of the equipment to be identified, which is acquired by the camera;
the characteristic extraction module is used for extracting corresponding types of identification characteristic vectors from the target image according to the target attribute information of the equipment to be identified, wherein the types of the identification characteristic vectors are color characteristic vectors or shape characteristic vectors;
the model matching module is used for matching a corresponding feature recognition sub-model in a pre-established feature recognition model library according to the target attribute information; the characteristic identification model library comprises a plurality of characteristic identification submodels, each characteristic identification submodel is trained by utilizing a support vector machine according to a plurality of pieces of sample information of each device, and the sample information comprises attribute information of the device, a corresponding relation between a color characteristic vector and running state information of the device or a corresponding relation between a shape characteristic vector and the running state information of the device;
and the state information acquisition module is used for calling the feature identifier model to analyze the identification feature vector to obtain the running state information of the equipment to be identified.
The embodiment of the present invention further provides an apparatus status information acquiring system, which includes a processor and a memory, where the processor is configured to implement the steps of the apparatus status information acquiring method according to any one of the foregoing embodiments when executing the computer program stored in the memory.
An embodiment of the present invention further provides a computer-readable storage medium, where an apparatus status information obtaining program is stored on the computer-readable storage medium, and when the apparatus status information obtaining program is executed by a processor, the method for obtaining apparatus status information according to any of the foregoing embodiments is implemented.
The embodiment of the invention finally provides an indoor rail hanging intelligent inspection robot which comprises image acquisition equipment and the computer readable storage medium.
The embodiment of the invention provides an equipment state information acquisition method, which is applied to an indoor rail-mounted intelligent inspection robot and is used for acquiring a target image of equipment to be identified, which is acquired by a camera of the robot; extracting identification characteristic vectors of corresponding types from a target image according to target attribute information of equipment to be identified; matching a corresponding feature recognition sub-model in a pre-established feature recognition model library according to the target attribute information; the characteristic recognition model library comprises a plurality of characteristic recognition submodels, each characteristic recognition submodel is trained by utilizing a support vector machine according to a plurality of pieces of sample information of each device, and the sample information comprises attribute information of the device, a corresponding relation between a color characteristic vector and running state information of the device or a corresponding relation between a shape characteristic vector and the running state information of the device; and calling a feature identifier model to analyze and identify the feature vector to obtain the running state information of the equipment to be identified.
The utility model provides a technical scheme's advantage lies in, utilize and hang rail intelligence and patrol and examine the robot at indoor autonomous operation, gather the image through the camera of self, the model that utilizes to establish discerns the discernment eigenvector of the equipment of extraction, thereby it is quick, the accurate running state information who obtains current equipment, thereby the unusual equipment of timely feedback operation, the effectual manpower of having solved patrols and examines inefficiency and cause the problem of careless omission easily, higher stability has, accuracy and efficiency, can effectively take precautions against the hidden danger, master the initial stage information of equipment trouble, so that in time take measures, eliminate hidden danger as early as possible, avoid unnecessary loss.
In addition, the embodiment of the invention also provides a corresponding implementation device, equipment, a computer readable storage medium and an indoor rail-mounted intelligent inspection robot aiming at the equipment state information acquisition method, so that the method has higher practicability, and the device, the equipment and the computer readable storage medium have corresponding advantages.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the 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.
The terms "first," "second," "third," "fourth," and the like in the description and claims of this application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may include other steps or elements not expressly listed.
Having described the technical solutions of the embodiments of the present invention, various non-limiting embodiments of the present application are described in detail below.
Referring to fig. 1, fig. 1 is a schematic flow chart of an apparatus state information obtaining method provided by an embodiment of the present invention, and the method is applied to an indoor rail-mounted intelligent inspection robot, and the embodiment of the present invention may include the following contents:
s101: and acquiring a target image of the equipment to be identified, which is acquired by the camera.
The indoor rail hanging intelligent inspection robot carries image acquisition equipment, such as a camera, can autonomously operate indoors by using a rail hanging technology, pauses at preset equipment, acquires images of current equipment by using the camera, and acquires running state information of the equipment by extracting specific characteristics of the images.
S102: and extracting the corresponding type of identification feature vector from the target image according to the target attribute information of the equipment to be identified, wherein the type of the identification feature vector is a color feature vector or a shape feature vector.
The attribute information of the equipment can include the name of the equipment, the position information of the equipment and the representation characteristics of the running state of the equipment, namely the type of the identification characteristic vector to be extracted, for example, the color of an indicator light is used for representing that the equipment is abnormal or normal, if the equipment is abnormal, the equipment is a red light, and the equipment needs to be overhauled by workers in time; the red and green of the lightning arrester are used for indicating whether the lightning arrester is struck by lightning or not, if the lightning arrester is struck by lightning, the lightning arrester is changed into red, and the lightning arrester needs to be replaced in time; platen apparatus, with aspect ratio 3: the rectangular block of 1 indicates whether the rectangular block works or not, if the rectangular block is vertical to the horizontal plane, the rectangular block works, namely, throw, and if the rectangular block forms an angle of about 30 degrees with the horizontal plane (fixed gear), namely, retreat, the rectangular block does not work. The former two devices represent the operating state of the device by color, and the platen device can represent the operating state in shape.
The specific feature extraction process may be:
judging the type of the extracted identification characteristic vector according to the target attribute information of the equipment to be identified;
when the type of the extracted identification feature vector is judged to be a color feature vector, converting the color type of the target image into an HSV color space type, respectively calculating a color histogram of each channel, and connecting the color histograms into a one-dimensional array to serve as the color feature vector of the target image;
when it is determined that the type of the extracted recognition feature vector is a shape feature vector, a cumulative gradient histogram of the target image is extracted as the shape feature vector of the target image.
For the color feature vector, information such as hue, saturation, and brightness needs to be separated. Specifically, the RGB color space of the current target image may be converted into HSV color space, H represents hue, S represents saturation, and V represents brightness. And respectively calculating color histograms of the target image in an H channel, an S channel and a V channel, and then connecting the color histograms into a one-dimensional array.
S103: and matching the corresponding feature recognition submodels in a pre-established feature recognition model library according to the target attribute information.
The feature recognition model library comprises a plurality of feature recognition submodels, each feature recognition submodel is trained by a support vector machine according to a plurality of pieces of sample information of each device, and the sample information comprises attribute information of the device, a corresponding relation between a color feature vector and running state information of the device or a corresponding relation between a shape feature vector and the running state information of the device.
Each feature identifier sub-model is trained by using a support vector machine according to a plurality of pieces of sample information of each device, and the specific process can be as follows:
acquiring a plurality of device images as training sample images, wherein the plurality of sample images comprise device images of the device in each running state, and each sample image comprises attribute information of the device, a corresponding relation between a color feature vector and running state information of the device or a corresponding relation between a shape feature vector and the running state information of the device. Different devices correspond to different types of feature vectors to be extracted, and when the device extracts color feature vectors, the color feature vectors comprise the corresponding relation between the color feature vectors and the running state information of the device; when the color feature vector is extracted by the equipment, the corresponding relation between the shape feature vector and the running state information of the equipment is included; when the color feature vector and the shape feature vector are extracted by the equipment, the corresponding relation between the color feature vector and the running state information of the equipment and the corresponding relation between the shape feature vector and the running state information of the equipment are included.
For example, for lightning arrester equipment, the collected sample images are images of multiple lightning arresters in a red state and images of multiple lightning arresters in a green state, and the attribute information of the equipment included in each training sample image is the name and position information of the lightning arrester; extracting a color characteristic vector from an image of the lightning arrester in a red state and enabling the lightning arrester corresponding to the vector to be in a lightning stroke state; the color characteristic vector is extracted from the image of the lightning arrester in the green state, and the running state of the lightning arrester corresponding to the vector is normal.
And respectively extracting corresponding recognition characteristic vectors of the acquired training sample images, and training by using a support vector machine based on a radial basis function according to the sample information and the extracted recognition characteristic vectors.
According to the different training processes of training, the following two cases can be divided:
the characteristic identification submodel is an equipment type identification submodel, the equipment type identification submodel corresponds to the equipment types one by one, and each equipment type identification submodel comprises the corresponding relation of the attribute information of the equipment, the running state of the equipment and the identification characteristic vector; or
The characteristic identification submodels comprise a color characteristic identification model and a shape characteristic identification model, and the color characteristic identification model and the shape characteristic identification model respectively comprise a plurality of corresponding characteristic type identification submodels; each feature type identification submodel corresponds to the equipment one by one, and each feature type identification submodel comprises the corresponding relation of the attribute information of the equipment, the running state of the equipment and the identification feature vector.
The first case may be trained for each device, and the second case is trained for the type of the extracted recognition feature vector, which does not affect the implementation of the present application, and the present application is not limited in this respect.
S104: and calling a feature identifier model to analyze and identify the feature vector to obtain the running state information of the equipment to be identified.
And inputting the extracted identification feature vector into the matched feature identification submodel, and outputting the running state information of the current equipment.
And judging whether the equipment to be treated normally operates according to the operation state information and the prestored corresponding operation state information when the equipment operates abnormally.
For example, the red state of the arrester is stored in advance to indicate that a lightning stroke has been made, and the green state indicates normal. And acquiring an image of the current lightning arrester, extracting a color feature vector, inputting the color feature vector into a corresponding feature recognition sub-model, and if the output indicator light of the lightning arrester is red, confirming that the current lightning arrester is struck by lightning.
It should be noted that, for the accuracy of the whole device status information obtaining process, the collected images and the device sample images during model training can be normalized to the same size, for example, 1330 × 1040 in width and 1040 in resolution.
According to the technical scheme provided by the embodiment of the invention, the intelligent rail-mounted inspection robot autonomously runs indoors, images are acquired through the camera of the intelligent rail-mounted inspection robot, the extracted identification characteristic vector of the equipment is identified by using the constructed model, so that the running state information of the current equipment is quickly and accurately acquired, the equipment with abnormal running is fed back in time, the problems of low manpower inspection efficiency and easiness in causing careless omission are effectively solved, the intelligent rail-mounted inspection robot has higher stability, accuracy and efficiency, the hidden trouble can be effectively prevented, the initial information of equipment faults is mastered, measures are taken in time, the hidden trouble is eliminated as soon as possible, and unnecessary loss is avoided.
In order to enable the staff or the user to find the device with abnormal operation as soon as possible, according to the above embodiment, please refer to fig. 2, which may further include:
s105: and when the equipment to be identified runs abnormally, alarming and prompting are carried out, and the position information of the equipment to be identified is fed back to the user side.
Through carrying out the suggestion of reporting to the police, or directly feed back the equipment position information that breaks down to upper application system or user, can in time discover the equipment of abnormal operation, the initial information of the very first time grasp equipment trouble to in time take measures, eliminate hidden danger as early as possible, avoid unnecessary loss.
The embodiment of the invention also provides a corresponding implementation device for the equipment state information acquisition method, so that the method has higher practicability. In the following, the device status information acquiring apparatus provided by the embodiment of the present invention is introduced, and the device status information acquiring apparatus described below and the device status information acquiring method described above may be referred to in correspondence with each other.
Referring to fig. 3, fig. 3 is a structural diagram of an apparatus state information obtaining device according to an embodiment of the present invention, in a specific implementation manner, and the apparatus is applied to an indoor rail-mounted intelligent inspection robot, and the apparatus may include:
an image obtaining module 301, configured to obtain a target image of the device to be identified, where the target image is acquired by a camera.
The feature extraction module 302 is configured to extract, according to the target attribute information of the device to be identified, an identification feature vector of a corresponding type from the target image, where the type of the identification feature vector is a color feature vector or a shape feature vector.
The model matching module 303 is configured to match a corresponding feature recognition submodel in a pre-established feature recognition model library according to the target attribute information; the feature recognition model library comprises a plurality of feature recognition submodels, each feature recognition submodel is trained by a support vector machine according to a plurality of pieces of collected sample information of each device, and the sample information comprises attribute information of the device, a corresponding relation between a color feature vector and running state information of the device or a corresponding relation between a shape feature vector and the running state information of the device.
And the state information acquisition module 304 is configured to invoke the feature identifier sub-model to analyze and identify the feature vector, so as to obtain the running state information of the device to be identified.
Optionally, in some embodiments of this embodiment, referring to fig. 4, the apparatus may include:
the determining module 305 is configured to determine whether the device to be tested operates normally according to the operating state information and the pre-stored operating state information corresponding to the abnormal operation of the device.
In other embodiments of this embodiment, the apparatus may further include:
and the alarm module 306 is used for giving an alarm prompt when judging that the equipment at the point to be patrolled operates abnormally, and feeding back the corresponding point position information to be patrolled to the user side.
Further, the apparatus may further include, for example:
a normalization module 307, configured to normalize the target image to an image with a preset size.
Optionally, in some specific embodiments, the feature extraction module 302 may include:
the judging unit is used for judging the type of the extracted identification feature vector according to the target attribute information of the equipment to be identified;
the first feature extraction unit is used for converting the color type of the target image into an HSV color space type when the type of the extracted identification feature vector is judged to be the color feature vector, respectively calculating a color histogram of each channel, and connecting the color histograms into a one-dimensional array to serve as the color feature vector of the target image;
and a second feature extraction unit configured to extract the cumulative gradient histogram of the target image as the shape feature vector of the target image when it is determined that the type of the extracted recognition feature vector is the shape feature vector.
The functions of each functional module of the device state information acquiring apparatus according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Therefore, the embodiment of the invention utilizes the hanging rail intelligent inspection robot to autonomously operate indoors, acquires images through the camera of the robot, and identifies the extracted identification characteristic vector of the equipment by utilizing the constructed model, so that the current running state information of the equipment is quickly and accurately acquired, the abnormal running equipment is fed back in time, the problems of low manpower inspection efficiency and easiness in causing careless leakage are effectively solved, the stability, the accuracy and the efficiency are higher, the hidden trouble can be effectively prevented, the initial information of equipment failure is mastered, measures are taken in time, the hidden trouble is eliminated as soon as possible, and unnecessary loss is avoided.
An embodiment of the present invention further provides a system for acquiring device status information, which may include:
a memory for storing a computer program;
a processor for executing a computer program to implement the steps of the device status information acquisition method according to any one of the above embodiments.
The functions of each functional module of the device state information acquisition system according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Therefore, the method and the device for acquiring the operation state information of the current equipment quickly and accurately acquire the operation state information of the current equipment, so that the equipment with abnormal operation is fed back in time, the problems that the manpower inspection efficiency is low and careless omission is easily caused are effectively solved, the method and the device have higher stability, accuracy and efficiency, the hidden trouble can be effectively prevented, the initial information of the equipment fault is mastered, measures can be taken in time, the hidden trouble is eliminated as soon as possible, and unnecessary loss is avoided.
An embodiment of the present invention further provides a computer-readable storage medium, in which an apparatus status information acquisition program is stored, and the apparatus status information acquisition program is executed by a processor, and the steps of the apparatus status information acquisition method according to any one of the above embodiments are performed.
The functions of the functional modules of the computer-readable storage medium according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Therefore, the method and the device for acquiring the operation state information of the current equipment quickly and accurately acquire the operation state information of the current equipment, so that the equipment with abnormal operation is fed back in time, the problems that the manpower inspection efficiency is low and careless omission is easily caused are effectively solved, the method and the device have higher stability, accuracy and efficiency, the hidden trouble can be effectively prevented, the initial information of the equipment fault is mastered, measures can be taken in time, the hidden trouble is eliminated as soon as possible, and unnecessary loss is avoided.
The embodiment of the invention also provides an indoor rail hanging intelligent inspection robot which comprises image acquisition equipment and the computer readable storage medium according to any one of the embodiments.
The functions of the functional modules of the indoor rail-mounted intelligent inspection robot in the embodiment of the invention can be specifically realized according to the method in the embodiment of the method, and the specific realization process can refer to the related description of the embodiment of the method, which is not described herein again.
Therefore, the method and the device for acquiring the operation state information of the current equipment quickly and accurately acquire the operation state information of the current equipment, so that the equipment with abnormal operation is fed back in time, the problems that the manpower inspection efficiency is low and careless omission is easily caused are effectively solved, the method and the device have higher stability, accuracy and efficiency, the hidden trouble can be effectively prevented, the initial information of the equipment fault is mastered, measures can be taken in time, the hidden trouble is eliminated as soon as possible, and unnecessary loss is avoided.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The method, the device, the system, the computer readable storage medium and the indoor rail-mounted intelligent inspection robot for acquiring the equipment state information provided by the invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.