Skip to content

Instantly share code, notes, and snippets.

View pk00095's full-sized avatar

T Pratik pk00095

View GitHub Profile
@pk00095
pk00095 / mser_text_detection.py
Created December 5, 2020 16:45
detection of text using pure image processing with opencv in python
import cv2
import numpy as np
from nms import non_max_suppression_fast
def draw_bboxes(img, bboxes, colour=(0,255, 255)):
for x1, y1, x2, y2 in bboxes:
img = cv2.rectangle(img,(x1, y1), (x2, y2), colour, 1)
return img
def letter_rects(img, bboxes):
@pk00095
pk00095 / Install protobuf 3.6.1 on Ubuntu 16.04
Created September 30, 2020 05:30 — forked from ryujaehun/Install protobuf 3.6.1 on Ubuntu 16.04
Install protobuf 3.6.1 on Ubuntu 16.04
#! /bin/bash
# Make sure you grab the latest version
curl -OL https://github.com/google/protobuf/releases/download/v3.6.1/protoc-3.6.1-linux-x86_64.zip
https://github.com/google/protobuf/releases/download/v3.6.1/protoc-3.6.1-linux-x86_64.zip
# Unzip
unzip protoc-3.6.1-linux-x86_64.zip -d protoc3
# Move protoc to /usr/local/bin/
sudo mv protoc3/bin/* /usr/local/bin/
@pk00095
pk00095 / installing_nvidia_driver_cuda_cudnn_linux.md
Created September 25, 2020 08:31 — forked from kmhofmann/installing_nvidia_driver_cuda_cudnn_linux.md
Installing the NVIDIA driver, CUDA and cuDNN on Linux

Installing the NVIDIA driver, CUDA and cuDNN on Linux (Ubuntu 20.04)

This is a companion piece to my instructions on building TensorFlow from source. In particular, the aim is to install the following pieces of software

on an Ubuntu Linux system, in particular Ubuntu 20.04.