OpenCV resize fails on large image with “error: (-215) ssize.area() > 0 in function cv::resize”

So it turns out that the problem comes from one line in modules\imgproc\src\imgwarp.cpp: CV_Assert( ssize.area() > 0 ); When the product of rows and columns of the image to be resized is larger than 2^31, ssize.area() results in a negative number. This appears to be a bug in OpenCV and hopefully will be fixed in … Read more

OpenCV 3.0 LineIterator

I’ve solved my own problem. Line iterator seems to be unavailable in the cv2 library. Therefore, I made my own line iterator. No loops are used, so it should be pretty fast. Here is the code if anybody needs it: def createLineIterator(P1, P2, img): “”” Produces and array that consists of the coordinates and intensities … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)