Aditya Chatterjee's Blog, page 67

October 28, 2022

YOLO v5 model architecture [Explained]

YOLO is a state of the art, real-time object detection algorithm created by Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi in 2015 and was pre-trained on the COCO dataset. It uses a single neural network to process an entire image. The image is divided into regions and the algorithm predicts probabilities and bounding boxes for each region.

YOLO is well-known for its speed and accuracy and it has been used in many applications like: healthcare, security surveillance and self-driv...

 •  0 comments  •  flag
Share on Twitter
Published on October 28, 2022 13:57

October 27, 2022

Array of structure in C

In this article, we have explored how to create an Array of structure in C and what is the need of it using a complete C code example.

Table of content

IntroductionDeclaration and Its typeNeed for array of structureExampleIntroduction

Structures are user defined data types . In general the structures can be defined as different data types under one name and arrays can be defined as similar data type under one name , so basically Array of structures is an Array of data type structure and th...

 •  0 comments  •  flag
Share on Twitter
Published on October 27, 2022 14:01

October 26, 2022

Static Class Variable in Python

In this article, we have explored Static class variable in Python along with code examples. We have covered different cases like accessing class variable inside and outside class.

Table of Contents:what is class?what is objects?What is Static Variable?Creating Static variable in pythonClassification of static variable in pythonAccessing class variable inside the classAccessing class variable outside of the classQuestion

To know about Static class variable first we need to know about wh...

 •  0 comments  •  flag
Share on Twitter
Published on October 26, 2022 15:43

Odd even level difference in a binary tree

In this article, I will be discussing about the problem "Children sum parent in a Binary Tree" in detail.

Contents:

IntroductionOptimized approachImplementationCode ExplanationTime and Space Complexity AnalysisIntroduction:

In this problem at OpenGenus, we are going to calculate the difference between the the sum of node values at odd levels and the sum of node values at the even levels. we will consider the root node as the first level and its left and right child as the second level and...

 •  0 comments  •  flag
Share on Twitter
Published on October 26, 2022 13:49

Add each digit of a three digit number

Write a program to enter a three digit number and separately print the the digits of the number and add it and provide the implementation in C programming language.

Problem Statement

In this problem we will take an input of a three digit number number and separately print the digits and add them.

for example: 274
output
2
7
4
2+7+4=13

Solution

First we take an input of a three digit number from the user for example a and store it in int data type.

Then we will extract the digit in the hundre...

 •  0 comments  •  flag
Share on Twitter
Published on October 26, 2022 04:11

October 25, 2022

Convert vector to array in C++ [4 methods]

In this article, we have explored 4 different methods to convert vector to array in C++ Programming Language.

Table of contentIntroduction about vectors and arraysDifferent methods of converting vector to arraysTheir implementation.Introduction about vectors and arrays -

Arrays and Vectors both store elements at contiguous memory locations.
In c++ arrays are static and are of fixed size, i.e once we declared the size of an array in a program it is fixed and can't be changed during executio...

 •  0 comments  •  flag
Share on Twitter
Published on October 25, 2022 16:47

October 24, 2022

Divide by 3 [9 different ways]

In this article, we will go through different ways to divide by 3 in C Standard Template Library (STL) and general software techniques. Methods used to divide number by 3 are:Solution using a basic methodSolution using fma() library function, works for any positive numberA logarithmic solutionSolution using iterative wayUsing Bitwise operatorUsing FileUsing div() function from standard libraryUsing counters is a basic solutionUsing itoa() function

We will dive into each method in de...

 •  0 comments  •  flag
Share on Twitter
Published on October 24, 2022 14:02

Separate number from decimal place

In this article, we will solve the problem of separation of number from before the decimal and after and provide the implementation in C programming language.

Table of contents:

Problem StatementSolutionImplementationProblem Statement

In this problem we will take a floating point number and separate it into two part. One that comes before decimal point and onr that comes after

Example: 19.26
output
19
26

Solution

First we take the input from the user and store it in a float data type for ex...

 •  0 comments  •  flag
Share on Twitter
Published on October 24, 2022 10:16

Python Script to search web using Google Custom Search API

In this article, we have developed a Python Script to search web using Google Custom Search API. This will strengthen your implementation skill.

Table of contents:

IntroductionLogin to the Google Cloud ConsoleCreate a new ProjectEnable the custom search and create new credentialCreate your custom search engineWrite the Python scriptIntroduction

Python is an interpreted programming language like JavaScript, PHP , bash and Ruby. Such languages are termed scripting languages, because their ...

 •  0 comments  •  flag
Share on Twitter
Published on October 24, 2022 06:29

October 23, 2022

Flexbox vs Grid

In this article, we have explored the differences between two important CSS layouts namely Flexbox and Grid in depth.

Table of contents:

GridFlexboxOne Vs. Two DimensionContent-First Vs. Layout-FirstWhen to use Flexbox and Grid?ConclusionGrid

CSS grid is a two-dimensional layout system with rows and column, which means that it opens a lot of different possibilities to build more complex and organized design systems.

To get started, all you need to do is pass a css display: gridproperty t...

 •  0 comments  •  flag
Share on Twitter
Published on October 23, 2022 03:20