# I can't use opencv extra modules like Eigenfaces, Fisherfaces etc

**URL:** <https://forum.opencv.org/t/i-cant-use-opencv-extra-modules-like-eigenfaces-fisherfaces-etc/1780>\
**Category:** Uncategorized\
**Tags:** javascript, opencvjs, face, contrib\
**Created:** [February 24, 2021, 10:56pm UTC](https://forum.opencv.org/t/i-cant-use-opencv-extra-modules-like-eigenfaces-fisherfaces-etc/1780 "2021-02-24T22:56:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![murilors](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@murilors](https://forum.opencv.org/u/murilors)\
**Post date:** [February 24, 2021, 10:56pm UTC](https://forum.opencv.org/t/i-cant-use-opencv-extra-modules-like-eigenfaces-fisherfaces-etc/1780/1 "2021-02-24T22:56:53Z")

</div>

Hello, I’m trying to use opencv with the npm package opencv4nodejs, the installation process works fine but the problem is when I try to use some extra module of opencv like eigenfaces and fisherfaces.

When I try to use theses modules an error shows to me saying EigenFaceRecognizer is not a valid constructor, I don’t believe the error is with the npm package because de install works well.

When I use the cmake to install theses extra modules the eigen is not intalled, someone know what can I do?

The nodejs code.

 ![Sem título](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/b/bb432fa7a130de500e1e8890aeda904577f6d2a8.png)

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [February 25, 2021, 6:48am UTC](https://forum.opencv.org/t/i-cant-use-opencv-extra-modules-like-eigenfaces-fisherfaces-etc/1780/2 "2021-02-25T06:48:53Z")

</div>

those functions are from the `face` module from the `opencv-contrib` repository and the build you have doesn’t contain `contrib`

---

<div class="post-metadata">

**Author:** ![murilors](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@murilors](https://forum.opencv.org/u/murilors)\
**Post date:** [February 25, 2021, 5:15pm UTC](https://forum.opencv.org/t/i-cant-use-opencv-extra-modules-like-eigenfaces-fisherfaces-etc/1780/3 "2021-02-25T17:15:48Z")

</div>

hello @crackwitz I have this face module inside my opencv build folder.

![Sem título](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/9/92700199cfa15bf0be20ebe53082a9af6f8a2eec.png)

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [February 25, 2021, 6:44pm UTC](https://forum.opencv.org/t/i-cant-use-opencv-extra-modules-like-eigenfaces-fisherfaces-etc/1780/4 "2021-02-25T18:44:43Z")

</div>

try if `cv.face.EigenFaceRecognizer` exists? some of those functions might be namespaced.

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [February 26, 2021, 11:15am UTC](https://forum.opencv.org/t/i-cant-use-opencv-extra-modules-like-eigenfaces-fisherfaces-etc/1780/5 "2021-02-26T11:15:56Z")

</div>

support for the js face module [is still in the making](https://github.com/opencv/opencv_contrib/pull/2228)

---

<div class="post-metadata">

**Author:** ![murilors](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@murilors](https://forum.opencv.org/u/murilors)\
**Post date:** [February 27, 2021, 4:23pm UTC](https://forum.opencv.org/t/i-cant-use-opencv-extra-modules-like-eigenfaces-fisherfaces-etc/1780/6 "2021-02-27T16:23:09Z")

</div>

When I log the cv.modules gives me that, and if I try to log cv.face gives me undefined, maybe I need to add the face module, but how can I do that, it’s not a default module of opencv?

![Sem título](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/a/ab7126365c29c6b19ba1a92d9be52409115fa5c5.png)
