Skip to content

CMU-17-214/f2023-lab08

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

f2023-lab08

Running

  1. Follow the directions in the lab instructions to set up a Google Cloud Vision API account and ensure you are logged
  2. npm i
  3. npm run compile
  4. npm run start

If your environment is properly set up, you should get output similar to:

$ npm run start

> [email protected] start
> node .

Running logo detection on ./images/cmu.jpg
Running logo detection on ./images/logo-types-collection.jpg
Running logo detection on ./images/not-a-file.jpg
File ./images/not-a-file.jpg not found
"Carnegie Mellon University" found in in file ./images/cmu.jpg
Average score for ./images/cmu.jpg: 0.6978859901428223
"IKEA" found in in file ./images/logo-types-collection.jpg
"Intel" found in in file ./images/logo-types-collection.jpg
"Castrol" found in in file ./images/logo-types-collection.jpg
"BMW Motorrad" found in in file ./images/logo-types-collection.jpg
"Burger King" found in in file ./images/logo-types-collection.jpg
"Walt Disney World" found in in file ./images/logo-types-collection.jpg
"Ford Motor Company" found in in file ./images/logo-types-collection.jpg
"Mobil" found in in file ./images/logo-types-collection.jpg
"Advanced Micro Devices" found in in file ./images/logo-types-collection.jpg
"Mastercard" found in in file ./images/logo-types-collection.jpg
Average score for ./images/logo-types-collection.jpg: 0.9283903181552887

Async-ify-ing

Reimplement the Promise version of main as an async version (in mainAsync). Your version of the code should not use .then and it should use try/catch instead of .catch.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published