Facial-Expression-Recognition icon indicating copy to clipboard operation
Facial-Expression-Recognition copied to clipboard

Making it real-time

Open Hemantr05 opened this issue 6 years ago • 6 comments

How can I make this real-time, that is, if i want the expressions to be detected without pressing the Space Key? Also, how do I enlarge the graph(shown on the left side of the screen)?

Thanks in advance

Hemantr05 avatar Dec 24 '18 23:12 Hemantr05

I try it, just modify demo.py file, the demo function.

if cv2.waitKey(1) & 0xFF == ord(' '):
change into if cv2.waitKey(20):

You can change the parameter of waitKey(), difference value will have different recognition refreshment.

LeonardNiu avatar Jan 03 '19 02:01 LeonardNiu

Thank you.

@LeonardNiu How do we change the readings on the bar graph shown on the LHS corner of the screen?

Hemantr05 avatar Jan 03 '19 08:01 Hemantr05

same, in the demo.py, function demo: cv2.putText(frame, emotion, (10, index * 20 + 20), cv2.FONT_HERSHEY_PLAIN, 0.5, (0, 255, 0), 1) variable emotion refers to the readings such as anger, happy. Just change it. BTW, can you leave the email? I happen to notice that you create a repertory about GAN, I'm also interested in it, as well as DL.

LeonardNiu avatar Jan 03 '19 13:01 LeonardNiu

txs @LeonardNiu make it real_time.

liuhuihuii avatar Feb 26 '19 11:02 liuhuihuii

same, in the demo.py, function demo: cv2.putText(frame, emotion, (10, index * 20 + 20), cv2.FONT_HERSHEY_PLAIN, 0.5, (0, 255, 0), 1) variable emotion refers to the readings such as anger, happy. Just change it. BTW, can you leave the email? I happen to notice that you create a repertory about GAN, I'm also interested in it, as well as DL.

What's your email? Will drop in a mail

Hemantr05 avatar Mar 04 '19 11:03 Hemantr05

same, in the demo.py, function demo: cv2.putText(frame, emotion, (10, index * 20 + 20), cv2.FONT_HERSHEY_PLAIN, 0.5, (0, 255, 0), 1) variable emotion refers to the readings such as anger, happy. Just change it. BTW, can you leave the email? I happen to notice that you create a repertory about GAN, I'm also interested in it, as well as DL.

What's your email? Will drop in a mail

I got your Email in your github homepage. Is [email protected] your Email? I've already sent one, but not got reply : (

LeonardNiu avatar Mar 12 '19 12:03 LeonardNiu