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改造ガイドを参照してください。

使い方と利用条件

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

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

Metadata

Release files for cv-data-lesson 0.1.0a5

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

Built distribution (wheel)

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

Total release size: 150.4 kB

Release files / cv_data_lesson-0.1.0a5.tar.gz

Download URL cv_data_lesson-0.1.0a5.tar.gz
Size 81.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3286565bf31e81095df8db1bf18b0a66a02eb44a706661ac11e9e74a050f5ca0
BLAKE2b-256 checksum
How to use checksums
5fea4e012e4fbc8d2dddea0af9308e725deac8184254bdf70eb6e92c6680e76d
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.0a5-py3-none-any.whl

Download URL cv_data_lesson-0.1.0a5-py3-none-any.whl
Size 68.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7eefc0092d75a6d659ff7d15e67684ed856876d9f06e338e4d95f7ad0c433022
BLAKE2b-256 checksum
How to use checksums
88c5b6c8444a3548234ed1aee9388f0c7ccfc0a842d4610ce6eb2627c26ccb4f
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.0a5

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.0a5.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