################################################### # 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' # »ªÎIJÊÔÆ... # 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