peterbraden/node-opencv

Reading pgm files returns null

Closed this issue · 1 comments

Hello,
I'm sorry if it is something obvious, I'm quite new to openCV and nodeJS.
I want to create a Face Recognition application which checks 2 faces for similarity, so far I already managed to successfully detect and predict one incoming face but to build the Eigenfaces alogrithm (Wikipedia) to get the difference from trained data to new data, I need to get all differences from every face and those trained faces are in pgm format (training data from AT&T Facedatabase) according to the OpenCV docs reading an pgm should be always supported (Docs) and the Readme.md also says that supported formats are in the docs. But I keep getting null as result.
I'm currently running node 6.12, opencv 3.2.0-13 as well as node-opencv 6.0.0 on Fedora.

After looking around for some time I've seen, that I do get a matrix, I was just trying to read it wrong.
I'm so sorry for uselessly opening this issue :(