Face detection tutorial | Cloud Vision API
文章推薦指數: 80 %
Objectives. In this sample, you'll use the Google Vision API to detect faces in an image. To prove to yourself that the faces were detected correctly, ...
WhyGoogle
close
DiscoverwhyleadingbusinesseschooseGoogleCloud
Whetheryourbusinessisearlyinitsjourneyorwellonitswaytodigitaltransformation,GoogleCloudcanhelpyousolveyourtoughestchallenges.
Learnmore
Keybenefits
Overview
Topreasonsbusinesseschooseus.
Multicloud
Runyourappswhereveryouneedthem.
Trustandsecurity
Keepyourdatasecureandcompliant.
Globalinfrastructure
BuildonthesameinfrastructureasGoogle.
Datacloud
Unifydataacrossyourorganization.
Opencloud
Scalewithopen,flexibletechnology.
Sustainability
Runonthecleanestcloudintheindustry.
Productivityandcollaboration
ConnectyourteamswithAI-poweredapps.
Resources
Events
BrowseupcomingGoogleCloudevents.
Blog
Readourlatestproductnewsandstories.
Customerstories
Explorecasestudiesandvideos.
Analystreports
Readwhatindustryanalystssayaboutus.
Solutions
close
IndustrySolutions
Reducecost,increaseoperationalagility,andcapturenewmarketopportunities.
Retail
Analyticsandcollaborationtoolsfortheretailvaluechain.
ConsumerPackagedGoods
SolutionsforCPGdigitaltransformationandbrandgrowth.
FinancialServices
Computing,datamanagement,andanalyticstoolsforfinancialservices.
HealthcareandLifeSciences
Advanceresearchatscaleandempowerhealthcareinnovation.
MediaandEntertainment
Solutionsforcontentproductionanddistributionoperations.
Telecommunications
Hybridandmulti-cloudservicestodeployandmonetize5G.
Gaming
AI-drivensolutionstobuildandscalegamesfaster.
Manufacturing
MigrationandAItoolstooptimizethemanufacturingvaluechain.
SupplyChainandLogistics
Digitalsupplychainsolutionsbuiltinthecloud.
Government
Datastorage,AI,andanalyticssolutionsforgovernmentagencies.
Education
Teachingtoolstoprovidemoreengaginglearningexperiences.
Notseeingwhatyou'relookingfor?
Seeallindustrysolutions
Notseeingwhatyou'relookingfor?
Seeallsolutions
ApplicationModernization
Developandrunapplicationsanywhere,usingcloud-nativetechnologieslikecontainers,serverless,andservicemesh.
HybridandMulti-cloudApplicationPlatform
Platformformodernizinglegacyappsandbuildingnewapps.
APIManagement
AccelerateapplicationdesignanddevelopmentwithanAPI-firstapproach.
ServerlessSolutions
Fullymanagedenvironmentfordeveloping,deployingandscalingapps.
DevOps
ProcessesandresourcesforimplementingDevOpsinyourorg.
ContinuousDelivery(CD)
End-to-endautomationfromsourcetoproduction.
ContinuousIntegration(CI)
Fastfeedbackoncodechangesatscale.
MainframeModernization
Automatedtoolsandprescriptiveguidanceformovingtothecloud.
CAMP
ProgramthatusesDORAtoimproveyoursoftwaredeliverycapabilities.
Hosting
Servicesandinfrastructureforbuildingwebappsandwebsites.
SiteReliabilityEngineering(SRE)
ToolsandresourcesforadoptingSREinyourorg.
ArtificialIntelligence
AddintelligenceandefficiencytoyourbusinesswithAIandmachinelearning.
BuildanduseAI
Productstobuildanduseartificialintelligence.
ContactCenterAI
AImodelforspeakingwithcustomersandassistinghumanagents.
AgentAssist
AI-poweredconversationswithhumanagents.
CloudTalentSolution
AIwithjobsearchandtalentacquisitioncapabilities.
DocumentAI
MachinelearningandAItounlockinsightsfromyourdocuments.
LendingDocAI
Mortgagedocumentdatacaptureatscalewithmachinelearning.
ProcurementDocAI
Procurementdocumentdatacaptureatscalewithmachinelearning.
Intelligentproducts
CreateengagingproductownershipexperienceswithAI.
DataScience
PutyourdatatoworkwithDataScienceonGoogleCloud.
ContractDocAI
SpecializedAIforbetteringcontractunderstanding.
ContactCenterAIInsights
AI-poweredunderstandingtobettercustomerexperience.
APIsandApplications
Speedupthepaceofinnovationwithoutcoding,usingAPIs,apps,andautomation.
NewBusinessChannelsUsingAPIs
Attractandempoweranecosystemofdevelopersandpartners.
UnlockingLegacyApplicationsUsingAPIs
Cloudservicesforextendingandmodernizinglegacyapps.
OpenBankingAPIx
SimplifyandacceleratesecuredeliveryofopenbankingcompliantAPIs.
Databases
Migrateandmanageenterprisedatawithsecurity,reliability,highavailability,andfullymanageddataservices.
DatabaseMigration
Guidesandtoolstosimplifyyourdatabasemigrationlifecycle.
DatabaseModernization
Upgradestomodernizeyouroperationaldatabaseinfrastructure.
GoogleCloudDatabases
Databaseservicestomigrate,manage,andmodernizedata.
MigrateOracleworkloadstoGoogleCloud
Rehost,replatform,rewriteyourOracleworkloads.
OpenSourceDatabases
Fullymanagedopensourcedatabaseswithenterprise-gradesupport.
SQLServeronGoogleCloud
OptionsforrunningSQLServervirtualmachinesonGoogleCloud.
DataCloud
Unifydataacrossyourorganizationwithanopenandsimplifiedapproachtodata-driventransformationthatisunmatchedforspeed,scale,andsecuritywithAIbuilt-in.
DatabasesSolutions
Migrateandmanageenterprisedatawithsecurity,reliability,highavailability,andfullymanageddataservices.
SmartAnalyticsSolutions
Generateinstantinsightsfromdataatanyscalewithaserverless,fullymanagedanalyticsplatformthatsignificantlysimplifiesanalytics.
AISolutions
AddintelligenceandefficiencytoyourbusinesswithAIandmachinelearning.
DataCloudforISVs
Innovate,optimizeandamplifyyourSaaSapplicationsusingGoogle'sdataandmachinelearningsolutionssuchasBigQuery,Looker,SpannerandVertexAI.
DataCloudAlliance
Aninitiativetoensurethatglobalbusinesseshavemoreseamlessaccessandinsightsintothedatarequiredfordigitaltransformation.
DigitalTransformation
Acceleratebusinessrecoveryandensureabetterfuturewithsolutionsthatenablehybridandmulti-cloud,generateintelligentinsights,andkeepyourworkersconnected.
DigitalInnovation
Reimagineyouroperationsandunlocknewopportunities.
OperationalEfficiency
Prioritizeinvestmentsandoptimizecosts.
COVID-19Solutions
Getworkdonemoresafelyandsecurely.
COVID-19SolutionsfortheHealthcareIndustry
HowGoogleishelpinghealthcaremeetextraordinarychallenges.
InfrastructureModernization
MigratequicklywithsolutionsforSAP,VMware,Windows,Oracle,andotherworkloads.
ApplicationMigration
Discoveryandanalysistoolsformovingtothecloud.
SAPonGoogleCloud
CertificationsforrunningSAPapplicationsandSAPHANA.
HighPerformanceComputing
Compute,storage,andnetworkingoptionstosupportanyworkload.
WindowsonGoogleCloud
ToolsandpartnersforrunningWindowsworkloads.
DataCenterMigration
MigrationsolutionsforVMs,apps,databases,andmore.
ActiveAssist
Automaticcloudresourceoptimizationandincreasedsecurity.
VirtualDesktops
Remoteworksolutionsfordesktopsandapplications(VDI&DaaS).
RapidAssessment&MigrationProgram(RAMP)
End-to-endmigrationprogramtosimplifyyourpathtothecloud.
BackupandDisasterRecovery
Ensureyourbusinesscontinuityneedsaremet.
ProductivityandCollaboration
Changethewayteamsworkwithsolutionsdesignedforhumansandbuiltforimpact.
GoogleWorkspace
Collaborationandproductivitytoolsforenterprises.
GoogleWorkspaceEssentials
Securevideomeetingsandmoderncollaborationforteams.
CloudIdentity
UnifiedplatformforITadminstomanageuserdevicesandapps.
ChromeEnterprise
ChromeOS,ChromeBrowser,andChromedevicesbuiltforbusiness.
CloudSearch
Enterprisesearchforemployeestoquicklyfindcompanyinformation.
Security
Detect,investigate,andrespondtoonlinethreatstohelpprotectyourbusiness.
SecurityAnalyticsandOperations
Solutionforanalyzingpetabytesofsecuritytelemetry.
WebAppandAPIProtection
ThreatandfraudprotectionforyourwebapplicationsandAPIs.
SecurityandResilienceFramework
Solutionsforeachphaseofthesecurityandresiliencelifecycle.
Riskandcomplianceascode(RCaC)
Solutiontomodernizeyourgovernance,risk,andcompliancefunctionwithautomation.
SmartAnalytics
Generateinstantinsightsfromdataatanyscalewithaserverless,fullymanagedanalyticsplatformthatsignificantlysimplifiesanalytics.
DataWarehouseModernization
Datawarehousetojumpstartyourmigrationandunlockinsights.
DataLakeModernization
Servicesforbuildingandmodernizingyourdatalake.
SparkonGoogleCloud
RunandwriteSparkwhereyouneedit,serverlessandintegrated.
StreamAnalytics
Insightsfromingesting,processing,andanalyzingeventstreams.
BusinessIntelligence
SolutionsformodernizingyourBIstackandcreatingrichdataexperiences.
DataScience
PutyourdatatoworkwithDataScienceonGoogleCloud.
MarketingAnalytics
Solutionsforcollecting,analyzing,andactivatingcustomerdata.
GeospatialAnalyticsandAI
Solutionsforbuildingamoreprosperousandsustainablebusiness.
Datasets
DatafromGoogle,public,andcommercialproviderstoenrichyouranalyticsandAIinitiatives.
StartupsandSMB
AcceleratestartupandSMBgrowthwithtailoredsolutionsandprograms.
StartupSolutions
GrowyourstartupandsolveyourtoughestchallengesusingGoogle’sproventechnology.
StartupProgram
Getfinancial,business,andtechnicalsupporttotakeyourstartuptothenextlevel.
SmallandMediumBusiness
Exploresolutionsforwebhosting,appdevelopment,AI,andanalytics.
SoftwareasaService
BuildbetterSaaSproducts,scaleefficiently,andgrowyourbusiness.
Products
close
FeaturedProducts
ComputeEngine
VirtualmachinesrunninginGoogle’sdatacenter.
CloudStorage
Objectstoragethat’ssecure,durable,andscalable.
CloudSDK
Command-linetoolsandlibrariesforGoogleCloud.
CloudSQL
RelationaldatabaseserviceforMySQL,PostgreSQLandSQLServer.
GoogleKubernetesEngine
Managedenvironmentforrunningcontainerizedapps.
BigQuery
Datawarehouseforbusinessagilityandinsights.
CloudCDN
Contentdeliverynetworkfordeliveringwebandvideo.
Dataflow
Streaminganalyticsforstreamandbatchprocessing.
Operations
Monitoring,logging,andapplicationperformancesuite.
CloudRun
Fullymanagedenvironmentforrunningcontainerizedapps.
Anthos
Platformformodernizingexistingappsandbuildingnewones.
Notseeingwhatyou'relookingfor?
Seeallproducts(100+)
AIandMachineLearning
VertexAI
UnifiedMLPlatformfortraining,hosting,andmanagingMLmodels.
Speech-to-Text
Speechrecognitionandtranscriptionsupporting125languages.
VisionAI
Customandpre-trainedmodelstodetectemotion,text,more.
Text-to-Speech
Speechsynthesisin220+voicesand40+languages.
CloudTranslation
Languagedetection,translation,andglossarysupport.
CloudNaturalLanguage
Sentimentanalysisandclassificationofunstructuredtext.
AutoML
Custommachinelearningmodeltraininganddevelopment.
VideoAI
Videoclassificationandrecognitionusingmachinelearning.
AIInfrastructure
Optionsforeverybusinesstotraindeeplearningandmachinelearningmodelscost-effectively.
Dialogflow
Conversationapplicationsandsystemsdevelopmentsuiteforvirtualagents.
AutoMLTables
ServicefortrainingMLmodelswithstructureddata.
Notseeingwhatyou'relookingfor?
SeeallAIandmachinelearningproducts
APIManagement
ApigeeAPIManagement
ManagethefulllifecycleofAPIsanywherewithvisibilityandcontrol.
ApigeeIntegration
API-firstintegrationtoconnectexistingdataandapplications.
CloudHealthcareAPI
SolutiontobridgeexistingcaresystemsandappsonGoogleCloud.
AppSheet
No-codedevelopmentplatformtobuildandextendapplications.
APIGateway
Develop,deploy,secure,andmanageAPIswithafullymanagedgateway.
Compute
ComputeEngine
VirtualmachinesrunninginGoogle’sdatacenter.
AppEngine
Serverlessapplicationplatformforappsandbackends.
CloudGPUs
GPUsforML,scientificcomputing,and3Dvisualization.
MigrateforComputeEngine
ServerandvirtualmachinemigrationtoComputeEngine.
SpotVMs
Computeinstancesforbatchjobsandfault-tolerantworkloads.
ShieldedVMs
ReinforcedvirtualmachinesonGoogleCloud.
Sole-TenantNodes
Dedicatedhardwareforcompliance,licensing,andmanagement.
BareMetal
InfrastructuretorunspecializedworkloadsonGoogleCloud.
Recommender
UsagerecommendationsforGoogleCloudproductsandservices.
VMwareEngine
Fullymanaged,nativeVMwareCloudFoundationsoftwarestack.
CloudRun
Fullymanagedenvironmentforrunningcontainerizedapps.
Notseeingwhatyou'relookingfor?
Seeallcomputeproducts
Containers
GoogleKubernetesEngine
Managedenvironmentforrunningcontainerizedapps.
ContainerRegistry
Registryforstoring,managing,andsecuringDockerimages.
ContainerSecurity
Containerenvironmentsecurityforeachstageofthelifecycle.
CloudBuild
SolutionforrunningbuildstepsinaDockercontainer.
DeepLearningContainers
Containerswithdatascienceframeworks,libraries,andtools.
KubernetesApplications
Containerizedappswithprebuiltdeploymentandunifiedbilling.
ArtifactRegistry
Packagemanagerforbuildartifactsanddependencies.
Knative
ComponentstocreateKubernetes-nativecloud-basedsoftware.
CloudRun
Fullymanagedenvironmentforrunningcontainerizedapps.
CloudCode
IDEsupporttowrite,run,anddebugKubernetesapplications.
DataAnalytics
BigQuery
Datawarehouseforbusinessagilityandinsights.
Looker
PlatformforBI,dataapplications,andembeddedanalytics.
Dataflow
Streaminganalyticsforstreamandbatchprocessing.
Pub/Sub
Messagingserviceforeventingestionanddelivery.
Dataproc
ServiceforrunningApacheSparkandApacheHadoopclusters.
CloudDataFusion
Dataintegrationforbuildingandmanagingdatapipelines.
CloudComposer
WorkfloworchestrationservicebuiltonApacheAirflow.
Dataprep
Servicetopreparedataforanalysisandmachinelearning.
Dataplex
Intelligentdatafabricforunifyingdatamanagementacrosssilos.
DataCatalog
Metadataservicefordiscovering,understanding,andmanagingdata.
AnalyticsHub
Serviceforsecurelyandefficientlyexchangingdataanalyticsassets.
Notseeingwhatyou'relookingfor?
Seealldataanalyticsproducts
Databases
CloudBigtable
Cloud-nativewide-columndatabaseforlargescale,low-latencyworkloads.
Firestore
Cloud-nativedocumentdatabaseforbuildingrichmobile,web,andIoTapps.
Memorystore
In-memorydatabaseformanagedRedisandMemcached.
CloudSpanner
Cloud-nativerelationaldatabasewithunlimitedscaleand99.999%availability.
CloudSQL
FullymanageddatabaseforMySQL,PostgreSQL,andSQLServer.
DatabaseMigrationService
Serverless,minimaldowntimemigrationstoCloudSQL.
BareMetalSolutionforOracle
InfrastructuretorunspecializedOracleworkloadsonGoogleCloud.
FirebaseRealtimeDatabase
NoSQLdatabaseforstoringandsyncingdatainrealtime.
Datastream
Serverlesschangedatacaptureandreplicationservice.
DeveloperTools
ArtifactRegistry
Universalpackagemanagerforbuildartifactsanddependencies.
CloudBuild
Continuousintegrationandcontinuousdeliveryplatform.
CloudCode
IDEsupporttowrite,run,anddebugKubernetesapplications.
CloudDeploymentManager
ServiceforcreatingandmanagingGoogleCloudresources.
gcloudCLI
CommandlinetoolsandlibrariesforGoogleCloud.
CloudScheduler
Cronjobschedulerfortaskautomationandmanagement.
CloudSourceRepositories
PrivateGitrepositorytostore,manage,andtrackcode.
CloudTasks
Taskmanagementserviceforasynchronoustaskexecution.
GoogleCloudDeploy
FullymanagedcontinuousdeliverytoGoogleKubernetesEngine.
Tekton
Kubernetes-nativeresourcesfordeclaringCI/CDpipelines.
ToolsforPowerShell
FullcloudcontrolfromWindowsPowerShell.
Notseeingwhatyou'relookingfor?
Seealldevelopertools
HealthcareandLifeSciences
ApigeeHealthcareAPIx
FHIRAPI-baseddigitalserviceproduction.
CloudHealthcareAPI
SolutionforbridgingexistingcaresystemsandappsonGoogleCloud.
CloudLifeSciences
Toolsformanaging,processing,andtransformingbiomedicaldata.
HealthcareNaturalLanguageAI
Real-timeinsightsfromunstructuredmedicaltext.
HybridandMulticloud
Anthos
Platformformodernizingexistingappsandbuildingnewones.
Looker
PlatformforBI,dataapplications,andembeddedanalytics.
CloudRunforAnthos
IntegrationthatprovidesaserverlessdevelopmentplatformonGKE.
GoogleCloudMarketplaceforAnthos
Containerizedappswithprebuiltdeploymentandunifiedbilling.
MigrateforAnthos
TooltomoveworkloadsandexistingapplicationstoGKE.
Operations
Monitoring,logging,andapplicationperformancesuite.
CloudBuild
ServiceforexecutingbuildsonGoogleCloudinfrastructure.
TrafficDirector
Trafficcontrolpaneandmanagementforopenservicemesh.
ApigeeAPIManagement
APImanagement,development,andsecurityplatform.
GoogleDistributedCloud
Fullymanagedsolutionsfortheedgeanddatacenters.
InternetofThings
CloudIoTCore
IoTdevicemanagement,integration,andconnectionservice.
EdgeTPU
ASICdesignedtorunMLinferenceandAIattheedge.
ManagementTools
AnthosConfigManagement
Automatepolicyandsecurityforyourdeployments.
CarbonFootprint
DashboardtoviewandexportGoogleCloudcarbonemissionsreports.
CloudAPIs
ProgrammaticinterfacesforGoogleCloudservices.
Cloudconsole
Web-basedinterfaceformanagingandmonitoringcloudapps.
CloudMobileApp
ApptomanageGoogleCloudservicesfromyourmobiledevice.
CloudShell
Interactiveshellenvironmentwithabuilt-incommandline.
ConfigConnector
Kubernetesadd-onformanagingGoogleCloudresources.
CostManagement
Toolsformonitoring,controlling,andoptimizingyourcosts.
IntelligentManagement
Toolsforeasilymanagingperformance,security,andcost.
PrivateCatalog
Servicecatalogforadminsmanaginginternalenterprisesolutions.
TerraformonGoogleCloud
OpensourcetooltoprovisionGoogleCloudresourceswithdeclarativeconfigurationfiles.
MediaandGaming
GameServers
GameservermanagementservicerunningonGoogleKubernetesEngine.
OpenCue
Opensourcerendermanagerforvisualeffectsandanimation.
TranscoderAPI
Convertvideofilesandpackagethemforoptimizeddelivery.
Migration
ApplicationMigration
Appmigrationtothecloudforlow-costrefreshcycles.
BigQueryDataTransferService
DataimportserviceforschedulingandmovingdataintoBigQuery.
CloudFoundationToolkit
ReferencetemplatesforDeploymentManagerandTerraform.
DatabaseMigrationService
Serverless,minimaldowntimemigrationstoCloudSQL.
MigrateforAnthos
ComponentsformigratingVMsintosystemcontainersonGKE.
MigrateforComputeEngine
ComponentsformigratingVMsandphysicalserverstoComputeEngine.
RapidAssessment&MigrationProgram(RAMP)
End-to-endmigrationprogramtosimplifyyourpathtothecloud.
TransferAppliance
StorageserverformovinglargevolumesofdatatoGoogleCloud.
StorageTransferService
Datatransfersfromonlineandon-premisessourcestoCloudStorage.
VMwareEngine
MigrateandrunyourVMwareworkloadsnativelyonGoogleCloud.
Networking
CloudArmor
SecuritypoliciesanddefenseagainstwebandDDoSattacks.
CloudCDN
Contentdeliverynetworkforservingwebandvideocontent.
CloudDNS
Domainnamesystemforreliableandlow-latencynamelookups.
CloudLoadBalancing
Servicefordistributingtrafficacrossapplicationsandregions.
CloudNAT
NATserviceforgivingprivateinstancesinternetaccess.
HybridConnectivity
ConnectivityoptionsforVPN,peering,andenterpriseneeds.
NetworkConnectivityCenter
Connectivitymanagementtohelpsimplifyandscalenetworks.
NetworkIntelligenceCenter
Networkmonitoring,verification,andoptimizationplatform.
NetworkServiceTiers
Cloudnetworkoptionsbasedonperformance,availability,andcost.
TrafficDirector
Trafficcontrolpaneandmanagementforopenservicemesh.
Notseeingwhatyou'relookingfor?
Seeallnetworkingproducts
Operations
CloudLogging
GoogleCloudaudit,platform,andapplicationlogsmanagement.
CloudMonitoring
Infrastructureandapplicationhealthwithrichmetrics.
ErrorReporting
Applicationerroridentificationandanalysis.
KubernetesEngineMonitoring
GKEappdevelopmentandtroubleshooting.
CloudTrace
Tracingsystemcollectinglatencydatafromapplications.
CloudProfiler
CPUandheapprofilerforanalyzingapplicationperformance.
CloudDebugger
Real-timeapplicationstateinspectionandin-productiondebugging.
IntelligentOperations
Toolsforeasilyoptimizingperformance,security,andcost.
SecurityandIdentity
CloudIAM
PermissionsmanagementsystemforGoogleCloudresources.
AssuredWorkloads
Complianceandsecuritycontrolsforsensitiveworkloads.
CloudKeyManagement
ManageencryptionkeysonGoogleCloud.
ConfidentialComputing
EncryptdatainusewithConfidentialVMs.
SecurityCommandCenter
PlatformfordefendingagainstthreatstoyourGoogleCloudassets.
CloudDataLossPrevention
Sensitivedatainspection,classification,andredactionplatform.
ManagedServiceforMicrosoftActiveDirectory
HardenedservicerunningMicrosoft®ActiveDirectory(AD).
AccessTransparency
Cloudprovidervisibilitythroughnearreal-timelogs.
TitanSecurityKey
Two-factorauthenticationdeviceforuseraccountprotection.
SecretManager
StoreAPIkeys,passwords,certificates,andothersensitivedata.
BeyondCorpEnterprise
Zerotrustsolutionforsecureapplicationandresourceaccess.
Notseeingwhatyou'relookingfor?
Seeallsecurityandidentityproducts
ServerlessComputing
CloudRun
Fullymanagedenvironmentforrunningcontainerizedapps.
CloudFunctions
Platformforcreatingfunctionsthatrespondtocloudevents.
AppEngine
Serverlessapplicationplatformforappsandbackends.
Workflows
WorkfloworchestrationforserverlessproductsandAPIservices.
Storage
AllStorageProducts
Cloud-basedstorageservicesforyourbusiness.
CloudStorage
Objectstoragethat’ssecure,durable,andscalable.
Filestore
Filestoragethatishighlyscalableandsecure.
PersistentDisk
BlockstorageforvirtualmachineinstancesrunningonGoogleCloud.
CloudStorageforFirebase
Objectstorageforstoringandservinguser-generatedcontent.
LocalSSD
Blockstoragethatislocallyattachedforhigh-performanceneeds.
StorageTransferService
Datatransfersfromonlineandon-premisessourcestoCloudStorage.
GoogleWorkspaceEssentials
Securevideomeetingsandmoderncollaborationforteams.
Pricing
close
Savemoneywithourtransparentapproachtopricing
GoogleCloud'spay-as-you-gopricingoffersautomaticsavingsbasedonmonthlyusageanddiscountedratesforprepaidresources.Contactustodaytogetaquote.
Requestaquote
GoogleCloud
Pricingoverview
Payonlyforwhatyouusewithnolock-in.
Pricelist
Getpricingdetailsforindividualproducts.
Pricingcalculator
Calculateyourcloudsavings.
GoogleCloudFreeProgram
$300infreecreditsand20+freeproducts.
RelatedProducts
GoogleWorkspace
GoogleMapsPlatform
ChromeEnterprise
Apigee
Looker
Firebase
Gettingstarted
close
GetstartedwithGoogleCloud
Startbuildingrightawayonoursecure,intelligentplatform.Newcustomersget$300infreecreditstousetowardGoogleCloudproductsandservices.
Getstartedforfree
Self-serviceResources
Getstarted
GetstartedwithGoogleCloud.
DeveloperCenter
StayintheknowandbecomeanInnovator.
GoogleCloudcertification
Prepareandregisterforcertifications.
Experthelpandtraining
Consulting
Partnerwithourexpertsoncloudprojects.
TechnicalAccountManagement
GetongoingguidancefromGoogle.
Training
Enrollinon-demandorclassroomtraining.
Partnersandthird-partytools
GoogleCloudpartners
Explorebenefitsofworkingwithapartner.
Becomeapartner
JointhePartnerAdvantageprogram.
GoogleCloudMarketplace
Deployready-to-gosolutionsinafewclicks.
Docs
Support
Docs
Support
Language
English
Deutsch
Español–AméricaLatina
Français
Italiano
Português–Brasil
中文–简体
日本語
한국어
Signin
CloudVisionAPI
Overview
Guides
Reference
Samples
Support
Resources
ContactUs
Getstartedforfree
WhyGoogle
More
Solutions
More
Products
More
Pricing
More
Gettingstarted
More
Docs
Overview
Guides
Reference
Samples
Support
Resources
Support
Console
ContactUs
Getstartedforfree
VisionAPI
Productoverview
Featureslist
Tryit!
Quickstarts
AllQuickstarts
SetuptheVisionAPI
Usingclientlibraries
Usingthecommandline
UsingAPIexplorer
Samples
AllVisionAPIcodesamples
Allcodesamplesforallproducts
How-toGuides
AllHow-toguides
Beforeyoubegin
Opticalcharacterrecognition(OCR)
DetecttextinimagesDetecthandwritinginimagesDetecttextinfiles(PDF/TIFF)
Detectcrophints
Detectfaces
Detectimageproperties
Detectlabels
Detectlandmarks
Detectlogos
Detectmultipleobjects
Detectexplicitcontent(SafeSearch)
DetectWebentitiesandpages
Batchfeaturedetection
Images
Batchimageannotationoffline
Files(PDF/TIFF/GIF)
SmallbatchfileannotationonlineDetecttextinfiles(PDF/TIFF)
UsingVisionwithSpringframework
Base64encode
Restrictedaccess
Celebrityrecognition
Tutorials
Alltutorials
Textdetection(OCR)tutorial
Densedocumenttextdetectiontutorial
Translatingandspeakingtextfromaphoto
Labeldetectioninteractivetutorial(console)
Facedetectiontutorial
Webdetectiontutorial
Crophintstutorial
Sampleapplications
Searchcommunitytutorials
Securitylogging
Cloudauditlogs
DiscoverwhyleadingbusinesseschooseGoogleCloud
Learnmore
Keybenefits
Overview
Multicloud
Trustandsecurity
Globalinfrastructure
Datacloud
Opencloud
Sustainability
Productivityandcollaboration
Resources
Events
Blog
Customerstories
Analystreports
IndustrySolutions
Retail
ConsumerPackagedGoods
FinancialServices
HealthcareandLifeSciences
MediaandEntertainment
Telecommunications
Gaming
Manufacturing
SupplyChainandLogistics
Government
Education
Seeallindustrysolutions
Seeallsolutions
ApplicationModernization
HybridandMulti-cloudApplicationPlatform
APIManagement
ServerlessSolutions
DevOps
ContinuousDelivery(CD)
ContinuousIntegration(CI)
MainframeModernization
CAMP
Hosting
SiteReliabilityEngineering(SRE)
ArtificialIntelligence
BuildanduseAI
ContactCenterAI
AgentAssist
CloudTalentSolution
DocumentAI
LendingDocAI
ProcurementDocAI
Intelligentproducts
DataScience
ContractDocAI
ContactCenterAIInsights
APIsandApplications
NewBusinessChannelsUsingAPIs
UnlockingLegacyApplicationsUsingAPIs
OpenBankingAPIx
Databases
DatabaseMigration
DatabaseModernization
GoogleCloudDatabases
MigrateOracleworkloadstoGoogleCloud
OpenSourceDatabases
SQLServeronGoogleCloud
DataCloud
DatabasesSolutions
SmartAnalyticsSolutions
AISolutions
DataCloudforISVs
DataCloudAlliance
DigitalTransformation
DigitalInnovation
OperationalEfficiency
COVID-19Solutions
COVID-19SolutionsfortheHealthcareIndustry
InfrastructureModernization
ApplicationMigration
SAPonGoogleCloud
HighPerformanceComputing
WindowsonGoogleCloud
DataCenterMigration
ActiveAssist
VirtualDesktops
RapidAssessment&MigrationProgram(RAMP)
BackupandDisasterRecovery
ProductivityandCollaboration
GoogleWorkspace
GoogleWorkspaceEssentials
CloudIdentity
ChromeEnterprise
CloudSearch
Security
SecurityAnalyticsandOperations
WebAppandAPIProtection
SecurityandResilienceFramework
Riskandcomplianceascode(RCaC)
SmartAnalytics
DataWarehouseModernization
DataLakeModernization
SparkonGoogleCloud
StreamAnalytics
BusinessIntelligence
DataScience
MarketingAnalytics
GeospatialAnalyticsandAI
Datasets
StartupsandSMB
StartupSolutions
StartupProgram
SmallandMediumBusiness
SoftwareasaService
FeaturedProducts
ComputeEngine
CloudStorage
CloudSDK
CloudSQL
GoogleKubernetesEngine
BigQuery
CloudCDN
Dataflow
Operations
CloudRun
Anthos
Seeallproducts(100+)
AIandMachineLearning
VertexAI
Speech-to-Text
VisionAI
Text-to-Speech
CloudTranslation
CloudNaturalLanguage
AutoML
VideoAI
AIInfrastructure
Dialogflow
AutoMLTables
SeeallAIandmachinelearningproducts
APIManagement
ApigeeAPIManagement
ApigeeIntegration
CloudHealthcareAPI
AppSheet
APIGateway
Compute
ComputeEngine
AppEngine
CloudGPUs
MigrateforComputeEngine
SpotVMs
ShieldedVMs
Sole-TenantNodes
BareMetal
Recommender
VMwareEngine
CloudRun
Seeallcomputeproducts
Containers
GoogleKubernetesEngine
ContainerRegistry
ContainerSecurity
CloudBuild
DeepLearningContainers
KubernetesApplications
ArtifactRegistry
Knative
CloudRun
CloudCode
DataAnalytics
BigQuery
Looker
Dataflow
Pub/Sub
Dataproc
CloudDataFusion
CloudComposer
Dataprep
Dataplex
DataCatalog
AnalyticsHub
Seealldataanalyticsproducts
Databases
CloudBigtable
Firestore
Memorystore
CloudSpanner
CloudSQL
DatabaseMigrationService
BareMetalSolutionforOracle
FirebaseRealtimeDatabase
Datastream
DeveloperTools
ArtifactRegistry
CloudBuild
CloudCode
CloudDeploymentManager
gcloudCLI
CloudScheduler
CloudSourceRepositories
CloudTasks
GoogleCloudDeploy
Tekton
ToolsforPowerShell
Seealldevelopertools
HealthcareandLifeSciences
ApigeeHealthcareAPIx
CloudHealthcareAPI
CloudLifeSciences
HealthcareNaturalLanguageAI
HybridandMulticloud
Anthos
Looker
CloudRunforAnthos
GoogleCloudMarketplaceforAnthos
MigrateforAnthos
Operations
CloudBuild
TrafficDirector
ApigeeAPIManagement
GoogleDistributedCloud
InternetofThings
CloudIoTCore
EdgeTPU
ManagementTools
AnthosConfigManagement
CarbonFootprint
CloudAPIs
Cloudconsole
CloudMobileApp
CloudShell
ConfigConnector
CostManagement
IntelligentManagement
PrivateCatalog
TerraformonGoogleCloud
MediaandGaming
GameServers
OpenCue
TranscoderAPI
Migration
ApplicationMigration
BigQueryDataTransferService
CloudFoundationToolkit
DatabaseMigrationService
MigrateforAnthos
MigrateforComputeEngine
RapidAssessment&MigrationProgram(RAMP)
TransferAppliance
StorageTransferService
VMwareEngine
Networking
CloudArmor
CloudCDN
CloudDNS
CloudLoadBalancing
CloudNAT
HybridConnectivity
NetworkConnectivityCenter
NetworkIntelligenceCenter
NetworkServiceTiers
TrafficDirector
Seeallnetworkingproducts
Operations
CloudLogging
CloudMonitoring
ErrorReporting
KubernetesEngineMonitoring
CloudTrace
CloudProfiler
CloudDebugger
IntelligentOperations
SecurityandIdentity
CloudIAM
AssuredWorkloads
CloudKeyManagement
ConfidentialComputing
SecurityCommandCenter
CloudDataLossPrevention
ManagedServiceforMicrosoftActiveDirectory
AccessTransparency
TitanSecurityKey
SecretManager
BeyondCorpEnterprise
Seeallsecurityandidentityproducts
ServerlessComputing
CloudRun
CloudFunctions
AppEngine
Workflows
Storage
AllStorageProducts
CloudStorage
Filestore
PersistentDisk
CloudStorageforFirebase
LocalSSD
StorageTransferService
GoogleWorkspaceEssentials
Savemoneywithourtransparentapproachtopricing
Requestaquote
GoogleCloud
Pricingoverview
Pricelist
Pricingcalculator
GoogleCloudFreeProgram
RelatedProducts
GoogleWorkspace
GoogleMapsPlatform
ChromeEnterprise
Apigee
Looker
Firebase
GetstartedwithGoogleCloud
Getstartedforfree
Self-serviceResources
Getstarted
DeveloperCenter
GoogleCloudcertification
Experthelpandtraining
Consulting
TechnicalAccountManagement
Training
Partnersandthird-partytools
GoogleCloudpartners
Becomeapartner
GoogleCloudMarketplace
Home
Docs
CloudVisionAPI
Documentation
Guides
Sendfeedback
Facedetectiontutorial
Objectives
Inthissample,you'llusetheGoogleVisionAPItodetectfacesinan
image.Toprovetoyourselfthatthefacesweredetectedcorrectly,you'llthen
usethatdatatodrawaboxaroundeachface.
ViewingCodeSamples:Mostofthecode
samplesinthistutorialaretakenfromlargercodefileslocatedinGitHub.
Youcanviewanddownloadthecompletefilefromwhichacodesampleistakenby
clickingthe"ViewonGitHub"buttonprovidedaboveasample.
Costs
ThistutorialusesthefollowingbillablecomponentsofGoogleCloud:
CloudVision
Togenerateacostestimatebasedonyourprojectedusage,
usethepricingcalculator.
NewGoogleCloudusersmightbeeligibleforafreetrial.
Beforeyoubegin
SignintoyourGoogleCloudaccount.Ifyou'renewto
GoogleCloud,
createanaccounttoevaluatehowourproductsperformin
real-worldscenarios.Newcustomersalsoget$300infreecreditsto
run,test,anddeployworkloads.
IntheGoogleCloudconsole,ontheprojectselectorpage,
selectorcreateaGoogleCloudproject.
Note:Ifyoudon'tplantokeepthe
resourcesthatyoucreateinthisprocedure,createaprojectinsteadof
selectinganexistingproject.Afteryoufinishthesesteps,youcan
deletetheproject,removingallresourcesassociatedwiththeproject.
Gotoprojectselector
MakesurethatbillingisenabledforyourCloudproject.Learnhowto
checkifbillingisenabledonaproject.
EnabletheGoogleCloudVisionAPI.
EnabletheAPI
IntheGoogleCloudconsole,ontheprojectselectorpage,
selectorcreateaGoogleCloudproject.
Note:Ifyoudon'tplantokeepthe
resourcesthatyoucreateinthisprocedure,createaprojectinsteadof
selectinganexistingproject.Afteryoufinishthesesteps,youcan
deletetheproject,removingallresourcesassociatedwiththeproject.
Gotoprojectselector
MakesurethatbillingisenabledforyourCloudproject.Learnhowto
checkifbillingisenabledonaproject.
EnabletheGoogleCloudVisionAPI.
EnabletheAPI
Setupyourenvironmentforusing
ApplicationDefaultCredentials.
Setuplanguage-specifictasksandtools:
C#
InstalltheGoogleClientLibrary
InstallVisualStudio2012/2015.
Java
InstallJava.
APIreference.
Downloadandinstall
theApacheMavenbuildsystem.Mavenwill
ensurethattheGoogleAPIClientLibrary
andtheVisionAPIclientlibrariesareinstalledwhentheprojectis
built,becausewehaveincludedtheminthepom.xml.
vision/face-detection/pom.xml
ViewonGitHub
延伸文章資訊
- 1Face detection tutorial | Cloud Vision API
Objectives. In this sample, you'll use the Google Vision API to detect faces in an image. To prov...
- 2標示您的臉孔群組- 電腦- Google 相簿說明
這樣系統就會自動開啟「協助聯絡人辨識你的臉孔」功能。 誰可以收到與您共享相片的建議.
- 3動手玩玩Google Cloud Vision API
可簡單分成臉部辨識、標籤偵測、Web、文本辨識等等,下面將會就各個功能分邊說明。不過,就算不真正設置API 到自己的project 中,網頁版就值得大家試試看 ...
- 4[Day8] 關於人臉偵測(Face Detection)的二三事 - iT 邦幫忙
如果是要辨識影像中的人臉叫做人臉識別(Facial Recognition),或者,更常聽到的是 ... 做手機應用(App):Google ML Kit與Amazon Rekognition,...
- 5Google Cloud Vision API教學:Face ID刷臉時代來臨!|Live ...