Gireesha Devara has Published 248 Articles

How to prevent loops going into infinite mode in Python?

Gireesha Devara

Gireesha Devara

Updated on 23-Aug-2023 19:02:26

3K+ Views

In python the while loop needs to be controlled by making some provision inside the body of the loop to drive the condition mentioned in the beginning to false. This is usually done by keeping count of iterations. If the while loop condition never evaluates to False, then we will ... Read More

How to convert float to integer in Python?

Gireesha Devara

Gireesha Devara

Updated on 23-Aug-2023 18:42:17

2K+ Views

In python there are two number data types: integers and floats. In general integers do not have any decimal points and base value is 10 (i.e., Decimal). Whereas floats have decimal points. Python provides some built−in methods to convert floats to integers. In this article we will discuss some of ... Read More

How to convert an integer to a character in Python?

Gireesha Devara

Gireesha Devara

Updated on 23-Aug-2023 18:36:02

37K+ Views

To convert an integer to a character in Python, we can use the chr() method. The chr() is a Python built−in method that returns a character from an integer. The method takes an integer value and returns a unicode character corresponding to that integer. Syntax char(number) Parameter The method ... Read More

OpenCV Python Program to analyze an image using Histogram

Gireesha Devara

Gireesha Devara

Updated on 31-May-2023 15:18:14

725 Views

A histogram is a graphical representation showing how the pixel intensities (ranging from 0 to 255) are distributed in an image. For a digital image histogram plots a graph between pixel intensity versus the number of pixels. The x-axis has intensity variations, and the y-axis indicates the number of pixels ... Read More

Negative transformation of an image using Python and OpenCV

Gireesha Devara

Gireesha Devara

Updated on 31-May-2023 15:14:42

3K+ Views

An image with reversed brightness is referred a negative image, in which the light parts of the image appear dark and the darker parts appear lighter. The negative transformation of a colored image (RGB image) will be reversed, with red areas appearing cyan, greens appearing magenta, and blues appearing yellow. ... Read More

Get video duration using OpenCV Python

Gireesha Devara

Gireesha Devara

Updated on 31-May-2023 15:09:07

7K+ Views

OpenCV is an Open Source Computer Vision Library in python. It provides numerous functions to perform various Image and video processing operations. The library uses the Numpy module to represent all the video frames and images as a ndarray type. It needs the numpy library, we need to make sure ... Read More

Draw a triangle with centroid using OpenCV

Gireesha Devara

Gireesha Devara

Updated on 31-May-2023 14:50:29

1K+ Views

The centroid is also called the geometric center; it is defined as the center point of the object. Whereas the centroid of a triangle is defined as the point of intersection of all three medians of a triangle. Calculating the Centroid of a triangle: Let’s consider an ABC ... Read More

Drawing a cross on an image with OpenCV

Gireesha Devara

Gireesha Devara

Updated on 30-May-2023 17:28:00

3K+ Views

OpenCV is an Open Source Computer Vision Library in python. It provides numerous functions to perform various Image and video processing operations. The library uses the Numpy module to represent all the video frames and images as a ndarray type. It needs the numpy library, we need to make sure ... Read More

Draw Multiple Rectangles in Image using OpenCV Python

Gireesha Devara

Gireesha Devara

Updated on 30-May-2023 16:31:22

1K+ Views

OpenCV is an Open Source Computer Vision Library in python. It provides numerous functions to perform various Image and video processing operations. The library uses the Numpy module to represent all the video frames and images as a ndarray type. It needs the numpy library, we need to make sure ... Read More

Removing Black Background and Make Transparent using OpenCV Python

Gireesha Devara

Gireesha Devara

Updated on 30-May-2023 16:25:57

3K+ Views

In digital images, Transparency is the functionality that supports transparent areas in an image or image layer. For image processing/image editing, background removing is allowing us to highlight the subject of the photo and create a transparent background to place the subject into various new designs and destinations. Certain image ... Read More

Previous 1 ... 3 4 5 6 7 ... 25 Next
Advertisements