* WIP monkeying around with adding new targets.
* Added testcase to replicate large extrinsics result from calibration.
* Tweaked calibration pipline to return image with chessboard corner detection overlaid.
* Removed "bad" images from the cal, but that didn't seem to help...
* Added test logic to output the undistorted Mat for evaluating the quality of the calibration.
* Tweaked generation of chessboard points to be in a square pattern, not parallelogram.
* Spotless and removed bespoke test target in prep for PR.
* Revised to a double-for loop for less complex-looking logic
* #thanks spotless
al;ksgfjh akljghf ;lakdfdhg ksadfgh klasdfjhg kasdfjghj aklsjg two spaces
* Boop
* Updated findBoardCorners to operate on the image at a fixed, small resolution.
This means the image is scaled down before passing to openCV for processing, then the returned point cloud is scaled back up by that same factor.
Added additional flags to findBoardCorners to "fail fast".
Revised subpixel optimization parameters to use a dynamically-sized window (based on the distance observed between board corners).
* Added additional unit testing on calibration at different resolutions
* Spotless cleanup
* Add Mat release calls
* One more missing release.
Also, tried to make spotless a bit happier
* Additional formatting and WIP tracking down t he memory leak
* Cleaned up `Point` allocation in utility functions that iterate over mats of points
* Maybe fixing this bugger????
* Indeed! We can now get through the image capture stage of calibration at full resolution and save off images. Still crashing on out of memory as expected.
Added additional unit sim pass/fail criteria to catch unreleased mat's and a new set of images for testing high-res cal.
* Letting spotless do its thing
* Undistort debug seems to be acting a bit wonky in CI, so just commenting out for now
* Guard against testcases bleeding state into each other.
In particular, at least in CI, it appears not all mats are getting released in previous testcases, which borks up a hard check against "0 mats allocated" in our calibration tests.
* Removed obsolete tests
* One of these days, I will indeed learn to run spotless before I push.
But today is (still) not that day.
Today we push. FOR ROHAN!
* Cherry-pick the extra debug info from Bank's patches.
* Updated Calibrate3d pipeline to release all unnedded mat's prior to returning.
Update a few raw mat operations to use CVMat for better traceability.
* spotless cleanup
* Added check to shouldPrint for optimization on cvmat deallocate
* Reworked stack trace printing to use lambdas for efficiency
* Missed an unneeded logger.trace
* Formatting improvements
* WIP monkeying around with adding new targets.
* Added testcase to replicate large extrinsics result from calibration.
* Tweaked calibration pipline to return image with chessboard corner detection overlaid.
* Removed "bad" images from the cal, but that didn't seem to help...
* Added test logic to output the undistorted Mat for evaluating the quality of the calibration.
* Tweaked generation of chessboard points to be in a square pattern, not parallelogram.
* Spotless and removed bespoke test target in prep for PR.
* Revised to a double-for loop for less complex-looking logic
* #thanks spotless
al;ksgfjh akljghf ;lakdfdhg ksadfgh klasdfjhg kasdfjghj aklsjg two spaces
* Boop
* Reverting my changes in Calibrate3dPipeline.java to make this merge better with other PR's
* Derp changed the wrong one
Removes duplicate members, try-catches streaming processing, and prevents drawing empty contours. The latter likely stems from some sort of use-after-free condition.
* Add native stuff
* use runtimeloader
* add more native methods
* more stuff
* Switch JNI methods to static
* Remove non-java classes from the picam jni
* Add gradle task for JNI generation
* Migrate my previous GPU accel work
* Initial work on defining JNI interface
* Change libpicam to a symlink for now
* Initial work on adding no-copy OMX GPU accel on the pi
* Make DIRECT_OMX GPU accel mode not crash
* Clean up OMX changes (still not getting valid data back)
* Re-add GPU unit test
* A couple debugging tweaks/notes
* Add temporary special cases to get RGB out of ProcessingMode.NONE
* Code clarity improvements; fix possible VBO bug
* Get DIRECT_OMX working
* Remove some debugging switches in GPUAccelerator
* Pipe in VCSM stuff to read out pixels FAST
* Apply Spotless
* Revert versioningHelper changes
* Add missing import
* Convert to MMAL and move everything to native
* Re-add shared object
* Rework to use MMAL and do everything natively
* Condense pipeline settings classes
* Add OutputStreamPipeline
* Apply spotless
* Fix duplicate variable inits and add more video modes
* Integrate color frames and latency measurements for GPU
* Fix camera detection on pi and other platforms
* Add proper color copy disabling and camera settings calls
* Fix things that were broken by rebase
* Fix spotless issues and remove uneeded prints
* Remove libpicam symlink
* Fix stream resolution limiting
* Remove testing code in GPUAcceleratedHSVPipe
* Make profiling options general to all computers
* Make PicamJNI load from resources
* run spotlessApply
* Address review comments
* Update Maven repo for JOGL
* Fix release race condition
* Only run GPU accel test on the pi
* Lint fix and merge conflict accident fixes
* Make Jackson ignore extra fields when unmarshalling HardwareConfig
* Fix Mat releasing data race
* Spotless apply
* Remove broken header generation task
* Fix shared library loading typo
* Add a ZeroCopyPicam quirk to allow setting gain with the MMAL backend
* Make sure that exposure/brightness/gain get set after res changes
* Make rawInputMat properly local
* Remove bogus set of shouldRun flag
* Clean up small GPUHSVPipe print
* Add in some things that missed the ZeroCopyPiCameraSource rename
* Fix incorrect scoping introduced in past rebase
* Don't filter out too-low resolutions
* Only show latency when GPU accel is enabled
* Don't free Mats in stream thread before we use them
* Fix use-after-free and latency caluclation bugs on USB camera source
* Update libpicam
* Remove unwanted print
* Add libpicam forceLoad in unit test
* Fix streaming during camera calibration
* Fix zerocopy Picam calculation
* Use logger trace method instead of raw prints
* Fix calibration and driver mode pipes with the Picam
Co-authored-by: Matt <matthew.morley.ca@gmail.com>
Co-authored-by: Banks Troutman <btrout.dhrs@gmail.com>
Added disk usage percentage hardware stat
Updated Settings-General UI to have table-layout for metrics and other info
Added a `synchronized` modifier to the command runner due to some InterruptedThreadExceptions that were spuriously showing up while getting stats. Added additional stack trace logging when issues arise.
Changes exposure setters to accept a floating point input (rather than integer)
Updates the UI to change exposure in increments of 0.1 (rather than 1.0)
Updates quirky PI camera logic to use the raw_ interface with scaling/offset logic matching the GPU-accelerated pi3 camera logic from Declan.
Adds logic to disable auto-white-balance in the PI camera, which should yield more consistent vision processing results.
* Added input and output frame file save routines
* First pass at review items
* Revised logic to not crash on start and pass tests
* Updated build.gradle to force line endings. Spotless passes now.
* Reverted lineEndings to not force Unix.
Gerth needs to fix up his dev pc.
Co-authored-by: Banks T <btrout.dhrs@gmail.com>
* Rename MJPEG streams when camera name changes
* Change camera name to HTTP request
This allows us to wait for it to for sure be done
* Fix reload logic
* whee lnt
* Reload on backend connect too
* Update CameraAndPipelineSelect.vue
* Change chessboard size to be squares not interior corners
This reduces ambiguity
* Force users to select resolution
This forces the correct video mode index to be selected. Otherwise the 0th camera videomode index will be used, as it's zero-inited. This is undesirable.
* Make target model an enum
This will allow the UI to remember the currently selected target.