Add Borders to an Image in OpenCV Python

Shahid Akhtar Khan
Updated on 02-Dec-2022 07:02:40

2K+ Views

OpenCV provides the function cv2.copyMakeBorder() to add borders in images. To add border in an image, you could follow the steps given below − The first step is to import required libraries. In all below Python examples the required Python library is OpenCV. Make sure you have already installed it. The next step is to read an input image using the cv2.imread() function. Specify the full image path with image types (.jpg or .png). Specify different parameters to the function cv2.copyMakeBorder(). The different parameters to be specified are src, dst, top, bottom, left, right, borderType, and value. Call ... Read More

Find and Draw Extreme Points of an Object on an Image Using OpenCV Python

Shahid Akhtar Khan
Updated on 02-Dec-2022 06:59:32

2K+ Views

To find and draw the extreme points of an object in the input image, we could follow the steps given below − The first step is to import required libraries. In all below Python examples the required Python library is OpenCV. Make sure you have already installed it. The next step is to read an input image using the cv2.imread() function. Specify the full image path with image types (.jpg or .png). Convert the input image to grayscale. Apply thresholding on the grayscale image to create a binary image. Adjust the second parameter to get a better contour ... Read More

Draw Circles Using Mouse Events in OpenCV Python

Shahid Akhtar Khan
Updated on 02-Dec-2022 06:55:16

2K+ Views

There are different types of muse events such as left or right button click, mouse move, left button double click etc. OpenCV provides us with different types of mouse events such as cv2.EVENT_LBUTTONDOWN for mouse left button down, cv2.EVENT_RBUTTONDOWN for right button down, cv2.EVENT_LBUTTONDBLCLK for left button double click and others. A mouse event returns the coordinates (x, y) of the mouse event. To perform an action when an event happens, we define a mouse callback function. We use mouse events to draw circles on the image. Steps To draw circles using mouse events, follow the steps given below ... Read More

Difference Between Capital Reserve and Revenue Reserve

Kiran Kumar Panigrahi
Updated on 02-Dec-2022 06:09:59

2K+ Views

In a company, there are two types of reserves namely Capital Reserve and Revenue Reserve. The basic difference between the two is that, capital reserve is the fund created for non-trading activities, whereas the revenue capital is the fund created for trading activities. In this article, we will discuss all the important differences between capital reserve and revenue reserve. But before that, let's start with some basics of capital reserve and revenue reserve so it will become easier to understand how they are different from each other. What is Capital Reserve? The type of reserve that is created from the ... Read More

Difference Between Website and Portal

Kiran Kumar Panigrahi
Updated on 02-Dec-2022 06:07:29

9K+ Views

Websites and Portals both have a webbased interface. They are correlated terms in the Internet terminology. The basic difference between a website and a portal is that a website is a collection of related webpages, whereas a portal is a gateway to the World Wide Web and is used to access various services of the Internet. In this article, we will discuss the important differences between website and portal. Let's start with a basic introduction of what websites and portals are. What is a Website? A Website is a collection of related webpages and is made to available under one ... Read More

Difference Between Web Page and Website

Kiran Kumar Panigrahi
Updated on 02-Dec-2022 06:05:41

4K+ Views

Web page and website are related terms and sometimes people tend to use them interchangeably, but they are distinct from each other. The basic difference between a web page and a website is that a web page is a text document written in HTML (Hyper Text Markup Language) and is rendered by a web browser, whereas a website is a collection of related webpages having a specific address, called URL, on the Internet. This article is meant for explaining the important differences between web page and website. But, before going into the differences, let's have a basic overview of what ... Read More

Difference Between Waterfall Model and RAD Model

Kiran Kumar Panigrahi
Updated on 02-Dec-2022 06:03:58

5K+ Views

The most basic difference between the waterfall model and the RAD model is that the waterfall model is a linearly-sequential life cycle model of software development in which software testing is done after the completion of all coding phases. On the other hand, RAD (Rapid Application Development) is an incremental model of software development. Read through this article to find out more about the waterfall model and the RAD model and how they are different from each other. What is Waterfall Model? Waterfall Model is the classical model of software development where each phase of software development is completed in ... Read More

Difference Between SSH and Telnet

Kiran Kumar Panigrahi
Updated on 02-Dec-2022 06:01:36

17K+ Views

There are various application programs that we can use to access the resources of a remote machine. Telnet and SSH are the primary client server application programs that use remote terminal service which allows a user at one site to interact with a remote timesharing system at another site as if the user’s keyboard and a display is connected directly to the remote machine. Telnet and SSH both are Layer7 application layer protocols and both use TCP (Transmission Control Protocol) at the transport layer. In this article, we will discuss the important differences between SSH and Telnet. But before going ... Read More

Difference Between Spear Phishing and Whaling

Kiran Kumar Panigrahi
Updated on 02-Dec-2022 05:59:04

3K+ Views

Both spear phishing and whaling are types of cyberattacks. Spear phishing is a type of phishing attack in which scammers install malware on the targeted user’s system in addition to stealing data for fraudulent objectives, whereas whaling is a cyberattack on high profile persons such as CEOs, CFOs, celebrities, politicians, etc. Whaling is a relatively highrisk strategy as compared to spear phishing. Read through this article to find out more about spear phishing and whaling and how they are different from each other. What is Spear Phishing? Spear Phishing is a type of email phishing attack where a personalized email ... Read More

Difference Between Software Testing and Embedded Testing

Kiran Kumar Panigrahi
Updated on 02-Dec-2022 05:39:20

2K+ Views

Software testing involves only the testing of software parts of the system, while embedded testing involves the testing of both software and hardware parts of the system. Read through this article to find out more about software testing and embedded testing and how they are different from each other. What is Software Testing? Software testing refers to verifying and validating the behavior of the software developed. It ensures that software works as expected without any defect. It also helps in documenting that software is meeting the requirements and is ready to use. Software testing also checks the exceptions and error ... Read More

Advertisements