我正在尝试安装 Audiveris OCR 来制作音乐符号。作为安装的一部分,我已按照以下说明安装了 Microsoft VC++ 环境。
我的问题是关于说明的第二部分:“系统环境变量 TESSDATA_PREFIX 设置为 /ocr/(包括最后的“/”字符),以便 Tesseract 软件可以检索自己的数据“”。
我应在哪里以及如何执行此操作?
谢谢。
这是从 Audiveris 网站获取的:
* Microsoft VC++ 2008 to be installed beforehand (the free express edition is fine).
* The system environment variable TESSDATA_PREFIX to be set to <install-dir>/ocr/ (including the final "/" character) so that Tesseract software can retrieve its own data.
答案1
来自知识库http://support.microsoft.com/kb/311843适用于 Windows 2000,但我认为该区域多年来并没有发生太大变化。
本文分步介绍如何在 Windows 2000 环境中创建系统变量以及如何查看系统变量信息。管理员组的成员将完成所有过程。
创建系统变量
1. Click Start, point to Settings, and then click Control Panel.
2. Double-click System.
3. On the Advanced tab, click Environment Variables.
4. Under System variables, click New.
5. In the Variable Name box type the name for your variable, in the Variable Value
box type your variable path, and then click OK.
6. Click OK.
删除系统变量
1. Click Start, point to Settings, and then click Control Panel.
2. Double-click System.
3. On the Advanced tab, click Environment Variables.
4. In the System variables box, click the variable you want to remove, and then
click Delete.
5. Click OK.
查看系统变量
1. Click Start, point to Programs, Administrative Tools, and then click Computer
Management.
2. In the console tree, click to expand System Information, click to expand Software
Environment, and then click Environment Variables.
3. The display pane to the right lists all current system variables and their
associated values.
在文本文档中保存系统变量
1. In the Computer Management snap-in console tree, right-click Environment Variables,
and then click Save As Text File.
2. In the File name box, type the name you are giving to the file, and then click Save.