I'm currently trying to do some HDR processing with OpenCV's python wrapper.
import cv2
import numpy as np
img = cv2.imread("1.jpg")
img2 = cv2.imread("2.jpg")
img3 = cv2.imread("3.jpg")
images = [img, img2, img3]
times = [-2, 0, 2]
response = np.zeros(256)
import ipdb; ipdb.set_trace()
calibrate = cv2.createCalibrateDebevec()
calibrate.process(images, response, times)
ipdb> calibrate.process(images, response, times)
*** TypeError: dst is not a numpy array, neither a scalar
It says that dst or 'response' in my code based on the position is not an numpy array but checking the type of 'response', it clearly says it is.
ipdb> type(response)
<type 'numpy.ndarray'>