Ask Your Question

TimWebPhoenix's profile - activity

2018-10-10 06:24:11 -0600 received badge  Notable Question (source)
2018-06-27 23:42:34 -0600 received badge  Popular Question (source)
2017-07-13 05:13:26 -0600 received badge  Editor (source)
2017-07-11 06:53:18 -0600 asked a question OpenCV Python GPU support ? or faster variance convolution

Hi,

I was wondering if the current OpenCV Python had GPU support yet ?

OR is there a faster way to calculate convolved variance ?

MaxFrom3DArray = numpy.amax(imgArray, axis=0)    # where imgArray is a 3D array
Back2ImMax = Image.fromarray(MaxFrom3DArray, 'P')
Back2ImMax.save(os.path.join(MaxFromMulti, filename), "TIFF") 

    ForVariance = cv2.imread((MaxFromMulti + filename), cv2.IMREAD_UNCHANGED)
wlen = 40
def winVar(img, wlen):
    wmean, wsqrmean = (cv2.boxFilter(x, -1, (wlen, wlen),
    borderType=cv2.BORDER_REFLECT) for x in (img, img*img))
    return wsqrmean - wmean*wmean
windowVar = winVar(ForVariance, wlen)
numpy.set_printoptions(threshold='nan')
print windowVar

This takes hours in Python, and ages using python multi-threading, with CPU cores maxed out. It takes a fraction of a second and hardly any cpu usage when serialised in c sharp. Doesn't something seem a bit off about that ?

Thanks in advance TWP

2017-07-11 05:29:31 -0600 received badge  Enthusiast
2017-06-27 08:45:45 -0600 asked a question keypoints = detector.detect(im) SystemError: error return without exception set

Hi,

I am following the tutorial here https://www.learnopencv.com/blob-dete... and

from this line keypoints = detector.detect(im)

I get the following error

in <module> keypoints = detector.detect(back2im) SystemError: error return without exception set

Any ideas as to how to get past this?

best

TWP

2017-06-27 08:19:31 -0600 commented answer [Pylint] E1101:Module 'cv2' has no 'SimpleBlobDetector' member

This worked :-) Thank you Eshirima

2017-06-25 17:38:18 -0600 asked a question [Pylint] E1101:Module 'cv2' has no 'SimpleBlobDetector' member

Hi, I received the following errors in a pip install of OpenCV in Ubuntu 16.04 using Microsoft Visual Studio

[Pylint] C0103:Invalid constant name "detector" [Pylint] E1101:Module 'cv2' has no 'SimpleBlobDetector' member

For the following line of code

detector = cv2.SimpleBlobDetector( )

this line is underlined in red aswell

cv2.imshow("Keypoints", im_with_keypoints)

I have tried cv instead of cv2 aswell, and I still get an error. What would you suggest ?

Kind regards

TWP