Giter VIP home page Giter VIP logo

id-photo-miniapp-wechart's Introduction

证件照 小程序 (原生微信小程序 + 云开发)

欢迎提出改进意见,觉得不错点个 Star

项目仅供学习,如有雷同应用,必究。

功能

用于免费快速生成证件照

  • 可自定义照片尺寸、背景颜色

  • 支持换装、换发型

  • 支持手势拖拽缩放编辑图片

  • 客服消息自动回复

  • 定时触发器

  • 云函数海报生成,图片合成


项目本地运行

  1. 下载开发者工具并且申请小程序账号(选择下载好的项目,appid 填写为你的小程序appid)
  2. 开通云开发
  3. 上传并部署云函数
  4. 创建数据库集合4个 (user、tmp-file、share、photo_size)
  5. 导入数据到 photo_size, 数据在 cloudfunctions\photoSizeJson\
  6. 注册百度AI开放平台人像分割 https://ai.baidu.com/tech/body/seg (记下 API_KEY、APP_ID、SECRET_KEY )
  7. 找到百度抠图云函数, 配置云函数--> 高级配置 --> 环境变量 添加环境变量(API_KEY、APP_ID、SECRET_KEY), 超时时间改为 20秒。
  8. 其他的可能超时的云函数,修改超时时间为20s。
  9. image资源加载失败,根据需要上传文件到云存储并修改引用路劲或fileID。
  10. 预览

小程序码

欢迎*扰

赞赏支持

id-photo-miniapp-wechart's People

Contributors

liuxiaojun666 avatar

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.