<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="http://www.r-bloggers.com/rooglevision-released-a-package-for-image-recognition/"></div></div><div><a data-url="http://www.r-bloggers.com/rooglevision-released-a-package-for-image-recognition/" data-counturl="http://www.r-bloggers.com/rooglevision-released-a-package-for-image-recognition/" data-count="horizontal" data-text="RoogleVision released – a Package for Image Recognition" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://flovv.github.io/www.nypon.de/RoogleVision-released/"> Florian Teschner</a></strong>, and kindly contributed to <a rel="nofollow" href="http://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>First to the naming; it basically is an arbitrary condensation of “R + Google Cloud Vision API”. I wonder why google chooses to mix google with vision.<br>
In my opinion it sounds pretty much like “to goggle with vision”, which makes limited sense.<br>
For the functionality; the package enables convenient Image Recognition, Object Detection, and OCR using the Google’s Cloud Vision API.<br>
More precisely the user can pick between the following image recognition modes: FACE_DETECTION, LANDMARK_DETECTION, LOGO_DETECTION, LABEL_DETECTION, TEXT_DETECTION.<br>
Without further undo, here is how you get started:</p>
<h2>Install</h2>
<div>
<pre><code>#install.packages(&quot;devtools&quot;)
require(devtools)
install_github(&quot;flovv/RoogleVision&quot;)
</code></pre>
</div>
<h2>Get API Keys</h2>
<ul>
<li>Visit <a target="_blank" href="http://flovv.github.io/www.nypon.de/RoogleVision-released/console.cloud.google.com">Google’s developer console</a></li>
<li>sign in</li>
<li>create a project, enable billing and enable ‘Google Cloud Vision API’</li>
<li>go to credentials, create an OAuth 2.0 client ID; copy client_id and client_secret from JSON file.</li>
</ul>
<h2>Usage</h2>
<div>
<pre><code>require(RoogleVision)
#devtools::install_github(&quot;MarkEdmondson1234/googleAuthR&quot;)
require(googleAuthR)


### plugin your credentials
options(&quot;googleAuthR.client_id&quot; = &quot;xxx.apps.googleusercontent.com&quot;)
options(&quot;googleAuthR.client_secret&quot; = &quot;&quot;)

## use the fantastic Google Auth R package
### define scope!
options(&quot;googleAuthR.scopes.selected&quot; = c(&quot;https://www.googleapis.com/auth/cloud-platform&quot;))
googleAuthR::gar_auth()

############
#Basic: you can provide both, local as well as online images:
o &lt;- getGoogleVisionResponse(&quot;brandlogos.png&quot;)
o &lt;- getGoogleVisionResponse(imagePath=&quot;brandlogos.png&quot;, feature=&quot;LOGO_DETECTION&quot;, numResults=4)
getGoogleVisionResponse(&quot;https://media-cdn.tripadvisor.com/media/photo-s/02/6b/c2/19/filename-48842881-jpg.jpg&quot;, feature=&quot;LANDMARK_DETECTION&quot;)


### FEATURES
# with the parameter 'feature' you can define which type of analysis you want. Results differ by feature-type.
# The default is set to 'LABEL_DETECTION' but you can choose one out of: 
FACE_DETECTION, LANDMARK_DETECTION, LOGO_DETECTION, LABEL_DETECTION, TEXT_DETECTION
</code></pre>
</div>
<p>Previously, I created a R/shiny <a target="_blank" href="https://flovv.shinyapps.io/gVision-shiny/">demo</a> and blog posts <a target="_blank" href="http://flovv.github.io/Image-Recognition-Google-Vision/">1</a><br>
and <a target="_blank" href="http://flovv.github.io/Brand-Logos/">2</a> detailing some of the output.</p>
<p>To give you a final example; this is return of the LANDMARK_DETECTION-call.<br>
<img alt="Notre Dame" src="https://media-cdn.tripadvisor.com/media/photo-s/02/6b/c2/19/filename-48842881-jpg.jpg"></p>
<table>
<thead>
<tr>
<th>description</th>
<th>score</th>
</tr>
</thead>
<tbody>
<tr>
<td>Notre Dame de Paris</td>
<td>0.9245162</td>
</tr>
<tr>
<td>Paris</td>
<td>0.8143099</td>
</tr>
</tbody>
</table>
<p><div><div><div><div data-width="55" data-show-faces="false" data-send="true" data-layout="box_count" data-height="62" data-href="http://www.r-bloggers.com/rooglevision-released-a-package-for-image-recognition/"></div></div><div><a data-url="http://www.r-bloggers.com/rooglevision-released-a-package-for-image-recognition/" data-counturl="http://www.r-bloggers.com/rooglevision-released-a-package-for-image-recognition/" data-count="vertical" data-text="RoogleVision released – a Package for Image Recognition" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://flovv.github.io/www.nypon.de/RoogleVision-released/"> Florian Teschner</a></strong>.</div>
<hr>
<a rel="nofollow" href="http://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="http://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a title="The R Project for Statistical Computing" rel="nofollow" href="http://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="http://www.r-bloggers.com/?s=data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="http://www.r-bloggers.com/?s=Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="http://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="http://www.r-bloggers.com/?s=map">maps</a>, <a title="Animation in R" rel="nofollow" href="http://www.r-bloggers.com/?s=animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="http://www.r-bloggers.com/?s=RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="http://www.r-bloggers.com/?s=sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="http://www.r-bloggers.com/?s=LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="http://www.r-bloggers.com/?s=SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="http://www.r-bloggers.com/?s=eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="http://www.r-bloggers.com/?s=git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="http://www.r-bloggers.com/?s=hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="http://www.r-bloggers.com/?s=Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="http://www.r-bloggers.com/?s=regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="http://www.r-bloggers.com/?s=PCA">PCA</a>, <a title="Time series" rel="nofollow" href="http://www.r-bloggers.com/?s=time+series">time series</a>, <a title="finance trading" rel="nofollow" href="http://www.r-bloggers.com/?s=trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/NhU0660UX34"></a></div>