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.
27 lines (25 loc) • 1.26 kB
TypeScript
import { ComponentType, FunctionComponent } from 'react';
import { MouseEvents } from '../ImageCanvas/use-mouse.ts';
import { ProjectBoxFn } from '../ImageCanvas/use-project-box.ts';
import { Region } from '../types/region-tools.ts';
import { RegionLabelProps } from '../RegionLabel';
type RegionTagsProps = {
regions: Region[];
projectRegionBox: ProjectBoxFn;
mouseEvents: MouseEvents;
regionClsList?: Array<string> | Array<{
id: string;
label: string;
}>;
regionTagList?: string[];
regionTagSingleSelection?: boolean;
onBeginRegionEdit: (r: Region) => void;
onChangeRegion: (r: Region) => void;
onCloseRegionEdit: (r: Region) => void;
onDeleteRegion: (r: Region) => void;
RegionEditLabel: ComponentType<RegionLabelProps> | FunctionComponent<RegionLabelProps> | null;
onRegionClassAdded: (cls: string) => void;
allowComments?: boolean;
};
export declare const RegionTags: ({ regions, projectRegionBox, mouseEvents, regionClsList, regionTagList, regionTagSingleSelection, onBeginRegionEdit, onChangeRegion, onCloseRegionEdit, onDeleteRegion, RegionEditLabel, onRegionClassAdded, allowComments, }: RegionTagsProps) => import("react/jsx-runtime").JSX.Element[];
export default RegionTags;