Skip to content

Commit 0de6320

Browse files
committed
Updated links in real ascii
1 parent d33c9cd commit 0de6320

6 files changed

Lines changed: 21 additions & 21 deletions

File tree

src/content/posts/b_Ascii/a_intro/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ pip install -r requirements.txt
7676

7777
## 🧭 Detail
7878

79-
[**Edge Trace ASCII Filter**](src/edge_trace/README.md)
79+
[**Edge Trace ASCII Filter**](/marblestack/posts/b_ascii/b_edge_trace/)
8080

8181
Edge Detection + ASCII character matching
8282

@@ -88,11 +88,11 @@ Edge Detection + ASCII character matching
8888
<img src="/marblestack/imgs/ba/a/main_tsunami.png" width="600">
8989
</p>
9090

91-
🖼️ Go to [gallery](src/edge_trace/gallery.md) to see more examples!
91+
🖼️ Go to [gallery](/marblestack/posts/b_ascii/c_edge_trace_gallery/) to see more examples!
9292

9393
---
9494

95-
[**Depth Shade ASCII Filter**](src/depth_shade/README.md)
95+
[**Depth Shade ASCII Filter**](/marblestack/posts/b_ascii/e_depth_shade/)
9696

9797
Each shading (gradient) level has its own set of characters. Just need to
9898
change one value (thresholds_gamma) to make the algorithm automatically
@@ -102,19 +102,19 @@ distinguish the gradient level for your!
102102
<img src="/marblestack/imgs/ba/a/main_monalisa.png" width="600">
103103
</p>
104104

105-
🖼️ Go to [gallery](src/depth_shade/gallery.md) to see more examples!
105+
🖼️ Go to [gallery](/marblestack/posts/b_ascii/f_depth_shade_gallery/) to see more examples!
106106

107107
---
108108

109-
[**Contour Shade ASCII Filter**](src/contour_shade/README.md)
109+
[**Contour Shade ASCII Filter**](/marblestack/posts/b_ascii/g_contour_shade/)
110110

111111
Shade around the edges.
112112

113113
<p align="center">
114114
<img src="/marblestack/imgs/ba/a/main_tsunami2.png" width="600">
115115
</p>
116116

117-
🖼️ Go to [gallery](src/contour_shade/gallery.md) to see more examples!
117+
🖼️ Go to [gallery](/marblestack/posts/b_ascii/h_contour_shade_gallery/) to see more examples!
118118

119119
---
120120

src/content/posts/b_Ascii/b_Edge_trace/index.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ Art. The following guide describes the process.
1919

2020
2️⃣ Execute `contour.py`.
2121
**Example**:
22-
```commandline
22+
```cmd
2323
python 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
2828
python 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

6363
2️⃣ Execute `edge_trace.py`.
6464
**Example**:
65-
```commandline
65+
```cmd
6666
python 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
7171
python 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
7676
python 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
8181
python 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:
170170
2️⃣ Execute `joined_trace.py`.
171171

172172
**Example**:
173-
```commandline
173+
```cmd
174174
python 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

src/content/posts/b_Ascii/e_Depth_shade/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ An example of ascii art image (compressed):
7373

7474
---
7575

76-
🖼️ Also check out the [gallery](./gallery.md) for more examples!
76+
🖼️ Also check out the [gallery](/marblestack/posts/b_ascii/f_depth_shade_gallery/) for more examples!
7777

7878
---
7979

src/content/posts/b_Ascii/g_Contour_shade/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ An example of ascii art image:
7777

7878
---
7979

80-
🖼️ Also check out the [gallery](./gallery.md) for more examples!
80+
🖼️ Also check out the [gallery](/marblestack/posts/b_ascii/h_contour_shade_gallery/) for more examples!
8181

8282
---
8383

src/content/posts/b_Ascii/h_Contour_shade_gallery/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ lang: en # Set only if the post's language differs from the site's language
1717
<img src="/marblestack/imgs/ba/h/gpe_colored.png" width="400">
1818
</p>
1919

20-
```commandline
20+
```cmd
2121
python contour_shade.py ^
2222
--image_path ../../resource/imgs/girl_with_pearl_earring.jpg ^
2323
--resize_factor 4 ^
@@ -32,7 +32,7 @@ python contour_shade.py ^
3232
<img src="/marblestack/imgs/ba/h/gpe_nonfix.png" width="400">
3333
</p>
3434

35-
```commandline
35+
```cmd
3636
python contour_shade.py ^
3737
--image_path ../../resource/imgs/girl_with_pearl_earring.jpg ^
3838
--resize_factor 4 ^

src/content/posts/b_Ascii/y_Palette_tut/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ to a big negative number (such as -10000).
119119
More layers will lead the algorithm to be more precise about the shading levels.
120120
In theory, this will output better quality rendering if you do things correctly.
121121
Usually for the layers in the higher rank you should use less dense characters. For example:
122-
```text
122+
```txt
123123
. , '
124124
```
125125
For the layers in the lower rank you should use more dense characters. For example:
126-
```text
126+
```txt
127127
% # @
128128
```
129129
The characters are not limited to ASCII characters. You can use other characters as long as

0 commit comments

Comments
 (0)