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

  Develop a complete application that uses the scene

Develop a complete application that uses the Scene, Shape affine4, and so on classes and supports reading in and drawing the scene described in an SDL file

  Design the requires and the provides interfaces of at least

as the lead software engineer for a medium-sized hospital you have been asked to spearhead an effort to improve the

  The origin and history of the sip protocol

Explain, in a couple of paragraphs, the origin and history of the SIP protocol and the H.323 protocol suite. What are the most noticeable characteristics of each. What are some of their cons

  A covert channel is a communication channel which violates

a covert channel is a communication channel that violates a security policy by using shared resources in ways for which

  Program requests the name of food and number of calories

The council suggest that at most 30% of the calories in our diet come from fat. however food labels give the number of calories and amount of fat per serving, they often do not give percentage of calories from fat.

  Related to super and sub class

Write down a class definition for subclass LawSchool which consists of: A (default) constructor which invokes the superclass constructor along with the value 3 (law school is typically a three year program).

  Businesses today are extremely reliant on large amounts of

businesses today are extremely reliant on large amounts of data for making intelligent business decisions. likewise

  Identify tools used in the forensics data collection process

Identify tools used in the forensics data collection process. Your completed assignment should be at least two full double-spaced pages in length.

  Define the cost of ownership of the mobile application

Define the cost of ownership of the mobile application. Define the benefits of ownership of the mobile application. Predict the return on investment (ROI) of the mobile application and your suggested alternatives.

  Implementation of the spacecraft feature

Assignment 1: The Diamonds of Doom - Discuss and brain-storm with your associates, you must ensure that your submission is your own individual work - implementation of the "Spacecraft" feature.

  Create a table that shows the various required application

Create a table that shows the various required Application Software. The table should have all the necessary columns, rows, and column headings to show

  Examine benefits that an organization could experience

Examine at least three benefits and three drawbacks that an organization or individual could experience using virtualization. Recommend one individual or organization that would highly benefit from using virtualization.

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