capture screen and osr

4 ビュー (過去 30 日間)
Ivan Shorokhov
Ivan Shorokhov 2016 年 9 月 30 日
編集済み: Ivan Shorokhov 2016 年 9 月 30 日
Hello everyone,
What I want is to capture certain rectangular area of screen from webbrowser and then using Optical Character Recognition (OCR) to recognize the text. http://uk.mathworks.com/help/vision/examples/recognize-text-using-optical-character-recognition-ocr.html
So what I have done so far:
I = screencapture(gca);
% Perform OCR
BW = im2bw(I);
marker = imerode(BW , strel('line',500,0));
Iclean = imreconstruct(marker, BW );imshow(Iclean);
results = ocr(Iclean, 'TextLayout', 'Block');
results.Text
Where the input image was
And the output I got was quite impressive: 2.311.592 /
But the only problem I have is how to select specific region outside Matlab?
  2 件のコメント
Jan
Jan 2016 年 9 月 30 日
編集済み: Jan 2016 年 9 月 30 日
How is the region specified? Are you looking for a window with a specific name? Is the window created at a specific position on the screen? We cannot guess this detail and Matlab cannot also.
Which operating system are you working with?
Why don't you download the image directly using webread? Is the indirection over the browser useful?
Ivan Shorokhov
Ivan Shorokhov 2016 年 9 月 30 日
Hello Jan Simon,
Thank you very much for your quick response and help. I want to specify region with Rectangular Snip. So I can drag the cursor around any object to form a rectangle. OS: Windows I have tried to use webread, but it didn't work.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeLanguage Support についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by