docs: 添加项目 README,说明愿景与目标
|
# NewLife.Vision - .NET 비전 이해 라이브러리





[](https://github.com/NewLifeX/NewLife.Vision/actions/workflows/test.yml)



[](https://github.com/NewLifeX/NewLife.Vision/graphs/contributors)
<!-- lang:start -->
🌐 [English](/NewLife/NewLife.Vision/Blob/master/README.md) | [简体中文](/NewLife/NewLife.Vision/Blob/master/README.zh-CN.md) | [繁體中文](/NewLife/NewLife.Vision/Blob/master/README.zh-TW.md) | [Español](/NewLife/NewLife.Vision/Blob/master/README.es.md) | [Deutsch](/NewLife/NewLife.Vision/Blob/master/README.de.md) | [日本語](/NewLife/NewLife.Vision/Blob/master/README.ja.md) | [Français](/NewLife/NewLife.Vision/Blob/master/README.fr.md) | [Português](/NewLife/NewLife.Vision/Blob/master/README.pt.md) | [Русский](/NewLife/NewLife.Vision/Blob/master/README.ru.md) | [العربية](/NewLife/NewLife.Vision/Blob/master/README.ar.md)
<!-- lang:end -->
픽셀을 검색하고 활용할 수 있는 텍스트, 바코드, 객체, 얼굴 데이터로 변환하며 엔진을 교체할 수 있습니다.
소스: https://github.com/NewLifeX/NewLife.Vision
NuGet: `NewLife.Vision`
## 빠른 시작
내장 순수 관리형 리더로 바코드 디코딩:
```bash
dotnet add package NewLife.Vision
```
```csharp
using NewLife.Imaging.Codecs;
using NewLife.Vision;
using NewLife.Vision.Barcode;
var image = ImageCodecs.Decode(File.ReadAllBytes("qr.png")).ToVisionImage();
var results = new BarcodePipeline(new ManagedBarcodeReader()).Read(image);
Console.WriteLine(results[0].Text);
```
내장 순수 관리형 템플릿 인식기로 텍스트를 인식합니다:
```bash
dotnet add package NewLife.Vision
```
```csharp
using NewLife.Imaging.Codecs;
using NewLife.Vision;
using NewLife.Vision.Ocr;
var recognizer = new TemplateOcrRecognizer();
var pipeline = new OcrPipeline(recognizer);
var image = ImageCodecs.Decode(File.ReadAllBytes("label.png")).ToVisionImage();
var result = await pipeline.RecognizeAsync(image);
Console.WriteLine(result.Text);
```
Targets `netstandard2.0`, `netstandard2.1`, `net461`, `net8.0`, `net10.0` and `net11.0`.
## 기능
<details>
<summary><b>전처리와 기하 보정</b> (6개 항목)</summary>
| Capability | What it gives you |
| --- | --- |
| 단계 계약 | `IImagePreprocessor`로 무상태 단계를 순서대로 조합하며 병렬 호출 가능 |
| 기본 단계 | 그레이스케일, Otsu 이진화, 대비 늘리기, 크기 조정, ROI 자르기를 NewLife.Imaging 연산으로 수행 |
| 기울기 보정 | 투영 프로파일로 각도를 추정해 회전하고 각도를 반환 |
| 원근 보정 | 네 점 호모그래피와 양선형 샘플링, 출력 크기 선택 가능 |
| 프리셋 | `PreprocessPipeline.CreateOcr()` 및 `CreateBarcode()` 제공 |
| 캘리브레이션 | `CameraCalibrator`가 평면 타깃에서 내부 파라미터와 방사 왜곡을 계산하고 `ImageUndistorter`가 이미지를 보정 |
</details>
<details>
<summary><b>텍스트 인식</b> (5 items)</summary>
| 기능 | 제공 가치 |
| --- | --- |
| Engine contract | `ITextRecognizer` with a single async entry point and cancellation support |
| 내장 템플릿 OCR | 순수 관리형 템플릿 매칭, 모델 파일 없음 |
| OCR pipeline | Score filtering, region sorting and line-aware text merging on top of any engine |
| Region model | Text, confidence, bounding box and tilt angle for every detected line |
| 우아한 성능 저하 | 인식하지 못하면 예외 대신 점수가 담긴 빈 결과를 반환합니다 |
</details>
<details>
<summary><b>바코드</b> (4 items)</summary>
| 기능 | 제공 가치 |
| --- | --- |
| Engine contract | `IBarcodeReader` returns text, format and bounding box per result |
| 내장 리더 | 타사 패키지 없이 QR, Code128, Code39, Code93, EAN-13, EAN-8, UPC-A를 순수 관리형으로 디코딩 |
| 바코드 pipeline | Duplicate removal by content and format, plus `MaxResults` truncation |
| Format selection | Restrict decoding to the codes you expect to cut latency on busy images |
</details>
<details>
<summary><b>탐지 및 얼굴 인식</b> (planned)</summary>
| 기능 | 제공 가치 |
| --- | --- |
| 검출 계약 | `IObjectDetector`가 박스·클래스·점수를 반환하고 `DetectionPipeline`이 점수/클래스 필터와 클래스별 NMS를 수행합니다 |
| 검출 NMS | `IntersectionOverUnion`을 공개해 재사용 가능; 결과는 `MaxResults`로 잘립니다 |
| 세션 기반 모델 | `IModelSession`으로 어떤 백엔드든 연결; YOLO/얼굴 디코딩, 세그멘테이션·포즈 후처리, 1:1 얼굴 비교와 순수 관리형 ONNX 서브셋 실행 내장 |
| 클라우드 OCR | `ChatVisionRecognizer`가 OpenAI 호환 엔드포인트를 호출하며 추가 클라이언트 의존성 없음 |
| 얼굴 계약 | `IFaceDetector`와 `IFaceMatcher`; 특징 벡터는 결과 모델에 넣지 않습니다 |
| 얼굴 파이프라인 | 점수와 라이브니스 필터, 중복 제거, 결과 자르기; 모델은 자체 추론 스택과 함께 제공됩니다 |
</details>
<details>
<summary><b>프레임 및 픽셀 모델</b> (3 items)</summary>
| 기능 | 제공 가치 |
| --- | --- |
| Vision image | `VisionImage` wraps any buffer with offset, stride and five packed pixel formats |
| Imaging interop | `ImageFrame` 과 `VisionImage` 는 코어 패키지 내에서 양방향으로 변환됩니다 |
| Zero-copy views | Row and pixel spans expose the underlying buffer without copies |
</details>
## 생태계 지도
NewLife는 독립적으로 버전이 관리되는 오픈소스 프로젝트의 계층형 생태계입니다. 아래 지도는 모든 NewLife 리포지토리에서 그대로 동일하게 공유되며, 각 프로젝트는 코드 리포지토리와 기본 NuGet 패키지로 연결됩니다.
| 프로젝트 | 한 줄 소개 | 다운로드 |
| --- | --- | --- |
| **기반** | | |
| [NewLife.Core](https://github.com/NewLifeX/X) | 로깅, 구성, 캐시, 네트워크, 직렬화, 스케줄링, APM 추적. | [](https://www.nuget.org/packages/NewLife.Core) |
| [NewLife.XCode](https://github.com/NewLifeX/NewLife.XCode) | 데이터 미들웨어: 단일 테이블 수백억 건, 자동 분할 테이블, 읽기/쓰기 분리, 10여 종 데이터베이스 지원. | [](https://www.nuget.org/packages/NewLife.XCode) |
| [NewLife.Net](https://github.com/NewLifeX/NewLife.Net) | 고성능 네트워크 라이브러리: 단일 노드 177만 pps, 14.5 Gbps(TCP 1KB, 2026-10 실측), 400만 Tcp 장기 연결. | [](https://www.nuget.org/packages/NewLife.Net) |
| [NewLife.Remoting](https://github.com/NewLifeX/NewLife.Remoting) | CS 애플리케이션과 IoT 장치를 위한 프로토콜 통신 및 RPC 프레임워크. | [](https://www.nuget.org/packages/NewLife.Remoting) |
| [NewLife.Agent](https://github.com/NewLifeX/NewLife.Agent) | .NET 애플리케이션을 운영체제 데몬으로 설치: Windows 서비스와 Linux systemd. | [](https://www.nuget.org/packages/NewLife.Agent) |
| [NewLife.Templates](https://github.com/NewLifeX/NewLife.Zero) | 콘솔, Web, API, 서비스, 데이터, IoT용 `dotnet new` 프로젝트 템플릿. | [](https://www.nuget.org/packages/NewLife.Templates) |
| **데이터 및 메시징** | | |
| [NewLife.Redis](https://github.com/NewLifeX/NewLife.Redis) | Redis 클라이언트: 마이크로초 수준 지연, 백만 수준 처리량, 메시지 큐 내장. | [](https://www.nuget.org/packages/NewLife.Redis) |
| [NewLife.RocketMQ](https://github.com/NewLifeX/NewLife.RocketMQ) | Apache RocketMQ와 알리바바 클라우드 메시지 큐를 지원하는 순수 관리형 RocketMQ 클라이언트. | [](https://www.nuget.org/packages/NewLife.RocketMQ) |
| [NewLife.MQTT](https://github.com/NewLifeX/NewLife.MQTT) | MQTT 클라이언트와 서버, 알리바바 클라우드 IoT 연결 포함. | [](https://www.nuget.org/packages/NewLife.MQTT) |
| [NewLife.NovaDb](https://github.com/NewLifeX/NewLife.NovaDb) | C# 하이브리드 데이터베이스: 임베디드/네트워크 두 모드, 관계형, 시계열, 메시지 큐, KV를 하나로. | [](https://www.nuget.org/packages/NewLife.NovaDb) |
| [NewLife.MySql](https://github.com/NewLifeX/NewLife.MySql) | NewLife 데이터 스택 위에 구축한 MySql 드라이버와 도우미 계층. | [](https://www.nuget.org/packages/NewLife.MySql) |
| [NewLife.TDengine](https://github.com/NewLifeX/NewLife.TDengine) | REST, WebSocket, 네이티브 RPC를 지원하는 순수 관리형 TDengine ADO.NET 드라이버입니다. 네이티브 의존성이 없습니다. | [](https://www.nuget.org/packages/NewLife.TDengine) |
| [NewLife.Presto](https://github.com/NewLifeX/NewLife.Presto) | 서드파티 의존성 없이 XCode ORM과 연동되는 순수 C# Presto/Trino ADO.NET 드라이버입니다. | [](https://www.nuget.org/packages/NewLife.Presto) |
| **Web 및 분산** | | |
| [NewLife.Cube](https://github.com/NewLifeX/NewLife.Cube) | 빠른 관리 플랫폼 프레임워크: 권한, SSO, OAuth 서버, CRUD 스캐폴딩. | [](https://www.nuget.org/packages/NewLife.Cube) |
| [NewLife.Cube.React](https://github.com/NewLifeX/NewLife.Cube.React) | Cube 프런트엔드 분리 예제입니다. WebAPI 백엔드 + Swagger와 React/Vue/Blazor 클라이언트를 제공합니다. | [](https://www.nuget.org/packages/NewLife.Cube.React) |
| [Stardust](https://github.com/NewLifeX/Stardust) | 분산 서비스 플랫폼: 노드 관리, APM, 구성 센터, 등록 센터, 배포 센터. | [](https://www.nuget.org/packages/NewLife.Stardust) |
| [AntJob](https://github.com/NewLifeX/AntJob) | 샤딩, 재시도, 백필을 지원하는 분산 작업 및 실시간 데이터 스케줄링 플랫폼. | [](https://www.nuget.org/packages/NewLife.AntJob) |
| **AI 및 비전** | | |
| [NewLife.AI](https://github.com/NewLifeX/NewLife.AI) | 46개 LLM 공급자를 통합 연결하는 클라이언트와 바로 사용할 수 있는 ChatAI 웹 채팅 애플리케이션. | [](https://www.nuget.org/packages/NewLife.AI) |
| [NewLife.Imaging](https://github.com/NewLifeX/NewLife.Imaging) | 순수 관리형 이미징 기반 라이브러리입니다. 픽셀 모델, 코덱 계약, 그리기, 메타데이터를 제공하며 네이티브 의존성이 없습니다. | — |
| [NewLife.Vision](https://github.com/NewLifeX/NewLife.Vision) | OCR, 바코드, 객체 감지, 얼굴 인식을 NewLife.Imaging 위에 구축하는 비전 알고리즘 라이브러리입니다. | — |
| [NewLife.ML](https://github.com/NewLifeX/NewLife.ML) | .NET용 표 형식 머신러닝입니다. 데이터베이스 테이블과 Excel 시트를 배포 가능한 예측·분류 모델로 바꿉니다. | — |
| **산업 및 IoT** | | |
| [NewLife.IoT](https://github.com/NewLifeX/NewLife.IoT) | 프로토콜 계약과 장치 추상을 정의하는 IoT 표준 라이브러리. | [](https://www.nuget.org/packages/NewLife.IoT) |
| [NewLife.Modbus](https://github.com/NewLifeX/NewLife.Modbus) | NewLife.IoT 기반으로 구현한 Modbus TCP/RTU/ASCII. | [](https://www.nuget.org/packages/NewLife.Modbus) |
| [NewLife.Siemens](https://github.com/NewLifeX/NewLife.Siemens) | NewLife.IoT 기반으로 구현한 지멘스 PLC 프로토콜. | [](https://www.nuget.org/packages/NewLife.Siemens) |
| [NewLife.Omron](https://github.com/NewLifeX/NewLife.Omron) | NewLife.IoT 기반으로 구현한 오므론 PLC 프로토콜. | [](https://www.nuget.org/packages/NewLife.Omron) |
| [NewLife.Melsec](https://github.com/NewLifeX/NewLife.Melsec) | NewLife.IoT 기반으로 구현한 미쓰비시 Melsec PLC 프로토콜. | [](https://www.nuget.org/packages/NewLife.Melsec) |
| [NewLife.Schneider](https://github.com/NewLifeX/NewLife.Schneider) | Modbus TCP 기반 슈나이더 PLC 통신 드라이버입니다. | [](https://www.nuget.org/packages/NewLife.Schneider) |
| [NewLife.OPC](https://github.com/NewLifeX/NewLife.OPC) | 산업 데이터 수집용 OPC 클라이언트. | — |
| [NewLife.BACnet](https://github.com/NewLifeX/NewLife.BACnet) | BACnet 빌딩 자동화 프로토콜 스택. | [](https://www.nuget.org/packages/NewLife.BACnet) |
| [NewLife.LoRa](https://github.com/NewLifeX/NewLife.LoRa) | 초저전력 장거리 IoT 통신 프로토콜 LoRaWAN입니다. | [](https://www.nuget.org/packages/NewLife.LoRa) |
| [ZeroIoT](https://github.com/NewLifeX/ZeroIoT) | 게이트웨이와 장치 관리를 갖춘 경량 오픈소스 IoT 플랫폼. | — |
| **차량 텔레매틱스** | | |
| [NewLife.JT808](https://github.com/NewLifeX/NewLife.JT808) | JT/T 808 차량 위치 프로토콜: 70개 이상 메시지 본문, 2011/2013/2019 지원. | [](https://www.nuget.org/packages/NewLife.JT808) |
| [NewLife.JT809](https://github.com/NewLifeX/NewLife.JT809) | 운송 관리 부서를 위한 JT/T 809 플랫폼 간 프로토콜. | [](https://www.nuget.org/packages/NewLife.JT809) |
| [NewLife.JT1078](https://github.com/NewLifeX/NewLife.JT1078) | JT/T 1078 차량용 비디오: RTP 파싱, FLV/fMP4 리먹싱, 라이브 스트리밍. | [](https://www.nuget.org/packages/NewLife.JT1078) |
| **도메인 컴포넌트** | | |
| [NewLife.Office](https://github.com/NewLifeX/NewLife.Office) | Excel, Word, PPT, PDF 등 15개 이상 문서 형식을 하나의 패키지로. | [](https://www.nuget.org/packages/NewLife.Office) |
| [NewLife.Audio](https://github.com/NewLifeX/NewLife.Audio) | 크로스 플랫폼 오디오: 코덱, 장치 IO, DSP, 컨테이너, 스트리밍. | [](https://www.nuget.org/packages/NewLife.Audio) |
| [NewLife.Video](https://github.com/NewLifeX/NewLife.Video) | 비디오 코덱, 컨테이너 형식, 프레임 처리, 스트리밍. | [](https://www.nuget.org/packages/NewLife.Video) |
| [NewLife.Map](https://github.com/NewLifeX/NewLife.Map) | 바이두/고덕/텐센트/톈디투 지도 통합 인터페이스, 지오코딩과 좌표 변환 지원. | [](https://www.nuget.org/packages/NewLife.Map) |
| [NewLife.IP](https://github.com/NewLifeX/NewLife.IP) | IPv4 위치 정보: 오프라인 메모리 매핑 데이터베이스와 온라인 API 이중 소스. | [](https://www.nuget.org/packages/NewLife.IP) |
| [NewLife.Holiday](https://github.com/NewLifeX/NewLife.Holiday) | 중국 공휴일과 대체 근무일을 판별하는 라이브러리입니다. 연도별 공휴일 데이터와 음력 명절을 지원하며 완전히 오프라인으로 동작합니다. | [](https://www.nuget.org/packages/NewLife.Holiday) |
| **도구 및 제품** | | |
| [CrazyCoder](https://github.com/NewLifeX/XCoder) | 개발자 도구 모음: 네트워크, 시리얼 포트, 암호화, 정규식, Modbus, MQTT. | [](https://www.nuget.org/packages/NewLife.XCoder) |
| [NewLife.UnitTest](https://github.com/NewLifeX/NewLife.UnitTest) | 단위 테스트 확장 라이브러리입니다. 테스트 기본 클래스, 데이터 기반 테스트, 의존성 주입 도우미를 제공합니다. | [](https://www.nuget.org/packages/NewLife.UnitTest) |
| [GitCandy](https://github.com/NewLifeX/GitCandy) | 셀프 호스팅 Git 소스 코드 관리 시스템. | — |
| [LuckyClover](https://github.com/NewLifeX/LuckyClover) | 구버전 호스트에서 시작할 때 일치하는 .NET 런타임을 자동으로 설치합니다. | — |
> 배지는 각 프로젝트의 기본 패키지를 나타냅니다. 테마, 확장, 위성 패키지는 해당 NuGet 페이지에서 확인하세요. 여기에 나열하지 않은 30여 개 패키지(FTP, Office 확장, 각종 프로토콜 드라이버 등)는 [NewLifeX 조직](https://github.com/NewLifeX)과 [newlifex.com](https://newlifex.com)에서 확인할 수 있습니다.
## 문서
| Document | Description |
| --- | --- |
| [Requirements](/NewLife/NewLife.Vision/Blob/master/Doc/需求文档.md) | Vision, goals, module scope and non-goals |
| [Feature List](/NewLife/NewLife.Vision/Blob/master/Doc/功能清单.md) | Feature status across implementation, testing and comments |
| [Architecture](/NewLife/NewLife.Vision/Blob/master/Doc/架构设计.md) | Layers, contracts, pipelines and adapter boundaries |
| [Competitive Analysis](/NewLife/NewLife.Vision/Blob/master/Doc/竞品分析.md) | Engine comparison and positioning |
| [성능 기준선](/NewLife/NewLife.Vision/Blob/master/Doc/性能测试.md) | 주요 파이프라인의 실측 지연 시간과 메모리 할당 |
| [Change Log](/NewLife/NewLife.Vision/Blob/master/Doc/ChangeLog.md) | Release history generated at publish time |
## 기여하기
```bash
dotnet build -c Release
dotnet test -c Release
```
Issues and pull requests are welcome. Please keep public API free of third-party engine types and add a focused test for every new behavior.
## 라이선스
MIT License
## 팀
<img src="https://newlifex.com/logo.png" width="48" align="right" alt="NewLife" />
Founded in 2002, the NewLife team has spent more than two decades on the .NET and IoT ecosystem and maintains nearly 100 open-source projects. Open-source components have been downloaded <!--nuget-total:start-->6.48M<!--nuget-total:end--> times from NuGet (ecosystem-wide, as of 2026-10).
Website: https://newlifex.com · Open source organization: https://github.com/NewLifeX
|