Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
d9bb2df
thing
tsukoni Oct 25, 2017
027f27a
create files
akeimach Oct 25, 2017
66e0c18
git ignore for key file
akeimach Oct 26, 2017
d452bc2
frontend basics
tsukoni Oct 26, 2017
1e92c12
Merge pull request #2 from akeimach/frontend
tsukoni Oct 26, 2017
5ad3b75
imgur ajax oauth2 setup
asajbel Oct 26, 2017
3ec360d
merge has key.js file
asajbel Oct 26, 2017
930caa5
testing image upload
asajbel Oct 27, 2017
fb85eb3
Able to read and upload a file to imgur getting back a url
asajbel Oct 27, 2017
e9fda21
Merge pull request #3 from akeimach/upload
asajbel Oct 27, 2017
a344bf7
commit api temp
akeimach Oct 27, 2017
594922d
fix conflicts
akeimach Oct 27, 2017
f4ab420
add id to index for image url search
akeimach Oct 27, 2017
894e564
Merge pull request #4 from akeimach/ak-branch
asajbel Oct 27, 2017
786700b
reorganize cloud search - determining term significance
akeimach Oct 27, 2017
32a4f17
layout tune
chochoe Oct 27, 2017
991bedc
layout tune
chochoe Oct 27, 2017
e980975
Merge branch 'master' into emery
chochoe Oct 27, 2017
aa2731f
drag and drop works on imgur.html
asajbel Oct 27, 2017
c8c6428
add cloud types and search order
akeimach Oct 27, 2017
f71870a
imgur.html formated
asajbel Oct 27, 2017
8f71c7d
Merge pull request #6 from akeimach/ak-branch
asajbel Oct 27, 2017
929b2ac
imgur.js code updated
asajbel Oct 27, 2017
0fed2f7
Merge branch 'master' into upload
asajbel Oct 27, 2017
5f38c83
imgur.js handles multiple files'
asajbel Oct 27, 2017
79c1a3c
changes based on size
chochoe Oct 28, 2017
6b4332c
add if statement for base-64 image compatibility
akeimach Oct 28, 2017
9e8423c
Merge pull request #8 from akeimach/mobile
akeimach Oct 28, 2017
fa320a5
Merge pull request #7 from akeimach/upload
akeimach Oct 28, 2017
e6c3f57
Merge branch 'master' into emery
akeimach Oct 28, 2017
2c36991
Merge pull request #5 from akeimach/emery
akeimach Oct 28, 2017
44a2449
Merge pull request #1 from akeimach/vu
akeimach Oct 28, 2017
c8a18dd
Merge remote-tracking branch 'origin' into ak-branch
akeimach Oct 28, 2017
3914fd2
refactor vision query and add functions for smooth integration
akeimach Oct 28, 2017
c008375
remove changes I used for testing
akeimach Oct 28, 2017
05a620c
Merge pull request #9 from akeimach/ak-branch
asajbel Oct 28, 2017
71a7e79
drag and drop upload styling done
asajbel Oct 29, 2017
115dc74
Merge branch 'master' into upload
asajbel Oct 29, 2017
f3656a5
drag and drop or browse now works with vision
asajbel Oct 29, 2017
87d0f6b
Merge pull request #10 from akeimach/upload
akeimach Oct 29, 2017
bc6e88a
parse wikipedia for summary text
akeimach Oct 29, 2017
395ee0d
load image library added to fix uploaded image incorrect orientation
asajbel Oct 29, 2017
b98f1b3
Merge branch 'ak-branch' into upload
asajbel Oct 29, 2017
f975041
Merge pull request #11 from akeimach/ak-branch
asajbel Oct 29, 2017
143ceb6
images now orient correctly and can be drag and dropped from another …
asajbel Oct 30, 2017
6a25ad2
added capture tag to upload
asajbel Oct 30, 2017
aefe0a4
Merge pull request #12 from akeimach/upload
akeimach Oct 30, 2017
627bca5
add favicon, pop down link url, wikipedia page link
akeimach Oct 30, 2017
1334de8
rewrite cloud word search, now more robust algorithm
akeimach Oct 30, 2017
1371d5a
Merge pull request #13 from akeimach/testing
asajbel Oct 30, 2017
88ddf4f
Removed capture tag on Upload Image so it will no longer go directly …
asajbel Oct 30, 2017
cc98eea
deleted AndersIndex.html
asajbel Oct 30, 2017
8df3ad7
fixed up dom and removes description when new image displayed
asajbel Oct 30, 2017
0a036b7
do it
chochoe Oct 30, 2017
3c88336
Merge branch 'markup' into layout2
chochoe Oct 30, 2017
e80a396
Merge pull request #14 from akeimach/layout2
asajbel Oct 30, 2017
730d2e0
added gif in description
tsukoni Oct 30, 2017
0f57fe8
merge conflict fix
tsukoni Oct 30, 2017
3aa8709
got gif to load
tsukoni Oct 30, 2017
dcb4bf4
removed dropzone
tsukoni Oct 30, 2017
936522c
Merge pull request #15 from akeimach/nerb
asajbel Oct 30, 2017
c79b645
list multiple cloud types in solution
akeimach Oct 30, 2017
ba0d0e4
also added more cloud types
akeimach Oct 30, 2017
d1d6280
Merge pull request #16 from akeimach/cloud-algorithm
asajbel Oct 30, 2017
c35b5d0
add async count to stall results until all calls finished
akeimach Oct 30, 2017
0c79511
Merge pull request #17 from akeimach/cloud-algorithm
asajbel Oct 30, 2017
0074b26
read me
tsukoni Oct 30, 2017
f4dd445
Merge pull request #18 from akeimach/readme
tsukoni Oct 30, 2017
a0d9ebc
testing wiki api calls for side bar content
akeimach Oct 30, 2017
30afac5
Merge remote-tracking branch 'origin' into cloud-algorithm
akeimach Oct 30, 2017
54283ff
improve second wikipedia api call - return plain text and categories
akeimach Oct 31, 2017
ce612a9
tried to implement wiki api generator but limited amount of info retu…
akeimach Oct 31, 2017
c800937
add infobox if present in wikipedia article, could use more styling
akeimach Oct 31, 2017
7662d75
formated readme and description meta
asajbel Oct 31, 2017
86287b0
Merge pull request #19 from akeimach/cloud-algorithm
asajbel Oct 31, 2017
06cd3ce
Merge branch 'master' into last
asajbel Oct 31, 2017
8c42fa4
formated readme
asajbel Oct 31, 2017
01ad543
more readme formating and added error messages for users
asajbel Oct 31, 2017
887c370
url error case
asajbel Oct 31, 2017
c98e285
Merge pull request #20 from akeimach/last
akeimach Oct 31, 2017
f614414
Update README.md
tsukoni Oct 31, 2017
8dc9faf
Merge pull request #21 from akeimach/grammar-fixes
asajbel Oct 31, 2017
b8558a8
changed bg to body
tsukoni Oct 31, 2017
c78a143
Merge pull request #22 from akeimach/background
tsukoni Oct 31, 2017
d772918
url toggle button
chochoe Oct 31, 2017
341dcf1
Merge pull request #23 from akeimach/final-button
asajbel Oct 31, 2017
e9c0973
formatting for aside boxes
akeimach Oct 31, 2017
efb4795
formatting for aside boxes
akeimach Oct 31, 2017
82328ab
Merge branch 'master' into small-fixes
tsukoni Oct 31, 2017
a221689
Merge pull request #24 from akeimach/small-fixes
asajbel Oct 31, 2017
017fc30
Delete dnd.js
akeimach Oct 31, 2017
9b4d8f0
fix call to 'list of cloud types' wiki, first letter capitol infobox,…
akeimach Nov 1, 2017
dc1c136
added 'container' during infobox layout testing, now removing because…
akeimach Nov 1, 2017
4c61c7a
Merge pull request #26 from akeimach/small-fixes
asajbel Nov 1, 2017
ca644c6
Update index.html
chochoe Jan 6, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .gitignore
Empty file.
31 changes: 29 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,29 @@
# cloudnv
Web app to identify pictures of clouds
# CloudNV

>Emery Cho, Alyssa Keimach, Vu Vuong, Anders Sajbel

## Purpose

CloudNV acquires an image of a cloud, identifies the type of cloud and provides a short description on said cloud.

## Deployed Site
[CloudNV](http://alyssakeimach.com/cloudnv/)

## How To Use

Simply either drag and drop an image, use the file explorer and select an image or enter an image link URL. The process should run automatically at that point and return the description at the bottom of the app.

## How It Works

After submitting something, it is first verified as an image. If it is over 4MB we send it to Imgur to store it for the Vision API to examine. Then it is sent to the Google Cloud Vision API. This analyzes the image and returns related tags. These tags first determine whether the image falls under clouds or not. They are then cross referenced with our hard coded cloud arrays. Depending on what tags match, the key words are then sent to the Wikipedia API where it then retrieves the summary section to append to the page for the user to read.

## APIs Used
1. Imgur API
2. Google Vision API
3. Wikipedia Search API
4. Wikipedia Parse API

## Libraries Used
1. jQuery
2. Bootstrap
3. Load-Image https://github.com/blueimp/JavaScript-Load-Image
48 changes: 48 additions & 0 deletions assets/css/reset.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
140 changes: 140 additions & 0 deletions assets/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
.container-fluid {
width: 90%;
height: auto;
}

.row {
margin: 2rem;
}

.customBox {
border: .5rem solid #66aede;
border-radius: .5rem;
padding: 1rem;
background-color: rgba(255, 255, 255, 0.4);
}

.infobox-aside {
border: .3rem solid #66aede;
border-radius: .5rem;
padding: 1rem;
}

.toggle {
text-decoration: none;
color: #31708f;
font-size: 18px;
font-weight: 600;
}

.toggle:hover {
text-decoration: none;
color: #173848;
font-weight: 700;
}

.panel {
background-color: #66aede;
color: white;
height: 80px;
text-align: center;
}

.drag {
margin: auto;
border: 2px dotted #66aede;
color: #31708f;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
padding: 10px;
font-size: 200%;
background-color: rgba(255, 255, 255, 0.4);
width: 100%;
}

.drag:hover {
background-color: rgba(255, 255, 255, 0.6);
}


.uploadWanted {
height: 300px;
}

.dropInfo {
margin: auto;
padding: 1rem;
font-weight: 700;
}

.upload {
width: 0.1px;
height: 0.1px;
opacity: 0;
overflow: hidden;
position: absolute;
z-index: -1;
}

.uploadLabel {
font-size: 32px;
font-weight: 700;
margin: auto;
width: 80%;
height: 80%;
display: flex;
align-items: center;
justify-content: center;
}

.upload:focus+label,
.uploadLabel:hover {
color: #173848;
}

.uploadBox {
display: table-cell;
vertical-align: middle;
}

.imageCloud {
width: 100%;
margin-bottom: 1rem;
}

.linkBtn {
background-color: rgba(102, 174, 222, 0.6);
}

.linkBtn:hover {
background-color: rgba(102, 174, 222, 0.8);
}

#cloud-type {}

#cloud-fact {}

#cloudDesc {}

#cloud-gif {}

.img-center {
display: block;
margin: 0 auto;
}

body {
min-width: 320px;
background: url(../images/weather.png) no-repeat center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;

}

h3 {
margin-left: 2rem;
}
Binary file added assets/images/cloud_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/clouds.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/lion_king.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/lion_king_left.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/lion_king_right.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/weather.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading