Code Monkey home page Code Monkey logo

aiphoto's Introduction

知乎专栏

aiphoto

最近要去办事情,很多地方都需要证件照,最近刚好在看AI,人脸识别,图形识别相关的知识,就打算利用这些技术开发一个证件照功能

蓝底原始图:

image-20200715000133867

关键特征描述:

image-20200715000232798

裁剪后的2寸照片:

image-20200715000251662

文档

通过文档可以快速上手和了解项目。

1.python环境搭建

2.卷积神经网络模型人像分割

3.利用PyMatting替换背景颜色

更新记录

2020年7月4日更新

本次更新版本: v20200704

本次更新了,通过卷积神经网络模型分割人像

文档: 卷积模型人像分割

2020年7月9日更新

本次更新版本: v20200709

本次更新了,通过PyMatting框架,利用trimap分割前景人像,将背景替换成证件照背景

文档:利用PyMatting替换成证件照背景

2020年7月15日更新

本次更新版本: v20200715

本次更新了,通过dlib框架,裁剪成标准尺寸照片

文档:裁剪照片

2020年7月26日更新

本次更新版本: v20200726

文档: 小程序拍照上传生成证件照

aiphoto's People

Contributors

itainf 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

Watchers

 avatar

aiphoto's Issues

ModuleNotFoundError: No module named 'pymatting_aot.aot' 你好,怎解决这个问题啊,也是版本对的啊

Traceback (most recent call last):
File "D:\install_dir\Anaconda\Ana\envs\AIPhoto\lib\site-packages\pymatting_aot\cc.py", line 36, in
import pymatting_aot.aot
ModuleNotFoundError: No module named 'pymatting_aot.aot'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:/BS/aiphoto-master/m_web/web.py", line 3, in
import m_web.upload as upload
File "D:\BS\aiphoto-master\m_web\upload.py", line 5, in
from to_background import to_background
File "D:\BS\aiphoto-master\to_background\to_background.py", line 1, in
from pymatting import *
File "D:\install_dir\Anaconda\Ana\envs\AIPhoto\lib\site-packages\pymatting_init_.py", line 2, in
import pymatting_aot.cc
File "D:\install_dir\Anaconda\Ana\envs\AIPhoto\lib\site-packages\pymatting_aot\cc.py", line 54, in
compile_modules()
File "D:\install_dir\Anaconda\Ana\envs\AIPhoto\lib\site-packages\pymatting_aot\cc.py", line 8, in compile_modules
cc = CC("aot")
File "D:\install_dir\Anaconda\Ana\envs\AIPhoto\lib\site-packages\numba\pycc\cc.py", line 65, in init
self._toolchain = Toolchain()
File "D:\install_dir\Anaconda\Ana\envs\AIPhoto\lib\site-packages\numba\pycc\platform.py", line 78, in init
self._raise_external_compiler_error()
File "D:\install_dir\Anaconda\Ana\envs\AIPhoto\lib\site-packages\numba\pycc\platform.py", line 121, in _raise_external_compiler_error
raise RuntimeError(msg)
RuntimeError: Attempted to compile AOT function without the compiler used by numpy.distutils present

怎么得到trimap?

您好,我看教程u2net的文章中没有出现分割成trimap的教程,pymatting不是需要原图和trimap图嘛?

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.