@@ -19,12 +19,12 @@ Art. The following guide describes the process.
1919
20202️⃣ Execute ` contour.py ` .
2121** Example** :
22- ``` commandline
22+ ``` cmd
2323python contour.py --image_path ../../resource/imgs/girl_with_pearl_earring.jpg --canny1_min 0 --canny1_max 270 --canny1_step 20 --canny2_min 0 --canny2_max 270 --canny2_step 20 --dilate_iter 1 --erode_iter 0 --gb_sigmaX 0 --gb_size 5 --contrast_factor 16 --contrast_window_size 8
2424```
2525
2626** Another Example** :
27- ``` commandline
27+ ``` cmd
2828python contour.py --image_path ../../resource/imgs/tsunami.jpg --canny1_min 0 --canny1_max 270 --canny1_step 20 --canny2_min 0 --canny2_max 270 --canny2_step 20 --dilate_iter 1 --erode_iter 0 --gb_sigmaX 0 --gb_size 5 --contrast_factor 4 --contrast_window_size 8
2929```
3030
@@ -62,22 +62,22 @@ An example of contour image:
6262
63632️⃣ Execute ` edge_trace.py ` .
6464** Example** :
65- ``` commandline
65+ ``` cmd
6666python edge_trace.py --image_path ./contour/contour_180_260.png --resize_factor 4 --chars file --font C:/Windows/Fonts/consolab.ttf --char_bound_width 13 --char_bound_height 22 --match_method slow
6767```
6868
6969** Japanese Hiragana** :
70- ``` commandline
70+ ``` cmd
7171python edge_trace.py --image_path ./contour/contour_240_200.png --resize_factor 4 --chars file --char_bound_height 24 --char_bound_width 22 --font C:/Windows/Fonts/msgothic.ttc --font_size 24 --chars_file_path ../../resource/char_files/chars_file_hiragana.txt --match_method vector --approx_ratio 0.5 --vector_top_k 5 --invert_color
7272```
7373
74- ** An Example using Palette file** , Check out the [ palette tutorial] ( ../../palette_tut.md ) if you would like to make your own palette:
75- ``` commandline
74+ ** An Example using Palette file** , Check out the [ palette tutorial] ( /marblestack/posts/b_ascii/y_palette_tut/ ) if you would like to make your own palette:
75+ ``` cmd
7676python edge_trace.py --image_path ./contour/contour_180_260.png --resize_factor 4 --palette_path ../../resource/palette_files/palette_chars.json --match_method slow
7777```
7878
7979** If you want to preserve character anti-aliasing** :
80- ``` commandline
80+ ``` cmd
8181python edge_trace.py --image_path ./contour/contour_180_260.png --resize_factor 4 --palette_path ../../resource/palette_files/palette_chars.json --match_method slow --antialiasing
8282```
8383
@@ -170,7 +170,7 @@ An example of ascii art image:
1701702️⃣ Execute ` joined_trace.py ` .
171171
172172** Example** :
173- ``` commandline
173+ ``` cmd
174174python joined_trace.py ^
175175--image_path ../../resource/imgs/girl_with_pearl_earring.jpg ^
176176--canny1 180 ^
@@ -275,7 +275,7 @@ An example of ascii art image:
275275
276276---
277277
278- 🖼️ Also check out the [ gallery] ( ./gallery.md ) for more examples!
278+ 🖼️ Also check out the [ gallery] ( /marblestack/posts/b_ascii/c_edge_trace_gallery/ ) for more examples!
279279
280280---
281281
0 commit comments