WO2022121886A1 - Method and apparatus for identifying dress code for electric power operations - Google Patents

Method and apparatus for identifying dress code for electric power operations Download PDF

Info

Publication number
WO2022121886A1
WO2022121886A1 PCT/CN2021/136040 CN2021136040W WO2022121886A1 WO 2022121886 A1 WO2022121886 A1 WO 2022121886A1 CN 2021136040 W CN2021136040 W CN 2021136040W WO 2022121886 A1 WO2022121886 A1 WO 2022121886A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
human body
feature matrix
matrix
patch
Prior art date
Application number
PCT/CN2021/136040
Other languages
French (fr)
Chinese (zh)
Inventor
李晓枫
胡春潮
胡康涛
廖颂文
叶志健
Original Assignee
南方电网电力科技股份有限公司
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 南方电网电力科技股份有限公司 filed Critical 南方电网电力科技股份有限公司
Publication of WO2022121886A1 publication Critical patent/WO2022121886A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands

Definitions

  • the present application relates to the technical field of dress identification, and in particular, to a method and device for identifying a dress code for electrical work.
  • the present invention provides a method and device for identifying the dress code for electrical work, which solves the problem that the existing target identification method has low identification rate and accuracy rate in complex environment, it is difficult to accurately identify whether personnel are dressed in compliance with regulations, which may lead to potential safety hazards. technical problem.
  • a method for identifying a dress code for electrical work provided by the present invention includes:
  • the to-be-recognized image matrix is input into the target human body clothing feature matrix extraction network, and the human body clothing feature matrix corresponding to the to-be-identified image matrix is output; wherein, the target human body clothing feature matrix extraction network is obtained through a preset model training process. generate;
  • the step of performing image preprocessing on the to-be-recognized human body image to generate a to-be-recognized image matrix includes:
  • An image normalization operation and an image normalization operation are performed on the second image matrix to generate a to-be-identified image matrix.
  • model training process includes:
  • a preset dual-core optimization algorithm is used in combination with the clothing feature matrix to train the initial human body clothing feature matrix extraction network to generate a target human body clothing feature matrix extraction network.
  • the preset dual-core optimization algorithm includes an overall comparison function and a patch comparison function
  • the clothing feature matrix includes an overall clothing feature matrix and a clothing patch feature matrix
  • the preset dual-core optimization model is combined with the Describe the clothing feature matrix, the steps of training the initial human body clothing feature matrix extraction network to generate the target human body clothing feature matrix extraction network, including:
  • a back-propagation algorithm is used to adjust the overall parameters of the initial human clothing feature matrix extraction network until the tracking target value is equal to the optimization target value.
  • the back-propagation algorithm is used to adjust the patch parameters of the initial human clothing feature matrix extraction network until the patch tracking target value is equal to the Plaque optimization target value;
  • the preset condition includes a plurality of sub-conditions
  • the step of determining whether the clothing of the person corresponding to the to-be-recognized human body image is standardized based on the judgment result of whether the human body clothing feature matrix satisfies the preset condition includes:
  • the human body clothing feature matrix satisfies any one of the sub-conditions, it is determined that the clothing of the person corresponding to the to-be-recognized human body image does not meet the specification;
  • the human body clothing feature matrix does not satisfy all of the sub-conditions, it is determined that the clothing of the person corresponding to the to-be-recognized human body image conforms to the specification.
  • the present invention also provides a device for identifying a dress code for electrical work, comprising:
  • a human body image receiving module to be recognized used for receiving the human body image to be recognized
  • a to-be-recognized image matrix generation module configured to perform image preprocessing on the to-be-recognized human body image to generate a to-be-recognized image matrix
  • the human body clothing feature matrix output module is used for inputting the to-be-recognized image matrix into the target human body clothing feature matrix extraction network, and outputting the human body clothing feature matrix corresponding to the to-be-identified image matrix; wherein, the target human body clothing feature matrix extraction
  • the network is generated by the preset model training module;
  • a personnel dress code judging module is configured to determine whether the person corresponding to the to-be-recognized human body image is dressed according to the judgment result of whether the human body dress feature matrix satisfies a preset condition.
  • the to-be-recognized image matrix generation module includes:
  • an image conversion submodule for converting the to-be-recognized human body image into a first image matrix
  • a first image processing submodule configured to perform an image correction operation and an image enhancement operation on the first image matrix according to preset requirements to obtain a second image matrix
  • the second image processing submodule is configured to perform an image normalization operation and an image normalization operation on the second image matrix to generate an image matrix to be recognized.
  • model training module includes:
  • the historical human body image acquisition sub-module is used to separately acquire human body images in various historical power operation scenarios
  • a standardized image matrix generation sub-module for performing image preprocessing on the human body image to generate a standardized image matrix
  • Dressing feature matrix generation sub-module for inputting the standardized image matrix into a preset initial human body dressing feature matrix extraction network to obtain a dressing feature matrix
  • the training sub-module is used for using a preset dual-core optimization algorithm in combination with the clothing feature matrix to train the initial human body clothing feature matrix extraction network to generate a target human body clothing feature matrix extraction network.
  • the preset dual-core optimization algorithm includes an overall comparison function and a patch comparison function
  • the dressing feature matrix includes an overall dressing feature matrix and a dressing patch feature matrix
  • the training submodule includes:
  • the standard overall dress feature matrix acquisition sub-module is used to obtain the standard overall dress feature matrix
  • an overall comparison function processing submodule used for importing the standard overall dressing feature matrix and the overall dressing feature matrix into the overall comparison function to obtain an optimization target value and a tracking target value;
  • an overall parameter adjustment sub-module used for adjusting the overall parameters of the initial human clothing feature matrix extraction network based on the optimization target value and the tracking target value by using a back-propagation algorithm until the tracking target value is equal to the optimization target value.
  • Standard dress patch feature matrix acquisition sub-module used to obtain standard dress patch feature matrix
  • the patch comparison function processing sub-module is used to import the dressing patch feature matrix and the standard dressing patch feature matrix into the patch comparison function to obtain the patch optimization target value and the patch tracking target value ;
  • the patch parameter adjustment sub-module is used to adjust the patch parameters of the initial human clothing feature matrix extraction network based on the patch optimization target value and the patch tracking target value by using the back-propagation algorithm until all the the patch tracking target value is equal to the patch optimization target value;
  • the target body clothing feature matrix extraction network generation sub-module is used to generate the target body clothing feature matrix when the tracking target value is equal to the optimization target value and the patch tracking target value is equal to the patch optimization target value Extract the network.
  • the preset condition includes multiple sub-conditions
  • the personnel dress code judgment module includes:
  • a non-conformity determination sub-module configured to determine that the clothing of the person corresponding to the to-be-recognized human body image does not conform to the specification if the human body attire feature matrix satisfies any one of the sub-conditions;
  • a specification-compliant determination sub-module configured to determine that the clothing of the person corresponding to the to-be-recognized human body image conforms to the specification if the human body clothing feature matrix does not satisfy all of the sub-conditions.
  • the present invention has the following advantages:
  • the present invention receives the image of the human body to be recognized, performs image preprocessing on the image of the human body to be recognized, generates the image matrix to be recognized, and then uses the target human body clothing feature matrix extraction network to extract the human body clothing feature matrix corresponding to the to-be-recognized image matrix, and finally, based on the human body clothing feature Whether the matrix satisfies the preset conditions determines whether the dress code of the person corresponding to the human body image to be recognized is standardized. Therefore, the existing target recognition methods have low recognition rate and accuracy in complex environments, and it is difficult to accurately identify whether personnel are wearing compliance, which may lead to technical problems of potential safety hazards, and effectively improve the accuracy of personnel wearing identification in complex environments. to reduce the occurrence of security risks.
  • FIG. 1 is a flowchart of steps of a method for identifying a dress code for electrical work provided by an embodiment of the present invention
  • FIG. 2 is a flow chart of steps of a method for identifying a dress code for electrical work provided by an optional embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a network training process for extracting an initial human body dress feature matrix according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of calculating an optimization target value and a tracking target value in an embodiment of the present invention
  • FIG. 5 is a schematic flowchart of calculating a patch optimization target value and a patch tracking target value in an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a power operation supervision platform provided by an embodiment of the present invention.
  • FIG. 7 is a structural block diagram of an apparatus for identifying a dress code for electrical work according to an embodiment of the present invention.
  • the embodiments of the present invention provide a method and device for identifying a dress code for electrical work, which are used to solve the problem that the existing target identification method has a low recognition rate and accuracy rate in a complex environment, and it is difficult to accurately identify whether a person's clothing is compliant, which may lead to Technical issues with security risks.
  • FIG. 1 is a flowchart of steps of a method for identifying a dress code for electrical work provided by an embodiment of the present invention.
  • a method for identifying a dress code for electrical work provided by the present invention includes:
  • Step 101 receiving an image of a human body to be identified
  • the to-be-recognized human image refers to an image in which an electric power operator exists in the electric power work scene.
  • a corresponding monitoring device such as a camera in the power work scene to ensure the safety of the power work.
  • target detection can be used from the monitoring video stream.
  • the algorithm acquires the image of the human body to be recognized to determine the presence of the image of the operator.
  • the predetermined period may be the acquisition time, and the image of the human body to be recognized at the corresponding time is acquired.
  • the embodiment of the present invention is not limited to the target detection algorithm used to obtain the human body image to be recognized from the video stream.
  • Step 102 performing image preprocessing on the to-be-recognized human body image to generate a to-be-recognized image matrix
  • image preprocessing can be performed on the image of the human body to be recognized, so as to obtain, for example, a matrix of images to be recognized under different illuminations, different scenes and different angles.
  • Step 103 inputting the to-be-recognized image matrix into the target human body clothing feature matrix extraction network, and outputting the human body clothing feature matrix corresponding to the to-be-recognized image matrix;
  • the human clothing feature matrix includes but is not limited to the following features: overalls lining features, long-sleeved overalls features, clothing opening features, clothing damage features, helmet wearing characteristics, and helmet damage characteristics, etc.
  • the target human body clothing feature matrix extraction network is generated through a preset model training process, and the to-be-recognized image matrix is input into the target human body clothing feature matrix extraction network to obtain the human body clothing corresponding to the to-be-recognized image matrix. feature matrix.
  • image matrices of different scales to be recognized may be generated in the process of step 102, so as to facilitate the determination of the human body clothing feature matrices under different scales.
  • Step 104 based on the judgment result of whether the human body clothing feature matrix satisfies a preset condition, determine whether the clothing of the person corresponding to the to-be-recognized human body image is standard.
  • the human body clothing feature matrix After obtaining the human body clothing feature matrix, it can be further determined whether the clothing of the person corresponding to the human body image to be recognized is standardized based on the judgment result of whether the human body clothing feature matrix satisfies the preset conditions, so as to determine whether a warning needs to be issued to reduce the potential safety hazards. occur.
  • the existing target recognition methods have low recognition rate and accuracy in complex environments, and it is difficult to accurately identify whether personnel are wearing compliance, which may lead to technical problems of potential safety hazards, and effectively improve the accuracy of personnel wearing identification in complex environments. to reduce the occurrence of security risks.
  • FIG. 2 is a flowchart of steps of a method for identifying a dress code for electrical work provided by an optional embodiment of the present invention.
  • a method for identifying a dress code for electrical work provided by the present invention includes:
  • Step 201 receiving an image of a human body to be identified
  • step 201 the specific implementation process of step 201 is the same as that of step 102 above, and details are not described herein again.
  • step 102 to perform image preprocessing on the to-be-recognized human body image to generate a to-be-recognized image matrix
  • steps 202-204 can be replaced with the following steps 202-204:
  • Step 202 converting the to-be-identified human body image into a first image matrix
  • the first image matrix may be generated by performing a transformation operation of cropping or scaling on the image of the human body to be recognized.
  • the image of the human body to be recognized may be converted into a multi-scale first image matrix to satisfy subsequent image processing of different scales.
  • Step 203 performing an image correction operation and an image enhancement operation on the first image matrix according to preset requirements to obtain a second image matrix
  • a corresponding image correction operation and an image enhancement operation may be performed on the first image matrix according to preset requirements, such as the image correction magnitude input by the user, the object of image enhancement and the enhancement magnitude, etc., to obtain A second image matrix more suitable for image recognition.
  • the image correction operation refers to automatically detecting the tilt direction and tilt angle of the image according to the image features, and further correcting the image position according to the detected information.
  • Image enhancement refers to the enhancement of useful information in an image, which can be a distortion process whose purpose is to improve the visual effect of an image for a given image application. Purposefully emphasize the overall or local characteristics of the image, make the original unclear image clear or emphasize some interesting features, expand the difference between the features of different objects in the image, suppress the uninteresting features, and improve the image. Quality, rich information, strengthen image interpretation and recognition effect, to meet the needs of some special analysis.
  • Step 204 performing an image normalization operation and an image normalization operation on the second image matrix to generate a to-be-identified image matrix.
  • the second image matrix can be processed by zero mean normalization to realize the image normalization operation, and then the image normalization operation is performed on the image matrix after image normalization, and the image matrix is converted into [-1, 1 ] to obtain the matrix of images to be recognized.
  • Zero-mean canonical processing refers to taking each variable in the image matrix and subtracting their mean.
  • the image normalization operation refers to taking each variable in the image matrix minus their mean and dividing by the standard deviation.
  • Step 205 inputting the to-be-recognized image matrix into the target human body clothing feature matrix extraction network, and outputting the human body clothing feature matrix corresponding to the to-be-recognized image matrix;
  • the to-be-recognized image matrix also includes frame coordinates and confidence levels of each person, and the to-be-recognized image matrix is input into the target human body clothing feature matrix extraction network to obtain a higher confidence level and is located within the frame coordinates.
  • Matrix of Human Dressing Characteristics are input into the target human body clothing feature matrix extraction network to obtain a higher confidence level and is located within the frame coordinates.
  • the target human body clothing feature matrix extraction network is generated through a preset model training process
  • model training process includes the following steps S1-S4:
  • human body images in various historical power work scenarios such as human body images in power work scenarios with different lighting, different heights, or different angles
  • image preprocessing is performed on the human body images to generating a standardized image matrix
  • the initial human clothing feature matrix extraction network can be constructed by using Convolutional Neural Network (CNN), and integrate data enhancement technology and anchor design strategy to improve human detection under different scales, backgrounds, and lighting. accuracy.
  • CNN Convolutional Neural Network
  • FIG. 3 shows a schematic flowchart of a network training process for extracting an initial human clothing feature matrix in an embodiment of the present invention.
  • It includes inputting the clothing feature matrix into the overall comparison function calculation module 31 and the patch comparison function calculation module 32 respectively, and inputting the output of the overall comparison function calculation module into the overall comparison model parameter optimization module 33 to obtain the optimal Optimize the target value and the tracking target value; input the output of the patch comparison function calculation module to the patch comparison model parameter optimization module 34 to obtain the optimal patch optimization target value and patch tracking target value.
  • the preset dual-kernel optimization algorithm includes an overall alignment function and a patch alignment function
  • the clothing feature matrix includes an overall clothing feature matrix and a clothing patch feature matrix
  • step S4 may include the following sub-components Steps S41-S47:
  • FIG. 4 shows a schematic flowchart of calculating an optimization target value and a tracking target value in an embodiment of the present invention
  • the obtained overall dressing feature matrix is sent to the first input of the first adder module 310, and the standard overall dressing feature matrix is sent to the second input of the first adder module 310; the first addition
  • the output of the divider module 310 is sent to the second input terminal of the first divider module 311 , and the output of the first adder module 310 is also sent to the second input terminal of the second divider module 312 .
  • the overall dressing feature matrix is also sent to the first input terminal of the first divider module 311 , so that the matrix operation of dividing the overall dressing feature matrix by the output of the first adder module 310 is completed in the first divider module 311 .
  • the division output value completed by the first divider module 311 is sent to the first natural logarithm module 313, and the logarithmic value calculated by the first natural logarithm module 313 is output to the first output of the overall comparison function to obtain the optimization target value .
  • the standard overall dressing characteristic matrix is also sent to the first input terminal of the second divider module 312, so that the matrix operation of dividing the standard overall dressing characteristic matrix by the output of the first adder module 310 is completed in the second divider module 312. .
  • the division calculation value completed by the second divider module 312 is sent to the second natural logarithm module 314, and the logarithmic value calculated by the second natural logarithm module 314 is output to the second output terminal of the overall comparison function to obtain the tracking target value .
  • optimization target value and the tracking target value are substituted into the back-propagation algorithm to adjust the overall parameters of the initial human clothing feature matrix extraction network, calculate the output of the initial human clothing feature matrix extraction network, and continue to calculate the tracking target value until the tracking target value equals to Optimize the target value and complete the overall parameter adjustment.
  • the back-propagation algorithm can be, but is not limited to, a self-optimizing estimation method for a dual-constrained objective neural network.
  • FIG. 5 shows a schematic flowchart of calculating a target value for patch optimization and a target value for patch tracking in an embodiment of the present invention.
  • the feature matrix of clothing patches includes negative patch array, positive patch array and complementary patch array.
  • the standard dressing patch feature matrix is sent to the first input terminal of the first multiplier 320, to the first input terminal of the second multiplier 321, and to the first input terminal of the third multiplier 322. input.
  • the negative patch array is sent to the second input of the first multiplier 320, and is multiplied with the standard dressing patch feature matrix, and the operation result is sent to the first input of the first divider 323; the positive patch array is sent to the first The second input of the 2 multiplier 321 is multiplied with the standard dressing patch feature matrix, and the operation result is sent to the first input of the second divider 324; the patch array is sent to the second of the third multiplier 322.
  • the input terminal is multiplied with the standard dressing patch feature matrix, and the operation result is sent to the first input terminal of the third divider 326; the comprehensive adjustment coefficient K given by the first setting module 325 is sent to the first divider 323
  • the second input terminal of is also sent to the second input terminal of the second divider 324 and is also sent to the second input terminal of the third divider 326 .
  • the value calculated by the first divider 323 is sent to the input terminal of the first exponent calculation module 327 to complete the exponent operation on the number divided by the 323 module; the value calculated by the second divider 324 is sent to the second exponent calculation module 328 The input terminal of 324 completes the exponent operation on the number divided by the 324 module; the value calculated by the third divider 326 is sent to the input terminal of the third exponent calculation module 329 to complete the exponent operation on the number divided by the 326 module.
  • the output of the first index calculation module 327 is sent to the input end of the first accumulation calculation module 3210 to perform the accumulation calculation of the negative patch operation data; the output of the third index calculation module 329 is sent to the input end of the second accumulation calculation module 3211, Carry out the accumulation calculation of patch patch operation data; the output of the first accumulation calculation module 3210 is sent to the first input end of the first addition module 3211, and the output of the second index calculation module 328 is sent to the second input of the first addition module 3213
  • the negative patch accumulation operation data is superimposed on the positive patch operation data to form the negative patch comprehensive calculation value;
  • the output of the second accumulation calculation module 3213 is also sent to the first input terminal of the second addition module 3212, the second The output of the exponent calculation module 328 is sent to the second input of the second addition module 3212, so that the patch patch accumulation operation data is superimposed on the positive patch operation data to form the patch patch comprehensive calculation value.
  • the output of the second exponent calculation module 328 is also sent to the first input of the fourth divider module 3214, and the output of the first addition module 3211 is sent to the second input of the fourth divider module 3214, thus completing the positive patch
  • the operation data is divided by the negative patch comprehensive calculation value; the output of the second exponent calculation module 328 is also sent to the first input of the fifth divider module 3215, and the output of the second addition module 3212 is sent to the fifth divider module 3215.
  • the positive patch operation data is divided by the comprehensive calculation value of the patch patch.
  • the output of the fourth divider module 3214 is sent to the first natural logarithm module 3216, which performs logarithmic operation on the comprehensive value calculated above; the output of the fifth divider module 3215 is sent to the second natural logarithm module 3217.
  • the calculated composite value is logarithmic.
  • the adjustment coefficient a given by the second setting module 3218 is sent to the first input terminal of the fourth multiplier 3219, and the output of the first natural logarithm module 3216 is sent to the second input terminal of the fourth multiplier 3219.
  • the multiplied output value is sent to the first output terminal of the patch comparison function calculation to obtain the patch optimization target value.
  • the adjustment coefficient b given by the third setting module 3221 is sent to the first input of the fifth multiplier 3220, and the output of the second natural logarithm module 3217 is sent to the second input of the fifth multiplier 3220.
  • the multiplied output value is sent to the second output terminal of the patch comparison function calculation to obtain the patch tracking target value.
  • the patch optimization target value and patch tracking target value are substituted into the back-propagation algorithm to adjust the patch parameters of the initial human clothing feature matrix extraction network, calculate the output of the initial human clothing feature matrix extraction network, and continuously calculate the patch tracking target. until the patch tracking target value is equal to the patch optimization target value, and the patch parameter adjustment is completed.
  • Step 206 based on the judgment result of whether the human body clothing feature matrix satisfies a preset condition, determine whether the clothing of the person corresponding to the to-be-recognized human body image is standard.
  • the preset condition includes multiple sub-conditions, and step 206 may include the following sub-steps:
  • the human body clothing feature matrix satisfies any one of the sub-conditions, it is determined that the clothing of the person corresponding to the to-be-recognized human body image does not meet the specification;
  • the human body clothing feature matrix does not satisfy all of the sub-conditions, it is determined that the clothing of the person corresponding to the to-be-recognized human body image conforms to the specification.
  • multiple sub-conditions may include, but are not limited to, not wearing short clothes, long-sleeved clothes are not work clothes, clothes are open, and clothes are damaged; the wearing of safety helmets does not meet the specification requirements and the safety helmets are damaged, etc.
  • the human body clothing feature matrix satisfies any one of the above sub-conditions, it is determined that the clothing of the person corresponding to the human body image to be recognized does not meet the specification; otherwise, if all the sub-conditions are not satisfied, it is determined that the clothing of the person corresponding to the human body image to be recognized conforms to the specification.
  • an alarm may be output to inform the monitoring personnel to perform further processing.
  • the image of the human body to be recognized is received, the image of the human body to be recognized is preprocessed, the image matrix to be recognized is generated, the target human body clothing feature matrix extraction network is used to extract the human body clothing feature matrix corresponding to the to-be-recognized image matrix, and finally based on the human body Whether the clothing feature matrix satisfies the preset conditions, it is determined whether the clothing of the person corresponding to the human body image to be recognized is standardized. Therefore, the existing target recognition methods have low recognition rate and accuracy in complex environments, and it is difficult to accurately identify whether personnel are wearing compliance, which may lead to technical problems of potential safety hazards, and effectively improve the accuracy of personnel wearing identification in complex environments. to reduce the occurrence of security risks.
  • FIG. 6 is a schematic structural diagram of an electric power operation supervision platform according to an embodiment of the present invention.
  • the physical resource layer 601 includes heterogeneous computing hardware (CPU, GPU), storage, network equipment, and security protection equipment.
  • the scheduling management layer 602 is developed based on Kubernetes and docker, and includes cluster management, resource virtualization, and task scheduling.
  • the training environment layer 603 provides services in the form of docker, including the mainstream learning frameworks TensorFlow, PyTorch, Caffe, scikit-learn, XGBoost and other machine learning/deep learning environments, while integrating JupyterHub and other interactive code debugging notebooks and MPI parallel programming interfaces .
  • the system operating environment and learning environment are iteratively managed through the docker repository.
  • the business application layer 604 includes data processing, data labeling, model training, and model publishing.
  • the model training module is based on various machine learning and deep learning training environments, and suspends training after configuring parameters through pre-written training scripts.
  • the entire training process is automatically completed by the pipeline built in the background, and model production is carried out around data processing, data labeling, training, and model management processes.
  • Model training presets TensorFlow, PyTorch, Caffe, scikit-learn, XGBoost and other learning environments through docker.
  • users can submit learning task codes to the cluster, and the task management system will allocate resources to users according to the user's quota, create an environment specified by the user, and add learning tasks to the task queue. When the resources are free, the learning program will be run. Users can submit code with one click, generate distributed tasks, and greatly reduce development costs and resource occupation.
  • FIG. 7 is a flowchart of steps of a method for identifying a dress code for electrical work provided by an embodiment of the present invention.
  • a device for identifying a dress code for electrical work provided by the present invention includes:
  • the human body image receiving module 701 to be recognized is configured to receive the human body image to be recognized
  • a to-be-recognized image matrix generation module 702 configured to perform image preprocessing on the to-be-recognized human body image to generate a to-be-recognized image matrix;
  • the human body clothing feature matrix output module 703 is used to input the to-be-recognized image matrix into the target human body clothing feature matrix extraction network, and output the human body clothing feature matrix corresponding to the to-be-recognized image matrix; wherein, the target human body clothing feature matrix
  • the extraction network is generated by the preset model training module 704;
  • the personnel dress code judgment module 705 is configured to determine whether the person corresponding to the to-be-recognized body image is dressed according to the judgment result of whether the human body dress feature matrix satisfies a preset condition.
  • the to-be-recognized image matrix generation module 702 includes:
  • an image conversion submodule for converting the to-be-recognized human body image into a first image matrix
  • a first image processing submodule configured to perform an image correction operation and an image enhancement operation on the first image matrix according to preset requirements to obtain a second image matrix
  • the second image processing submodule is configured to perform an image normalization operation and an image normalization operation on the second image matrix to generate an image matrix to be recognized.
  • model training module 704 includes:
  • the historical human body image acquisition sub-module is used to separately acquire human body images in various historical power operation scenarios
  • a standardized image matrix generation sub-module for performing image preprocessing on the human body image to generate a standardized image matrix
  • Dressing feature matrix generation sub-module for inputting the standardized image matrix into a preset initial human body dressing feature matrix extraction network to obtain a dressing feature matrix
  • the training sub-module is used for using a preset dual-core optimization algorithm in combination with the clothing feature matrix to train the initial human body clothing feature matrix extraction network to generate a target human body clothing feature matrix extraction network.
  • the preset dual-core optimization algorithm includes an overall comparison function and a patch comparison function
  • the clothing feature matrix includes an overall clothing feature matrix and a clothing patch feature matrix
  • the training submodule includes:
  • the standard overall dress feature matrix acquisition sub-module is used to obtain the standard overall dress feature matrix
  • an overall comparison function processing submodule used for importing the standard overall dressing feature matrix and the overall dressing feature matrix into the overall comparison function to obtain an optimization target value and a tracking target value;
  • an overall parameter adjustment sub-module used for adjusting the overall parameters of the initial human clothing feature matrix extraction network based on the optimization target value and the tracking target value by using a back-propagation algorithm until the tracking target value is equal to the optimization target value.
  • Standard dress patch feature matrix acquisition sub-module used to obtain standard dress patch feature matrix
  • the patch comparison function processing sub-module is used to import the dressing patch feature matrix and the standard dressing patch feature matrix into the patch comparison function to obtain the patch optimization target value and the patch tracking target value ;
  • the patch parameter adjustment sub-module is used to adjust the patch parameters of the initial human clothing feature matrix extraction network based on the patch optimization target value and the patch tracking target value by using the back-propagation algorithm until all the the patch tracking target value is equal to the patch optimization target value;
  • the target body clothing feature matrix extraction network generation sub-module is used to generate the target body clothing feature matrix when the tracking target value is equal to the optimization target value and the patch tracking target value is equal to the patch optimization target value Extract the network.
  • the preset condition includes multiple sub-conditions
  • the personnel dress code judgment module 705 includes:
  • a non-conformity determination sub-module configured to determine that the clothing of the person corresponding to the to-be-recognized human body image does not conform to the specification if the human body attire feature matrix satisfies any one of the sub-conditions;
  • a specification-compliant determination sub-module configured to determine that the clothing of the person corresponding to the to-be-recognized human body image conforms to the specification if the human body clothing feature matrix does not satisfy all of the sub-conditions.
  • the disclosed apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Evolutionary Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Human Computer Interaction (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Public Health (AREA)
  • Water Supply & Treatment (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Image Analysis (AREA)

Abstract

Provided are a method and apparatus for identifying a dress code for electric power operations, comprising: receiving a human body image to be recognized; performing image pre-processing of the human body image to be recognized to generate an image matrix to be recognized; inputting the image matrix to be recognized into a target human-body dressing feature matrix extraction network, and outputting a human dress feature matrix corresponding to the image matrix to be recognized; the target human dressing feature matrix extraction network is generated by means of a pre-programmed model training process; on the basis of a result of determination of whether the human dressing feature matrix satisfies a preset condition, determining whether a person corresponding to the human body image to be recognized is dressed in a standardized manner. Thus the accuracy of recognition of dress of personnel in complex environments is effectively improved, reducing the occurrence of safety hazards.

Description

一种电力作业着装规范识别方法和装置Method and device for identifying dress code for electrical work
本申请要求于2020年12月11日提交中国专利局、申请号为202011452940.6、发明名称为“一种电力作业着装规范识别方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on December 11, 2020 with the application number 202011452940.6 and the invention titled "A method and device for identifying a dress code for electrical work", the entire contents of which are incorporated by reference in in this application.
技术领域technical field
本申请涉及着装识别技术领域,尤其涉及一种电力作业着装规范识别方法和装置。The present application relates to the technical field of dress identification, and in particular, to a method and device for identifying a dress code for electrical work.
背景技术Background technique
随着社会经济的快速发展和科技水平的不断提升,近年来我国电力事业得到了迅猛发展,在电力生产过程,对作业人员着装穿戴有严格的要求,需要实时监测现场作业人员有没穿合适的工作服、戴安全帽,而且在整个工作过程中:不能敞胸露背,不能挽起袖子,卷起裤脚,工作服要保持完好,安全帽不能有破损,甚至还要求工作服须是棉质面料等等。在作业过程,如发现现场作业人员穿戴不合规要及时发出报警并将人员的图像进行记录。With the rapid development of the social economy and the continuous improvement of the level of science and technology, my country's electric power industry has developed rapidly in recent years. In the process of electric power production, there are strict requirements on the clothing and clothing of operators, and it is necessary to monitor in real time whether the on-site operators are wearing appropriate clothing. Work clothes and safety helmets, and during the entire work process: do not open your chest and back, roll up your sleeves, roll up your trousers, keep your work clothes in good condition, your safety helmets must not be damaged, and even require that your work clothes be made of cotton, etc. . In the process of operation, if it is found that the on-site operators are wearing non-compliant clothes, an alarm should be issued in time and the images of the personnel should be recorded.
但在电力生产过程,现场作业人员多在野外工作,现场光照情况变化无常、工作环境千差万别、工作位置时刻变化、人体姿态不断变化,这对人员穿戴合规性检测、识别算法提出了严苛的要求,尤其是遇到人员穿戴细微的不合规情况:敞胸露背、挽起袖子、卷起裤脚、服装的面料不合规、安全帽等有破损等问题时,现有的目标识别方法的识别率较低,难以准确识别人员穿着是否合规,可能会导致安全隐患。However, in the process of power production, most of the field operators work in the field. The lighting conditions on the site are fickle, the working environment varies widely, the working position changes all the time, and the posture of the human body changes constantly. requirements, especially when there are minor non-compliances in personnel wearing: open chest and back, rolled up sleeves, rolled up trousers, non-compliant fabrics of clothing, damaged helmets, etc., the existing target identification methods The recognition rate of the device is low, and it is difficult to accurately identify whether the personnel are dressed in compliance, which may lead to safety hazards.
发明内容SUMMARY OF THE INVENTION
本发明提供了一种电力作业着装规范识别方法和装置,解决了现有的目标识别方法在复杂环境中识别率与准确率较低,难以准确识别人员穿着是否合规,可能会导致安全隐患的技术问题。The present invention provides a method and device for identifying the dress code for electrical work, which solves the problem that the existing target identification method has low identification rate and accuracy rate in complex environment, it is difficult to accurately identify whether personnel are dressed in compliance with regulations, which may lead to potential safety hazards. technical problem.
本发明提供的一种电力作业着装规范识别方法,包括:A method for identifying a dress code for electrical work provided by the present invention includes:
接收待识别人体图像;Receive the image of the human body to be recognized;
对所述待识别人体图像进行图像预处理,生成待识别图像矩阵;Perform image preprocessing on the to-be-recognized human body image to generate a to-be-recognized image matrix;
将所述待识别图像矩阵输入到目标人体着装特征矩阵提取网络,输出所述待识别图像矩阵对应的人体着装特征矩阵;其中,所述目标人体着装特征矩阵提取网络通过预置的模型训练过程所生成;The to-be-recognized image matrix is input into the target human body clothing feature matrix extraction network, and the human body clothing feature matrix corresponding to the to-be-identified image matrix is output; wherein, the target human body clothing feature matrix extraction network is obtained through a preset model training process. generate;
基于所述人体着装特征矩阵是否满足预设条件的判断结果,确定所述待识别人体图像对应的人员着装是否规范。Based on the judgment result of whether the human body clothing feature matrix satisfies the preset condition, it is determined whether the clothing of the person corresponding to the to-be-recognized human body image is standardized.
可选地,所述对所述待识别人体图像进行图像预处理,生成待识别图像矩阵的步骤,包括:Optionally, the step of performing image preprocessing on the to-be-recognized human body image to generate a to-be-recognized image matrix includes:
将所述待识别人体图像转换为第一图像矩阵;converting the to-be-identified human body image into a first image matrix;
按照预设要求对所述第一图像矩阵执行图像矫正操作和图像增强操作,得到第二图像矩阵;Perform an image correction operation and an image enhancement operation on the first image matrix according to preset requirements to obtain a second image matrix;
对所述第二图像矩阵执行图像标准化操作和图像归一化操作,生成待识别图像矩阵。An image normalization operation and an image normalization operation are performed on the second image matrix to generate a to-be-identified image matrix.
可选地,所述模型训练过程包括:Optionally, the model training process includes:
分别获取多种历史电力作业场景中的人体图像;Respectively obtain human body images in various historical power operation scenarios;
对所述人体图像进行图像预处理,生成标准化图像矩阵;performing image preprocessing on the human body image to generate a standardized image matrix;
将所述标准化图像矩阵输入到预设的初始人体着装特征矩阵提取网络,得到着装特征矩阵;Inputting the standardized image matrix into a preset initial human body clothing feature matrix extraction network to obtain a clothing feature matrix;
采用预设双核优化算法结合所述着装特征矩阵,对所述初始人体着装特征矩阵提取网络进行训练,生成目标人体着装特征矩阵提取网络。A preset dual-core optimization algorithm is used in combination with the clothing feature matrix to train the initial human body clothing feature matrix extraction network to generate a target human body clothing feature matrix extraction network.
可选地,所述预设双核优化算法包括整体比对函数和斑块比对函数,所述着装特征矩阵包括整体着装特征矩阵和着装斑块特征矩阵,所述采用预设双核优化模型结合所述着装特征矩阵,对所述初始人体着装特征矩阵提取网络进行训练,生成目标人体着装特征矩阵提取网络的步骤,包括:Optionally, the preset dual-core optimization algorithm includes an overall comparison function and a patch comparison function, the clothing feature matrix includes an overall clothing feature matrix and a clothing patch feature matrix, and the preset dual-core optimization model is combined with the Describe the clothing feature matrix, the steps of training the initial human body clothing feature matrix extraction network to generate the target human body clothing feature matrix extraction network, including:
获取标准整体着装特征矩阵;Get the standard overall dress feature matrix;
将所述标准整体着装特征矩阵和所述整体着装特征矩阵导入到所述整体比对函数,得到优化目标值和跟踪目标值;importing the standard overall clothing feature matrix and the overall clothing feature matrix into the overall comparison function to obtain an optimization target value and a tracking target value;
基于所述优化目标值和所述跟踪目标值,采用反向传播算法调整所述初始人体着装特征矩阵提取网络的整体参数,直至所述跟踪目标值等于所述优化目标值。Based on the optimization target value and the tracking target value, a back-propagation algorithm is used to adjust the overall parameters of the initial human clothing feature matrix extraction network until the tracking target value is equal to the optimization target value.
获取标准着装斑块特征矩阵;Get the standard attire patch feature matrix;
将所述着装斑块特征矩阵和所述标准着装斑块特征矩阵导入到所述斑块比对函数,得到斑块优化目标值和斑块跟踪目标值;importing the attire patch feature matrix and the standard attire patch feature matrix into the patch comparison function to obtain a patch optimization target value and a patch tracking target value;
基于所述斑块优化目标值和所述斑块跟踪目标值,采用所述反向传播算法调整所述初始人体着装特征矩阵提取网络的斑块参数,直至所述斑块跟踪目标值等于所述斑块优化目标值;Based on the patch optimization target value and the patch tracking target value, the back-propagation algorithm is used to adjust the patch parameters of the initial human clothing feature matrix extraction network until the patch tracking target value is equal to the Plaque optimization target value;
当所述跟踪目标值等于所述优化目标值,且所述斑块跟踪目标值等于所述斑块优化目标值时,生成目标人体着装特征矩阵提取网络。When the tracking target value is equal to the optimization target value, and the patch tracking target value is equal to the patch optimization target value, a target human body clothing feature matrix extraction network is generated.
可选地,所述预设条件包括多个子条件,所述基于所述人体着装特征矩阵是否满足预设条件的判断结果,确定所述待识别人体图像对应的人员着装是否规范的步骤,包括:Optionally, the preset condition includes a plurality of sub-conditions, and the step of determining whether the clothing of the person corresponding to the to-be-recognized human body image is standardized based on the judgment result of whether the human body clothing feature matrix satisfies the preset condition includes:
若所述人体着装特征矩阵满足任一个所述子条件,则确定所述待识别人体图像对应的人员着装不符合规范;If the human body clothing feature matrix satisfies any one of the sub-conditions, it is determined that the clothing of the person corresponding to the to-be-recognized human body image does not meet the specification;
若所述人体着装特征矩阵不满足全部所述子条件,则确定所述待识别人体图像对应的人员着装符合规范。If the human body clothing feature matrix does not satisfy all of the sub-conditions, it is determined that the clothing of the person corresponding to the to-be-recognized human body image conforms to the specification.
本发明还提供了一种电力作业着装规范识别装置,包括:The present invention also provides a device for identifying a dress code for electrical work, comprising:
待识别人体图像接收模块,用于接收待识别人体图像;A human body image receiving module to be recognized, used for receiving the human body image to be recognized;
待识别图像矩阵生成模块,用于对所述待识别人体图像进行图像预处理,生成待识别图像矩阵;A to-be-recognized image matrix generation module, configured to perform image preprocessing on the to-be-recognized human body image to generate a to-be-recognized image matrix;
人体着装特征矩阵输出模块,用于将所述待识别图像矩阵输入到目标人体着装特征矩阵提取网络,输出所述待识别图像矩阵对应的人体着装特征矩阵;其中,所述目标人体着装特征矩阵提取网络通过预置的模型训练模块所生成;The human body clothing feature matrix output module is used for inputting the to-be-recognized image matrix into the target human body clothing feature matrix extraction network, and outputting the human body clothing feature matrix corresponding to the to-be-identified image matrix; wherein, the target human body clothing feature matrix extraction The network is generated by the preset model training module;
人员着装规范判断模块,用于基于所述人体着装特征矩阵是否满足预设条件的判断结果,确定所述待识别人体图像对应的人员着装是否规范。A personnel dress code judging module is configured to determine whether the person corresponding to the to-be-recognized human body image is dressed according to the judgment result of whether the human body dress feature matrix satisfies a preset condition.
可选地,所述待识别图像矩阵生成模块包括:Optionally, the to-be-recognized image matrix generation module includes:
图像转换子模块,用于将所述待识别人体图像转换为第一图像矩阵;an image conversion submodule for converting the to-be-recognized human body image into a first image matrix;
第一图像处理子模块,用于按照预设要求对所述第一图像矩阵执行图像矫正操作和图像增强操作,得到第二图像矩阵;a first image processing submodule, configured to perform an image correction operation and an image enhancement operation on the first image matrix according to preset requirements to obtain a second image matrix;
第二图像处理子模块,用于对所述第二图像矩阵执行图像标准化操作和图像归一化操作,生成待识别图像矩阵。The second image processing submodule is configured to perform an image normalization operation and an image normalization operation on the second image matrix to generate an image matrix to be recognized.
可选地,所述模型训练模块包括:Optionally, the model training module includes:
历史人体图像获取子模块,用于分别获取多种历史电力作业场景中的人体图像;The historical human body image acquisition sub-module is used to separately acquire human body images in various historical power operation scenarios;
标准化图像矩阵生成子模块,用于对所述人体图像进行图像预处理,生成标准化图像矩阵;A standardized image matrix generation sub-module for performing image preprocessing on the human body image to generate a standardized image matrix;
着装特征矩阵生成子模块,用于将所述标准化图像矩阵输入到预设的初始人体着装特征矩阵提取网络,得到着装特征矩阵;Dressing feature matrix generation sub-module for inputting the standardized image matrix into a preset initial human body dressing feature matrix extraction network to obtain a dressing feature matrix;
训练子模块,用于采用预设双核优化算法结合所述着装特征矩阵,对所述初始人体着装特征矩阵提取网络进行训练,生成目标人体着装特征矩阵提取网络。The training sub-module is used for using a preset dual-core optimization algorithm in combination with the clothing feature matrix to train the initial human body clothing feature matrix extraction network to generate a target human body clothing feature matrix extraction network.
可选地,所述预设双核优化算法包括整体比对函数和斑块比对函数,所述着装特征矩阵包括整体着装特征矩阵和着装斑块特征矩阵,所述训练子模块包括:Optionally, the preset dual-core optimization algorithm includes an overall comparison function and a patch comparison function, the dressing feature matrix includes an overall dressing feature matrix and a dressing patch feature matrix, and the training submodule includes:
标准整体着装特征矩阵获取子模块,用于获取标准整体着装特征矩阵;The standard overall dress feature matrix acquisition sub-module is used to obtain the standard overall dress feature matrix;
整体比对函数处理子模块,用于将所述标准整体着装特征矩阵和所述整体着装特征矩阵导入到所述整体比对函数,得到优化目标值和跟踪目标值;an overall comparison function processing submodule, used for importing the standard overall dressing feature matrix and the overall dressing feature matrix into the overall comparison function to obtain an optimization target value and a tracking target value;
整体参数调整子模块,用于基于所述优化目标值和所述跟踪目标值,采用反向传播算法调整所述初始人体着装特征矩阵提取网络的整体参数,直至所述跟踪目标值等于所述优化目标值。an overall parameter adjustment sub-module, used for adjusting the overall parameters of the initial human clothing feature matrix extraction network based on the optimization target value and the tracking target value by using a back-propagation algorithm until the tracking target value is equal to the optimization target value.
标准着装斑块特征矩阵获取子模块,用于获取标准着装斑块特征矩阵;Standard dress patch feature matrix acquisition sub-module, used to obtain standard dress patch feature matrix;
斑块比对函数处理子模块,用于将所述着装斑块特征矩阵和所述标准着装斑块特征矩阵导入到所述斑块比对函数,得到斑块优化目标值和斑块跟踪目标值;The patch comparison function processing sub-module is used to import the dressing patch feature matrix and the standard dressing patch feature matrix into the patch comparison function to obtain the patch optimization target value and the patch tracking target value ;
斑块参数调整子模块,用于基于所述斑块优化目标值和所述斑块跟踪目标值,采用所述反向传播算法调整所述初始人体着装特征矩阵提取网络的斑块参数,直至所述斑块跟踪目标值等于所述斑块优化目标值;The patch parameter adjustment sub-module is used to adjust the patch parameters of the initial human clothing feature matrix extraction network based on the patch optimization target value and the patch tracking target value by using the back-propagation algorithm until all the the patch tracking target value is equal to the patch optimization target value;
目标人体着装特征矩阵提取网络生成子模块,用于当所述跟踪目标值等于所述优化目标值,且所述斑块跟踪目标值等于所述斑块优化目标值时,生成目标人体着装特征矩阵提取网络。The target body clothing feature matrix extraction network generation sub-module is used to generate the target body clothing feature matrix when the tracking target value is equal to the optimization target value and the patch tracking target value is equal to the patch optimization target value Extract the network.
可选地,所述预设条件包括多个子条件,所述人员着装规范判断模块包括:Optionally, the preset condition includes multiple sub-conditions, and the personnel dress code judgment module includes:
不符合规范判定子模块,用于若所述人体着装特征矩阵满足任一个所述子条件,则确定所述待识别人体图像对应的人员着装不符合规范;A non-conformity determination sub-module, configured to determine that the clothing of the person corresponding to the to-be-recognized human body image does not conform to the specification if the human body attire feature matrix satisfies any one of the sub-conditions;
符合规范判定子模块,用于若所述人体着装特征矩阵不满足全部所述子条件,则确定所述待识别人体图像对应的人员着装符合规范。A specification-compliant determination sub-module, configured to determine that the clothing of the person corresponding to the to-be-recognized human body image conforms to the specification if the human body clothing feature matrix does not satisfy all of the sub-conditions.
从以上技术方案可以看出,本发明具有以下优点:As can be seen from the above technical solutions, the present invention has the following advantages:
本发明通过接收待识别人体图像,对待识别人体图像进行图像预处理,生成待识别图像矩阵,再采用目标人体着装特征矩阵提取网络提取待识别图像矩阵对应的人体着装特征矩阵,最后基于人体着装特征矩阵是否满足预设条件,确定待识别人体图像对应的人员着装是否规范。从而解决现有的目标识别方法在复杂环境中识别率与准确率较低,难以准确识别人员穿着是否合规,可能会导致安全隐患的技术问题,有效提高在复杂环境中对人员穿着识别的准确性,降低安全隐患的发生。The present invention receives the image of the human body to be recognized, performs image preprocessing on the image of the human body to be recognized, generates the image matrix to be recognized, and then uses the target human body clothing feature matrix extraction network to extract the human body clothing feature matrix corresponding to the to-be-recognized image matrix, and finally, based on the human body clothing feature Whether the matrix satisfies the preset conditions determines whether the dress code of the person corresponding to the human body image to be recognized is standardized. Therefore, the existing target recognition methods have low recognition rate and accuracy in complex environments, and it is difficult to accurately identify whether personnel are wearing compliance, which may lead to technical problems of potential safety hazards, and effectively improve the accuracy of personnel wearing identification in complex environments. to reduce the occurrence of security risks.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为本发明实施例提供的一种电力作业着装规范识别方法的步骤流程图;1 is a flowchart of steps of a method for identifying a dress code for electrical work provided by an embodiment of the present invention;
图2为本发明可选实施例提供的一种电力作业着装规范识别方法的步骤流程图;2 is a flow chart of steps of a method for identifying a dress code for electrical work provided by an optional embodiment of the present invention;
图3为本发明实施例中的初始人体着装特征矩阵提取网络训练过程的流程示意图;3 is a schematic flowchart of a network training process for extracting an initial human body dress feature matrix according to an embodiment of the present invention;
图4为本发明实施例中计算优化目标值和跟踪目标值的流程示意图;4 is a schematic flowchart of calculating an optimization target value and a tracking target value in an embodiment of the present invention;
图5为本发明实施例中计算斑块优化目标值和斑块跟踪目标值的流程示意图;5 is a schematic flowchart of calculating a patch optimization target value and a patch tracking target value in an embodiment of the present invention;
图6为本发明实施例提供的一种电力作业监管平台的结构示意图;6 is a schematic structural diagram of a power operation supervision platform provided by an embodiment of the present invention;
图7为本发明实施例提供的一种电力作业着装规范识别装置的结构框图。FIG. 7 is a structural block diagram of an apparatus for identifying a dress code for electrical work according to an embodiment of the present invention.
具体实施方式Detailed ways
本发明实施例提供了一种电力作业着装规范识别方法和装置,用于解决现有的目标识别方法在复杂环境中识别率与准确率较低,难以准确识别人员穿着是否合规,可能会导致安全隐患的技术问题。The embodiments of the present invention provide a method and device for identifying a dress code for electrical work, which are used to solve the problem that the existing target identification method has a low recognition rate and accuracy rate in a complex environment, and it is difficult to accurately identify whether a person's clothing is compliant, which may lead to Technical issues with security risks.
为使得本发明的发明目的、特征、优点能够更加的明显和易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,下面所描述的实施例仅仅是本发明一部分实施例,而非全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the following The described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
请参阅图1,图1为本发明实施例提供的一种电力作业着装规范识别方法的步骤流程图。Please refer to FIG. 1 . FIG. 1 is a flowchart of steps of a method for identifying a dress code for electrical work provided by an embodiment of the present invention.
本发明提供的一种电力作业着装规范识别方法,包括:A method for identifying a dress code for electrical work provided by the present invention includes:
步骤101,接收待识别人体图像; Step 101, receiving an image of a human body to be identified;
待识别人体图像指的是在电力作业场景中存在电力作业人员的图像。The to-be-recognized human image refers to an image in which an electric power operator exists in the electric power work scene.
在本发明实施例中,在电力作业场景中通常具有对应的监控设备例如摄像头,以确保电力作业的安全性,此时为确定电力作业人员的着装是否规范,可以从监控视频流中采用目标检测算法获取待识别人体图像,以确定存在作业人员的图像。In this embodiment of the present invention, there is usually a corresponding monitoring device such as a camera in the power work scene to ensure the safety of the power work. At this time, in order to determine whether the dress of the power worker is standard, target detection can be used from the monitoring video stream. The algorithm acquires the image of the human body to be recognized to determine the presence of the image of the operator.
可选地,还可以预定周期为获取时刻,获取对应时刻的待识别人体图像。Optionally, the predetermined period may be the acquisition time, and the image of the human body to be recognized at the corresponding time is acquired.
值得一提的是,具体从视频流中获取到待识别人体图像所使用的目标检测算法本发明实施例并不限制。It is worth mentioning that the embodiment of the present invention is not limited to the target detection algorithm used to obtain the human body image to be recognized from the video stream.
步骤102,对所述待识别人体图像进行图像预处理,生成待识别图像矩阵; Step 102, performing image preprocessing on the to-be-recognized human body image to generate a to-be-recognized image matrix;
在获取到待识别人体图像后,可以对待识别人体图像进行图像预处理,以得到例如不同光照不同场景不同角度下的待识别图像矩阵。After acquiring the image of the human body to be recognized, image preprocessing can be performed on the image of the human body to be recognized, so as to obtain, for example, a matrix of images to be recognized under different illuminations, different scenes and different angles.
步骤103,将所述待识别图像矩阵输入到目标人体着装特征矩阵提取网络,输出所述待识别图像矩阵对应的人体着装特征矩阵; Step 103, inputting the to-be-recognized image matrix into the target human body clothing feature matrix extraction network, and outputting the human body clothing feature matrix corresponding to the to-be-recognized image matrix;
人体着装特征矩阵包括但不限于以下特征:工作服内衬特征、长袖工作服特征、衣服敞开特征、衣服破损特征、安全帽佩戴特征和安全帽破损特征等The human clothing feature matrix includes but is not limited to the following features: overalls lining features, long-sleeved overalls features, clothing opening features, clothing damage features, helmet wearing characteristics, and helmet damage characteristics, etc.
在具体实现中,所述目标人体着装特征矩阵提取网络通过预置的模型训练过程所生成,将待识别图像矩阵输入到目标人体着装特征矩阵提取网络,以获取到待识别图像矩阵对应的人体着装特征矩阵。In a specific implementation, the target human body clothing feature matrix extraction network is generated through a preset model training process, and the to-be-recognized image matrix is input into the target human body clothing feature matrix extraction network to obtain the human body clothing corresponding to the to-be-recognized image matrix. feature matrix.
值得一提的是,为进一步提高识别的准确度,可以在步骤102的过程中生成不同尺度的待识别图像矩阵,以便于确定不同尺度下的人体着装特征矩阵。It is worth mentioning that, in order to further improve the recognition accuracy, image matrices of different scales to be recognized may be generated in the process of step 102, so as to facilitate the determination of the human body clothing feature matrices under different scales.
步骤104,基于所述人体着装特征矩阵是否满足预设条件的判断结果,确定所述待识别人体图像对应的人员着装是否规范。 Step 104 , based on the judgment result of whether the human body clothing feature matrix satisfies a preset condition, determine whether the clothing of the person corresponding to the to-be-recognized human body image is standard.
在获取到人体着装特征矩阵后,可以基于人体着装特征矩阵是否满足预设条件的判断结果,进一步确定待识别人体图像所对应的人员着装是否规范,从而确定是否需要发出警告,以降低安全隐患的发生。After obtaining the human body clothing feature matrix, it can be further determined whether the clothing of the person corresponding to the human body image to be recognized is standardized based on the judgment result of whether the human body clothing feature matrix satisfies the preset conditions, so as to determine whether a warning needs to be issued to reduce the potential safety hazards. occur.
在本发明实施例中,通过接收待识别人体图像,对待识别人体图像进行图像预处理,生成待识别图像矩阵,再采用目标人体着装特征矩阵提取网络提取待识别图像矩阵对应的人体着装特征矩阵,最后基于人体着装特征矩阵是否满足预设条件,确定待识别人体图像对应的人员着装是否规范。从而解决现有的目标识别方法在复杂环境中识别率与准确率较低,难以准 确识别人员穿着是否合规,可能会导致安全隐患的技术问题,有效提高在复杂环境中对人员穿着识别的准确性,降低安全隐患的发生。In the embodiment of the present invention, by receiving the image of the human body to be recognized, performing image preprocessing on the image of the human body to be recognized, generating the image matrix to be recognized, and then using the target human body clothing feature matrix extraction network to extract the human body clothing feature matrix corresponding to the to-be-recognized image matrix, Finally, based on whether the human body clothing feature matrix satisfies the preset conditions, it is determined whether the clothing of the person corresponding to the human body image to be recognized is standardized. Therefore, the existing target recognition methods have low recognition rate and accuracy in complex environments, and it is difficult to accurately identify whether personnel are wearing compliance, which may lead to technical problems of potential safety hazards, and effectively improve the accuracy of personnel wearing identification in complex environments. to reduce the occurrence of security risks.
请参阅图2,图2为本发明可选实施例提供的一种电力作业着装规范识别方法的步骤流程图。Please refer to FIG. 2 , which is a flowchart of steps of a method for identifying a dress code for electrical work provided by an optional embodiment of the present invention.
本发明提供的一种电力作业着装规范识别方法,包括:A method for identifying a dress code for electrical work provided by the present invention includes:
步骤201,接收待识别人体图像; Step 201, receiving an image of a human body to be identified;
在本发明实施例中,步骤201的具体实施过程与上述步骤102相同,在此不再赘述。In this embodiment of the present invention, the specific implementation process of step 201 is the same as that of step 102 above, and details are not described herein again.
在本发明可选实施例中,上述步骤102中的技术特征“对所述待识别人体图像进行图像预处理,生成待识别图像矩阵”可以替换为以下步骤202-204:In an optional embodiment of the present invention, the technical feature in the above step 102 "to perform image preprocessing on the to-be-recognized human body image to generate a to-be-recognized image matrix" can be replaced with the following steps 202-204:
步骤202,将所述待识别人体图像转换为第一图像矩阵; Step 202, converting the to-be-identified human body image into a first image matrix;
在本发明实施例中,可以通过对待识别人体图像进行裁剪或缩放的转换操作,从而生成第一图像矩阵。In this embodiment of the present invention, the first image matrix may be generated by performing a transformation operation of cropping or scaling on the image of the human body to be recognized.
进一步地,为提高图像的检测精度,可以将待识别人体图像转换为多尺度的第一图像矩阵,以满足后续对不同尺度的图像处理。Further, in order to improve the detection accuracy of the image, the image of the human body to be recognized may be converted into a multi-scale first image matrix to satisfy subsequent image processing of different scales.
步骤203,按照预设要求对所述第一图像矩阵执行图像矫正操作和图像增强操作,得到第二图像矩阵; Step 203, performing an image correction operation and an image enhancement operation on the first image matrix according to preset requirements to obtain a second image matrix;
在本发明的一个示例中,可以按照预设要求例如用户输入的图像矫正幅度、图像增强的对象与增强幅度等,对所述第一图像矩阵执行对应的图像矫正操作和图像增强操作,以得到更为适合图像识别的第二图像矩阵。In an example of the present invention, a corresponding image correction operation and an image enhancement operation may be performed on the first image matrix according to preset requirements, such as the image correction magnitude input by the user, the object of image enhancement and the enhancement magnitude, etc., to obtain A second image matrix more suitable for image recognition.
图像矫正操作指的是根据图像特征自动检测图像倾斜方向和倾斜角度,进一步依据检测的信息对图像进行图像位置的矫正。The image correction operation refers to automatically detecting the tilt direction and tilt angle of the image according to the image features, and further correcting the image position according to the detected information.
图像增强操作指的是增强图像中的有用信息,它可以是一个失真的过程,其目的是要改善图像的视觉效果,针对给定图像的应用场合。有目的地强调图像的整体或局部特性,将原来不清晰的图像变得清晰或强调某些感兴趣的特征,扩大图像中不同物体特征之间的差别,抑制不感兴趣的特征,使之改善图像质量、丰富信息量,加强图像判读和识别效果,满足某 些特殊分析的需要。Image enhancement refers to the enhancement of useful information in an image, which can be a distortion process whose purpose is to improve the visual effect of an image for a given image application. Purposefully emphasize the overall or local characteristics of the image, make the original unclear image clear or emphasize some interesting features, expand the difference between the features of different objects in the image, suppress the uninteresting features, and improve the image. Quality, rich information, strengthen image interpretation and recognition effect, to meet the needs of some special analysis.
步骤204,对所述第二图像矩阵执行图像标准化操作和图像归一化操作,生成待识别图像矩阵。 Step 204 , performing an image normalization operation and an image normalization operation on the second image matrix to generate a to-be-identified image matrix.
在得到第二图像矩阵后,对第二图像矩阵可以采用零均值规范处理以实现图像标准化操作,再对图像标准化后的图像矩阵进行图像归一化操作,将图像矩阵转换为[-1,1]的浮点型矩阵,以得到待识别图像矩阵。After the second image matrix is obtained, the second image matrix can be processed by zero mean normalization to realize the image normalization operation, and then the image normalization operation is performed on the image matrix after image normalization, and the image matrix is converted into [-1, 1 ] to obtain the matrix of images to be recognized.
零均值规范处理指的是采用图像矩阵中的每个变量减去它们的均值。Zero-mean canonical processing refers to taking each variable in the image matrix and subtracting their mean.
图像归一化操作指的是采用图像矩阵中的每个变量减去它们的均值,再除以标准差。The image normalization operation refers to taking each variable in the image matrix minus their mean and dividing by the standard deviation.
步骤205,将所述待识别图像矩阵输入到目标人体着装特征矩阵提取网络,输出所述待识别图像矩阵对应的人体着装特征矩阵; Step 205, inputting the to-be-recognized image matrix into the target human body clothing feature matrix extraction network, and outputting the human body clothing feature matrix corresponding to the to-be-recognized image matrix;
可选地,所述待识别图像矩阵中还包括各个人员的框坐标和置信度,将待识别图像矩阵输入到目标人体着装特征矩阵提取网络,以获取到置信度较高,且位于框坐标内的人体着装特征矩阵。Optionally, the to-be-recognized image matrix also includes frame coordinates and confidence levels of each person, and the to-be-recognized image matrix is input into the target human body clothing feature matrix extraction network to obtain a higher confidence level and is located within the frame coordinates. Matrix of Human Dressing Characteristics.
其中,所述目标人体着装特征矩阵提取网络通过预置的模型训练过程所生成;Wherein, the target human body clothing feature matrix extraction network is generated through a preset model training process;
进一步地,所述模型训练过程包括以下步骤S1-S4:Further, the model training process includes the following steps S1-S4:
S1、分别获取多种历史电力作业场景中的人体图像;S1. Respectively acquire human body images in various historical power operation scenarios;
S2、对所述人体图像进行图像预处理,生成标准化图像矩阵;S2, performing image preprocessing on the human body image to generate a standardized image matrix;
S3、将所述标准化图像矩阵输入到预设的初始人体着装特征矩阵提取网络,得到着装特征矩阵;S3, inputting the standardized image matrix into a preset initial human body clothing feature matrix extraction network to obtain a clothing feature matrix;
在本发明实施例中,可以分别获取多种历史电力作业场景中的人体图像,例如不同光照、不同高度或不同角度等电力作业场景下的人体图像;对所述人体图像进行图像预处理,以生成标准化图像矩阵;再将所述标准化图像矩阵输入到预设的初始人体着装特征矩阵提取网络,以得到标准化图像矩阵内的着装特征矩阵。In this embodiment of the present invention, human body images in various historical power work scenarios, such as human body images in power work scenarios with different lighting, different heights, or different angles, can be obtained respectively; image preprocessing is performed on the human body images to generating a standardized image matrix; and then inputting the standardized image matrix into a preset initial human body clothing feature matrix extraction network to obtain a clothing feature matrix in the standardized image matrix.
可选地,初始人体着装特征矩阵提取网络可以选用卷积神经网络(Convolutional Neural Network,CNN)构建而成,并融合数据增强技术和锚设计策略,以提高在不同尺度、背景、照明下人体检测的准确度。Optionally, the initial human clothing feature matrix extraction network can be constructed by using Convolutional Neural Network (CNN), and integrate data enhancement technology and anchor design strategy to improve human detection under different scales, backgrounds, and lighting. accuracy.
其中,图像预处理的具体实施过程与上述步骤202-204相同,在此不再赘述。The specific implementation process of the image preprocessing is the same as the above steps 202-204, which will not be repeated here.
S4、采用预设双核优化算法结合所述着装特征矩阵,对所述初始人体着装特征矩阵提取网络进行训练,生成目标人体着装特征矩阵提取网络。S4 , using a preset dual-core optimization algorithm combined with the clothing feature matrix to train the initial human body clothing feature matrix extraction network to generate a target human body clothing feature matrix extraction network.
请参见图3,图3示出了本发明实施例中的初始人体着装特征矩阵提取网络训练过程的流程示意图。Referring to FIG. 3 , FIG. 3 shows a schematic flowchart of a network training process for extracting an initial human clothing feature matrix in an embodiment of the present invention.
其中包括将着装特征矩阵分别输入到整体比对函数计算模块31和斑块比对函数计算模块32,以整体比对函数计算模块的输出输入到整体比对模型参数优化模块33,得到最优的优化目标值和跟踪目标值;以斑块比对函数计算模块的输出输入到斑块比对模型参数优化模块34,得到最优的斑块优化目标值和斑块跟踪目标值。It includes inputting the clothing feature matrix into the overall comparison function calculation module 31 and the patch comparison function calculation module 32 respectively, and inputting the output of the overall comparison function calculation module into the overall comparison model parameter optimization module 33 to obtain the optimal Optimize the target value and the tracking target value; input the output of the patch comparison function calculation module to the patch comparison model parameter optimization module 34 to obtain the optimal patch optimization target value and patch tracking target value.
在本发明的一个示例中,所述预设双核优化算法包括整体比对函数和斑块比对函数,所述着装特征矩阵包括整体着装特征矩阵和着装斑块特征矩阵,步骤S4可以包括以下子步骤S41-S47:In an example of the present invention, the preset dual-kernel optimization algorithm includes an overall alignment function and a patch alignment function, the clothing feature matrix includes an overall clothing feature matrix and a clothing patch feature matrix, and step S4 may include the following sub-components Steps S41-S47:
S41、获取标准整体着装特征矩阵;S41. Obtain a standard overall dress feature matrix;
S42、将所述标准整体着装特征矩阵和所述整体着装特征矩阵导入到所述整体比对函数,得到优化目标值和跟踪目标值;S42, importing the standard overall clothing feature matrix and the overall clothing feature matrix into the overall comparison function to obtain an optimization target value and a tracking target value;
S43、基于所述优化目标值和所述跟踪目标值,采用反向传播算法调整所述初始人体着装特征矩阵提取网络的整体参数,直至所述跟踪目标值等于所述优化目标值。S43. Based on the optimization target value and the tracking target value, use a back-propagation algorithm to adjust the overall parameters of the initial human body clothing feature matrix extraction network until the tracking target value is equal to the optimization target value.
请参见图4,图4示出了本发明实施例中计算优化目标值和跟踪目标值的流程示意图;Referring to FIG. 4, FIG. 4 shows a schematic flowchart of calculating an optimization target value and a tracking target value in an embodiment of the present invention;
在本实施例中,将所得到的整体着装特征矩阵送到第1加法器模块310的第1输入端,标准整体着装特征矩阵送到第1加法器模块310的第2输入端;第1加法器模块310的输出送到第1除法器模块311的第2输入端,第1加法器模块310的输出还送到第2除法器模块312的第2输入端。In this embodiment, the obtained overall dressing feature matrix is sent to the first input of the first adder module 310, and the standard overall dressing feature matrix is sent to the second input of the first adder module 310; the first addition The output of the divider module 310 is sent to the second input terminal of the first divider module 311 , and the output of the first adder module 310 is also sent to the second input terminal of the second divider module 312 .
整体着装特征矩阵还送到第1除法器模块311的第1输入端,这样就在第1除法器模块311里完成了整体着装特征矩阵除以第1加法器模块310的输出的矩阵运算。第1除法器模块311完成的除法输出值送到第1自然 对数模块313,第1自然对数模块313计算出的对数值输出送到整体比对函数的第1输出端,得到优化目标值。The overall dressing feature matrix is also sent to the first input terminal of the first divider module 311 , so that the matrix operation of dividing the overall dressing feature matrix by the output of the first adder module 310 is completed in the first divider module 311 . The division output value completed by the first divider module 311 is sent to the first natural logarithm module 313, and the logarithmic value calculated by the first natural logarithm module 313 is output to the first output of the overall comparison function to obtain the optimization target value .
标准整体着装特征矩阵还送到第2除法器模块312的第1输入端,这样就在第2除法器模块312里完成了标准整体着装特征矩阵除以第1加法器模块310的输出的矩阵运算。第2除法器模块312完成的除法计算值送到第2自然对数模块314,第2自然对数模块314计算出的对数值输出送到整体比对函数的第2输出端,得到跟踪目标值。The standard overall dressing characteristic matrix is also sent to the first input terminal of the second divider module 312, so that the matrix operation of dividing the standard overall dressing characteristic matrix by the output of the first adder module 310 is completed in the second divider module 312. . The division calculation value completed by the second divider module 312 is sent to the second natural logarithm module 314, and the logarithmic value calculated by the second natural logarithm module 314 is output to the second output terminal of the overall comparison function to obtain the tracking target value .
最后,将优化目标值和跟踪目标值代入到反向传播算法调整初始人体着装特征矩阵提取网络的整体参数,计算初始人体着装特征矩阵提取网络的输出并持续计算跟踪目标值,直至跟踪目标值等于优化目标值,完成整体参数调整。Finally, the optimization target value and the tracking target value are substituted into the back-propagation algorithm to adjust the overall parameters of the initial human clothing feature matrix extraction network, calculate the output of the initial human clothing feature matrix extraction network, and continue to calculate the tracking target value until the tracking target value equals to Optimize the target value and complete the overall parameter adjustment.
所述反向传播算法可以但不限于为双约束目标神经网络自寻优估计方法。The back-propagation algorithm can be, but is not limited to, a self-optimizing estimation method for a dual-constrained objective neural network.
S44、获取标准着装斑块特征矩阵;S44. Obtain a standard dress patch feature matrix;
S45、将所述着装斑块特征矩阵和所述标准着装斑块特征矩阵导入到所述斑块比对函数,得到斑块优化目标值和斑块跟踪目标值;S45, importing the dressing patch feature matrix and the standard dressing patch feature matrix into the patch comparison function to obtain a patch optimization target value and a patch tracking target value;
S46、基于所述斑块优化目标值和所述斑块跟踪目标值,采用所述反向传播算法调整所述初始人体着装特征矩阵提取网络的斑块参数,直至所述斑块跟踪目标值等于所述斑块优化目标值;S46. Based on the patch optimization target value and the patch tracking target value, use the back-propagation algorithm to adjust the patch parameters of the initial human clothing feature matrix extraction network until the patch tracking target value is equal to the plaque optimization target value;
请参见图5,图5示出了本发明实施例中计算斑块优化目标值和斑块跟踪目标值的流程示意图。其中,着装斑块特征矩阵包括负斑块数组、正斑块数组和补斑块数组。Referring to FIG. 5 , FIG. 5 shows a schematic flowchart of calculating a target value for patch optimization and a target value for patch tracking in an embodiment of the present invention. Among them, the feature matrix of clothing patches includes negative patch array, positive patch array and complementary patch array.
在本实施例中,标准着装斑块特征矩阵送到第1乘法器320的第1输入端、还送到第2乘法器321的第1输入端、还送到第3乘法器322的第1输入端。In this embodiment, the standard dressing patch feature matrix is sent to the first input terminal of the first multiplier 320, to the first input terminal of the second multiplier 321, and to the first input terminal of the third multiplier 322. input.
负斑块数组送到第1乘法器320的第2输入端,与标准着装斑块特征矩阵进行乘法运算,运算结果送到第1除法器323的第1输入端;正斑块数组送到第2乘法器321的第2输入端,与标准着装斑块特征矩阵进行乘法运算,运算结果送到第2除法器324的第1输入端;补斑块数组送到第 3乘法器322的第2输入端,与标准着装斑块特征矩阵进行乘法运算,运算结果送到第3除法器326的第1输入端;由第1设定模块325给出的综合调整系数K送到第1除法器323的第2输入端、还送到第2除法器324的第2输入端、还送到第3除法器326的第2输入端。第1除法器323计算出的数值送到第1指数计算模块327的输入端,完成对323模块除出来的数进行指数运算;第2除法器324计算出的数值送到第2指数计算模块328的输入端,完成对324模块除出来的数进行指数运算;第3除法器326计算出的数值送到第3指数计算模块329的输入端,完成对326模块除出来的数进行指数运算。第1指数计算模块327的输出送到第1累加计算模块3210的输入端,进行负斑块运算数据的累加计算;第3指数计算模块329的输出送到第2累加计算模块3211的输入端,进行补斑块运算数据的累加计算;第1累加计算模块3210的输出送到第1加法模块3211的第1输入端,第2指数计算模块328的输出送到第1加法模块3213的第2输入端,实现负斑块累加运算数据叠加上正斑块运算数据,形成了负斑块综合计算数值;第2累加计算模块3213的输出还送到第2加法模块3212的第1输入端,第2指数计算模块328的输出送到第2加法模块3212的第2输入端,实现补斑块累加运算数据叠加上正斑块运算数据,形成了补斑块综合计算数值。第2指数计算模块328的输出还送到第4除法器模块3214的第1输入端,第1加法模块3211的输出送到第4除法器模块3214的第2输入端,这样完成了正斑块运算数据除以负斑块综合计算数值;第2指数计算模块328的输出还送到第5除法器模块3215的第1输入端,第2加法模块3212的输出送到第5除法器模块3215的第2输入端,这样完成了正斑块运算数据除以补斑块综合计算数值。第4除法器模块3214的输出送到第1自然对数模块3216,对以上计算出的综合数值进行对数运算;第5除法器模块3215的输出送到第2自然对数模块3217,对以上计算出的综合数值进行对数运算。第2设定模块3218给出的调整系数a送到第4乘法器3219的第1输入端,第1自然对数模块3216的输出送到第4乘法器3219的第2输入端,两者相乘的输出值送到斑块比对函数计算的第1输出端,得到斑块优化目标值。The negative patch array is sent to the second input of the first multiplier 320, and is multiplied with the standard dressing patch feature matrix, and the operation result is sent to the first input of the first divider 323; the positive patch array is sent to the first The second input of the 2 multiplier 321 is multiplied with the standard dressing patch feature matrix, and the operation result is sent to the first input of the second divider 324; the patch array is sent to the second of the third multiplier 322. The input terminal is multiplied with the standard dressing patch feature matrix, and the operation result is sent to the first input terminal of the third divider 326; the comprehensive adjustment coefficient K given by the first setting module 325 is sent to the first divider 323 The second input terminal of , is also sent to the second input terminal of the second divider 324 and is also sent to the second input terminal of the third divider 326 . The value calculated by the first divider 323 is sent to the input terminal of the first exponent calculation module 327 to complete the exponent operation on the number divided by the 323 module; the value calculated by the second divider 324 is sent to the second exponent calculation module 328 The input terminal of 324 completes the exponent operation on the number divided by the 324 module; the value calculated by the third divider 326 is sent to the input terminal of the third exponent calculation module 329 to complete the exponent operation on the number divided by the 326 module. The output of the first index calculation module 327 is sent to the input end of the first accumulation calculation module 3210 to perform the accumulation calculation of the negative patch operation data; the output of the third index calculation module 329 is sent to the input end of the second accumulation calculation module 3211, Carry out the accumulation calculation of patch patch operation data; the output of the first accumulation calculation module 3210 is sent to the first input end of the first addition module 3211, and the output of the second index calculation module 328 is sent to the second input of the first addition module 3213 At the terminal, the negative patch accumulation operation data is superimposed on the positive patch operation data to form the negative patch comprehensive calculation value; the output of the second accumulation calculation module 3213 is also sent to the first input terminal of the second addition module 3212, the second The output of the exponent calculation module 328 is sent to the second input of the second addition module 3212, so that the patch patch accumulation operation data is superimposed on the positive patch operation data to form the patch patch comprehensive calculation value. The output of the second exponent calculation module 328 is also sent to the first input of the fourth divider module 3214, and the output of the first addition module 3211 is sent to the second input of the fourth divider module 3214, thus completing the positive patch The operation data is divided by the negative patch comprehensive calculation value; the output of the second exponent calculation module 328 is also sent to the first input of the fifth divider module 3215, and the output of the second addition module 3212 is sent to the fifth divider module 3215. In the second input terminal, the positive patch operation data is divided by the comprehensive calculation value of the patch patch. The output of the fourth divider module 3214 is sent to the first natural logarithm module 3216, which performs logarithmic operation on the comprehensive value calculated above; the output of the fifth divider module 3215 is sent to the second natural logarithm module 3217. The calculated composite value is logarithmic. The adjustment coefficient a given by the second setting module 3218 is sent to the first input terminal of the fourth multiplier 3219, and the output of the first natural logarithm module 3216 is sent to the second input terminal of the fourth multiplier 3219. The multiplied output value is sent to the first output terminal of the patch comparison function calculation to obtain the patch optimization target value.
第3设定模块3221给出的调整系数b送到第5乘法器3220的第1输入端,第2自然对数模块3217的输出送到第5乘法器3220的第2输入端,两者相乘的输出值送到斑块比对函数计算的第2输出端,得到斑块跟踪目标值。The adjustment coefficient b given by the third setting module 3221 is sent to the first input of the fifth multiplier 3220, and the output of the second natural logarithm module 3217 is sent to the second input of the fifth multiplier 3220. The multiplied output value is sent to the second output terminal of the patch comparison function calculation to obtain the patch tracking target value.
最后,将斑块优化目标值和斑块跟踪目标值代入到反向传播算法调整初始人体着装特征矩阵提取网络的斑块参数,计算初始人体着装特征矩阵提取网络的输出并持续计算斑块跟踪目标值,直至斑块跟踪目标值等于斑块优化目标值,完成斑块参数调整。Finally, the patch optimization target value and patch tracking target value are substituted into the back-propagation algorithm to adjust the patch parameters of the initial human clothing feature matrix extraction network, calculate the output of the initial human clothing feature matrix extraction network, and continuously calculate the patch tracking target. until the patch tracking target value is equal to the patch optimization target value, and the patch parameter adjustment is completed.
S47、当所述跟踪目标值等于所述优化目标值,且所述斑块跟踪目标值等于所述斑块优化目标值时,生成目标人体着装特征矩阵提取网络。S47. When the tracking target value is equal to the optimization target value, and the patch tracking target value is equal to the patch optimization target value, generate a target human body clothing feature matrix extraction network.
步骤206,基于所述人体着装特征矩阵是否满足预设条件的判断结果,确定所述待识别人体图像对应的人员着装是否规范。 Step 206 , based on the judgment result of whether the human body clothing feature matrix satisfies a preset condition, determine whether the clothing of the person corresponding to the to-be-recognized human body image is standard.
可选地,所述预设条件包括多个子条件,步骤206可以包括以下子步骤:Optionally, the preset condition includes multiple sub-conditions, and step 206 may include the following sub-steps:
若所述人体着装特征矩阵满足任一个所述子条件,则确定所述待识别人体图像对应的人员着装不符合规范;If the human body clothing feature matrix satisfies any one of the sub-conditions, it is determined that the clothing of the person corresponding to the to-be-recognized human body image does not meet the specification;
若所述人体着装特征矩阵不满足全部所述子条件,则确定所述待识别人体图像对应的人员着装符合规范。If the human body clothing feature matrix does not satisfy all of the sub-conditions, it is determined that the clothing of the person corresponding to the to-be-recognized human body image conforms to the specification.
在本发明实施例中,多个子条件可以包括但不限于没穿短衣,长袖衣不是工作服,衣服敞开,衣服有破损;安全帽佩戴不符合规范要求和安全帽有破损等,当所述人体着装特征矩阵满足以上任一个子条件时,确定待识别人体图像对应的人员着装不符合规范;反之,若是全部子条件都不符合,则确定所述待识别人体图像对应的人员着装符合规范。In this embodiment of the present invention, multiple sub-conditions may include, but are not limited to, not wearing short clothes, long-sleeved clothes are not work clothes, clothes are open, and clothes are damaged; the wearing of safety helmets does not meet the specification requirements and the safety helmets are damaged, etc. When the human body clothing feature matrix satisfies any one of the above sub-conditions, it is determined that the clothing of the person corresponding to the human body image to be recognized does not meet the specification; otherwise, if all the sub-conditions are not satisfied, it is determined that the clothing of the person corresponding to the human body image to be recognized conforms to the specification.
可选地,当待识别人体图像对应的人员着装不符合规范时,可以输出警报以告知监控人员进行进一步处理。Optionally, when the clothing of the person corresponding to the human body image to be recognized does not conform to the specification, an alarm may be output to inform the monitoring personnel to perform further processing.
本发明实施例通过接收待识别人体图像,对待识别人体图像进行图像预处理,生成待识别图像矩阵,再采用目标人体着装特征矩阵提取网络提取待识别图像矩阵对应的人体着装特征矩阵,最后基于人体着装特征矩阵是否满足预设条件,确定待识别人体图像对应的人员着装是否规范。从而 解决现有的目标识别方法在复杂环境中识别率与准确率较低,难以准确识别人员穿着是否合规,可能会导致安全隐患的技术问题,有效提高在复杂环境中对人员穿着识别的准确性,降低安全隐患的发生。In the embodiment of the present invention, the image of the human body to be recognized is received, the image of the human body to be recognized is preprocessed, the image matrix to be recognized is generated, the target human body clothing feature matrix extraction network is used to extract the human body clothing feature matrix corresponding to the to-be-recognized image matrix, and finally based on the human body Whether the clothing feature matrix satisfies the preset conditions, it is determined whether the clothing of the person corresponding to the human body image to be recognized is standardized. Therefore, the existing target recognition methods have low recognition rate and accuracy in complex environments, and it is difficult to accurately identify whether personnel are wearing compliance, which may lead to technical problems of potential safety hazards, and effectively improve the accuracy of personnel wearing identification in complex environments. to reduce the occurrence of security risks.
请参阅图6,图6为本发明实施例提供的一种电力作业监管平台的结构示意图。Please refer to FIG. 6. FIG. 6 is a schematic structural diagram of an electric power operation supervision platform according to an embodiment of the present invention.
其中包括物理资源层601、调度管理层602、训练环境层603、业务应用层604,确保智能识别算法可正常稳定运行,并移植到边缘侧终端上,为用户提供模型训练、预测、评估和部署的全生命周期管理功能。It includes the physical resource layer 601, the scheduling management layer 602, the training environment layer 603, and the business application layer 604 to ensure the normal and stable operation of the intelligent identification algorithm, and transplant it to the edge side terminal to provide users with model training, prediction, evaluation and deployment. full life cycle management capabilities.
物理资源层601包括异构的计算硬件(CPU、GPU)、存储、网络设备、安全防护设备。The physical resource layer 601 includes heterogeneous computing hardware (CPU, GPU), storage, network equipment, and security protection equipment.
调度管理层602基于Kubernetes和docker开发,包含集群管理、资源虚拟化和任务调度等。The scheduling management layer 602 is developed based on Kubernetes and docker, and includes cluster management, resource virtualization, and task scheduling.
训练环境层603是以docker的形式提供的服务,包括主流学习框架TensorFlow、PyTorch、Caffe、scikit-learn、XGBoost等机器学习/深度学习环境,同时集成JupyterHub等交互式代码调试笔记本和MPI并行编程接口。系统运行环境和学习环境通过docker仓库进行版本的迭代管理。The training environment layer 603 provides services in the form of docker, including the mainstream learning frameworks TensorFlow, PyTorch, Caffe, scikit-learn, XGBoost and other machine learning/deep learning environments, while integrating JupyterHub and other interactive code debugging notebooks and MPI parallel programming interfaces . The system operating environment and learning environment are iteratively managed through the docker repository.
业务应用层604包括数据处理、数据标注、模型训练、模型发布。The business application layer 604 includes data processing, data labeling, model training, and model publishing.
模型训练模块基于各个机器学习、深度学习训练环境,通过预先编写好的训练脚本,配置好参数后挂起训练。整个训练流程由后台搭建的管道(pipeline)自动完成,围绕数据处理、数据标注、训练、模型管理流程展开模型生产。模型训练通过docker预置TensorFlow、PyTorch、Caffe、scikit-learn、XGBoost等学习环境。利用任务调度系统,用户可以向集群提交学习任务代码,任务管理系统将根据用户的配额为用户分配资源,创建用户指定的环境,并将学习任务加入任务队列,待资源空闲时,运行学习程序。用户可一键提交代码,生成分布式任务,极大减少开发成本和资源占用。The model training module is based on various machine learning and deep learning training environments, and suspends training after configuring parameters through pre-written training scripts. The entire training process is automatically completed by the pipeline built in the background, and model production is carried out around data processing, data labeling, training, and model management processes. Model training presets TensorFlow, PyTorch, Caffe, scikit-learn, XGBoost and other learning environments through docker. Using the task scheduling system, users can submit learning task codes to the cluster, and the task management system will allocate resources to users according to the user's quota, create an environment specified by the user, and add learning tasks to the task queue. When the resources are free, the learning program will be run. Users can submit code with one click, generate distributed tasks, and greatly reduce development costs and resource occupation.
请参阅图7,图7为本发明实施例提供的一种电力作业着装规范识别 方法的步骤流程图。Please refer to FIG. 7, which is a flowchart of steps of a method for identifying a dress code for electrical work provided by an embodiment of the present invention.
本发明提供的一种电力作业着装规范识别装置,包括:A device for identifying a dress code for electrical work provided by the present invention includes:
待识别人体图像接收模块701,用于接收待识别人体图像;The human body image receiving module 701 to be recognized is configured to receive the human body image to be recognized;
待识别图像矩阵生成模块702,用于对所述待识别人体图像进行图像预处理,生成待识别图像矩阵;A to-be-recognized image matrix generation module 702, configured to perform image preprocessing on the to-be-recognized human body image to generate a to-be-recognized image matrix;
人体着装特征矩阵输出模块703,用于将所述待识别图像矩阵输入到目标人体着装特征矩阵提取网络,输出所述待识别图像矩阵对应的人体着装特征矩阵;其中,所述目标人体着装特征矩阵提取网络通过预置的模型训练模块704所生成;The human body clothing feature matrix output module 703 is used to input the to-be-recognized image matrix into the target human body clothing feature matrix extraction network, and output the human body clothing feature matrix corresponding to the to-be-recognized image matrix; wherein, the target human body clothing feature matrix The extraction network is generated by the preset model training module 704;
人员着装规范判断模块705,用于基于所述人体着装特征矩阵是否满足预设条件的判断结果,确定所述待识别人体图像对应的人员着装是否规范。The personnel dress code judgment module 705 is configured to determine whether the person corresponding to the to-be-recognized body image is dressed according to the judgment result of whether the human body dress feature matrix satisfies a preset condition.
可选地,所述待识别图像矩阵生成模块702包括:Optionally, the to-be-recognized image matrix generation module 702 includes:
图像转换子模块,用于将所述待识别人体图像转换为第一图像矩阵;an image conversion submodule for converting the to-be-recognized human body image into a first image matrix;
第一图像处理子模块,用于按照预设要求对所述第一图像矩阵执行图像矫正操作和图像增强操作,得到第二图像矩阵;a first image processing submodule, configured to perform an image correction operation and an image enhancement operation on the first image matrix according to preset requirements to obtain a second image matrix;
第二图像处理子模块,用于对所述第二图像矩阵执行图像标准化操作和图像归一化操作,生成待识别图像矩阵。The second image processing submodule is configured to perform an image normalization operation and an image normalization operation on the second image matrix to generate an image matrix to be recognized.
可选地,所述模型训练模块704包括:Optionally, the model training module 704 includes:
历史人体图像获取子模块,用于分别获取多种历史电力作业场景中的人体图像;The historical human body image acquisition sub-module is used to separately acquire human body images in various historical power operation scenarios;
标准化图像矩阵生成子模块,用于对所述人体图像进行图像预处理,生成标准化图像矩阵;A standardized image matrix generation sub-module for performing image preprocessing on the human body image to generate a standardized image matrix;
着装特征矩阵生成子模块,用于将所述标准化图像矩阵输入到预设的初始人体着装特征矩阵提取网络,得到着装特征矩阵;Dressing feature matrix generation sub-module for inputting the standardized image matrix into a preset initial human body dressing feature matrix extraction network to obtain a dressing feature matrix;
训练子模块,用于采用预设双核优化算法结合所述着装特征矩阵,对所述初始人体着装特征矩阵提取网络进行训练,生成目标人体着装特征矩阵提取网络。The training sub-module is used for using a preset dual-core optimization algorithm in combination with the clothing feature matrix to train the initial human body clothing feature matrix extraction network to generate a target human body clothing feature matrix extraction network.
可选地,所述预设双核优化算法包括整体比对函数和斑块比对函数, 所述着装特征矩阵包括整体着装特征矩阵和着装斑块特征矩阵,所述训练子模块包括:Optionally, the preset dual-core optimization algorithm includes an overall comparison function and a patch comparison function, the clothing feature matrix includes an overall clothing feature matrix and a clothing patch feature matrix, and the training submodule includes:
标准整体着装特征矩阵获取子模块,用于获取标准整体着装特征矩阵;The standard overall dress feature matrix acquisition sub-module is used to obtain the standard overall dress feature matrix;
整体比对函数处理子模块,用于将所述标准整体着装特征矩阵和所述整体着装特征矩阵导入到所述整体比对函数,得到优化目标值和跟踪目标值;an overall comparison function processing submodule, used for importing the standard overall dressing feature matrix and the overall dressing feature matrix into the overall comparison function to obtain an optimization target value and a tracking target value;
整体参数调整子模块,用于基于所述优化目标值和所述跟踪目标值,采用反向传播算法调整所述初始人体着装特征矩阵提取网络的整体参数,直至所述跟踪目标值等于所述优化目标值。an overall parameter adjustment sub-module, used for adjusting the overall parameters of the initial human clothing feature matrix extraction network based on the optimization target value and the tracking target value by using a back-propagation algorithm until the tracking target value is equal to the optimization target value.
标准着装斑块特征矩阵获取子模块,用于获取标准着装斑块特征矩阵;Standard dress patch feature matrix acquisition sub-module, used to obtain standard dress patch feature matrix;
斑块比对函数处理子模块,用于将所述着装斑块特征矩阵和所述标准着装斑块特征矩阵导入到所述斑块比对函数,得到斑块优化目标值和斑块跟踪目标值;The patch comparison function processing sub-module is used to import the dressing patch feature matrix and the standard dressing patch feature matrix into the patch comparison function to obtain the patch optimization target value and the patch tracking target value ;
斑块参数调整子模块,用于基于所述斑块优化目标值和所述斑块跟踪目标值,采用所述反向传播算法调整所述初始人体着装特征矩阵提取网络的斑块参数,直至所述斑块跟踪目标值等于所述斑块优化目标值;The patch parameter adjustment sub-module is used to adjust the patch parameters of the initial human clothing feature matrix extraction network based on the patch optimization target value and the patch tracking target value by using the back-propagation algorithm until all the the patch tracking target value is equal to the patch optimization target value;
目标人体着装特征矩阵提取网络生成子模块,用于当所述跟踪目标值等于所述优化目标值,且所述斑块跟踪目标值等于所述斑块优化目标值时,生成目标人体着装特征矩阵提取网络。The target body clothing feature matrix extraction network generation sub-module is used to generate the target body clothing feature matrix when the tracking target value is equal to the optimization target value and the patch tracking target value is equal to the patch optimization target value Extract the network.
可选地,所述预设条件包括多个子条件,所述人员着装规范判断模块705包括:Optionally, the preset condition includes multiple sub-conditions, and the personnel dress code judgment module 705 includes:
不符合规范判定子模块,用于若所述人体着装特征矩阵满足任一个所述子条件,则确定所述待识别人体图像对应的人员着装不符合规范;A non-conformity determination sub-module, configured to determine that the clothing of the person corresponding to the to-be-recognized human body image does not conform to the specification if the human body attire feature matrix satisfies any one of the sub-conditions;
符合规范判定子模块,用于若所述人体着装特征矩阵不满足全部所述子条件,则确定所述待识别人体图像对应的人员着装符合规范。A specification-compliant determination sub-module, configured to determine that the clothing of the person corresponding to the to-be-recognized human body image conforms to the specification if the human body clothing feature matrix does not satisfy all of the sub-conditions.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the above-described devices and units, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法, 可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: The technical solutions described in the embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

  1. 一种电力作业着装规范识别方法,其特征在于,包括:A method for identifying a dress code for electrical work, comprising:
    接收待识别人体图像;Receive the image of the human body to be recognized;
    对所述待识别人体图像进行图像预处理,生成待识别图像矩阵;Perform image preprocessing on the to-be-recognized human body image to generate a to-be-recognized image matrix;
    将所述待识别图像矩阵输入到目标人体着装特征矩阵提取网络,输出所述待识别图像矩阵对应的人体着装特征矩阵;其中,所述目标人体着装特征矩阵提取网络通过预置的模型训练过程所生成;The to-be-recognized image matrix is input into the target human body clothing feature matrix extraction network, and the human body clothing feature matrix corresponding to the to-be-identified image matrix is output; wherein, the target human body clothing feature matrix extraction network is obtained through a preset model training process. generate;
    基于所述人体着装特征矩阵是否满足预设条件的判断结果,确定所述待识别人体图像对应的人员着装是否规范。Based on the judgment result of whether the human body clothing feature matrix satisfies the preset condition, it is determined whether the clothing of the person corresponding to the to-be-recognized human body image is standardized.
  2. 根据权利要求1所述的电力作业着装规范识别方法,其特征在于,所述对所述待识别人体图像进行图像预处理,生成待识别图像矩阵的步骤,包括:The method for recognizing dress code for electrical work according to claim 1, wherein the step of performing image preprocessing on the to-be-recognized human body image to generate a to-be-recognized image matrix comprises:
    将所述待识别人体图像转换为第一图像矩阵;converting the to-be-identified human body image into a first image matrix;
    按照预设要求对所述第一图像矩阵执行图像矫正操作和图像增强操作,得到第二图像矩阵;Perform an image correction operation and an image enhancement operation on the first image matrix according to preset requirements to obtain a second image matrix;
    对所述第二图像矩阵执行图像标准化操作和图像归一化操作,生成待识别图像矩阵。An image normalization operation and an image normalization operation are performed on the second image matrix to generate a to-be-identified image matrix.
  3. 根据权利要求1所述的电力作业着装规范识别方法,其特征在于,所述模型训练过程包括:The method for identifying a dress code for electrical work according to claim 1, wherein the model training process comprises:
    分别获取多种历史电力作业场景中的人体图像;Respectively obtain human body images in various historical power operation scenarios;
    对所述人体图像进行图像预处理,生成标准化图像矩阵;performing image preprocessing on the human body image to generate a standardized image matrix;
    将所述标准化图像矩阵输入到预设的初始人体着装特征矩阵提取网络,得到着装特征矩阵;Inputting the standardized image matrix into a preset initial human body clothing feature matrix extraction network to obtain a clothing feature matrix;
    采用预设双核优化算法结合所述着装特征矩阵,对所述初始人体着装特征矩阵提取网络进行训练,生成目标人体着装特征矩阵提取网络。A preset dual-core optimization algorithm is used in combination with the clothing feature matrix to train the initial human body clothing feature matrix extraction network to generate a target human body clothing feature matrix extraction network.
  4. 根据权利要求3所述的电力作业着装规范识别方法,其特征在于,所述预设双核优化算法包括整体比对函数和斑块比对函数,所述着装特征矩阵包括整体着装特征矩阵和着装斑块特征矩阵,所述采用预设双核优化模型结合所述着装特征矩阵,对所述初始人体着装特征矩阵提取网络进行 训练,生成目标人体着装特征矩阵提取网络的步骤,包括:The method for identifying dress codes for electrical work according to claim 3, wherein the preset dual-core optimization algorithm includes an overall comparison function and a patch comparison function, and the dress feature matrix includes an overall dress feature matrix and a dress spot block feature matrix, the steps of using the preset dual-core optimization model combined with the clothing feature matrix to train the initial human body clothing feature matrix extraction network to generate the target human body clothing feature matrix extraction network include:
    获取标准整体着装特征矩阵;Get the standard overall dress feature matrix;
    将所述标准整体着装特征矩阵和所述整体着装特征矩阵导入到所述整体比对函数,得到优化目标值和跟踪目标值;importing the standard overall clothing feature matrix and the overall clothing feature matrix into the overall comparison function to obtain an optimization target value and a tracking target value;
    基于所述优化目标值和所述跟踪目标值,采用反向传播算法调整所述初始人体着装特征矩阵提取网络的整体参数,直至所述跟踪目标值等于所述优化目标值;Based on the optimization target value and the tracking target value, a back-propagation algorithm is used to adjust the overall parameters of the initial human clothing feature matrix extraction network until the tracking target value is equal to the optimization target value;
    获取标准着装斑块特征矩阵;Get the standard attire patch feature matrix;
    将所述着装斑块特征矩阵和所述标准着装斑块特征矩阵导入到所述斑块比对函数,得到斑块优化目标值和斑块跟踪目标值;importing the attire patch feature matrix and the standard attire patch feature matrix into the patch comparison function to obtain a patch optimization target value and a patch tracking target value;
    基于所述斑块优化目标值和所述斑块跟踪目标值,采用所述反向传播算法调整所述初始人体着装特征矩阵提取网络的斑块参数,直至所述斑块跟踪目标值等于所述斑块优化目标值;Based on the patch optimization target value and the patch tracking target value, the back-propagation algorithm is used to adjust the patch parameters of the initial human clothing feature matrix extraction network until the patch tracking target value is equal to the Plaque optimization target value;
    当所述跟踪目标值等于所述优化目标值,且所述斑块跟踪目标值等于所述斑块优化目标值时,生成目标人体着装特征矩阵提取网络。When the tracking target value is equal to the optimization target value, and the patch tracking target value is equal to the patch optimization target value, a target human body clothing feature matrix extraction network is generated.
  5. 根据权利要求1所述的电力作业着装规范识别方法,其特征在于,所述预设条件包括多个子条件,所述基于所述人体着装特征矩阵是否满足预设条件的判断结果,确定所述待识别人体图像对应的人员着装是否规范的步骤,包括:The method for recognizing dress code for electrical work according to claim 1, wherein the preset condition includes a plurality of sub-conditions, and the determination is made based on a judgment result of whether the human body dress characteristic matrix satisfies the preset condition. The steps of identifying whether the person corresponding to the human body image is dressed properly, including:
    若所述人体着装特征矩阵满足任一个所述子条件,则确定所述待识别人体图像对应的人员着装不符合规范;If the human body clothing feature matrix satisfies any one of the sub-conditions, it is determined that the clothing of the person corresponding to the to-be-recognized human body image does not meet the specification;
    若所述人体着装特征矩阵不满足全部所述子条件,则确定所述待识别人体图像对应的人员着装符合规范。If the human body clothing feature matrix does not satisfy all of the sub-conditions, it is determined that the clothing of the person corresponding to the to-be-recognized human body image conforms to the specification.
  6. 一种电力作业着装规范识别装置,其特征在于,包括:A device for identifying a dress code for electrical work, characterized in that it includes:
    待识别人体图像接收模块,用于接收待识别人体图像;A human body image receiving module to be recognized, used for receiving the human body image to be recognized;
    待识别图像矩阵生成模块,用于对所述待识别人体图像进行图像预处理,生成待识别图像矩阵;A to-be-recognized image matrix generation module, configured to perform image preprocessing on the to-be-recognized human body image to generate a to-be-recognized image matrix;
    人体着装特征矩阵输出模块,用于将所述待识别图像矩阵输入到目标人体着装特征矩阵提取网络,输出所述待识别图像矩阵对应的人体着装特 征矩阵;其中,所述目标人体着装特征矩阵提取网络通过预置的模型训练模块所生成;The human body clothing feature matrix output module is used for inputting the to-be-recognized image matrix into the target human body clothing feature matrix extraction network, and outputting the human body clothing feature matrix corresponding to the to-be-identified image matrix; wherein, the target human body clothing feature matrix extraction The network is generated by the preset model training module;
    人员着装规范判断模块,用于基于所述人体着装特征矩阵是否满足预设条件的判断结果,确定所述待识别人体图像对应的人员着装是否规范。A personnel dress code judging module is configured to determine whether the person corresponding to the to-be-recognized human body image is dressed according to the judgment result of whether the human body dress feature matrix satisfies a preset condition.
  7. 根据权利要求6所述的电力作业着装规范识别装置,其特征在于,所述待识别图像矩阵生成模块包括:The apparatus for recognizing dress code for electrical work according to claim 6, wherein the image matrix generation module to be recognized comprises:
    图像转换子模块,用于将所述待识别人体图像转换为第一图像矩阵;an image conversion submodule for converting the to-be-recognized human body image into a first image matrix;
    第一图像处理子模块,用于按照预设要求对所述第一图像矩阵执行图像矫正操作和图像增强操作,得到第二图像矩阵;a first image processing submodule, configured to perform an image correction operation and an image enhancement operation on the first image matrix according to preset requirements to obtain a second image matrix;
    第二图像处理子模块,用于对所述第二图像矩阵执行图像标准化操作和图像归一化操作,生成待识别图像矩阵。The second image processing submodule is configured to perform an image normalization operation and an image normalization operation on the second image matrix to generate an image matrix to be recognized.
  8. 根据权利要求6所述的电力作业着装规范识别装置,其特征在于,所述模型训练模块包括:The apparatus for identifying electrical work dress codes according to claim 6, wherein the model training module comprises:
    历史人体图像获取子模块,用于分别获取多种历史电力作业场景中的人体图像;The historical human body image acquisition sub-module is used to separately acquire human body images in various historical power operation scenarios;
    标准化图像矩阵生成子模块,用于对所述人体图像进行图像预处理,生成标准化图像矩阵;a standardized image matrix generation sub-module for performing image preprocessing on the human body image to generate a standardized image matrix;
    着装特征矩阵生成子模块,用于将所述标准化图像矩阵输入到预设的初始人体着装特征矩阵提取网络,得到着装特征矩阵;Dressing feature matrix generation sub-module for inputting the standardized image matrix into a preset initial human body dressing feature matrix extraction network to obtain a dressing feature matrix;
    训练子模块,用于采用预设双核优化算法结合所述着装特征矩阵,对所述初始人体着装特征矩阵提取网络进行训练,生成目标人体着装特征矩阵提取网络。The training sub-module is used for using a preset dual-core optimization algorithm in combination with the clothing feature matrix to train the initial human body clothing feature matrix extraction network to generate a target human body clothing feature matrix extraction network.
  9. 根据权利要求8所述的电力作业着装规范识别装置,其特征在于,所述预设双核优化算法包括整体比对函数和斑块比对函数,所述着装特征矩阵包括整体着装特征矩阵和着装斑块特征矩阵,所述训练子模块包括:The apparatus for recognizing clothing code for electrical work according to claim 8, wherein the preset dual-core optimization algorithm includes an overall comparison function and a patch comparison function, and the clothing feature matrix includes an overall clothing feature matrix and a clothing patch Block feature matrix, the training submodule includes:
    标准整体着装特征矩阵获取子模块,用于获取标准整体着装特征矩阵;The standard overall dress feature matrix acquisition sub-module is used to obtain the standard overall dress feature matrix;
    整体比对函数处理子模块,用于将所述标准整体着装特征矩阵和所述整体着装特征矩阵导入到所述整体比对函数,得到优化目标值和跟踪目标值;an overall comparison function processing submodule, used for importing the standard overall dressing feature matrix and the overall dressing feature matrix into the overall comparison function to obtain an optimization target value and a tracking target value;
    整体参数调整子模块,用于基于所述优化目标值和所述跟踪目标值,采用反向传播算法调整所述初始人体着装特征矩阵提取网络的整体参数,直至所述跟踪目标值等于所述优化目标值;An overall parameter adjustment sub-module for adjusting the overall parameters of the initial human clothing feature matrix extraction network based on the optimization target value and the tracking target value using a back-propagation algorithm until the tracking target value is equal to the optimization target value;
    标准着装斑块特征矩阵获取子模块,用于获取标准着装斑块特征矩阵;Standard dress patch feature matrix acquisition sub-module, used to obtain standard dress patch feature matrix;
    斑块比对函数处理子模块,用于将所述着装斑块特征矩阵和所述标准着装斑块特征矩阵导入到所述斑块比对函数,得到斑块优化目标值和斑块跟踪目标值;The patch comparison function processing sub-module is used to import the dressing patch feature matrix and the standard dressing patch feature matrix into the patch comparison function to obtain the patch optimization target value and the patch tracking target value ;
    斑块参数调整子模块,用于基于所述斑块优化目标值和所述斑块跟踪目标值,采用所述反向传播算法调整所述初始人体着装特征矩阵提取网络的斑块参数,直至所述斑块跟踪目标值等于所述斑块优化目标值;The patch parameter adjustment sub-module is used to adjust the patch parameters of the initial human clothing feature matrix extraction network based on the patch optimization target value and the patch tracking target value by using the back-propagation algorithm until all the patch parameters are extracted. the patch tracking target value is equal to the patch optimization target value;
    目标人体着装特征矩阵提取网络生成子模块,用于当所述跟踪目标值等于所述优化目标值,且所述斑块跟踪目标值等于所述斑块优化目标值时,生成目标人体着装特征矩阵提取网络。The target body clothing feature matrix extraction network generation sub-module is used to generate the target body clothing feature matrix when the tracking target value is equal to the optimization target value and the patch tracking target value is equal to the patch optimization target value Extract the network.
  10. 根据权利要求6所述的电力作业着装规范识别装置,其特征在于,所述预设条件包括多个子条件,所述人员着装规范判断模块包括:The apparatus for identifying the dress code for electrical work according to claim 6, wherein the preset condition includes a plurality of sub-conditions, and the personnel dress code judgment module includes:
    不符合规范判定子模块,用于若所述人体着装特征矩阵满足任一个所述子条件,则确定所述待识别人体图像对应的人员着装不符合规范;A non-conformity determination sub-module, used for determining that the clothing of the person corresponding to the to-be-recognized human body image does not conform to the specification if the human body clothing feature matrix satisfies any one of the sub-conditions;
    符合规范判定子模块,用于若所述人体着装特征矩阵不满足全部所述子条件,则确定所述待识别人体图像对应的人员着装符合规范。The specification-compliant determination sub-module is configured to determine that the clothing of the person corresponding to the to-be-recognized human body image conforms to the specification if the human body clothing feature matrix does not satisfy all of the sub-conditions.
PCT/CN2021/136040 2020-12-11 2021-12-07 Method and apparatus for identifying dress code for electric power operations WO2022121886A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011452940.6 2020-12-11
CN202011452940.6A CN112528855B (en) 2020-12-11 2020-12-11 Electric power operation dressing standard identification method and device

Publications (1)

Publication Number Publication Date
WO2022121886A1 true WO2022121886A1 (en) 2022-06-16

Family

ID=74998838

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/136040 WO2022121886A1 (en) 2020-12-11 2021-12-07 Method and apparatus for identifying dress code for electric power operations

Country Status (2)

Country Link
CN (1) CN112528855B (en)
WO (1) WO2022121886A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112528855B (en) * 2020-12-11 2021-09-03 南方电网电力科技股份有限公司 Electric power operation dressing standard identification method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180008246A (en) * 2016-07-14 2018-01-24 카페24 주식회사 Method, Apparatus and System for Evaluating Dress Code, and Method and System for Recommending Dress Code
CN108052900A (en) * 2017-12-12 2018-05-18 成都睿码科技有限责任公司 A kind of method by monitor video automatic decision dressing specification
CN109034044A (en) * 2018-06-14 2018-12-18 天津师范大学 A kind of pedestrian's recognition methods again based on fusion convolutional neural networks
CN110287804A (en) * 2019-05-30 2019-09-27 广东电网有限责任公司 A kind of electric operating personnel's dressing recognition methods based on mobile video monitor
CN111401314A (en) * 2020-04-10 2020-07-10 上海东普信息科技有限公司 Dressing information detection method, device, equipment and storage medium
CN112528855A (en) * 2020-12-11 2021-03-19 南方电网电力科技股份有限公司 Electric power operation dressing standard identification method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109635697A (en) * 2018-12-04 2019-04-16 国网浙江省电力有限公司电力科学研究院 Electric operating personnel safety dressing detection method based on YOLOv3 target detection
CN110222598B (en) * 2019-05-21 2022-09-27 平安科技(深圳)有限公司 Video behavior identification method and device, storage medium and server
CN110956077A (en) * 2019-10-08 2020-04-03 福建和盛高科技产业有限公司 Method for preventing misoperation and operation safety based on power distribution station room
CN110826610A (en) * 2019-10-29 2020-02-21 上海眼控科技股份有限公司 Method and system for intelligently detecting whether dressed clothes of personnel are standard
CN111310592B (en) * 2020-01-20 2023-06-16 杭州视在科技有限公司 Detection method based on scene analysis and deep learning
CN111325806A (en) * 2020-02-18 2020-06-23 苏州科达科技股份有限公司 Clothing color recognition method, device and system based on semantic segmentation
CN112001404A (en) * 2020-08-25 2020-11-27 华中农业大学 Image generation model and method for self-adaptive global and local double-layer optimization

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180008246A (en) * 2016-07-14 2018-01-24 카페24 주식회사 Method, Apparatus and System for Evaluating Dress Code, and Method and System for Recommending Dress Code
CN108052900A (en) * 2017-12-12 2018-05-18 成都睿码科技有限责任公司 A kind of method by monitor video automatic decision dressing specification
CN109034044A (en) * 2018-06-14 2018-12-18 天津师范大学 A kind of pedestrian's recognition methods again based on fusion convolutional neural networks
CN110287804A (en) * 2019-05-30 2019-09-27 广东电网有限责任公司 A kind of electric operating personnel's dressing recognition methods based on mobile video monitor
CN111401314A (en) * 2020-04-10 2020-07-10 上海东普信息科技有限公司 Dressing information detection method, device, equipment and storage medium
CN112528855A (en) * 2020-12-11 2021-03-19 南方电网电力科技股份有限公司 Electric power operation dressing standard identification method and device

Also Published As

Publication number Publication date
CN112528855B (en) 2021-09-03
CN112528855A (en) 2021-03-19

Similar Documents

Publication Publication Date Title
CN110210302B (en) Multi-target tracking method, device, computer equipment and storage medium
CN110070033B (en) Method for detecting wearing state of safety helmet in dangerous working area in power field
CN110276277A (en) Method and apparatus for detecting facial image
CN110135246A (en) A kind of recognition methods and equipment of human action
CN105160318A (en) Facial expression based lie detection method and system
CN109815881A (en) Training method, the Activity recognition method, device and equipment of Activity recognition model
CN112115866A (en) Face recognition method and device, electronic equipment and computer readable storage medium
CN111325745B (en) Fracture region analysis method and device, electronic equipment and readable storage medium
CN114937232B (en) Wearing detection method, system and equipment for medical waste treatment personnel protective appliance
CN112307886A (en) Pedestrian re-identification method and device
CN109948450A (en) A kind of user behavior detection method, device and storage medium based on image
CN113221767B (en) Method for training living body face recognition model and recognizing living body face and related device
CN111797773A (en) Method, device and equipment for detecting occlusion of key parts of human face
CN108288025A (en) A kind of car video monitoring method, device and equipment
Sharma et al. Automatic heart-rate measurement using facial video
WO2022121886A1 (en) Method and apparatus for identifying dress code for electric power operations
CN116092199A (en) Employee working state identification method and identification system
CN114187656A (en) Action detection method, device, equipment and storage medium
CN108875506A (en) Face shape point-tracking method, device and system and storage medium
CN113034544A (en) People flow analysis method and device based on depth camera
CN113762221B (en) Human body detection method and device
CN202694370U (en) Multi-face recognition system based on digital image processing
CN115953815A (en) Monitoring method and device for infrastructure site
CN114170662A (en) Face recognition method and device, storage medium and electronic equipment
CN112464897B (en) Electric power operator screening method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21902591

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21902591

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 26.10.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21902591

Country of ref document: EP

Kind code of ref document: A1