spmallick / learnopencv

Learn OpenCV : C++ and Python Examples
https://www.learnopencv.com/
20.68k stars 11.52k forks source link

Issue in Create-AR-filters-using-Mediapipe #799

Open richa-kody opened 1 year ago

richa-kody commented 1 year ago

After loading of filters, we are getting the following error.

INFO: Created TensorFlow Lite XNNPACK delegate for CPU. Traceback (most recent call last): File "ABC.py", line 255, in frame = cv2.imread(cap) cv2.error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\core\src\alloc.cpp:73: error: (-4:Insufficient memory) Failed to allocate 3145728 bytes in function 'cv::OutOfMemoryError'

Could you provide a solution for the same?

brmarkus commented 1 year ago

Can you provide more details - for allowing to reproduce the behavior? Which sample are you referring to, how have you prepared your environment (which versions of Python/C/C++/TensorFlow, etc, which installations, which operating-system, which command-line, which source-code, which hardware, running the application natively/in virtualenv/in container)? Have you applied local changes, using your own input (picture/video/camera)?