OpenCV

Object Detection algorithms

Best Object Detection algorithm (Fast, Faster, RCNN, Yolo)

Object detection is a computer vision technique in which we identify the object and the location of that object in image or video. It is an important part of machine learning and deep learning. In object detection we will learn machine so it will identify the element of an image, like a human.

Image Thresholding in OpenCV

There are various type of thresholding. We will discuss one by one: Simple Thresholding If pixel value less then threshold value then it is assigned one value else we will assign another value. For thresholding we will use cv2.threshold function. In this function we will pass four parameters: 1: Source image: Source image should be …

Image Thresholding in OpenCV Read More »

OpenCV magical code – Hidden Bottle

import cv2import numpy as npcap = cv2.VideoCapture(0)while (1): # Take each frame _, frame = cap.read() # Convert BGR to HSV hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV) # define range of blue color in HSV lower_blue = np.array([90, 50, 70]) upper_blue = np.array([128, 255, 255]) # Threshold the HSV image to get only blue colors mask = …

OpenCV magical code – Hidden Bottle Read More »