CPC G06T 7/73 (2017.01) [G06T 7/62 (2017.01); G06V 10/141 (2022.01); G06V 10/16 (2022.01)] | 10 Claims |
1. A detection method, comprising:
receiving an image of a product to be detected, and detecting a position of a preset feature point on a cover plate based on the image, wherein the product to be detected comprises a connection piece and a cover plate, the connection piece is located on the cover plate and covers a partial region of the cover plate, and the preset feature point is located in a non-edge region on the cover plate that is not covered by the connection piece;
obtaining a position of the cover plate in the image based on the position of the preset feature point and a size of the cover plate;
obtaining a position of the connection piece in the image based on the image;
obtaining an actual position of the cover plate and an actual position of the connection piece based on the position of the cover plate in the image and the position of the connection piece in the image; and
detecting a position offset between the cover plate and the connection piece based on the actual position of the cover plate and the actual position of the connection piece.
|