paddleocr-api 0.0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,399 @@
1
+ Metadata-Version: 2.4
2
+ Name: paddleocr_api
3
+ Version: 0.0.1
4
+ Summary: A Python async SDK that wraps the PaddleOCR AI Studio API into a clean, type-safe interface.
5
+ Author-email: Jerry <wujr24@m.fudan.edu.cn>
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://gitee.com/Jerry-Wu-Gitee/paddleocr-api-python
8
+ Project-URL: Repository, https://gitee.com/Jerry-Wu-Gitee/paddleocr-api-python.git
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: Apache Software License
11
+ Classifier: Operating System :: OS Independent
12
+ Requires-Python: >=3.10
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Requires-Dist: aiofiles
16
+ Requires-Dist: httpx
17
+ Requires-Dist: python-dotenv
18
+ Requires-Dist: typing-extensions
19
+ Dynamic: license-file
20
+
21
+ # paddleocr-api-python
22
+
23
+ [English](#english) | [中文](#中文)
24
+
25
+ ---
26
+
27
+ ## English
28
+
29
+ A Python async SDK that wraps the [PaddleOCR AI Studio API](https://aistudio.baidu.com/) into a clean, type-safe interface. Upload a document, await the result, and get Markdown back — without touching raw HTTP.
30
+
31
+ ### Features
32
+
33
+ - **Async-first** — built on `httpx.AsyncClient` and `asyncio`, with native context manager support.
34
+ - **Full model coverage** — `PaddleOCR-VL-1.6` (default), `PaddleOCR-VL-1.5`, `PaddleOCR-VL`, `PP-OCRv5`, and `PaddleOCR`.
35
+ - **Flexible input** — submit by local file path, raw bytes, or remote URL.
36
+ - **Rich job control** — poll real-time state, extracted page count, start/end times, and error messages.
37
+ - **Markdown export** — get a clean Markdown document plus the URLs of all embedded images.
38
+ - **Fine-grained options** — toggle layout detection, chart/seal/table recognition, cross-page table merging, title leveling, NMS, image orientation correction, and more.
39
+
40
+ ### Installation
41
+
42
+ ```bash
43
+ pip install paddleocr-api-python
44
+ ```
45
+
46
+ Dependencies: `aiofiles`, `httpx`, `typing-extensions`, `python-dotenv`.
47
+
48
+ ### Authentication
49
+
50
+ Get an access token from [https://aistudio.baidu.com/account/accessToken](https://aistudio.baidu.com/account/accessToken).
51
+
52
+ Either pass it explicitly:
53
+
54
+ ```python
55
+ client = AistudioClient(api_key="your_token_here")
56
+ ```
57
+
58
+ Or set it via environment variable (a `.env` file is loaded automatically):
59
+
60
+ ```
61
+ AISTUDIO_ACCESS_TOKEN=your_token_here
62
+ ```
63
+
64
+ ### Quick Start
65
+
66
+ ```python
67
+ import asyncio
68
+ from paddleocr_api import AistudioClient, State
69
+
70
+ async def main():
71
+ async with AistudioClient() as client:
72
+ job = await client.create_job(file_path="paper.pdf")
73
+
74
+ async with job:
75
+ while True:
76
+ state = await job.state
77
+ if state == State.DONE:
78
+ break
79
+ if state == State.FAILED:
80
+ raise RuntimeError(await job.error_message)
81
+ await asyncio.sleep(5)
82
+
83
+ markdown = await job.markdown
84
+ with open("output.md", "w", encoding="utf-8") as f:
85
+ f.write(markdown.text)
86
+
87
+ asyncio.run(main())
88
+ ```
89
+
90
+ ### Submitting Jobs
91
+
92
+ `create_job` accepts three mutually compatible input modes:
93
+
94
+ ```python
95
+ # From a local path
96
+ await client.create_job(file_path="doc.pdf")
97
+
98
+ # From bytes already in memory
99
+ await client.create_job(file_bytes=pdf_bytes)
100
+
101
+ # From a public URL
102
+ await client.create_job(file_url="https://example.com/doc.pdf")
103
+ ```
104
+
105
+ ### Selecting a Model
106
+
107
+ ```python
108
+ from paddleocr_api import Model
109
+
110
+ await client.create_job(
111
+ file_path="doc.pdf",
112
+ model=Model.PADDLE_OCR_VL_1_6, # default
113
+ )
114
+ ```
115
+
116
+ | Model | Notes |
117
+ |---|---|
118
+ | `PaddleOCR-VL-1.6` | Default. Latest vision-language model. |
119
+ | `PaddleOCR-VL-1.5` | Scheduled for retirement on 2026-06-17. |
120
+ | `PaddleOCR-VL` | Base VL model. |
121
+ | `PP-OCRv5` | Classic OCR pipeline. |
122
+ | `PaddleOCR` | Base OCR. |
123
+
124
+ ### Optional Payload
125
+
126
+ Pass an `OptionalPayload` dict to fine-tune recognition behavior:
127
+
128
+ ```python
129
+ from paddleocr_api import LayoutShapeMode, PromptLabel
130
+
131
+ await client.create_job(
132
+ file_path="doc.pdf",
133
+ optional_payload={
134
+ "useLayoutDetection": True,
135
+ "useChartRecognition": True,
136
+ "useSealRecognition": True,
137
+ "mergeTables": True,
138
+ "relevelTitles": True,
139
+ "layoutShapeMode": LayoutShapeMode.AUTO,
140
+ "repetitionPenalty": 1.0,
141
+ "temperature": 0.0,
142
+ "topP": 1.0,
143
+ },
144
+ )
145
+ ```
146
+
147
+ Key options:
148
+
149
+ | Field | Default | Purpose |
150
+ |---|---|---|
151
+ | `useDocOrientationClassify` | `False` | Auto-correct 0/90/180/270° rotation. |
152
+ | `useDocUnwarping` | `False` | Flatten warped or wrinkled pages. |
153
+ | `useLayoutDetection` | `True` | Region-aware parsing. Disable for single-region docs. |
154
+ | `useChartRecognition` | `False` | Convert charts to tables. |
155
+ | `useSealRecognition` | `True` | Extract seal text. |
156
+ | `useOcrForImageBlock` | `False` | OCR inside image regions. |
157
+ | `mergeTables` | `True` | Merge tables that span pages. |
158
+ | `relevelTitles` | `True` | Infer heading hierarchy. |
159
+ | `repetitionPenalty` | `1.0` | Raise to suppress repeated output. |
160
+ | `temperature` | `0.0` | Lower for stability, higher to reduce omissions. |
161
+ | `topP` | `1.0` | Lower for more conservative output. |
162
+ | `layoutNms` | `True` | Drop overlapping detection boxes. |
163
+ | `markdownIgnoreLabels` | all | Filter headers, footers, page numbers, footnotes, etc. |
164
+
165
+ ### Tracking a Job
166
+
167
+ ```python
168
+ async with job:
169
+ print(await job.state) # State.PENDING / RUNNING / DONE / FAILED
170
+ print(await job.total_pages) # e.g. 8
171
+ print(await job.extracted_pages) # e.g. 3
172
+ print(await job.start_time) # datetime
173
+ print(await job.end_time) # datetime
174
+ print(await job.error_message) # str or None
175
+ ```
176
+
177
+ Status queries are cached for `status_update_interval` seconds (default `2`) to avoid hammering the API.
178
+
179
+ ### Working with Results
180
+
181
+ ```python
182
+ result = await job.result # full Result object
183
+ markdown = await job.markdown # Markdown(text=..., images=...)
184
+
185
+ # Save Markdown
186
+ with open("doc.md", "w", encoding="utf-8") as f:
187
+ f.write(markdown.text)
188
+
189
+ # Download embedded images
190
+ import httpx
191
+ async with httpx.AsyncClient() as http:
192
+ for rel_path, url in markdown.images.items():
193
+ data = (await http.get(url)).content
194
+ # write `data` to `rel_path`
195
+ ```
196
+
197
+ The `Result` object also exposes per-page layout details via `layout_parsing_results`, raw page sizes via `data_info`, and preprocessed image URLs via `preprocessed_images`.
198
+
199
+ ### Error Handling
200
+
201
+ All exceptions inherit from `PaddleOCRError`:
202
+
203
+ - `AistudioClientError` — client configuration issues (e.g. missing token).
204
+ - `JobCreationError` — failure when submitting a job.
205
+ - `JobStatusQueryError` — failure when polling status.
206
+
207
+ Use `job.query_status_safe()` instead of `query_status()` to get the cached state on failure rather than raising.
208
+
209
+ ### License
210
+
211
+ [Apache-2.0](LICENSE)
212
+
213
+ ---
214
+
215
+ ## 中文
216
+
217
+ 将 [PaddleOCR AI Studio API](https://aistudio.baidu.com/) 封装为简洁、类型安全的 Python 异步 SDK。上传文档、等待结果、拿到 Markdown —— 无需手写任何 HTTP 请求。
218
+
219
+ ### 特性
220
+
221
+ - **异步优先** —— 基于 `httpx.AsyncClient` 与 `asyncio` 构建,原生支持上下文管理器。
222
+ - **全模型支持** —— `PaddleOCR-VL-1.6`(默认)、`PaddleOCR-VL-1.5`、`PaddleOCR-VL`、`PP-OCRv5`、`PaddleOCR`。
223
+ - **灵活输入** —— 支持本地路径、字节流、远程 URL 三种提交方式。
224
+ - **完善的任务控制** —— 实时查询状态、已抽取页数、起止时间、错误信息。
225
+ - **Markdown 导出** —— 直接获取整洁的 Markdown 文本及所有内嵌图片 URL。
226
+ - **细粒度参数** —— 可控制版面分析、图表/印章/表格识别、跨页表格合并、标题分级、NMS、图像方向矫正等。
227
+
228
+ ### 安装
229
+
230
+ ```bash
231
+ pip install paddleocr-api-python
232
+ ```
233
+
234
+ 依赖:`aiofiles`、`httpx`、`typing-extensions`、`python-dotenv`。
235
+
236
+ ### 身份验证
237
+
238
+ 在 [https://aistudio.baidu.com/account/accessToken](https://aistudio.baidu.com/account/accessToken) 获取访问令牌。
239
+
240
+ 可以显式传入:
241
+
242
+ ```python
243
+ client = AistudioClient(api_key="your_token_here")
244
+ ```
245
+
246
+ 也可以通过环境变量传入(自动加载 `.env` 文件):
247
+
248
+ ```
249
+ AISTUDIO_ACCESS_TOKEN=your_token_here
250
+ ```
251
+
252
+ ### 快速上手
253
+
254
+ ```python
255
+ import asyncio
256
+ from paddleocr_api import AistudioClient, State
257
+
258
+ async def main():
259
+ async with AistudioClient() as client:
260
+ job = await client.create_job(file_path="paper.pdf")
261
+
262
+ async with job:
263
+ while True:
264
+ state = await job.state
265
+ if state == State.DONE:
266
+ break
267
+ if state == State.FAILED:
268
+ raise RuntimeError(await job.error_message)
269
+ await asyncio.sleep(5)
270
+
271
+ markdown = await job.markdown
272
+ with open("output.md", "w", encoding="utf-8") as f:
273
+ f.write(markdown.text)
274
+
275
+ asyncio.run(main())
276
+ ```
277
+
278
+ ### 提交任务
279
+
280
+ `create_job` 支持三种输入方式:
281
+
282
+ ```python
283
+ # 本地路径
284
+ await client.create_job(file_path="doc.pdf")
285
+
286
+ # 内存字节流
287
+ await client.create_job(file_bytes=pdf_bytes)
288
+
289
+ # 公网 URL
290
+ await client.create_job(file_url="https://example.com/doc.pdf")
291
+ ```
292
+
293
+ ### 选择模型
294
+
295
+ ```python
296
+ from paddleocr_api import Model
297
+
298
+ await client.create_job(
299
+ file_path="doc.pdf",
300
+ model=Model.PADDLE_OCR_VL_1_6, # 默认
301
+ )
302
+ ```
303
+
304
+ | 模型 | 备注 |
305
+ |---|---|
306
+ | `PaddleOCR-VL-1.6` | 默认,最新视觉语言模型。 |
307
+ | `PaddleOCR-VL-1.5` | 计划于 2026-06-17 下线。 |
308
+ | `PaddleOCR-VL` | 基础 VL 模型。 |
309
+ | `PP-OCRv5` | 经典 OCR 流水线。 |
310
+ | `PaddleOCR` | 基础 OCR。 |
311
+
312
+ ### 可选参数
313
+
314
+ 通过 `OptionalPayload` 字典精调识别行为:
315
+
316
+ ```python
317
+ from paddleocr_api import LayoutShapeMode, PromptLabel
318
+
319
+ await client.create_job(
320
+ file_path="doc.pdf",
321
+ optional_payload={
322
+ "useLayoutDetection": True,
323
+ "useChartRecognition": True,
324
+ "useSealRecognition": True,
325
+ "mergeTables": True,
326
+ "relevelTitles": True,
327
+ "layoutShapeMode": LayoutShapeMode.AUTO,
328
+ "repetitionPenalty": 1.0,
329
+ "temperature": 0.0,
330
+ "topP": 1.0,
331
+ },
332
+ )
333
+ ```
334
+
335
+ 常用参数:
336
+
337
+ | 字段 | 默认值 | 作用 |
338
+ |---|---|---|
339
+ | `useDocOrientationClassify` | `False` | 自动矫正 0/90/180/270° 旋转。 |
340
+ | `useDocUnwarping` | `False` | 矫正褶皱、倾斜等扭曲图像。 |
341
+ | `useLayoutDetection` | `True` | 版面分区与排序。文档仅含单一区域时可关闭。 |
342
+ | `useChartRecognition` | `False` | 将图表解析为表格。 |
343
+ | `useSealRecognition` | `True` | 识别印章文字。 |
344
+ | `useOcrForImageBlock` | `False` | 对图片区域中的文字进行 OCR。 |
345
+ | `mergeTables` | `True` | 合并跨页表格。 |
346
+ | `relevelTitles` | `True` | 识别段落标题级别。 |
347
+ | `repetitionPenalty` | `1.0` | 出现重复内容时可调高。 |
348
+ | `temperature` | `0.0` | 调低更稳定,调高减少漏识别。 |
349
+ | `topP` | `1.0` | 调低让模型更保守。 |
350
+ | `layoutNms` | `True` | 移除重叠的检测框。 |
351
+ | `markdownIgnoreLabels` | 全部 | 过滤页眉、页脚、页码、脚注等辅助元素。 |
352
+
353
+ ### 追踪任务
354
+
355
+ ```python
356
+ async with job:
357
+ print(await job.state) # State.PENDING / RUNNING / DONE / FAILED
358
+ print(await job.total_pages) # 如 8
359
+ print(await job.extracted_pages) # 如 3
360
+ print(await job.start_time) # datetime
361
+ print(await job.end_time) # datetime
362
+ print(await job.error_message) # str 或 None
363
+ ```
364
+
365
+ 状态查询带有 `status_update_interval` 秒的缓存(默认 `2` 秒),避免频繁请求。
366
+
367
+ ### 处理结果
368
+
369
+ ```python
370
+ result = await job.result # 完整的 Result 对象
371
+ markdown = await job.markdown # Markdown(text=..., images=...)
372
+
373
+ # 保存 Markdown
374
+ with open("doc.md", "w", encoding="utf-8") as f:
375
+ f.write(markdown.text)
376
+
377
+ # 下载内嵌图片
378
+ import httpx
379
+ async with httpx.AsyncClient() as http:
380
+ for rel_path, url in markdown.images.items():
381
+ data = (await http.get(url)).content
382
+ # 将 data 写入 rel_path
383
+ ```
384
+
385
+ `Result` 对象还通过 `layout_parsing_results` 暴露每页的版面细节,通过 `data_info` 提供原始页面尺寸,通过 `preprocessed_images` 提供预处理图像 URL。
386
+
387
+ ### 异常处理
388
+
389
+ 所有异常都继承自 `PaddleOCRError`:
390
+
391
+ - `AistudioClientError` —— 客户端配置错误(如缺少令牌)。
392
+ - `JobCreationError` —— 任务提交失败。
393
+ - `JobStatusQueryError` —— 状态查询失败。
394
+
395
+ 如果希望查询失败时返回缓存而非抛出异常,使用 `job.query_status_safe()` 代替 `query_status()`。
396
+
397
+ ### 许可证
398
+
399
+ [Apache-2.0](LICENSE)
@@ -0,0 +1,18 @@
1
+ paddleocr_api/__init__.py,sha256=2ImZd-uTBQqvWq903dq_n2JXarQ8p_HV7Um7hRz5cPo,133
2
+ paddleocr_api/config.py,sha256=tUt-8D83U40zn1XXlyUgib6yYMpn7RaCyFLNItnChzI,245
3
+ paddleocr_api/constants.py,sha256=SJIGtiRlaIr2YGjuqLRv9uVCgy7bGSSEx7__2JHQx78,604
4
+ paddleocr_api/exceptions.py,sha256=1yeaOMW4KLtzc7diKUNhZb-SO73zOTvjNxhgvn82mIc,470
5
+ paddleocr_api/models/__init__.py,sha256=hT3OYeqwCntTNhqlgpBH-79IxsJCquPonb72lP7Nmv8,346
6
+ paddleocr_api/models/aistudio_client.py,sha256=cd3QTfYze-duTERzrmbwuB_Dsvfw6YvKrW1YG2XcPbU,5469
7
+ paddleocr_api/models/job.py,sha256=wB6S2za-ZhP651_DCQX0McP8gIYrcMuf_JqEARDut_s,10009
8
+ paddleocr_api/models/model.py,sha256=QoAOSDD1-uh-0lsGpbYRjmIIGIcmXajh41ny7C6Tg8w,432
9
+ paddleocr_api/models/optional_payload.py,sha256=yZjs_SAyQQOMJL932LXiiVvc-dwbY7oFQ5o0BfkgyJY,4538
10
+ paddleocr_api/models/result.py,sha256=7HKnD7cykOhsZ5zslpz8SkwMq7ZlLA9BmArpuFDhUWk,6736
11
+ paddleocr_api/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
+ paddleocr_api/utils/enum.py,sha256=PWQJ0MMYSnU4lG-u5q35YqI6wB5Lv0ATAUIzrLyz4ZA,160
13
+ paddleocr_api/utils/regex.py,sha256=phNqc7clpOAz_N5Z2-37MMg5ZgdtLVrXSpLPbER3N2Y,147
14
+ paddleocr_api-0.0.1.dist-info/licenses/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
15
+ paddleocr_api-0.0.1.dist-info/METADATA,sha256=I1BS1Xqj7cUE8z_aaNxcwAxw2lCJh-yetbB7YKOL5QE,12945
16
+ paddleocr_api-0.0.1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
17
+ paddleocr_api-0.0.1.dist-info/top_level.txt,sha256=iyzmH0SbDq_OWaimumKcKAibATBBVuGmXOjlzLXrjJE,14
18
+ paddleocr_api-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1 @@
1
+ paddleocr_api