cehua_hzl
2018-08-28 f57b645c7029588aab1e2c10029b15ec5477e51a
ZoneServerGroup/map1_8G/MapServer/MapServerData/CaptchaImage/VerificationCodePic/config.ini
New file
@@ -0,0 +1,223 @@
###################################################
# background 背景图
#
#    type 背景图来源
#   1.自动绘制 2.从指定路径装载随机使用
#
#    path 装载路径
#       相对路径
#
#    width 自绘制图片宽度 (注意:OutPut模块的剪切 crop才是真正的输入范围)
#   0-1000
#
#    height 自绘制图片高度
#   0-1000
#
#    colortype 自绘制图片颜色
#   1.使用默认颜色 2.随机颜色
#
#    defaultcolor 自绘制图片默认颜色
#   R,G,B
#
#    randomcolor 自绘制图片
#   minR,maxR,minG,maxG,minB,maxB
#
###################################################
[background]
type = 1
path = background
width = 180
height = 80
colortype = 2
defaultcolor = 255,255,255
randomcolor = 200,255,200,255,200,255
###################################################
# text 文字内容
#
#    createtype 产生类型
#   1 所有字符使用统一采样集合 2 每个字符单独采样集合
#
#------------------createtype:1-------------------
#
#    digital 是否包含数字
#   1;0
#
#    supper 是否包含大写字母
#       1;0
#
#    lower 是否包含小写字母
#   1;0
#
#    ignoresupper 是否忽略大小写(如果忽略,取小写value)
#   1;0
#
#    expr 是否包含公式
#   1;0
#
#    exprrate 产生公式的概率
#   0-1
#
#    exprelem 公式中的元素范围
#   0,10
#
#    exproperator 公式中的运算符 暂时仅支持 加减 [至少填2个]
#   +, -
#
#    exprallownegsub 公式中允许得到负数的减法 (0就是)
#   1;0
#
#------------------createtype:2-------------------
#
#    chrcount 字符数量
#   1-n
#
#    chr0 第0个字符的采样集合(不支持中文) 每个字符单独采样才会用到的 此时不支持公式 [至少填2个]
#   1,2,3,4,A,B,C
#
#    chr1 第1个字符的采样集合(一共需要配chrcount个chri) [至少填2个]
#   1,2,3,4,A,B,C
#
#--------------------------------------------------
#
#    colortype 文字颜色类型
#   1.使用默认颜色 2.每个字符随机颜色 3.随机一个颜色所有字符共同使用
#
#    defaultcolor 文字默认颜色
#   (R,G,B)
#
#    randomcolor 文字随机颜色
#   minR,maxR,minG,maxG,minB,maxB
#
#    fonttype 文字字体类型
#   1.使用默认字体 2.每个字符随机字体 3.随机一个字体所有字符共同使用
#
#    defaultfont 文字默认字体
#   font
#
#    fontsize 字体大小
#   minSize, maxSize
#
#    randomfont 文字随机字体 至少填2个 默认提供tahoma.ttf, 也可在系统盘下的fonts文件搜索ttf文件 'stxingka.ttf'# 华文行楷 'STLITI.TTF'# 华文隶书 'STHUPO.TTF'# 华文琥珀 'STCAIYUN.TTF' # 华文彩云...
#   font, font, font,...
#
#    hoffset 横向位移
#       min,max
#
#    voffset 纵向位移
#   min,max
#
#    hspace 横向间距
#   0-100
#
#    hdistortion 横向文字拉伸强度
#   0.0-2.0
#
#    vdistortion 纵向文字拉伸强度
#   0.0-2.0
#
#    starth 横向起始坐标
#   0-n
#
#    startv 纵向起始坐标
#   0-n
#
###################################################
[text]
createtype = 2
digital = 1
supper = 1
lower = 0
ignoresupper = 1
expr = 1
exprrate = 0.5
exprelem = 0,10
exproperator = +, -
exprallownegsub = 0
chrcount = 4
chr0 = 2,3,4,5,6,7,8,a, b, c, d, e, f, h, j, k, m, n, p, q, r, s, t, u, v, w, x, y, z
chr1 = 2,3,4,5,6,7,8,a, b, c, d, e, f, h, j, k, m, n, p, q, r, s, t, u, v, w, x, y, z
chr2 = 2,3,4,5,6,7,8,a, b, c, d, e, f, h, j, k, m, n, p, q, r, s, t, u, v, w, x, y, z
chr3 = 2,3,4,5,6,7,8,a, b, c, d, e, f, h, j, k, m, n, p, q, r, s, t, u, v, w, x, y, z
colortype = 2
defaultcolor = 255,255,255
randomcolor = 0,100,0,100,0,100
fonttype = 2
defaultfont = STCAIYUN
fontsize = 40,45
randomfont = tahoma, tahoma
hoffset = 0,2
voffset = 0,5
hspace = 25
hdistortion = 0.5
vdistortion = 0
starth = 40
startv = 8
###################################################
# confusion 干扰
#
#    colortype 干扰颜色类型
#   1.使用默认颜色 2.每个干扰随机颜色 3.随机一个颜色所有字符共同使用
#
#    defaultcolor 默认颜色
#   R,G,B
#
#    randomfontcolor 从文字颜色中随机(如果不从文字颜色中随机,则使用randomcolor中的颜色)
#   1;0
#
#    randomcolor 文字随机颜色
#   minR,maxR,minG,maxG,minB,maxB
#
#    line 线条干扰
#   1;0
#
#    linecount 线干扰数量
#   0-n
#
#    point 点干扰
#   1;0
#
#    pointcount 噪点干扰数量
#   0-n
#
#    size 干扰宽度
#   min,max
#
###################################################
[confusion]
colortype = 2
defaultcolor = 0,0,0
randomfontcolor = 0
randomcolor = 0,100,0,100,0,100
line = 1
linecount = 6
point = 1
pointcount = 500
size = 1,2
###################################################
# output 输出
#
#    outpath 输出路径
#   相对路径
#
#    filenametype 文件命名方式
#   1.流水号 2.内容 3.对应的含义
#
#    filetype 文件类型
#   jpeg
#
#    crop 剪切 从背景图剪切下来进行输出
#   startX,startY,endX,endY
#
###################################################
[output]
outpath = output
filenametype = 3
filetype = jpeg
crop = 12,15,125,70