Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange problem #355

Open
Gektor40k opened this issue Jul 11, 2018 · 1 comment
Open

Strange problem #355

Gektor40k opened this issue Jul 11, 2018 · 1 comment

Comments

@Gektor40k
Copy link

Gektor40k commented Jul 11, 2018

Hello justadudewhohacks!
I have a strange problem, I'll try to tell you what I have:
two computers, both Windows 7. Same folders with binaries and libs of openCV. The correct paths in OPENCV_LIB_DIR, OPENCV_DIR, OPENCV_BIN_DIR and OPENCV_INCLUDE_DIR and PATH.
Three files: 1.jpg, 2.jpg (trimmed part 1.jpg) and 3.bmp.
A test application that captures keypoints and descriptors.
On my main machine, (where I once builded opencv from the sources), all three files are fully processed. On the second machine, only 2.jpg is processed, while the remaining files are not processed. At the detect stage, the process simply ends, not reporting anything to the console. Can you tell why this can happen?
my code:
const fs = require('fs');
const cv = require('opencv4nodejs');

let buffer = fs.readFileSync('./1.jpg');
console.log('readed');
let image = cv.imdecode(buffer, 0);
let detector = new cv.SURFDetector({nFeatures: 400});
let keyPoints = detector.detect(image); //There the process simply ends
console.log(keyPoints);
let descriptors = detector.compute(image, keyPoints);
console.log(descriptors);
console.log('all done')

@justadudewhohacks
Copy link
Owner

I would use segfault handler first, to get a stacktrace where the program is crashing. It's most likely a segfault.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants