Samual Sam has Published 2491 Articles

Calendar function in Python

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:23

1K+ Views

Python has an in built module called calendar which operation is related to calendar. There are some calendar functions in Python. calendar(year, w, l, c) This function shows the year, width of characters, no. of lines per week and column separations. Example print ("The calendar of 2014 is : ... Read More

Reading an image using Python OpenCv module

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:23

2K+ Views

In OpenCv module, we can use the function cv2.imread() to read an image. When inputting the image path, the image should be in the working directory or a full path of image should be given. cv2.IMREAD_COLOR − This function loads a color image and any transparency of image will be ... Read More

Histograms Equalization using Python OpenCv Module

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:23

558 Views

This is a method in image processing to do contrast adjustment using the image's histogram. Actually this method usually increases the global contrast of many images, especially when the usable data of the image is represented by close contrast values and through this adjustment, the intensities can be better distributed ... Read More

Addition and Blending of images using OpenCv in Python

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:23

342 Views

We know that when we solve any image related problem, we have to take a matrix. The matrix content will vary depending upon the image type - either it would be a binary image(0, 1), gray scale image(0-255) or RGB image(255 255 255). So if we want to add of ... Read More

Implementing Photomosaics in Python

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:23

543 Views

The photomosaic is a technique, where we can split our image into a grid of squares. Each square will be replaced by some other images or colors. So when we want to see the actual image from a certain distance, we can see the actual image, but if we come ... Read More

Chaining comparison operators in Python

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:23

706 Views

Sometimes we need to use more than one condition checking in a single statement. There are some basic syntax for these kind of checking is x < y < z, or if x < y and x < z etc. Like other languages, there are some basic comparison operators in ... Read More

Unit Testing for C# Code

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:23

924 Views

Unit testing is a key for C# code since it can help in maintaining code in the development process. It lets you know about the problems in the development cycle. With Unit Testing, you can make the code reliable and reusable. One of the fundamental principles of adopting unit testing ... Read More

Instruction type DAD rp in 8085 Microprocessor

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:23

14K+ Views

In spite of the fact that 8085 is an 8-bit microprocessor, but there are some instructions are there available in the 8085 instruction set which can do 16-bit additions also. As the 8085 internal architecture is only 8-bits, this instruction easily takes double the time needed to add two 8-bit ... Read More

First Class functions in Python

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:23

2K+ Views

In different programming languages, First Class objects are those objects, which can be handled uniformly. First Class objects can be stored as Data Structures, as some parameters of some other functions, as control structures etc. We can say that a function in Python is First Class Function, if it supports ... Read More

Instruction type ANI d8 in 8085 Microprocessor

Samual Sam

Samual Sam

Updated on 30-Jul-2019 22:30:23

6K+ Views

In 8085 Instruction set, ANI is a mnemonic, which stands for “ANd Immediate with Accumulator” and “d8” stands for any 8-bit or 1-Bytedata. This instruction is used to AND 8-bit immediate data with the Accumulator’s content. The result of this ANDingoperation will be stored in the Accumulator itself over writing ... Read More

Advertisements