# OpenCV in lambda-stack - non-gpu?

## post by fredrikw on Jan 26, 2021

It seems like opencv is installed through the lambda-stack. (see e.g. here: [Lamdastack Quick Introduction/ FAQ - Technical Help - DeepTalk - Deep Learning Community](https://deeptalk.lambda.ai/t/lamdastack-quick-introduction-faq/487/2)). However, when I try to import it, it seems to be a non-cuda-version of opencv:

```
>>> import cv2
>>> cv2.cuda.getCudaEnabledDeviceCount()
0
```

Is that so, and how do you recomend installing OpenCV?

## post by leonnowsden on Jan 27, 2021

OpenCV GPU has to be installed manually and is to my knowledge not included in Lambda Stack. Here’s an article explaining it: [How to install OpenCV 4.2.0 with CUDA 10.1 on Ubuntu 20.04 LTS (Focal Fossa) \| by Shitty Bots \| Medium](https://medium.com/@sb.jaduniv/how-to-install-opencv-4-2-0-with-cuda-10-1-on-ubuntu-20-04-lts-focal-fossa-bdc034109df3)

- [Couldn't Compile OpenCV with WITH_CUDA=ON](https://deeptalk.lambda.ai/t/couldnt-compile-opencv-with-with-cuda-on/2145)
