Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I attempted your code.

  • If you don't comment out. It will search for dataset's folder and if it not there, it will waits for 5 sec to to write filename. And it will stop executed.
  • If you comment out. If it is there, that fine. Otherwise, if not, it will write to filename for sec. And you will see filename unknown.

Just smiled your face in front of webcam. Any emotion will do trick.

I attempted your code.

  • If you don't comment out. It will search for dataset's folder and if it not there, it will waits for 5 sec to to write filename. And it will stop executed.
  • If you comment out. If it is there, that fine. Otherwise, if not, it will write to filename for sec. filename. And you will see filename unknown.

Just smiled your face in front of webcam. Any emotion will do trick.

I attempted your code.

  • If you don't comment out. It will search for dataset's folder and if it not there, it will waits for 5 sec to to write filename. And it will stop executed.
  • If you comment out. If it is there, that fine. Otherwise, if not, it will write to filename. And you will see filename unknown.

Just smiled your face in front of webcam. Any emotion will do trick.

if confidence < 85:
    idnum = names[idnum]
    confidence = "{0}%".format(round(100 - confidence))
else:
    idnum = "unknown"
    alarm = 1
    confidence = "{0}%".format(round(100 - confidence))

I attempted your code.

  • If you don't comment out. It will search for dataset's folder and if it not there, it will waits for 5 sec to to write filename. And it will stop executed.
  • If you comment out. If it is there, that fine. Otherwise, if not, it will write to filename. And you will see filename unknown.unknown. And then stop executed and ended immediately.

Just smiled your face in front of webcam. Any emotion will do trick.

if confidence < 85:
    idnum = names[idnum]
    confidence = "{0}%".format(round(100 - confidence))
else:
    idnum = "unknown"
    alarm = 1
    confidence = "{0}%".format(round(100 - confidence))