SlideShare uma empresa Scribd logo
1 de 28
Baixar para ler offline
Copyright © 2014 Analog Devices Inc. 1
Rajesh Mahapatra
May 29, 2014
Multiple Uses of Pipelined Video Pre-
processor Hardware in Vision
Applications
Copyright © 2014 Analog Devices Inc. 2
ADI is an established global leader with unparalleled signal processing expertise and a
deep commitment to our customers’ success.
ADI’s revenue base is comprised of a wide range of industries and applications, with a
deep focus on signal processing products and technologies.
• Global Leader
• Leader in high-performance signal processing product categories across all end markets and
geographies
• Founded in 1965 to produce modular precision op amps
• Obsessive vision to help engineers solve signal processing challenges
• ADI is NASDAQ listed and a component of the S&P 500
• 2013 revenue of $2.6 billion
• Who we are
• ADI’s culture of innovation is driven by a desire to
make our 60,000 plus customers successful at
gaining a competitive edge in their markets
• More than half of ADI employees are engineers
• Dedicated to Breakthrough Innovations by providing:
• Complete signal chain solutions
• System-level integration and software
• Superior services and user experiences
ADI At a Glance
Copyright © 2014 Analog Devices Inc. 3
• What are these Computer Vision Applications?
• Traffic Sign Speed Limit Recognition
• Face Detection
• Defect Detection
• Iris Detection
• Brief introduction to ADSP-BF60x and PVP (Pipelined Vision Processor)
• Some ways to solve these problems for applications
• Analyze how PVP can be leveraged to solve traditional approach with
massive gain in performance
Introduction
Copyright © 2014 Analog Devices Inc. 4
Traffic Sign Recognition — Speed Limit
90
A Speed limit recognition system is expected to detect
the speed limit sign
90
Copyright © 2014 Analog Devices Inc. 5
• Face Detection
• Localize the problem for Face Recognition
• Enable/Disable device operations based on whether a person is
looking at the device or not
• People Counting
• Camera focus
• Many others…
Face Detection
Copyright © 2014 Analog Devices Inc. 6
• Defect Detection
• Production Assembly Line
• Sorting
• Iris Detection
• ROI for Iris recognition
• Eye movement tracking
Defect Detection & Iris Detection
Copyright © 2014 Analog Devices Inc. 7
ADSP-BF609/8/7/6 Block Diagram
Part of Video Subsystem Part of Safety Concept For Industrial & Automotive
Copyright © 2014 Analog Devices Inc. 8
PVP Functional Blocks
InputDataFormatters
Conv 1
Conv 2
Conv 3
Conv 4
Arithmetics
Cartesian
to
Polar
Threshold
Threshold
Edge
Classifier
Integral
Image 2
Up/Down
Scaler
OutputDataFormatters
Memory
Pipe
Camera
Pipes
 Each PVP Block can be assigned to either
 Camera Pipes
 Or Memory Pipe
 Each PVP Block can be used only once
Integral
Image 1
Copyright © 2014 Analog Devices Inc. 9
Serialization of the Memory Pipe Tasks (1/3)
InputDataFormatters
Conv
Conv
Cartesian
to
Polar
Threshold
Camera
Threshold Binarization
Edge
Classifier
Lane Departure Warning
People DetectionIntegral
Image
 Memory Pipe
 one input DMA and one output DMA
 can be time shared by multiple tasks
Memory
Template MatchingUp / Down
Scaler
Copyright © 2014 Analog Devices Inc. 10
Serialization of Memory Pipe Tasks (2/3)
InputDataFormatters
Conv
Conv
Cartesian
to
Polar
Threshold
Camera
Threshold Binarization
Edge
Classifier
Lane Departure Warning
people DetectionIntegral
Image
 Memory Pipe
 one input DMA and one output DMA
 can be time shared by multiple tasks
Memory
ConvolutionConv
Copyright © 2014 Analog Devices Inc. 11
Serialization of Memory Pipe Tasks (3/3)
InputDataFormatters
Conv
Conv
Cartesian
to
Polar
Threshold
Camera
Threshold Binarization
Edge
Classifier
Lane Departure Warning
People DetectionIntegral
Image
 Memory Pipe
 one input DMA and one output DMA
 can be time shared by multiple tasks
Memory
Arithmetics
DivisionConv
Copyright © 2014 Analog Devices Inc. 12
• PVP was architected to be a flexible image processing engine
• Ability to run up to five concurrent vision algorithms
• Generally useful functional blocks include convolution, scalers, and
arithmetic blocks
• Optimized to save memory bandwidth
• PVP provides acceleration into the following 3 major areas:
• Object Detection
• Object Classification
• Object Recognition
• All of these functions are used in Driver Assistance, Security &
surveillance, machine vision, optical character recognition,
biometrics….
PVP Accelerator : 8+ GMACs < 80mW
Useful for multiple & concurrent analytics functions
Copyright © 2014 Analog Devices Inc. 13
Other implementations often approximate magnitude by
PVP does real
22
yxM 
yxM 
)arctan(
x
y

16 bits
5 bits
Absolute Magnitude and Gradient of Edge
Sobel Edge Detection: Cartesian-to-Polar
Transform
5x5 CNV
Sobel Sx
5x5 CNV
Sobel Sy
Polar Magnitude
and Angle Unit
(PMA)
THC
Binary ThresholdPPI
Edge Map
|H|
θ
Horizontal Component of Gradient
Vertical Component of Gradient
1= Edge
0= No Edge
Copyright © 2014 Analog Devices Inc. 14
Problem Statement — 1
Traffic Sign Recognition — Speed Limit
90
A Speed limit recognition system is expected to
detect the speed limit sign
90
Copyright © 2014 Analog Devices Inc. 15
Solution — Step 1 & 2 — Find Edge and Circle
• Edge Detection
• Sobel or Canny Edge Detectors (OpenCV functions)
• Circle Detection
• OpenCV — Hough Transform for Circle
• Shape Detector — ADI software
Copyright © 2014 Analog Devices Inc. 16
• One solution is to use a classifier — OpenCV functions
• Treat speed limit recognition as a statistical pattern recognition
problem
• There will be a feature generator and a classifier
Solution Step 3 — Detect Numbers or Signs
Feature
Generator
Classifier
Features
70
Copyright © 2014 Analog Devices Inc. 17
Traffic Sign Recognition — Speed Limit
Edge
Detection
Training
Database
Circle
Detection
Feature
Generation
Classification Tracking
Pre-Processing
Post-Processing
Grey
scale
Input
TSR
Output
• Edge pixels are typically a small percentage of input pixel — say 10%
• Core needs to process this small percentage only
• Edge Detection can be done by Sobel or Canny. Needs to run on all input pixels or
all pixels in a ROI.
Copyright © 2014 Analog Devices Inc. 18
Math Operations Required
Edge
Detection
Training
Database
Circle
Detection
Feature
Generation
Classification Tracking
Pre-Processing
Post-Processing
Grey
scale
Input
TSR
Output
5x5 CNV
Sobel Sx
5x5 CNV
Sobel Sy
Polar Magnitude
and Angle Unit
(PMA)
THC
Binary ThresholdPPI
Edge Map
|H|
θ
Gradient
Map
Hx Sobel
5x5
Hy Sobel
5x5
Cartesian
To
Polar
Gx
thetaGy
rho
Non-Max
Suppression
+
Hysteresis
Threshold
Gaussian
Lowpass
5x5
Functionality Math ops for HD
(1280x960) Sensor
5x5 Gaussian 921M MAC
Sobel Hx and Hy 1800M MAC
Cordic Magnitude and
Phase
Square root + arc
tan (Theta)
16 Level Threshold
plus RLE
Non max suppression
Copyright © 2014 Analog Devices Inc. 19
Can We Make Solutions Easier Using PVP?
We can use 2 convolution blocks and one Cartesian to Polar block
and one threshold block for our operation
InputDataFormatters
Conv 1
Conv 2
Conv 3
Conv 4
Arithmetics
Cartesian
to
Polar
Threshold
Threshold
Edge
Classifier
Integral
Image 2
Up/Down
Scaler
OutputDataFormatters
Integral
Image 1
Copyright © 2014 Analog Devices Inc. 20
Edge
Detection
Training
Database
Circle
Detection
Feature
Generation
Classification Tracking
PVP Core
Grey
scale
Input
TSR
Output
Functionality Math ops for HD
(1280x960) Sensor
5x5 Gaussian 921M MAC
Sobel Hx and Hy 1800M MAC
Cordic Magnitude and
Phase
Square root + arc
tan (Theta)
16 Level Threshold
plus RLE
Non max suppression
Speed Limit Recognition H/W S/w Partition
Copyright © 2014 Analog Devices Inc. 21
Edge
Detection
Circle
Detection
Outer
Boundary
Detection
Pre-Processing
Post-Processing
PVP
Core
Iris Detection — H/w S/w partiiton
Copyright © 2014 Analog Devices Inc. 22
Face Detection H/w S/w Partition
5x5 CNV
Sobel Sx
5x5 CNV
Sobel Sy
Polar Magnitude
and Angle Unit
(PMA)
THC
Binary ThresholdPPI
Edge Map
|H|
θ
Functionality Math ops for HD
(1280x960) Sensor
Sobel Hx and Hy 1800M MAC
Cordic Magnitude and
Phase
Square root + arc
tan (Theta)
16 Level Threshold
plus RLE
Non max suppression
Edge
Detection
Training
Database
Object Detector
Pre-Processing Post-Processing
FD
OutputIntegral
Integral
Copyright © 2014 Analog Devices Inc. 23
• The techniques we have used in this presentation can also be applied
for other applications such as
• Pedestrian detection using Histogram of Gradient approach
• Somnolence Detection kind of application
• License Plate Recognition
• Face Detection
• Finding angle of random rotation for currency sorting
• These techniques are standard techniques and can be applied in
multiple vendor solutions
Other Applications
Copyright © 2014 Analog Devices Inc. 24
• Having a standard set of data base that can be used for commercial
applications for validating the solutions would be truly awesome
• Having standard benchmarks for performance would also make our work
lot easier.
“Wish List”
Copyright © 2014 Analog Devices Inc. 25
• Several vision applications like Defect detection, Face detection are
complex to be implemented on embedded solutions. And usually have
other additional processing needs on processors.
• Effective partitioning of the complexity between hardware and
software will lead to
• hardware doing a bulk of the brute force fixed operations “for
free”. Software overhead is almost zero for this.
• Software focuses on results of pre-processing. Hence works on
smaller data and can do lot more complex and concurrent
operations.
• PVP and the dual core on Analog Devices ADSP-BF609 supports this
partitioning.
• Software Solutions from Analog Devices makes it easier to build these
applications.
Lessons Learned
Copyright © 2014 Analog Devices Inc. 26
• Many software modules like Video Codecs, Audio Codecs, Speech
Codecs, Video and Audio pre and post processors, VOIP modules
available for free download from
• http://www.analog.com/BlackfinModules
• http://www.analog.com/SharcModules
• For questions mail to processor.tools.support@analog.com
• Access Engineer Zone community at http://ez.analog.com/
Please visit demos booths of Analog Devices 
Resource Slide
Copyright © 2014 Analog Devices Inc. 27
Backup Slides
Copyright © 2014 Analog Devices Inc. 28
HOG Based Object Detection
Blackfin CorePVP
Hx Sobel
CNV0
HoG
features
ClassifierPMA PEC
theta
rho
4-directions
Hy Sobel
CNV1
Quad
8-bit IIM
Blackfin CorePVP
Hx Sobel
CNV0
HoG
features
Classifier
PMA PEC
theta
rho
32-directions
Hy Sobel
CNV1
1 2 3 4 5 6 7 8
0
2
4
6
8
10
12
Compute
Histogram
HoG = Histogram of Gradients

Mais conteúdo relacionado

Semelhante a "Multiple Uses of Pipelined Video Pre-Processor Hardware in Vision Applications," a Presentation from Analog Devices

"Combining Flexibility and Low-Power in Embedded Vision Subsystems: An Applic...
"Combining Flexibility and Low-Power in Embedded Vision Subsystems: An Applic..."Combining Flexibility and Low-Power in Embedded Vision Subsystems: An Applic...
"Combining Flexibility and Low-Power in Embedded Vision Subsystems: An Applic...
Edge AI and Vision Alliance
 
"Lessons Learned from Bringing Mobile and Embedded Vision Products to Market,...
"Lessons Learned from Bringing Mobile and Embedded Vision Products to Market,..."Lessons Learned from Bringing Mobile and Embedded Vision Products to Market,...
"Lessons Learned from Bringing Mobile and Embedded Vision Products to Market,...
Edge AI and Vision Alliance
 

Semelhante a "Multiple Uses of Pipelined Video Pre-Processor Hardware in Vision Applications," a Presentation from Analog Devices (20)

"Combining Flexibility and Low-Power in Embedded Vision Subsystems: An Applic...
"Combining Flexibility and Low-Power in Embedded Vision Subsystems: An Applic..."Combining Flexibility and Low-Power in Embedded Vision Subsystems: An Applic...
"Combining Flexibility and Low-Power in Embedded Vision Subsystems: An Applic...
 
"Implementing Histogram of Oriented Gradients on a Parallel Vision Processor,...
"Implementing Histogram of Oriented Gradients on a Parallel Vision Processor,..."Implementing Histogram of Oriented Gradients on a Parallel Vision Processor,...
"Implementing Histogram of Oriented Gradients on a Parallel Vision Processor,...
 
"Lessons Learned from Bringing Mobile and Embedded Vision Products to Market,...
"Lessons Learned from Bringing Mobile and Embedded Vision Products to Market,..."Lessons Learned from Bringing Mobile and Embedded Vision Products to Market,...
"Lessons Learned from Bringing Mobile and Embedded Vision Products to Market,...
 
Software and Machine Vision Competencies
Software and Machine Vision CompetenciesSoftware and Machine Vision Competencies
Software and Machine Vision Competencies
 
Computer Vision Technology and Expertise
Computer Vision Technology and ExpertiseComputer Vision Technology and Expertise
Computer Vision Technology and Expertise
 
COMPARATIVE STUDY ON AUTOMATED NUMBER PLATE EXTRACTION USING OPEN CV AND MATLAB
COMPARATIVE STUDY ON AUTOMATED NUMBER PLATE EXTRACTION USING OPEN CV AND MATLABCOMPARATIVE STUDY ON AUTOMATED NUMBER PLATE EXTRACTION USING OPEN CV AND MATLAB
COMPARATIVE STUDY ON AUTOMATED NUMBER PLATE EXTRACTION USING OPEN CV AND MATLAB
 
Hai Tao at AI Frontiers: Deep Learning For Embedded Vision System
Hai Tao at AI Frontiers: Deep Learning For Embedded Vision SystemHai Tao at AI Frontiers: Deep Learning For Embedded Vision System
Hai Tao at AI Frontiers: Deep Learning For Embedded Vision System
 
Real-world Vision Systems Design: Challenges and Techniques
Real-world Vision Systems Design: Challenges and TechniquesReal-world Vision Systems Design: Challenges and Techniques
Real-world Vision Systems Design: Challenges and Techniques
 
"Real-world Vision Systems Design: Challenges and Techniques," a Presentation...
"Real-world Vision Systems Design: Challenges and Techniques," a Presentation..."Real-world Vision Systems Design: Challenges and Techniques," a Presentation...
"Real-world Vision Systems Design: Challenges and Techniques," a Presentation...
 
"Highly Efficient, Scalable Vision and AI Processors IP for the Edge," a Pres...
"Highly Efficient, Scalable Vision and AI Processors IP for the Edge," a Pres..."Highly Efficient, Scalable Vision and AI Processors IP for the Edge," a Pres...
"Highly Efficient, Scalable Vision and AI Processors IP for the Edge," a Pres...
 
“Tensilica Processor Cores Enable Sensor Fusion for Robust Perception,” a Pre...
“Tensilica Processor Cores Enable Sensor Fusion for Robust Perception,” a Pre...“Tensilica Processor Cores Enable Sensor Fusion for Robust Perception,” a Pre...
“Tensilica Processor Cores Enable Sensor Fusion for Robust Perception,” a Pre...
 
"Challenges in Object Detection on Embedded Devices," a Presentation from CEVA
"Challenges in Object Detection on Embedded Devices," a Presentation from CEVA"Challenges in Object Detection on Embedded Devices," a Presentation from CEVA
"Challenges in Object Detection on Embedded Devices," a Presentation from CEVA
 
“Intensive In-camera AI Vision Processing,” a Presentation from Hailo
“Intensive In-camera AI Vision Processing,” a Presentation from Hailo“Intensive In-camera AI Vision Processing,” a Presentation from Hailo
“Intensive In-camera AI Vision Processing,” a Presentation from Hailo
 
Real Time Video Processing in FPGA
Real Time Video Processing in FPGA Real Time Video Processing in FPGA
Real Time Video Processing in FPGA
 
Cars and Computers: Building a Java Carputer
 Cars and Computers: Building a Java Carputer Cars and Computers: Building a Java Carputer
Cars and Computers: Building a Java Carputer
 
Resume_suresh_final
Resume_suresh_finalResume_suresh_final
Resume_suresh_final
 
Apeman masta midih-oc2_demo_day
Apeman masta midih-oc2_demo_dayApeman masta midih-oc2_demo_day
Apeman masta midih-oc2_demo_day
 
Avi solution2
Avi solution2Avi solution2
Avi solution2
 
AUTOMATIC NUMBERPLATE RECOGNITION
AUTOMATIC NUMBERPLATE RECOGNITIONAUTOMATIC NUMBERPLATE RECOGNITION
AUTOMATIC NUMBERPLATE RECOGNITION
 
Debugging Numerical Simulations on Accelerated Architectures - TotalView fo...
 Debugging Numerical Simulations on Accelerated Architectures  - TotalView fo... Debugging Numerical Simulations on Accelerated Architectures  - TotalView fo...
Debugging Numerical Simulations on Accelerated Architectures - TotalView fo...
 

Mais de Edge AI and Vision Alliance

“Learning Compact DNN Models for Embedded Vision,” a Presentation from the Un...
“Learning Compact DNN Models for Embedded Vision,” a Presentation from the Un...“Learning Compact DNN Models for Embedded Vision,” a Presentation from the Un...
“Learning Compact DNN Models for Embedded Vision,” a Presentation from the Un...
Edge AI and Vision Alliance
 
“Selecting Tools for Developing, Monitoring and Maintaining ML Models,” a Pre...
“Selecting Tools for Developing, Monitoring and Maintaining ML Models,” a Pre...“Selecting Tools for Developing, Monitoring and Maintaining ML Models,” a Pre...
“Selecting Tools for Developing, Monitoring and Maintaining ML Models,” a Pre...
Edge AI and Vision Alliance
 
“Vision-language Representations for Robotics,” a Presentation from the Unive...
“Vision-language Representations for Robotics,” a Presentation from the Unive...“Vision-language Representations for Robotics,” a Presentation from the Unive...
“Vision-language Representations for Robotics,” a Presentation from the Unive...
Edge AI and Vision Alliance
 
“Computer Vision in Sports: Scalable Solutions for Downmarkets,” a Presentati...
“Computer Vision in Sports: Scalable Solutions for Downmarkets,” a Presentati...“Computer Vision in Sports: Scalable Solutions for Downmarkets,” a Presentati...
“Computer Vision in Sports: Scalable Solutions for Downmarkets,” a Presentati...
Edge AI and Vision Alliance
 
“AI Start-ups: The Perils of Fishing for Whales (War Stories from the Entrepr...
“AI Start-ups: The Perils of Fishing for Whales (War Stories from the Entrepr...“AI Start-ups: The Perils of Fishing for Whales (War Stories from the Entrepr...
“AI Start-ups: The Perils of Fishing for Whales (War Stories from the Entrepr...
Edge AI and Vision Alliance
 
“Bias in Computer Vision—It’s Bigger Than Facial Recognition!,” a Presentatio...
“Bias in Computer Vision—It’s Bigger Than Facial Recognition!,” a Presentatio...“Bias in Computer Vision—It’s Bigger Than Facial Recognition!,” a Presentatio...
“Bias in Computer Vision—It’s Bigger Than Facial Recognition!,” a Presentatio...
Edge AI and Vision Alliance
 
“Updating the Edge ML Development Process,” a Presentation from Samsara
“Updating the Edge ML Development Process,” a Presentation from Samsara“Updating the Edge ML Development Process,” a Presentation from Samsara
“Updating the Edge ML Development Process,” a Presentation from Samsara
Edge AI and Vision Alliance
 
“Developing an Embedded Vision AI-powered Fitness System,” a Presentation fro...
“Developing an Embedded Vision AI-powered Fitness System,” a Presentation fro...“Developing an Embedded Vision AI-powered Fitness System,” a Presentation fro...
“Developing an Embedded Vision AI-powered Fitness System,” a Presentation fro...
Edge AI and Vision Alliance
 

Mais de Edge AI and Vision Alliance (20)

“Learning Compact DNN Models for Embedded Vision,” a Presentation from the Un...
“Learning Compact DNN Models for Embedded Vision,” a Presentation from the Un...“Learning Compact DNN Models for Embedded Vision,” a Presentation from the Un...
“Learning Compact DNN Models for Embedded Vision,” a Presentation from the Un...
 
“Introduction to Computer Vision with CNNs,” a Presentation from Mohammad Hag...
“Introduction to Computer Vision with CNNs,” a Presentation from Mohammad Hag...“Introduction to Computer Vision with CNNs,” a Presentation from Mohammad Hag...
“Introduction to Computer Vision with CNNs,” a Presentation from Mohammad Hag...
 
“Selecting Tools for Developing, Monitoring and Maintaining ML Models,” a Pre...
“Selecting Tools for Developing, Monitoring and Maintaining ML Models,” a Pre...“Selecting Tools for Developing, Monitoring and Maintaining ML Models,” a Pre...
“Selecting Tools for Developing, Monitoring and Maintaining ML Models,” a Pre...
 
“Building Accelerated GStreamer Applications for Video and Audio AI,” a Prese...
“Building Accelerated GStreamer Applications for Video and Audio AI,” a Prese...“Building Accelerated GStreamer Applications for Video and Audio AI,” a Prese...
“Building Accelerated GStreamer Applications for Video and Audio AI,” a Prese...
 
“Understanding, Selecting and Optimizing Object Detectors for Edge Applicatio...
“Understanding, Selecting and Optimizing Object Detectors for Edge Applicatio...“Understanding, Selecting and Optimizing Object Detectors for Edge Applicatio...
“Understanding, Selecting and Optimizing Object Detectors for Edge Applicatio...
 
“Introduction to Modern LiDAR for Machine Perception,” a Presentation from th...
“Introduction to Modern LiDAR for Machine Perception,” a Presentation from th...“Introduction to Modern LiDAR for Machine Perception,” a Presentation from th...
“Introduction to Modern LiDAR for Machine Perception,” a Presentation from th...
 
“Vision-language Representations for Robotics,” a Presentation from the Unive...
“Vision-language Representations for Robotics,” a Presentation from the Unive...“Vision-language Representations for Robotics,” a Presentation from the Unive...
“Vision-language Representations for Robotics,” a Presentation from the Unive...
 
“ADAS and AV Sensors: What’s Winning and Why?,” a Presentation from TechInsights
“ADAS and AV Sensors: What’s Winning and Why?,” a Presentation from TechInsights“ADAS and AV Sensors: What’s Winning and Why?,” a Presentation from TechInsights
“ADAS and AV Sensors: What’s Winning and Why?,” a Presentation from TechInsights
 
“Computer Vision in Sports: Scalable Solutions for Downmarkets,” a Presentati...
“Computer Vision in Sports: Scalable Solutions for Downmarkets,” a Presentati...“Computer Vision in Sports: Scalable Solutions for Downmarkets,” a Presentati...
“Computer Vision in Sports: Scalable Solutions for Downmarkets,” a Presentati...
 
“Detecting Data Drift in Image Classification Neural Networks,” a Presentatio...
“Detecting Data Drift in Image Classification Neural Networks,” a Presentatio...“Detecting Data Drift in Image Classification Neural Networks,” a Presentatio...
“Detecting Data Drift in Image Classification Neural Networks,” a Presentatio...
 
“Deep Neural Network Training: Diagnosing Problems and Implementing Solutions...
“Deep Neural Network Training: Diagnosing Problems and Implementing Solutions...“Deep Neural Network Training: Diagnosing Problems and Implementing Solutions...
“Deep Neural Network Training: Diagnosing Problems and Implementing Solutions...
 
“AI Start-ups: The Perils of Fishing for Whales (War Stories from the Entrepr...
“AI Start-ups: The Perils of Fishing for Whales (War Stories from the Entrepr...“AI Start-ups: The Perils of Fishing for Whales (War Stories from the Entrepr...
“AI Start-ups: The Perils of Fishing for Whales (War Stories from the Entrepr...
 
“A Computer Vision System for Autonomous Satellite Maneuvering,” a Presentati...
“A Computer Vision System for Autonomous Satellite Maneuvering,” a Presentati...“A Computer Vision System for Autonomous Satellite Maneuvering,” a Presentati...
“A Computer Vision System for Autonomous Satellite Maneuvering,” a Presentati...
 
“Bias in Computer Vision—It’s Bigger Than Facial Recognition!,” a Presentatio...
“Bias in Computer Vision—It’s Bigger Than Facial Recognition!,” a Presentatio...“Bias in Computer Vision—It’s Bigger Than Facial Recognition!,” a Presentatio...
“Bias in Computer Vision—It’s Bigger Than Facial Recognition!,” a Presentatio...
 
“Sensor Fusion Techniques for Accurate Perception of Objects in the Environme...
“Sensor Fusion Techniques for Accurate Perception of Objects in the Environme...“Sensor Fusion Techniques for Accurate Perception of Objects in the Environme...
“Sensor Fusion Techniques for Accurate Perception of Objects in the Environme...
 
“Updating the Edge ML Development Process,” a Presentation from Samsara
“Updating the Edge ML Development Process,” a Presentation from Samsara“Updating the Edge ML Development Process,” a Presentation from Samsara
“Updating the Edge ML Development Process,” a Presentation from Samsara
 
“Combating Bias in Production Computer Vision Systems,” a Presentation from R...
“Combating Bias in Production Computer Vision Systems,” a Presentation from R...“Combating Bias in Production Computer Vision Systems,” a Presentation from R...
“Combating Bias in Production Computer Vision Systems,” a Presentation from R...
 
“Developing an Embedded Vision AI-powered Fitness System,” a Presentation fro...
“Developing an Embedded Vision AI-powered Fitness System,” a Presentation fro...“Developing an Embedded Vision AI-powered Fitness System,” a Presentation fro...
“Developing an Embedded Vision AI-powered Fitness System,” a Presentation fro...
 
“Navigating the Evolving Venture Capital Landscape for Edge AI Start-ups,” a ...
“Navigating the Evolving Venture Capital Landscape for Edge AI Start-ups,” a ...“Navigating the Evolving Venture Capital Landscape for Edge AI Start-ups,” a ...
“Navigating the Evolving Venture Capital Landscape for Edge AI Start-ups,” a ...
 
“Advanced Presence Sensing: What It Means for the Smart Home,” a Presentation...
“Advanced Presence Sensing: What It Means for the Smart Home,” a Presentation...“Advanced Presence Sensing: What It Means for the Smart Home,” a Presentation...
“Advanced Presence Sensing: What It Means for the Smart Home,” a Presentation...
 

Último

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Último (20)

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 

"Multiple Uses of Pipelined Video Pre-Processor Hardware in Vision Applications," a Presentation from Analog Devices

  • 1. Copyright © 2014 Analog Devices Inc. 1 Rajesh Mahapatra May 29, 2014 Multiple Uses of Pipelined Video Pre- processor Hardware in Vision Applications
  • 2. Copyright © 2014 Analog Devices Inc. 2 ADI is an established global leader with unparalleled signal processing expertise and a deep commitment to our customers’ success. ADI’s revenue base is comprised of a wide range of industries and applications, with a deep focus on signal processing products and technologies. • Global Leader • Leader in high-performance signal processing product categories across all end markets and geographies • Founded in 1965 to produce modular precision op amps • Obsessive vision to help engineers solve signal processing challenges • ADI is NASDAQ listed and a component of the S&P 500 • 2013 revenue of $2.6 billion • Who we are • ADI’s culture of innovation is driven by a desire to make our 60,000 plus customers successful at gaining a competitive edge in their markets • More than half of ADI employees are engineers • Dedicated to Breakthrough Innovations by providing: • Complete signal chain solutions • System-level integration and software • Superior services and user experiences ADI At a Glance
  • 3. Copyright © 2014 Analog Devices Inc. 3 • What are these Computer Vision Applications? • Traffic Sign Speed Limit Recognition • Face Detection • Defect Detection • Iris Detection • Brief introduction to ADSP-BF60x and PVP (Pipelined Vision Processor) • Some ways to solve these problems for applications • Analyze how PVP can be leveraged to solve traditional approach with massive gain in performance Introduction
  • 4. Copyright © 2014 Analog Devices Inc. 4 Traffic Sign Recognition — Speed Limit 90 A Speed limit recognition system is expected to detect the speed limit sign 90
  • 5. Copyright © 2014 Analog Devices Inc. 5 • Face Detection • Localize the problem for Face Recognition • Enable/Disable device operations based on whether a person is looking at the device or not • People Counting • Camera focus • Many others… Face Detection
  • 6. Copyright © 2014 Analog Devices Inc. 6 • Defect Detection • Production Assembly Line • Sorting • Iris Detection • ROI for Iris recognition • Eye movement tracking Defect Detection & Iris Detection
  • 7. Copyright © 2014 Analog Devices Inc. 7 ADSP-BF609/8/7/6 Block Diagram Part of Video Subsystem Part of Safety Concept For Industrial & Automotive
  • 8. Copyright © 2014 Analog Devices Inc. 8 PVP Functional Blocks InputDataFormatters Conv 1 Conv 2 Conv 3 Conv 4 Arithmetics Cartesian to Polar Threshold Threshold Edge Classifier Integral Image 2 Up/Down Scaler OutputDataFormatters Memory Pipe Camera Pipes  Each PVP Block can be assigned to either  Camera Pipes  Or Memory Pipe  Each PVP Block can be used only once Integral Image 1
  • 9. Copyright © 2014 Analog Devices Inc. 9 Serialization of the Memory Pipe Tasks (1/3) InputDataFormatters Conv Conv Cartesian to Polar Threshold Camera Threshold Binarization Edge Classifier Lane Departure Warning People DetectionIntegral Image  Memory Pipe  one input DMA and one output DMA  can be time shared by multiple tasks Memory Template MatchingUp / Down Scaler
  • 10. Copyright © 2014 Analog Devices Inc. 10 Serialization of Memory Pipe Tasks (2/3) InputDataFormatters Conv Conv Cartesian to Polar Threshold Camera Threshold Binarization Edge Classifier Lane Departure Warning people DetectionIntegral Image  Memory Pipe  one input DMA and one output DMA  can be time shared by multiple tasks Memory ConvolutionConv
  • 11. Copyright © 2014 Analog Devices Inc. 11 Serialization of Memory Pipe Tasks (3/3) InputDataFormatters Conv Conv Cartesian to Polar Threshold Camera Threshold Binarization Edge Classifier Lane Departure Warning People DetectionIntegral Image  Memory Pipe  one input DMA and one output DMA  can be time shared by multiple tasks Memory Arithmetics DivisionConv
  • 12. Copyright © 2014 Analog Devices Inc. 12 • PVP was architected to be a flexible image processing engine • Ability to run up to five concurrent vision algorithms • Generally useful functional blocks include convolution, scalers, and arithmetic blocks • Optimized to save memory bandwidth • PVP provides acceleration into the following 3 major areas: • Object Detection • Object Classification • Object Recognition • All of these functions are used in Driver Assistance, Security & surveillance, machine vision, optical character recognition, biometrics…. PVP Accelerator : 8+ GMACs < 80mW Useful for multiple & concurrent analytics functions
  • 13. Copyright © 2014 Analog Devices Inc. 13 Other implementations often approximate magnitude by PVP does real 22 yxM  yxM  )arctan( x y  16 bits 5 bits Absolute Magnitude and Gradient of Edge Sobel Edge Detection: Cartesian-to-Polar Transform 5x5 CNV Sobel Sx 5x5 CNV Sobel Sy Polar Magnitude and Angle Unit (PMA) THC Binary ThresholdPPI Edge Map |H| θ Horizontal Component of Gradient Vertical Component of Gradient 1= Edge 0= No Edge
  • 14. Copyright © 2014 Analog Devices Inc. 14 Problem Statement — 1 Traffic Sign Recognition — Speed Limit 90 A Speed limit recognition system is expected to detect the speed limit sign 90
  • 15. Copyright © 2014 Analog Devices Inc. 15 Solution — Step 1 & 2 — Find Edge and Circle • Edge Detection • Sobel or Canny Edge Detectors (OpenCV functions) • Circle Detection • OpenCV — Hough Transform for Circle • Shape Detector — ADI software
  • 16. Copyright © 2014 Analog Devices Inc. 16 • One solution is to use a classifier — OpenCV functions • Treat speed limit recognition as a statistical pattern recognition problem • There will be a feature generator and a classifier Solution Step 3 — Detect Numbers or Signs Feature Generator Classifier Features 70
  • 17. Copyright © 2014 Analog Devices Inc. 17 Traffic Sign Recognition — Speed Limit Edge Detection Training Database Circle Detection Feature Generation Classification Tracking Pre-Processing Post-Processing Grey scale Input TSR Output • Edge pixels are typically a small percentage of input pixel — say 10% • Core needs to process this small percentage only • Edge Detection can be done by Sobel or Canny. Needs to run on all input pixels or all pixels in a ROI.
  • 18. Copyright © 2014 Analog Devices Inc. 18 Math Operations Required Edge Detection Training Database Circle Detection Feature Generation Classification Tracking Pre-Processing Post-Processing Grey scale Input TSR Output 5x5 CNV Sobel Sx 5x5 CNV Sobel Sy Polar Magnitude and Angle Unit (PMA) THC Binary ThresholdPPI Edge Map |H| θ Gradient Map Hx Sobel 5x5 Hy Sobel 5x5 Cartesian To Polar Gx thetaGy rho Non-Max Suppression + Hysteresis Threshold Gaussian Lowpass 5x5 Functionality Math ops for HD (1280x960) Sensor 5x5 Gaussian 921M MAC Sobel Hx and Hy 1800M MAC Cordic Magnitude and Phase Square root + arc tan (Theta) 16 Level Threshold plus RLE Non max suppression
  • 19. Copyright © 2014 Analog Devices Inc. 19 Can We Make Solutions Easier Using PVP? We can use 2 convolution blocks and one Cartesian to Polar block and one threshold block for our operation InputDataFormatters Conv 1 Conv 2 Conv 3 Conv 4 Arithmetics Cartesian to Polar Threshold Threshold Edge Classifier Integral Image 2 Up/Down Scaler OutputDataFormatters Integral Image 1
  • 20. Copyright © 2014 Analog Devices Inc. 20 Edge Detection Training Database Circle Detection Feature Generation Classification Tracking PVP Core Grey scale Input TSR Output Functionality Math ops for HD (1280x960) Sensor 5x5 Gaussian 921M MAC Sobel Hx and Hy 1800M MAC Cordic Magnitude and Phase Square root + arc tan (Theta) 16 Level Threshold plus RLE Non max suppression Speed Limit Recognition H/W S/w Partition
  • 21. Copyright © 2014 Analog Devices Inc. 21 Edge Detection Circle Detection Outer Boundary Detection Pre-Processing Post-Processing PVP Core Iris Detection — H/w S/w partiiton
  • 22. Copyright © 2014 Analog Devices Inc. 22 Face Detection H/w S/w Partition 5x5 CNV Sobel Sx 5x5 CNV Sobel Sy Polar Magnitude and Angle Unit (PMA) THC Binary ThresholdPPI Edge Map |H| θ Functionality Math ops for HD (1280x960) Sensor Sobel Hx and Hy 1800M MAC Cordic Magnitude and Phase Square root + arc tan (Theta) 16 Level Threshold plus RLE Non max suppression Edge Detection Training Database Object Detector Pre-Processing Post-Processing FD OutputIntegral Integral
  • 23. Copyright © 2014 Analog Devices Inc. 23 • The techniques we have used in this presentation can also be applied for other applications such as • Pedestrian detection using Histogram of Gradient approach • Somnolence Detection kind of application • License Plate Recognition • Face Detection • Finding angle of random rotation for currency sorting • These techniques are standard techniques and can be applied in multiple vendor solutions Other Applications
  • 24. Copyright © 2014 Analog Devices Inc. 24 • Having a standard set of data base that can be used for commercial applications for validating the solutions would be truly awesome • Having standard benchmarks for performance would also make our work lot easier. “Wish List”
  • 25. Copyright © 2014 Analog Devices Inc. 25 • Several vision applications like Defect detection, Face detection are complex to be implemented on embedded solutions. And usually have other additional processing needs on processors. • Effective partitioning of the complexity between hardware and software will lead to • hardware doing a bulk of the brute force fixed operations “for free”. Software overhead is almost zero for this. • Software focuses on results of pre-processing. Hence works on smaller data and can do lot more complex and concurrent operations. • PVP and the dual core on Analog Devices ADSP-BF609 supports this partitioning. • Software Solutions from Analog Devices makes it easier to build these applications. Lessons Learned
  • 26. Copyright © 2014 Analog Devices Inc. 26 • Many software modules like Video Codecs, Audio Codecs, Speech Codecs, Video and Audio pre and post processors, VOIP modules available for free download from • http://www.analog.com/BlackfinModules • http://www.analog.com/SharcModules • For questions mail to processor.tools.support@analog.com • Access Engineer Zone community at http://ez.analog.com/ Please visit demos booths of Analog Devices  Resource Slide
  • 27. Copyright © 2014 Analog Devices Inc. 27 Backup Slides
  • 28. Copyright © 2014 Analog Devices Inc. 28 HOG Based Object Detection Blackfin CorePVP Hx Sobel CNV0 HoG features ClassifierPMA PEC theta rho 4-directions Hy Sobel CNV1 Quad 8-bit IIM Blackfin CorePVP Hx Sobel CNV0 HoG features Classifier PMA PEC theta rho 32-directions Hy Sobel CNV1 1 2 3 4 5 6 7 8 0 2 4 6 8 10 12 Compute Histogram HoG = Histogram of Gradients