1
00:00:02,000 --> 00:00:05,000
You know, we will see how we can run YOLO on Windows.

2
00:00:05,000 --> 00:00:12,000
So first of all, I will just click over here, click on new and create a new directory and just write

3
00:00:12,000 --> 00:00:14,000
Running YOLO V8.

4
00:00:15,000 --> 00:00:16,000
Indoors.

5
00:00:16,000 --> 00:00:22,000
Okay, so I've just created a new directory by the name running YOLO V8 windows, which you can see

6
00:00:22,000 --> 00:00:23,000
over here.

7
00:00:23,000 --> 00:00:32,000
And I've just click over here, click on new and create a file Yolo v8-video.py file.

8
00:00:32,000 --> 00:00:39,000
Okay, so I will just copy the code which we have in the yolo webcam.py file and just paste this code

9
00:00:39,000 --> 00:00:43,000
into the yolo v8-video.py file.

10
00:00:43,000 --> 00:00:46,000
So what change will make before explaining that change?

11
00:00:47,000 --> 00:00:54,000
What I will do is I will just go to over here and let me show you a video sample video.

12
00:00:54,000 --> 00:00:57,000
So I've just created a folder over here by the name videos.

13
00:00:57,000 --> 00:01:02,000
And if I just open this folder, you can see a video by x dot mp4.

14
00:01:02,000 --> 00:01:08,000
So now I will just perform prediction on this video and I will see whether my able, my model is able

15
00:01:08,000 --> 00:01:11,000
to detect the person and the bicycle over here or not.

16
00:01:11,000 --> 00:01:17,000
So what I expect is that my model should be able to detect the person and the bicycles because I'm using

17
00:01:17,000 --> 00:01:23,000
YOLO Pre-trained weights and the Pre-trained weight Pre-trained model is being trained on the Coco dataset,

18
00:01:23,000 --> 00:01:25,000
which can detect 80 classes and the class.

19
00:01:25,000 --> 00:01:30,000
And among those classes we have the bicycle and the person class as well.

20
00:01:30,000 --> 00:01:36,000
Okay, so just close this out and uh, in the cv2.video capture zero.

21
00:01:37,000 --> 00:01:40,000
Just passed up this path.

22
00:01:40,000 --> 00:01:42,000
So I will just write dot dot.

23
00:01:42,000 --> 00:01:50,000
It means we just need to go outside this folder running your V8 windows or running your V8 videos.

24
00:01:50,000 --> 00:01:55,000
I think this should be the name of this folder, should be YOLO V8 videos, but now I've just created

25
00:01:55,000 --> 00:02:02,000
it, so we just need to go back to this folder from this folder and just go to the videos folder, right

26
00:02:02,000 --> 00:02:02,000
videos.

27
00:02:02,000 --> 00:02:07,000
And in the videos I will just like bikes dot mp4.

28
00:02:07,000 --> 00:02:11,000
Okay, so bikes dot mp4.

29
00:02:11,000 --> 00:02:15,000
So just select this out from here by just writing dash.

30
00:02:15,000 --> 00:02:16,000
Okay.

31
00:02:16,000 --> 00:02:17,000
Okay.

32
00:02:17,000 --> 00:02:20,000
So I think that would work perfectly fine.

33
00:02:21,000 --> 00:02:22,000
Okay.

34
00:02:22,000 --> 00:02:26,000
So I'm just using the bikes dot mp4 and redirecting towards this directory.

35
00:02:26,000 --> 00:02:27,000
Okay.

36
00:02:27,000 --> 00:02:28,000
So.

37
00:02:29,000 --> 00:02:32,000
Let's just run this and see what output do we get?

38
00:02:32,000 --> 00:02:35,000
So just click on Run YOLO V8 video.

39
00:02:36,000 --> 00:02:36,000
For.

40
00:02:38,000 --> 00:02:43,000
I'm just running this script file and let's see what output we get.

41
00:02:43,000 --> 00:02:46,000
If there is an error, we will definitely fix it out.

42
00:02:47,000 --> 00:02:52,000
So now you can see over here we are able to detect the bicycle as well as we are able to detect the

43
00:02:52,000 --> 00:02:52,000
person.

44
00:02:52,000 --> 00:02:55,000
We have the confidence score along with this as well.

45
00:02:55,000 --> 00:02:58,000
So the detection results are quite impressive.

46
00:02:58,000 --> 00:03:00,000
Like we are able to detect the person.

47
00:03:00,000 --> 00:03:03,000
We are able to detect the bicycle.

48
00:03:03,000 --> 00:03:04,000
We are the label bicycle.

49
00:03:04,000 --> 00:03:08,000
We have assigned the label person and the confidence score we also have over here.

50
00:03:09,000 --> 00:03:12,000
Okay, so that's perfect.

51
00:03:12,000 --> 00:03:17,000
Like you can see over here, we are also able to detect a traffic light over here as well.

52
00:03:17,000 --> 00:03:23,000
We have created a bounding box around it as well and the results look quite impressive.

53
00:03:23,000 --> 00:03:24,000
In short, you can say that.

54
00:03:26,000 --> 00:03:26,000
This is our deserts.

55
00:03:26,000 --> 00:03:29,000
What I was expecting and.

56
00:03:31,000 --> 00:03:32,000
And amazing.

57
00:03:32,000 --> 00:03:36,000
So let me just stop this video and see if my output video is saved.

58
00:03:36,000 --> 00:03:39,000
Output detection video is saved into this folder or not.

59
00:03:39,000 --> 00:03:47,000
So I will just go over here, run YOLO, V8 windows and this is the output file which contains the output

60
00:03:47,000 --> 00:03:48,000
video with detections.

61
00:03:48,000 --> 00:03:48,000
Okay.

62
00:03:48,000 --> 00:03:54,000
So now you can see over here we are able to do detections like you can see that we have created a bounding

63
00:03:54,000 --> 00:03:55,000
box around the bicycle.

64
00:03:55,000 --> 00:03:59,000
We have also created a bounding box around the person as well.

65
00:03:59,000 --> 00:04:02,000
Like you can see over here, we are able to detect textures.

66
00:04:02,000 --> 00:04:05,000
Thus, we have also assigned the confidence score and the label as well.

67
00:04:05,000 --> 00:04:07,000
So the results are pretty impressive.

68
00:04:08,000 --> 00:04:15,000
Okay, so now till now we have done detection on images, videos and the live webcam feed as well.

69
00:04:15,000 --> 00:04:19,000
So we have covered half of the part like we have in this from the start.

70
00:04:19,000 --> 00:04:25,000
We learned how we can install Python, how we can install the PyCharm Community edition, how we can

71
00:04:25,000 --> 00:04:26,000
run your own images.

72
00:04:26,000 --> 00:04:32,000
We have also seen that how we can run your own videos and how we can run your own webcam as well.

73
00:04:32,000 --> 00:04:36,000
So in the next part we will integrate YOLO V8 with class.

74
00:04:36,000 --> 00:04:38,000
Okay, so let's see you all in the next part.

