cloudyr / rooglevision Goto Github PK
View Code? Open in Web Editor NEWR Package for Image Recognition using Google Cloud Vision
License: MIT License
R Package for Image Recognition using Google Cloud Vision
License: MIT License
library("RoogleVision")
options("googleAuthR.client_id" = "XXXXXX")
options("googleAuthR.client_secret" = "XXXXX")
options("googleAuthR.scopes.selected" = c("https://www.googleapis.com/auth/cloud-platform"))
googleAuthR::gar_auth()
And I'm getting the error:
Authentication options didn't match existing session token and not interactive session so unable to manually reauthenticate
Any idea how can I overcome this?
I have an image that has only one number in it.
https://cloud.google.com/vision easily detects the text in the image and returns it. But RoogleVision (getGoogleVisionResponse) returns this message: No features detected.
Here's the image: https://imgur.com/CKbUdTN
Hey,
First of all, thank you for the package.
I try to classify landmarks with the google vision API on Flickr-data. I do not want to download the data but try to classify the files by passing URLs. But I get Request Status Code: 502. Some error with a JSON content? It says no JSON content found. I cannot find any help on this? Any idea how the error is produced?
On windows x86-64, R version 3.4.1 (2017-04-21)
In Detail i do:
require(RoogleVision)
require(googleAuthR)
require(magrittr)
options("googleAuthR.client_id" = ....)
options("googleAuthR.client_secret" = ....)
options("googleAuthR.scopes.selected" = c("https://www.googleapis.com/auth/cloud-platform"))
googleAuthR::gar_auth()
Then i load a datatable with URL's of Flickr images which I want to classifiy. For this, i first read the datatable with Flickr <- data.table::fread (Flickr_data.csv) and then go
getGoogleVisionResponse(imagePath = Flickr$URL[i], feature="LANDMARK_DETECTION")
with Flickr$URL[i] being characters
Request Status Code: 502
Error : lexical error: invalid char in json text.
smallerthansign!DOCTYPE html> <html lang=engreaterthansign
(right here) ------^
Trying again: 1 of 5
Trying again: 2 of 5
Trying again: 3 of 5
Trying again: 4 of 5
Trying again: 5 of 5
Warning message:
No JSON content found in request
opened an issue here already but got referred to this site :) <- MarkEdmondson1234/googleAuthR#80 (comment)
Thank you!
Hi Flovv, nice work with the package!
Someone left this issue on googleAuthR: MarkEdmondson1234/googleAuthR#32 that perhaps you may be better placed to solve.
Let me know if there is anything I can do to help googleAuthR's end. I suspect how it handles non-JSON content may have been an issue, but perhaps solved in the latest update (0.3.0) with the new option(googleAuthR.rawResponse)
flag.
Hi @cloudyr,
I hope you are doing well.
I could see your code has a function to fetch the image responses based on various commands such as Face detection, label detection, text detection etc.
Is there any chance that we can call one line of the code and it can fetch all the information in one request?
I hope you understood the problem.
Try to detect faces in a picture which has more than 5 person, increase numResults to number greater than 5, still return 5 faces.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.