Skip to content

Commit

Permalink
Update CV1 pictures url
Browse files Browse the repository at this point in the history
  • Loading branch information
StandardL committed Mar 18, 2024
1 parent cd0ccb4 commit 1297c84
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions _posts/2024-03-18-计算机视觉---1.数元素数目.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ tags: [Python, CV] # TAG names should always be lowercase

计算机视觉常用的方法是使用OpenCV的库函数对图像进行处理。因此我们先利用 `cv2.imread()` 函数读入图像数据。本例子中,共拥有3张图片,分别是Al,Fe和P(即铝、铁、磷)三种化学元素。下面是三张照片的样子。

<img src="D:\Coder\Github Repos\StandardL.github.io\assets\img\posts\2024-03-18-计算机视觉1\Al.jpg" alt="Al" style="zoom:50%;" />
<img src="https://github.com/StandardL/StandardL.github.io/raw/main/assets/img/posts/2024-03-18-计算机视觉1/Al.jpg" alt="Al" style="zoom:50%;" />

<img src="D:\Coder\Github Repos\StandardL.github.io\assets\img\posts\2024-03-18-计算机视觉1\Fe.jpg" alt="Fe" style="zoom:50%;" />
<img src="https://github.com/StandardL/StandardL.github.io/raw/main/assets/img/posts/2024-03-18-计算机视觉1/Fe.jpg" alt="Fe" style="zoom:50%;" />

<img src="D:\Coder\Github Repos\StandardL.github.io\assets\img\posts\2024-03-18-计算机视觉1\P.jpg" alt="P" style="zoom:50%;" />
<img src="https://github.com/StandardL/StandardL.github.io/raw/main/assets/img/posts/2024-03-18-计算机视觉1/P.jpg" alt="P" style="zoom:50%;" />

读取的代码如下:

Expand Down Expand Up @@ -74,7 +74,7 @@ def show_hsv_image(imgs: list):

未经处理前,Al的分拆HSV通道后的图像如下:

![Al的HSV图像](D:\Coder\Github Repos\StandardL.github.io\assets\img\posts\2024-03-18-计算机视觉1\Al的HSV图像.png)
![Al的HSV图像](https://github.com/StandardL/StandardL.github.io/raw/main/assets/img/posts/2024-03-18-计算机视觉1/Al的HSV图像.png)

在HSV图像中,查询可知黑色点范围如下:

Expand Down Expand Up @@ -360,16 +360,16 @@ cv2.imwrite(os.path.join('image_out', 'overlap_img_all.jpg'), overlap_img_all)

- Al和Fe:

<img src="D:\Coder\Github Repos\StandardL.github.io\assets\img\posts\2024-03-18-计算机视觉1\overlap_img_af.jpg" alt="overlap_img_af" style="zoom:50%;" />
<img src="https://github.com/StandardL/StandardL.github.io/raw/main/assets/img/posts/2024-03-18-计算机视觉1/overlap_img_af.jpg" alt="overlap_img_af" style="zoom:50%;" />

- Al和P:

<img src="D:\Coder\Github Repos\StandardL.github.io\assets\img\posts\2024-03-18-计算机视觉1\overlap_img_ap.jpg" alt="overlap_img_ap" style="zoom:50%;" />
<img src="https://github.com/StandardL/StandardL.github.io/raw/main/assets/img/posts/2024-03-18-计算机视觉1/overlap_img_ap.jpg" alt="overlap_img_ap" style="zoom:50%;" />

- Fe和P:

<img src="D:\Coder\Github Repos\StandardL.github.io\assets\img\posts\2024-03-18-计算机视觉1\overlap_img_fp.jpg" alt="overlap_img_fp" style="zoom:50%;" />

- 三者重叠:

<img src="D:\Coder\Github Repos\StandardL.github.io\assets\img\posts\2024-03-18-计算机视觉1\overlap_img_all.jpg" alt="overlap_img_all" style="zoom:50%;" />
<img src="https://github.com/StandardL/StandardL.github.io/raw/main/assets/img/posts/2024-03-18-计算机视觉1/overlap_img_all.jpg" alt="overlap_img_all" style="zoom:50%;" />

0 comments on commit 1297c84

Please sign in to comment.