question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error 'cv[detectorName] is not a constructor' displays when select any Feature Matching Detector name

See original GitHub issue

The problem

I want to use FeautresMatchingResult with each of Feature Detector Matching name which defined as Enum. But I’m facing the error 'cv[detectorName] is not a constructor when performing the snippet.

Environment

  • Appium version: 1.21.0
  • Desktop OS/version used to run Appium: MacOS Catalina 10.15.7
  • Node.js version: v14.16.1
  • Npm or Yarn package manager: 7.19.1
  • opencv4nodejs: 5.6.0
  • opencv: 4.5.3
  • Java-client version: 7.0.0

Link to Appium logs

https://gist.github.com/antuking/8dbcf5a01bbe27a2d3e76a3091c22612

Code To Reproduce Issue

public enum FeatureDetector {
    AKAZE, AGAST, BRISK, FAST, GFTT, KAZE, MSER, SIFT, ORB
}
FeaturesMatchingResult result = driver.matchImagesFeatures(bytesSrc,
                                     bytesTemp,
                                     new FeaturesMatchingOptions()
                                             .withDetectorName(FeatureDetector.AKAZE)
                                             .withGoodMatchesFactor(40)
                                             .withMatchFunc(MatchingFunction.BRUTE_FORCE_HAMMING)
                                             .withEnabledVisualization());

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mykola-mokhnachcommented, Nov 9, 2021

Unfortunately opencv4nodejs seems to be abandoned for quite a while and I don’t think I could help much with that. Maybe there are some C++/Node experts around who could help you to make it working. Appium is also just a client to this library

0reactions
mykola-mokhnachcommented, Nov 12, 2021

Closed as third party issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Opencv Feature Matching is not matching correctly for ...
If i match source and template cropped from same images it is matching perfectly.But when i use app icon cropped from different mobile...
Read more >
#016 Feature Matching methods comparison in OpenCV ...
Learn to match distinctive features between two or more images by using Brute-force and FLANN based feature matching methods.
Read more >
Find matching features - MATLAB matchFeatures - MathWorks
This MATLAB function returns indices of the matching features in the two input ... using one or more name-value arguments in addition to...
Read more >
Feature Detection and Matching + Image Classifier Project
We will first look at the basic code of feature detection and description and then move on to the classifier project.
Read more >
Feature matching error analysis and modeling for consistent ...
However, feature measurements are subject to non-Gaussian errors and, in particular, to outliers in feature extraction and matching. If not properly accounted ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found