Draw Circle, Print Text On An Image | OpenCV Tutorial

In Python OpenCV Tutorial, Explained How to put text and Circle over the image using python OpenCV? Syntax: cv2.circle(img, center, radius, color ]]) . The function cv::circle draws a simple or filled circle with a given center and radius. . @param img Image where the circle is drawn. . @param center Center of the circle. . @param radius Radius of the circle. . @param color Circle color. ....
Read More

Draw Rectangle, Print Text on an image | OpenCV Tutorial

In Python OpenCV Tutorial, Explained How to put text and rectangle over the image using python OpenCV? Draw Rectangle on Image # Video: import cv2 import numpy as np img_path = r"C:\Users\kashz\AI Life\AI Projects - IAIP, PTs (Web + Channel)\02 OpenCV\000 opencv tutorial\data\images\adult-beard-blur-842567.jpg" image = cv2.imread(img_path) image = cv2.resize(image, (1280, 720)) pt1 = (400,...
Read More

Print Text On Image Using Python OpenCV | OpenCV Tutorial

In this tutorial, we are going to share code that prints any text on an image with a different style using the Python OpenCV library using the cv2.putText() function. Syntax: cv2.putText(image, text, org, font, fontScale, color ]]) How to write Text on Image? import cv2 import numpy as np img_path = r"C:\Users\kashz\AI Life\AI Projects - IAIP, PTs (Web + Channel)\02 OpenCV\000 opencv...
Read More

Create Video from Images or NumPy Array using Python OpenCV | OpenCV Tutorial

In this Python OpenCV Tutorial, explain how to create a video using NumPy array and images. Video From NumPy Array import numpy as np import cv2 import os width = 1280 hieght = 720 channel = 3 fps = 30 sec = 5 # Syntax: VideoWriter_fourcc(c1, c2, c3, c4) # Concatenates 4 chars to a fourcc code # cv2.VideoWriter_fourcc('M','J','P','G') or cv2.VideoWriter_fourcc(*'MJPG) fourcc =...
Read More
save image cv2.imwrite()

Explained Cv2.Imwrite() Function In Detail | Save Image

OpenCV library has powerful function named as cv2.imwrite(). Which saves the NumPy array in the form of an Image. cv2.imwrite() function takes any size of NumPy array and saves it as an image in JPEG or PNG file format. How to save image or NumPy array as image Save Numpy Array #For detail Explanation watch prime video: video link >>> import cv2 import numpy as np import os rand_array =...
Read More
cv2.imshow()

Explained cv2.imshow() function in Detail | Show image

OpenCV library has powerful function named as cv2.imshow(). Which shows the NumPy array in the form of an Image. cv2.imshow() function takes any size of NumPy array and shows the image in the same size in the window. If the image resolution is more than a system screen resolution then it shows only those pixel which fits in the screen. Ex: Image resolution is (2000,1000) (widht, height) and...
Read More
read-image-using-opencv-python

Read Image using OpenCV in Python | OpenCV Tutorial | Computer Vision

Reading image is first step to perform any operation on raw image in OpenCV and Computer Vision. Now we are going to learn How to read image in OpenCV using cv2.imread() function in detail. Read Image using OpenCV Python Syntax: cv2.imread(path, flag) flag: default value is cv2.IMREAD_COLOR Parameters: cv2.IMREAD_COLOR or 1: reads the image with RGB colors cv2.IMREAD_GRAYSCALE or 0: reads the...
Read More
live face mask detection

LIVE Face Mask Detection AI Project from Video & Image

Project Name - LIVE Face Mask Detection App Project In this video we know how we can find live face mask with the help of DP Learning, that too with a good accuracy 99% Training Model using Own CNN Architecture '''Live Face Mask Detection AI App Project Playlist Video Tutorial: ''' # Training CNN model to predict Mask and No Mask (Images) # Install Packages """ pip install tensorflow==2.1.0 pip...
Read More

Build Your Own Live Video To Draw Sketch App In 7 Minutes | Computer Vision | OpenCV

In this tutorial, I have touched you, how to create a Live Video To Make Sketch in only 7 Minutes. Its computer vision Artificial Intelligence project and I used OpenCV Python Library and Cascade Classifier. Live Video To Draw Sketch App import cv2 # generate sketch image def sketch(image): # Convert color image to grayscale img_gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) # make blure image...
Read More

ūü϶ Build Your Own Live Body Detection App in 7 Minutes | Computer Vision | OpenCV

In this tutorial, I have touched you, how to create a Live body Detection App in only 7 Minutes. Its computer vision Artificial Intelligence project and I used OpenCV Python Library and Cascade Classifier. Live Body Detection App import cv2 # Load the Cascade Classifier body_cascade = cv2.CascadeClassifier("haarcascade_fullbody.xml") #startt web cam cap = cv2.VideoCapture('videos/Subway -...
Read More
Top