ros-kinetic is blocking my new opencv install
I'm working on my own custom opencv script and when I try to execute some methods i get the error:
OpenCV Error: Assertion failed (input.dims == 4 && (input.type() == 5 || input.type() == 6)) in finalize, file /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/module
s/dnn/src/layers/convolution_layer.cpp, line 78
Traceback (most recent call last):
File "extract_embeddings.py", line 73, in <module>
detections = detector.forward()
cv2.error: /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/dnn/src/layers/convolution_layer.cpp:78: error: (-215) input.dims == 4 && (input.type() == 5 || in
put.type() == 6) in function finalize
code:
detector = cv2.dnn.readNetFromCaffe(protoPath, modelPath)
...
detector.setInput(imageBlob)
detections = detector.forward()
How do I get my environment to not call the ros installed opencv package and the one I want to work on.