V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
pqpo
V2EX  ›  程序员

简单易用的 Android 智能图片裁剪框架

  •  1
     
  •   pqpo · Aug 4, 2017 · 3894 views
    This topic created in 3193 days ago, the information mentioned may be changed or developed.

    撸了一个图片裁剪库

    支持特性

    • 使用智能算法识别图片中的边框
    • 支持拖动锚点,手动调节选区
    • 使用透视变换裁剪并矫正选区

    其中识别图片中的边框是基于 opencv 实现的,算法并不是最优,有些情况下会识别到其他边框。

    识别出的 4 个顶点,要判断出位置,左上,右上,右下,左下,各位大佬有没有什么好的算法。

    另外判断凸四边形现在正在写。

    https://github.com/pqpo/SmartCropper

    1 replies    2017-08-04 13:23:50 +08:00
    zhchyu999
        1
    zhchyu999  
       Aug 4, 2017
    不错,顶一手
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   740 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 21:30 · PVG 05:30 · LAX 14:30 · JFK 17:30
    ♥ Do have faith in what you're doing.