Error when doing face detection

PS C:\Users\abhis\images> python camread.py
Traceback (most recent call last):
File “camread.py”, line 21, in
cv2.rectangle(frame(x,y),(x+w,y+h),(255,0,0),2)
TypeError: ‘numpy.ndarray’ object is not callable
[ WARN:1] global C:\projects\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (436) `anonymous-namespace’::SourceReaderCB::~SourceReaderCB terminating async callback
PS C:\Users\abhis\images>

hey @abhishekkundu86 ,
there is a small mistake.

it should be frame , (x,y).

change this and it will work.
Thank You :slightly_smiling_face:.