An open API service indexing awesome lists of open source software.

https://github.com/lonsty/pic2sketch

图片转成素描画。Convert picture to sketch.
https://github.com/lonsty/pic2sketch

sketch

Last synced: 5 months ago
JSON representation

图片转成素描画。Convert picture to sketch.

Awesome Lists containing this project

README

          

# pic2sketch

A command line kit to convert a picture to a sketch.

## Project Features

* [pic2sketch](http://pic2sketch.readthedocs.io/)
* a starter [Click](http://click.pocoo.org/5/) command-line application
* automated unit tests you can run with [pytest](https://docs.pytest.org/en/latest/)
* a [Sphinx](http://www.sphinx-doc.org/en/master/) documentation project

## Getting Started

The project's documentation contains a section to help you
[get started](https://pic2sketch.readthedocs.io/en/latest/getting_started.html) as a developer or
user of the library.

## Examples

```sh
# Install via PIP
$ pip install -U pic2sketch
# Usage
$ p2sk [-s INTETER] < FILE | DIRECTORY >
```

Example picture:

![](examples/gsl.jpg)

- `-s 10`

![](examples/gsl_10.jpg)

- `-s 30`

![](examples/gsl_30.jpg)

- `-s 50`

![](examples/gsl_50.jpg)

- `-s 200`

![](examples/gsl_200.jpg)

## Development Prerequisites

If you're going to be working in the code (rather than just using the library), you'll want a few utilities.

* [GNU Make](https://www.gnu.org/software/make/)
* [Pandoc](https://pandoc.org/)

## Resources

Below are some handy resource links.

* [Project Documentation](http://pic2sketch.readthedocs.io/)
* [Click](http://click.pocoo.org/5/) is a Python package for creating beautiful command line interfaces in a composable way with as little code as necessary.
* [Sphinx](http://www.sphinx-doc.org/en/master/) is a tool that makes it easy to create intelligent and beautiful documentation, written by Geog Brandl and licnsed under the BSD license.
* [pytest](https://docs.pytest.org/en/latest/) helps you write better programs.
* [GNU Make](https://www.gnu.org/software/make/) is a tool which controls the generation of executables and other non-source files of a program from the program's source files.

## Authors

* **Allen Shaw** - *Initial work* - [github](https://github.com/lonsty)

See also the list of [contributors](https://github.com/lonsty/pic2sketch/contributors) who participated in this project.

## LicenseMIT License

```
Copyright (c) lonsty

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```