Python Code Tutorials


articles/gender-and-age-detection-using-opencv-in-python.jpg
Age and Gender Detection using OpenCV in Python

Learn how to perform age and gender detection using OpenCV library in Python with camera or image input.

articles/how-to-sign-pdf-files-in-python.png
How to Sign PDF Files in Python

Learn how to generate self-signed certificates and sign them into PDF files as digital signatures using PyOpenSSL and PDFNetPython3 libraries in Python.

articles/detect-gender-from-faces-using-opencv-in-python.png
Gender Detection using OpenCV in Python

Learn how to perform gender detection on detected faces in images using OpenCV library in Python.

articles/predicted_age.jpg
Age Detection using OpenCV in Python

Learn how to predict someone's age from his front face picture using OpenCV library in Python

articles/merge-pdf-files-in-python.jpg
How to Merge PDF Files in Python

Learn how to merge two or multiple PDF files into a single PDF file using PyPDF4 library in Python

articles/encrypt-pdf-files-using-python.jpg
How to Encrypt and Decrypt PDF Files in Python

Learn how to add and remove passwords to PDF files using PyPDF4 library, as well as using pyAesCrypt to encrypt and decrypt PDF files in Python

articles/compress-pdf-files-in-python.jpg
How to Compress PDF Files in Python

Learn how to compress PDF files in Python using the wrapper of PDFTron SDK.

articles/convert-pdf-files-to-images-using-python.jpg
How to Convert PDF to Images in Python

Learn how to use PyMuPDF library to convert PDF files into individual images per page in Python.

articles/convert-pdf-to-docx-in-python.jpg
How to Convert PDF to Docx in Python

Learn how you can use pdf2docx library to convert PDF files to docx word files in Python

articles/pdf-ocr.jpg
How to Extract Text from Images in PDF Files with Python

Learn how to leverage tesseract, OpenCV, PyMuPDF and many other libraries to extract text from images in PDF files with Python

articles/highlight-text-in-pdf-files-with-python.jpg
How to Highlight and Redact Text in PDF Files with Python

Learn how to use PyMuPDF library to highlight, frame, underline, strikeout and redact text in PDF Files with Python.

articles/imbalancedata_yVSlYfN.png
Imbalance Learning With Imblearn and Smote Variants Libraries in Python

Learn how to overcome imbalance related problems by either undersampling or oversampling the dataset using different types and variants of smote in addition to the use of the Imblearn library in Python.

articles/watermark-pdf-with-python.jpg
How to Watermark PDF Files in Python

Learn how to add and remove watermarks to/from PDF files with PyPDF4 and reportlab libraries in Python.

articles/creating-webhooks-in-python-with-flask.jpg
Webhooks in Python with Flask

Learn how to create a streaming application with real-time charting by consuming webhooks with the help of Flask, Redis, SocketIO and other libraries in Python.

articles/creating-a-watchdog-in-python.jpg
How to Create a Watchdog in Python

Learn how to monitor and watch your file system for events by creating a watchdog in Python with watchdog and pygtail libraries.

articles/changing-text-color-in-python.jpg
How to Change Text Color in Python

Learn how to use colorama library to print colored text with different colors (such as red, green and blue) in the background and foreground and brightness in Python.