Skip to content

Instantly share code, notes, and snippets.

View Ankita-Das's full-sized avatar
💛
Constructing my way

Ankita Das Ankita-Das

💛
Constructing my way
View GitHub Profile
@Ankita-Das
Ankita-Das / style_transfer_exercise.ipynb
Created February 7, 2020 00:52
Style_Transfer_Exercise.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Ankita-Das
Ankita-Das / target_to_content.ipynb
Created January 22, 2020 04:50
Target_to_Content.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Ankita-Das
Ankita-Das / mnist_deskew.py
Last active December 16, 2023 10:22
MNIST_deskewing using findContours,minAreaRect,drawContours of opencv (python)
import numpy as np
import cv2
image=cv2.imread('MNIST/test/3647.png')
gray=cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)## for 9 problem with 4665,8998,73,7
#I faced a problem with the deskewing and the solution suggested by @zindarod "https://stackoverflow.com/questions/51237834/deskewing-mnist-dataset-images-using-minarearect-of-opencv"
#really improved the deskewing
#gray=cv2.bitwise_not(gray)
Gblur=cv2.blur(gray,(5,5))
thresh=cv2.threshold(Gblur,0,255,cv2.THRESH_BINARY | cv2.THRESH_OTSU)[1]
@Ankita-Das
Ankita-Das / read_into_colab_from_drive.ipynb
Last active July 2, 2018 00:18
read_into_colab_from_drive.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.