<< Chapter < Page Chapter >> Page >

High-Level Overview:

The goal of our project was to write a function that allowed students to "fix" pictures before uploading them to Facebook. Due to the time constraints of the project, we decided to define "fix" as altering a picture so that if one casually glanced at it, they would not be able to tell that it had been changed. Below are two figures that demonstrate this casual glance test.

Figure 1:

one

Figure 2:

two

It is visually obvious that Figure 1 has been "fixed" to produce Figure 2. Looking closely at Figure 2 alone, it is also blatant that many of the "fixed" objects look slightly strange and out of place. This imperfection is intended. Our goal was not to make the "fixed" picture look perfect, but to make it look passable if viewed briefly when scrolling through countless Facebook pictures. This way, if a student’s relative or future employer finds their Facebook page, they will not find any suspect pictures while scanning over the thousands of tagged photographs. In addition to this casual glance limitation, we also decided to only remove red cups from pictures. There are simply too many suspect items that college students can be holding these days, and identifying them all would be absolutely impossible. Thus we decided to only identify red solo cups as a “proof of concept.” This decision was made because red cups are fairly easy to identify with their red base and white top.

The function we used to “fix” pictures can be broken down into two key processes: first we identify the red cups in the picture, and then we replace them with more appropriate items.

Identification:

We start the identification process using a process called template matching. First, we create a bank of template images that we wish to use to identify red solo cups. This image bank contains a variety of red solo cups with different backgrounds, angles, hands holding them, etc. The reason for such a broad range of templates will be explained later in this module. Then, one by one, we use each template image to identify red solo cups in the target image. This is done by shifting the template across the target image, and computing the sum of products at each position. This sum of products, otherwise known as the cross-correlation, between the template and the selected portion of the target image represents how closely the template and the selected portion match. This process is shown in Figure 3.

Figure 3:

three

If the calculated correlation is above a certain threshold, we save the location and size of the template and identify this position as a red solo cup. This process is shown is Figure 4. Once a template image has been shifted across all possible positions in the target image, the size of the target image is reduced and the shifting starts over. This re-scaling method is repeated until the template is the same size of the target image. The reason for re-sizing will be discussed later in this module.

Figure 4:

four

Questions & Answers

what does nano mean?
Anassong Reply
nano basically means 10^(-9). nanometer is a unit to measure length.
Bharti
do you think it's worthwhile in the long term to study the effects and possibilities of nanotechnology on viral treatment?
Damian Reply
absolutely yes
Daniel
how to know photocatalytic properties of tio2 nanoparticles...what to do now
Akash Reply
it is a goid question and i want to know the answer as well
Maciej
characteristics of micro business
Abigail
for teaching engĺish at school how nano technology help us
Anassong
Do somebody tell me a best nano engineering book for beginners?
s. Reply
what is fullerene does it is used to make bukky balls
Devang Reply
are you nano engineer ?
s.
fullerene is a bucky ball aka Carbon 60 molecule. It was name by the architect Fuller. He design the geodesic dome. it resembles a soccer ball.
Tarell
what is the actual application of fullerenes nowadays?
Damian
That is a great question Damian. best way to answer that question is to Google it. there are hundreds of applications for buck minister fullerenes, from medical to aerospace. you can also find plenty of research papers that will give you great detail on the potential applications of fullerenes.
Tarell
what is the Synthesis, properties,and applications of carbon nano chemistry
Abhijith Reply
Mostly, they use nano carbon for electronics and for materials to be strengthened.
Virgil
is Bucky paper clear?
CYNTHIA
so some one know about replacing silicon atom with phosphorous in semiconductors device?
s. Reply
Yeah, it is a pain to say the least. You basically have to heat the substarte up to around 1000 degrees celcius then pass phosphene gas over top of it, which is explosive and toxic by the way, under very low pressure.
Harper
Do you know which machine is used to that process?
s.
how to fabricate graphene ink ?
SUYASH Reply
for screen printed electrodes ?
SUYASH
What is lattice structure?
s. Reply
of graphene you mean?
Ebrahim
or in general
Ebrahim
in general
s.
Graphene has a hexagonal structure
tahir
On having this app for quite a bit time, Haven't realised there's a chat room in it.
Cied
what is biological synthesis of nanoparticles
Sanket Reply
what's the easiest and fastest way to the synthesize AgNP?
Damian Reply
China
Cied
types of nano material
abeetha Reply
I start with an easy one. carbon nanotubes woven into a long filament like a string
Porter
many many of nanotubes
Porter
what is the k.e before it land
Yasmin
what is the function of carbon nanotubes?
Cesar
I'm interested in nanotube
Uday
what is nanomaterials​ and their applications of sensors.
Ramkumar Reply
what is nano technology
Sravani Reply
what is system testing?
AMJAD
preparation of nanomaterial
Victor Reply
how did you get the value of 2000N.What calculations are needed to arrive at it
Smarajit Reply
Privacy Information Security Software Version 1.1a
Good
Got questions? Join the online conversation and get instant answers!
QuizOver.com Reply

Get the best Algebra and trigonometry course in your pocket!





Source:  OpenStax, Red cup replacement. OpenStax CNX. Dec 19, 2011 Download for free at http://cnx.org/content/col11390/1.1
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Red cup replacement' conversation and receive update notifications?

Ask