This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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 |
OlderNewer