GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - David-Lor/python-qqddm: Python wrapper for QQ "Different Dimension Me" AI (convert pictures into anime avatars)

BranchesTags
Open more actions menu

Latest commit

 

History

16 Commits
16 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
docs
docs
 
 
qqddm
qqddm
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
example.py
example.py
 
 
requirements.txt
requirements.txt
 
 
setup.py
setup.py
 
 

Repository files navigation

QQ's "Different Dimension Me" Animefier Python library

Python wrapper for QQ's "Different Dimension Me" AI API, that applies an anime-theme to any given picture.

Installing

This package was developed & tested under Python 3.9. Available on PyPI:

pip install --user qqddm

Usage

Check the example code.

Known issues and limitations of the API

  • Only pictures with human faces: since 2022-12-06, the QQ's API became stricter with the pictures being converted, and requires them to have a human face.
  • Forbidden images: the QQ's API refuses to convert images with sensible or political content.

Changelog

Versions 0.y.z are expected to be unstable, and the library API may change on Minor (y) releases.

  • 0.1.1
    • Update to the new "overseas" API, which can be used from outside China
    • Fix how images are downloaded using threads
  • 0.0.3
    • Add new custom exception ParamInvalidQQDDMApiResponseException
    • Refactor mapping of API response codes with custom exceptions, now done programatically, defining the corresponding response code on each exception class
  • 0.0.2
    • Add new x-sign headers required by the API since 2022-12-06.
    • Add new custom exceptions based on errors returned by the API: VolumnLimitQQDDMApiResponseException, AuthFailedQQDDMApiResponseException, NotAllowedCountryQQDDMApiResponseException, NoFaceInPictureQQDDMApiResponseException.
  • 0.0.1
    • Initial release:
      • Class-based interface.
      • Pass an image (as bytes) and send it to QQ API, returning the resulting images URLs.
      • Download the returned images URLs.
      • Requests settings (different for QQ API and for downloading result images): request timeouts, proxy, user-agents.

About

Python wrapper for QQ "Different Dimension Me" AI (convert pictures into anime avatars)

Topics

aianimedifferent-dimension-melibrarypythonpython3qqscraper

Resources

Readme
ISC license
Activity

Stars

21 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.