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

  What does the first field of a cookie contain

What does the first field of a cookie contain? Which of the following is NOT a for the difficulties in prosecutions of computer-related crimes?

  Design a bcp based off of the sangrafix company profile

You have been hired as a consultant to design BCP for SanGrafix, a video and PC game design company. SanGrafix's newest game has become a hot seller, and the company anticipates rapid growth.

  Question1- inscribe a plan for analysis and design of an

question1- inscribe a plan for analysis and design of an e-commerce site recommending that aspects of process and data

  Find flow starting with inital conditions of flat velocity

Computer analysis of Prob. with to=f(x) and constant fluid properties: Calculate the flow, starting with inital conditions of flat velocity and temperature.

  Choose one of the major areas of middleware graphics ai

choose one of the major areas of middleware graphics ai networking sound movie animation physics. research the major

  Write down a c++ program for little man''s computer

A text file containing machine code (not assembly code) for little man's computer following instruction set . Instructions are in different lines (no need for semicolon at the end of each instruction)

  Questiondeveloping requests specification for this

questiondeveloping requests specification for this integration. you have to use all of tools available to you to elicit

  What are the functions of database management software

What are functions of database management software? Name common database management software. Describe how Dell reduced its operating costs. Why are wireless transmission systems favored over wired transmission systems?

  How to using the prompt and alert functions

compute the average (mean) of the 5 marks as a rounded integer or a floating point number.

  Review sectioncontemporary hardware platform trends and

review sectioncontemporary hardware platform trends and section contemporary software platform trends in of management

  Use the internet or computer magazines

utalize the Internet or computer magazines to investigate one of the following DBMSs: DB2, SQL Server, MySQL, Oracle, or Sybase.

  The other breach was an inside job where personal data was

you have just been hired as an information security engineer for a large multi-international corporation. unfortunately

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