Giter Site home page Giter Site logo

python-animeface's People

Contributors

nya3jp 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  avatar

python-animeface's Issues

is there a build for windows (amd64) ?

I tried to compile it but got:

  • Imaging.h not found
    then found it in Pillow-6.2.0 source got
  • nv_core_h. not found
    then found it (and many others dependent includes) in nvxs-1.0.2 source got
  • nv_ml_som.h not found
    then found in in Nagadomi (animeface & nv) sources, compile all with warnings and then got
  • nvxs.lib not found
    and then stopped because it's cirtainly wrong way
    Visual studio 2019

nv_core.h not found

I was attempting to set up a new python environment for animeface, but installation using pip install animeface fails with the following error:

animeface/_nvxs.c:21:10: fatal error: nv_core.h: No such file or directory
     #include "nv_core.h"
              ^~~~~~~~~~~
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    
    ----------------------------------------

I am running Manjaro Linux 18.0.0 (a derivative of Arch Linux) and I am running Python 3.7.1. Are there any additional packages I must install?

there's alittle bit slow

i am using this within a flask backend and it works well , but i get base64 encode face image quiet slow. Theres is at least 2s delay.

def detect2(file):
    ret = []
    img = Image.open(file)
    faces = animeface.detect(img)
    
    for it in faces:
        fp = it.face.pos
        # print(fp)
        buffer = BytesIO()
        crop = img.crop((fp.x, fp.y, fp.x + fp.width, fp.y + fp.height))
        crop.save(buffer, format='png')
        byte_data = buffer.getvalue()
        image_str = base64.b64encode(byte_data).decode()
        ret.append({"face": image_str})

    return ret

Ways to optimize python-animeface?

I'm implementing python-animeface as part of a larger project involving anime characters' faces. Insofar, python-animeface's algorithm has worked fairly well, but some images haven't worked as well. (e.g. this photo) It might very well be something wrong with my implementation of anime-face, but any chance you know of ways to optimize python-animeface?

Wheels for Python 3.11

It would be nice to get wheel for Python 3.11 (and possibly 3.12), as currently only 3.10 and prior are available

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.