Files
2026-03-22 13:47:45 +08:00

51 lines
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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底下的隱藏檔全數刪除才能正常顯示。