Found 33676 Articles for Programming

How to create a bar chart and save in pptx using Python?

Mukul Latiyan
Updated on 20-Apr-2023 14:02:13

2K+ Views

Data visualization is an essential part of data analysis and communication, and Python offers many tools and libraries to create visually appealing and informative charts. Two such libraries are Plotly and pptx. Plotly is a powerful library for creating interactive charts, including bar charts, while pptx is a library for working with PowerPoint presentations. Creating a bar chart using Plotly is relatively easy. You can specify the data to be plotted, the type of chart, and the layout of the chart, and Plotly will generate a highquality chart that can be easily customised. Once the chart is created, you can ... Read More

How to Create a Backup of a SQLite Database Using Python?

Mukul Latiyan
Updated on 20-Apr-2023 14:00:36

2K+ Views

SQLite is a popular lightweight and server less database management system used in many applications. It is known for its ease of use, small footprint, and portability. However, just like any other database, it is important to have a backup of your SQLite database to protect against data loss. Python is a powerful programming language that is widely used for various tasks including data processing and management. In this tutorial, we will explore how to create a backup of a SQLite database using Python. We will walk through the process of connecting to a SQLite database, creating a backup file, ... Read More

Golang Program to Use Field Tags in the Definition of Struct Type

Siva Sai
Updated on 20-Apr-2023 13:07:34

369 Views

In Go programming language, field tags are metadata that can be attached to the fields of a struct type. These tags provide additional information about the field such as its name, data type, validation rules, etc. Field tags are used extensively in many Go libraries and frameworks, including database and web application frameworks. In this article, we will explore how to use field tags in the definition of a struct type in Go programming language. We will also discuss some common use cases of field tags and their benefits. What is a Struct Type in Go? A struct type is ... Read More

How to Package and Deploy CLI Applications With Python

Harshit Sachan
Updated on 20-Apr-2023 13:06:15

4K+ Views

Based on the interface we have two types of applications CLI (Command Line Interface) applications and GUI (Graphical User Interface) applications. A command line application or, console application is the one which can be accessed from a shell or, command line through a text interface, these accepts inputs from the user in the text format. Unlike GUI Applications which provides a Graphical interface containing, buttons text boxes and icons, to the users to access the underlying application. Python is a popular programming language for developing CLI applications, though the process of packaging and distributing such applications is a bit ... Read More

Color Identification in Images using Python and OpenCV

Harshit Sachan
Updated on 20-Apr-2023 13:05:19

15K+ Views

Identifying colors in images is a task commonly performed in computer vision and image processing. It has a wide range of applications such as object detection, image segmentation, and image retrieval. In this article, we will see how to determine colors in an image using Python and OpenCV. Open CV is a popular computer vision library written in C/C++ with bindings for Python, OpenCV provides easy ways of manipulating color spaces. Open CV is open source and gives various algorithms useful in image processing. Before identifying colors in an image let us learn about some common image representation methods. ... Read More

Color Spaces in OpenCV and Python

Harshit Sachan
Updated on 20-Apr-2023 13:03:19

3K+ Views

Color spaces are different types of color modes, used in image processing and signals and system for various purposes. Open CV is a popular computer vision library written in C/C++ with bindings for Python, OpenCV provides easy ways of manipulating color spaces. Open CV is open source and gives various algorithms useful in image processing. In computer vision, colors are represented using color spaces. There are so many color spaces that are currently used in computer vision and image processing, each having its own unique characteristics and advantages. Some of the very common color spaces in image processing are ... Read More

Combobox Widget in Python Tkinter

Harshit Sachan
Updated on 20-Apr-2023 13:01:56

19K+ Views

Tkinter is a Python binding to the Tk GUI toolkit. It is the standard Python interface to the Tk GUI toolkit, and is Python's standard GUI. Tkinter is included with standard Linux, Microsoft Windows and macOS installations of Python. We can create many widgets from python’s tkinter module. One of those multiple widgets is Combobox which is a very widely used powerful tool that can be customized to create lists that allow users to select one or more options from a list of given options. The Combobox widget combines a text input with a drop-down list, allowing the user ... Read More

Command Line File Downloader in Python

Harshit Sachan
Updated on 20-Apr-2023 12:59:35

717 Views

Python is a powerful programming language that provides many tools and libraries for different applications. We can also create a command line file downloader in python. Command line downloader is used to download files from internet manually through command line interface or your terminal without using browser. To create a command line file downloader in python we need two libraries, they are argparse and required. We should have basic knowledge of terminal or command line interface and python language before we start building this application. Installation Before we continue, we need to have the above mentioned libraries in our ... Read More

Connect new point to the previous point on a image with a straight line in OpenCV-Python

Harshit Sachan
Updated on 20-Apr-2023 12:58:02

1K+ Views

We might have to draw lines on an image for various purposes like drawing, scribbling, tracking the movements of a point etc. so it is necessary to know how to connect 2 points in image processing. OpenCV is a library of programming functions primarily for real-time computer vision. The library is cross-platform and licensed as free and open source software under the Apache License. In this article, we will learn how we can connect a new point to the previous point on an image with a straight line using OpenCV-Python. Connecting a Points on with the Previous One ... Read More

Convert BGR and RGB with Python and OpenCV

Harshit Sachan
Updated on 20-Apr-2023 12:56:07

12K+ Views

OpenCV is a library of programming functions primarily for real-time computer vision. The library is cross-platform and licensed as free and open source software under the Apache License. It is written in C++ and has Python bindings that make it easy to use in Python applications. In this article we are going to learn how to Convert BGR and RGB with python and OpenCV. Before proceeding further first of all let us understand BGR and RGB. What are BGR and RGB RGB and BGR are both color models used to represent colors in digital images. However, the main difference between ... Read More

Advertisements