Skip to content

Instantly share code, notes, and snippets.

View GeekyPRAVEE's full-sized avatar
🏠
Working from home

PRAVEEN LK GeekyPRAVEE

🏠
Working from home
View GitHub Profile
#programming_fever
import cv2
import numpy as np
import time
load_from_disk = True
if load_from_disk:
hsv_value = np.load('hsv_value.npy')
cap = cv2.VideoCapture(0)
cap.set(3,1280)
cap.set(4,720)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#finding hsv range of target object(pen)
import cv2
import numpy as np
import time
# A required callback method that goes into the trackbar function.
def nothing(x):
pass
# Initializing the webcam feed.
cap = cv2.VideoCapture(0)
#programming_fever
import cv2
import numpy as np
import pandas as pd
img_path = "D://OpenCV//shape-detection//New folder//color palette.jpg"
img = cv2.imread(img_path)
img=cv2.resize(img,(700,500))
clicked = False
#programming_fever
import cv2
import numpy as np
import pandas as pd
img_path = "D://OpenCV//shape-detection//New folder//color palette.jpg"
img = cv2.imread(img_path)
img=cv2.resize(img,(700,500))
clicked = False
#@programming_fever
import cv2
import imutils
import numpy as np
import pytesseract
pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files (x86)\Tesseract-OCR\tesseract.exe'
img = cv2.imread('D://skoda1.jpg',cv2.IMREAD_COLOR)
img = cv2.resize(img, (600,400) )
@GeekyPRAVEE
GeekyPRAVEE / invisibility cloak.py
Created June 30, 2020 06:55
harry potter's invisibility cloak using OpenCV python
#programming_fever
#harry potter's invisibility cloak using OpenCV python
import cv2
import time
import numpy as np
## Preparation for writing the ouput video
fourcc = cv2.VideoWriter_fourcc(*'XVID')
out = cv2.VideoWriter('output.avi', fourcc, 20.0, (640, 480))
##reading from the webcam
cap = cv2.VideoCapture(0)