Cvlib: I am not understanding the error (object detection)

cvlib is not opencv so check cvlib doc. try to reproduce your error with opencv only