Join Carlos Rivas for an in-depth discussion in this video Solution overview, part of Code Clinic: Java.
- [Instructor] Our solution consists of two classes:…an image panel class, which you can see here,…and it's used to display our input image;…also Face Detector class.…This is our main program.…It consists of four methods:…a read image method that is used…to read the input file from disk…seen here on line 18;…a face detector method, which orchestrates…the whole operation by calling read image;…calling detect face;…and displaying the results seen here in line 40.…
Detect face is the method that we're going to code…in a later video.…The main method starts our application…and codes the face detector method.…Let's take a look.…The main method validates that…the three input parameters are provided,…which is the input image file,…which can be a jpeg or a png file;…the width of the image; and the height of the image.…These values are passed to face detector,…which is the constructor of our class.…
Let's take a look.…Here on line 40 we see our constructor for our class.…It converts the inputs parameters to number…both the width and the height of the image…
Visit other courses in the series to see how to solve the exact same challenges in languages like C#, C++, PHP, Python, and Ruby.
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
- 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.