Thumbor + Open CV

Hi everyone,

I would like to create an image containing thumbor and open cv using pip install and apt-get but I have an issue. I can start and use thumbor but when I want to add the face detection functionality into the thumbor conf file, I can’t create my image because the system can’t import cv2.cv to set the thumbor server.

Traceback (most recent call last):
File “opencv.py”, line 1, in
from cv2.cv import *
ImportError: No module named cv2.cv

This is my Dockerfile configuration :
FROM python:2.7
RUN apt-get -y update
RUN apt-get -y upgrade
RUN pip install thumbor
RUN apt-get install libopencv-dev python-opencv
ADD thumbor_conf.py thumbor_conf.py
CMD thumbor --conf=thumbor_conf.py

And my thumbor configuration:
DETECTORS = [“thumbor.detectors.face_detector”, “thumbor.detectors.profile_detector”]
STORAGE = ‘thumbor.storages.no_storage’

Is there anyone who have an idea ?

Thanks in advance,