添加了打包文件
This commit is contained in:
parent
f13a8d6b71
commit
70eef15dba
5
.gitignore
vendored
5
.gitignore
vendored
@ -7,3 +7,8 @@ Makefile.*
|
||||
*.pro.user*
|
||||
*.pro.user
|
||||
.idea
|
||||
*.exe
|
||||
*.dll
|
||||
*.qm
|
||||
*.onnx
|
||||
*.bmp
|
||||
2359
dist/config/1.dcf
vendored
Normal file
2359
dist/config/1.dcf
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2357
dist/config/2.dcf
vendored
Normal file
2357
dist/config/2.dcf
vendored
Normal file
File diff suppressed because it is too large
Load Diff
52
dist/config/color_range_config.txt
vendored
Normal file
52
dist/config/color_range_config.txt
vendored
Normal file
@ -0,0 +1,52 @@
|
||||
# Green color parameters
|
||||
green_L_min = 16
|
||||
green_L_max = 56
|
||||
green_a_min = -33
|
||||
green_a_max = -11
|
||||
green_b_min = -7
|
||||
green_b_max = 24
|
||||
|
||||
# Blue color parameters
|
||||
blue_L_min = 20
|
||||
blue_L_max = 43
|
||||
blue_a_min = -13
|
||||
blue_a_max = 22
|
||||
blue_b_min = -48
|
||||
blue_b_max = -8
|
||||
|
||||
# Orange color parameters
|
||||
orange_L_min = 60
|
||||
orange_L_max = 60
|
||||
orange_a_min = 6
|
||||
orange_a_max = 6
|
||||
orange_b_min = 20
|
||||
orange_b_max = 46
|
||||
|
||||
# Black color parameters
|
||||
black_L_min = 0
|
||||
black_L_max = 8
|
||||
black_a_min = -4
|
||||
black_a_max = 2
|
||||
black_b_min = -3
|
||||
black_b_max = 4
|
||||
|
||||
# Red color parameters
|
||||
red_L_min = 23
|
||||
red_L_max = 48
|
||||
red_a_min = 12
|
||||
red_a_max = 55
|
||||
red_b_min = -80
|
||||
red_b_max = 37
|
||||
|
||||
# Purple color parameters
|
||||
purple_L_min = 38
|
||||
purple_L_max = 54
|
||||
purple_a_min = 10
|
||||
purple_a_max = 20
|
||||
purple_b_min = -45
|
||||
purple_b_max = 1
|
||||
|
||||
# Other parameters
|
||||
lab_denoising = 1
|
||||
saturation_threshold = 165
|
||||
saturation_denoising = 1
|
||||
111
dist/license.txt
vendored
Normal file
111
dist/license.txt
vendored
Normal file
@ -0,0 +1,111 @@
|
||||
# Software License Agreement
|
||||
|
||||
**Important Notice**: Please read this Software License Agreement (hereinafter referred to as “this Agreement”) carefully before using this software. If you do not agree with any term of this Agreement, you are not authorized to install, copy, or use this software. By installing or using this software, you acknowledge that you have read, understood, and agree to be bound by all terms and conditions of this Agreement.
|
||||
|
||||
---
|
||||
|
||||
## 1. Definitions
|
||||
|
||||
1. **“Software”** refers to the application named “cotton_double,” developed and provided by **Nanjing Forestry University** (hereinafter referred to as “Licensor”). This includes but is not limited to the related executable files, data, documentation, updates, and upgrades.
|
||||
2. **“User”** refers to any individual or entity that installs or uses this Software.
|
||||
3. **“Licensor”** refers to **Nanjing Forestry University**, which holds the copyright or lawful authorization rights to this Software.
|
||||
|
||||
---
|
||||
|
||||
## 2. Scope of License
|
||||
|
||||
1. **License Grant**
|
||||
The Licensor hereby grants the User a **non-exclusive, non-transferable, and revocable** license to use this Software in accordance with the terms of this Agreement. This license is limited to **personal or internal business use** only and does not include the right to resell, lease, sublicense, or distribute for commercial purposes.
|
||||
|
||||
2. **License Restrictions**
|
||||
- The User shall not reverse engineer, decompile, disassemble, or otherwise attempt to derive the source code of the Software.
|
||||
- The User shall not modify, distribute, sell, rent, sublicense, or otherwise dispose of the Software or any part thereof.
|
||||
- The User shall not remove, alter, or obscure any copyright, trademark, or other proprietary notices contained in the Software.
|
||||
- The User shall not use the Software for any illegal or infringing purpose, nor shall they violate the legitimate rights of others.
|
||||
|
||||
3. **Reservation of Rights**
|
||||
Except for the rights explicitly granted in this Agreement, the Licensor reserves all other rights to the Software.
|
||||
|
||||
---
|
||||
|
||||
## 3. Intellectual Property
|
||||
|
||||
1. **Copyright**
|
||||
The copyright and other intellectual property rights in the Software belong to the Licensor and are protected by applicable laws and international treaties.
|
||||
2. **Third-Party Components**
|
||||
Any third-party software or libraries included or referenced within the Software are used under their respective licenses. The User’s use of such third-party components shall comply with the relevant third-party license terms.
|
||||
|
||||
---
|
||||
|
||||
## 4. Installation and Use
|
||||
|
||||
1. **Installation**
|
||||
The User may install the Software on compatible operating systems or environments solely for the purposes permitted by this Agreement.
|
||||
2. **Updates and Upgrades**
|
||||
The Licensor may periodically provide updates or upgrades for the Software, and the User may choose whether to install such updates.
|
||||
|
||||
---
|
||||
|
||||
## 5. Privacy and Data
|
||||
|
||||
1. **No Collection of Personal Information**
|
||||
This Software **does not collect** personal or private data from the User. If the User voluntarily submits any information to the Licensor while using this Software, such information will only be used for user inquiries, technical support, or troubleshooting, and will not be used for commercialization or shared with third parties.
|
||||
|
||||
2. **User Responsibility**
|
||||
Since the Software itself does not collect or transmit personal information, if the User independently inputs or processes personal data within the Software, the User bears the responsibility for relevant compliance and data security.
|
||||
|
||||
---
|
||||
|
||||
## 6. Warranty and Disclaimer
|
||||
|
||||
1. **Software Provided “As Is”**
|
||||
The Software and any related services are provided on an “as is” basis. The Licensor makes no express or implied warranties regarding the performance, quality, compatibility, or suitability of the Software.
|
||||
2. **Assumption of Risk**
|
||||
The User understands and agrees that any risks or losses arising from the use of or inability to use the Software are borne by the User. The Licensor shall not be liable for any direct or indirect losses arising therefrom.
|
||||
|
||||
---
|
||||
|
||||
## 7. Limitation of Liability
|
||||
|
||||
To the maximum extent permitted by applicable law, the Licensor shall not be liable for any profit loss, data loss, business interruption, or any other indirect, incidental, special, punitive, or consequential damages arising from the use of or inability to use the Software, even if the Licensor has been advised of the possibility of such damages.
|
||||
|
||||
---
|
||||
|
||||
## 8. Termination
|
||||
|
||||
1. **Termination Conditions**
|
||||
If the User violates any provision of this Agreement, the Licensor has the right to terminate this Agreement and the User’s license to the Software immediately without prior notice.
|
||||
2. **Consequences of Termination**
|
||||
Upon termination of this Agreement, the User shall immediately cease using the Software and delete or destroy all copies of the Software.
|
||||
|
||||
---
|
||||
|
||||
## 9. Governing Law and Dispute Resolution
|
||||
|
||||
1. **Governing Law**
|
||||
The formation, interpretation, and performance of this Agreement and the resolution of any disputes shall be governed by the laws of the People’s Republic of China.
|
||||
2. **Dispute Resolution**
|
||||
In the event of any dispute arising out of or in connection with this Agreement, the parties shall first attempt to resolve it amicably through negotiation. If negotiation fails, either party may submit the dispute to the competent courts of China.
|
||||
|
||||
---
|
||||
|
||||
## 10. Miscellaneous
|
||||
|
||||
1. **Entire Agreement**
|
||||
This Agreement constitutes the entire agreement between the User and the Licensor with respect to the Software and supersedes any prior communications or understandings related to its subject matter.
|
||||
2. **Severability**
|
||||
If any provision of this Agreement is held to be invalid or unenforceable, the remaining provisions shall remain in full force and effect.
|
||||
3. **Modifications**
|
||||
The Licensor reserves the right to revise this Agreement as necessary. If there are substantial changes, the Licensor will notify the User in an appropriate manner. The User’s continued use of the Software after such notification constitutes acceptance of the modified terms.
|
||||
|
||||
---
|
||||
|
||||
## Contact Information
|
||||
|
||||
If you have any questions regarding this Agreement or the Software, please contact:
|
||||
- **Institution**: Nanjing Forestry University
|
||||
- **Contact Person**: Ni Chao
|
||||
- **Email**: chaoni@njfu.edu.cn
|
||||
- **Address**: 159 Longpan Road, Nanjing Forestry University, Nanjing, Jiangsu, China
|
||||
|
||||
**By reading this Agreement in full and installing or using this Software, you indicate your acceptance of all the terms and conditions herein.**
|
||||
BIN
dist/nc.ico
vendored
Normal file
BIN
dist/nc.ico
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 200 KiB |
86
installer.nsi
Normal file
86
installer.nsi
Normal file
@ -0,0 +1,86 @@
|
||||
; =========================
|
||||
; NSIS Installer Script
|
||||
; =========================
|
||||
Unicode true
|
||||
|
||||
; 安装包名称
|
||||
Name "cotton_double Installer"
|
||||
|
||||
; 生成的安装包文件名
|
||||
OutFile "cotton_double_installer.exe"
|
||||
|
||||
; 图标(安装包 .exe 的图标),以及卸载图标
|
||||
Icon "dist\nc.ico"
|
||||
UninstallIcon "dist\nc.ico"
|
||||
|
||||
; 请求管理员权限(以便写入 HKLM 注册表,实现所有用户开机自启)
|
||||
RequestExecutionLevel admin
|
||||
|
||||
; 默认安装路径
|
||||
InstallDir "$PROGRAMFILES\cotton_double"
|
||||
|
||||
; --------------------------------
|
||||
; 安装向导页面
|
||||
; --------------------------------
|
||||
|
||||
; 1) 指定许可证文件 (纯文本或 RTF 都可)
|
||||
LicenseData "dist\license.txt"
|
||||
|
||||
; 2) 内置页面依次为:
|
||||
Page license ; 许可协议
|
||||
Page directory ; 选择安装目录
|
||||
Page instfiles ; 安装进度
|
||||
|
||||
; (去除 Page Finish,基础 NSIS 无此内置页面,如需则使用 MUI 宏)
|
||||
|
||||
; --------------------------------
|
||||
; Section: Main Installation
|
||||
; --------------------------------
|
||||
Section "MainSection"
|
||||
|
||||
; 将安装路径设为 $INSTDIR(由用户在 Directory 页选择或使用默认)
|
||||
SetOutPath "$INSTDIR"
|
||||
|
||||
; 将 dist 文件夹下的所有文件递归复制到 $INSTDIR
|
||||
File /r "dist\*.*"
|
||||
|
||||
; ========== 创建快捷方式 ==========
|
||||
|
||||
; 1) 创建开始菜单文件夹 "cotton_double"
|
||||
CreateDirectory "$SMPROGRAMS\cotton_double"
|
||||
|
||||
; 2) 在开始菜单中创建快捷方式
|
||||
CreateShortcut "$SMPROGRAMS\cotton_double\cotton_double.lnk" \
|
||||
"$INSTDIR\cotton_double2.exe" "" "$INSTDIR\nc.ico"
|
||||
|
||||
; 3) 在桌面创建快捷方式
|
||||
CreateShortcut "$DESKTOP\cotton_double.lnk" \
|
||||
"$INSTDIR\cotton_double2.exe" "" "$INSTDIR\nc.ico"
|
||||
|
||||
; ========== 设置开机自启(写注册表) ==========
|
||||
|
||||
; 如需只对当前用户生效,可改写为 HKCU
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Run" \
|
||||
"cotton_double" "$INSTDIR\cotton_double2.exe"
|
||||
|
||||
SectionEnd
|
||||
|
||||
; --------------------------------
|
||||
; Section: Uninstall
|
||||
; --------------------------------
|
||||
Section "Uninstall"
|
||||
|
||||
; 删除安装目录及所有文件/子目录
|
||||
RMDir /r "$INSTDIR"
|
||||
|
||||
; 删除桌面快捷方式
|
||||
Delete "$DESKTOP\cotton_double2.lnk"
|
||||
|
||||
; 删除开始菜单快捷方式、目录
|
||||
Delete "$SMPROGRAMS\cotton_double\cotton_double2.lnk"
|
||||
RMDir "$SMPROGRAMS\cotton_double"
|
||||
|
||||
; 移除注册表中的开机自启键
|
||||
DeleteRegValue HKLM "Software\Microsoft\Windows\CurrentVersion\Run" "cotton_double"
|
||||
|
||||
SectionEnd
|
||||
Loading…
Reference in New Issue
Block a user