Performance Issue

I am trying to run an object detection code which uses opencv, and cvlib libraries created in a python3.11 virtual environment. But when i monitor the jetson stats using jtop I see that only CPU is getting used and GPU is getting used rarely. I have enabled CUDA and its for opencv 4.1.1 but the opencv version that I run in my virtual environment is 4.8.0. Is this the reason the performance is bad? I am new to this field. Help me out!