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
Top