blob: e51ed0bda6d403ccd6642b04b1c6811d478d1856 [file] [log] [blame]
milind-ufbc48c92023-01-21 12:56:16 -08001py_binary(
2 name = "create_calib_file",
3 srcs = [
4 "create_calib_file.py",
5 ],
6 args = [
7 "calibration_data.h",
8 ],
9 data = glob(["calib_files/*.json"]),
10 target_compatible_with = ["@platforms//os:linux"],
11 visibility = ["//visibility:public"],
12 deps = [
13 "//frc971/vision:create_calib_file",
14 ],
15)
16
17genrule(
18 name = "run_calibration_data",
19 outs = [
20 "calibration_data.h",
21 ],
22 cmd = " ".join([
23 "$(location :create_calib_file)",
24 "$(location calibration_data.h)",
25 ]),
26 target_compatible_with = ["@platforms//os:linux"],
27 tools = [
28 ":create_calib_file",
29 ],
30)
31
32cc_library(
33 name = "calibration_data",
34 hdrs = [
35 "calibration_data.h",
36 ],
37 target_compatible_with = ["@platforms//os:linux"],
38 visibility = ["//visibility:public"],
39 deps = [
40 "@com_google_absl//absl/types:span",
41 ],
42)
43
Austin Schuhdb2ed9d2022-12-26 14:02:26 -080044cc_binary(
45 name = "camera_reader",
46 srcs = [
47 "camera_reader.cc",
48 ],
49 target_compatible_with = ["@platforms//os:linux"],
50 visibility = ["//y2023:__subpackages__"],
51 deps = [
52 "//aos:init",
53 "//aos/events:shm_event_loop",
54 "//frc971/vision:media_device",
55 "//frc971/vision:v4l2_reader",
56 ],
57)
58
59cc_binary(
60 name = "viewer",
61 srcs = [
62 "viewer.cc",
63 ],
64 target_compatible_with = ["@platforms//os:linux"],
65 visibility = ["//y2023:__subpackages__"],
66 deps = [
67 "//aos:init",
68 "//aos/events:shm_event_loop",
69 "//frc971/vision:vision_fbs",
70 "//third_party:opencv",
71 ],
72)