CPC G06V 10/44 (2022.01) [G06T 5/30 (2013.01); G06T 7/13 (2017.01); G06T 7/62 (2017.01); G06T 7/73 (2017.01); G06V 10/28 (2022.01); G06V 10/471 (2022.01); G06V 10/752 (2022.01); G06T 2207/10016 (2013.01); G06T 2207/20044 (2013.01); G06T 2207/20164 (2013.01); G06T 2207/20224 (2013.01); G06V 30/10 (2022.01); G06V 2201/02 (2022.01)] | 12 Claims |
1. A non-intrusive detection method for pop-up window button configured for recognizing at least one pop-up window button of a pop-up window on a display device, the non-intrusive detection method comprising the following steps of:
S1: retrieving a screen image of the display device;
S2: comparing the screen image with a preset screen image, and generating a differential image area according the screen image and the preset screen image;
S3: determining whether the differential image area is greater than an image area threshold value;
S4: determining the differential image area as the pop-up window when the differential image area is greater than the image area threshold value;
S5: presetting a contour length threshold value of the pop-up window, and selecting a plurality of contour lengths greater than the contour length threshold value by Canny edge detector; and
S6: presetting an amount of endpoints of the at least one pop-up window button, and interpreting the plurality of contour lengths according to Douglas-Peucker algorithm and the amount of endpoints to generate a contour edge corresponding to the at least one pop-up window button.
|