This rule-based expert system is written in Arity/Prolog32 interpreter. For a detailed information about the expert system please read the PDF file: Rule-Base_Expert_System
.
Some preparations must be made before running this program on a Windows box. The following steps may be followed to set up the environment and run the expert system.
- Downloading and installing the Arity/Prolog32 zipped file.
- Running the expert system application inside the Prolog interpreter.
To download and install the Arity/Prolog32 interpreter, please visit Peter L. Gabel's website at http://petergabel.info/ArityProlog32/InstallingArityProlog32. After downloading, set the following system environment variables.
C:\ArityProlog32\BIN
to yourPATH
variableC:\ArityProlog32\LIB
to yourLIB
variableC:\ArityProlog32\INCLUDE
to yourINCLUDE
variable
After installing the software, you can run the Arity/Prolog32 interpreter by typing the following command in the command prompt: C:\api32
To run the expert system application, imgexp.ari
Prolog file, download it from the section on GitHub. Go to the directory where you put the imgexp.ari
file after downloading and run the api32.exe
interpreter, see Figure 1.
In the interpreter, type in Alt-F and select File > Consult File … In the dialog box that pops up, type in the filename imgexp.ari
, see Figure 2. To start the expert system type ?- begin.
Do not type the ?-
, it is the Prolog interpreter prompt. See Figure 3.
Now, you can interact with the expert system, trying out various tool combinations using the thresholding method for edge enhancement, See Figure 4.
Figure 1. The Arity/Prolog32 Interpreter
Figure 2. Consulting a Prolog file to run
Figure 3. Starting the Expert System
Figure 4. Main Window of the Expert System