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...
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 structureExampleIntroductionStructures 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...
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 classQuestionTo know about Static class variable first we need to know about wh...
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...
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 StatementIn 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
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...
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...
October 24, 2022
Divide by 3 [9 different ways]
We will dive into each method in de...
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 StatementIn 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
First we take the input from the user and store it in a float data type for ex...
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 scriptIntroductionPython is an interpreted programming language like JavaScript, PHP , bash and Ruby. Such languages are termed scripting languages, because their ...
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?ConclusionGridCSS 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...