Spaces:
Runtime error
Runtime error
Update cam_geometry.py
Browse files- cam_geometry.py +26 -0
cam_geometry.py
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import numpy as np
|
| 2 |
from numpy import linalg
|
| 3 |
import math
|
|
|
|
| 1 |
+
# -----------------------------------------------------------------------------
|
| 2 |
+
#
|
| 3 |
+
# This file is part of the PantoScanner distribution on:
|
| 4 |
+
# https://huggingface.co/spaces/swissrail/PantoScanner
|
| 5 |
+
#
|
| 6 |
+
# PantoScanner - Analytics and measurement capability for technical objects.
|
| 7 |
+
# Copyright (C) 2017-2024 Schweizerische Bundesbahnen SBB
|
| 8 |
+
#
|
| 9 |
+
# Authors (C) 2024 L. Hofstetter (lukas.hofstetter@sbb.ch)
|
| 10 |
+
# Authors (C) 2017 U. Gehrig (urs.gehrig@sbb.ch)
|
| 11 |
+
#
|
| 12 |
+
# This program is free software: you can redistribute it and/or modify
|
| 13 |
+
# it under the terms of the GNU General Public License as published by
|
| 14 |
+
# the Free Software Foundation, either version 3 of the License, or
|
| 15 |
+
# (at your option) any later version.
|
| 16 |
+
#
|
| 17 |
+
# This program is distributed in the hope that it will be useful,
|
| 18 |
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 19 |
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 20 |
+
# GNU General Public License for more details.
|
| 21 |
+
#
|
| 22 |
+
# You should have received a copy of the GNU General Public License
|
| 23 |
+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
| 24 |
+
#
|
| 25 |
+
# -----------------------------------------------------------------------------
|
| 26 |
+
|
| 27 |
import numpy as np
|
| 28 |
from numpy import linalg
|
| 29 |
import math
|