0

我有一个绘图画布,我想通过找到角落将它分成几条线。

我正在使用与此 Google 示例类似的东西来收集笔画点:http: //developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/FingerPaint.html

我一直在使用http://jabtunes.com/notation/shortstraws.html在 JavaScript 中处理这个问题。有谁知道在 Android 设备上使用 Java 的简单方法?

4

1 回答 1

0

You can try something like a Hough Transform. It's a common way of finding shapes in Computer Vision applications. You might also want to combine it with an edge-detection algorithm, which is pretty simple to implement (maybe 20 or 30 lines of code).

于 2012-04-04T07:12:16.203 回答