Skip to content

Commit

Permalink
extend facereco with correct dataset paeth
Browse files Browse the repository at this point in the history
  • Loading branch information
nischi committed Sep 7, 2019
1 parent e748de1 commit 99b6cb4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion MMM-Face-Reco-DNN.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ Module.register("MMM-Face-Reco-DNN", {
welcomeMessage: true,
// Save some pictures from recognized people, if unknown we save it in folder "unknown"
// So you can extend your dataset and retrain it afterwards for better recognitions
extendDataset: false
extendDataset: false,
// if extenDataset is set, you need to set the full path of the dataset
dataset: 'modules/MMM-Face-Reco-DNN/dataset/'
},

timouts: {},
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ To setup the module in MagicMirror², add the following script int the config.js
welcomeMessage: true,
// Save some pictures from recognized people, if unknown we save it in folder "unknown"
// So you can extend your dataset and retrain it afterwards for better recognitions
extendDataset: false
extendDataset: false,
// if extenDataset is set, you need to set the full path of the dataset
dataset: 'modules/MMM-Face-Reco-DNN/dataset/'
}
}
```
Expand Down Expand Up @@ -231,6 +233,7 @@ Config | Description
`pythonPath` | Path to Python where the Face-Recognition will run. <br />**Default Value:** `null`
`welcomeMessage` | Show Welcome Message over alert module from MagicMirror. <br />**Default Value:** `true`
`extendDataset` | Save some pictures from recognized people, if unknown we save it in folder "unknown". So you can extend your dataset and retrain it afterwards for better recognitions. <br />**Default Value:** `false`
`dataset`| If extendDataset is set you need to set the path to the dataset as well. <br /> **Default Value:** `modules/MMM-Face-Reco-DNN/dataset/`

## Credits

Expand Down
3 changes: 2 additions & 1 deletion node_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ module.exports = NodeHelper.create({
'--detectionMethod=' + this.config.detectionMethod,
'--interval=' + this.config.checkInterval,
'--output=' + this.config.output,
'--extendDataset=' + extendedDataset
'--extendDataset=' + extendedDataset,
'--dataset=' + this.config.dataset
]
}

Expand Down

0 comments on commit 99b6cb4

Please sign in to comment.