Views
No views yet
npm i @huggingface/transformers1import { pipeline } from '@huggingface/transformers';
2
3const detector = await pipeline('object-detection', 'Xenova/table-transformer-structure-recognition-v1.1-pub');
4const img = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/cats.jpg';
5const output = await detector(img, { threshold: 0.9 });onnx).