The winning implementation of the 2024 Makeathon (AI Hackathon) by UniAI.
Challenge issued by Company: Linakis.digital
Problem: "Compare and review Web page designs and the respective web implementation, in a frictionless manner which provides information regarding mistakes, mismatches and inconsistencies."
This project is a tool for comparing design mockups with their implemented websites. It uses OCR (Optical Character Recognition), image similarity comparison, and NLP (Natural Language Processing) to identify and list differences between the design and the implementation.
The project is written in Python and JavaScript, and uses npm and pip as package managers.
-
Place the design mockup and the implemented website screenshot in the
Figmas_and_Web_pages/UI_test/public/images
directory. The design mockup should be namedFigma_design.png
and the implemented website screenshot should be namedWeb_page.png
. -
Run the
Main.py
script:python Main.py
-
The script will analyze the images and output a list of differences in the
differences.txt
file in the same directory as the images. -
Run the
server.js
script to start the server:node server.js
-
Open a web browser and navigate to
http://localhost:{PORT}
to view the differences between the images. (In{PORT}
enter the port number that the server is running on. In current script the port is set to '8000')
The project consists of several Python scripts and a JavaScript file:
Main.py
: The main script that orchestrates the comparison process.Image_Similarity.py
: Contains the function for computing the cosine similarity between two images.Claude_3_Sonnet.py
: Contains the function for finding differences between two images using NLP.Object_det.py
: Contains the function for object detection in images.OCR.py
: Contains functions for analyzing images using OCR and comparing the results.server.js
: A simple Node.js server for displaying the differences between the images in a web browser.
This project uses the following libraries and APIs:
- AWS SDK for Python (Boto3) for interacting with AWS services
- Pillow for handling images in Python
- OpenAI's GPT-3 for natural language processing provided by Azure services
Please ensure that you have the necessary permissions and credentials to use the AWS services and OpenAI's GPT-3.
Alphabetically:
-
Given the interest in the project, there are plans of further developing.
-
An analytical guide of installation will be provided in the future.
-
The project will be updated with more features and functionalities.
-
The UI will be further developed and fully funnctional.
-
The project will be updated with more detailed documentation.
-
(More Loadinng...)
*The project is an original idea and implementation by the winning team members of the UniAI Makeathon 2024.
**The project is not directly affiliated with Linakis.digital or any other company.
***The README image was AI-generated by OpenAI's DALL·E.