Комментарии:
So what TUTORIALS AND PROJECTS would you like to see next ? Comment bellow and I will create the ideas with the highest votes. And thank you for all the love and support.
ОтветитьI can watch this video 10 times
ОтветитьChapter 7 kal dektu .
ОтветитьI appreciate
ОтветитьOld and need updates
Ответитьin chapter 6 you did something interesting which was to mirror an image, could I do this same code using a stereoscopic camera? I would like to make a project with something like this
ОтветитьA
Ответитьseriously you are the best teacher, I have seen many tutorial online, yours really open my mind, Thank you bro.
ОтветитьAs a beginner, this video is beneficial to me thank you 🥰
ОтветитьWhy I'm so late
Ответитьwill python 3.11 work
ОтветитьImportError: DLL load failed: The specified module could not be found.
i'm having this problem and can't get over out of it at any cost. please help me out
can we work with the latest python version 3.11.4 ?? pls answer
ОтветитьFunction?
ОтветитьAmazing video thanks a lot. Does anyone have the whole function he uses in chapter 6 we can't see the end of the long lines n
Ответитьi am not getting suggestion (Functions of CV2) such as imread etc in pycharm does anyone know how to solve it
ОтветитьGreat tutorial - Love all your videos!!! Just wanted to mention to you that you are missing some resources for this tutorial, example video12.mp4 and some images that you reference in this tutorial. thank you!!
ОтветитьHey Murtaza, please make a video on human movement analysis project
ОтветитьChapter 6 Missing Code :
import cv2
import numpy as np
def stackImages(scale, imgArray):
rows = len(imgArray)
cols = len(imgArray[0])
rowsAvailable = isinstance(imgArray[0], list)
width = imgArray[0][0].shape[1]
height = imgArray[0][0].shape[0]
if rowsAvailable:
for x in range(0, rows):
for y in range(0, cols):
if imgArray[x][y].shape[:2] != imgArray[0][0].shape[:2]:
imgArray[x][y] = cv2.resize(imgArray[x][y], (width, height), None, scale, scale)
if len(imgArray[x][y].shape) == 2:
imgArray[x][y] = cv2.cvtColor(imgArray[x][y], cv2.COLOR_GRAY2BGR)
imageBlank = np.zeros((height, width, 3), np.uint8)
hor = [imageBlank] * rows
for x in range(0, rows):
hor[x] = np.hstack(imgArray[x])
ver = np.vstack(hor)
else:
for x in range(0, rows):
if imgArray[x].shape[:2] != imgArray[0].shape[:2]:
imgArray[x] = cv2.resize(imgArray[x], (width, height), None, scale, scale)
if len(imgArray[x].shape) == 2:
imgArray[x] = cv2.cvtColor(imgArray[x], cv2.COLOR_GRAY2BGR)
hor = np.hstack(imgArray)
ver = hor
return ver
img = cv2.imread('resources/1.png')
imgGray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
imgStack = stackImages(0.5, ([img, imgGray, img],[img, img, img]))
cv2.imshow("imageStack", imgStack)
cv2.waitKey(0)
its letting me import cv2 anyone else having this issus?
ОтветитьYou are AMAZING!
ОтветитьWonderful video course! Initially, some of the corners did not order properly for me. I resolved the problem by removing the already assigned upper left and lower right corners before calculating the diffs of the remaining points. Here is my code:
def reorder(myPoints):
myPoints = myPoints.reshape((4,2))
sumValues = myPoints.sum(1) # sum the points
newPoints = np.zeros((4, 1, 2), np.int32) # ordered points
newPoints[0] = myPoints[np.argmin(sumValues)] # upper left corner
newPoints[3] = myPoints[np.argmax(sumValues)] # lower right corner
remainingPoints = np.delete(myPoints,[np.argmin(sumValues),np.argmax(sumValues)],axis=0)
diffValues = np.diff(remainingPoints, axis=1) # diffValue = y (vertical) - x (horizontal)
newPoints[1] = remainingPoints[np.argmin(diffValues)] # upper right corner
newPoints[2] = remainingPoints[np.argmax(diffValues)] # lower left corner
return newPoints
Are you open for coop projects?
ОтветитьBro,please post the video of tomato leaf disease detection using opencv
Ответитьi dont know y im getting error to creating trackbar ,which showing
cv2.resize("TrackBars",40,40)
cv2.error: OpenCV(4.7.0) :-1: error: (-5:Bad argument) in function 'resize'
> Overload resolution failed:
> - src is not a numpy array, neither a scalar
> - Expected Ptr<cv::UMat> for argument 'src'
Stack Function --->
def stackImages(scale,imgArray):
rows = len(imgArray)
cols = len(imgArray[0])
rowsAvailable = isinstance(imgArray[0], list)
width = imgArray[0][0].shape[1]
height = imgArray[0][0].shape[0]
if rowsAvailable:
for x in range ( 0, rows):
for y in range(0, cols):
if imgArray[x][y].shape[:2] == imgArray[0][0].shape [:2]:
imgArray[x][y] = cv2.resize(imgArray[x][y], (0, 0), None, scale, scale)
else:
imgArray[x][y] = cv2.resize(imgArray[x][y], (imgArray[0][0].shape[1], imgArray[0][0].shape[0]), None, scale, scale)
if len(imgArray[x][y].shape) == 2: imgArray[x][y]= cv2.cvtColor( imgArray[x][y], cv2.COLOR_GRAY2BGR)
imageBlank = np.zeros((height, width, 3), np.uint8)
hor = [imageBlank]*rows
hor_con = [imageBlank]*rows
for x in range(0, rows):
hor[x] = np.hstack(imgArray[x])
ver = np.vstack(hor)
else:
for x in range(0, rows):
if imgArray[x].shape[:2] == imgArray[0].shape[:2]:
imgArray[x] = cv2.resize(imgArray[x], (0, 0), None, scale, scale)
else:
imgArray[x] = cv2.resize(imgArray[x], (imgArray[0].shape[1], imgArray[0].shape[0]), None,scale, scale)
if len(imgArray[x].shape) == 2: imgArray[x] = cv2.cvtColor(imgArray[x], cv2.COLOR_GRAY2BGR)
hor= np.hstack(imgArray)
ver = hor
return ver
Thank You Sir for this amazing tutorial !!!
where is the haarcascade_frontalface_default.xml?
ОтветитьThe hand on slides just distracts me
Ответитьhow to add missing references for cv2 in pycharm?
ОтветитьWhy when I type "img=cv2." python doesn't call this same list of functions that appears in the tutorial? for me the functions "imread" and "imshow" do not appear. Note: I correctly entered the command "import cv2" and also tested if it was loaded. Thanks
ОтветитьMurtaza, realy realy realy thank you.
ОтветитьCan u please make a project on emotion detection using opencv
ОтветитьThank you for your tutorial on OpenCV with python. I am usually working in C# VS and I would LOVE to have a tutorial in real time quad (four independent ROI's) for SFR (Spatial Frequency Response). This can be used for an EVK / Dev-Kit image sensor with lens looking at a slanted edge target (B/W) on optical axis. Essentially, it is recognizing the slanted edge gradients and since this is slanted, it reduces pixel (imager side) noise due to the diagonal cross section of how the ROI's read the edges. Mind you that each ROI will have real time MTF readings on all four sides. so 16 total MTF values which can be updated ~ 1.5 seconds. This is well know in online GUI apps and I do not want to utilize their approach. So Something fresh from you would be outstanding to say the least. This should be less in complexity compared to facial recognition but I thought I ask you please.
ОтветитьIf I want to connect to an industrial camera using TCP/IP protocol, how will I do it?
ОтветитьI am 11 years old I am looking for the functions that you are referring but I can't find
Ответитьالسلام عليكم ...Excuse me ...mr .murtaza .i work to learn computer vision and its my first time .i learn with your videos and work as you do but still show to me mistake and i can't solve it please help me
Ответитьdes anyone know how to solve pycharm not detecting our caméra? :( Cant make it even w google
Ответитьhey how did yoou get that intellisense type suggestion for opencv....it doesn't seem to work on my pycharm
ОтветитьWhat to do if while using pycharm I'm not get the suggestions of types that a particular function have, e.g if I want image binary, or binary inverse, i don't get the types, and need to Google it always😬
ОтветитьSir may I know please where do you live?
Ответитьkindly tell me why code completion is not working for opencv ? when i have robotframework-seleniumLibrary?
ОтветитьOk, does anybody know the name of the girl with the hat, who appears in the first few seconds? thanks.
Ответить