v-image-annotator
v0.0.13
Published
Vue Component that allows to annotate images by text or free-drawn lines
Maintainers
Readme
v-image-annotator
Vue Component that allows to annotate images by text or free-drawn lines.
Install
npm install --save v-image-annotator
# or
yarn add v-image-annotatorUsage
<script setup lang="ts">
import { ref } from 'vue';
import { ImageAnnotatorManager, ImageAnnotator } from "v-image-annotator";
const annotatorRef = ref<ImageAnnotatorManager>(null);
function load(file: File) {
annotatorRef.value?.load(file);
}
function render() {
const bytes = annotatorRef.value?.export();
return bytes;
}
</script>
<template>
<ImageAnnotator ref="annotatorRef"/>
</template>