Skip to content

Error in ORB.detect function , unbound type error #12706

@rishantagarwal

Description

@rishantagarwal
System information (version)
  • OpenCV => 3.4
  • Operating System / Platform => Mac OS X ( Related to JS version of Open CV)
  • JS has been built using branch 3.4
Detailed description

Was trying to use orb.detect() function in JS but it throws errors:

Cannot call Feature2D.detect due to unbound types: NSt3__26vectorIN2cv8KeyPointENS_9allocatorIS2_EEEE↵ at UnboundTypeError

Steps to reproduce

Use the steps as mentioned in the tutorial to include JS file in your code
and then when opencv has been loaded into Browser memory run this code

console.log(cv);
let imgMat = cv.imread(imgElement);
let orb = new cv.ORB();
let kp = orb.detect(imgMat,"");
console.log("kp",kp);
// let result = orb.compute(imgMat,kp);
// console.log("result",result);
mat.delete();

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions