## Draw geometric shapes on images using OpenCV

OpenCV provides many drawing functions to draw geometric shapes and write text on images. Let’s see some of the drawing functions and draw geometric shapes… Read More »

- Puzzle | Minimum distance for Lizard
- Number of quadrilaterals possible from the given points
- Check if it is possible to move from (0, 0) to (x, y) in N steps
- Number of triangles that can be formed with given N points
- Rectangle with minimum possible difference between the length and the width
- Area of largest triangle that can be inscribed within a rectangle
- Check if any square (with one colored cell) can be divided into two equal parts
- Area of a circle inscribed in a regular hexagon
- Check if a point is inside, outside or on the ellipse
- Find a point such that sum of the Manhattan distances is minimized
- Check if a point lies on or inside a rectangle | Set-2
- Number of squares of side length required to cover an N*M rectangle
- Largest Square that can be inscribed within a hexagon
- Minimum squares to cover a rectangle
- Program to find the Circumcircle of any regular polygon
- Check if a point is inside, outside or on the parabola
- Program to find the Radius of the incircle of the triangle
- Maximum number of pieces in N cuts
- Intersecting rectangle when bottom-left and top-right corners of two rectangles are given
- Program to find the angles of a quadrilateral
- Circumradius of the rectangle
- Find area of triangle if two vectors of two adjacent sides are given
- Largest right circular cylinder within a cube
- Area of Largest rectangle that can be inscribed in an Ellipse
- Program to find the Volume of an irregular tetrahedron
- Apothem of a n-sided regular polygon
- Check if it is possible to create a polygon with a given angle
- Check if the given 2-D points form T-shape or not
- Largest trapezoid that can be inscribed in a semicircle
- Program to find the Centroid of the triangle

OpenCV provides many drawing functions to draw geometric shapes and write text on images. Let’s see some of the drawing functions and draw geometric shapes… Read More »

Given a number X which represents the floor of a matchstick pyramid, write a program to print the total number of matchstick required to form… Read More »

Problem – Find the vertex, focus and directrix of a parabola when the coefficients of its equation are given. A set of points on a… Read More »

Given two arrays X[] and Y[] with n-elements, where (Xi, Yi) represent a point on coordinate system, find the smallest rectangle such that all points… Read More »

Given two overlapping rectangles on a plane. We are given bottom left and top right points of the two rectangles. We need to find the… Read More »

Given three positive integers a, b and d. You are currently at origin (0, 0) on infinite 2D coordinate plane. You are allowed to jump… Read More »

Given the length of sides of an equilateral triangle. We need to write a program to find the area of Circumcircle of the given equilateral… Read More »

Given two coordinates of a line as (x1, y1) and (x2, y2), find if the line passing through these points also passes through origin or… Read More »

Given two circles of radius r and R, both have their centre at the origin. Now, given another circle of radius r1 and centre at… Read More »

Given a standard football, regular hexagons and pentagons are drawn on it as shown in the picture. Find out the number of hexagons and pentagons.… Read More »

Enneagon is a polygon with 9 sides and 9 internal angles. Enneagon is also known as Nonagon. A regular nonagon has an internal angle of… Read More »

Given the side of a square then find the area of a Circumscribed circle around it. Examples: Input : a = 6 Output : Area… Read More »

There is a m*n rectangular matrix whose top-left(start) location is (1, 1) and bottom-right(end) location is (m*n). There are k circles each with radius r.… Read More »

Given the sides of Octahedron then calculate the surface area. Examples: Input : 7 Output : 169.741 Input : 9 Output : 280.59 Recommended: Please… Read More »

Given the radius(r) of circle then find the area of square which is Circumscribed by circle. Examples: Input : r = 3 Output :Area of… Read More »