Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
* 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.