12 Jul For this project, you are to implement a prototype of ‘Photo Boot
For this project, you are to implement a prototype of ‘Photo Booth’ by using different kernels for image filter. The input image is obtained directly from the web camera captured video. Your task is to apply different kernels triggered by hitting different keys on the keyboard:(1) Hit ‘i’ shows the original videoThe ‘identical’ kernel is [0 0 0; 0 1 0; 0 0 0]. Semi-colon ‘;’ indicates a new row.(2) Hit ‘g’ shows the Gaussian blurred videoThe ‘Gaussian’ kernel is [1 2 1; 2 4 2; 1 2 1] * 1/16. (3) Hit ‘m’ shows the mean/average blurred videoThe ‘ mean’ kernel is [1 1 1; 1 1 1; 1 1 1] * 1/9. (4) Hit ‘e’ shows the ordinary edge effectThe ‘edge’ kernel is [-1 -1 -1; -1 8 -1; -1 -1 -1](5) Hit ‘v’ shows the vertical edge effect by applying the Sobel filterThe vertical Sobel kernel is [-1 0 1; -2 0 2; -1 0 1](6) Hit ‘h’ shows the horizontal edge effect by applying the Sobel filterThe horizontal Sobel kernel is [-1 -2 -1; 0 0 0; 1 2 1](7) Hit ‘s’ shows the sharpen effect The sharpen kernel is [0 -1 0; -1 5 -1; 0 -1 0]. If the result is not obvious, you can change a bigger number than ‘5’ for the center number, such as 7.Hints:You do not need to implement the filter from scratch. Instead, OpenCV provides you with a convenient filter API: ‘filter2D()’. You just need to use this function directly and put two ‘Mat’ variables as input with some other basic parameters. The two ‘Mat’ variables refer to the input original image and the corresponding Kernel image. (please refer online document for further details: http://docs.opencv.org/modules/imgproc/doc/filtering.html#void filter2D(InputArray src, OutputArray dst, int ddepth, InputArray kernel, Point anchor, double delta, int borderType)’You can start with the demo code for Gaussian blur posted as a basic framework. What you need to do is to replace the four nested loops in the demo code by using kernel functions. You are suggested to create a separate function, e.g. myEffect(Mat original_frame) or myEffect(). This function is called inside the while loop for every input video frame for effect processing. Rubrics:(1) Successfully pass compilation or linkage (10%)(2) Correctly stream the video from a webcam and display it. If ‘Esc’ key is hit, the application terminates (20%)(3) Correctly use ‘filter2D()’ function with proper parameters passing (30%)(4) Fully generate all the required effects with corresponding keyboard operations (40%)
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteEdu. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
Do you need help with this question?
Get assignment help from WriteEdu.com Paper Writing Website and forget about your problems.
WriteEdu provides custom & cheap essay writing 100% original, plagiarism free essays, assignments & dissertations.
With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Chat with us today! We are always waiting to answer all your questions.