@ml2024 ml2024
ml2024
@ml2024 ml2024 / getimages.py Created at Thu Jun 27 11:40:23 JST 2024
インターネット上から画像収集
# pip install icrawler

from icrawler.builtin import BingImageCrawler
crawler = BingImageCrawler(storage = {'root_dir' : './image/tflask'})
crawler.crawl(keyword = '三角フラスコ', max_num = 30)
crawler = BingImageCrawler(storage = {'root_dir' : './image/beaker'})
crawler.crawl(keyword = 'ビーカー', max_num = 30)
crawler = BingImageCrawler(storage = {'root_dir' : './image/funnel'})
crawler.crawl(keyword = 'ろうと', max_num = 30)
crawler = BingImageCrawler(storage = {'root_dir' : './image/burette'})
@ml2024 ml2024 / graph_turi.py Created at Wed Jun 05 18:35:58 JST 2024
import numpy as np
import matplotlib.pyplot as plt

data01_axis1, data01_value1 = np.loadtxt("./kari2.txt", delimiter="|", usecols=range(1,3), unpack=True)

fig = plt.figure(figsize=(10, 6))
ax = fig.add_subplot(111)
ax.plot(data01_axis1, data01_value1, ".-", color="k", label="value1 of data01")
# ax.set_xlim(1000, 3000)
ax.set_xlabel("iterations")