magicanded

magicanded / algoimgmark / 0.2.4

README.md

algoimgmark - Image Marker

algoimgmark draws boxes in given image.

Usage

Input

algoimgmark receives JSON object with following attributes:

ParameterDescription
imageImage file will be drawn boxes
boxesList of definition for boxes
boxes[].topTop position value of box
boxes[].leftLeft position value of box
boxes[].bottomBottom position value of box
boxes[].rightRight position value of box
boxes[].widthStroke width of box
boxes[].colorColor object of box
boxes[].color.redRed value of color object of box
boxes[].color.greenGreen value of color object of box
boxes[].color.blueBlue value of color object of box

Output

algoimgmark returns JSON object with following attributes:

ParameterDescription
isError'true' if error occurs, 'false' if success
errorCodeCode name of error
errorMessageMessage of error
resultsResults object
results.outputFileMarked image file
results.outputFileUrlURL of marked image file