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

  Why is the trend today to employ use cases in user interview

Creating use cases when working with users is a recent development in systems analysis practice. Why is the trend today to employ use cases in user interviews or JAD sessions?

  Estimating the running time of quicksort

The running time of quicksort may be improved in practice by taking the benefit of the fast running time of the insertion sort when its input is "nearly" sorted.

  Write down the worst cardiac simulator of all time

make the worst CARDIAC simulator of all time (in C++) that tells the user how to execute only a single instruction typed as a 3 digit number by the user.

  Describe your design of the given client requirements

Outline suggested security requirements for the Website to protect information. Describe your design of the following client requirements and the importance of each element that you include in the client's Website.

  Design clocked cmos logic circuits

Design an NMOS pass logic network that implements the logic functions described in given Problem. - Design clocked CMOS logic circuits that will implement the logic functions.

  When an entity has the relationship to itself

The presence of one or more foreign keys in a relation prevents. When an entity has a relationship to itself, we have a?

  Make use to effectively manage a team of system

Are different management techniques needed for managing technical personnel versus nontechnical personnel.

  List the primary key and functional dependencies

List the primary key and functional dependencies in the following table, subject to the specified conditions. Convert this table to an equivalent collection of tables that are in third normal form (3NF).

  Wap that draws a circle using a rubberbanding technique

Write a program that draws a circle using a rubberbanding technique. The circle size is determined by a mouse drag. Use the original mouse click location.

  Which is implemented using linked lists

An array can be used to hold a complete or full binary tree. Explain how he data structure would be set up and how a node's left and right children can be reached. What changes would be needed if there was a requirement to handle non-full, non-comp..

  Design a combinational circuit with three inputs

Design a combinational circuit with three inputs, x, y, and z, and three outputs, A, B, and C. When the binary input is 0. I, 2. or 3. the binary output is one greater than the input.

  Building an adder and multiplier with mips

Design the algorithm for this adder, implement this algorithm as a sub-routine in MIPS and estimate how long your sub-routine will take based on the instructions it must complete

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