Image matching method, application testing method, device and system
A matching method and image technology, which is applied in the directions of software testing/debugging, error detection/correction, character and pattern recognition, etc., can solve the problems of wrong matching and low accuracy of image matching, so as to reduce wrong matching, improve accuracy, The effect of high image recognition accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0070] Embodiment 1 of the present invention provides an image matching method, referring to figure 1 shown, including the following steps:
[0071] Step S11: Obtain zoom images of multiple zoom ratios of the screenshot.
[0072] Specifically, starting from a preset minimum zoom ratio, multiple zoom images of the screen shot at preset intervals may be acquired until the zoom image of a preset maximum zoom ratio is obtained. For example, if the preset minimum zoom ratio is 50%, the maximum zoom ratio is 150%, and the preset interval is 1%, then 50%, 51%, 52%, ..., 100%, ..., 149 of the screenshot will be obtained sequentially % and 150% zoom scale.
[0073] Step S12: For each scaled image, determine at least one candidate matching area in the scaled image that matches the template image to be matched, and the similarity between the candidate matching area and the template image.
[0074] In one embodiment, before step S12 is performed, each scaled image and the template imag...
Embodiment 2
[0080] Embodiment 2 of the present invention provides a specific implementation of an image matching method, the process of which is as follows figure 2 shown, including the following steps:
[0081] Step S201: Perform grayscale processing on the screenshot and the template image to be matched.
[0082] Step S202: Determine the combined value of the hash fingerprint of the processed screenshot and the hash fingerprint of the processed template image.
[0083] Specifically, the hash fingerprints of the screenshot and the template image may be determined respectively by using a perception hash (perception hash, phash) algorithm; optionally, the hash fingerprints of the screenshot and the template map may be determined separately by using a gradient hash (difference hash, phash) algorithm The hash fingerprints of screenshots and template images can also use other hash fingerprint algorithms, and the specific algorithm is not limited in this embodiment, as long as it is consiste...
Embodiment 3
[0116] Each application needs to be tested on different types of terminals before it is released, or before an updated version of the application is released. It can be obtained by obtaining a screenshot of the user interface of the application on the specified terminal that contains only one functional component, as the to-be-matched the template image; capture a screenshot of the corresponding user interface on the terminal to be detected; determine the matching area of the template image in the captured screenshot, and perform preset operations in the matching area to detect whether the components in the matching area are normal; Follow the method above to complete the detection of all components included in the application.
[0117] Embodiment 3 of the present invention provides a specific implementation of an application testing method, the flow of which is as follows Figure 4 shown, including the following steps:
[0118] Step S41: Obtain a screenshot of the user int...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com