-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Convert points to float before cv2.undistortPoints * Implement CameraGroup.triangulate and provide default triangulate_dlt_vectorized function * Test triangulate and cameras list * Return 3D nan for 2D all nans - Likely should also filter out points when only a single points is non-nan, but curious... * Handle points of arbitrary shape * Pydocstyle * Add CameraGroup fixture * Test triangulate shapes and use fixture * Add initial CameraGroup.project loops over Camera.project * Test CameraGroup.project * Add CameraGroup from/to dict and load methods * Add fixture for calibration toml * Test CameraGroup from/to dict and load * Docstring clarification and string spelling * Retain points shape when project * Test points shape is retained on project * Add to/from dict methods * Test to/from dict methods * Remove Camera aliases now that standalone triangulation method is implemented * Add get_camera and videos to RecordingSession * Formatting * Preserve datatype on triangulate and project * Return nan when underdetermined DLT * Lint * Test dtype is preserved on triangulate and reproject * Fix preserve dtype for project and update docstrings * Fix check for enough instances to triangulate * Retain points dtype on project * Test points dtype is retained on project * Increase test coverage * Improve docstrings * Lint --------- Co-authored-by: Talmo Pereira <[email protected]>
- Loading branch information
Showing
6 changed files
with
548 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
[cam_0] | ||
name = "back" | ||
size = [ 1280, 1024,] | ||
matrix = [ [ 762.513822135494, 0.0, 639.5,], [ 0.0, 762.513822135494, 511.5,], [ 0.0, 0.0, 1.0,],] | ||
distortions = [ -0.2868458380166852, 0.0, 0.0, 0.0, 0.0,] | ||
rotation = [ 0.3571857188780474, 0.8879473292757126, 1.6832001677006176,] | ||
translation = [ -555.4577842902744, -294.43494957092884, -190.82196458369515,] | ||
|
||
[cam_1] | ||
name = "backL" | ||
size = [ 1280, 1024,] | ||
matrix = [ [ 817.6484736604496, 0.0, 639.5,], [ 0.0, 817.6484736604496, 511.5,], [ 0.0, 0.0, 1.0,],] | ||
distortions = [ -0.33100176822475913, 0.0, 0.0, 0.0, 0.0,] | ||
rotation = [ -0.026283027462693898, -0.010379556518966196, -0.027099257463872917,] | ||
translation = [ 9.862823625864475, -26.76921192059893, -434.1389532578435,] | ||
|
||
[cam_2] | ||
name = "mid" | ||
size = [ 1280, 1024,] | ||
matrix = [ [ 757.8876636778425, 0.0, 639.5,], [ 0.0, 757.8876636778425, 511.5,], [ 0.0, 0.0, 1.0,],] | ||
distortions = [ -0.28903872836928324, 0.0, 0.0, 0.0, 0.0,] | ||
rotation = [ -0.37194922755270515, -0.4001867844465869, -1.0086626457565362,] | ||
translation = [ 170.36246990443806, -465.67014395255075, -308.4662718040283,] | ||
|
||
[cam_3] | ||
name = "midL" | ||
size = [ 1280, 1024,] | ||
matrix = [ [ 865.1641815534884, 0.0, 639.5,], [ 0.0, 865.1641815534884, 511.5,], [ 0.0, 0.0, 1.0,],] | ||
distortions = [ -0.36452920053871213, 0.0, 0.0, 0.0, 0.0,] | ||
rotation = [ 0.05817434916890774, -1.054534889033804, -2.7344311787180726,] | ||
translation = [ 64.84029309392507, -664.6153475753681, -175.7828934255145,] | ||
|
||
[cam_4] | ||
name = "side" | ||
size = [ 1280, 1024,] | ||
matrix = [ [ 754.7093944045533, 0.0, 639.5,], [ 0.0, 754.7093944045533, 511.5,], [ 0.0, 0.0, 1.0,],] | ||
distortions = [ -0.2952746154319528, 0.0, 0.0, 0.0, 0.0,] | ||
rotation = [ -0.8648522139486137, -1.1788453690264329, -1.0219549009876152,] | ||
translation = [ 260.9490547859552, -1027.1241968566128, 279.38287656265214,] | ||
|
||
[cam_5] | ||
name = "sideL" | ||
size = [ 1280, 1024,] | ||
matrix = [ [ 754.8402306632529, 0.0, 639.5,], [ 0.0, 754.8402306632529, 511.5,], [ 0.0, 0.0, 1.0,],] | ||
distortions = [ -0.28917397473074263, 0.0, 0.0, 0.0, 0.0,] | ||
rotation = [ -0.7375958632452171, -1.5393315718217462, -1.3307245772011242,] | ||
translation = [ 254.07566513275054, -1043.3222053681916, 408.2123665768046,] | ||
|
||
[cam_6] | ||
name = "top" | ||
size = [ 1280, 1024,] | ||
matrix = [ [ 958.8409001521982, 0.0, 639.5,], [ 0.0, 958.8409001521982, 511.5,], [ 0.0, 0.0, 1.0,],] | ||
distortions = [ -0.2883038721040841, 0.0, 0.0, 0.0, 0.0,] | ||
rotation = [ 0.14923195260261604, -0.35651045266677683, -1.571999724050101,] | ||
translation = [ 320.58744336418937, -113.31460508230508, -298.24659146410477,] | ||
|
||
[cam_7] | ||
name = "topL" | ||
size = [ 1280, 1024,] | ||
matrix = [ [ 860.8004120100271, 0.0, 639.5,], [ 0.0, 860.8004120100271, 511.5,], [ 0.0, 0.0, 1.0,],] | ||
distortions = [ -0.34378860528857375, 0.0, 0.0, 0.0, 0.0,] | ||
rotation = [ 0.19329909189795189, -0.4852167922768701, -1.5625699029758116,] | ||
translation = [ 459.78373522464585, -180.81976306477637, -266.6352363727575,] | ||
|
||
[metadata] |
Oops, something went wrong.