how do I find the center of the screen in opencv c++?

asked 2020-03-21 20:48:05 -0600

updated 2020-10-08 12:23:43 -0600

I need to create a program for face detection in opencv in C++ . I know how to write that code. But I need the program to center the human face. For instance, if the face is on the left, you must tell it to move to the center. Something like that. Does anybody know how to do that? Do I need your help? If you have the code, please drop it here.

edit retag flag offensive close merge delete

Comments

1

draw a box in the center and some text "put your face here" ?

berak gravatar imageberak ( 2020-03-22 05:51:46 -0600 )edit

@berak kind of like that if u know the code pls send it

Ardamehr gravatar imageArdamehr ( 2020-03-22 06:57:34 -0600 )edit
2

seriously, if you cannot code that on your own ....

berak gravatar imageberak ( 2020-03-22 07:11:48 -0600 )edit

@berak if I could, I wouldn't ask a question... I did most of the parts, but I got stuck in this...

Ardamehr gravatar imageArdamehr ( 2020-03-22 07:34:09 -0600 )edit

@berak can you help me?

Ardamehr gravatar imageArdamehr ( 2020-04-11 22:03:56 -0600 )edit