Package io.appium.java_client
Interface ComparesImages
-
- All Superinterfaces:
ExecutesMethod
- All Known Implementing Classes:
AndroidDriver
,AppiumDriver
,ChromiumDriver
,FlutterAndroidDriver
,FlutterIOSDriver
,GeckoDriver
,IOSDriver
,Mac2Driver
,SafariDriver
,WindowsDriver
public interface ComparesImages extends ExecutesMethod
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default OccurrenceMatchingResult
findImageOccurrence(byte[] fullImage, byte[] partialImage)
Performs images matching by template to find possible occurrence of the partial image in the full image with default options.default OccurrenceMatchingResult
findImageOccurrence(byte[] fullImage, byte[] partialImage, OccurrenceMatchingOptions options)
Performs images matching by template to find possible occurrence of the partial image in the full image.default OccurrenceMatchingResult
findImageOccurrence(java.io.File fullImage, java.io.File partialImage)
Performs images matching by template to find possible occurrence of the partial image in the full image with default options.default OccurrenceMatchingResult
findImageOccurrence(java.io.File fullImage, java.io.File partialImage, OccurrenceMatchingOptions options)
Performs images matching by template to find possible occurrence of the partial image in the full image.default SimilarityMatchingResult
getImagesSimilarity(byte[] base64image1, byte[] base64Image2)
Performs images matching to calculate the similarity score between them with default options.default SimilarityMatchingResult
getImagesSimilarity(byte[] base64image1, byte[] base64Image2, SimilarityMatchingOptions options)
Performs images matching to calculate the similarity score between them.default SimilarityMatchingResult
getImagesSimilarity(java.io.File image1, java.io.File image2)
Performs images matching to calculate the similarity score between them with default options.default SimilarityMatchingResult
getImagesSimilarity(java.io.File image1, java.io.File image2, SimilarityMatchingOptions options)
Performs images matching to calculate the similarity score between them.default FeaturesMatchingResult
matchImagesFeatures(byte[] base64image1, byte[] base64Image2)
Performs images matching by features with default options.default FeaturesMatchingResult
matchImagesFeatures(byte[] base64image1, byte[] base64Image2, FeaturesMatchingOptions options)
Performs images matching by features.default FeaturesMatchingResult
matchImagesFeatures(java.io.File image1, java.io.File image2)
Performs images matching by features with default options.default FeaturesMatchingResult
matchImagesFeatures(java.io.File image1, java.io.File image2, FeaturesMatchingOptions options)
Performs images matching by features.-
Methods inherited from interface io.appium.java_client.ExecutesMethod
execute, execute
-
-
-
-
Method Detail
-
matchImagesFeatures
default FeaturesMatchingResult matchImagesFeatures(byte[] base64image1, byte[] base64Image2)
Performs images matching by features with default options. Read https://docs.opencv.org/3.0-beta/doc/py_tutorials/py_feature2d/py_matcher/py_matcher.html for more details on this topic.- Parameters:
base64image1
- base64-encoded representation of the first imagebase64Image2
- base64-encoded representation of the second image- Returns:
- The matching result.
-
matchImagesFeatures
default FeaturesMatchingResult matchImagesFeatures(byte[] base64image1, byte[] base64Image2, @Nullable FeaturesMatchingOptions options)
Performs images matching by features. Read https://docs.opencv.org/3.0-beta/doc/py_tutorials/py_feature2d/py_matcher/py_matcher.html for more details on this topic.- Parameters:
base64image1
- base64-encoded representation of the first imagebase64Image2
- base64-encoded representation of the second imageoptions
- comparison options- Returns:
- The matching result. The configuration of fields in the result depends on comparison options.
-
matchImagesFeatures
default FeaturesMatchingResult matchImagesFeatures(java.io.File image1, java.io.File image2) throws java.io.IOException
Performs images matching by features with default options. Read https://docs.opencv.org/3.0-beta/doc/py_tutorials/py_feature2d/py_matcher/py_matcher.html for more details on this topic.- Parameters:
image1
- The location of the first imageimage2
- The location of the second image- Returns:
- The matching result.
- Throws:
java.io.IOException
- On file system I/O error.
-
matchImagesFeatures
default FeaturesMatchingResult matchImagesFeatures(java.io.File image1, java.io.File image2, @Nullable FeaturesMatchingOptions options) throws java.io.IOException
Performs images matching by features. Read https://docs.opencv.org/3.0-beta/doc/py_tutorials/py_feature2d/py_matcher/py_matcher.html for more details on this topic.- Parameters:
image1
- The location of the first imageimage2
- The location of the second imageoptions
- comparison options- Returns:
- The matching result. The configuration of fields in the result depends on comparison options.
- Throws:
java.io.IOException
- On file system I/O error.
-
findImageOccurrence
default OccurrenceMatchingResult findImageOccurrence(byte[] fullImage, byte[] partialImage)
Performs images matching by template to find possible occurrence of the partial image in the full image with default options. Read https://docs.opencv.org/2.4/doc/tutorials/imgproc/histograms/template_matching/template_matching.html for more details on this topic.- Parameters:
fullImage
- base64-encoded representation of the full imagepartialImage
- base64-encoded representation of the partial image- Returns:
- The matching result.
-
findImageOccurrence
default OccurrenceMatchingResult findImageOccurrence(byte[] fullImage, byte[] partialImage, @Nullable OccurrenceMatchingOptions options)
Performs images matching by template to find possible occurrence of the partial image in the full image. Read https://docs.opencv.org/2.4/doc/tutorials/imgproc/histograms/template_matching/template_matching.html for more details on this topic.- Parameters:
fullImage
- base64-encoded representation of the full imagepartialImage
- base64-encoded representation of the partial imageoptions
- comparison options- Returns:
- The matching result. The configuration of fields in the result depends on comparison options.
-
findImageOccurrence
default OccurrenceMatchingResult findImageOccurrence(java.io.File fullImage, java.io.File partialImage) throws java.io.IOException
Performs images matching by template to find possible occurrence of the partial image in the full image with default options. Read https://docs.opencv.org/2.4/doc/tutorials/imgproc/histograms/template_matching/template_matching.html for more details on this topic.- Parameters:
fullImage
- The location of the full imagepartialImage
- The location of the partial image- Returns:
- The matching result. The configuration of fields in the result depends on comparison options.
- Throws:
java.io.IOException
- On file system I/O error.
-
findImageOccurrence
default OccurrenceMatchingResult findImageOccurrence(java.io.File fullImage, java.io.File partialImage, @Nullable OccurrenceMatchingOptions options) throws java.io.IOException
Performs images matching by template to find possible occurrence of the partial image in the full image. Read https://docs.opencv.org/2.4/doc/tutorials/imgproc/histograms/template_matching/template_matching.html for more details on this topic.- Parameters:
fullImage
- The location of the full imagepartialImage
- The location of the partial imageoptions
- comparison options- Returns:
- The matching result. The configuration of fields in the result depends on comparison options.
- Throws:
java.io.IOException
- On file system I/O error.
-
getImagesSimilarity
default SimilarityMatchingResult getImagesSimilarity(byte[] base64image1, byte[] base64Image2)
Performs images matching to calculate the similarity score between them with default options. The flow there is similar to the one used infindImageOccurrence(byte[], byte[], OccurrenceMatchingOptions)
, but it is mandatory that both images are of equal size.- Parameters:
base64image1
- base64-encoded representation of the first imagebase64Image2
- base64-encoded representation of the second image- Returns:
- Matching result. The configuration of fields in the result depends on comparison options.
-
getImagesSimilarity
default SimilarityMatchingResult getImagesSimilarity(byte[] base64image1, byte[] base64Image2, @Nullable SimilarityMatchingOptions options)
Performs images matching to calculate the similarity score between them. The flow there is similar to the one used infindImageOccurrence(byte[], byte[], OccurrenceMatchingOptions)
, but it is mandatory that both images are of equal size.- Parameters:
base64image1
- base64-encoded representation of the first imagebase64Image2
- base64-encoded representation of the second imageoptions
- comparison options- Returns:
- Matching result. The configuration of fields in the result depends on comparison options.
-
getImagesSimilarity
default SimilarityMatchingResult getImagesSimilarity(java.io.File image1, java.io.File image2) throws java.io.IOException
Performs images matching to calculate the similarity score between them with default options. The flow there is similar to the one used infindImageOccurrence(byte[], byte[], OccurrenceMatchingOptions)
, but it is mandatory that both images are of equal size.- Parameters:
image1
- The location of the full imageimage2
- The location of the partial image- Returns:
- Matching result. The configuration of fields in the result depends on comparison options.
- Throws:
java.io.IOException
- On file system I/O error.
-
getImagesSimilarity
default SimilarityMatchingResult getImagesSimilarity(java.io.File image1, java.io.File image2, @Nullable SimilarityMatchingOptions options) throws java.io.IOException
Performs images matching to calculate the similarity score between them. The flow there is similar to the one used infindImageOccurrence(byte[], byte[], OccurrenceMatchingOptions)
, but it is mandatory that both images are of equal size.- Parameters:
image1
- The location of the full imageimage2
- The location of the partial imageoptions
- comparison options- Returns:
- Matching result. The configuration of fields in the result depends on comparison options.
- Throws:
java.io.IOException
- On file system I/O error.
-
-