All language subtitles for 4. Getting Started with OpenCV - A Brief OpenCV Intro

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian Download
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: WEBVTT 00:00.770 --> 00:06.540 So what exactly is opens you the open sea the sense of open source computer vision and it wasn't until 00:06.560 --> 00:08.780 initiative launched in 1989. 00:09.030 --> 00:14.920 No the primary purpose of NCB was to consolidate a lot of the completed mission research that was being 00:14.920 --> 00:15.280 done. 00:15.340 --> 00:22.990 And on a lot of this research was written in C++ which is why open C-v is actually written in C++. 00:22.990 --> 00:30.490 However there are several bindings that exist that Lois use open CVN I don't of Matlab and mobile applications 00:30.490 --> 00:31.070 as well. 00:31.880 --> 00:38.080 These findings are quite useful however they do tend to slow down from open civies operation. 00:38.120 --> 00:47.120 So if you want speed use of in C++ However using it in Python allows us to do to easily grasp complex 00:47.240 --> 00:53.520 concepts and use them by which is a powerful data orea to in bytes. 00:54.080 --> 01:01.490 So the first major release of openside me was actually in 2006 and a second 2009 and two just last year 01:01.550 --> 01:03.200 in 2015. 01:03.800 --> 01:06.340 Now in this course we actually use. 01:06.500 --> 01:14.150 I actually encourage you to use 2.4 one tree is actually very new latest release I think was just last 01:14.150 --> 01:14.570 year. 01:14.830 --> 01:20.900 You can check the Web sites maybe latest version by the time you this rediscuss and it's quite stable 01:20.900 --> 01:22.210 and it's widely deployed. 01:22.220 --> 01:27.730 I remember seeing start seeing that people still ease up to 60 percent of researchers to use open see 01:27.730 --> 01:30.240 the 2.4 1 tree. 01:30.260 --> 01:36.950 Now if you think you need to use open see victory point X you can go an install. 01:37.010 --> 01:44.460 However they actually are some disadvantages to using 2.0 Plus know some important algorithms such as 01:44.460 --> 01:47.310 sift unsafe have actually been removed. 01:47.360 --> 01:50.230 You can actually manually add them back in. 01:50.280 --> 01:55.940 Well it's a bit tedious and I'm not going to actually urging that during this course you output links 01:55.940 --> 01:56.440 up. 01:56.550 --> 02:02.660 You're free to do as you please if you to learn more about open C-v you can go to NCB that order or 02:02.860 --> 02:05.540 check in with TPD page. 02:05.620 --> 02:10.550 I should also say it opens in the triplane X actually has a love of the modern research built into it 02:10.580 --> 02:12.110 as well. 02:12.260 --> 02:13.880 And bug fixes. 02:13.940 --> 02:19.350 However if you do want to use those maybe just stick with 2.4 tree. 02:19.400 --> 02:24.160 So I think you're about ready to get out of the programming that opens in Python. 02:24.440 --> 02:27.480 So let's begin. 02:27.680 --> 02:30.490 And we'll continue this cool long session and discourse. 02:30.500 --> 02:36.230 So we're finally here using open C.V So this ends I apply to a notebook is actually going to teach you 02:36.230 --> 02:42.110 to read write and display images with open C-v notice what is heavily commented at least by my standards 02:42.700 --> 02:46.730 and it is going to teach you how to do the functions I described above. 02:47.890 --> 02:55.240 Zow to run at each block of code if you press control and so on matchbooks I believe that's command 02:55.250 --> 02:56.160 center. 02:56.670 --> 02:58.750 And we run it and then we go. 02:59.190 --> 03:01.850 So yes you should see him having a second or two. 03:01.910 --> 03:09.450 One comes up here and that means that it was run successfully so to import open C-v into on if you're 03:09.450 --> 03:15.210 familiar with Pitre and you'd know you'd have to import a lot of different tools and libraries into 03:15.260 --> 03:15.820 place. 03:16.200 --> 03:23.040 So we can use less advanced functions open series called CV to me because the first version was called 03:23.040 --> 03:24.110 CD 1. 03:24.480 --> 03:26.670 So we imported and 72. 03:27.270 --> 03:35.580 Secondly we don't necessarily need to import some buy into this Swiss concession here but it's also 03:35.860 --> 03:39.370 a good habit because you never know when you actually need to use it. 03:39.450 --> 03:48.510 Imageries we import some pie as mainly because it's needed to write using it and instead of. 03:49.350 --> 03:52.040 We get a pretty much call this anything kind of call it X. 03:52.090 --> 03:56.430 However the convention in them is to use the whole number. 03:56.850 --> 03:59.290 So let's run this block of code as well. 03:59.410 --> 04:00.000 There we go. 04:00.940 --> 04:03.240 So now that's a lot of this image. 04:03.240 --> 04:09.360 No you do if you have one notebook open you don't necessarily need to import CB2 again. 04:09.640 --> 04:16.320 Well that's a good habit of Waites you know missing libraries and allows you to run lots of code independently. 04:16.530 --> 04:20.940 So do it to get into the habit. 04:20.970 --> 04:26.690 So no we don't use to seek CB2 that Emerita function to load images. 04:26.700 --> 04:33.010 Now Aliff would have given you full of images that we use in this course. 04:33.430 --> 04:41.320 So by using the argument we enter into Imry function is a part of that image or actually an image file 04:41.890 --> 04:45.690 actually and that returns the image here. 04:45.760 --> 04:48.220 So we're storing the first image here as input 04:53.740 --> 04:55.510 and not in display this image. 04:55.510 --> 04:59.530 We actually call on the CB2 in show function. 04:59.530 --> 05:01.250 This function takes two arguments. 05:01.300 --> 05:05.200 I've put all the notes in the comments in case you want to go over this on your own. 05:05.200 --> 05:06.970 However I will talk to you. 05:07.330 --> 05:11.220 So the first argument is a title that's going to be displayed on the window. 05:11.260 --> 05:18.550 So since this is your first division up you're going to make an item that's called Say Hello World Vision 05:19.330 --> 05:25.590 and image file that we want to open is going to be an input file that we previously loaded into here. 05:26.680 --> 05:30.020 Now you would see it as we'd key and destroy all Windows keys. 05:30.040 --> 05:32.200 It was not necessarily that important. 05:32.200 --> 05:36.380 However you should always use them when you're loading images. 05:36.410 --> 05:42.870 It he waits for you to press any key until and then it loses a window. 05:43.170 --> 05:47.530 They destroy windows destroy all Windows function actually is very important. 05:47.560 --> 05:52.020 Otherwise it leaves your window hanging with dysfunction. 05:52.030 --> 05:57.680 You would wish me to crash your bike and restart it to Colonel restart here. 05:59.220 --> 06:00.340 So let's not do that. 06:00.840 --> 06:02.800 So let's run this code. 06:04.660 --> 06:07.570 The real heroes are improved image. 06:07.600 --> 06:11.680 It's a big shift that I took in Paris when I was here a couple years ago. 06:11.980 --> 06:12.610 And there we go. 06:12.640 --> 06:19.130 So you wouldn't your first image into open city notices a movement at all the comments. 06:19.130 --> 06:26.200 It's much neater and of course I probably will run record looks like this something that will comment 06:26.200 --> 06:27.830 like lower image here. 06:28.030 --> 06:30.140 Well it's not too difficult to understand. 06:30.250 --> 06:32.210 I hope you guys are following this as well 06:35.170 --> 06:41.680 if there's anything that's unclear in my clueless please it be a message not get back to you as soon 06:41.680 --> 06:44.320 as possible within 24 hours. 06:44.750 --> 06:47.320 So now let's take a closer look at what images are stored. 06:47.420 --> 06:50.190 So no that's important. 06:50.270 --> 06:51.370 Yes indeed. 06:51.660 --> 06:57.530 And using some paste sheep function using duct tape is actually very useful when you're looking at the 06:57.530 --> 06:59.240 dimensions of injury. 06:59.450 --> 07:05.690 You enter the door shape and it returns a tuple which gives you the dimensions of an image. 07:05.810 --> 07:14.000 So it took away five group represented to them and listen to the X Y dimensions of the image identity 07:14.030 --> 07:18.670 being the height 12:45 the tree being do. 07:18.680 --> 07:21.510 RG The values of the image. 07:21.630 --> 07:27.510 So let's take a look at looking at height and Woodson's image by actually displaying it using a print 07:27.510 --> 07:28.060 function. 07:29.740 --> 07:33.070 What is what we're showing here is that we can get. 07:33.110 --> 07:40.680 We can isolate the height and widths of this tree which you would use will be useful later on. 07:41.030 --> 07:46.290 We use it just to convert it into simple volume because otherwise it comes up with Oh yeah. 07:46.830 --> 07:48.060 And we put pixels here. 07:48.080 --> 07:53.600 This is just simple string concatenation very basic bytes on a loop it's not too difficult for you if 07:53.600 --> 07:55.200 you're unfamiliar. 07:55.410 --> 07:58.030 And that's it there. 07:58.260 --> 08:01.850 So no let's go into saving images and open sea. 08:01.890 --> 08:08.490 We use a CD to write function which is very similar to that as you can see the Emerita function over 08:08.490 --> 08:10.710 just one has two arguments. 08:10.710 --> 08:16.110 First argument is the name of the file that we're going to see if it does now. 08:16.220 --> 08:24.400 Any time you're opening files or writing files and or conceived functions use these inverted commas 08:24.400 --> 08:28.100 to indicate that it's a string. 08:28.110 --> 08:33.050 Secondly this second argument here is going to be the filing of the image. 08:33.090 --> 08:40.080 So as we previously did our image as input using every function we can then put inputs here and that 08:40.070 --> 08:41.340 writes a file. 08:41.340 --> 08:45.590 Now one cool thing about open CD is that it actually stores in multiple formats. 08:45.610 --> 08:51.380 You read it multiple formats to XP and these are the most common types but believe they can be MTs and 08:51.740 --> 08:54.150 if you add image types as well. 08:54.150 --> 09:01.200 So we run this and this should be written to your working directory and Tom you can just take a look 09:01.200 --> 09:03.850 in the file explorer and you'll see it here. 09:04.110 --> 09:09.380 If it didn't run if it didn't successfully run for some reason it would be to the faults in the above 09:09.450 --> 09:17.090 statements you I guess and that's it for your basic lesson in open see the hope you guys had fun. 09:17.190 --> 09:19.670 We're going to move one now integrate skewing images. 10810

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.