Learn how to write the code to calculate the points of a Polygon from the provided rectangles because you need to convert from the rectangles described by the API into a Polygon that is understood by the ImageSharp library.
- [Instructor] Okay, now that we've obtained the rectangles…from the API describing where…in the image the faces are actually located,…let's draw the rectangles onto that image.…So first things first, let's load the image…that we previously sent up to the server.…And we're going to use the class Image to say .Load.…It is the same filename as before.…However, now we are not loading a stream.…We've previously closed the stream…after submitting the request.…Now we're going to load it into a format…that's useful for manipulating as an image.…
Now one thing that will help is with this library…there is a lot of extension methods necessary.…And it's surprisingly hard to find them.…You have to troll through either the GitHub repo…or the documentation.…So let me just help you out real quick.…Going to the top of the file.…We'll say using and add all the namespaces…we're about to refer to for the extension methods…we're going to need for this.…So I'd suggest start with a using SixLabors.ImageSharp,…copy, paste, and add .Processing,…
Skill Level Intermediate
1. Problem 1: Pond Oreille
2. Problem 2: Where Am I?
3. Problem 3: Eight Queens
4. Problem 4: Accessing Peripherals
5. Problem 5: Facial Recognition
6. Problem 6: Real-Time Information Dashboard
Next steps2m 46s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.