Add generic camera definition class to frc971

Also, start pulling the extrinsics from the json instead of having them
hard-coded in the python file.

Signed-off-by: milind-u <milind.upadhyay@gmail.com>
Change-Id: I51f2af3848e9476dfca58c867ff7624497a893ba
diff --git a/frc971/vision/BUILD b/frc971/vision/BUILD
index 195634e..f1d4b83 100644
--- a/frc971/vision/BUILD
+++ b/frc971/vision/BUILD
@@ -46,6 +46,21 @@
     visibility = ["//visibility:public"],
 )
 
+py_library(
+    name = "create_calib_file",
+    srcs = [
+        "create_calib_file.py",
+    ],
+    target_compatible_with = ["@platforms//os:linux"],
+    visibility = ["//visibility:public"],
+    deps = [
+        ":calibration_fbs_python",
+        "@bazel_tools//tools/python/runfiles",
+        "@pip//glog",
+        "@pip//opencv_python",
+    ],
+)
+
 cc_library(
     name = "v4l2_reader",
     srcs = [