Ask Your Question

Imran B's profile - activity

2020-03-16 02:37:42 -0600 commented question [SOLVED]Assertion Error in Video Capturing ?

Code : import cv2, time a = 1 video = cv2.VideoCapture(0, cv2.CAP_DSHOW) while True: a = a + 1 check, frame

2020-03-16 02:36:44 -0600 commented question [SOLVED]Assertion Error in Video Capturing ?

import cv2, time a = 1 video = cv2.VideoCapture(0, cv2.CAP_DSHOW) while True: a = a + 1 check, frame = video

2020-03-16 02:36:06 -0600 commented question [SOLVED]Assertion Error in Video Capturing ?

import cv2, time a = 1 video = cv2.VideoCapture(0, cv2.CAP_DSHOW) while True: a = a + 1 check, frame = video

2020-03-16 02:32:40 -0600 commented answer Python OpenCV OGL Texture2D

Thanks for the response berak

2020-03-13 09:30:15 -0600 commented answer Python OpenCV OGL Texture2D

Thanks for the response, can I write some C++ code to call that method and use this feature from my Python code?

2020-03-13 03:58:20 -0600 asked a question Python OpenCV OGL Texture2D

Python OpenCV OGL Texture2D Hello everyone, Based on https://stackoverflow.com/questions/18086519/is-it-possible-to-bin

2020-03-12 05:39:47 -0600 commented answer Opencv cuda Merge returns Numpy array not GpuMat

Thank you cudawarped. It worked !!!

2020-03-03 05:41:41 -0600 commented answer Opencv cuda Merge returns Numpy array not GpuMat

Sure cudawarped .I'll use this method ,but is it affect performance?

2020-03-03 05:37:01 -0600 marked best answer Opencv cuda Merge returns Numpy array not GpuMat

Hi all, I'm trying to adjust hsv in images with cv2.cuda. while trying when I use cv2.cuda.merge it returns numpy array and not GpuMat type.

my code :

import cv2
import numpy as np

img =  cv2.imread('test.png')
imgMat = cv2.cuda_GpuMat(img)
imgSat = cv2.cuda.cvtColor(imgMat,cv2.COLOR_BGR2HSV)
print("Before Merge type : ",type(imgSat))
h,s,v = cv2.cuda.split(imgSat)
size_s = s.size()
w_s = cv2.cuda_GpuMat(size_s[1],size_s[0], s.type(), [30])
s = cv2.cuda.add(s, w_s)
te = cv2.cuda.merge([h,s,v])
print("After merge type : ",type(te))

Output :

Before Merge type :  <class 'cv2.cuda_GpuMat'>
After merge type :  <class 'numpy.ndarray'>

Anyone facing same scenario?

2020-03-02 03:16:21 -0600 commented answer Sharpness opencv cuda python

Thanks cudawarped . but imgMat is already GpuMat img = cv2.imread('test.png') imgMat = cv2.cuda_GpuMat(img) after c

2020-03-02 03:13:56 -0600 asked a question Opencv cuda Merge returns Numpy array not GpuMat

Opencv cuda Merge returns Numpy array not GpuMat Hi all, I'm trying to adjust hsv in images with cv2.cuda. while trying

2020-03-02 01:31:28 -0600 commented question detailenhance cuda opencv

thanks supra56 but I need this method with cuda support

2020-03-02 01:29:28 -0600 commented answer Sharpness opencv cuda python

Thanks cudawarped imgMat is already GpuMat img = cv2.imread('test.png') imgMat = cv2.cuda_GpuMat(img) after convert

2020-03-02 01:28:39 -0600 commented answer Sharpness opencv cuda python

Thanks cudawarped imgMat is already GpuMat img = cv2.imread('test.png') imgMat = cv2.cuda_GpuMat(img) after converti

2020-02-28 03:16:38 -0600 asked a question Sharpness opencv cuda python

Sharpness opencv cuda python Hi all, I have tried adjusting sharpness with bilateral filter and addweighted methods. But

2020-02-27 05:44:56 -0600 asked a question detailenhance cuda opencv

detailenhance cuda opencv Hi all, I'm trying to apply sharpness filter using opencv cuda. But I didn't get any idea afte

2020-02-26 07:08:10 -0600 asked a question HSV adjustment python opencv cuda

HSV adjustment python opencv cuda Hi guys, I need to adjust hsv values manually with cuda methods, without cuda I can di

2020-02-26 00:55:48 -0600 commented question Python opencv Exception code: 0xc0000094

yes I'll use this, now I found another method called cudagpumat.empty() so if gpumat is none it's returning True. For no

2020-02-26 00:55:35 -0600 commented question Python opencv Exception code: 0xc0000094

yes I'll use this, now I found another method called cudagpumat.empty() so if gpumat is none it's returning True. For no

2020-02-25 09:12:17 -0600 commented question Python opencv Exception code: 0xc0000094

I found cause of the error at some point frame returns none so only it's causing and I update code in question. For now

2020-02-25 09:10:50 -0600 edited question Python opencv Exception code: 0xc0000094

Python opencv Exception code: 0xc0000094 Hi all, While running program it's breaking every time ,but it's not throwing a

2020-02-25 09:10:11 -0600 commented question Python opencv Exception code: 0xc0000094

I found cause of the error at some point frame returns none so only it's causing and I update code in question

2020-02-25 08:16:31 -0600 edited question Python opencv Exception code: 0xc0000094

Python opencv Exception code: 0xc0000094 Hi all, While running program it's breaking every time ,but it's not throwing a

2020-02-25 08:16:09 -0600 edited question Python opencv Exception code: 0xc0000094

Python opencv Exception code: 0xc0000094 Hi all, While running program it's breaking every time ,but it's not throwing a

2020-02-25 08:03:19 -0600 edited answer resize in cuda from python.

Return the value like this lumGPU = cv2.cuda.resize(lumGPU0,(imgHDX,imgHDY),interpolation=cv2.INTER_CUBIC)

2020-02-25 08:03:04 -0600 answered a question resize in cuda from python.

Return the value like this lumGPU = cv2.cuda.resize(lumGPU0,(imgHDX,imgHDY),interpolation=cv2.INTER_CUBIC)

2020-02-25 07:19:15 -0600 edited question Python opencv Exception code: 0xc0000094

Python opencv Exception code: 0xc0000094 Hi all, While running program it's breaking every time ,but it's not throwing a

2020-02-25 07:18:24 -0600 asked a question Python opencv Exception code: 0xc0000094

Python opencv Exception code: 0xc0000094 Hi all, When running program it breaking but it's not throwing any error then I

2020-02-17 08:56:39 -0600 asked a question cv2.cuda.remap and initUndistortRectifyMap()

cv2.cuda.remap and initUndistortRectifyMap() Hi all,I'm trying to remove fisheye from image with initUndistortRectifyMap

2020-02-13 03:30:55 -0600 commented question Image Stitching with cv2.cuda()

Thnaks for efforts

2020-02-06 01:39:59 -0600 asked a question Image Stitching with cv2.cuda()

Image Stitching with cv2.cuda() Hi all, I have tried image stitching with opencv (followed https://www.pyimagesearch.com

2020-02-06 01:27:36 -0600 received badge  Enthusiast
2020-02-05 07:48:54 -0600 commented answer Difficulty stitching with CUDA

Hi opencv.exe , do you got any solution for stitching with cuda?

2020-02-05 07:45:11 -0600 commented question Real-time Stitching using CUDA + OpenCV 3.0

Hi do you get any solution?

2020-02-03 06:37:53 -0600 commented answer Changing brightness and contrast cv2.cuda python

Your previous answer itself correct,I made a mistake in typo now corrected and executed it works.Thanks it's working goo

2020-02-03 06:36:15 -0600 commented answer Changing brightness and contrast cv2.cuda python

Thanks it's working good !!!!

2020-02-03 06:35:32 -0600 marked best answer Changing brightness and contrast cv2.cuda python

Hi all, I'm trying to modify brightness and contrast of an Image but it returns the error

cv2.error: OpenCV(4.2.0-dev) F:\Dev\Repos\opencv_fork_1\modules\core\src\matrix_wrap.cpp:359: error: (-213:The function/feature is not implemented) getGpuMat is available only for cuda::GpuMat and cuda::HostMem in function 'cv::_InputArray::getGpuMat'

my code,

import time, traceback
import numpy
import cv2 as cv
import numpy as np
img = cv.imread('test.jpeg')
raw = cv.cuda_GpuMat()
raw.upload(img)
alpha = 50
beta = 45
b = raw.convertTo(cv.CV_8U,alpha,beta)
img = b.download()
cv.imshow("Corrected",img)
2020-02-03 06:14:38 -0600 commented question Cv2.cuda.remap assertion error

It's working thanks!!!!

2020-02-03 06:02:31 -0600 commented answer Changing brightness and contrast cv2.cuda python

I got this error when I tried your solution, cuMat8U = cv.cuda_GpuMat(img[:2],cv.CV_8UC3) TypeError: Expected Ptr<cv

2020-02-03 06:00:27 -0600 commented question Cv2.cuda.remap assertion error

I Don't know how to convert to the expected type

2020-02-03 06:00:17 -0600 commented question Cv2.cuda.remap assertion error

Don't know how to convert to the expected type

2020-02-03 05:52:18 -0600 commented question Cv2.cuda.remap assertion error

no , it's for map1.type = 13 and map2.type = 5

2020-02-03 03:58:38 -0600 commented question Changing brightness and contrast cv2.cuda python

I downloaded a built from https://jamesbowley.co.uk/downloads/ this site with cuda support opencv 4.2

2020-02-03 03:40:51 -0600 asked a question Cv2.cuda.remap assertion error

Cv2.cuda.remap assertion error Hi all, I'm trying to use remap for removing fisheye . I have done calibration and found

2020-02-03 03:17:25 -0600 commented question Changing brightness and contrast cv2.cuda python

I downloaded a built from https://jamesbowley.co.uk/downloads/ this site with cuda support