Skip to content

Commit

Permalink
Link opencv.
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliotScher committed Oct 22, 2024
1 parent 83d2c08 commit 8436c65
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 28 deletions.
1 change: 1 addition & 0 deletions wpical/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ model {
lib project: ':wpimath', library: 'wpimath', linkage: 'static'
lib project: ':apriltag', library: 'apriltag', linkage: 'static'
nativeUtils.useRequiredLibrary(it, 'ceres')
nativeUtils.useRequiredLibrary(it, 'opencv_static')
if (it.targetPlatform.operatingSystem.isWindows()) {
it.linker.args << 'Gdi32.lib' << 'Shell32.lib' << 'd3d11.lib' << 'd3dcompiler.lib'
} else if (it.targetPlatform.operatingSystem.isMacOsX()) {
Expand Down
56 changes: 28 additions & 28 deletions wpical/src/main/native/resources/camera calibration.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"avg_reprojection_error": 0.4013144307258122,
"camera_matrix": [
1767.289258236593,
0.0,
989.375282791521,
0.0,
1762.888503314327,
540.8313845443114,
0.0,
0.0,
1.0
],
"distortion_coefficients": [
0.3860266675089004,
-2.563775891333845,
-0.0011477914008921702,
0.0017287037946633974,
5.69767996193624,
0.03549071109208592,
0.11781261237320696,
-0.22713730056480883,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
"avg_reprojection_error": 0.4013144307258122,
"camera_matrix": [
1767.289258236593,
0.0,
989.375282791521,
0.0,
1762.888503314327,
540.8313845443114,
0.0,
0.0,
1.0
],
"distortion_coefficients": [
0.3860266675089004,
-2.563775891333845,
-0.0011477914008921702,
0.0017287037946633974,
5.69767996193624,
0.03549071109208592,
0.11781261237320696,
-0.22713730056480883,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
}

0 comments on commit 8436c65

Please sign in to comment.