Commit Graph

54 Commits

Author SHA1 Message Date
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
Matt
f9aca69980 Start moving stream into vision process
Should probs move into a pipe to be idimatic
2020-01-03 09:54:05 -08:00
Matt
423cf2daf9 Help more with memory usage in speckle reject and draw pipes 2020-01-03 09:28:41 -08:00
Matt
6920f2e1a4 Fix memory leak in sort contors pipe 2020-01-02 20:21:35 -08:00
Matt
0c1e31bcf3 Fix memory leak in sort contros pipe 2020-01-02 18:47:27 -08:00
Matt
b9a0ca2f44 Actually cache the last target
We were trying to but i never hooked this part up
2020-01-02 16:35:03 -08:00
ori agranat
3219637451 removed mat release 2020-01-03 01:30:25 +02:00
Matt
113ec3c217 avoid creating new mats in group contors pipe 2020-01-02 12:28:51 -08:00
Matt
23796184e0 Explicitly release all the intermediate results 2020-01-02 11:43:04 -08:00
Matt
14e3babd2a remove contor from tracked target 2020-01-02 11:27:34 -08:00
Matt
a1c54db1be Merge branch 'dev' of https://github.com/chameleon-vision/Chameleon-Vision into dev 2020-01-02 11:11:39 -08:00
Matt
6366ca6296 Add release method to standard cv pipeline 2020-01-02 11:11:36 -08:00
ori agranat
7aa17e83b7 re did pipeline duplication 2020-01-02 20:45:54 +02:00
Matt
844d10335c Add method to find most extreme per-quadrant points for solvePNP 2020-01-02 09:53:44 -08:00
Matt
bf54a2d53f offset found corners by old tl position 2020-01-01 23:32:25 -08:00
Matt
ea4712b033 add good features to track point finder 2020-01-01 23:28:38 -08:00
Matt
9559bb360e 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
2019-12-31 16:38:52 -08:00
Matt
347b3274d7 disable pose print 2019-12-31 16:02:20 -08:00
Matt
1decd2c3d7 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>
2019-12-31 14:53:20 +02:00
Unknown
d8c027dae7 added back NT flush 2019-12-22 10:27:50 +02:00
Banks Troutman
0446d3e546 Replace NT timestamp with latency 2019-12-15 00:42:49 -05:00
OmerZ7
92ccd5aed1 Merge pull request #30 from Chameleon-Vision/pipeline-popup
Pipeline popup for renaming and creating
2019-12-10 15:33:31 +02:00
Omer
4cd172bf47 Fix for Renaming pipeline leaves old config file #14 2019-12-10 00:02:24 +02:00
ori agranat
d5d6171547 added pipeline popup 2019-12-09 22:34:35 +02:00
Omer
4838b2fdd9 Merge branch 'dev' of https://github.com/Chameleon-Vision/chameleon-vision into dev 2019-12-09 21:38:37 +02:00
Omer
72fb7b2339 NT can set pipeline to out on bound indexes 2019-12-09 21:38:18 +02:00
Banks Troutman
ceffd68e85 Add speed limit to UI Updates 2019-12-08 22:57:30 -05:00
Omer
0a051a88a3 fixed Stream divisor problems see issue 19 in github issues 2019-12-09 01:45:14 +02:00
Omer
857172efc9 typo 2019-12-09 01:17:27 +02:00
Omer
b92a06895c Fixed bug when selecting the same 90 deg rotation twice causes crosshair to move 2019-12-07 01:53:42 +02:00
Omer
617e9b4b34 Removed commented lines 2019-12-07 00:40:27 +02:00
Omer
ed5c90f51b Fix lack of access problems after moving pipleline impl out of the same package 2019-12-07 00:39:14 +02:00
Omer
88befb4d90 File stucture change, moved Pipeline implementation and their settings to /impl folder, refracted imports 2019-12-07 00:20:04 +02:00
Omer
339d6dc478 Created new CaptureStaticProperties when rotating cam 2019-12-06 23:48:21 +02:00
Omer
32d9a7e3fd change compatator to sqared values to make caluclation faster (no need for sqare root function) 2019-12-05 23:05:01 +02:00
Omer
2040620270 fixed problem with clear points in single point calibration 2019-12-05 23:01:27 +02:00
Omer
7bec1bfdfe Removed java fix for crash bug 2019-12-05 22:10:58 +02:00
Omer
9300273811 disable dual point crosshair for now 2019-12-05 00:23:37 +02:00
Omer
054e6dd002 Reverted subclass "Calibration"
Fixed bug where single point calibration causes crash when no target is found
2019-12-05 00:04:17 +02:00
Omer
7f1e8909f3 moved calibration stuff to static class under 2d pipeline settings 2019-12-04 22:49:07 +02:00
Omer
1921ce3a40 removed unsued comment 2019-12-04 22:48:42 +02:00
Omer
a214e83e17 compilation fix 2019-12-04 17:55:08 +02:00
Omer
2ffebfbaee Added crosshair pipe 2019-12-04 16:38:50 +02:00
Banks Troutman
a7dcf08aa8 Pipeline mat copy fix 2019-12-03 13:35:59 -05:00
Banks Troutman
c2cf5a8ad1 Multi-camera fix 2019-12-01 15:40:02 -05:00
ori agranat
1858df993d bug for point data and bug fix for group contours 2019-12-01 22:06:06 +02:00
Banks Troutman
58d421166d Potential UI result fix 2019-12-01 14:45:59 -05:00
Banks Troutman
0f5119b77f Less hacky leak fix for Streamer 2019-12-01 13:38:04 -05:00