Ya encontré el error de cuando no quiere abrir la cámara. Todo se debe a que "haarcascade_frontalface_default.xml" por alguna razón solo lo puede abrir como modo lectura, entonces lo que tienen que hacer es: 1. Abrir “haarcascade_frontalface_default.xml” con el bloc de notas. 2. Dar clic en “Guardar Como”, y seleccionar la opción “UTF-8” como Codificación. Guardarlo en otra ubicación, y después pegarlo en la carpeta "resources". No vayan a sobreescribir el archivo existente.
bueno entonces, yo también estoy confundido acerca de encontrar la solución al error que estás experimentando. La solución que ha encontrado se puede ingresar para mí si experimento un error similar.
halo pak, maaf saya ingin bertanya. saya mengalami masalah ketika ingin training dan muncul error berikut "cv2.error: OpenCV(4.9.0) D:\a\opencv-python\opencv-python\opencv_contrib\modules\face\src\lbph_faces.cpp:362: error: (-210:Unsupported format or combination of formats) Empty training data was given. You'll need more than one sample to learn a model. in function 'cv::face::LBPH::train'" boleh minta arahannya Pak, terimakasih
mas ijin bertanya, tempat saya ketika add data personel masuk data nya tp tidak muncul utk train kamera. Ada pesan error demikian : [ERROR:0@34.553] global D:\a\opencv-python\opencv-python\opencv\modules\core\src\persistence.cpp (505) cv::FileStorage::Impl::open Can't open file: 'classifier.xml' in read mode Debugging middleware caught exception in streamed response at a point where response headers were already sent. Traceback (most recent call last): File "C:\Users\SATELLITE\PycharmProjects\FlaskOpencv_FaceRecognition\venv\lib\site-packages\werkzeug\wsgi.py", line 500, in __next__ return self._next() File "C:\Users\SATELLITE\PycharmProjects\FlaskOpencv_FaceRecognition\venv\lib\site-packages\werkzeug\wrappers esponse.py", line 50, in _iter_encoded for item in iterable: File "C:\Users\SATELLITE\PycharmProjects\FlaskOpencv_FaceRecognition\app.py", line 132, in face_recognition clf.read("classifier.xml") cv2.error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv_contrib\modules\face\src\facerec.cpp:61: error: (-2:Unspecified error) File can't be opened for reading! in function 'cv::face::FaceRecognizer::read'
@thomasdhaniekakurniawan1160, mungkin error ini ada hubungannya dengan jawaban dari @fullops3223 di bawah (bahasa spanyol). Harusnya kalau root folder project nya ada di folder PycharmProjects tidak akan masalah.
mas ijin bertanya saya menghadapi error D:\pyproject\FlaskOpencv_FaceRecognition\app.py:30: SyntaxWarning: "is" with a literal. Did you mean "=="? untuk bug fixingnya apa yah mas? terimakasih
@@rsfaelto1234 , di tutorial berikutnya yang sedang saya persiapkan, mudah-mudahan bisa menjadi contoh untuk issue yang anda sampaikan tersebut. Harap bersabar menunggu tutorial berikutnya di channel ini karena kesibukan saya sehari-hari membuat penyelesaian tutorial menjadi terhambat.
for the delete process, it works like this: - create a delete button in each line of personnel on the home page - if the delete button is clicked then delete the personnel number record in the database and delete the personnel photo in the dataset folder - generate dataset again by calling def train_classifier() function something like that, hopefully it helps and don't forget to subscribe to this channel
Error: File "D:\PycharmProjects\PirumaApp\app.py", line 132, in face_recognition clf.read("classifier.xml") cv2.error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv_contrib\modules\face\src\facerec.cpp:61: error: (-2:Unspecified error) File can't be opened for reading! in function 'cv::face::FaceRecognizer::read' Edit : solved, thanks
To find out the cause of the problem can be seen through the python console window at the bottom of the pycharm IDE. Generally, errors often occur due to inappropriate packages.
Terima kasih, tutorialnya bagus
sama-sama
halo mas, terima kasih banyak tutorialnya. Btw kalo mau pake metode deep learning (misal. CNN) itu bagaimana caranya ya mas?
Ya encontré el error de cuando no quiere abrir la cámara. Todo se debe a que "haarcascade_frontalface_default.xml" por alguna razón solo lo puede abrir como modo lectura, entonces lo que tienen que hacer es:
1. Abrir “haarcascade_frontalface_default.xml” con el bloc de notas.
2. Dar clic en “Guardar Como”, y seleccionar la opción “UTF-8” como Codificación. Guardarlo en otra ubicación, y después pegarlo en la carpeta "resources". No vayan a sobreescribir el archivo existente.
bueno entonces, yo también estoy confundido acerca de encontrar la solución al error que estás experimentando. La solución que ha encontrado se puede ingresar para mí si experimento un error similar.
Hice los mismo pasos que hiciste pero aun asi el archivo haarcascade_frontalface_default.xml lo sigue abriendo como modo lectura
halo pak, maaf saya ingin bertanya. saya mengalami masalah ketika ingin training dan muncul error berikut
"cv2.error: OpenCV(4.9.0) D:\a\opencv-python\opencv-python\opencv_contrib\modules\face\src\lbph_faces.cpp:362: error: (-210:Unsupported format or combination of formats) Empty training data was given. You'll need more than one sample to learn a model. in function 'cv::face::LBPH::train'"
boleh minta arahannya Pak, terimakasih
Al momento de entrar en la opción Generate Dataset, no aparece la ventana de la cámara. Tengo instaladas las mismas versiones de librerías.
@fullops3223 , tal vez el directorio haarcascade_frontalface_default.xml aún no se ha ajustado
mantap project ny mas, apakah ini bisa di live kan di server hosting langsung mas ?
apakah bisa mengenerate dataset dengan foto yg sudah ada, karena saya ada 500 lebih user
full video plz
Mas, wajah yang belum di training kok bisa terdeteksi ya? Trus munculnya nama orang lain.
izin bertanya mas, project ini menggunakan metode apa?
everything is working but fr_page is not working
mas ijin bertanya, tempat saya ketika add data personel masuk data nya tp tidak muncul utk train kamera. Ada pesan error demikian :
[ERROR:0@34.553] global D:\a\opencv-python\opencv-python\opencv\modules\core\src\persistence.cpp (505) cv::FileStorage::Impl::open Can't open file: 'classifier.xml' in read mode
Debugging middleware caught exception in streamed response at a point where response headers were already sent.
Traceback (most recent call last):
File "C:\Users\SATELLITE\PycharmProjects\FlaskOpencv_FaceRecognition\venv\lib\site-packages\werkzeug\wsgi.py", line 500, in __next__
return self._next()
File "C:\Users\SATELLITE\PycharmProjects\FlaskOpencv_FaceRecognition\venv\lib\site-packages\werkzeug\wrappers
esponse.py", line 50, in _iter_encoded
for item in iterable:
File "C:\Users\SATELLITE\PycharmProjects\FlaskOpencv_FaceRecognition\app.py", line 132, in face_recognition
clf.read("classifier.xml")
cv2.error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv_contrib\modules\face\src\facerec.cpp:61: error: (-2:Unspecified error) File can't be opened for reading! in function 'cv::face::FaceRecognizer::read'
@thomasdhaniekakurniawan1160, mungkin error ini ada hubungannya dengan jawaban dari @fullops3223 di bawah (bahasa spanyol). Harusnya kalau root folder project nya ada di folder PycharmProjects tidak akan masalah.
module 'cv2.face' has no attribute 'LBPHFaceRecognizer_create'
itu gmana ya bang, camera udah berfungsi, tapi muncul itu pas klik training
add interpretrer opencv-contrib-python
WT Algorithm u use for Face Recognition ?
I use haar cascade algorithm
halo pak, apakah ada file classifier.xml nya ?
1:24 two eriks
maybe the face recognition application thinks it's my twin 😅
how to throw the project now after aller steps to create it
could you please clarify the question again. I don't understand what you mean?
mas ijin bertanya saya menghadapi error
D:\pyproject\FlaskOpencv_FaceRecognition\app.py:30: SyntaxWarning: "is" with a literal. Did you mean "=="?
untuk bug fixingnya apa yah mas? terimakasih
coba uninstall package opencv-contrib-python nya. terus instal ulang. Atau mungkin version opencv-contrib-python nya berbeda dengan yg ditutorial
@@kode_erik sudah sama semua mas
@@jaya176 syntax if faces is (): ganti saja dengan if faces == ()
@@kode_erik oke sip sudah bisa mas terimakasih
@@kode_erik mas boleh minta kontak Wanya? Ada yang mau saya diskusikan
where to download the html files?
you have to click the link in the description to go to my website page. then search for faceRecognition_files.zip
@@kode_erik thank you my good sir
File dasar proyek tidak dapat diunduh, terima kasih banyak telah berbagi pengetahuan Anda
oo iya , ternyata saya lupa menaruh file .zip nya di server. Sekarang sudah bisa didownload
@@kode_erik Akan sangat bagus jika Anda dapat melanjutkan proyek dengan melakukan penyisipan database ketika mendeteksi wajah yang tidak dikenal.
@@rsfaelto1234 , di tutorial berikutnya yang sedang saya persiapkan, mudah-mudahan bisa menjadi contoh untuk issue yang anda sampaikan tersebut. Harap bersabar menunggu tutorial berikutnya di channel ini karena kesibukan saya sehari-hari membuat penyelesaian tutorial menjadi terhambat.
How to delete account?
for the delete process, it works like this:
- create a delete button in each line of personnel on the home page
- if the delete button is clicked then delete the personnel number record in the database and delete the personnel photo in the dataset folder
- generate dataset again by calling def train_classifier() function
something like that, hopefully it helps and don't forget to subscribe to this channel
Error:
File "D:\PycharmProjects\PirumaApp\app.py", line 132, in face_recognition
clf.read("classifier.xml")
cv2.error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv_contrib\modules\face\src\facerec.cpp:61: error: (-2:Unspecified error) File can't be opened for reading! in function 'cv::face::FaceRecognizer::read'
Edit : solved, thanks
how bro? can you explain a little more
@@Hakan0ck I think the problem is because i put my projects in directory D. So I put it in directory C.
face recognition part camera is not working there is a blank what is the problem
To find out the cause of the problem can be seen through the python console window at the bottom of the pycharm IDE.
Generally, errors often occur due to inappropriate packages.
change folder directory for face_classifier, dataset_dir, and faceCascade base on your computer directory
@@alfianramadhan6590 terima kasih
@@kode_erik justru saya yg terimakasih bang uda ngeshare projectnya. membantu banget soalnya
@@alfianramadhan6590 Alhamdulillah
Izin bertanya mas, saya menghadapi error: jinja2.exceptions.templatenotfound index.html
Kira kira kenapa yah mas? Terimakasih sebelumnya 🙏
langkah nomor 3 di tutorial triyonos.com apakah sudah dilakukan? karena file index.html ada di langkah tersebut
Sudah mas, struktur dan isi foldernya pun sudah sama persis
nama foldernya kali bukan templates tapi template (kurang s)
Sudah bisa mas, terimakasih banyak
@@wisnubadrani1793 Alhamdulillah