Changeset 482 for pwntcha/trunk
- Timestamp:
- May 30, 2005, 5:22:02 PM (16 years ago)
- Location:
- pwntcha/trunk/src
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
pwntcha/trunk/src/authimage.c
r448 r482 43 43 filter_scale(tmp, 2.0); 44 44 getpixel(tmp, 0, 0, &r, &g, &b); 45 filter_ equalize(tmp, r * 3 / 4);45 filter_threshold(tmp, r * 3 / 4); 46 46 filter_smooth(tmp); 47 filter_ equalize(tmp, 220);47 filter_threshold(tmp, 220); 48 48 49 49 for(i = 0; i < 6; i++) -
pwntcha/trunk/src/clubic.c
r448 r482 33 33 34 34 tmp = image_dup(img); 35 filter_ equalize(tmp, 200);35 filter_threshold(tmp, 200); 36 36 find_glyphs(tmp); 37 37 -
pwntcha/trunk/src/common.h
r477 r482 73 73 void filter_black_stuff(struct image *img); 74 74 void filter_detect_lines(struct image *img); 75 void filter_ equalize(struct image *img, int threshold);75 void filter_threshold(struct image *img, int threshold); 76 76 void filter_trick(struct image *img); 77 77 void filter_smooth(struct image *img); -
pwntcha/trunk/src/filter.c
r452 r482 202 202 } 203 203 204 void filter_ equalize(struct image *img, int threshold)204 void filter_threshold(struct image *img, int threshold) 205 205 { 206 206 struct image *dst; -
pwntcha/trunk/src/linuxfr.c
r448 r482 44 44 45 45 tmp = image_dup(img); 46 filter_ equalize(tmp, 150);46 filter_threshold(tmp, 150); 47 47 48 48 for(y = 0; y < tmp->height; y++) -
pwntcha/trunk/src/livejournal.c
r477 r482 38 38 // filter_smooth(tmp); 39 39 // filter_contrast(tmp); 40 filter_ equalize(tmp, 128);40 filter_threshold(tmp, 128); 41 41 image_save(tmp, "foo.bmp"); 42 42 find_glyphs(tmp); -
pwntcha/trunk/src/phpbb.c
r448 r482 45 45 46 46 filter_smooth(tmp1); 47 filter_ equalize(tmp1, 128);47 filter_threshold(tmp1, 128); 48 48 49 49 for(x = 0; x < img->width; x++) -
pwntcha/trunk/src/slashdot.c
r448 r482 50 50 tmp2 = image_dup(tmp1); 51 51 filter_median(tmp2); 52 filter_ equalize(tmp2, 200);52 filter_threshold(tmp2, 200); 53 53 count_objects(tmp2); 54 54 -
pwntcha/trunk/src/test.c
r448 r482 32 32 filter_smooth(tmp); 33 33 filter_median(tmp); 34 filter_ equalize(tmp, 130);34 filter_threshold(tmp, 130); 35 35 filter_median(tmp); 36 36 -
pwntcha/trunk/src/tickets.c
r481 r482 47 47 /* captcha is jpeg; threshold the image */ 48 48 tmp = image_dup(img); 49 filter_ equalize(tmp, 127);49 filter_threshold(tmp, 127); 50 50 51 51 /* Guess all glyphs */ -
pwntcha/trunk/src/vbulletin.c
r449 r482 43 43 getpixel(tmp, 0, 0, &r, &g, &b); 44 44 if(r < 50) 45 filter_ equalize(tmp, 128);45 filter_threshold(tmp, 128); 46 46 else 47 filter_ equalize(tmp, -128);47 filter_threshold(tmp, -128); 48 48 49 49 /* Remove garbage around the cells */ -
pwntcha/trunk/src/xanga.c
r460 r482 36 36 image_save(tmp, "xanga1.bmp"); 37 37 /* Clean image a bit */ 38 // filter_ equalize(tmp, 200);38 // filter_threshold(tmp, 200); 39 39 filter_contrast(tmp); 40 40 //filter_detect_lines(tmp); … … 48 48 // filter_median(tmp); 49 49 //image_save(tmp, "xanga4.bmp"); 50 // filter_ equalize(tmp, 128);50 // filter_threshold(tmp, 128); 51 51 filter_contrast(tmp); 52 52 image_save(tmp, "xanga4.bmp"); … … 55 55 /* Detect small objects to guess image orientation */ 56 56 filter_median(tmp); 57 filter_ equalize(tmp, 200);57 filter_threshold(tmp, 200); 58 58 59 59 /* Invert rotation and find glyphs */
Note: See TracChangeset
for help on using the changeset viewer.