Label four-point detection model construction method and device
Патент · CN B
Полный текст
The invention discloses a method and a device for constructing a label four-point detection model, wherein the method comprises the steps of obtaining a training data set of a label image, carrying out data enhancement on the training data set, marking a correct target detection frame, constructing an initial network model, extracting and generating a multi-layer characteristic diagram of a corresponding image sample through the main network, generating an initial category and a position of each target through the classifying sub-network and the position sub-network, mapping the prediction frame of each target in the multi-layer characteristic diagram back to an original diagram, calculating to obtain a plurality of prediction frames of reduced real coordinates, screening the category and the position of the optimal prediction frame by adopting a preset method, training the initial network model by adopting the training data set, and constructing a loss function to obtain the label four-point detection model. The method can effectively detect the trapezoid target and accurately output four corner coordinates of the trapezoid.