is euclidean distance and the reason this works is because you're literally just performing pythagoras theorem you're looking at a right angle triangle you're figuring out the distance of i guess it's the uh oh i've been out of math for a long time now the distance between the adjacent and the opposite uh sides i guess and then you're calculating the length of the hypotenuse which is going to be the distance between those two points so i think i've probably butchered that explanation a little bit i don't claim to be a you know god at math or anything but this is the formula for euclidean distance it's pretty much just the straight line distance between two points so anyways that's what this is telling you is that the euclidean distance between two corners must be greater than this for you to include that corner alright so now that we have that what we want to do is display these corners on the screen so we will continue in one second but i need to quickly thank the sponsor of this video and the series which is algo expert algol expert is the best platform to use for preparing for your software engineering coding interviews they have over NUMBER_TOKEN coding interview questions they have behavioral interview tips a data structures crash course mock interviews and a ton of other helpful features get started with algo expert today by clicking the link in the description and using the code tech with tim for a discount on the platform so the first thing that we need to do here is we need to convert these corners into integers so by default when it returns to these corners in fact let me just show you let's let's print out corners here you're going to notice that the data type of these corners is actually float so let's have a look so let me just quit this and we'll look right here and what you can see here that all these values are floating point values now this is no good we don't want floating point values and the reason we don't want floating point values is because we want to use these values here to actually draw our corners now what we're going to do is kind of extract these values and we're just going to draw circles where all of these points are so we can see where all of our corners are notice how many it's giving me here so i need to convert these into integers to do that is actually pretty straightforward we're going to say that corners is equal to and then np dot and then i believe this is actually called int NUMBER_TOKEN so we're going to say int NUMBER_TOKEN just had to reference my notes there and then we're going to pass in corners now this will just take our numpy array that has those floating point corners and turn them into integers all right so now that i have that what i want to do is draw these corners so obviously i have multiple corners and notice that if you look at these corners here they're actually returned to us in a similar shape to our image so we have like all of these corners inside of two numpy arrays so that's going to be something that we have to deal with but just notice that we have our one array and then inside of two arrays here two lists we have our points so we are going to have to kind of decompose that and deal with that here but i will show
START_SPONSOR_TOKEN quickly thank the sponsor of this video and the series which is algo expert algol expert is the best platform to use for preparing for your software engineering coding interviews they have over NUMBER_TOKEN coding interview questions they have behavioral interview tips a data structures crash course mock interviews and a ton of other helpful features get started with algo expert today by clicking the link in the description and using the code tech with tim for a discount on the platform so the first END_SPONSOR_TOKEN