Effects Of Shadow On Canny Edge Detection through a camera

Similar documents
Feature Detectors - Canny Edge Detector

Feature Detectors - Sobel Edge Detector

Topic 4 Image Segmentation

Analysis of Image and Video Using Color, Texture and Shape Features for Object Identification

Edge detection. Stefano Ferrari. Università degli Studi di Milano Elaborazione delle immagini (Image processing I)

An Algorithm for Blurred Thermal image edge enhancement for security by image processing technique

Keywords: Thresholding, Morphological operations, Image filtering, Adaptive histogram equalization, Ceramic tile.

Image Processing

CS334: Digital Imaging and Multimedia Edges and Contours. Ahmed Elgammal Dept. of Computer Science Rutgers University

A Robust Method for Circle / Ellipse Extraction Based Canny Edge Detection

Solution: filter the image, then subsample F 1 F 2. subsample blur subsample. blur

What Are Edges? Lecture 5: Gradients and Edge Detection. Boundaries of objects. Boundaries of Lighting. Types of Edges (1D Profiles)

Digital Image Processing. Image Enhancement - Filtering

Advanced Video Content Analysis and Video Compression (5LSH0), Module 4

COMPARATIVE STUDY OF IMAGE EDGE DETECTION ALGORITHMS

Local Image preprocessing (cont d)

CS534: Introduction to Computer Vision Edges and Contours. Ahmed Elgammal Dept. of Computer Science Rutgers University

Implementation of Canny Edge Detection Algorithm on FPGA and displaying Image through VGA Interface

CS 4495 Computer Vision. Linear Filtering 2: Templates, Edges. Aaron Bobick. School of Interactive Computing. Templates/Edges

Computer Vision I - Basics of Image Processing Part 2

Edge Detection via Objective functions. Gowtham Bellala Kumar Sricharan

Image Analysis. Edge Detection

Digital Image Processing COSC 6380/4393

Edge Detection Techniques in Processing Digital Images: Investigation of Canny Algorithm and Gabor Method

[ ] Review. Edges and Binary Images. Edge detection. Derivative of Gaussian filter. Image gradient. Tuesday, Sept 16

Detection of Edges Using Mathematical Morphological Operators

Edge detection. Goal: Identify sudden. an image. Ideal: artist s line drawing. object-level knowledge)

EECS490: Digital Image Processing. Lecture #19

Computer Vision I. Announcement. Corners. Edges. Numerical Derivatives f(x) Edge and Corner Detection. CSE252A Lecture 11

Segmentation and Grouping

Adaptative Elimination of False Edges for First Order Detectors

Implementation Of Fuzzy Controller For Image Edge Detection

Image Analysis. Edge Detection

Edge and corner detection

Sobel Edge Detection Algorithm

Line, edge, blob and corner detection

Introduction to Medical Imaging (5XSA0)

CORRELATION BASED CAR NUMBER PLATE EXTRACTION SYSTEM

Computer vision: models, learning and inference. Chapter 13 Image preprocessing and feature extraction

Edges and Binary Images

convolution shift invariant linear system Fourier Transform Aliasing and sampling scale representation edge detection corner detection

Filtering and Enhancing Images

CS5670: Computer Vision

MOVING OBJECT DETECTION USING BACKGROUND SUBTRACTION ALGORITHM USING SIMULINK

Other Linear Filters CS 211A

A threshold decision of the object image by using the smart tag

EDGE BASED REGION GROWING

PERFORMANCE ANALYSIS OF CANNY AND OTHER COMMONLY USED EDGE DETECTORS Sandeep Dhawan Director of Technology, OTTE, NEW YORK

Edge Detection. CSC320: Introduction to Visual Computing Michael Guerzhoy. René Magritte, Decalcomania. Many slides from Derek Hoiem, Robert Collins

Biometrics Technology: Image Processing & Pattern Recognition (by Dr. Dickson Tong)

Neighborhood operations

Towards the completion of assignment 1

Comparison between Various Edge Detection Methods on Satellite Image

Comparison of Some Motion Detection Methods in cases of Single and Multiple Moving Objects

Algorithms for Edge Detection and Enhancement for Real Time Images: A Comparative Study

Lecture 6: Edge Detection

Computer Vision I. Announcements. Fourier Tansform. Efficient Implementation. Edge and Corner Detection. CSE252A Lecture 13.

Edge Detection CSC 767

Announcements. Edge Detection. An Isotropic Gaussian. Filters are templates. Assignment 2 on tracking due this Friday Midterm: Tuesday, May 3.

SRCEM, Banmore(M.P.), India

What is an edge? Paint. Depth discontinuity. Material change. Texture boundary

Edge Detection in Angiogram Images Using Modified Classical Image Processing Technique

CS4670: Computer Vision Noah Snavely

Edge and Texture. CS 554 Computer Vision Pinar Duygulu Bilkent University

N.Priya. Keywords Compass mask, Threshold, Morphological Operators, Statistical Measures, Text extraction

Edge Detection. CMPUT 206: Introduction to Digital Image Processing. Nilanjan Ray. Source:

Lecture: Edge Detection

Announcements. Edges. Last Lecture. Gradients: Numerical Derivatives f(x) Edge Detection, Lines. Intro Computer Vision. CSE 152 Lecture 10

Face Detection using Hierarchical SVM

Lecture 7: Most Common Edge Detectors

RESTORATION OF DEGRADED DOCUMENTS USING IMAGE BINARIZATION TECHNIQUE

Edge Detection Lecture 03 Computer Vision

SIMULATIVE ANALYSIS OF EDGE DETECTION OPERATORS AS APPLIED FOR ROAD IMAGES

Critique: Efficient Iris Recognition by Characterizing Key Local Variations

EE368 Project Report CD Cover Recognition Using Modified SIFT Algorithm

Edge Detection. CS664 Computer Vision. 3. Edges. Several Causes of Edges. Detecting Edges. Finite Differences. The Gradient

Image processing. Reading. What is an image? Brian Curless CSE 457 Spring 2017

Image Gap Interpolation for Color Images Using Discrete Cosine Transform

A New Technique of Extraction of Edge Detection Using Digital Image Processing

Edge and local feature detection - 2. Importance of edge detection in computer vision

CHAPTER 4 EDGE DETECTION TECHNIQUE

How and what do we see? Segmentation and Grouping. Fundamental Problems. Polyhedral objects. Reducing the combinatorics of pose estimation

Subpixel Corner Detection Using Spatial Moment 1)

Introduction. Introduction. Related Research. SIFT method. SIFT method. Distinctive Image Features from Scale-Invariant. Scale.

An Approach for Real Time Moving Object Extraction based on Edge Region Determination

Recognition of a Predefined Landmark Using Optical Flow Sensor/Camera

AN EFFICIENT APPROACH FOR IMPROVING CANNY EDGE DETECTION ALGORITHM

SuRVoS Workbench. Super-Region Volume Segmentation. Imanol Luengo

Vehicle Detection Method using Haar-like Feature on Real Time System

Linear Operations Using Masks

Edge Detection (with a sidelight introduction to linear, associative operators). Images

AUTONOMOUS IMAGE EXTRACTION AND SEGMENTATION OF IMAGE USING UAV S

Prof. Feng Liu. Winter /15/2019

Review of Filtering. Filtering in frequency domain

OCR For Handwritten Marathi Script

Edge detection. Winter in Kraków photographed by Marcin Ryczek

Motion Estimation for Video Coding Standards

EE795: Computer Vision and Intelligent Systems

TUMOR DETECTION IN MRI IMAGES

Image Segmentation Image Thresholds Edge-detection Edge-detection, the 1 st derivative Edge-detection, the 2 nd derivative Horizontal Edges Vertical

Transcription:

1523 Effects Of Shadow On Canny Edge Detection through a camera Srajit Mehrotra Shadow causes errors in computer vision as it is difficult to detect objects that are under the influence of shadows. Shadow hides the true properties of objects and instead shows false edges and features. Moreover, shadow causes artificial colour nature and shape deformation of objects, which degrades the quality of image and acts as a hurdle in computer vision and object recognition algorithms. In path detection, strong shadows on the path troubles the detection of the boundary between clear path and obstacles, making clear path detection algorithms less robust. Shadows affect many object and edge detection algorithms. This paper focuses on eliminating the errors due to shadow and varying light intensity in Canny edge detection algorithm. 3. Non-maximum suppression Canny Edge Detection is a popular edge detection algorithm developed by John F. Canny in 1986. Canny also produced a computational theory of edge detection explaining why the technique works. A lot of people consider the Canny Edge Detector the ultimate edge detector to get clean, thin edges that are well connected to nearby edges. The canny edge detector is a multistage edge detection algorithm. The steps are: A full scan of image is done to remove any unwanted pixels which may not constitute the edge. For this, at every pixel, pixel is checked if it is a local maximum in its neighbourhood in the direction of gradient. 4. Hysteresis thresholding 1. Preprocessing The values of upper and lower threshold are set to filter out the noise remaining after applying Gaussian filter. First step is to remove the noise in the image with a 5x5 Gaussian filter. 2. Calculating gradients The magnitude of gradient is. The direction of gradient is. Here, and are the X and Y derivatives at the point being considered. Shadows and varying intensities of light within an area cause changes in gradients and threshold and increases noise. It also effects nonmaximum suppression and are difficult to remove as are of nearly the same gradient and threshold as that of the edge [1][2][3]. 2017

1524 3. Non-maximum suppression Live input of the image was taken from Logitech C270 HD Webcam to RoboRealm and OpenCV. Canny edge detection is used to determine the path for a robot. Then Canny edge detection was applied by: 1. Smoothing the image to remove noise. 2. Finding gradients where the edges should be marked 4. Determining Potential edges through Double Thresholding and 5. Edge tracking by hysteresis (supressing the edges that are not certain) The screen is horizontally divided into five and outputs are given based on the direction of the path. Fig 1: Image is smoothened and divided horizontally into segments on the system which runs the algorithm. 2017

When two or more edges are close to each other, at times, canny edge detection is not able to determine a particular edge and catches different edges. The focus keeps on shuttling between the edges, resulting in the programme to give wrong values (and garbage values). When a detector analysis an image, it should determine all the edges in a particular threshold range and so you should get all the edges irrespective of their 1525 separation. Strangely, no. The Gaussian smoothing blurs out the image, making the edges, and corners and junctions harder to detect. Different light intensities on different edges leads to different values of threshold and intensity along the same edge, that results in the programme being confused between different edges. Fig 2: Left Canny Edge detector is not able to capture a proper edge. Right The image that is analysed by the detector. On rough surfaces, canny edge detection detects many edges. According to theory, these edges can effectively be filtered by adjusting threshold and Gaussian blur or through hysteresis. But in practice, it is not so. Many of the edges of the surface still show up. The difference in intensity of lights causes the threshold values and focus to change. At the places of low light (or shadow), the contrast of the image increases, that results in more edges to show up. On bright spots, due to more scattering of light and Gaussian smoothing, the location of the edges might be off. 2017

1526 Fig 3: Noise on rough surfaces that is difficult to be removed due to their shadow. When processing images in an area of varying light intensity, often canny edge detection fails. It is not able to detect edges where there is low intensity. Further when there is a large difference in intensity between two adjacent pixels, the algorithm considers it as an edge. If the shadow of any object falls on an edge or on coarse objects, the algorithm is not able to determine the actual edges and corners. Moving shadows causes large errors in object localization and recognition. As a result, the actual properties of the edges are not shown and the algorithm is either not able to determine a single value or gives the wrong output. Fig 4: Left Canny edge detector is not able to detect edges due to low light intensity. Right The image that is analysed by the detector 2017

A drawback of Canny edge detector is that it contains a lot of steps, which are much more complex than steps in some other edge detectors. In Canny's original paper, the derivation of the optimal filter led to a Finite Impulse Response filter, which can be slow to compute in the spatial domain if the amount of smoothing required is important. Large range of 1527 double threshold values and too much noise in an image often results in FPS lower than normal. Environmental factors such as low light and shadows also cause FPS to drop as it requires more processing to remove shadows and prevent false detection. For example, in more complicated images, FPS drops down and the processing of the system increases. Fig 5: Low FPS in complicated images. The detector catches different edges when the image is not in focus and there in a variation in the intensity of light. Changing camera focus such that the true edge comes in focus, while the noise is still smoothened solves the problem as long as there is not too much noise. On rough surfaces, there is a lot of noise. Many edges are captured as each edge has its own shadow [4], which is not filtered by hysteresis and double threshold. This can be prevented by switching to greyscale. In greyscale, the colour of the whole path changes into shades of grey and there is not much difference between the shadow [5] of the edge and the rest of the path. Here, adjusting the threshold values removes noise from the image. Sometimes, altering the contrast of the image might also be required as, due to greyscale few edges, with low light intensity, might also be filtered out by double threshold. Varying intensity of light can be countered by changing the intensity of the image [6]. When intensity of light is low, edges can effectively be seen by using the shift to white filter of intensity. On the other hand, when intensity of light is high, contrast can be increased by shift to black filter of intensity. Another way of achieving the same result and countering false detection due to low light conditions is to place a dark film in front of the camera. The film should not be very dark, but such that the shadows of edges is not seen through it. The dark film would hence hide the 2017

shadows and noise and lead to more accurate results. Canny edge detection works slow due to high complexity of its functions. In more complicated images, the number of filters required is higher than normal. This results in lower FPS. Further, the calculation and mapping the raw data into results increases the load on 1528 the parent system. Using optimum number of filters would lead to better results and lower FPS drop in more complicated images. Changing the angle of camera during path detection through canny edge detection would decrease focus and increase smoothening, in other words simplifies the image up to an extent. This results in higher speed of detection. Fig 6: Left Edges detected through Canny edge detection algorithm after making required changes. image for Canny edge detection algorithm. In this paper, first the effects of varying intensity of light within the image and the effects of shadow on edge detection in discussed. Experiments are performed based on theory and the problems that aroused are stated. At last, various methods are proposed to counter those problems and achieve better accuracy. [1] Canny Edge Detection on Open Source Computer Vision (OpenCV) -http://docs.opencv.org/trunk/da/d22/tutoria l_py_canny.html [2] Indian Institute of Technology Delhi, Canny Edge Detection (Canny 09gr820), March 2009. 2017 Right The input [3] John Canny, A computational approach to edge detection. Pattern Analysis and Machine Intelligence, IEEE Transactions on, PAMI-8(6):679 698, Nov 1986. [4] Mei Xiao, Chong-Zhao Han and Lei Zhang., Moving shadow detection and removal for traffic sequences, International Journal of Automation and Computing, March 2006. [5] Sharma, Prateek & Sharma, Reecha., Shadow Detection and its Removal in Images: A Review, An International Journal of Engineering Sciences, Vol. 17, January 2016. [6] Arbel E., Hel-Or H., "Shadow Removal Using Intensity Surfaces and Texture Anchor Points," IEEE Transactions on Pattern Analysis and Machine Intelligence,vol.33, Issue 6, pp 1202-1216, June 2011.