Skip to content

Instantly share code, notes, and snippets.

View subhajeet2107's full-sized avatar

Subhajeet Dey subhajeet2107

  • India
View GitHub Profile
@subhajeet2107
subhajeet2107 / qr_code_extract.py
Created November 1, 2020 17:25
Extracts Multiple QR Codes from One single sheet of image using opencv and magic
import cv2
import numpy as np
input_file = 'test.jpg' #this should be full path to image
image = cv2.imread(input_file)
original = image.copy()
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
blur = cv2.GaussianBlur(gray, (9,9), 0)
thresh = cv2.threshold(blur, 0, 255, cv2.THRESH_BINARY_INV + cv2.THRESH_OTSU)[1]
@subhajeet2107
subhajeet2107 / Dockerfile
Last active May 25, 2021 17:56
Subdev Docker Image: this is my own docker image for development
#docker build -t subdev .
#docker run -p 8000:8000 -d --name subdev -v $(pwd):/home/ubuntu/main -it subdev
#docker exec -it subdev bash
#docker ps -a
#docker start <container_id>
#ifconfig | grep 'inet 192'| awk '{ print $2}'
FROM ubuntu:18.04
RUN apt-get update
ENV LANG en_IN.utf8