[orx-boofcv] Update to 1.2.4
This commit is contained in:
@@ -7,7 +7,7 @@ openrndr = { require = "[0.5,0.6.0)" }
|
|||||||
kotest = "5.9.1"
|
kotest = "5.9.1"
|
||||||
dokka = "2.0.0"
|
dokka = "2.0.0"
|
||||||
nebulaRelease = "18.0.7"
|
nebulaRelease = "18.0.7"
|
||||||
boofcv = "1.2.3"
|
boofcv = "1.2.4"
|
||||||
libfreenect = "0.5.7-1.5.9"
|
libfreenect = "0.5.7-1.5.9"
|
||||||
librealsense = "2.53.1-1.5.9"
|
librealsense = "2.53.1-1.5.9"
|
||||||
gson = "2.13.1"
|
gson = "2.13.1"
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ fun main() = application {
|
|||||||
// Convert the bitmap buffer into ShapeContours
|
// Convert the bitmap buffer into ShapeContours
|
||||||
val vectorized = imageToContours(rt.colorBuffer(0))
|
val vectorized = imageToContours(rt.colorBuffer(0))
|
||||||
|
|
||||||
// Show amount of segments in each shape (high number)
|
// Print the number of segments in each shape (high number)
|
||||||
vectorized.forEachIndexed { i, it ->
|
vectorized.forEachIndexed { i, it ->
|
||||||
println("boofcv shape $i: ${it.segments.size} segments")
|
println("boofcv shape $i: ${it.segments.size} segments")
|
||||||
}
|
}
|
||||||
@@ -64,7 +64,7 @@ fun main() = application {
|
|||||||
ShapeContour.fromPoints(it, true)
|
ShapeContour.fromPoints(it, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show amount of segments in simplified shapes (low number).
|
// Print the number of segments in simplified shapes (low number).
|
||||||
// Note: `smooth` and `polygonal` have the same number of segments
|
// Note: `smooth` and `polygonal` have the same number of segments
|
||||||
smooth.forEachIndexed { i, it ->
|
smooth.forEachIndexed { i, it ->
|
||||||
println("simplified shape $i: ${it.segments.size} segments")
|
println("simplified shape $i: ${it.segments.size} segments")
|
||||||
|
|||||||
Reference in New Issue
Block a user