harshalplus1 / resume-classification-withoutOCR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Resume Classification without OCR

A CNN Model built for classfying whether a given image is resume or not.

Dependencies

Use the package manager pip to install opendatasets.

pip install opendatasets

Dataset

import opendatasets as op
op.download("https://www.kaggle.com/datasets/pdavpoojan/the-rvlcdip-dataset-test")

The RVL-CDIP (Ryerson Vision Lab Complex Document Information Processing) dataset consists of 400,000 grayscale images in 16 classes, with 25,000 images per class. There are 320,000 training images, 40,000 validation images, and 40,000 test images. The images are sized so their largest dimension does not exceed 1000 pixels

Code

Source Code

Changes made in the source code: Train test split

References:

Adam W. Harley, A. U. (2015). Evaluation of Deep Convolutional Nets for Document Image Classification and Retrieval. Toronto, Ontario: Ryerson University.

The study, which was my main reference, includes the same process of dividing the document into four sections, but with a difference in how to collect the common features. PCA & Conca was used in the study, while it was used in the GlobalAveragePooling1D code.

Another difference is the study used multiple convolutional neural structures for each part extracted from the images of the document, while in my notebook, one convolutional neural network was used, and the network input was considered to be 4 parts representing one complete image.

Results:

ss1

ss2

ss3

Modules

pandas, numpy, tensorflow, string, nltk, pathlib, os, cv2, matplotlib

About


Languages

Language:Jupyter Notebook 100.0%