{
"version": "0.2.0",
"configurations": [
{
"name": "Debug (Clang/LLDB)",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}/${fileBasenameNoExtension}",
"args": [],
"cwd": "${fileDirname}",
# 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'})
# 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'})
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")
import SwiftUI
class Oxydol : Codable {
var name: String
var kind: String
var formula: String
var images: [String]
enum CodingKeys: String, CodingKey {
case name, kind, formula, images
import turicreate as tc
import re
# 学習用画像をロードする(JPEG以外はスキップされる)
data = tc.image_analysis.load_images('training-images', with_path=True)
print(data['path'])
# ディレクトリ名からラベルを作成する
data['label'] = data['path'].apply(lambda path: re.match(r'.*/training-images/(.*)/.*', path).group(1))
if [ "$(uname -m)" = "arm64" ]; then eval "$(/opt/homebrew/bin/brew shellenv)" export PATH="/opt/homebrew/bin:$PATH" else eval "$(/usr/local/bin/brew shellenv)" fi if [ "$(uname -m)" = "arm64" ]; then # arm64 export PYENV_ROOT="$HOME/.pyenv_arm64"
#!/bin/bash
for file in $*
do
convert -rotate 45 ${file} ${file%.*}_45.JPG
done
import turicreate as tc
import re
# データセットの読み込み
train_data = tc.image_analysis.load_images('./Train9' , with_path=True)
# データセットの読み込み
test_data = tc.image_analysis.load_images('./Test9' , with_path=True)
# ラベル作成の関数