Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

DO NOT MERGE #36

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
update to new VisRec V3
  • Loading branch information
rhagarty committed Jun 5, 2018
commit 4b8a0117aed46f240f2b0bdd8cb78cb79005b589
4 changes: 0 additions & 4 deletions lib/mediaprocessor/VisualRecognition.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const uuid = require('node-uuid');
const path = require('path');
const fs = require('fs');
const archiver = require('archiver');
const watson = require('watson-developer-cloud');
const VisualRecognitionV3 = require('watson-developer-cloud/visual-recognition/v3');
const log = require('pino')();

Expand Down Expand Up @@ -97,7 +96,6 @@ function detectFacesVR(filename) {
} catch (e) {
reject(e);
}
log.debug('calling visualRecognition detectFaces', params);
visualRecognition.detectFaces(params, (err, res) => {
if (err) {
log.debug(`detectFacesVR: ${filename}`, err);
Expand All @@ -124,7 +122,6 @@ function recognizeTextVR(filename) {
} catch (e) {
reject(e);
}
log.debug('calling visualRecognition recoognizeText', params);
visualRecognition.recognizeText(params, (err, res) => {
if (err) {
log.debug(`recognizeTextVR: ${filename}`, err);
Expand Down Expand Up @@ -375,7 +372,6 @@ function vrFilelist(filelist) {

// Main exposed API -- Given mediametadata, and times, VR it.
function doVisualRecognition(mediaMetadata, times) {

return resolveMedia(mediaMetadata)
.then(media => getScreenCaps(media, mediaMetadata.guid, times))
// .then(zipTo15)
Expand Down