Jo-Dan / The-Machine

Person of Interest Machine
94 stars 18 forks source link

Camera number #8

Closed KaKi87 closed 4 years ago

KaKi87 commented 5 years ago

Hello,

Camera Number >>>

Where do I find that camera number ?

Thanks.

Jo-Dan commented 5 years ago

Oh wow this is an old project. The camera number should be 0, 1, or 2 usually. Just experiment with those until it runs.

Jo-Dan commented 5 years ago

Just a warning though that the voice responses no longer work because the voice service it used got shut down.

KaKi87 commented 5 years ago

Well, all software projects for PoI I found are dead, anyway (usually just before or just after the first release).

You wouldn't re-launch it, right ? 😅 Le 28 janv. 2019, à 00:50, Jo-Dan notifications@github.com<mailto:notifications@github.com> a écrit:

Oh wow this is an old project. The camera number should be 0, 1, or 2 usually. Just experiment with those until it runs.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Jo-Dan/The-Machine/issues/8#issuecomment-457965889, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AUTE-aCc2goer028U0-66NRyJXwvV6ivks5vHjtTgaJpZM4aUwxe.

Jo-Dan commented 5 years ago

I doubt I'll fix the voice functions to be honest but everything else should work. I actually ran it on my laptop a few weeks ago and it was working.

KaKi87 commented 5 years ago

Okay, what about that ?

OpenCV Error: Unsupported format or combination of formats (Empty training data was given. You'll need more than one sample to learn a model.) in cv::face::LBPH::train, file D:\BackUp\F\Users\Jordan\Documents\Python\face recognition setup\OpenCV\Source\opencv_contrib\modules\face\src\lbph_faces.cpp, line 346
Traceback (most recent call last):
  File "machine.py", line 157, in <module>
    database_load(True)
  File "machine.py", line 142, in database_load
    recognizer.train(images, np.array(labels))
cv2.error: D:\BackUp\F\Users\Jordan\Documents\Python\face recognition setup\OpenCV\Source\opencv_contrib\modules\face\src\lbph_faces.cpp:346: error: (-210) Empty training data was given. You'll need more than one sample to learn a model. in function cv::face::LBPH::train

Failed to execute script machine
Jo-Dan commented 5 years ago

You need to follow the instructions on the readme. You either haven't put face photos in the folder or done CSV file.

Jo-Dan commented 5 years ago

You need to follow the readme instructions. You need to create a folder with some face images in the correct location before you start the program.

Jo-Dan commented 5 years ago

You're going to have to be more specific.

Jo-Dan commented 5 years ago

Yes but at what stage of the program. And where does it say it? This is a super old project so I can't remember everything off the top of my head.