250x250
Link
๋์ GitHub Contribution ๊ทธ๋ํ
Loading data ...
Notice
Recent Posts
Recent Comments
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Lambda
- ์๋ํด๋ผ์ฐ๋
- ํ ์คํธ๋ถ์
- numpy
- ๋ฐ์ดํฐ๋ถ์์ ๋ฌธ๊ฐ
- datascience
- LDA
- ์ธ๋์ํ๋ง
- ADP
- ํฌ๋กค๋ง
- ํ์ด์ฌ
- iloc
- DBSCAN
- ๋ฐ์ดํฐ๋ถ๊ท ํ
- ๋น ๋ฐ์ดํฐ
- dataframe
- ๋ฐ์ดํฐ๋ถ์์ค์ ๋ฌธ๊ฐ
- ๋ฐ์ดํฐ๋ถ์
- t-test
- ์ฃผ์ฑ๋ถ๋ถ์
- Python
- ์ค๋ฒ์ํ๋ง
- ๋ ๋ฆฝํ๋ณธ
- ๊ตฐ์งํ
- PCA
- pandas
- opencv
- ๋น ๋ฐ์ดํฐ๋ถ์๊ธฐ์ฌ
- ADsP
- ๋์ํ๋ณธ
Archives
Data Science LAB
[Python] ์น์์ ์ฌ์ง ํฌ๋กค๋งํ๊ธฐ(Crawling) ๋ณธ๋ฌธ
๐ Python/Crawling
[Python] ์น์์ ์ฌ์ง ํฌ๋กค๋งํ๊ธฐ(Crawling)
ใ ใ ใ ใ 2022. 2. 6. 20:53728x90
1. ํ์ํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๋ก๋ฉ
from skimage.io import imread
from skimage.transform import resize
from matplotlib import pyplot as plt
import matplotlib.cm as cm
2. ํฌ๋กค๋งํ ํ์ด์ง ์ ๋ ฅ ํ ์๊ฐํํ์ฌ ํ์ธ
example_file = ("http://upload.wikimedia.org/wikipedia/commons/7/7d/Dog_face.png")
image = imread(example_file)
plt.imshow(image)
plt.show()
3. ์๊น ๋ณํ(ํ๋ฐฑ์ผ๋ก)
image = imread(example_file,as_gray = True)
plt.imshow(image,cmap = cm.gray)
4. cropping(์ฌ์ง ์๋ฅด๊ธฐ)
image2 = image[5:70,0:70]
plt.imshow(image2,cmap = cm.gray)
plt.show()
5. resize
image3 = resize(image2,(30,30),mode='symmetric')
plt.imshow(image3,cmap = cm.gray)
print("data tye: %s, shape : %s" %(type(image3),image3.shape))
728x90
'๐ Python > Crawling' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Python]๋ด์ค๊ธฐ์ฌ ํฌ๋กค๋ง(Newspaper ์ด์ฉ) (0) | 2022.02.13 |
---|---|
[Python]Tabular Data ์น์์ ํฌ๋กค๋ง (0) | 2022.02.13 |
Comments