Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

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

インストール

Python 3.11〜3.13で利用できます。現在はalpha版のため、pipに開発版も選ばせる--preを付けます。通常のデータ利用と表・画像例の表示は、次の1行で導入できます。

python -m pip install --pre cv-data-lesson

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

まず試す

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:日本語対応の学習済みモデルで文字・位置・信頼度を読み取ります。
  • 物体検出・領域分割:学習済みモデルで物体の枠や、指定した物のマスクを推論します。
  • 画像生成・変換:SDXLで文章から画像を生成し、登録済みLoRAや入力画像を使って絵柄を変えます。

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

使い方と利用条件

  • まずインストール案内を確認してください。CPU版OCRは[ocr]だけで導入できます。検出・領域分割・画像生成も機能別extraから必要なPython依存を導入できます。
  • データ一覧と形式から、扱いたいデータのタスク・ラベル・注釈を確認できます。
  • Colabで公開版を試す手順に、機能別Notebookとランタイムをまとめています。
  • データやモデルごとに利用条件が異なります。使う前に各説明ページのライセンス・出典・注意を確認してください。
  • このパッケージに画像・マスク・LoRA重み・基盤モデル重みは含みません。取得やモデル読み込みは明示的に呼び出したときだけ始まります。
  • GPUは自動で選びません。利用可能か確認してから明示的に指定します。CPUでの利用可否や必要容量は機能ごとの案内を確認してください。

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

Metadata

Release files for cv-data-lesson 0.1.0a6

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.0a6
File Size Uploaded Provenance Actions
cv_data_lesson-0.1.0a6.tar.gz 84.3 kB With provenance Details for cv_data_lesson-0.1.0a6.tar.gz

Built distribution (wheel)

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

Total release size: 154.3 kB

Release files / cv_data_lesson-0.1.0a6.tar.gz

Download URL cv_data_lesson-0.1.0a6.tar.gz
Size 84.3 kB
Tags Source
SHA-256 checksum
How to use checksums
355c987bb0d2aacaeddf5e38947e5b1f95df34004cc63cd8d34ecca77523962e
BLAKE2b-256 checksum
How to use checksums
b183c85e274d3646d8cc10c88fc400ae222966d0626d5b51455cfcbf98089994
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 13, 2026.

Transparency log

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

Download URL cv_data_lesson-0.1.0a6-py3-none-any.whl
Size 69.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5261d227659286068ecdeb80c69b9b34a218c79127a46c0b6d81d85e429cea7d
BLAKE2b-256 checksum
How to use checksums
5efe752d92646e8598d3471ceb94add31fa7672544bab684dfe724c486b15262
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 13, 2026.

Transparency log

Security for cv-data-lesson 0.1.0a6

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.0a6.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 13, 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