Commit Graph

1035 Commits

Author SHA1 Message Date
Unknown
e64d00e529 added gain slider 2020-01-17 00:52:51 +02:00
Banks Troutman
05b16e587e Fix project SDK, Update pom.xml to version 2.1.2-RELEASE 2020-01-16 15:37:52 -05:00
Matt
8f10f33cf7 disable memory manager for now
Mem usage looks fine without it
2020-01-16 11:21:56 -08:00
Matt
d28cf8ef63 Merge branch 'dev' of https://github.com/chameleon-vision/Chameleon-Vision into dev 2020-01-15 21:45:45 -08:00
Matt
82a779743e Remove unused stream queue in vision process 2020-01-15 21:45:16 -08:00
Banks T
c5a1694012 Add NetworkTablesManager (#48)
* Add NetworkTablesManager, various cleanups

* Add auto-restart when team number changes.
2020-01-16 00:21:00 -05:00
ori agranat
b935113eb1 cleaned up matt's code 2020-01-15 22:32:25 +02:00
Matt
de023438cd update maven to force jdk 12 2020-01-15 12:04:21 -08:00
Matt
ddda8b17c3 Add backend code for sending points 2020-01-15 12:04:14 -08:00
Matt
ec93c0225c Start on adding point settings to request handler 2020-01-14 08:21:50 -08:00
ori agranat
c48b8c9590 updated readme with circle ci public links 2020-01-13 23:15:22 +02:00
ori agranat
c46d4e04b0 added custom cvs upload and premade targets 2020-01-13 21:48:24 +02:00
Matt
709752249d Update corner points to match limelight 2020-01-13 08:39:37 -08:00
Matt
a6654fa24b Add new corner detection algorithm for solvePNP 2020-01-12 23:26:35 -08:00
ori agranat
b2e44e448c re did key names and added new values 2020-01-12 23:32:53 +02:00
Unknown
72c4a3ccb9 dropped min fps for some Chinese cameras 2020-01-11 19:35:30 +02:00
ori agranat
96e358e036 added back ui port changing 2020-01-11 12:39:25 +02:00
Matt
28f4fbeddd More descriptive exceptions 2020-01-09 14:48:32 -08:00
Matt
832e0d9d8f Add bgr to allowed video modes 2020-01-09 14:44:53 -08:00
Matt
c12b181aba Add more descriptive exception to USBCameraCapture 2020-01-09 14:40:38 -08:00
Matt
0e2e950d18 V2.1.1 (#40) 2020-01-08 00:11:34 -08:00
Matt
f317e2fc83 Add back commented out file upload code :bolb: 2020-01-07 22:04:25 -08:00
Matt
eb5cb0bea0 Always send FPS to UI, remove target width/height box from UI 2020-01-07 21:58:45 -08:00
Matt
d2874f1c73 Fix chmod windows bug 2020-01-07 21:45:34 -08:00
Matt
7558cdc2bf Update POM to 2.1.1 2020-01-07 21:41:25 -08:00
Redrield
3218b6ae36 Normalize Unicode out of folder name (#39) 2020-01-07 19:49:31 -05:00
oriagranat9
b3b64d6d89 Target region (#38)
* WIP: target region

* working math

* working directions

* removed if statements

* working portrait and landscape

* Revert "working portrait and landscape "

This reverts commit 8ce2ead1b41d372f72128b7fceeaab09e0834eaa.

* finalized targeting region
2020-01-07 13:07:52 -08:00
Matt
37a1c60595 Merge branch 'dev' of https://github.com/chameleon-vision/Chameleon-Vision into dev 2020-01-06 19:32:48 -08:00
Matt
169f589897 Fix bug in calibrate 3d pipeline 2020-01-06 18:55:28 -08:00
Unknown
da5b1919f0 changed nt pose and minor bug fixes
- cast error when switching to driver mode
- pipeline entry not changing back if no pipe exists
2020-01-06 14:43:56 +02:00
Matt
16f428aa7e Upload compiled UI 2020-01-05 22:29:53 -08:00
Matt
1aac80c63a Update box for 2020 2020-01-05 22:29:41 -08:00
Matt
46e66b9a3b Use approx poly for 2020 solvePNP 2020-01-05 21:56:14 -08:00
Matt
155ad6f70a hard code 2020 corner finder 2020-01-04 23:45:14 -08:00
Matt
6b7aaa2326 Fix gitignore, compilation errors 2020-01-04 23:25:13 -08:00
Matt
6bccd1a94f Hard code high goal solvePNP 2020-01-04 23:04:06 -08:00
Matt
cdede75f1f Merge branch 'dev' of https://github.com/chameleon-vision/Chameleon-Vision into dev 2020-01-04 22:51:03 -08:00
Matt
5c4acc411d Add 2020 vision code 2020-01-04 22:50:13 -08:00
Matt
252d114eb4 Add 2020 vision code 2020-01-04 22:48:49 -08:00
Matt
c32169804f add 2020 images 2020-01-04 22:38:24 -08:00
Matt
7806afc628 Fix compilation error after merge 2020-01-04 22:11:35 -08:00
Matt
1e94ee4af3 Merge branch 'master' into dev 2020-01-04 22:06:41 -08:00
Matt
42399017e5 Memory optomizations in group contors pipe 2020-01-04 22:05:05 -08:00
oriagranat9
97a6e1419d V2.1 (#37)
* Toggle mode

* RangeSlider able to be disabled

* Added another window from the press of the button

* removed warning

* Major changes to colorpicker page

* Major changes to threshold tab

* fix for BGR not RGB

* Reverted changes of colorpicker.vue

* Updated Readme.md

Mainly Development Setup

* Update readme

small changes

* updated readme.md

Authors credit update

* updated readme.md 

added usb camera to hardware

* Updated UI readme

added nodejs installation and explanation

* Unit test vision (and implement networktable sending)

* finished color picker in the ui

* bugfix for correct tab

* cleanup and commenting

* Reveted changes to range slider

* bug fix for color picker

* Pipeline mat copy fix

* Added crosshair pipe

* compilation fix

* removed unsued comment

* moved calibration stuff to static class under 2d pipeline settings

* Added debug print commented

* Reverted subclass "Calibration"
Fixed bug where single point calibration causes crash when no target is found

* disable dual point crosshair for now

* Proper no target found fix, and snackbar error now showing

* Removed java fix for crash bug

* fixed problem with clear points in single point calibration

* change compatator to sqared values to make caluclation faster (no need for sqare root function)

* fixed roated camera too heigh for the UI

* Revert "fixed roated camera too heigh for the UI"

This reverts commit 50c8ecd345.

* fixed rotated camera too heigh for UI and corrected scalling

* updated pom to fix the camera buffer issue

* added pom variables

* Created new CaptureStaticProperties when rotating cam

* File stucture change, moved Pipeline implementation and their settings to /impl folder, refracted imports

* ignore auto created iml file

* ignore auto created iml file

* Fix lack of access problems after moving pipleline impl out of the same package

* Removed commented lines

* Fixed bug when selecting the same 90 deg rotation twice causes crosshair to move

* cleaned up single point calibration and bug fixed isBinary in driverMode

* Enum fix for the UI

* typo

* fixed Stream divisor problems see issue 19 in github issues

* fixed compilation error for test class

* Fixed problem when rotating camera with stream divisor

* Spelling + button style change

* Add speed limit to UI Updates

* Added runtime arg to fix settings permissions, and on-first-init

* Added FileHelper class to manage setting permissions for all files.

* Removed unnecessary argument

* NT can set pipeline to out on bound indexes

* bugfix in platform check

* added pipeline popup

* Round steam divisor resolution

* added regex test for camera name and pipe name

* Fix for Renaming pipeline leaves old config file #14

* Version change

* adde ( ) - and . to regex

* Replace NT timestamp with latency

* added back NT flush

* Add solvePNP, 3d tab on the UI, and some other misc bug fixes (#35)

* Rebase solvePNP on master

* added 3D tab minimap and csv reader

* More solvePNP

* Create draw pipe for pnp data

* SolvePNP piping work

* Move sorting into solvepnppipe

* Create calibration pipeline

* Update CalibrateSolvePNPPipeline.java

* add camera tilt angle

* Add calibration slider and snapshot button to 3D view

* Mirror updates in the socket handler

* add 3d calibration mode to the pipeline manager

* created calibration functions in ui and backend

* Start plumbing calibration

* Add snapshot and other handling to the RequestHandler

* added select resolution before starting calibration

* Rename solvePNPPipe to bounding box solve pnp pipe

* Update BoundingBoxSolvePNPPipe.java

* Add Mat serializer and CameraCalibrationConfig

* Begun calibration saving, fixed UI/Backend snapshot count mismatch

* Add (unplumbed) option to set checkerboard size

This will allow users to change the units their calibration is in

* Create chessboard.png

* Fix calibration NPE

* changed string serialization to a json send

* bug fixed cancellation button

* Fix spelling of snapshot in 3d.vue

* Plumb resolution change

* Set resolution during config, start on config serialization

* Update .gitignore

* Config fixes

* Start transition away from cvpipeline3d

* fix NPE on uncalibrated cameras

* clear list on fail

* Fix video mode index error

* ignore getters in camera calibration config

* Create json constructor for jsonmat

* get solvePNP mostly returning sane values

* Fix solvePNP bug and add unit test

* FIx calibration mat truncation

* added capture amount model upload and minimap data

* Standardize on meters in calibration and bounding box

* fix json out of bounds and handle null calibration more gracefully

* don't put text on calibrate image, go back to inches

* convert distance to meters

this means calibration will need to be in inches

* Actually save raw contor

* Update GroupContoursPipe.java

* Add all calibration return to camera capture

* hard code 2019 target

* bugfixed draw2d added fail calib popup, merge end and cancel

added the res index to the calib start

* Clarify error message and draw more fancy rectangles

* Cleanup memory in solvepnp

* re did minimap component

* fix npe if left/right is null

* remove references to 2d

* try-catch running the current pipeline

* Add method to find corners using the harris corner detector

* Possibly fix left/right missmatch

* Fix 3D Tab error

* FIx file permissions, mat serializer adjustments

* fixed mini map for field coordinates

* mini map changes fov

* Update SolvePNPPipe.java

* get rid of target corners

* some memory leak fixes

* fixed mini map location

* added position under minimap

* changed player fov look

* put all targets in the web send

* re did target send to ui added target tables, bugfix calibration

* fixed y position

* Add tilt angle to capture properties

* maybe fix y axis in minimap

* Add square size to onCalibrationEnding

* Possibly add square size to UI

* fix NPE with pitch

* Fix bug with sending multiple targets

* Only instantiate 3d stuff if we are in 3d mode

* Fix array list exceptions

* Fix bug in sort contors

list was truncated too early

* added download chess, tilt setting and ordinal tilt,

* added square size connection

* removed unused code

* Update pom version to 2.1-RELEASE

* Send camera calibrations to UI

* Stream pose list to a LIst

* Only stream necessary parts of the aux list entry

* Make broadcastMessage synchronized to prevent ConcurrentModificationExceptions

* added fps counter changed squaresize steps bug fixes in tables

* bugfix camera settings cam wont change

Authored-by: oriagranat9 <oriagranat9@gmail.com>

* disable pose print

* standardize on calibration in inches and add square size as a divisor

This should do the same thing as calibrating in the correct units but it doesnt like meeeeee

* updated pom for release, 3d calibration change, cosmetic changes

* WIP: 3D res filter

* bug fix in index parsing

* add good features to track point finder

* offset found corners by old tl position

* Add method to find most extreme per-quadrant points for solvePNP

* re did pipeline duplication

* Add release method to standard cv pipeline

* remove contor from tracked target

* Explicitly release all the intermediate results

* avoid creating new mats in group contors pipe

* removed mat release

* updated pom

* Actually cache the last target

We were trying to but i never hooked this part up

* Fix memory leak in sort contros pipe

* Fix memory leak in sort contors pipe

* Help more with memory usage in speckle reject and draw pipes

* minor bugfixes to the ui

* Start moving stream into vision process

Should probs move into a pipe to be idimatic

* justify bug fix

* Fix sort left/right bug

* Fix target grouping bug

* Avoid allocating a new mat in solvePNP, perf. increases in group contors pipe

* Event scripts (#36)

* Begin scripting work

* More scripting work

* Finalize scripting system

* Begin implementing script events

* Finalize script system

Co-authored-by: Banks T <btrout.dhrs@gmail.com>

Co-authored-by: OmerZ7 <zipory.omer@gmail.com>
Co-authored-by: Matt <matthew.morley.ca@gmail.com>
Co-authored-by: Banks T <btrout.dhrs@gmail.com>
2020-01-04 11:53:18 -08:00
oriagranat9
159dea1e25 Event scripts (#36)
* Begin scripting work

* More scripting work

* Finalize scripting system

* Begin implementing script events

* Finalize script system

Co-authored-by: Banks T <btrout.dhrs@gmail.com>
2020-01-04 06:20:28 -08:00
Matt
2ce8a8dad9 Avoid allocating a new mat in solvePNP, perf. increases in group contors pipe 2020-01-03 16:00:18 -08:00
Matt
a700001244 Fix target grouping bug 2020-01-03 15:49:59 -08:00
Matt
d3b0ddd3fc Fix sort left/right bug 2020-01-03 15:48:59 -08:00
ori agranat
36dd1544a6 justify bug fix 2020-01-03 20:06:50 +02:00
Matt
4275c43dd6 Merge branch 'dev' of https://github.com/chameleon-vision/Chameleon-Vision into dev 2020-01-03 09:54:35 -08:00