开发者

word document in opencv

I nee开发者_如何学JAVAd to access a word document with an image and then process that image for patterns. Is there a way to read a word document and store it as IplImage in opencv?


OpenCV cannot read Word files (which version BTW?).

If this is a one-time operation, you can always open the file in Word, set the view size (zoom) to 100%, use print-screen to capture the image to the clipboard, and paste it into any image editing program (IrfanView, Photoshop, MSPaint) for proper cropping. Then save your image as an image file (e.g. PNG, BMP, JPG) and process it using OpenCV.


You can send the Word document to Powerpoint where you can save it as a jpeg image. That image can be loaded in Opencv as IplImage.


OpenCV cannot read Word files.

If you do not want a save-jpg-to-a-file-option, you could read up on the file format of a Word file, and open it in your program (using fopen or something) and read each byte of it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜