天道酬勤,学无止境

marvin-framework

How to change white background for black

In a recent project I have to manipulate images, but since this is new to me I am kind of lost. I need to scan the hand using a regular scan device. I could acomplish this but the background is white and I need it to be black. After several days of research finding the way to change the color, I only got an image that seems cut and paste in ms paint. The original image: Test: What I need is something like this: I trying using Marvin Framework, Imagej, Catalano framework. To see the setps that I need I use gimp, marving editor, fiji app (but without getting the result I was looking for). I

2021-08-12 08:43:04    分类:问答    java   algorithm   image-processing   imagej   marvin-framework

2D geometric shape vertices coordinates detection

I am trying to find the vertices and their coordinates for simple geometric shape using marvin-framework. This is the code I have (based on https://stackoverflow.com/a/25223830/957057) package com.example.marvin; import static marvin.MarvinPluginCollection.floodfillSegmentation; import static marvin.MarvinPluginCollection.moravec; import static marvin.MarvinPluginCollection.scale; import java.io.FileWriter; import java.io.IOException; import marvin.image.MarvinImage; import marvin.image.MarvinSegment; import marvin.io.MarvinImageIO; public class ShapesExample { private FileWriter fw = null

2021-06-29 02:31:22    分类:问答    java   image-processing   graphics   computer-vision   marvin-framework

2D形状识别算法-寻找指导(2D Shape recognition algorithm - looking for guidance [closed])

问题 关闭。 此问题不符合堆栈溢出准则。 它当前不接受答案。 想要改善这个问题吗? 更新问题,使它成为Stack Overflow的主题。 4年前关闭。 改善这个问题 我需要能够验证用户正确绘制了形状的能力,从简单的形状(例如圆形,三角形)和更高级的形状(例如字母A)开始。 我需要能够实时计算正确性,例如,如果用户应该绘制一个圆形但正在绘制一个矩形,我希望能够在绘制过程中检测到这一点。 形状识别有几种不同的方法,但是不幸的是,我没有经验或时间尝试所有这些方法,也不知道有什么用。 您会为该特定任务推荐哪种方法? 感谢您的帮助。 回答1 我们可以将“识别”定义为检测元素中的特征/特征并将其与我们的经验中看到的已知元素的特征进行比较的能力。 具有相似特征的对象可能是相似对象。 特征的数量和复杂性越高,我们区分相似对象的能力就越大。 对于形状,我们可以使用它们的几何属性,例如角度数,角度值,边数,边大小等。 因此,为了完成任务,您应该使用图像处理算法从图形中提取此类特征。 下面,我提出一种非常简单的方法,在实践中展示此概念。 我们将利用拐角的数量来识别不同的形状。 正如我所说:“特征的数量和复杂性越高,我们区分相似物体的能力就越大”。 由于我们仅使用一个特征(拐角数量),因此我们可以区分几种不同的形状。 角数相同的形状将不会被区分。 因此,为了改进该方法,您可以添加新功能。 更新:

2021-05-06 18:53:16    分类:技术分享    image-processing   image-recognition   shape-recognition   marvin-framework

2D Shape recognition algorithm - looking for guidance [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago. Improve this question I need the ability to verify that a user has drawn a shape correctly, starting with simple shapes like circle, triangle and more advanced shapes like the letter A. I need to be able to calculate correctness in real time, for example if the user is supposed to draw a circle but is drawing a rectangle, my hope is to be able to detect that while the drawing takes place

2021-04-14 11:14:26    分类:问答    image-processing   image-recognition   shape-recognition   marvin-framework