UNPKG

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.

35 lines (33 loc) 1.01 kB
import { Action } from '../MainLayout/types.ts'; import { ReactNode } from 'react'; export declare const defaultHotkeys: ({ id: string; description: string; binding: string; } | { id: string; description: string; binding?: undefined; })[]; export declare const defaultKeyMap: Record<string, any>; export declare const useDispatchHotkeyHandlers: ({ dispatch, }: { dispatch: (action: Action) => void; }) => { select_tool: () => void; zoom_tool: () => void; create_point: () => void; create_bounding_box: () => void; pan_tool: () => void; create_polygon: () => void; create_pixel: () => void; save_and_previous_sample: () => void; save_and_next_sample: () => void; save_and_exit_sample: () => void; delete_region: () => void; undo: () => void; }; declare const _default: ({ children, dispatch, }: { children: ReactNode; dispatch: (action: Action) => void; }) => import("react/jsx-runtime").JSX.Element; export default _default;