Minor fix in docs for python admonition and code blocks (#16646)
This commit is contained in:
parent
7d6528a41a
commit
05fd3a3e73
4 changed files with 23 additions and 23 deletions
|
|
@ -141,7 +141,7 @@ After performing the [Segment Task](../tasks/segment.md), it's sometimes desirab
|
|||
|
||||
=== "Black Background Pixels"
|
||||
|
||||
```py
|
||||
```python
|
||||
# Create 3-channel mask
|
||||
mask3ch = cv2.cvtColor(b_mask, cv2.COLOR_GRAY2BGR)
|
||||
|
||||
|
|
@ -192,7 +192,7 @@ After performing the [Segment Task](../tasks/segment.md), it's sometimes desirab
|
|||
|
||||
=== "Transparent Background Pixels"
|
||||
|
||||
```py
|
||||
```python
|
||||
# Isolate object with transparent background (when saved as PNG)
|
||||
isolated = np.dstack([img, b_mask])
|
||||
```
|
||||
|
|
@ -248,7 +248,7 @@ After performing the [Segment Task](../tasks/segment.md), it's sometimes desirab
|
|||
|
||||
??? example "Example Final Step"
|
||||
|
||||
```py
|
||||
```python
|
||||
# Save isolated object to file
|
||||
_ = cv2.imwrite(f"{img_name}_{label}-{ci}.png", iso_crop)
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue