The invention provides a hole site protection door state detection method and device,
computer equipment and a storage medium. The method comprises steps of starting from image recognition, acquiringan image of to-be-tested equipment to construct a training sample set; obtaining a preset threshold value of a
discrimination function straight line according to the training sample set; then, carrying out self-adaptive dynamic threshold segmentation based on
local statistics on a newly obtained image of the to-be-detected equipment, accurately screening out the hole site area; projecting extracted gray features of the hole site area to a preset
discrimination function straight line to achieve the effects of extracting the classification information and compressing the feature space dimension;wherein after projection, the feature subset has the maximum inter-class distance and the minimum intra-class distance in the subspace after projection; finally, judging whether the to-be-detected equipment has defects or not according to the projection ordinate value of the gray feature subset and the threshold value of the preset
discrimination function straight line. The method is convenient,fast, effective, high in accuracy, high in anti-interference capacity and stable in detection result.