Skip to content

Latest commit

 

History

History
89 lines (52 loc) · 2.1 KB

README.md

File metadata and controls

89 lines (52 loc) · 2.1 KB

Description

LogIm is an application that allows you to get the truth table of a logical expression, or the corresponding logical expression of a given truth table, only by taking a picture of it!

Technologies

Classical image processing techniques and machine learning were used. 1673003199368

Installation

This code runs in JupyterNotebook, so you must have anaconda installed first

Anaconda download

conda install pip

pip install opencv-python
pip install truth-table-generator
pip install ipynb
pip install image
pip install customtkinter

Run

To run through Jupyter Notebook

Navigate to final_integration.py

Run all cells

Create a new cell containing the code below

## new cell code ##
image = cv2.imread("./image_path") #replace with your image path

solve_expression(image, is_table=bool) #for solving an expression, False for is_table
				       #for solving a truth table, True for is_table

To run through GUI

run the following command in your terminal

python ./table.py

Samples

Input image

1673004145736

Output

1673004156723

Input image

1673003980706

Output

16730040119811673004027774

1673004045312

1673004067044

1673004081264

Collaborators

Sarah Elzayat Ahmed ata abdallah Nour Ziad Almulhem fady