Compare commits
No commits in common. "d1bdf937db05045333dd3baedba2cebd5d31e8f8" and "8494fa4ec57dd34cd136687726ad6b273754ac10" have entirely different histories.
d1bdf937db
...
8494fa4ec5
@ -183,10 +183,16 @@ for file in os.listdir(input_folder):
|
|||||||
# feature voor ooit, nogal lastig
|
# feature voor ooit, nogal lastig
|
||||||
|
|
||||||
## Calibratie van afstand met betrekking tot pixels ##
|
## Calibratie van afstand met betrekking tot pixels ##
|
||||||
xs = [corner[0] for corner in warped_corners]
|
x_min = w_small
|
||||||
ys = [corner[1] for corner in warped_corners]
|
x_max = 0
|
||||||
x_max = np.amax(xs)
|
for corner in warped_corners:
|
||||||
x_min = np.amin(xs)
|
# vind x waarden bovenaan
|
||||||
|
(x, y) = corner
|
||||||
|
if y < (h_small // 2):
|
||||||
|
if x < x_min:
|
||||||
|
x_min = x
|
||||||
|
else:
|
||||||
|
x_max = x
|
||||||
x_diff = x_max - x_min
|
x_diff = x_max - x_min
|
||||||
calib_scale = x_diff / CALIB_AFSTAND
|
calib_scale = x_diff / CALIB_AFSTAND
|
||||||
if VERBOSE:
|
if VERBOSE:
|
||||||
|
Loading…
Reference in New Issue
Block a user