PhotoRemover
Copyright © 2023 Zeyi Lin and the HivisionIDPhotos contributors
Copyright © 2026 the PhotoRemover contributors

--------------------------------------------------------------------------------
一、衍生关系
--------------------------------------------------------------------------------
本产品（PhotoRemover，以下简称"本产品"）是基于开源项目 HivisionIDPhotos
（https://github.com/Zeyi-Lin/HivisionIDPhotos ，以下简称"上游作品"）的衍生作品，
依据 Apache License, Version 2.0 分发。上游作品的版权归 Zeyi Lin 及
HivisionIDPhotos 贡献者所有；本产品未获得上游作者的背书或担保，
亦不代表上游项目的官方立场。

Apache License 2.0 全文见同目录下的 LICENSE 文件。

--------------------------------------------------------------------------------
二、修改说明（Apache License 2.0 第 4(b) 条）
--------------------------------------------------------------------------------
本产品对上游作品做了以下修改：

  1. 用户界面：由 Web（Gradio）界面重写为 PySide6 桌面应用程序；
  2. 模块裁剪：移除 API 服务、Docker 部署及其依赖，仅保留本地图片处理能力；
  3. 功能新增：批量处理、导出体积（KB）上限、打印 DPI 设置、
     水印（文字/颜色/大小/透明度/角度/间距）、五寸与六寸排版导出、
     美式证件照底色、保留原尺寸输出、一键重置等桌面端功能；
  4. 交付形式：使用 PyInstaller 打包为 Windows 64 位免安装（便携）目录，
     不写注册表、免安装。

本产品不包含上游作品的全部功能，二者的行为不完全一致。
上游作品仍是其自身版本的唯一权威来源。

--------------------------------------------------------------------------------
三、第三方组件
--------------------------------------------------------------------------------
本产品包含按各自许可协议分发的第三方组件，其许可原文随程序一同分发，
位于 _internal/*.dist-info/licenses/ 目录中，包括但不限于：

  * NumPy                  BSD 3-Clause
  * OpenCV                 Apache License 2.0
  * PySide6 / Qt for Python  LGPL-3.0（以动态链接的独立库文件形式分发，
                             可按 LGPL 要求替换为其他兼容版本）
  * Pillow                 HPND
  * cryptography           Apache License 2.0 / BSD 3-Clause
  * PyInstaller 引导程序    GPL-2.0 with bootloader exception

各组件版权归其各自作者所有。

--------------------------------------------------------------------------------
四、模型权重
--------------------------------------------------------------------------------
hivision/creator/weights 目录下的模型权重来自上游作品及其原始发布方。
这些权重的使用与再分发须遵守其原始来源的许可条款，
本 NOTICE 不对其授予任何额外权利。

--------------------------------------------------------------------------------
五、免责
--------------------------------------------------------------------------------
依据 Apache License 2.0 第 7 条，本产品按"原样"（AS IS）提供，
不附带任何明示或暗示的担保，包括但不限于适销性、特定用途适用性与
非侵权的担保。使用本产品产生的任何风险由使用者自行承担。

--------------------------------------------------------------------------------
ENGLISH SUMMARY
--------------------------------------------------------------------------------
This product is a derivative work of HivisionIDPhotos
(https://github.com/Zeyi-Lin/HivisionIDPhotos), distributed under the
Apache License, Version 2.0. Copyright of the original project belongs to
Zeyi Lin and the HivisionIDPhotos contributors. This product is not endorsed
by, and does not represent, the upstream project.

Changes made (Section 4(b) of the License): the web (Gradio) UI was rewritten
as a PySide6 desktop application; API/Docker modules were removed; desktop
features such as batch processing, output size limits, print DPI, watermarking,
print layout export and one-click reset were added; distribution is a
PyInstaller-built portable Windows x64 directory. Third-party components and
model weights remain under their own licenses.
