a circle detection method based on optimal a circle
play

A Circle Detection Method Based on Optimal A Circle Detection Method - PowerPoint PPT Presentation

A Circle Detection Method Based on Optimal A Circle Detection Method Based on Optimal Parameter Statistics in Embedded Vision Parameter Statistics in Embedded Vision Xiaofeng Lu [1],[2] [1] Shanghai Key Laboratory of Digital Media Processing and


  1. A Circle Detection Method Based on Optimal A Circle Detection Method Based on Optimal Parameter Statistics in Embedded Vision Parameter Statistics in Embedded Vision Xiaofeng Lu [1],[2] [1] Shanghai Key Laboratory of Digital Media Processing and Transmissions Shanghai Jiao Tong University, Shanghai, China [2] School of Communication and Information Engineering Shanghai University, Shanghai, China

  2. Outline Main idea Overview of the proposed embedded vision framework Modified Canny edge detection and its implementation in FPGA Optimal parameter statistics method and its implementation in FPGA for circle detection Experimental results Summary 2 0 1 3 年 1 0 月 2 2 日 2 2

  3. Main idea Main idea In this paper, we propose a circle detection method based on the optimal parameter statistics (OPSCD) It employs fast median filtering based Canny edge detection algorithm (FMFCanny) to obtain edge information And real-time three points determination based on optimal parameters statistics circle detection is implemented in FPGA circuit The pipeline processing of FIFO and parallelize operation of registers in FPGA can detects single circle in videos accurately and robustly 2 0 1 3 年 1 0 月 2 2 日 3 3

  4. Overview of the proposed embedded vision framework Proposed algorithm consists of two parts in FPGA circuits as shown in Fig.1. First, circle edge image is obtained via FMFCanny module Then, circle optimal parameters of horizontal coordinate a , vertical coordinate b and circle’s radius square r 2 are calculated through OPSCD module based on the input video and circle edge image Fig.1. The algorithm’s implementation FPGA architecture 2 0 1 3 年 1 0 月 2 2 日 4 4

  5. Modified Canny edge detection and its implementation in FPGA We improve the classic Canny operator in two aspects: (1) Use median filtering instead of Gaussian filtering to suppress grain noise in the image, while edge information is well preserved (2) In non-maximum suppression, only when the reference point’s gradient value is greater than four neighboring points in the gradient direction, it can be viewed as edge point . Since it is time consuming and causes a waste of resources to computes inverse trigonometric functions in FPGA, we divide the gradient direction into eight regions in 360 o . The pixel will be treated as an edge point, when its G(x, y) is greater than G(x+1, y-1), G(x, y- 1), G(x, y+1) and G(x-1, y+1). Fig.2. Flow chart of FMFCanny 2 0 1 3 年 1 0 月 2 2 日 5 5

  6. Modified Canny edge detection and its implementation in FPGA Fast median filtering with parallel processing capabilities in FPGA Fast parallel median filtering is achieved by 3 × 3 template Fast parallel median filtering in FPGA caches two FIFOs and one register to get the 3 × 3 pixel array to get median value of these 9 pixels as Fig.3 shown. Fig.3. Schematic diagram of fast median filtering 2 0 1 3 年 1 0 月 2 2 日 6 6

  7. Optimal parameter statistics method and its implementation in FPGA for circle detection Three points on a circle can determine the circle Assume that the coordinates of the three points are ( x 1 , y 1 ), ( x 2 , y 2 ) and ( x 3 , y 3 ), the center’s horizontal and vertical coordinates of a , b and radius r , can be calculated by formula (1)(2)(3) + − + × − 2 2 2 2 x y ( x y ) 2 ( y y ) 2 2 1 1 2 1 + − + × − 2 2 2 2 x y ( x y ) 2 ( y y ) = 3 3 1 1 3 1 (1) a − − − − − 4 (( x x )( y y ) ( x x )( y y )) 2 1 3 1 3 1 2 1 × − + − + 2 2 2 2 2 ( x x ) x y ( x y ) 2 1 2 2 1 1 × − + − + 2 2 2 2 2 ( x x ) x y ( x y ) = 3 1 3 3 1 1 b (2) − − − − − 4 (( x x )( y y ) ( x x )( y y )) 2 1 3 1 3 1 2 1 = − + − = 2 2 2 r ( x a ) ( y b ) i 1 , 2 , 3 (3) i i 2 0 1 3 年 1 0 月 2 2 日 7 7

  8. Optimal parameter statistics method and its implementation in FPGA for circle detection Statistical accumulation is presented to choose the largest number of calculated values as the optimal parameters instead of the average value. Fig.4 shows that circle detection algorithm based on optimal parameter statistics consists of three modules Fig.4. Circle detection algorithm based on optimal parameter statistics 2 0 1 3 年 1 0 月 2 2 日 8 8

  9. Optimal parameter statistics method and its implementation in FPGA for circle detection The optimal parameter statistices is the key module of our method 2048 RAMs’ addresses represent the circle parameters values RAM address is initialized to 0, and accumulate when the same parameter detected While negative pulse of horizontal sync signal appears, RAMs which have maximum accumulated values will output their addresses as horizontal coordinate a , vertical coordinate b , and radius r as the optimal parameters 2 2 r i Fig.5. Key operation of optimal parameter statistics 2 0 1 3 年 1 0 月 2 2 日 9 9

  10. Experimental results FPGA hardware based embedded vision system as shown in Fig.6 Camera resolution is 1300x1024 at 43MHz pixel frequency and captures real-time black and white video It takes 0.24 ns to calculate edge information and 17 ms to compute circle optimal parameters, which ensure the real-time processing Fig.6. FPGA based embedded visual platform 2 0 1 3 年 1 0 月 2 2 日 10 10

  11. Experimental results We get circle images to do edge detection through classic Canny and proposed FMFCanny respectively, as shown in Fig.7 In Fig.7 (b), there is edge loss in vertical and horizontal directions. In comparison, the edge curve is more continuous and clear without edge loss in Fig.7 (c) Fig.7. (a) original image, (b) result of [1], (c) result of FMFCanny 2 0 1 3 年 1 0 月 2 2 日 11 11

  12. Experimental results Due to optimal parameter statistics, the algorithm gets good results in a simple background, without error caused by circle parameter accumulation and average operations Fig.8. (a)(d) original images, (b)(e) results of CGM[4], (c)(f) results of proposed OPSCD 2 0 1 3 年 1 0 月 2 2 日 12 12

  13. Experimental results Signal Tap II is used to record real-time circle parameters. There are 20 times computation records as Fig. 9 shown. (b) Where a g , b g , r 2 � g represents circle center’s horizontal coordinate, vertical coordinate and radius square in CGM, and a o , b o , r 2 o represents circle center’s horizontal coordinate, vertical coordinate and radius square in OPSCD (c) Fig.9. Comparison between the two circle detection algorithm with actual values in 20 times computation records 2 0 1 3 年 1 0 月 2 2 日 13 13

  14. Summary According to the analysis of circle parameters, the error ranges of the three circle parameters ( a , b , r 2 ) in CGM are [0 0.59%], [0 0.95%], [0 2.24%], while in our proposed method the corresponding error ranges are [0 0.45%], [0 0.48%], [0 0.96%] This article puts forward a FPGA based embedded vision platform, and proposes a circle detection algorithm based on optimal parameter statistics With the module of optimal parameter statistics, it reduces the computational complexity and ensures the accuracy and robustness of the circle detection 2 0 1 3 年 1 0 月 2 2 日 14 14

  15. Thank you! Thank you! The End The End

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend