LEARN OPENCV in 3 HOURS with Python | Including 3xProjects | Computer Vision

LEARN OPENCV in 3 HOURS with Python | Including 3xProjects | Computer Vision

3,220,584 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Murtaza's Workshop - Robotics and AI
Murtaza's Workshop - Robotics and AI - 01.06.2020 12:44

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.

Ответить
J M
J M - 09.09.2023 15:57

I can watch this video 10 times

Ответить
J M
J M - 04.09.2023 19:56

Chapter 7 kal dektu .

Ответить
Learn with Zoolnurain
Learn with Zoolnurain - 01.09.2023 13:49

I appreciate

Ответить
Dr.Mohammed Mohammed
Dr.Mohammed Mohammed - 20.08.2023 03:09

Old and need updates

Ответить
Miguel Ribeiro
Miguel Ribeiro - 08.08.2023 22:25

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

Ответить
캉콩
캉콩 - 20.07.2023 19:18

A

Ответить
pete .T
pete .T - 18.07.2023 07:42

seriously you are the best teacher, I have seen many tutorial online, yours really open my mind, Thank you bro.

Ответить
පොත් කාවෝ - POTH KAWOO
පොත් කාවෝ - POTH KAWOO - 30.06.2023 11:18

As a beginner, this video is beneficial to me thank you 🥰

Ответить
Suman Sekhar
Suman Sekhar - 26.06.2023 21:40

Why I'm so late

Ответить
Yash agrawal
Yash agrawal - 23.06.2023 22:42

will python 3.11 work

Ответить
adiba jahan
adiba jahan - 20.06.2023 10:28

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

Ответить
Shneha Jaiswal
Shneha Jaiswal - 15.06.2023 19:41

can we work with the latest python version 3.11.4 ?? pls answer

Ответить
Adarsh
Adarsh - 07.06.2023 09:07

Function?

Ответить
Le_Phasme
Le_Phasme - 31.05.2023 23:12

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

Ответить
Hassan Raza
Hassan Raza - 25.05.2023 12:44

i am not getting suggestion (Functions of CV2) such as imread etc in pycharm does anyone know how to solve it

Ответить
Erik Elcsics
Erik Elcsics - 21.05.2023 02:18

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!!

Ответить
2079-Armanul Alam
2079-Armanul Alam - 15.05.2023 23:22

Hey Murtaza, please make a video on human movement analysis project

Ответить
Yeshan Sri Nissanka
Yeshan Sri Nissanka - 11.05.2023 09:50

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)

Ответить
liam williams
liam williams - 29.04.2023 20:50

its letting me import cv2 anyone else having this issus?

Ответить
Marko Marjanovic
Marko Marjanovic - 25.04.2023 15:12

You are AMAZING!

Ответить
Gary Markowski
Gary Markowski - 09.04.2023 19:35

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

Ответить
Алексей Аккуратов
Алексей Аккуратов - 23.03.2023 23:01

Are you open for coop projects?

Ответить
varghese xavier
varghese xavier - 08.03.2023 20:13

Bro,please post the video of tomato leaf disease detection using opencv

Ответить
Vikas Yadav
Vikas Yadav - 08.03.2023 19:49

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'

Ответить
Charan Here !
Charan Here ! - 26.02.2023 11:41

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 !!!

Ответить
Tín Phan
Tín Phan - 21.02.2023 12:02

where is the haarcascade_frontalface_default.xml?

Ответить
Mundru iiitn
Mundru iiitn - 04.02.2023 18:16

The hand on slides just distracts me

Ответить
المتبني
المتبني - 04.02.2023 16:54

how to add missing references for cv2 in pycharm?

Ответить
Thiago Santos
Thiago Santos - 23.01.2023 00:59

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

Ответить
Mahmoud Altelfah
Mahmoud Altelfah - 02.01.2023 16:11

Murtaza, realy realy realy thank you.

Ответить
snazal singh
snazal singh - 22.12.2022 10:10

Can u please make a project on emotion detection using opencv

Ответить
Kaini Rue
Kaini Rue - 14.12.2022 19:18

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.

Ответить
Thanh Long (Xuan Hai Le)
Thanh Long (Xuan Hai Le) - 13.12.2022 06:32

If I want to connect to an industrial camera using TCP/IP protocol, how will I do it?

Ответить
yusuf mehel
yusuf mehel - 02.12.2022 18:57

I am 11 years old I am looking for the functions that you are referring but I can't find

Ответить
huda huda
huda huda - 02.12.2022 14:26

السلام عليكم ...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

Ответить
Mayo
Mayo - 01.12.2022 21:44

des anyone know how to solve pycharm not detecting our caméra? :( Cant make it even w google

Ответить
Anirudh Madri
Anirudh Madri - 15.11.2022 13:36

hey how did yoou get that intellisense type suggestion for opencv....it doesn't seem to work on my pycharm

Ответить
Tisha Garg
Tisha Garg - 11.11.2022 16:10

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😬

Ответить
Imran
Imran - 02.11.2022 22:57

Sir may I know please where do you live?

Ответить
Yusra Shaikh
Yusra Shaikh - 21.10.2022 22:56

kindly tell me why code completion is not working for opencv ? when i have robotframework-seleniumLibrary?

Ответить
MG
MG - 21.10.2022 08:45

Ok, does anybody know the name of the girl with the hat, who appears in the first few seconds? thanks.

Ответить