This file contains 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
#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) |
This file contains 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
#@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) ) |
This file contains 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
#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 |
This file contains 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
#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 |
This file contains 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
#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) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
#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) |