What is Python?

Python is a programming/scripting language that can be used on many different computers and operating systems, including Windows, Unix, Macintosh, etc.

Read More

Why Python?

It’s very straightforward and easy to read and write. It’s now one of the most popular programming languages.

Read More

Getting Started With Python

The first and most obvious thing to do is download Python and start playing!

Read More

How to Crop Images with OpenCV and Python

In OpenCV, images are simply Numpy arrays. So we can use Numpy array slicing for image cropping and remove the part we are not interested in. The image below will be used as an example throughout this tutorial. Crop an Image Using OpenCV The first dimension of a Numpy array represents the rows of the array

How to Rotate Images with OpenCV and Python

In this tutorial, we will see how to rotate images with OpenCV using some built-in functions. The first one is cv2.getRotationMatrix2D which, as its name suggests, will give us the transformation matrix that we will use to rotate the image. The second function is cv2.warpAffine, this function applies the rotation by using the transformation matrix. Rotate Images with OpenCV

How to Use Django’s Generic Foreign Key

Django provides the contenttypes framework that allows us to create generic relationships between models. This can be useful when you want to implement, for example,  a comment system where you can comment on posts, user profiles, images, and even comments themselves. In this tutorial, we will use the ContentType model, GenericForeignKey field, and GenericRelation to implement a comment system where users

Build a Blog with Django #1: Project Configuration

In this tutorial series, we are going to build a blog application with Python and the Django web framework. We will start from the configuration of the project then we will implement the following features: authentication, reset password, change password, comment, create a post, and finally we will deploy the application. Dependencies To check the