in ()
52 ret, frame = cap.read()
53 #frame = cv2.resize(frame, (0,0), fx=0.5, fy=0.5)
---> 54 recognition(frame)
55 videoWriter.write(frame)
56 if cv2.waitKey(1) & 0xFF == ord('q'):
in recognition(img)
21
22 def recognition(img):
---> 23 dets = detector(img, 1)
24 for k, d in enumerate(dets):
25
TypeError: __call__(): incompatible function arguments. The following argument types are supported:
1. (self: dlib.cnn_face_detection_model_v1, imgs: list, upsample_num_times: int=0, batch_size: int=128) -> std::vector >, std::allocator > > >
2. (self: dlib.cnn_face_detection_model_v1, img: array, upsample_num_times: int=0) -> std::vector >
Invoked with: , None, 1
Did you forget to `#include `? Or ,
, , etc. Some automatic
conversions are optional and require extra headers to be included
when compiling your pybind11 module.
hey guys !! i need help with this error
TypeError Traceback (most recent call last)