Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
ftl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolas Pope
ftl
Commits
58a4fb02
Commit
58a4fb02
authored
6 years ago
by
Nicolas Pope
Browse files
Options
Downloads
Patches
Plain Diff
Support variable delay in calibration
parent
8836624a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cv-node/config/config.json
+3
-3
3 additions, 3 deletions
cv-node/config/config.json
cv-node/include/ftl/calibrate.hpp
+1
-1
1 addition, 1 deletion
cv-node/include/ftl/calibrate.hpp
cv-node/src/calibrate.cpp
+1
-1
1 addition, 1 deletion
cv-node/src/calibrate.cpp
with
5 additions
and
5 deletions
cv-node/config/config.json
+
3
−
3
View file @
58a4fb02
...
...
@@ -8,8 +8,8 @@
"calibration"
:
{
"board_size"
:
[
9
,
6
],
"square_size"
:
50
,
"frame_delay"
:
1
0
0
,
"num_frames"
:
2
5
,
"frame_delay"
:
1
.
0
,
"num_frames"
:
3
5
,
"assume_zero_tangential_distortion"
:
true
,
"fix_aspect_ratio"
:
true
,
"fix_principal_point_at_center"
:
true
,
...
...
@@ -33,7 +33,7 @@
"disparity"
:
{
"algorithm"
:
"rtcensus"
,
"use_cuda"
:
true
,
"minimum"
:
1
0
,
"minimum"
:
0
,
"maximum"
:
208
,
"tau"
:
0.0
,
"gamma"
:
0.0
,
...
...
This diff is collapsed.
Click to expand it.
cv-node/include/ftl/calibrate.hpp
+
1
−
1
View file @
58a4fb02
...
...
@@ -35,7 +35,7 @@ class Calibrate {
float
squareSize
;
// The size of a square in your defined unit (point, millimeter,etc).
int
nrFrames
;
// The number of frames to use from the input for calibration
float
aspectRatio
;
// The aspect ratio
in
t
delay
;
// In case of a video input
floa
t
delay
;
// In case of a video input
bool
writePoints
;
// Write detected feature points
bool
writeExtrinsics
;
// Write extrinsic parameters
bool
writeGrid
;
// Write refined 3D target grid points
...
...
This diff is collapsed.
Click to expand it.
cv-node/src/calibrate.cpp
+
1
−
1
View file @
58a4fb02
...
...
@@ -409,7 +409,7 @@ bool Calibrate::_recalibrate(vector<vector<Point2f>> *imagePoints,
found1
=
findChessboardCorners
(
view
[
0
],
settings_
.
boardSize
,
pointBuf
[
0
],
chessBoardFlags
);
found2
=
!
local_
->
isStereo
()
||
findChessboardCorners
(
view
[
1
],
settings_
.
boardSize
,
pointBuf
[
1
],
chessBoardFlags
);
if
(
found1
&&
found2
&&
local_
->
getTimestamp
()
-
prevTimestamp
>
0.5
)
// If done with success,
if
(
found1
&&
found2
&&
local_
->
getTimestamp
()
-
prevTimestamp
>
settings_
.
delay
)
// If done with success,
{
prevTimestamp
=
local_
->
getTimestamp
();
// improve the found corners' coordinate accuracy for chessboard
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment