Commit Graph

15 Commits

Author SHA1 Message Date
Ori agranat
f92bf670de Source manager (#99)
* Add some config stuff, run format

* Create JacksonUtils.java

* Fix deserialization, run wpiformat

* initial work on source manager

* work on USB camera class

* wip USB Camera

* rename root folder

* added USB Camera Source

* Fix some errors, run spotless

* finished VIsion source manager

* bugfix unversioned git files and added default cam config constructor

* Apply spotless, add simpler CameraConfiguration ctor

* [WIP] unit tests

* Fixed camera mocking

* added equal test for class

* finalized test

* added another cam to test & rebase

* test bugfix

* Better handle nonexistant files

* removed camera validation and mockito

* Update WPI maven repo to dev, change to version with VideoCapture fix

* added Quirky camera class

* remove name check for cam quirk , apply spotless

* added quirk test

Co-authored-by: Matt <matthew.morley.ca@gmail.com>
Co-authored-by: Banks Troutman <btrout.dhrs@gmail.com>
2020-06-17 14:12:19 -04:00
Banks Troutman
c683bebf76 Tests now print when run, added BenchmarkTests, CVMat togglable output 2020-06-12 19:58:58 -04:00
Banks Troutman
58229b9fe5 Fixed testHeadless bug 2020-06-12 04:36:19 -04:00
Banks Troutman
04c30bcbfd Add testHeadless gradle task to skip showing test images 2020-06-12 04:22:44 -04:00
Matt
0b09e72771 Config (#101)
* Add some config stuff, run format

* Create JacksonUtils.java

* Fix deserialization, run wpiformat

* Update ConfigTest.java

* Change config root folder, auto-sort pipelines when added to CameraConfiguration

* Split ConfigTest tests in to multiple tests

* Fix unsatisfied link error in config test

* Add equals and hashCode to all PipelineSettings classes

* Fix NPE in config test

* run spotless

* Address changes

Co-authored-by: Banks Troutman <btrout.dhrs@gmail.com>
Co-authored-by: ori agranat <oriagranat9@gmail.com>
2020-06-07 22:25:18 +03:00
Banks T
1149bf9c55 Pipeline Bringup (#94)
* Refactor package structure, various cleanups

* Add pipeline classes, settings, separate enums

* updated Largest ContourSortMode and added centermost

* Add DriverPipeline classes, apply spotless

* Add crosshair to DriverMode, cleanups

* Add FrameStaticProperties as member in Frame

Add FrameStaticProperties as member in Frame

* Finish ReflectivePipeline, various tweaks

* Apply Spotless

* Move test images

* add Releasable interface, implement in classes

* add TestUtils class, move testimages

* Refactor CVPipeline, add ReflectivePipelineTest

* Fix ConcurrentModificationException bug in group contours pipe with potential targets

* Resolve memory leaks due to unnecessary instantiation of Points

* Apply spotless

* Add CVMat, ReflectionUtils to help track rogue Mats

* various cleanups, add DummyFrameConsumer

* Add logback

* Add slv4j logger to replace the current debugLogger

I'm waiting on stuff to be less skeletoned to add more

* Add perimeter, MatOfPoint2f getters to Contour

* Create CornerDetectionPipe based on old solvePNPPipe

* Add ContourShape class for approxPolyDp Start on ColoredShape tracking

* Add point detection, fix convex hull calculation in Contour

* Make Draw2dContours pipe respect showMultiple

* Update Contour.java

* Clean up draw 3d, fix convex hull bug in corner detection

* Update geometry classes

* Add lifecam calibration data

* Implement solvePNP, bounding box top and bottom

* Fix JSON mat bug and lifecam default calibration for tests, fix 3d drawing

* run spotless

* Refactor calibration into `common.calibration`

* Update .gitignore

* Add offset method to get2020Target

* Various cleanups, add PipelineType enum

* Apply spotless

Co-authored-by: ori agranat <oriagranat9@gmail.com>
Co-authored-by: Matt <matthew.morley.ca@gmail.com>
2020-04-12 18:37:14 -04:00
Prateek Machiraju
2eff679f17 Port CV Pipes to 3.0 (#86)
* Initial port of pipes to 3.0

* Add PotentialTarget, change TrackedTarget creation

* Fix Group2dContoursPipe, convert pipes to use Contour, Apply spotless

* Fix Draw2dCrosshairPipe

* Apply Spotless

* Some cleanup

* more fixes

Co-authored-by: Banks Troutman <btrout.dhrs@gmail.com>
2020-03-30 13:57:32 -04:00
cttdev
90d463a530 Making 2 tabs into 4 spaces. 2020-03-28 21:52:36 -07:00
Claudius Tewari
7406ba7549 Add and apply spotless. (#85)
* Adding spotless dependency.

* Applying spotless.

* Changing tab size to 4 spaces.
2020-03-28 21:38:50 -04:00
Banks Troutman
b236d20fd6 Fix shadowJar file name 2020-03-28 19:08:03 -04:00
Banks Troutman
c03ed23a98 Ignore _2 package in builds 2020-03-28 18:54:26 -04:00
Banks Troutman
465bf0181e add FrameProviders, meddle with 2.x code 2020-03-28 18:35:50 -04:00
Banks Troutman
951aa1bdbd Add all relevant 2.X files to _2 package, move/port some 2.X classes 2020-03-26 22:03:27 -04:00
Banks Troutman
e2e6e792ab Un-depend extra bytedeco packages 2020-03-18 03:16:56 -04:00
Banks Troutman
618f459631 Initial 3.0 Commit 2020-03-18 01:51:30 -04:00