Docker Community Forums

Share and learn in the Docker community.

OpenCV Error: Insufficient memory when running in the docker container

docker

(Kishankumar) #1

OpenCV Error: Insufficient memory (Failed to allocate 995522496 bytes) in OutOfMemoryError.

base_features, base_descs = detector.detectAndCompute(base_img, None)

In this particular line the length(“len(base_descs)”) of base_desc is around 70000. base_desc is a numpy array . I am currently using 8 GB RAM but still it is showing this error.

I am running this code inside a docker container , The above code is working fine when i run the python code without using the container in my system.