Skip to content

Instantly share code, notes, and snippets.

@Techy43
Techy43 / Edge Detection
Created December 10, 2025 19:10
PCV Practicals
import cv2
# Load an image
img = cv2.imread("test.jpg") # keep test.jpg in same folder
# Resize image to fit on screen
img = cv2.resize(img, (800, 600))
# Convert to gray scale
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
@Techy43
Techy43 / 1A, 1B, 1C
Created December 9, 2025 03:40
ANN Practicals
print("Input x=")
x = float(input())
print("Weight w=")
w = float(input())
print("Bias b=")
b = float(input())
yin = b + x * w
@Techy43
Techy43 / Gensim
Created December 8, 2025 05:36
NLP Practicals
!pip install gensim matplotlib scikit-learn
from gensim.models import Word2Vec
from sklearn.manifold import TSNE
import matplotlib.pyplot as plt
sentences = [
["students", "love", "python"],
["teachers", "guide", "students"],
["college", "life", "is", "fun"],
@Techy43
Techy43 / Pract 1
Created December 6, 2025 13:28
SAP Practicals
PARAMETERS: p_fname TYPE string,
p_mname TYPE string,
p_lname TYPE string.
DATA: lv_withspace TYPE string,
lv_withoutspace TYPE string,
lv_condensed TYPE string.
DATA: lv_len_fname TYPE i,
lv_len_mname TYPE i,
lv_len_lname TYPE i,
lv_len_final TYPE i.