[WIP] Polygon and Circle Detection (#100)

* Created FindPolygonPipe and DetectPolygonPipeline

* Return CVShape based off approxDP

* Added fromSides method to ContourShape

* Use enums

* Use harris detector

* Switch back to approxpolydp

* Added colourshape pipeline

* Added pipeline test

* Finsihed triangle/quad/custom polygon detection

* Circle detection

* Revert "Circle detection"

This reverts commit f6b2fe785d69b16ca1466a13073dce72a0d54570.

* Added shape drawings to draw2dcontourspipe

* Added circledetection pipe params

* apply spotless

* Added colourtoscalar outside of loop

* Added powercell testing images from ML library

* Powercell tracking works

* Added gradle to gitnore

* Added solvepnp to circles

* Reordered pipes and pipe params

* Fixed tests

* Apply spotless

* chmod gradlew

* gradle wrapper

* Removed commits from gradle

* Fix typo in ColoredShapePipeline

* Apply Spotless

Co-authored-by: Banks Troutman <btrout.dhrs@gmail.com>
This commit is contained in:
Xzibit
2020-06-15 23:35:10 -04:00
committed by GitHub
parent 9d10c610ec
commit 388228b9e8
32 changed files with 970 additions and 46 deletions

View File

@@ -115,7 +115,13 @@ public class BenchmarkTest {
var frameProps = frameProvider.get().frameStaticProperties;
// begin benchmark
System.out.println("Beginning " + secondsToRun + " second benchmark at resolution " + frameProps.imageWidth + "x" + frameProps.imageHeight);
System.out.println(
"Beginning "
+ secondsToRun
+ " second benchmark at resolution "
+ frameProps.imageWidth
+ "x"
+ frameProps.imageHeight);
var benchmarkStartMillis = System.currentTimeMillis();
do {
CVPipelineResult pipelineResult = pipeline.run(frameProvider.get());