readme: # MidcurveNN
  Midcurve by Neural Networks
  
  ![Midcurve](https://github.com/yogeshhk/MidcurveNN/blob/master/TalksPublications/images/IMG-20191008-WA0001.jpg)
  
  ---
  license: apache-2.0
  ---
  
  ## Description
  - Goal: Given a 2D closed shape (closed polygon) find its midcurve (polyline, closed or open)
  - Input: set of points or set of connected lines, non-intersecting, simple, convex, closed polygon 
  - Output: another set of points or set of connected lines, open/branched polygons possible
  
  ## ToDos
  - Based on code at https://github.com/yogeshhk/MidcurveNN/tree/master/src/simpleencoderdecoder prepare Trainer class to train model using dataset uploaded here. Push model here
  - Prepare Gradio demo space here as well as inferencing API which takes profile image and generates midcurve image
  
  
  ## Publications/Talks
  - Vixra paper MidcurveNN: Encoder-Decoder Neural Network for Computing Midcurve of a Thin Polygon, viXra.org e-Print archive, viXra:1904.0429 http://vixra.org/abs/1904.0429 
  - ODSC proposal https://confengine.com/odsc-india-2019/proposal/10090/midcurvenn-encoder-decoder-neural-network-for-computing-midcurve-of-a-thin-polygon
  - CAD Conference 2021, Barcelona, pages 223-225 http://www.cad-conference.net/files/CAD21/CAD21_223-225.pdf
  - CAD & Applications 2022 Journal paper 19(6) http://www.cad-journal.net/files/vol_19/CAD_19(6)_2022_1154-1161.pdf
  - Google Developers Dev Library https://devlibrary.withgoogle.com/products/ml/repos/yogeshhk-MidcurveNN
  
  ## Citation
  
  ```
  @article{MidcurveNN,
    doi = {https://doi.org/10.14733/cadaps.2022.1154-1161},
    url = {https://www.cad-journal.net/files/vol_19/CAD_19(6)_2022_1154-1161.pdf},
    author = {Kulkarni, Yogesh H.},
    keywords = {Midcurve, Encoder-Decoder, Neural Network},
    title = {MidcurveNN: Neural Network for Computing Midcurve of a Thin Polygon},
    publisher = {CAD Solutions, LLC},
    journal={Computer-Aided Design & Applications},
    volume={19},
    issue={6},
    pages={1154-1161},
    year = {2022}
  }
  ```