react-visual-annotator
Version:
Powerful React image and video annotation tool for machine learning, computer vision, and AI training data creation. Features rotatable bounding boxes, polygons, keypoints, segmentation with TypeScript support and Material-UI components.
16 lines (14 loc) • 511 B
TypeScript
import { MutableRefObject } from 'react';
import { IMatrix } from 'transformation-matrix-js';
import { CanvasLayoutParams } from './index.tsx';
import { Region } from '../types/region-tools.ts';
export type ProjectBox = IMatrix & {
w: number;
h: number;
};
export type ProjectBoxFn = (r: Region) => ProjectBox;
declare const UseProjectedBox: ({ layoutParams, mat, }: {
layoutParams: MutableRefObject<CanvasLayoutParams | null>;
mat: IMatrix;
}) => ProjectBoxFn;
export default UseProjectedBox;