Coder Social home page Coder Social logo

easycombinepictures's Introduction

EasyCombinePictures

A software which easy to combine your pictures.

命令行接口 CLI

EasyCombinePictures <picture_config_path> <work_id>

picture_config_path:图片配置(工程)文件。

work_id:工作号。是该进程的不重复标识符。程序的输出图片会以work_id开头,以.bmp为结尾的图片。

配置文件

采用YAML格式进行编写。

pic_config:
 <配置选项>
pics:
 <图片对象>

配置选项

键名为pic_config,后面的值是配置选项的内容。没有可以填写~

排列格式

键名为pic_arrangement,默认值为'r'

pic_arrangement: 'l' #表示排成一横行。
pic_arrangement: 'r' #表示排成一竖列。

设置回调文件

键名为set_callback_file,默认值为false

set_callback_file: true #表示程序会在运行结束前放置一个以`wotk_id`开头,`.out`的文件,其中第一行是返回值,`0`表示成功,如果不是的话,下一行及之后的东西是报错信息。这个文件也可能不会产生,如未能成功读取图片配置文件的情况下。

图片对象集

键名为pics

值的格式:

pics:
 -
  path: 'dir/picture1.ext'
  text: 'A text.' #可以不写或设置成为text。
 -
  path: 'dir/picture2.ext'

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.