From 87eb0229334403d9b75563b5127e9bbc887dc339 Mon Sep 17 00:00:00 2001 From: deng Date: Sun, 22 Mar 2026 13:47:45 +0800 Subject: [PATCH] add waveshare url --- README.md | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/README.md b/README.md index e69de29..4f64278 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,51 @@ +# Waveshare E6 Image Processor + +將生活照片轉換為 Waveshare E6 電子紙相框(E Ink Spectra 6)可顯示的 BMP 格式。 + +## 環境需求 + +- Python >= 3.13 +- [uv](https://docs.astral.sh/uv/) + +## 安裝 + +```bash +uv sync +``` + +## 使用方式 + +### 增強版轉換 (`new_convert.py`) + +針對電子紙的反射式顯示特性,加入 Gamma 校正與色彩增強,轉換後的照片更明亮鮮豔。 + +```bash +# 彩色風景照(高飽和、高對比) +python src/new_convert.py --img_path photo.jpg --color rgb --mode landscape + +# 彩色人像照(保護膚色、適度提亮) +python src/new_convert.py --img_path photo.jpg --color rgb --mode portrait + +# 一般彩色照片 +python src/new_convert.py --img_path photo.jpg --color rgb --mode normal + +# 黑白照片 +python src/new_convert.py --img_path photo.jpg --color bw +``` + +### 官方原版轉換 (`official_convert.py`) + +Waveshare [官方](https://www.waveshare.net/wiki/PhotoPainter_(B))提供的轉換腳本,作為對照參考。 + +```bash +python src/official_convert.py photo.jpg --mode scale +``` + +## 輸出 + +轉換完成後會在輸入圖片的同目錄產生 BMP 檔案,將其複製到相框的儲存裝置即可顯示: + +```bash +cp output.bmp /Volumes/[YourTF]/pic +``` +複製完記得將pic底下的隱藏檔全數刪除才能正常顯示。 \ No newline at end of file