| param | type | description |
| dots |
array(integer max_radius )
|
Default value = array(1)
That noise will add point to the image, the number of dots drawn is ruled by $setting['num']['dots'] array param and upper limited by a class constant NUM_DOTS = 500; the color of dots is ruled by $setting['color']['dots'] array param.;
Parameters:- max_radius: maximum radius
|
| lines |
no parameters |
Default value =
That noise will add lines to the image, the number of lines drawn is ruled by $setting['num']['lines'] array param and upper limited by a class constant NUM_LINES = 500; the color of lines is ruled by $setting['color']['lines'] array param. |
| circles |
array(integer how_many, boolean fill_em) |
Default value = array(3, false)
That noise will add circles to the image;
Parameters:- how_may: number of circles
- fill_em: fill circles?
|
| polygons |
array(integer how_many, boolean fill_em) |
Default value = array(2,true)
That noise will add polygons with random vertex to the image;
Parameters:- how_may: number of polygons
- fill_em: fill polygons?
|
| grind |
array(integer distance ) |
Default value = array(5)
Draw a grind with lines distanced by distance parameter
Parameters:- distance: the distance between two parallel lines contiguous
|
| chessboard |
array(integer dimension ) |
Default value = array(7)
Draw a chessboard with squares dimensioned by dimension parameter
Parameters:- dimension: side dimension of each square
|
| randchars |
array(integer maxsize, boolean noise) |
Default value = array(specified font_size, false)
That noise will add random chars to the image;
Parameters:- maxsize: maximum size for random noise chars
- noise: if true use charset paramter otherwise uses symbols
|
| func |
array(callback obj_method, array range) |
Default value = no defaults
Explicit function through callback
Please see the example |
| pfunc |
array(callback obj_method_R, callback obj_method_RHO, array rangeR, array rangeRHO, boolean join_points) |
Default value = no defaults
Polar function through callback
Please see the example |
| tfunc |
array(callback obj_method_X, callback obj_method_Y, array rangeX, array rangeY, boolean join_points) |
Default value = no defaults
Parametric function through callback
Please see the example |
| bgimage |
array(string img_relative_path, array 4 integers clipping array) |
Default value = no defaults
Add the specified image in background covering the whole image optionally using the clipped part decided with the second parameter
array('../ucaptcha/lion4.jpg', array(20,20,150,150) )
NOTE: the image file path must be relative to the file that renders the image |
| logo |
array(string img_relative_path, string position) |
Default value = no defaults
Add a logo in one of the 9 corner/centers of the image
array('../ucaptcha/mylogo.gif', 'd_r' )
Parameters:- img_relative_path: the image to be used (ONLY GIF)
- position: a string within {'u_l','u_c','u_r','c_l','c_c','c_r','d_l','d_c','d_r'}
vertical_horizontal:(u,c,d)_(l,c,r)
NOTE: the image file path must be relative to the file that renders the image
|
| param | type | description |
| warp |
no parameters |
Warps randomly in the right places |
| wave |
no parameters |
Apply a wave effect |
| shear |
array(integer min, integer max, ) |
Default value = array(-20,20)
Shears the image along the horizontal direction; the parameter give are not linear with angle but with horizont, 10 stand exactly to 45° and ∞ to 90° |
| breeze |
array(integer displacement) |
Default value = array(1)
Apply to the image an horizontal displacement line per line. The parameter is a strenght factor. |
| rotate |
array(integer min, integer max, ) |
Default value = false
Rotates CCW the image around the center of a random angle between the specified bounds |
| convolve |
array(mixed) |
Default value = no defaults
Within the array You can write one or more of the following built-in filters
- gauss
- blur0
- blur1
- blur2
- blur3
- detect_hlines
- detect_vlines
- detect_45lines
- detect_135lines
- detect_edges
- sobel_horiz
- sobel_vert
- sobel
- detect_edges
- edges
- laplace
- sharpen
- laplace_emboss
- sharp
- mean_removal
- emboss
OR
use Your own filters specifing one or more 3*3 matrix
array(
array(float, float, float),
array(float, float, float),
array(float, float, float),
)
|