mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
Bump annotate image version from PR.
This commit is contained in:
parent
3bc16fbd55
commit
ea92f293e2
@ -11,7 +11,7 @@ detected in the image by a TensorFlow node.
|
||||
Install
|
||||
-------
|
||||
|
||||
Run the following command in your Node-RED user directory - typically `~/.node-red`
|
||||
Either use the Edit Menu - Manage Palette option to install, or run the following command in your Node-RED user directory - typically `~/.node-red`
|
||||
|
||||
npm install node-red-node-annotate-image
|
||||
|
||||
@ -37,7 +37,7 @@ Each annotation is an object with the following properties:
|
||||
- `lineWidth` (*number*) : the stroke width used to draw the annotation. Default: `5`
|
||||
- `fontSize` (*number*) : the font size to use for the label. Default: `24`
|
||||
- `fontColor` (*string*) : the color of the font to use for the label. Default: `#ffC000`
|
||||
- `labelLocation` (*string*) : The Location to place the label. `top` or `bottom`.
|
||||
- `labelLocation` (*string*) : The location to place the label. `top` or `bottom`.
|
||||
If this propery is not set it will default to `automatic` and make the best guess based on location.
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
<script type="text/x-red" data-template-name="annotate-image">
|
||||
<script type="text/html" data-template-name="annotate-image">
|
||||
<div class="form-row">
|
||||
<span id="node-input-row-stroke">
|
||||
<label for="node-input-stroke">Line Color</label>
|
||||
@ -20,7 +20,7 @@
|
||||
</div>
|
||||
</script>
|
||||
|
||||
<script type="text/x-red" data-help-name="annotate-image">
|
||||
<script type="text/html" data-help-name="annotate-image">
|
||||
<p>A node that can annotate JPEG images with simple shapes and labels.</p>
|
||||
<h3>Inputs</h3>
|
||||
<dl class="message-properties">
|
||||
@ -65,8 +65,8 @@
|
||||
<dt>fontColor <span class="property-type">string</span></dt>
|
||||
<dd>The color of the font to use for the label. Default: <code>"#ffC000"</code></dd>
|
||||
<dt>labelLocation <span class="property-type">string</span></dt>
|
||||
<dd>The Location to place the label. Default: <code>"top"</code> or <code>"bottom"</code>.<br>
|
||||
If this propery is not set it will default to <code>"automatic"</code></dd>
|
||||
<dd>The location to place the label. Can be set to <code>top</code> or <code>bottom</code>.
|
||||
Default: <code>"automatic"</code>.</dd>
|
||||
</dl>
|
||||
<h3>Examples</h3>
|
||||
<pre> msg.annotations = [ {
|
||||
@ -120,9 +120,6 @@
|
||||
colorPalette.push('#'+'000000'.slice(0, 6-s.length)+s);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
RED.nodes.registerType('annotate-image',{
|
||||
category: 'utility',
|
||||
color:"#f1c2f0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "node-red-node-annotate-image",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"description": "A Node-RED node that can annotate an image",
|
||||
"dependencies": {
|
||||
"pureimage": "^0.2.5"
|
||||
|
Loading…
Reference in New Issue
Block a user