Skip to content

Commit

Permalink
fixed parameter parsing in create_camera
Browse files Browse the repository at this point in the history
  • Loading branch information
thmoa committed Jul 16, 2018
1 parent 1508a84 commit 77429c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prepare_data/create_camera.py
Expand Up @@ -18,9 +18,9 @@
parser.add_argument('out', type=str, help="Output file (.pkl)")
parser.add_argument('width', type=int, help="Frame width in px")
parser.add_argument('height', type=int, help="Frame height in px")
parser.add_argument('-f', type=float, nargs='?', help="Focal length in px (2,)")
parser.add_argument('-c', type=float, nargs='?', help="Principal point in px (2,)")
parser.add_argument('-k', type=float, nargs='?', help="Distortion coefficients (5,)")
parser.add_argument('-f', type=float, nargs='*', help="Focal length in px (2,)")
parser.add_argument('-c', type=float, nargs='*', help="Principal point in px (2,)")
parser.add_argument('-k', type=float, nargs='*', help="Distortion coefficients (5,)")

args = parser.parse_args()

Expand Down

0 comments on commit 77429c3

Please sign in to comment.