Skip to content

SSahas/Image-cropping-with-Computer-vision

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image-cropping-with-CV

crop images automatically with computer vision techniques

framework :Tensorflow

Images and bounding box augumentation : albumentations

Handwritten images were collected and used makesense.ai for bounding box annotation.Built a custom neural network using tensorflow keras to predict bounding box co-ordinates and also used transfer learning techniques like retrainng ssd mobilenet pretrained model using tensorflow object detection api and also retrained yolov5 model using pytorch and compared the results.

Performed image augumentation on images using albumentations library and trained the custom neural network on a total of 176 images.

Objective

Example Image

The model Crops the the image automatically, as shown below.

intro PNG

NOTE : To see the Tensorflow_neural_network.ipynb code please view it on colab here : https://colab.research.google.com/drive/1al5VwJEMDkp_NHlQQEaJnF14PALCNUEO#scrollTo=dxuGKZSUGobx.

Results

Model Accuracy mAP(0.5) Inference time(s)
Yolov5(680 X 680) 0.996 0.99 0.298
custom neural network(224 X 224) 0.759 0.418 0.138
ssd mobile net Tensorflow(320 X 320) 0.987 0.817 0.08

About

Automatic Image cropping, Computer vision, TensorFlow

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published