zagor / watermeter Goto Github PK
View Code? Open in Web Editor NEWWater meter reader - Convert analog dials into a digital value
License: GNU General Public License v3.0
Water meter reader - Convert analog dials into a digital value
License: GNU General Public License v3.0
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.