Skip to main content

高校生が身近な課題に画像AIを活用するための教材ライブラリ「CV教材ライブラリ」です。画像分類・数値予測・文字読み取り・物体検出・領域分割・画像生成を試せます。自分で決めた課題に合わせて、データや画像、出力を選べます。

配布名はcv-data-lesson、Pythonから読み込む名前はcvlessonです。 PyPIでは配布名と版番号がページタイトルに表示されます。GitHubのこのREADMEは更新中の内容、PyPI上のREADMEは公開時点の内容です。各公開版の使い方は、その版のリリースノートとリンク先のガイドをご覧ください。

インストール

Python 3.11〜3.13で利用できます。基本インストールで通常のデータ利用と表・画像例の表示ができます。

python -m pip install cv-data-lesson

PyPIの配布ページから公開版と版ごとの履歴を確認できます。

データ本体・モデル重みはインストール時には入りません。使うデータやモデルを選んだときに取得します。

まず試す

from cvlesson import datasets

# データを一覧で見て、使いたいIDを選ぶ
for item in datasets.list_available(audience="student")[:8]:
    print(item["id"], item["name_ja"], "—", item["task"])

# 例:トマトの葉データを取得して、表と画像を確認
data = datasets.get("tomato_leaves")
print(data.to_df().head())
data.show_examples(6)

できること

  • データを選ぶ:データの説明、形式、出典、ライセンス、取得サイズを確認して、固定版を安全に取得します。
  • 分類・回帰:ResNet18の画像特徴を使い、課題に合わせた出力層を学習します。fit、predict、scoreで扱えます。
  • OCR:日本語対応の学習済みモデルで文字・位置・信頼度を読み取り、文字が多い画像でも全文をまとめて読み、行ごとの位置や切り抜きは必要な時だけ確認できます。元のOCR結果は辞書やJSONとして他のアプリへ渡せます。
  • 物体検出・領域分割:学習済みモデルで物体の枠や、指定した物のマスクを推論します。
  • 画像生成・変換:SDXLで文章から画像を生成し、登録済みLoRAや入力画像を使って絵柄を変えます。

高校生向けの機能説明と、データからモデルへつなぐ例は使い方ガイドへ。AIに自分の課題に合わせた変更を相談する場合はAI改造ガイドを参照してください。

使い方と利用条件

  • インストール案内では、CPU版OCRを含む機能別の導入方法を説明しています。
  • データ一覧と形式から、扱いたいデータのタスク・ラベル・注釈を確認できます。
  • APIリファレンスには、メソッド、引数、戻り値、制約をまとめています。
  • Colabで公開版を試す手順に、機能別Notebookとランタイムをまとめています。
  • データやモデルごとに利用条件が異なります。使う前に各説明ページのライセンス・出典・注意を確認してください。
  • このパッケージに画像・マスク・LoRA重み・基盤モデル重みは含みません。取得やモデル読み込みは明示的に呼び出したときだけ始まります。
  • GPUは自動で選びません。利用可能か確認してから明示的に指定します。CPUでの利用可否や必要容量は機能ごとの案内を確認してください。

ライブラリコードはMITライセンスです。データ・モデルの条件は個別に適用されます。

Metadata

Release files for cv-data-lesson 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cv-data-lesson 0.1.0
File Size Uploaded Provenance Actions
cv_data_lesson-0.1.0.tar.gz 87.3 kB With provenance Details for cv_data_lesson-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cv-data-lesson 0.1.0
File Interpreter ABI Platform Actions
cv_data_lesson-0.1.0-py3-none-any.whl Python 3 none any Details for cv_data_lesson-0.1.0-py3-none-any.whl

Total release size: 159.2 kB

Release files / cv_data_lesson-0.1.0.tar.gz

Download URL cv_data_lesson-0.1.0.tar.gz
Size 87.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6181fa864af6fbfef89be29c562efa2b2379169a8a04beda3471beeae4ecc3c2
BLAKE2b-256 checksum
How to use checksums
bf09a459b1182a856e19a3f7c99120908287b2635c9a12f209a794f1e60c955c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / cv_data_lesson-0.1.0-py3-none-any.whl

Download URL cv_data_lesson-0.1.0-py3-none-any.whl
Size 71.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41e206ad4f62ab220df5e1f96958dcee8fe33576b44db7b3a76e44dbb947d3a9
BLAKE2b-256 checksum
How to use checksums
17eb8f4a73e0cdfdec418eebeb216e01773f877c437cafc4c6d9fcede028fffe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Security for cv-data-lesson 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cv_data_lesson-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page