How to use @azure/cognitiveservices-computervision - 1 common examples

To help you get started, we’ve selected a few @azure/cognitiveservices-computervision examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Azure-Samples / cognitive-services-quickstart-code / javascript / ComputerVision / ComputerVisionQuickstart.js View on Github external
* Detect Category, Detect Brand, Detect Color Scheme, Detect Domain-specific Content, Detect Adult Content
 * Generate Thumbnail, Batch Read File, Recognize Text (OCR), Recognize Printed & Handwritten Text.
 */

// 
/**
 * AUTHENTICATE
 * This single client is used for all examples.
 */
let key = process.env['COMPUTER_VISION_SUBSCRIPTION_KEY'];
let endpoint = process.env['COMPUTER_VISION_ENDPOINT']
if (!key) { throw new Error('Set your environment variables for your subscription key and endpoint.'); }
// 

// 
let computerVisionClient = new ComputerVisionClient(
    new ApiKeyCredentials({inHeader: {'Ocp-Apim-Subscription-Key': key}}), endpoint);
// 
/**
 * END - Authenticate
 */

// 
function computerVision() {
  async.series([
    async function () {
      // 

      /**
       * DESCRIBE IMAGE
       * Describes what the main objects or themes are in an image.
       * Describes both a URL and a local image.

@azure/cognitiveservices-computervision

ComputerVisionClient Library with typescript type definitions for node.js and browser.

MIT
Latest version published 3 years ago

Package Health Score

72 / 100
Full package analysis

Popular @azure/cognitiveservices-computervision functions