BBoxJS
BBoxJS is a light-weight Javascript solution for marking bounding boxes on an image
Installing BBoxJS
BBoxJS can used as an IIFE called from a script tag or installed as a libary via npm. After initializing a new BBoxAnnotator
, BBoxJS will search for a
with an ID of
bbox-annotator-container
.Using BBoxJS with React
npm install bboxjs
import React useRef from 'react';import BboxAnnotator from 'bboxjs'; { const div = ; if div && divcurrent imgSrc prefix: 'testo-' callbacks: { console } { console } return <div ="testo-bbox-annotator-container" = = />}
Using BBoxJS as an IIFE
See demo.html for additional details.