# CHANGELOG - apigo.cc/go/vision ## v1.0.4 (2026-05-13) - **水印系统**: 新增 `Watermark` (图片) 和 `TextWatermark` (文字) 支持九宫格位置定义与透明度。 - **视频水印**: 扩展 `Video` 结构,支持通过 FFmpeg 一键给视频添加水印。 - **滑块验证码**: 新增 `GenerateJigsaw` 自动生成拼图路径、带槽口底图及拼图块。 - **动态验证码**: 新增 `GenerateGIFCaptcha` 生成抗 OCR 的动态 GIF 验证码。 - **功能补完**: 新增 `Canvas.Clone` 方法。 ## v1.0.3 (2026-05-13) - **性能优化**:优化 `Load` 函数,移除冗余的字符串转换,直接使用 `bytes.Reader` 进行图像解码。 - **基准测试**:新增 `BenchmarkWarpPerspective`、`BenchmarkPHash` 和 `BenchmarkExtractPalette` 性能测试。 - **防御性编程**:在 `Load` 函数中增加路径非空检查,提升健壮性。 - **文档更新**:在 `TEST.md` 中同步性能基准指标。 ## v1.0.2 (2026-05-12) - **文档增强**:重构 `README.md`,增加透视变换、动画合成、验证码生成等深度示例。 - **发布测试指南**:新增 `TEST.md` 明确测试覆盖范围与验证流程。 - **API 完善**:在 `Canvas` 中新增 `Invert` 滤镜支持。 ## v1.0.1 (2026-05-12) - **基础设施对齐**:全面移除原生 `os` 和 `strconv` 依赖,强制对齐 `@go` 核心设施。 - **内存优化**:使用 `go/file` 支持内存中的图像处理与序列化。 ## v1.0.0 (2026-05-12) * **Initial Release**: Complete migration and evolution from `@gojs/img`. * **Professional Refactoring**: Removed all internal logging, switched to a pure error-driven architecture. * **Intelligence Suite**: * Added **QR & Barcode recognition** (decoding) via `gozxing`. * Added **Perceptual Hashing (PHash)** for image similarity comparison. * Added **Color Palette Extraction** and dominant color analysis. * **Industrial Media**: * Implemented **FFmpeg Orchestration** for real video frame extraction and synthesis. * Built-in **Frictionless Setup** for automatic FFmpeg environment discovery. * Enhanced **Animation Engine** for high-quality GIF generation. * **Advanced Transformations**: Added **4-point Perspective Warping (WarpPerspective)** with bilinear interpolation. * **Modern Text**: Support for fallback fonts and complex layout.