Skip to content

OCR tool to convert UML sketches to a code skeleton using Computer Vision and Image Processing.

License

Notifications You must be signed in to change notification settings

AAnirudh07/O-SE-R

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

O-SE-R

This repository contains the implementation details for the OCR tool built to convert UML sketches to a code skeleton using Image Processing.

How to use O-SE-R

Prerequisites

Run O-SE-R

  • Detect the UML classes and inheritance symbols: yolo_img.py
  • Generate code skeleton: gen_code_skel.py

Test Set Results:

  Total Number of Classes: 274
  Number of Classes Identified: 233
  % of Classes Identified: 85.03%

  Total Number of Inheritance Symbols: 50
  Number of Inheritance Symbols Identified: 44
  % of Classes Identified: 88.00%

  Total Number of Associations: 144
  Number of Associations Identified: 64
  % of Associations Identified: 44.44%

  Total Number of Generalizations: 50
  Number of Generalizations Identified: 18
  % of Generalizations Identified: 36%

Dataset

An open-source dataset was annotated to the train the YOLO model on UML classes and inheritance symbols.

Original dataset link: https://www.kaggle.com/datasets/leticiapiucco/handwritten-uml-class-diagrams

About

OCR tool to convert UML sketches to a code skeleton using Computer Vision and Image Processing.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published