Implement a prototype of photo booth

Assignment Help Computer Engineering
Reference no: EM131524357

Assignment: opencv program

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 video
The "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 video
The "Gaussian" kernel is [1 2 1; 2 4 2; 1 2 1] * 1/16.

(3) Hit "m" shows the mean/average blurred video
The " mean" kernel is [1 1 1; 1 1 1; 1 1 1] * 1/9.

(4) Hit "e" shows the ordinary edge effect
The "edge" kernel is [-1 -1 -1; -1 8 -1; -1 -1 -1]

(5) Hit "v" shows the vertical edge effect by applying the Sobel filter
The 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 filter
The 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. #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.

Reference no: EM131524357

Questions Cloud

Describe your future goals based on the transferable skills : Describe your future goals based on the transferable skills that you've chosen to showcase
Recommendations for performing a risk assessment : Also, include recommendations for performing a risk assessment that could help identify the security gaps in cloud computing.
Examine the uncertainty regarding the success or failure : Your boss has asked you to work up a simulation model to examine the uncertainty regarding the success or failure of five different investment projects.
Why might intravenous drug users not seek treatment for hiv : Why might intravenous drug users not seek treatment for HIV/AIDS?
Implement a prototype of photo booth : For this project, you are to implement a prototype of "Photo Booth" by using different kernels for image filter.
Watch classical and operant conditioning : Watch Classical and Operant Conditioning, which distinguishes between classical and operant conditioning by describing many important concepts.
Write a business memo : Write a 2- to 3-page business memo in which you address: Issues related to cost, quality, and access that affect the organization and the people it serves
Show how a monte carlo simulation could facilitate : A decision maker is working on a problem that requires her to study the uncertainty surrounding the payoff of an investment.
Explain the sampling method : Explain the sampling method (probability or nonprobability) and the particular technique that would be ideal to test your proposed hypothesis.

Reviews

Write a Review

 

Computer Engineering Questions & Answers

  Define the hessenberg case

Write a MATLAB function x - HessTrans(A,b) that solves the linear system ATx = b, where A is upper Hessenberg. If A = LU, then AT = UT LT.

  How to illustrate decision table to represent treatment

How to illustrate decision table to represent treatment? Create a structured English version based on the following dialogue obtained by the Systems Analyst from the client interview below.

  Generally the overall report identifies or investigates

generally the overall report identifies or investigates issues as well as problems of itc government in context of poor

  How to print out all the information in the file

prompt the user for a file name and open the file for reading. Print all the information in the file, numbering each new line of text.

  Create a data frame that is equivalent to the sas data

Read in Traffic.dat using R and create a data frame that is equivalent to the SAS data set you created during the week.

  Sketch a basic network suggesting how many routers

plan a basic network suggesting how many routers and hubs etc for each floor. As well, find out what to use to connect i.e. Cat5 wire,etc.

  Write a paper about importance of database driven websites

Write a Paper about Importance of database driven websites and its risks. Technologies that support websites, pros and cons. Technologies that support databases, pros and cons. Criticality of the interface, examples of best sites.

  Give a real-life application in which you manipulate the

question 1 provide a real-life application in which you manipulate data in string or array format. describe the

  Computer applications help minimizing the communication

computer applications help minimize the communication barriers experienced over the phone throughout the support

  Determine the function realized by the given dtl circuit

Determine the function realized by the following DTL circuit. Assume logic-1 is 5 V and logic-0 is 0 V.

  Discuss the optimality of the dynamic programming solution

Discuss the optimality of the dynamic programming solution. Discuss the time complexity of this algorithm in terms of the size of the inputs X and Y.

  Develop an application that randomly picks numbers

Develop an application that randomly picks numbers for all four games and displays the generated numbers in a GUI. Declare a method that generates a random number based on a range given.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd