nodoface
Version:
C++ Addon for fast and efficient face analytics
13 lines (11 loc) • 416 B
text/typescript
import * as nodoface from '../';
let argv = process.argv.slice(2);
let img = nodoface.readImage(argv[0]);
console.log(`Image: rows:${img.height()}, cols:${img.width()}, channels:${img.channels()}`);
nodoface.showImage(img, "Show Image");
nodoface.waitKey(0);
img = nodoface.readImage(argv[0], true);
nodoface.showImage(img, 'output', true);
nodoface.waitKey(0);
nodoface.destroyAllWindows();