Annotate images by drawing polygon using mouse events in Fabric JS
Example
annoFabric.initCanvas("#main-image", {
annotationTextField: "<select class='form-control' name='annotation-text-field'>" + selectTags + "</select>",
canvasHeight: $("#main-image").height(),
canvasWidth: $("#main-image").width()
});