检测 Android CameraX 图像分析中的文档角的最佳方法是什么?

huangapple go评论84阅读模式
英文:

what is the best way to detect document corners in android camerax Image analysis?

问题

我想实时检测文档的角落,这意味着我想绘制一个类似于大多数文档扫描应用程序的边界四边形,同时我想从零开始实现这个功能。我已经阅读了一些角点检测算法,比如Harris角点检测器,但我有一些疑虑:

  1. 如何在Camerax库的图像分析部分实现这个功能,并绘制一个边界四边形(不是矩形,因为它可能是倾斜的),以实现实时更新,即每一帧相机预览都更新?
  2. 是否有更优化的方法?因为对于Harris角点检测,我需要在每一帧中计算Ix、Iy等等,但如果图像中没有显著的运动,角点相对于之前的位置几乎没有改变,会怎样?
英文:

I want to detect the corners of a document in real time meaning that I want to draw a bounding quad around the document similar to how most doc-scanner app do. I also want to do this by scratch. I have already read a few corner detection algorithms such as the Harris corner detector, but I have a few concerns:

  1. How do I implement this in the image analysis part of the camerax library and draw a bounding quad (not box since it can be slanted) around it in real-time meaning it is updated each frame of the camera preview?
  2. Is there a more optimized approach since for the Harris corner detection, i will have to calculate the Ix, Iy, etc. each frame, and what if there isn't any significant movement in the image and the corners are relatively where they were before?

答案1

得分: 1

关于在预览上叠加检测结果的问题,此前已经有人提过。请参考:https://stackoverflow.com/questions/63090795/how-to-draw-on-previewview

关于文档扫描的最佳实践,我不确定是否有。Dropbox 在这个主题上有一系列写得很好的博客文章:https://dropbox.tech/tag-results.doc-scanner

英文:

For laying detection result over preview, the question has been asked before. See: https://stackoverflow.com/questions/63090795/how-to-draw-on-previewview

I don't know if there is a best practice for documents scanning. Dropbox has a series of well written blog posts on the topic: https://dropbox.tech/tag-results.doc-scanner

huangapple
  • 本文由 发表于 2020年7月30日 22:34:44
  • 转载请务必保留本文链接:https://go.coder-hub.com/63175446.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定