GithubHelp home page GithubHelp logo

rayryeng / xiaohuluvpdetection Goto Github PK

View Code? Open in Web Editor NEW
133.0 133.0 29.0 98 KB

This is a Python + OpenCV implementation of the Vanishing Point algorithm by Xiaohu Lu et al. - http://xiaohulugo.github.io/papers/Vanishing_Point_Detection_WACV2017.pdf

License: MIT License

Python 100.00%
computer-vision image-processing line-detection opencv python rotation-matrix vanishing-points

xiaohuluvpdetection's People

Contributors

rayryeng avatar sajjadaemmi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

xiaohuluvpdetection's Issues

calculate focal length

The image has been reduced down to 1/4 of the resolution for ease. The new image has dimensions of 968 x 648. The image was originally taken with a Nikon D40X whose focal length is 18 mm and the CCD width is 15.8 mm. Therefore, the estimated focal length should be: 968 x (18 / 15.8) = 1102.79 pixels

Hi
If I use cv2.calibrateCamera() function (link) (link) to get the intrinsic matrix as:
K = array([[1.73168104e+03, 0.00000000e+00, 2.00203504e+03],
[0.00000000e+00, 1.73355936e+03, 1.46564886e+03],
[0.00000000e+00, 0.00000000e+00, 1.00000000e+00]])
Is 1731.68 and 1733.56 my focal length?
Thank you in advance!

ERROR: No matching distribution found for opencv-contrib-python==4.0.0.21

I am using opencv-python version 3.4.9.33 and opencv-contrib-python 3.4.9.33

tried installing through pyPi.
this errror message is thrown :

ERROR: Could not find a version that satisfies the requirement opencv-contrib-python==4.0.0.21 (from lu-vp-detect) (from versions: 3.4.8.29, 3.4.9.31, 3.4.9.33, 3.4.10.35, 3.4.10.37, 3.4.11.39, 3.4.11.41, 3.4.11.43, 3.4.11.45, 3.4.13.47, 3.4.14.51, 3.4.14.53, 3.4.15.55, 4.1.2.30, 4.2.0.32, 4.2.0.34, 4.3.0.36, 4.3.0.38, 4.4.0.40, 4.4.0.42, 4.4.0.44, 4.4.0.46, 4.5.1.48, 4.5.2.52, 4.5.2.54, 4.5.3.56)
ERROR: No matching distribution found for opencv-contrib-python==4.0.0.21

Problem with opencv installation

error: Could not find suitable distribution for Requirement.parse('opencv-contrib-python==4.0.0.21')

Tried with pip as well as cloning the code from your repo. Both are throwing the same error.

Replace use of OpenCV's LSD detector

Currently the algorithm uses OpenCV's LSD detector which has been made unavailable after version 4.0.0.21 due to licensing issues.

This is here to remind me to implement the LSD detector from scratch or to use another module that doesn't have licensing issues so that people aren't forced to use this version of OpenCV.

Something missing?!

Not sure if this project has been canned/sabotaged or what?!

Trying to install and when running "python setup.py build" I get...

   file lu_vp_detect.py (for module lu_vp_detect) not found

I had to manually create the version.py file to get this far.

Please let me know one way or the other if this can be resurrected
Thanks
Stef

Forget this, I resolved my installation problem

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.