dip notes

i

import cv2
import numpy as np

# Load the input image
img = cv2.imread('input.jpg')  # Reads the image from file

# ---------- Rotation (45° around center) ----------
h, w = img.shape[:2]  # Get image height and width
M_rot = cv2.getRotationMatrix2D((w/2, h/2), 45, 1)  # Rotation matrix: center, angle, scale=1
rotated = cv2.warpAffine(img, M_rot, (w, h))  # Apply rotation

# ---------- Scaling (Down to 50%) ----------
scaled = cv2.resize(img, None, fx=0.5, fy=0.5)  # fx, fy are scaling factors

#

...

See on Student Notes »

AI cheat sheet

‘Soft’ Inference: Probability

  1. What Is Probability?

    • A measure PPP assigning each event AAA a number in [0,1][0,1][0,1].

    • Axioms:

      1. P(∅)=0,  P(Ω)=1P(\varnothing)=0,\;P(\Omega)=1P(∅)=0,P(Ω)=1

      2. 4 disjoint A,BA,BA,B, P(A∪B)=P(A)+P(B)P(A\cup B)=P(A)+P(B)P(A∪B)=P(A)+P(B)

    • Conditional: P(A∣B)=P(A∧B)P(B)P(A\mid B)=\frac{P(A\land B)}{P(B)}P(A∣B)=P(B)P(A∧B)​

  2. Bayesian Inference

    • Bayes’ Rule:

      P(H∣E)=P(E∣H) P(H)P(E) P(H\mid E)=\frac{P(E\mid H)\,P(H)}{P(E)}P(H∣E)
...

See on Student Notes »

organisational change

Organisational change" in simple terms means a company or group changing the way it works. This could be:

  • Changing how people do their jobs

  • Bringing in new technology

  • Changing the structure of teams or leadership

  • Starting new goals or ways of thinking

The aim is usually to improve the organisation, keep up with the times, or solve problems.t happens when a business wants to improve, grow, solve problems, or respond to something new (like new laws, customer needs, or technology).New ways

...

See on Student Notes »

asdfghjk

You use ED when you are talking about People/ Subject. You use ING when you are talking about a Situation/Object E: I'm Bored (ED) This situation is boring. (ING) They are boring me to death. (Is a situation because is afeet another person) Models of Speculation –  Presente (Must = certeza She must be tired.) (May / Might / Could = possibilidade He might be at home.) (Can’t / Cannot = certeza negativaThat can’t be true.) ( Passado (Modal + have + past participle) (Must have =

...

See on Student Notes »

weeeeeee

🔧 Kotlin & Android Coding Terms You Must Know

  • ?.let {}: Kotlin null-safe scope function. Prevents crashes if object is null; not a security check.

  • getCallingPackage(): Identifies the app that sent an intent. Use this to verify intent source.

  • checkCallingOrSelfPermission(): Checks if permission is declared. Does not verify actual identity of sender.

  • resolveActivity(intent, 0): Checks if the intent can be handled. Prevents app crash, but not a security check.

  • putExtra() / getStringExtra(

...

See on Student Notes »

Interpretation of statutes

1Reference to Constituent Assembly Debates in Adjudication: Theoretical Approaches, Scholarly Themes, and Judicial Practice

Introduction

The Constituent Assembly Debates (CAD) of India, spanning from 1946 to 1950, represent a foundational moment in the creation of the Indian Constitution. These debates, involving figures like B.R. Ambedkar and Jawaharlal Nehru, have become a crucial interpretive resource for courts, scholars, and legislators seeking to understand the intent and philosophy underlying

...

See on Student Notes »

Interview

Hi, I'm Navneeth, a final-year Computer Science Engineering student. I have a strong interest in full stack development and machine learning. During my academic journey, I completed an internship where I worked on [brief description of your role—e.g., building web applications, working with data, or contributing to a live project]. It gave me hands-on experience with tools like Flask, React, and version control systems like Git.

Alongside my internship, I developed projects like MediVision, a

...

See on Student Notes »

newcheat

Cooperative learning is an instructional strategy that involves students working together in small groups to achieve common academic goals. This approach emphasizes collaboration, active participation, and the shared responsibility of learning. Unlike traditional individual-based learning models, cooperative learning promotes interaction among peers, encouraging the exchange of ideas and the development of social and cognitive skills. In the context of B....

See on Student Notes »

ggggggggggg

Chapter 5: Independent Assortment and Laws of Probability*  
This chapter explores Mendel’s principles and statistical tools in genetics. Mendel’s *Law of Independent Assortment* explains how chromosomes segregate randomly during meiosis, creating genetic diversity (\(2^n\) possible gametes). The *product law* (probability of joint independent events) and *sum law* (probability of mutually exclusive outcomes) predict genetic ratios. *Chi-square analysis* tests hypotheses by comparing observed
...

See on Student Notes »