Skip to content

Commit

Permalink
change to opencv-python from opencv-python-headless
Browse files Browse the repository at this point in the history
  • Loading branch information
nischiemineo committed Nov 20, 2023
1 parent c85c313 commit 5012f98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ But that this is working you need installed system wide tools before:
- `sudo apt install libcap-dev`
- install python dependencies
- If you working with Bookworm you need to create first an virtual environment, please have a look in the next chapter
- `pip install face-recognition numpy dlib picamera2 opencv-python-headless`
- `pip install face-recognition numpy dlib picamera2 opencv-python`

### Some additional steps for Bookworm and above to run it with an virtual environment

If you want/need to install it with an virtual environment, you need to do following steps before you install the packages with pip

- create environment with `python3 -m venv ~/python-facereco`
- activate environment with `source ~/python-facereco/bin/activate`
- install pip packages with `pip install face-recognition numpy dlib picamera2 opencv-python-headless`
- install pip packages with `pip install face-recognition numpy dlib picamera2 opencv-python`
- Because some libraries uses global installed libs which are not available with pip, you need to change the config of your virtual environment
- `nano ~/python-facereco/pyvenv.cfg`
- Change line `include-system-site-packages = false` to `include-system-site-packages = true`
Expand Down Expand Up @@ -124,7 +124,7 @@ To setup the module in MagicMirror², add the following section to the `config.j
everyoneClass: 'everyone',
// Set of modules that are always shown - show if there is a face or no face detected
alwaysClass: 'always',
// xml to recognize with haarcascae
// xml to recognize with haarcascade
cascade: 'modules/MMM-Face-Reco-DNN/model/haarcascade_frontalface_default.xml',
// pre encoded pickle with the faces
encodings: 'modules/MMM-Face-Reco-DNN/model/encodings.pickle',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mmm-face-reco-dnn",
"version": "2.0.1",
"version": "2.0.2",
"description": "Face Recognition with Open CV and Deep Neural Network",
"main": "MMM-Face-Reco-DNN.js",
"repository": {
Expand Down

0 comments on commit 5012f98

Please sign in to comment.