添加 MIT 许可证与第三方声明
- LICENSE: MIT, Copyright (c) 2026 StarCells - THIRD_PARTY_NOTICES.md: Picamera2 PC1B 解压部分为 BSD-2-Clause(hq_spectrum.py 早就引用这份文件,但一直缺失) - README: 增加许可证说明
This commit is contained in:
1 parent
41226fb62b
commit
7fd4f56738
3 files changed
+86
No files matched your search
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2026 StarCells
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -83,3 +83,12 @@ $env:PEAK_FINDER_TEST_CALIBRATION = "wavelength_calibration\calibration.json"
|
||||
|
||||
标定结果不随源码走:它绑定某一次实验的光路和传感器模式,`calibration.json` 里还记录了
|
||||
参考录制的本机路径。需要时用 `wavelength_calibration.py` 重新生成,或用 `--calibration` 指到别处。
|
||||
|
||||
## 许可证
|
||||
|
||||
本项目以 **MIT** 许可证发布,全文见 `LICENSE`,版权归 StarCells。
|
||||
|
||||
例外:`hq_spectrum.py` 里的 PC1B 解压代码(`decompress_pisp_comp1`、`_block_sum`)
|
||||
改编自 Picamera2(Raspberry Pi Ltd.),该部分仍为 **BSD-2-Clause**,声明与条款见
|
||||
`THIRD_PARTY_NOTICES.md`。其余运行依赖(NumPy、Matplotlib、picamera2)的许可证也
|
||||
一并列在那份文件里。
|
||||
@@ -0,0 +1,56 @@
|
||||
# 第三方代码声明
|
||||
|
||||
本仓库主体以 MIT 许可证发布(见 `LICENSE`)。下面这部分不是原创代码,仍按其原有
|
||||
许可证使用,MIT 许可证不适用于该部分。
|
||||
|
||||
## Picamera2 —— PC1B(`BGGR_PISP_COMP1`)解压
|
||||
|
||||
- 位置:`hq_spectrum.py` 中的 `decompress_pisp_comp1()` 及其 `_block_sum()` 辅助函数
|
||||
- 来源:[picamera2](https://github.com/raspberrypi/picamera2) 的 `helpers.decompress()`
|
||||
(`picamera2/utils.py` 相关实现),并针对本项目的性能与接口做了改写
|
||||
- 版权:Copyright (c) 2022, Raspberry Pi (Trading) Ltd.
|
||||
- 许可证:BSD 2-Clause(下方全文)
|
||||
|
||||
该函数只负责把 PiSP 压缩的 RAW 缓冲展开成 2-D uint16 Bayer 图;本项目的其余部分
|
||||
(CFA 分离、降维、寻峰、拟合、标定、可视化、导出)均为独立实现。
|
||||
|
||||
```
|
||||
BSD 2-Clause License
|
||||
|
||||
Copyright (c) 2022, Raspberry Pi (Trading) Ltd.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
```
|
||||
|
||||
## 其它依赖(不随本仓库分发)
|
||||
|
||||
下列组件只作为运行时依赖被调用,没有把它们的代码复制进本仓库:
|
||||
|
||||
| 组件 | 许可证 | 用途 |
|
||||
| --- | --- | --- |
|
||||
| NumPy | BSD-3-Clause | 全部数值计算 |
|
||||
| Matplotlib | PSF-based(Matplotlib License) | 绘图与交互窗口 |
|
||||
| picamera2 | BSD-2-Clause | 树莓派上采集相机 RAW(仅采集端需要) |
|
||||
| libcamera | LGPL-2.1+ | 由 picamera2 间接使用 |
|
||||
|
||||
商用分发前请按各自许可证核对是否需要在发行物中附带相应声明。
|
||||
Reference in new issue
Block a user