GithubHelp home page GithubHelp logo

watermeter's Introduction

watermeter

Water meter reader - Convert analog dials into a digital value

Photo of water meter

watermeter's People

Contributors

zagor avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

watermeter's Issues

"AttributeError: 'module' object has no attribute 'cv'" (Ubuntu 17.10)

Ubuntu 17.10, after sudo apt-get install python-opencv, running watermeter, I get:

sander@Stream-13:~/git/watermeter$ python watermeter.py sample1.jpg 
Traceback (most recent call last):
  File "watermeter.py", line 196, in <module>
    fromleft = findCircles(red)
  File "watermeter.py", line 45, in findCircles
    circles = cv2.HoughCircles(img, cv2.cv.CV_HOUGH_GRADIENT, 1, 50,
AttributeError: 'module' object has no attribute 'cv'

Am I doing something wrong?

On Ubuntu 14.04, it works:

sander@haring:~/git/watermeter$ python watermeter.py sample1.jpg
314.93 liter

question1

Hello,Thank you push the code on the GitHub,and I hava a question fllow.Can you give me advice? Thank you!!
PS C:\Users\Administrator\Desktop\watermeter-master\watermeter-master> python .\watermeter.py .\sample1.jpg
Traceback (most recent call last):
File ".\watermeter.py", line 237, in
val = findAngle(cut, redcut, (radius, radius), (radius*2))
File ".\watermeter.py", line 146, in findAngle
cv2.line(img, (tip[0], tip[1]), (center[0], center[1]), (255,0,255), 2)
TypeError: integer argument expected, got float

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.