From 70cf07b2c584265ed625f4a457df1214a2438245 Mon Sep 17 00:00:00 2001 From: Sebastian Erives Date: Thu, 10 Oct 2024 21:39:29 -0600 Subject: [PATCH] Add node descriptions with tooltips --- ...kotlin-compiler-15620357048313927926.salive | 0 .../classification/GroupContoursByShapeNode.kt | 2 +- .../classification/GroupRectsInsideAreaNode.kt | 2 +- .../classification/targets/ExportTargetNode.kt | 2 +- .../targets/ExportTargetsNode.kt | 2 +- .../vision/featuredet/BoundingRectsNode.kt | 2 +- .../vision/featuredet/FindCountoursNode.kt | 2 +- .../filter/FilterBiggestRectangleNode.kt | 2 +- .../node/vision/imageproc/BlurNode.kt | 2 +- .../node/vision/imageproc/CvtColorNode.kt | 2 +- .../node/vision/imageproc/ErodeDilateNode.kt | 2 +- .../node/vision/imageproc/MaskNode.kt | 2 +- .../node/vision/imageproc/ThresholdNode.kt | 2 +- .../node/vision/overlay/DrawRectanglesNode.kt | 4 ++-- PaperVision/src/main/resources/lang.csv | 18 ++++++++++++++++-- 15 files changed, 30 insertions(+), 16 deletions(-) create mode 100644 .kotlin/sessions/kotlin-compiler-15620357048313927926.salive diff --git a/.kotlin/sessions/kotlin-compiler-15620357048313927926.salive b/.kotlin/sessions/kotlin-compiler-15620357048313927926.salive new file mode 100644 index 0000000..e69de29 diff --git a/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/classification/GroupContoursByShapeNode.kt b/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/classification/GroupContoursByShapeNode.kt index f89aead..25a4ecc 100644 --- a/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/classification/GroupContoursByShapeNode.kt +++ b/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/classification/GroupContoursByShapeNode.kt @@ -27,7 +27,7 @@ enum class Shape(val sides: Int?) { @PaperNode( name = "nod_groupcontours_byshape", category = Category.CLASSIFICATION, - description = "Finds all the contours (list of points) of a given binary image." + description = "des_groupcontours_byshape" ) class GroupContoursByShapeNode : DrawNode() { diff --git a/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/classification/GroupRectsInsideAreaNode.kt b/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/classification/GroupRectsInsideAreaNode.kt index 6edade8..a037b00 100644 --- a/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/classification/GroupRectsInsideAreaNode.kt +++ b/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/classification/GroupRectsInsideAreaNode.kt @@ -25,7 +25,7 @@ enum class Orientation { Vertical, Horizontal } @PaperNode( name = "nod_grouprects_insidearea", category = Category.CLASSIFICATION, - description = "Finds all the contours (list of points) of a given binary image." + description = "des_grouprects_insidearea" ) class GroupRectsInsideAreaNode : DrawNode() { diff --git a/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/classification/targets/ExportTargetNode.kt b/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/classification/targets/ExportTargetNode.kt index 9cd5ef2..710a88d 100644 --- a/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/classification/targets/ExportTargetNode.kt +++ b/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/classification/targets/ExportTargetNode.kt @@ -15,7 +15,7 @@ import io.github.deltacv.papervision.node.PaperNode @PaperNode( name = "nod_exporttarget", category = Category.CLASSIFICATION, - description = "Export detected target to return from the pipeline" + description = "des_exporttarget" ) class ExportTargetNode : DrawNode() { diff --git a/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/classification/targets/ExportTargetsNode.kt b/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/classification/targets/ExportTargetsNode.kt index 4b52131..eeab738 100644 --- a/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/classification/targets/ExportTargetsNode.kt +++ b/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/classification/targets/ExportTargetsNode.kt @@ -17,7 +17,7 @@ import io.github.deltacv.papervision.node.PaperNode @PaperNode( name = "nod_exporttargets", category = Category.CLASSIFICATION, - description = "Export detected targets to return from the pipeline" + description = "des_exporttargets" ) class ExportTargetsNode : DrawNode() { diff --git a/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/featuredet/BoundingRectsNode.kt b/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/featuredet/BoundingRectsNode.kt index 0d2e1c2..3893210 100644 --- a/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/featuredet/BoundingRectsNode.kt +++ b/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/featuredet/BoundingRectsNode.kt @@ -20,7 +20,7 @@ import io.github.deltacv.papervision.node.PaperNode @PaperNode( name = "nod_boundingrect", category = Category.FEATURE_DET, - description = "Calculates the bounding rectangles of a given list of points." + description = "des_boundingrect" ) class BoundingRectsNode : DrawNode() { diff --git a/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/featuredet/FindCountoursNode.kt b/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/featuredet/FindCountoursNode.kt index d5b0fe8..963dad0 100644 --- a/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/featuredet/FindCountoursNode.kt +++ b/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/featuredet/FindCountoursNode.kt @@ -21,7 +21,7 @@ import io.github.deltacv.papervision.node.PaperNode @PaperNode( name = "nod_findcontours", category = Category.FEATURE_DET, - description = "Finds all the contours (list of points) of a given binary image." + description = "des_findcontours" ) class FindContoursNode : DrawNode() { diff --git a/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/featuredet/filter/FilterBiggestRectangleNode.kt b/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/featuredet/filter/FilterBiggestRectangleNode.kt index e67c515..da0f38a 100644 --- a/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/featuredet/filter/FilterBiggestRectangleNode.kt +++ b/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/featuredet/filter/FilterBiggestRectangleNode.kt @@ -17,7 +17,7 @@ import io.github.deltacv.papervision.node.PaperNode @PaperNode( name = "nod_filterbiggest_rect", category = Category.FEATURE_DET, - description = "Finds all the contours (list of points) of a given binary image." + description = "des_filterbiggest_rect" ) class FilterBiggestRectangleNode : DrawNode() { diff --git a/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/imageproc/BlurNode.kt b/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/imageproc/BlurNode.kt index d4fae58..55ca415 100644 --- a/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/imageproc/BlurNode.kt +++ b/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/imageproc/BlurNode.kt @@ -23,7 +23,7 @@ enum class BlurAlgorithm { Gaussian, Box, Median, Bilateral } @PaperNode( name = "nod_blur", category = Category.IMAGE_PROC, - description = "Takes a normal image and performs a mask based on a binary image, discards or includes areas from the normal image based on the binary image." + description = "des_blur" ) class BlurNode : DrawNode() { diff --git a/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/imageproc/CvtColorNode.kt b/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/imageproc/CvtColorNode.kt index 46d7bdf..e9d684f 100644 --- a/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/imageproc/CvtColorNode.kt +++ b/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/imageproc/CvtColorNode.kt @@ -19,7 +19,7 @@ import io.github.deltacv.papervision.node.vision.ColorSpace @PaperNode( name = "nod_cvtcolor", category = Category.IMAGE_PROC, - description = "Converts a Mat from its current color space to the specified color space. If the mat is already in the specified color space, no conversion is made." + description = "des_cvtcolor" ) class CvtColorNode : DrawNode() { diff --git a/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/imageproc/ErodeDilateNode.kt b/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/imageproc/ErodeDilateNode.kt index 47caa47..eb94843 100644 --- a/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/imageproc/ErodeDilateNode.kt +++ b/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/imageproc/ErodeDilateNode.kt @@ -19,7 +19,7 @@ import io.github.deltacv.papervision.util.Range2i @PaperNode( name = "nod_erodedilate", category = Category.IMAGE_PROC, - description = "Erodes and dilates a given image" + description = "des_erodedilate" ) class ErodeDilateNode : DrawNode() { diff --git a/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/imageproc/MaskNode.kt b/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/imageproc/MaskNode.kt index 025e523..3158145 100644 --- a/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/imageproc/MaskNode.kt +++ b/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/imageproc/MaskNode.kt @@ -17,7 +17,7 @@ import io.github.deltacv.papervision.node.PaperNode @PaperNode( name = "nod_binarymask", category = Category.IMAGE_PROC, - description = "Takes a normal image and performs a mask based on a binary image, discards or includes areas from the normal image based on the binary image." + description = "des_binarymask" ) class MaskNode : DrawNode(){ diff --git a/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/imageproc/ThresholdNode.kt b/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/imageproc/ThresholdNode.kt index 3b38a06..e5a37c6 100644 --- a/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/imageproc/ThresholdNode.kt +++ b/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/imageproc/ThresholdNode.kt @@ -25,7 +25,7 @@ import io.github.deltacv.papervision.serialization.data.SerializeData @PaperNode( name = "nod_colorthresh", category = Category.IMAGE_PROC, - description = "Performs a threshold in the input image and returns a binary image, discarding the pixels that were outside the range in the color space specified." + description = "des_colorthresh" ) class ThresholdNode : DrawNode() { diff --git a/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/overlay/DrawRectanglesNode.kt b/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/overlay/DrawRectanglesNode.kt index 202d360..14e6be5 100644 --- a/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/overlay/DrawRectanglesNode.kt +++ b/PaperVision/src/main/kotlin/io/github/deltacv/papervision/node/vision/overlay/DrawRectanglesNode.kt @@ -24,7 +24,7 @@ import io.github.deltacv.papervision.node.vision.ColorSpace @PaperNode( name = "nod_drawrects", category = Category.OVERLAY, - description = "Draws the rectangles on a copy of the given image and outputs the result." + description = "des_drawrects" ) open class DrawRectanglesNode @JvmOverloads constructor(val isDrawOnInput: Boolean = false) : DrawNode() { @@ -160,6 +160,6 @@ open class DrawRectanglesNode @PaperNode( name = "nod_drawrects_onimage", category = Category.OVERLAY, - description = "Draws the rectangles in the passed image." + description = "des_drawrects_onimage" ) class DrawRectanglesOnImageNode : DrawRectanglesNode(true) \ No newline at end of file diff --git a/PaperVision/src/main/resources/lang.csv b/PaperVision/src/main/resources/lang.csv index d8a87c0..90d0ab5 100644 --- a/PaperVision/src/main/resources/lang.csv +++ b/PaperVision/src/main/resources/lang.csv @@ -66,7 +66,21 @@ att_groupedrects,Grouped Rects,Rectangulos Agrupados att_rectsinside,Rects Inside,Rectangulos Dentro att_targets,Targets,Objetivos att_label,Label,Etiqueta -des_drawcontours,Draws the contours on a copy of
the given image and outputs the result.,Dibuja los contornos en una copia de
la imagen dada y devuelve el resultado. +des_exporttargets,Export detected targets to hand to another program.,Exporta objetivos detectados para pasarlos a otro programa. +des_exporttarget,Export detected target to hand to another program.,Exporta el objetivo detectado para pasarlo a otro programa. +des_groupcontours_byshape,Finds contours that match a specific shape.,Encuentra los contornos que encajan
en una figura especificada. +des_grouprects_insidearea,Selects rectangles that are inside a specified area.,Selecciona los rectángulos que están
dentro de un área especificada. +des_filterbiggest_rect,Finds the biggest rectangle from a list of rectangles.,Encuentra el rectángulo más grande
de una lista de rectángulos. +des_boundingrect,Calculates the bounding rectangles
of a given list of points.,Calcula los rectángulos delimitadores
de una lista de puntos dada. +des_findcontours,Finds all the contours (list of points)
of a given binary image.,Encuentra todos los contornos (lista de puntos)
de una imagen binaria dada. +des_blur,Blurs the input image using the specified algorithm.,Difumina la imagen de entrada con el algoritmo especificado. +des_cvtcolor,"Converts a Mat from its current color space
to the specified color space. If the mat is already
in the specified color space, no conversion is made.","Convierte un Mat de su espacio de color actual
al espacio de color especificado. Si el Mat ya está
en el espacio de color especificado, no se realiza ninguna conversión." +des_erodedilate,Erodes and dilates the areas of a given binary image.,Erosiona y dilata las áreas de una imagen binaria dada. +des_binarymask,"Takes a normal image and performs a mask
based on a binary image, discards or includes areas
from the normal image based on the binary image.","Toma una imagen normal y aplica una máscara
basada en una imagen binaria, descartando o incluyendo áreas
de la imagen normal según la imagen binaria." +des_colorthresh,"Performs a threshold in the input image
and returns a binary image, discarding
the pixels that were outside the range.","Realiza un umbral en la imagen de entrada
y devuelve una imagen binaria, descartando
los píxeles que estaban fuera del rango." +des_drawrects,Draws the rectangles on a copy of the
given image and outputs the result.,Dibuja los rectangulos en una copia de la
imagen dada y devuelve el resultado. +des_drawrects_onimage,Draws the rectangles in the passed image.,Dibuja los rectangulos en la imagen de entrada +des_drawcontours,Draws the contours on a copy of the
given image and outputs the result.,Dibuja los contornos en una copia de la
imagen dada y devuelve el resultado. des_drawcontours_onimage,Draws the contours on the input image,Dibuja los contornos en la imagen de entrada. err_musthave_attachedattrib,Must have an attribute attached,Debe tener un atributo conectado err_attachedattrib_isnot,Attribute attached is not $[0],El atributo conectado no es $[0] @@ -78,4 +92,4 @@ mis_input,Input,Entrada mis_output,Output,Salida mis_nodeslist_open,Press SPACE to open the nodes list,Presiona ESPACIO para abrir la lista de nodos mis_nodeslist_close,Press ESCAPE to close the nodes list,Presiona ESCAPE para cerrar la lista de nodos -mis_searchingnodes_pleasewait,"Searching for nodes, please wait...","Buscando nodos, por favor espera..." \ No newline at end of file +mis_searchingnodes_pleasewait,"Searching for nodes, please wait...","Buscando nodos, por favor espera..."