
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 33676 Articles for Programming

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. In Medical Imaging, Remote Sensing, and some other applications negative transformation is widely used. It also helps to find the details from the darker regions of the image. The negative transformation function is − As we know that an 8-bit image has a max intensity value is 255, therefore ... Read More

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 that the numpy module is also installed in our python interpreter. In this article, we will see different ways to get the duration of a video using the python OpenCV module. The OpenCV provides a VideoCapture.get() method to get the specified property of a video by passing one of the ... Read More

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 triangle, the three vertices of the triangle are A(x1, y1), B(x2, y2), and C(x3, y3). Then the centroid of a triangle can be calculated by taking the average of the x and y coordinates of all three vertices. centroid of a triangle = ((x1+x2+x3)/3 , (y1+y2+y3)/3 ) In ... Read More

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 that the numpy module is also installed in our python interpreter. In this article, we will see different ways to draw a cross on an image using OpenCV Python. Let’s observe the input-output scenario to understand how to draw a cross on an image. Input Output Scenarios Assuming we have ... Read More

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 that the numpy module is also installed in our python interpreter. In this article, we will see different ways to draw multiple rectangles in an image using OpenCV Python. To draw the rectangular shape on an image, Python OpenCV module provides a method called cv2.rectangle(). The cv2.rectangle() function The ... Read More

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 formats do not support transparency, for example, TIFF, PNG, and WebP graphics formats support transparency, whereas JPEGs have none. In this article, we will see how to remove the black background from an image to make it transparent using OpenCV Python. Like RGB channels, the alpha channel is used to ... Read More

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 that the numpy module is also installed in our python interpreter. In this article, we will see different ways to draw rectangular shapes and extract the object using python OpenCV. Drawing a Rectangle To draw the rectangular shape on an image, Python OpenCV module provides a method called cv2.rectangle(). This ... Read More

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 python Numpy module to represent all the video or image arrays as a ndarray type. It needs the numpy library, we need to make sure that the numpy module is also installed in our python interpreter. Displaying date and time in videos using OpenCV In live streaming/video processing applications sometimes we need to display the date and time on videos. To achieve this, we can use the python datetime module. The python datetime ... Read More

461 Views
OpenCV is an Open Source Computer Vision Library in python. It provides numerous functions to perform various Image or video processing operations. The library uses the python Numpy module to represent all the video or image arrays as a ndarray type. In this article, we will see click responses on video output using events in the python OpenCV module. To identify which mouse event occurred on the video output. Here we will use the below mouse event − cv2.EVENT_LBUTTONDOWN: indicates the left button is pressed cv2.EVENT_RBUTTONDOWN: indicates the right button is pressed Also, we will use ... Read More

2K+ Views
OpenCV is an Open Source Computer Vision Library in python. It provides numerous functions to perform various Image or video processing operations. The library uses the python Numpy module to represent all the video or image arrays as a ndarray type. OpenCV-python needs the numpy library, we need to make sure that the numpy module is also installed in our python interpreter. In this article, we will see how to check if the camera is opened or not using OpenCV Python. Checking if the camera is opened We may not be sure about the status of the camera ... Read More