Home  >  Article  >  Software Tutorial  >  How to export text in photos

How to export text in photos

WBOY
WBOYforward
2024-01-22 23:18:05964browse

How to export text in photos

How to export text from photos

Office: Extract text from pictures

Microsoft has a component package called "Microsoft Office Document Imaging" among the tool components in Microsoft Office 2003. This component contains a very useful feature that directly performs optical character recognition (OCR). With this feature, users can extract text from images. Below I will introduce to you how to use the new OCR function in Office 2003 for text extraction.

In the first step, we need to install the components of "Microsoft Office Document Imaging", click "Start → Programs", click "Microsoft Office Document Imaging" in "Microsoft Office Tools" to install and run (as shown in Figure 1) .

Step 2: Open a picture or e-book with text, find the page you want to extract, and press the Print Screen key (PrintScreen) on the keyboard to take a screen shot.

The third step is to open Microsoft Office Word 2003 and paste the screenshot just now; click "Print" in the "File" menu. After installing the Microsoft Office Document Imaging component, the system will automatically install a program called "Microsoft Office Document Imaging Writer" printer. As shown in Figure 2, select the "Microsoft Office Document Imaging Writer" printer in the "Printer" drop-down list box. No additional settings are required for other options. After clicking the "OK" button, set the file output path and file name (default Using the source file name), an MDI format document can be automatically generated soon.

Figure 2 Select printer

Open the MDI type file you just saved (as shown in Figure 3), use the mouse to select the text content according to your needs (the selected content is in the red box), then right-click the mouse and select the pop-up shortcut menu Select "Send text to Word" to automatically convert the image content into a new Word document, and then you can edit it as you like in the Word document.

Figure 3 Send text to Word

Tips: If you do not want to input the converted content into a new Word document, but want to paste it into an already open Word document, just click "Copy" on the right-click menu in the above operation, and then Just go to the specified document and paste it.

How to export the contents of cells from word

Methods as below:

1. First, open the media tool "Notepad", copy and paste the data to be imported from the word file into Notepad, and then save it as a txt file. In this example, name the txt file "1.txt ".

2. Open the excel table, click the "Data" tab, and find "Self Text" in "Get External Data".

3. Click "From Text", the next window will pop up, select the txt type file named 1 that you just saved, and click "Import". Since there are only three file types txt, csv, and prn available for data import in the "self-text" mode, you need to convert word to txt in advance.

4. The text import dialog box pops up and select the default fixed width, which means that the data corresponds to the cells one-to-one. If you select the delimiter, all imported data will be in one cell, then click Next.

5. Setting branch lines is actually to control the number of imported data columns. You can add branch lines at any position by clicking the mouse. Double-click any branch line and it will be deleted. After completing the settings, click Next.

6. Set the format of the output data. Generally, no settings are required. Just select General and click "Finish".

7. The import is completed.

The above is the detailed content of How to export text in photos. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:docexcel.net. If there is any infringement, please contact admin@php.cn delete