This release is a pre-release and may not be stable for production use.
CV Data Lesson — 高校生向け画像AIライブラリ
身近なテーマの画像データを取得し、画像分類・数値予測・文字読み取り・物体検出・領域分割・画像生成を試すPythonライブラリです。高校生が自分で決めた課題に合わせて、データや画像、出力を選んで試作できます。
インストール
Python 3.11〜3.13で利用できます。画像を表示する場合はdisplayも指定してください。
python -m pip install --pre 'cv-data-lesson[display]'
データ本体・モデル重みはインストール時には入りません。使うデータやモデルを選んだときに取得します。
まず試す
from cvlesson import datasets
# 生徒向けデータから題材を探す
print(datasets.list_tasks(audience="student"))
choices = datasets.list_available(task="classification", audience="student")
print(choices)
# 表示されたIDを選んで取得。初回だけデータをダウンロードします。
data = datasets.get("tomato_leaves")
print(data.to_df().head())
data.show_examples(6)
できること
- データを選ぶ:データの説明、形式、出典、ライセンス、取得サイズを確認して、固定版を安全に取得します。
- 分類・回帰:ResNet18の画像特徴を使い、課題に合わせた出力層を学習します。
fit、predict、scoreで扱えます。 - OCR:日本語対応の学習済みモデルで文字・位置・信頼度を読み取ります。
- 物体検出・領域分割:学習済みモデルで物体の枠や、指定した物のマスクを推論します。
- 画像生成・変換:SDXLで文章から画像を生成し、登録済みLoRAや入力画像を使って絵柄を変えます。
高校生向けの機能説明と、データからモデルへつなぐ例は使い方ガイドへ。AIに自分の課題に合わせた変更を相談する場合はAI改造ガイドを参照してください。
使い方と利用条件
- まずインストール案内を確認してください。OCR、ResNet、検出、生成は追加の環境設定が必要です。
- データ一覧と形式から、扱いたいデータのタスク・ラベル・注釈を確認できます。
- データやモデルごとに利用条件が異なります。使う前に各説明ページのライセンス・出典・注意を確認してください。
- このパッケージに画像・マスク・LoRA重み・基盤モデル重みは含みません。取得やモデル読み込みは明示的に呼び出したときだけ始まります。
- GPUは自動で選びません。利用可能か確認してから明示的に指定します。CPUでの利用可否や必要容量は機能ごとの案内を確認してください。
ライブラリコードはMITライセンスです。データ・モデルの条件は個別に適用されます。
Metadata
Release files for cv-data-lesson 0.1.0a2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cv_data_lesson-0.1.0a2.tar.gz | 80.5 kB | With provenance | Details for cv_data_lesson-0.1.0a2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cv_data_lesson-0.1.0a2-py3-none-any.whl | Python 3 | none | any | Details for cv_data_lesson-0.1.0a2-py3-none-any.whl |
Total release size: 148.6 kB
Release files / cv_data_lesson-0.1.0a2.tar.gz
| Download URL | cv_data_lesson-0.1.0a2.tar.gz |
|---|---|
| Size | 80.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e61b9e24fa1dce19923ab11722efd2974b454bc899be6e494fe51a2f3c8c8b01
|
|
BLAKE2b-256 checksum How to use checksums |
6a0aeef9f0c6b89a6938b44180d54eb1eb08cd73c38233e3d51d392efb7c86a5
|
| 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 logRelease files / cv_data_lesson-0.1.0a2-py3-none-any.whl
| Download URL | cv_data_lesson-0.1.0a2-py3-none-any.whl |
|---|---|
| Size | 68.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e6e1182b6f984e7d57d9eb4011482b1a6c7d954bced96964159a0d2fdf9e9f5b
|
|
BLAKE2b-256 checksum How to use checksums |
04fcf1101565e23e4bda946c2482d19abe22f9dd853a2948d39fc9ed96def395
|
| 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 logSecurity for cv-data-lesson 0.1.0a2
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.
Attestation for cv_data_lesson-0.1.0a2.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 logA 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.