Comments (4)
Still nobody have found a way to this problem? I have it myself, and it's kinda annoying, after that i have been using multiple days to figure out the cv2 can't be found problem.
from mmm-facial-recognition-ocv3.
I fixed the issue by replacing:
cv2.face.LBPHFaceRecognizer_create(threshold=thresh)
with:
cv2.face.createLBPHFaceRecognizer(threshold=thresh)
in the file:
MMM-Facial-Recognition-OCV3/lib/common/commonconfig.py
from mmm-facial-recognition-ocv3.
@Blauenfeldt your fix helped, but then I ended up with the following. Is there a solution for this one?
Training model with threshold 80
Traceback (most recent call last):
File "tools.train.py", line 14, in
ToolsTrain().train()
File "/home/pi/MagicMirror/modules/MMM-Facial-Recognition-OCV3/lib/tools/train.py", line 74, in train
model.write(ToolsConfig.TRAINING_FILE)
AttributeError: 'cv2.face_LBPHFaceRecognizer' object has no attribute 'write'
EDIT:
Replacing model.write with model.save in the file /home/pi/MagicMirror/modules/MMM-Facial-Recognition-OCV3/lib/tools/train.py helped
from mmm-facial-recognition-ocv3.
I got it all working that time. the problem is, as I can remember, that from Python, as it was programmed in, to Python3.1 there was some changes to got things are spelled. Like @JahFyahh said, "write" was used in Python, and in Python3.1 "save" is used instead.
@666Necrom I think you can mark this as solved.
from mmm-facial-recognition-ocv3.
Related Issues (20)
- error This header with legacy C API HOT 1
- 'module' object has no attribute 'face' HOT 1
- CONFIG_DATA = json.loads(sys.argparse[1]);
- CMake Error
- c++: internal compiler error: Speicherzugriffsfehler (program cc1plus) HOT 1
- Missing training.xml file HOT 1
- ValueError: too many values to unpack when I try to run training
- Traceback issue after capture
- No module named builtins HOT 2
- IP camera
- Face recognized and classes allocated, still no module reveal. HOT 9
- Face not recognized. Does have have training file HOT 1
- ENABLE/DISABLE HELP
- Error while building Opencv - Please help if can! HOT 1
- An error occurred while running python tools.facerecognition.py
- make -j4 error HOT 4
- PiCam not opening, recognition not triggered HOT 1
- sudo apt-get install libatlas-base-dev gfortran
- Magic Mirror run with Black Display
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mmm-facial-recognition-ocv3.