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

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

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

Built distribution (wheel)

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

Total release size: 159.1 kB

Release files / cv_data_lesson-0.1.0a9.tar.gz

Download URL cv_data_lesson-0.1.0a9.tar.gz
Size 87.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3a14af4d3779e35563750bf20acd52daf9284d7e0fd672b529f2cb40a1959b72
BLAKE2b-256 checksum
How to use checksums
6580d428574f892fe1d93de7aba5454c0f5c05034aafbf23c5e8adde84328754
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.0a9-py3-none-any.whl

Download URL cv_data_lesson-0.1.0a9-py3-none-any.whl
Size 72.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae2d50b7547197a293de86f5a11f90c1178ef178126915fdf8cfdcb26d5e9c89
BLAKE2b-256 checksum
How to use checksums
a8ec234bd507eace8b43bf1529bc786142c08e91437caa0628474f561c82b8c6
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.0a9

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