Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Nurul Ferdous dynamicguy

🎯
Focusing
View GitHub Profile
View PreProcessing.py
"""
get_info() function reads the image using openCV and performs thresholding, dilation, noise removal, and
contouring to finally retrieve bounding boxes from the contour.
Below are some of the additional available functions from openCV for preprocessing:
Median filter: median filter blurs out noises by taking the medium from a set of pixels
cv2.medianBlur()
View remove_color.py
from skimage import io, color, img_as_float
from skimage.feature import corner_peaks, plot_matches
import matplotlib.pyplot as plt
import numpy as np
from skimage import io, img_as_float, color, exposure
img = img_as_float(io.imread('./ml/old-front.jpg'))
View MainActivity.java
/*
Copyright 2016 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
View CLA
DynamicGuy Contributor License Agreement
In order to clarify the intellectual property license granted with Contributions from any person or entity, the open source project DynamicGuy ("DynamicGuy") must have a Contributor License Agreement (CLA) on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of DynamicGuy and its users; it does not change your rights to use your own Contributions for any other purpose.
You accept and agree to the following terms and conditions for Your present and future Contributions submitted to DynamicGuy. Except for the license granted herein to DynamicGuy and recipients of software distributed by DynamicGuy, You reserve all right, title, and interest in and to Your Contributions.
Definitions. "You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with DynamicGuy. For legal entities,
View paddleocr-cla
PaddlePaddle Contributor License Agreement
In order to clarify the intellectual property license granted with Contributions from any person or entity, the open source project PaddlePaddle ("PaddlePaddle") must have a Contributor License Agreement (CLA) on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of PaddlePaddle and its users; it does not change your rights to use your own Contributions for any other purpose.
You accept and agree to the following terms and conditions for Your present and future Contributions submitted to PaddlePaddle. Except for the license granted herein to PaddlePaddle and recipients of software distributed by PaddlePaddle, You reserve all right, title, and interest in and to Your Contributions.
Definitions. "You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with PaddlePaddle. For
View numba-cuda-stencil.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View nid.postman_collection.json
{
"id": "3350490a-69dd-b36a-3312-32ac069f3bb3",
"name": "nid",
"description": "nid api",
"order": [
"29ae7f7b-37da-b199-97b4-c45d58732450",
"7737337f-66a7-39f9-77aa-1bd8b6c930bf",
"82d3b33d-62bb-d90b-fbd9-e082f85e73d1",
"8e2bb929-99aa-a20a-13fb-055bdb6f58cf",
"ebc4a796-c72e-c56f-fb78-ac66eb779dda"
View migrations.sql
INSERT INTO django_migrations (id, app, name, applied) VALUES (1, 'contenttypes', '0001_initial', '2020-12-16 17:02:39.203249');
INSERT INTO django_migrations (id, app, name, applied) VALUES (2, 'contenttypes', '0002_remove_content_type_name', '2020-12-16 17:02:39.218893');
INSERT INTO django_migrations (id, app, name, applied) VALUES (3, 'auth', '0001_initial', '2020-12-16 17:02:39.231312');
INSERT INTO django_migrations (id, app, name, applied) VALUES (4, 'auth', '0002_alter_permission_name_max_length', '2020-12-16 17:02:39.240053');
INSERT INTO django_migrations (id, app, name, applied) VALUES (5, 'auth', '0003_alter_user_email_max_length', '2020-12-16 17:02:39.247193');
INSERT INTO django_migrations (id, app, name, applied) VALUES (6, 'auth', '0004_alter_user_username_opts', '2020-12-16 17:02:39.253789');
INSERT INTO django_migrations (id, app, name, applied) VALUES (7, 'auth', '0005_alter_user_last_login_null', '2020-12-16 17:02:39.260455');
INSERT INTO django_migrations (id, app, name, applied) VALUES (
View tasks.py
# encoding: utf-8
# !/usr/bin/env python
from __future__ import absolute_import, unicode_literals
# from tesserocr import PyTessBaseAPI
from PIL import Image
import hashlib
import os
import datetime as dt
from django.conf import settings
View tweets2.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 4.
id, text, user, user_loc, user_bio, user_followers, retweet_count, user_mentions, favorite_count, created_at, source, lang, hashtags
1302336803001819136,"RT @sunflxwervolsix: You know how you can tell who the liar is? Johnny Depp admitted to his drug addiction, a sensitive topic known to be p…",irenebsyhogan,,“My name is Irene Hogan and i am legend!!!!!!!!!” I wrote this bio when I was 12. I’m leaving it here to remind myself that I was cringe. Don’t Judge. #Olicity,115,43,['sunflxwervolsix'],0,Sat Sep 05 20:04:24 +0000 2020,Twitter for iPhone,en,[]
1302269054623850496,"RT @sunflxwervolsix: You know how you can tell who the liar is? Johnny Depp admitted to his drug addiction, a sensitive topic known to be p…",pennywisemyg,United Kingdom,"Film lover. Photo taker.
👽
👽
👽
Instagram - coolaboolaa",23,43,['sunflxwervolsix'],0,Sat Sep 05 15:35:12 +0000 2020,Twitter for Android,en,[]
1302250841588596736,"RT @sunflxwervolsix: You know how you can tell who the liar is? Johnny Depp admitted to his drug addiction, a se