Giter Club home page Giter Club logo

adecaptcha's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

adecaptcha's Issues

Centos build issue

Hi, I have trouble to get this work at centos 7.
when I run python setup.py build_ext --inplace this warning ocure.

running build_ext
building 'adecaptcha.pwrspec' extension
creating build
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/adecaptcha
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c adecaptcha/pwrspec.c -o build/temp.linux-x86_64-2.7/adecaptcha/pwrspec.o
In file included from /usr/include/numpy/ndarraytypes.h:1781:0,
                 from /usr/include/numpy/ndarrayobject.h:18,
                 from /usr/include/numpy/arrayobject.h:4,
                 from adecaptcha/pwrspec.c:250:
/usr/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^
gcc -pthread -shared -Wl,-z,relro build/temp.linux-x86_64-2.7/adecaptcha/pwrspec.o -L/usr/lib64 -lpython2.7 -o /opt/adecaptcha/adecaptcha/pwrspec.so

but it's only warning so i tried next steps and finally when i tried
python adecaptcha.py ulozto.cfg http://sound_url with this result

WARNING: pyao module missing, will not be able to play audio
Traceback (most recent call last):
  File "adecaptcha.py", line 41, in main
    res=clslib.classify_audio_file(resp, args[0], ext=get_ext(resp.info()))
  File "/opt/adecaptcha/adecaptcha/clslib.py", line 42, in classify_audio_file
    features= audiolib.calc_mfcc(s, sr, nbins=cfg['nbins'])
  File "/opt/adecaptcha/adecaptcha/audiolib.py", line 259, in calc_mfcc
    rs= mymfcc.mfcc(sample, sr, nbins)
  File "/opt/adecaptcha/adecaptcha/mymfcc.py", line 18, in mfcc
    pw=pwrspec(sig, sr, nbins)
  File "adecaptcha/pwrspec.pyx", line 45, in adecaptcha.pwrspec.pwrspec (adecaptcha/pwrspec.c:2825)
  File "adecaptcha/pwrspec.pyx", line 21, in adecaptcha.pwrspec.winspos (adecaptcha/pwrspec.c:2221)
  File "adecaptcha/pwrspec.pyx", line 17, in adecaptcha.pwrspec.posbins (adecaptcha/pwrspec.c:2039)
  File "/usr/lib64/python2.7/site-packages/numpy/core/fromnumeric.py", line 2768, in around
    return round(decimals, out)
TypeError: ufunc 'rint' output (typecode 'd') could not be coerced to provided output parameter (typecode 'l') according to the casting rule ''same_kind''

Could you pls help me or could you give me some hint? dekuji

How to test it in windows

Hi izderadicka
It is so good to see such invension on decode audio captcha but what if i want to test it in window can you provide steps for it

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.