0.0.26 • Published 7 months ago
@amnstak/react-image-annotate v0.0.26
React Image Annotate
Implemented features in fork:
- added typescript
- changed seamless immutability to immer
- updated npm and dependencies used by project
- updated react to v.19
Features
- Simple input/output format
- Bounding Box, Point and Polygon Annotation
- Zooming, Scaling, Panning
- Multiple Images
- Cursor Crosshair

Usage
npm i @amnstak/react-image-annotate
import React from "react";
import Annotator from "@amnstak/react-image-annotate";
const App = () => (
<Annotator
regionClsList={["car", "truck"]}
enabledTools={["select", "create-polygon"]}
selectedTool="select"
images={[
{
src: "https://images.unsplash.com/photo-1561518776-e76a5e48f731?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=750&q=80",
name: "car-image-1",
},
]}
onPrevImages={(state) => {
console.log(state);
}}
onNextImages={(state) => {
console.log(state);
}}
onExit={(output) => {
console.log({output});
}}
/>
);
export default App;To get the proper fonts, make sure to import the Inter UI or Roboto font, the following line added to a css file should suffice.
@import url("https://rsms.me/inter/inter.css");Props
All of the following properties can be defined on the Annotator...
Refer AnnotatorProps
import { AnnotatorProps } from "@amnstak/react-image-annotate";
It has a complete details of the accepted props
0.0.26
7 months ago
0.0.25
7 months ago
0.0.24
7 months ago
0.0.23
7 months ago
0.0.22
7 months ago
0.0.21
7 months ago
0.0.20
7 months ago
0.0.19
7 months ago
0.0.18
7 months ago
0.0.17
7 months ago
0.0.16
7 months ago
0.0.15
7 months ago
0.0.14
7 months ago
0.0.13
7 months ago
0.0.12
7 months ago
0.0.11
7 months ago
0.0.10
7 months ago
0.0.9
7 months ago
0.0.8
7 months ago
0.0.7
7 months ago
0.0.6
7 months ago
0.0.5
7 months ago
0.0.4
7 months ago
0.0.3
7 months ago
0.0.2
7 months ago
0.0.1
7 months ago