localdevices / pyorc

Surface velocity, object tracking, and river flow measurements in an open-source API
GNU Affero General Public License v3.0
129 stars 31 forks source link

project method numpy yields funny results with very low angles. #171

Closed hcwinsemius closed 1 week ago

hcwinsemius commented 3 weeks ago

test with example video from hagestein with cam config

hcwinsemius commented 2 weeks ago

problem seems to be with camera_config.unproject_points yielding buggy results.

hcwinsemius commented 2 weeks ago

cv2.perSpectiveTransform is the culprit. Gives instable results in parts of the domain. See img below image

hcwinsemius commented 2 weeks ago

may be related to vanishing point lying inside the image. See discussion https://github.com/opencv/opencv/issues/18698