US 11,875,531 B1
Detection method, electronic device, and computer-readable storage medium
Yinhang Tu, Ningde (CN); Xiaofeng Liu, Ningde (CN); and Shichuang Song, Ningde (CN)
Assigned to CONTEMPORARY AMPEREX TECHNOLOGY CO., LIMITED, Ningde (CN)
Filed by CONTEMPORARY AMPEREX TECHNOLOGY CO., LIMITED, Ningde (CN)
Filed on Jun. 21, 2023, as Appl. No. 18/338,358.
Application 18/338,358 is a continuation of application No. PCT/CN2021/118094, filed on Sep. 14, 2021.
Int. Cl. G06T 7/73 (2017.01); G06V 10/141 (2022.01); G06V 10/10 (2022.01); G06T 7/62 (2017.01)
CPC G06T 7/73 (2017.01) [G06T 7/62 (2017.01); G06V 10/141 (2022.01); G06V 10/16 (2022.01)] 10 Claims
OG exemplary drawing
 
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.