问题描述
我看起来像附件图片,如何在iPhoneSDK中实现这一点。
任何人都可以建议我一些开源API 或者算法代码用于检测文档捕获图像的角落。
一些如何,我得到了一个名为 OpenCV 非常认可
在第10-6页,有一组轮廓检测功能:
CvContourScanner cvStartFindContours(IplImage * img,
CvMemStorage *存储,
int headerSize,
CvContourRetrievalMode模式,
Cv ChainApproxMethod方法);
int cvFindContours(IplImage * img,
CvMemStorage * storage,
CvSeq ** firstContour,
int headerSize = sizeof(CvContour),
CvContourRetrievalMode mode = CV_RETR_LIST,
CvChainApproxMethod method = CV_CHAIN_APPROX_SIMPLE);
我希望有所帮助。
您的问题的目标是,如何在ios / iPhone上使用OpenCV,然后您可以查看以下网站。准备好的XCode项目文件,用于iOS项目:
另一个可以在此处找到包含非常有价值信息的StackOverflow帖子:
I am looking something like attached image, How can I implement this in iPhoneSDK.
Can anybody suggest me some open source API or Algorithm Code to detect the corners of captured image of a document.
Some How, I got an open source API called OpenCV which recognize the Human Face very well. I want to use the same API if possible.Now the problem Is how can I make the changes in those static libraries according to my requirement to Scan the Document edges.Alternatively,
how to detect for the square/rectangle object in the captured image ?
When you are already using openCV you might know the Reference Manual:
http://www.sciweavers.org/books/opencv-open-source-computer-vision-reference-manual
On page 10-6 there is a reference to the set of contour detection functions:
CvContourScanner cvStartFindContours(IplImage* img,
CvMemStorage* storage,
int headerSize,
CvContourRetrievalMode mode,
CvChainApproxMethod method );
int cvFindContours( IplImage* img,
CvMemStorage* storage,
CvSeq** firstContour,
int headerSize=sizeof(CvContour),
CvContourRetrievalMode mode=CV_RETR_LIST,
CvChainApproxMethod method=CV_CHAIN_APPROX_SIMPLE );
I hope that helps.
When the target of your question was, how to use OpenCV on ios/iPhone then you can have a look at the following Sites. Ready made XCode project files for use in an iOS project:
http://www.eosgarden.com/en/opensource/opencv-ios/overview/
Another StackOverflow post with very valuable information can be found here:
这篇关于在iPhoneSDK中检测文档的边缘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!