Skip to content

Commit

Permalink
Add node descriptions with tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
serivesmejia committed Oct 11, 2024
1 parent f31d3ae commit 70cf07b
Show file tree
Hide file tree
Showing 15 changed files with 30 additions and 16 deletions.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -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<GroupContoursByShapeNode.Session>() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<GroupRectsInsideAreaNode.Session>() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<NoSession>() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<NoSession>() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<BoundingRectsNode.Session>() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<FindContoursNode.Session>() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<FilterBiggestRectangleNode.Session>() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<BlurNode.Session>() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<CvtColorNode.Session>() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<ErodeDilateNode.Session>() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<MaskNode.Session>(){

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<ThresholdNode.Session>() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<DrawRectanglesNode.Session>() {
Expand Down Expand Up @@ -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)
18 changes: 16 additions & 2 deletions PaperVision/src/main/resources/lang.csv
Original file line number Diff line number Diff line change
Expand Up @@ -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<br>the given image and outputs the result.,Dibuja los contornos en una copia de<br>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<br>en una figura especificada.
des_grouprects_insidearea,Selects rectangles that are inside a specified area.,Selecciona los rectángulos que están<br>dentro de un área especificada.
des_filterbiggest_rect,Finds the biggest rectangle from a list of rectangles.,Encuentra el rectángulo más grande<br>de una lista de rectángulos.
des_boundingrect,Calculates the bounding rectangles<br>of a given list of points.,Calcula los rectángulos delimitadores<br>de una lista de puntos dada.
des_findcontours,Finds all the contours (list of points)<br>of a given binary image.,Encuentra todos los contornos (lista de puntos)<br>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<br>to the specified color space. If the mat is already<br>in the specified color space, no conversion is made.","Convierte un Mat de su espacio de color actual<br>al espacio de color especificado. Si el Mat ya está<br>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<br>based on a binary image, discards or includes areas<br>from the normal image based on the binary image.","Toma una imagen normal y aplica una máscara<br>basada en una imagen binaria, descartando o incluyendo áreas<br>de la imagen normal según la imagen binaria."
des_colorthresh,"Performs a threshold in the input image<br>and returns a binary image, discarding<br>the pixels that were outside the range.","Realiza un umbral en la imagen de entrada<br>y devuelve una imagen binaria, descartando<br>los píxeles que estaban fuera del rango."
des_drawrects,Draws the rectangles on a copy of the<br>given image and outputs the result.,Dibuja los rectangulos en una copia de la<br>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<br>given image and outputs the result.,Dibuja los contornos en una copia de la<br>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]
Expand All @@ -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..."
mis_searchingnodes_pleasewait,"Searching for nodes, please wait...","Buscando nodos, por favor espera..."

0 comments on commit 70cf07b

Please sign in to comment.