Skip to content

Category Archives: Python

This module provides support for rational number arithmetic. It allows to create a Fraction instance from integers, floats, numbers, decimals and strings. Fraction Instances :… Read More
Template matching is a technique for finding areas of an image that are similar to a patch (template). A patch is a small image with certain… Read More
Class Method The @classmethod decorator is a built-in function decorator that is an expression that gets evaluated after your function is defined. The result of… Read More
getpass() prompts the user for a password without echoing. The getpass module provides a secure way to handle the password prompts where programs interact with… Read More
This article aims at explaining and exploring the vulnerability in the input() function in Python 2.x. In Python 3, the raw_input() function was erased, and… Read More
In last article, we have discussed the basics of sending a mail from a Gmail account without any subject as well as without any attachment.… Read More
The Hough Transform is a method that is used in image processing to detect any shape, if that shape can be represented in mathematical form.… Read More
Pre-requisite: Linear Regression This article discusses the basics of Logistic Regression and its implementation in Python. Logistic regression is basically a supervised classification algorithm. In… Read More
Morphological operations are a set of operations that process images based on shapes. They apply a structuring element to an input image and generate an… Read More
While coding in various competitive sites, many people must have encountered NZEC errors. NZEC (non zero exit code) as the name suggests occurs when your… Read More
The following program detects the edges of frames in a livestream video content. The code will only compile in linux environment. Make sure that openCV is… Read More
We are given a data set of items, with certain features, and values for these features (like a vector). The task is to categorize those items… Read More
Introduction to SVMs: In machine learning, support vector machines (SVMs, also support vector networks) are supervised learning models with associated learning algorithms that analyze data… Read More
The following code in python uses OpenCV library which is employed for image processing techniques. The program allows the detection of a specific color in… Read More
Given a number n, write a program to print a diamond shape with 2n rows.Examples :     Recommended: Please try your approach on {IDE} first,… Read More