public class GoogleCloud extends Service
authProvider, defaultLocalization, dnaPool, fs, id, inbox, interfaceSet, isVirtual, lastError, lastErrorTs, lastStatus, lastStatusTs, locale, localization, methodSet, outbox, ps, ready, serviceClass, serviceType, serviceVersion, simpleName, statusBroadcastLimitMs, thisThread
Constructor and Description |
---|
GoogleCloud(String n,
String id) |
Modifier and Type | Method and Description |
---|---|
static void |
argsHelper(String[] args,
PrintStream out)
Helper that handles the input passed to the program.
|
static void |
detectCropHints(String filePath,
PrintStream out)
Suggests a region to crop to for a local file.
|
static void |
detectCropHintsGcs(String gcsPath,
PrintStream out)
Suggests a region to crop to for a remote file on Google Cloud Storage.
|
static void |
detectDocumentText(String filePath,
PrintStream out)
Performs document text detection on a local image file.
|
static void |
detectDocumentTextGcs(String gcsPath,
PrintStream out)
Performs document text detection on a local image file on Google Cloud
Storage.
|
static void |
detectFaces(String filePath,
PrintStream out)
Detects faces in the specified local image.
|
static void |
detectFacesGcs(String gcsPath,
PrintStream out)
Detects faces in the specified remote image on Google Cloud Storage.
|
static void |
detectLabels(String filePath,
PrintStream out)
Detects labels in the specified local image.
|
static void |
detectLabelsGcs(String gcsPath,
PrintStream out)
Detects labels in the specified remote image on Google Cloud Storage.
|
static void |
detectLandmarks(String filePath,
PrintStream out)
Detects landmarks in the specified local image.
|
static void |
detectLandmarksGcs(String gcsPath,
PrintStream out)
Detects landmarks in the specified remote image on Google Cloud Storage.
|
static void |
detectLandmarksUrl(String uri,
PrintStream out)
Detects landmarks in the specified URI.
|
static void |
detectLogos(String filePath,
PrintStream out)
Detects logos in the specified local image.
|
static void |
detectLogosGcs(String gcsPath,
PrintStream out)
Detects logos in the specified remote image on Google Cloud Storage.
|
static void |
detectProperties(String filePath,
PrintStream out)
Detects image properties such as color frequency from the specified local
image.
|
static void |
detectPropertiesGcs(String gcsPath,
PrintStream out)
Detects image properties such as color frequency from the specified remote
image on Google Cloud Storage.
|
static void |
detectSafeSearch(String filePath,
PrintStream out)
Detects whether the specified image has features you would want to
moderate.
|
static void |
detectSafeSearchGcs(String gcsPath,
PrintStream out)
Detects whether the specified remote image on Google Cloud Storage has
features you would want to moderate.
|
static void |
detectText(String filePath,
PrintStream out)
Detects text in the specified image.
|
static void |
detectTextGcs(String gcsPath,
PrintStream out)
Detects text in the specified remote image on Google Cloud Storage.
|
static void |
detectWebDetections(String filePath,
PrintStream out)
Finds references to the specified image on the web.
|
static void |
detectWebDetectionsGcs(String gcsPath,
PrintStream out)
Detects whether the specified remote image on Google Cloud Storage has
features you would want to moderate.
|
static void |
main(String[] args)
Detects entities,sentiment and syntax in a document using the Vision API.
|
addListener, addListener, addListener, addListener, addTask, addTask, addTask, addTaskOneShot, attach, attach, broadcast, broadcast, broadcastState, broadcastStatus, buildDna, buildDna, buildDnaKeys, buildDnaNames, clearLastError, close, containsTask, copyResource, copyShallowFrom, createPeer, createPeer, createRootReserved, detach, detach, detach, echoHeartbeat, error, error, error, export, export, exportAll, exportAll, getAttached, getCountry, getDataDir, getDataDir, getDataInstanceDir, getDeclaredMethodNames, getDeclaredMethods, getDescription, getDisplayLanguage, getDna, getDnaString, getFile, getFullName, getHomeDir, getHostName, getId, getInbox, getInstanceId, getIntanceName, getInterfaceSet, getLanguage, getLastError, getLocale, getLocaleTag, getMessageSet, getMetaData, getMethodMap, getMethodNames, getMethods, getMethodToolTip, getMsg, getName, getNotifyList, getNotifyListKeySet, getOutbox, getPeer, getPeerKey, getPeerName, getResource, getResource, getResource, getResourceAsString, getResourceAsString, getResourceAsString, getResourceDir, getResourceDir, getResourceDir, getResourceDir, getResourceDirList, getResourceDirList, getResourceImage, getResourceRoot, getRootDataDir, getServiceIcon, getServiceIcon, getServiceIcon, getServiceScript, getServiceScript, getServiceScript, getSimpleName, getSwagger, getTasks, getThisThread, getType, hasError, hasInternet, hasPeers, hasSubscribed, help, in, info, info, invoke, invoke, invoke, invokeOn, invokeOn, invokePeer, invokePeer, isAttached, isAttached, isDev, isHeadless, isLocal, isReady, isRunning, isRuntime, isVirtual, load, load, loadAndStart, loadFromJson, loadFromJson, loadLocalizations, localize, localize, logTimeEnable, mergeDna, mergeDna, mergePeerDna, movePeerDna, out, out, preProcessHook, preRoutingHook, preShutdown, publishError, publishQueueStats, publishState, publishStats, publishStatus, purgeTask, purgeTasks, releasePeer, releasePeers, releaseService, removeAllListeners, removeListener, removeListener, requiresSecurity, reserve, reserve, reserveRoot, reserveRoot, reserveRootAs, run, save, save, save, send, send, send, sendBlocking, sendBlocking, sendBlocking, sendBlocking, sendPeer, sendToPeer, sendToPeer, setId, setInstanceId, setLocale, setName, setOrder, setPeer, setReady, setSecurityProvider, setState, setThisThread, setVirtual, sleep, sleep, stackToString, startPeer, startPeer, startPeers, startService, stopService, subscribe, subscribe, subscribe, subscribeTo, subscribeToRuntime, toString, unsubscribe, unsubscribe, unsubscribe, unsubscribeTo, unsubscribeToRuntime, updateStats, warn, warn
public static void main(String[] args) throws Exception, IOException
args
- input argsException
- on errors while closing the client.IOException
- errors.public static void argsHelper(String[] args, PrintStream out) throws Exception, IOException
Exception
- on errors while closing the client.IOException
- on Input/Output errors.public static void detectFaces(String filePath, PrintStream out) throws Exception, IOException
filePath
- The path to the file to perform face detection on.out
- A PrintStream
to write detected features to.Exception
- on errors while closing the client.IOException
- on Input/Output errors.public static void detectFacesGcs(String gcsPath, PrintStream out) throws Exception, IOException
gcsPath
- The path to the remote file on Google Cloud Storage to perform
face detection on.out
- A PrintStream
to write detected features to.Exception
- on errors while closing the client.IOException
- on Input/Output errors.public static void detectLabels(String filePath, PrintStream out) throws Exception, IOException
filePath
- The path to the file to perform label detection on.out
- A PrintStream
to write detected labels to.Exception
- on errors while closing the client.IOException
- on Input/Output errors.public static void detectLabelsGcs(String gcsPath, PrintStream out) throws Exception, IOException
gcsPath
- The path to the remote file on Google Cloud Storage to perform
label detection on.out
- A PrintStream
to write detected features to.Exception
- on errors while closing the client.IOException
- on Input/Output errors.public static void detectLandmarks(String filePath, PrintStream out) throws Exception, IOException
filePath
- The path to the file to perform landmark detection on.out
- A PrintStream
to write detected landmarks to.Exception
- on errors while closing the client.IOException
- on Input/Output errors.public static void detectLandmarksUrl(String uri, PrintStream out) throws Exception, IOException
uri
- The path to the file to perform landmark detection on.out
- A PrintStream
to write detected landmarks to.Exception
- on errors while closing the client.IOException
- on Input/Output errors.public static void detectLandmarksGcs(String gcsPath, PrintStream out) throws Exception, IOException
gcsPath
- The path to the remote file on Google Cloud Storage to perform
landmark detection on.out
- A PrintStream
to write detected landmarks to.Exception
- on errors while closing the client.IOException
- on Input/Output errors.public static void detectLogos(String filePath, PrintStream out) throws Exception, IOException
filePath
- The path to the local file to perform logo detection on.out
- A PrintStream
to write detected logos to.Exception
- on errors while closing the client.IOException
- on Input/Output errors.public static void detectLogosGcs(String gcsPath, PrintStream out) throws Exception, IOException
gcsPath
- The path to the remote file on Google Cloud Storage to perform
logo detection on.out
- A PrintStream
to write detected logos to.Exception
- on errors while closing the client.IOException
- on Input/Output errors.public static void detectText(String filePath, PrintStream out) throws Exception, IOException
filePath
- The path to the file to detect text in.out
- A PrintStream
to write the detected text to.Exception
- on errors while closing the client.IOException
- on Input/Output errors.public static void detectTextGcs(String gcsPath, PrintStream out) throws Exception, IOException
gcsPath
- The path to the remote file on Google Cloud Storage to detect text
in.out
- A PrintStream
to write the detected text to.Exception
- on errors while closing the client.IOException
- on Input/Output errors.public static void detectProperties(String filePath, PrintStream out) throws Exception, IOException
filePath
- The path to the file to detect properties.out
- A PrintStream
to writeException
- on errors while closing the client.IOException
- on Input/Output errors.public static void detectPropertiesGcs(String gcsPath, PrintStream out) throws Exception, IOException
gcsPath
- The path to the remote file on Google Cloud Storage to detect
properties on.out
- A PrintStream
to writeException
- on errors while closing the client.IOException
- on Input/Output errors.public static void detectSafeSearch(String filePath, PrintStream out) throws Exception, IOException
filePath
- The path to the local file used for safe search detection.out
- A PrintStream
to write the results to.Exception
- on errors while closing the client.IOException
- on Input/Output errors.public static void detectSafeSearchGcs(String gcsPath, PrintStream out) throws Exception, IOException
gcsPath
- The path to the remote file on Google Cloud Storage to detect
safe-search on.out
- A PrintStream
to write the results to.Exception
- on errors while closing the client.IOException
- on Input/Output errors.public static void detectWebDetections(String filePath, PrintStream out) throws Exception, IOException
filePath
- The path to the local file used for web annotation detection.out
- A PrintStream
to write the results to.Exception
- on errors while closing the client.IOException
- on Input/Output errors.public static void detectWebDetectionsGcs(String gcsPath, PrintStream out) throws Exception, IOException
gcsPath
- The path to the remote file on Google Cloud Storage to detect
safe-search on.out
- A PrintStream
to write the results to.Exception
- on errors while closing the client.IOException
- on Input/Output errors.public static void detectCropHints(String filePath, PrintStream out) throws Exception, IOException
filePath
- The path to the local file used for web annotation detection.out
- A PrintStream
to write the results to.Exception
- on errors while closing the client.IOException
- on Input/Output errors.public static void detectCropHintsGcs(String gcsPath, PrintStream out) throws Exception, IOException
gcsPath
- The path to the remote file on Google Cloud Storage to detect
safe-search on.out
- A PrintStream
to write the results to.Exception
- on errors while closing the client.IOException
- on Input/Output errors.public static void detectDocumentText(String filePath, PrintStream out) throws Exception, IOException
filePath
- The path to the local file to detect document text on.out
- A PrintStream
to write the results to.Exception
- on errors while closing the client.IOException
- on Input/Output errors.public static void detectDocumentTextGcs(String gcsPath, PrintStream out) throws Exception, IOException
gcsPath
- The path to the remote file on Google Cloud Storage to detect
document text on.out
- A PrintStream
to write the results to.Exception
- on errors while closing the client.IOException
- on Input/Output errors.Copyright © 2020 myrobotlab. All rights reserved.