Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ii64/Image2Anime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

18 Commits

Repository files navigation

Image2Anime

Version 1.1.1 License: MIT Supported python versions: 3.6

Refrence

The Endpoint isn't mine, I just make the API

Usage

First of all, you need to install the library

 $ python setup.py install

First use

 >>> import Image2Anime

To check your quota

 >>> stat = Image2Anime.Me()
 >>> # If you have the token
 >>> stat = Image2Anime.Me('theTokenHere')

To start search the anime by local path

 >>> res = Image2Anime.Search(r'/path/to/source')

To start search the anime by io text/buffer

 >>> with open(r'/path/to/source', 'rb') as fp:
 ...... res = Image2Anime.Search(fp)

To start search the anime by raw image binary

 >>> res = Image2Anime.Search(image_raw=b"the image binary here")

To start search the anime by url

 >>> res = Image2Anime.Search(url="http://the_image_url_here")

To get the results

 >>> print(res); print(res.result)

To get match scenes and get other information

 >>> first_match = res.result.scenes[0]; other_information = first_match.getInfo(); duration = first_match.getDuration();
 >>> # Its example how to get result data - the getInfo and getDuration stored on memory so you only need to do once
 >>> print(first_match)

QnA

 Q : Whats the first step?
 A : python setup.py install
 Q : Where's the example?
 A : At tests folder
 Q : Lib imported not found?
 A : pip install PACKAGENAME
 Q : Your issue not solved?
 A : Create new issue with what your problem and what you want to achieve :D

Screenshot

alt_tag

Special Thanks

Soruly

Author

Anysz / @Anysz

About

Gimme your image, I'll search it for ya ;)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

Languages

AltStyle によって変換されたページ (->オリジナル) /