CodeAnalyzer

Overview

The CodeAnalyzer project is a comprehensive tool for analyzing code snippets extracted from images. It leverages Optical Character Recognition (OCR) to read code from images, processes the text using Natural Language Processing (NLP), and classifies the programming language. The tool also provides insights into key features of the code and detects potential issues or best practice violations.

Features

  • OCR Integration: Uses EasyOCR to extract text from images of code.
  • Text Preprocessing: Cleans and formats the extracted text for analysis.
  • Language Classification: Identifies the programming language of the code using a deep learning model.
  • Feature Explanation: Highlights key features of the code, such as function definitions, class definitions, and imports.
  • Issue Detection: Detects potential errors or best practice violations specific to the programming language.
  • Visualization: Displays the uploaded image for user reference.

Requirements

  • easyocr
  • transformers
  • nltk
  • tensorflow
  • numpy
  • matplotlib
  • google.colab

Built With

  • easyocr
  • jupyter-notebook
  • matplotlib
  • nltk
  • numpy
  • transformers
Share this project:

Updates