Commit 55e23e6b authored by Mian Ahmad's avatar Mian Ahmad

Issue #26: Old commented code removed

parent 2eaba00e
......@@ -7,8 +7,6 @@ import json
import numpy as np
import sksurgerybard.algorithms.bard_calibration_algorithms as bca
# def run_demo(input_dir, output_dir, width, height, grid_size_mm, verbose):
def run_demo(config_file):
""" Demo app, to perform camera calibration """
......
......@@ -23,50 +23,6 @@ def main(args=None):
type=str,
help="Configuration file containing the parameters")
# parser.add_argument("-i", "--input",
# required=True,
# help="Directory containing png images of "
# "chessboard."
# )
#
# parser.add_argument("-o",
# "--output",
# required=False,
# default='./',
# help="Output text file for intrinsic and "
# "distortion params"
# )
#
# parser.add_argument("-x", "--xcorners",
# required=False,
# default=14,
# help="Number of internal corners "
# "along the width (x)",
# type=int
# )
#
# parser.add_argument("-y", "--ycorners",
# required=False,
# default=10,
# help="Number of internal corners "
# "along the height (y)",
# type=int
# )
#
# parser.add_argument("-s", "--size",
# required=False,
# default=3,
# help="Square size in millimetres",
# type=float
# )
#
# # ADD OPTINAL ARGUMENTS
#
# parser.add_argument("-v", "--verbose",
# action="store_true",
# help="Enable verbose output",
# )
version_string = __version__
friendly_version_string = version_string if version_string else 'unknown'
parser.add_argument(
......@@ -76,14 +32,4 @@ def main(args=None):
args = parser.parse_args(args)
# Gets the directory containing images.
# input_dir = args.input
# output_dir = args.output
# width = args.xcorners
# height = args.ycorners
# size = args.size
# verbose = args.verbose
# run_demo(input_dir, output_dir, width, height, size, verbose)
# print('The value of arg is ', args)
run_demo(args.config)
......@@ -43,12 +43,6 @@ def test_return_value():
def test_fewer_images():
# input_dir = 'tests/data/Calibration_test_case/'
# output_dir = 'tests/data/'
# width = 14
# height = 10
# size = 3
# verbose = False
config_data = 'config/calibration_input_test.json'
with pytest.raises(RuntimeError):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment