How to Install OpenCV using Pip in Python

OpenCV (Open Source Computer Vision) is a cross-platform Python library commonly used in computer vision tasks such as Deep Learning, Image processing, Augmented Reality, Object Detection, etc. You have to install it first as it doesn’t come pre-built in Python....

How to Round Numbers to 2 Decimals in Python

Floating point numbers can be unnecessarily long sometimes. In such a case, we need to round down the number to some specified decimal numbers. Several built-in functions are offered/supported by Python that can be utilized for different purposes. In this post, we...

How to Sort a Dictionary by Value in Python

Python is a feature-enriched programming language that includes many features and tools. One such feature is a dictionary that enables us to save data in a combination of key-value pairs. A dictionary is a mutable (that can be changed) data structure that stores...