TW201113630A - System and method of cell phone camera photo effects testing - Google Patents

System and method of cell phone camera photo effects testing Download PDF

Info

Publication number
TW201113630A
TW201113630A TW98134842A TW98134842A TW201113630A TW 201113630 A TW201113630 A TW 201113630A TW 98134842 A TW98134842 A TW 98134842A TW 98134842 A TW98134842 A TW 98134842A TW 201113630 A TW201113630 A TW 201113630A
Authority
TW
Taiwan
Prior art keywords
photo
tested
mobile phone
pixels
primary color
Prior art date
Application number
TW98134842A
Other languages
Chinese (zh)
Other versions
TWI440961B (en
Inventor
Chun-Yi Lee
Original Assignee
Chi Mei Comm Systems Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chi Mei Comm Systems Inc filed Critical Chi Mei Comm Systems Inc
Priority to TW98134842A priority Critical patent/TWI440961B/en
Publication of TW201113630A publication Critical patent/TW201113630A/en
Application granted granted Critical
Publication of TWI440961B publication Critical patent/TWI440961B/en

Links

Landscapes

  • Image Analysis (AREA)
  • Studio Devices (AREA)

Abstract

A cell phone camera photo effects test methods, the methods include: analysis of the under test photo, analysis of the RGB coefficient distribution and video after the edge binarization value of the under test photos, and analysis results and reference photos of RGB coefficient distribution and the image edge binarization value after the comparison, if the result of the comparison set falls within the permissible error range, then determined the cell phone as a high yield.

Description

201113630 六、發明說明: 【發明所屬之技術領域】 [0001]本發明涉及圖像處理技術領域,尤其涉及一種手機攝像 頭拍照效果測試系統及方法。 【先前技術】201113630 VI. Description of the Invention: [Technical Field] The present invention relates to the field of image processing technologies, and in particular, to a camera test system and method for a mobile phone camera. [Prior Art]

[0002] 目前大多數手機都具有拍照功能,每—部手機在出廠時 都需要對其攝像頭的拍照效果進行測試。目前的做法是 通過電腦向待測試手機發出命令,啟動手機上的攝像Z 以某個固定的拍照條件(包括拍照距離、拍照角声及饩 光條件)拍下一張預先設計好的標準圖得到一張照片T 從手機中將該照片讀取至電腦中’並將其在顯示器中放 大顯示,測試人員通過人眼碑察顯示器中顯示的昭 *、式片並 與標準圖對比,進而判斷照片的清晰度、色彩的品質 此種方法簡單易操作,但存在一個最大的缺點,即測試 人員是通過眼睛去判斷,當測試,人員疲倦時,難免會判 斷錯誤;而且人眼判斷的效率低下,判斷結果具有主 性。 - 【發明内容】 [0003] 鑒於以上内容有必要提供一種手機攝像頭拍照效果測試 系統。該系統運行於電腦中,所述電腦通過匯流排與待 測手機連接。所述電腦的記憶體中存儲有符合量產要求 的參考照片的三原色係數分佈統計資料和影像邊緣二值 化後的值;該系統包括:設定模組,用於設定允許待測 照片與參考照片的三原色係數不同的像素點的個數的範 圍及允許待測照片與參考照片的影像邊緣二值化後的值 098134842 表單編號A0101 第3頁/共I9頁 0982059679-0 201113630 不同的像素點的個數的範圍;資料讀取模組,用於從待 測手機中讀取待測照片,該待測照片是待測手機按照與 參考照片相同的拍照條件對同一預先設計好的標準圖片 進行拍照並存儲於待測手機中的照片;三原色係數統計 分析模組,用於提取出上述讀取的待測照片包含的每一 像素點的三原色係數,並逐個與參考照片的每一個像素 點的三原色係數進行比較,統計出該待測照片與參考照 片的像素點的三原色係數不同的像素點的個數;影像邊 緣提取分析模組,用於提取上述讀取到的待測照片的影 像邊緣並將其進行二值化,將二值化後的值與參考照片 的影像邊緣二值化後的值進行比較,統計出該待測照片 與參考照片的影像邊緣二值化後的值不同的像素點的個 數;良品判斷模組,用於判斷上述統計出的待測照片與 參考照片的三原色係數不同的像素點的個數及與參考照 片的影像邊緣二值化後的值不同的像素點的個數是否都 在設定的允許範圍内,若兩者都在設定的允許範圍内, 則判定該待測手機為良品;若有任何一個或者兩者都不 在允許範圍内,則判定該待測手機為不良品。 [0004] 鑒於以上内容還有必要提供一種手機攝像頭拍照效果測 試方法。該方法包括:(a)設定允許待測照片與參考照 片的三原色係數不同的像素點的個數的範圍及允許待測 照片與參考照片的影像邊緣二值化後的值不同的像素點 的個數的範圍;(b)從待測手機中讀取待測照片,該待 測照片是待測手機按照與參考照片相同的拍照條件對同 一預先設計好的標準圖片進行拍照並存儲於待測手機中 098134842 表單編號A0101 第4頁/共19頁 0982059679-0 201113630 的照片;⑷提取出上述讀取的待測照片包 — 素點的三原色係數,並逐個與參考照片的每母^ 的三原色係數進行比較,統計出待測照片與參考日ί = 像素點的三原色係數不同的像素點的個數;㈠ 述讀取到的待測照片的影像邊緣並將其進行二 上 將二值化後的值與參考照片的影像邊緣二值並 行比較,統計出待測照片與參考照片的影像邊緣$ 制值不同的像素點的個數;(e)判斷上述統計-出二 Ο [0005] Ο [0006] = = =,係數,像素點的個數及 片的祕邊緣二值化後的值不同的像素點的個 都在設㈣料範_,若兩者都在衫的允許 範圍内,關定轉财機為良品;若有讀-個或者 兩者都不在允許範圍内,則判定該待測手機為不良品。 通過本^喊供的手_像獅照效果顧系統及方法 ,大大b了手機攝像頭拍照效果測試的效率,有效避 免了人工判定的主觀性。 : ' sV' (Ά 4 【實施方式】 如圖1所示’是本發明手機攝像頭拍照效果測試系統的較 佳實施例的運行環境示意圓。該系統]0運行於電則中, 所述電腦1通職與待測手機2建立連p所述電腦 i包括記憶體20,該記憶㈣中存儲有參考照片的三原色 係數分佈統計資料和影像邊緣二值化後的I該參考照 片是待測手機按照固定的拍照條件(固定的距離、角度 、燈光條件)對預先設計好的標準圖片進行拍照得到的 照片,該照片是經人眼多次相為符合量產要求的照片 098134842[0002] At present, most mobile phones have a camera function, and each camera needs to test the camera's camera effect when it leaves the factory. The current practice is to send a command to the mobile phone to be tested through the computer, and start the camera Z on the mobile phone to take a pre-designed standard picture with a certain fixed photographing condition (including photographing distance, photo cornering and twilight conditions). A photo T reads the photo from the mobile phone into the computer and enlarges it in the display. The tester checks the photo displayed on the display through the human eye and compares it with the standard image to determine the photo. The clarity and color quality of this method is simple and easy to operate, but there is one of the biggest drawbacks, that is, the tester judges through the eyes. When the test is exhausted, it is inevitable that the error will be judged; and the judgment of the human eye is inefficient. The judgment result is dominant. - [Summary of the Invention] [0003] In view of the above, it is necessary to provide a mobile phone camera photographing effect test system. The system operates in a computer that is connected to the mobile phone to be tested via a bus. The computer's memory stores three primary color coefficient distribution statistics and image edge binarization values of the reference photo that meet the mass production requirements; the system includes: a setting module for setting the allowed photos and reference photos to be tested. The range of the number of pixels with different primary color coefficients and the value of binarization of the image edge of the photo to be tested and the reference photo 098134842 Form No. A0101 Page 3 / I9 page 0982059679-0 201113630 Different pixel points The range of the number; the data reading module is configured to read the photo to be tested from the mobile phone to be tested, and the photo to be tested is a photo of the same pre-designed standard picture according to the same photographing condition as the reference photo. The photo stored in the mobile phone to be tested; the three primary color coefficient statistical analysis module is configured to extract the three primary color coefficients of each pixel included in the read photo to be tested, and to respectively determine the three primary color coefficients of each pixel of the reference photo. Comparing, counting the number of pixels of the pixel to be tested and the three primary color coefficients of the pixel of the reference photo; Extracting an analysis module for extracting the image edge of the above-mentioned read photo to be binarized, and comparing the binarized value with the binarized value of the image edge of the reference photo, and counting a number of pixels different from the binarized value of the image edge of the reference photo and the reference photo; the good quality determining module is configured to determine the pixel points of the statistically determined photo and the reference photo having different three primary color coefficients Whether the number of pixels and the number of pixels different from the binarized value of the image edge of the reference photo are within the set allowable range, and if both are within the set allowable range, it is determined that the mobile phone to be tested is Good product; if any one or both are not within the allowable range, it is determined that the mobile phone to be tested is a defective product. [0004] In view of the above, it is also necessary to provide a method for measuring the photographing effect of a mobile phone camera. The method includes: (a) setting a range of the number of pixels that allows the three primary color coefficients of the photo to be tested and the reference photo to be different, and a pixel point that allows the photo to be measured to be different from the value of the image edge of the reference photo. (b) reading the photo to be tested from the mobile phone to be tested, the photo to be tested is a photo of the same pre-designed standard picture and stored in the mobile phone to be tested according to the same photographing condition as the reference photo. Medium 098134842 Form No. A0101 Page 4 of 19 Photograph of 0982059679-0 201113630; (4) Extract the above-mentioned photographs to be tested - the three primary color coefficients of the prime point, and one by one with the three primary color coefficients of each parent of the reference photo Comparing, counting the number of pixels of the photo to be measured and the reference time ί = the three primary color coefficients of the pixel; (1) reading the image edge of the photo to be tested and performing the binarization of the image Comparing with the image edge binary value of the reference photo, counting the number of pixels of the image to be measured and the image edge value of the reference photo is different; (e) judging the above statistics-out Ο [0005] Ο [0006] = = =, the number of pixels, the number of pixels, and the value of the binarized edge of the slice are different. The pixels are set (4), if both are in the shirt Within the allowable range, the money-changing machine is determined to be a good product; if there is a reading or one of them is not within the allowable range, it is determined that the mobile phone to be tested is a defective product. Through the hand of the ^ shouting _ like the lion photo effect system and method, greatly improved the efficiency of the camera camera photo effect test, effectively avoiding the subjectivity of manual judgment. : ' sV' (Ά 4 [Embodiment] FIG. 1 is a schematic diagram of a running environment of a preferred embodiment of the mobile phone camera photographing effect testing system of the present invention. The system is running in an electric machine, the computer 1 The internal computer is connected with the mobile phone 2 to be tested. The computer i includes the memory 20, and the memory (4) stores the three primary color coefficient distribution statistics of the reference photo and the image edge binarized I. The reference photo is the mobile phone to be tested. A photo taken by taking a pre-designed standard picture according to a fixed photographing condition (fixed distance, angle, lighting condition), the photograph is a photo that meets the mass production requirements by the human eye multiple times 098134842

表箪編號A010I 第5頁/共19頁 0982059679-0 201113630 [0007] 該系統10包括設定模組100、資料讀取模組101、三原色 係數統計分析模組102、影像邊緣提取分析模組103、良 品判斷模組104及報告生成模組105。 [0008} 所述設定模組100用於設定允許待測照片與參考照片的三 原色係數不同的像素點的個數的範圍及允許待測照片與 參考照片的影像邊緣二值化後的值不同的像素點的個數 的範圍。例如,可設定允許待測照片與參考照片的三原 色係數不同的像素點個數的範圍為0〜500個;設定允許待 測照片與參考照片的影像邊緣二值化後的值不同的像素 點個數的範圍為0〜300個。在實際測試中可根據需要進行 調整。 / [0009] 所述資料讀取模組101用於通過匯流排3從待測手機2中讀 取待測照片,該待測照片是待測手機2按照與參考照片相 同的拍照條件(相同的距離、角度、燈光條件)對同一 預先設計好的標準圖片進行拍照並存儲於待測手機3中的 照片。 [0010] 所述三原色係數統計分析模組1 0 2用於統計出上述待測照 片包含的每一像素點的三原色係數,並逐個與參考照片 的每一個像素點的三原色係數進行比較,統計出上述待 測照片與參考照片中三原色係數不同的像素點的個數。 [0011] 為了更清楚地說明上述的比較過程,這裏給出一個具體 的原理性的示意圖並進行詳細闡述。每張彩色圖片所包 含的每個像素點都是三原色(RGB)按照不同的係數合成 098134842 表單編號A0101 第6頁/共19頁 0982059679-0 201113630 [0012] [0013] Ο [0014] 〇 [0015] 的。將照片的每個像素點的三原色係數統計出來就構成 了 一個三維陣列,該三維陣列的每個元素包括三個值, 分別代表三原色係數。 如圖3所示,是參考照片的所有像素點的三原色係數與待 測照片的像素點的三原色係數的對比示意圖。 圖3的上半部分示意了參考照片的所有像素點的三原色系 數值組成的三維陣列(為了簡單說明問題,假設該照片 只有16個像素點)。圖3的下半部分示意了待測照片的所 有像素點的三原色系數值組成的三維陣列。經過比較統 計出有四個像素點的三原色係數不同。該四個像素點的 位置如圖中加粗部分所示。 所述影像邊緣提取分析模組103用於提取上述待測照片的 影像邊緣並將其進行二值化,將二值化後的值與參考照 片的影像邊緣二值化後的值進行比較,統計出待測照片 與參考照片的影像邊緣二值化後的值不同的像素點的個 數。以影像處理觀點而言,邊緣是影像的高頻部分,如 果拍出的照片異常(即模糊、水波紋、異色等),通常 邊緣的表現也不一樣。 同樣為了說明上述的比較過程,在提取出影像邊緣後, 將影像邊緣二值化,這樣照片中物體的輪廓清晰部分對 應的像素點二值化後其值為1,照片中物體的輪廓模糊部 分或者背景對應的像素點二值化後其值為〇。 如圖4所示,是待測照片的影像邊緣二值化後的值與參考 照片的影像邊緣二值化後的值的對比示意圖。圖4中上半 098134842 表單編號Α0101 第7頁/共19頁 0982059679-0 [0016] 201113630 部分示意的是一個矩形物體的清晰照片(假定該照片為 參考照片)進行二值化後像素點的值分佈圖,圖中下半 部分示意的是一個矩形物體的模糊照片(假定該照片為 待測照片)進行二值化後像素點的值分佈圖。從圖4中可 以看出該矩形物體清晰照片進行二值化後其輪廓部分對 應的像素點的值大多為1。而該矩形物體的模糊照片進行 二值化後其輪廓部分對應的像素點的值大多為0。從上述 統計出的兩張照片進行二值化後其輪廓部分的像素點的 值不同的個數即可衡量待測照片的畫面的清晰程度。 Λ ❹ [0017] 所述良品判斷模組104用於判斷上述統計出的待測照片與 參考照片的三原色係數不同的像素點的個數及待測照片 與參考照片的影像邊緣二值化後的值不同的像素點的個 數是否都在設定的範圍内。若兩者都在設定的允許範圍 内,則判定該待測手機2為良品;若兩者中有一個不在設 定的允許範圍内或者兩者都不在設定的允許的範圍内, 則判定該待測手機2為不良品。 [0018] 所述報告生成模組105用於根據上述三原色係數統計分析 ^ 模組102及影像邊緣提取分析模組103的統計結果和良品 判斷模組104的判斷結果生成待測手機攝像頭拍照效果的 測試報告。 [0019] 如圖2所示,是本發明手機攝像頭拍照效果測試方法的較 佳實施例的流程圖。 [0020] 步驟S202,通過設定模組100設定允許待測照片與參考照 片的三原色係數不同的像素點的個數的範圍及允許待測 098134842 表單編號Α0101 第8頁/共19頁 0982059679-0 201113630 照片與參考照片的影像邊緣二值化後的值不同的像素點 的個數的範圍。例如,可設定允許待測照片與參考照片 的二原色係數不同的像素點的個數的範圍為〇〜5〇〇個;設 定允許與參考照月的影像邊緣二值化後的值不同的像素 點的個數的範圍〇~300個。在實際測試中可根據需要進行 調整。 Τ [0021] Ο 步驟S204,資料讀取模組1〇ι通過匯流排3從待測手機2 中讀取待測㈣’料測‘㈣是㈣手機2按照與參考昭 片相同的拍照條件(相同的距離、角度、燈光條件)斜、 同一預先設計杯从 子 野的標準圖片進行拍照並存儲於待測手機3 中的照片。 π [0022] 步驟S206,二爲Δ 昭η人錄統計純齡1嶋^述待測 ‘,、、片匕3的每一像素點的三原色係數,並逐個與參 片的每一個像素駐Μ “、、 Ο [0023] ’、點的三原色係數進行比較,統計出該 測照片與參考昭^付 “'、月的像素點的三原色係數不同的傻去# 的個數。比較的泡點 ^具體過程請參考本說明中對圖3的具體 述。 〆- 、田 步驟S208,影像邊緣提取分析模組丨〇3提取上述待測昭 的影像邊緣並將其進行二值化,並將三值化後的值與參 考”、、片的fz像邊緣二值化後的值進行比較統計出該待 測照片與參考照片的影像邊緣二值化後的值不同的像素 點的個數比較的具體過程請參考本說明書中對圖4的具 體描述。 [0024] 步驟S210,良 〇〇 列斷模組104判斷上述統計出的待剛照片 098134842 表單編號A0101 第9頁/共19頁 0982059679-0 201113630 與參考照片的三原色係數不_像素點的個數及與 照片的影像邊緣二值化後的值不同的像素點的個數$ 都在設定的範_。若兩者都在設定社許的範^否 則判定該待測手機2為良品;若有任何—個或者兩者都 在允許的範圍内,則判定該待測手機2為不良品。 [0025] 步驟S212 ’報告生成模組1〇5根據上述三原色係 八 析模組1G2及f彡像邊緣提取分析模_3的崎結果和良刀 品判斷模組104的判斷結果生成待測手機2的攝像頭的: 照效果的測試報告。 ' [0026] [0027] 如圖5所示’是待測手機2的攝像頭拍照效果測試報告的 示意圖。在該測試報告中,可清楚地瞭解該待測手^拍 照標準圖片得到的待測照片與參考照片的三原色係數不 同的像素點的個數。還可瞭解待測手機2拍照標準圖片得 到的待韻片與參考㈣的影像邊緣二值化後的值不同 的像素點的個數及該待測手機2是否為良品的測試結果。 應當說明的是,以上實施例僅用以說明,本發明的技術方 案而非限制,儘管參照較佳實施例對本發明進行了詳細 說明,本領域的普通技術人員應當理解,可以對本發明 的技術方案進行修改或等同替換,而不脫離本發明技術 方案的精神和範圍。Table No. A010I Page 5 / 19 pages 0982059679-0 201113630 [0007] The system 10 includes a setting module 100, a data reading module 101, a three primary color coefficient statistical analysis module 102, an image edge extraction analysis module 103, The good judgment module 104 and the report generation module 105. [0008] The setting module 100 is configured to set a range of the number of pixels that allow the three primary color coefficients of the photo to be tested and the reference photo to be different, and allow the value of the image to be tested to be different from the value of the image edge of the reference photo. The range of the number of pixels. For example, the range of the number of pixels that allow the difference between the three primary color coefficients of the photo to be tested and the reference photo to be 0 to 500 may be set; and the pixel points that allow the image to be tested to be binarized with the image edge of the reference photo are set. The range of numbers is 0~300. It can be adjusted as needed during actual testing. [0009] The data reading module 101 is configured to read a photo to be tested from the mobile phone 2 to be tested through the bus bar 3, and the photo to be tested is the same photographing condition as the reference photo according to the mobile phone 2 to be tested (the same) Distance, angle, lighting conditions) The same pre-designed standard picture is taken and stored in the phone 3 to be tested. [0010] The three primary color coefficient statistical analysis module 102 is configured to calculate the three primary color coefficients of each pixel included in the photo to be tested, and compare one by one with the three primary color coefficients of each pixel of the reference photo, and count The number of pixels of the above-mentioned photo to be tested and the reference photo are different from the three primary color coefficients. [0011] In order to more clearly illustrate the above comparison process, a specific schematic diagram is given here and explained in detail. Each pixel contained in each color picture is composed of three primary colors (RGB) according to different coefficients. 098134842 Form No. A0101 Page 6/19 pages 0982059679-0 201113630 [0012] [0013] Ο [0014] 〇[0015 ] of. The three primary color coefficients of each pixel of the photo are counted to form a three-dimensional array, each element of the three-dimensional array comprising three values representing the three primary color coefficients. As shown in FIG. 3, it is a comparison diagram of the three primary color coefficients of all the pixels of the reference photo and the three primary color coefficients of the pixels of the photo to be measured. The upper half of Fig. 3 illustrates a three-dimensional array of the three primary color system values of all the pixels of the reference photograph (for simplicity of explanation, the photo is assumed to have only 16 pixels). The lower half of Fig. 3 illustrates a three-dimensional array of three primary color coefficient values for all pixel points of the photo to be measured. It is calculated that the three primary color coefficients of four pixels are different. The positions of the four pixels are shown in bold in the figure. The image edge extraction analysis module 103 is configured to extract the image edge of the photo to be tested and binarize the image, and compare the binarized value with the binarized value of the image edge of the reference photo. The number of pixels different from the value of the image edge of the reference photo to be binarized. From the viewpoint of image processing, the edge is the high-frequency part of the image. If the photograph taken is abnormal (ie, blur, water ripple, color, etc.), the edge usually performs differently. Similarly, in order to explain the above comparison process, after extracting the edge of the image, the edge of the image is binarized, so that the pixel corresponding to the sharp part of the outline of the object in the photo is binarized and its value is 1, and the outline of the object in the photo is blurred. Or the pixel corresponding to the background is binarized and its value is 〇. As shown in FIG. 4, it is a comparison diagram of the binarized value of the image edge of the photo to be measured and the binarized value of the image edge of the reference photo. The upper half of Figure 4 098134842 Form number Α 0101 Page 7 / Total 19 page 0892059679-0 [0016] Part of the 201113630 is a clear picture of a rectangular object (assuming the photo is a reference photo) to binarize the value of the pixel The distribution map, the lower part of the figure, shows the value distribution of the pixel points after binarization of a blurred image of a rectangular object (assuming the photo is a photo to be tested). It can be seen from Fig. 4 that the value of the pixel corresponding to the contour portion of the rectangular object is mostly 1 after binarization. When the blurred photograph of the rectangular object is binarized, the value of the pixel corresponding to the contour portion is mostly 0. The number of pixels of the outline portion after binarization of the two photos counted above can be used to measure the clarity of the picture of the photo to be measured.良 ❹ [0017] The good quality determining module 104 is configured to determine the number of pixels of the statistically determined photo and the reference photo, and the binarized image edges of the photo to be tested and the reference photo Whether the number of pixels with different values is within the set range. If both are within the set allowable range, it is determined that the mobile phone 2 to be tested is a good product; if one of the two is not within the set allowable range or both are not within the set allowable range, then the test is determined. The mobile phone 2 is a defective product. [0018] The report generation module 105 is configured to generate a photograph of the camera image of the mobile phone to be tested according to the statistical results of the three primary color coefficient statistical analysis module 102 and the image edge extraction analysis module 103 and the determination result of the good judgment module 104. testing report. [0019] As shown in FIG. 2, it is a flow chart of a preferred embodiment of the method for testing the photographing effect of the mobile phone camera of the present invention. [0020] Step S202, the setting module 100 is configured to set a range of the number of pixels that allow the three primary color coefficients of the photo to be tested and the reference photo to be different, and allow the 098134842 to be tested. Form number Α0101 Page 8/19 pages 0982059679-0 201113630 The range of the number of pixels in which the photo is different from the value of the image edge of the reference photo. For example, the range of the number of pixels that allow the two primary color coefficients of the photo to be tested and the reference photo to be different may be set to 〇~5〇〇; and the pixel that allows the image edge binarization of the reference image to be different is set. The range of points is 〇~300. It can be adjusted as needed during actual testing. Ο [0021] Ο Step S204, the data reading module 1 〇ι reads the to-be-tested from the mobile phone 2 to be tested through the bus bar 3 (4) 'Material measurement' (4) is (4) The mobile phone 2 follows the same photographing conditions as the reference camera ( The same distance, angle, lighting condition) oblique, the same pre-designed cup is taken from the standard picture of the sub-field and stored in the photo of the mobile phone 3 to be tested. π [0022] Step S206, the second is the Δ η 人 人 统计 纯 纯 纯 嶋 嶋 待 待 待 待 待 待 待 待 待 待 待 , , , , , , , , , , , , , , , , , , , , , , , , , , , , ",, Ο [0023] ', the three primary color coefficients of the point are compared, and the number of stupid # different from the three primary color coefficients of the pixel of the month is counted. Comparison of bubble points ^ For the specific process, please refer to the specific description of Figure 3 in this description. 〆-, field step S208, the image edge extraction analysis module 丨〇3 extracts the edge of the image to be measured and binarizes it, and compares the value of the ternary with the reference f, the edge of the fz image of the slice For the specific process of comparing the number of pixels after the binarized value is compared and compared with the value of the image edge binarization of the reference photo, please refer to the detailed description of FIG. 4 in this specification. [0242] Step S210, the Liangzhuo break module 104 determines the counted number of the primaries of the above-mentioned statistics and the number of the primaries of the reference photographs and the number of the primaries of the reference photographs and the number of the primaries of the reference photographs and the reference photographs of the reference photographs 098,134,842, Form No. A0101, Page 9/19 pages 0982059679-0, 201113630 The number of pixels different from the value of the image edge binarization of the photo is in the set mode _. If both are in the setting of the social standard, otherwise the mobile phone 2 to be tested is determined to be a good product; if any If one or both of them are within the allowable range, it is determined that the mobile phone 2 to be tested is a defective product. [0025] Step S212 'The report generation module 1〇5 is based on the above-mentioned three primary color system 8A2 and the edge of the image Extracting the analysis result _3 The judgment result of the knife judgment module 104 generates a test report of the effect of the camera of the mobile phone 2 to be tested. [ [0026] [0027] FIG. 5 is a schematic diagram of a camera photographing effect test report of the mobile phone 2 to be tested. In the test report, the number of pixels with different three primary color coefficients of the photo to be tested and the reference photo obtained by the standard image of the tester can be clearly understood. The number of pixels that are different from the value of the image edge binarization of the reference (4) and the test result of whether the mobile phone 2 to be tested is a good product. It should be noted that the above embodiment is only for illustration, the present invention The invention is not limited thereto, and although the invention has been described in detail with reference to the preferred embodiments thereof, those skilled in the art should understand that the invention may be modified or equivalently substituted without departing from the spirit of the invention. And scope.

[0028] 【圖式簡單說明】 圖1係為本發明手機攝像頭拍照效果測試系統的較佳實施 例的運行環境示意圖。 [0029] 圖2係為本發明手機攝像頭拍照效果測試方法的較佳實施 098134842 表單編號A0101 第10頁/共19頁 0982059679-0 201113630 例的流程圖。 [0030] 圖3係為參考照片的所有像素點的三原色係數與待測照片 的像素點的對比示意圖。 [0031] 圖4係為待測照片的影像邊緣二值化後的值與參考照片的 影像邊緣二值化後的值的對比示意圖。 [0032] 圖5係為本發明手機攝像頭拍照效果測試系統生成的測試 報告的示意圖。 【主要元件符號說明】 [0033] [0034] 手機攝像頭拍照效果測試系統10 電腦1 [0035] 匯流排3 [0036] 待測手機2 [0037] 記憶體20 1 ' ” [0038] 設定模組100 ΐ: [0039] 資料讀取模組 .s ·- ^ 101 [0040] 三原色係數統計分析模組102 [0041] 影像邊緣提取分析模組103 [0042] 良品判斷模組 104 [0043] 報告生成模組 105BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram of an operating environment of a preferred embodiment of a camera camera effect test system of the present invention. 2 is a preferred embodiment of a method for testing a photographing effect of a mobile phone camera of the present invention. 098134842 Form No. A0101 Page 10 of 19 0982059679-0 201113630 Example flow chart. 3 is a schematic diagram showing a comparison of the three primary color coefficients of all the pixel points of the reference photo with the pixel points of the photo to be measured. [0031] FIG. 4 is a schematic diagram showing a comparison between a value obtained by binarizing an image edge of a photo to be measured and a value obtained by binarizing the image edge of the reference photo. 5 is a schematic diagram of a test report generated by the camera effect detection system of the mobile phone camera of the present invention. [Main Component Symbol Description] [0033] Mobile Phone Camera Photo Effect Test System 10 Computer 1 [0035] Bus 3 [0036] To-be-tested mobile phone 2 [0037] Memory 20 1 ' " [0038] Setting module 100 ΐ: [0039] data reading module.s ·- ^ 101 [0040] three primary color coefficient statistical analysis module 102 [0041] image edge extraction analysis module 103 [0042] good quality determination module 104 [0043] report generation module Group 105

0982059679-0 098134842 表單編號A0101 第11頁/共19頁0982059679-0 098134842 Form No. A0101 Page 11 of 19

Claims (1)

201113630 七、申請專利範圍: 1 . 一種手機攝像頭拍照效果測試系統,該系統運行於電腦中 ,所述電腦通過匯流排與待測手機連接,所述電腦的記憶 體中存儲有符合量產要求的參考照片的三原色係數分佈統 計資料和影像邊緣二值化後的值;該系統包括: 設定模組,用於設定允許待測照片與參考照片的三原色係 數不同的像素點的個數的範圍及允許待測照片與參考照片 的影像邊緣二值化後的值不同的像素點的個數的範圍; 資料讀取模組,用於從待測手機中讀取待測照片,該待測 照片是待測手機按照與參考照片相同的拍照條件對同一預 先設計好的標準圖片進行拍照並存儲於待測手機中的照片 三原色係數統計分析模組,用於提取出上述讀取的待測照 片包含的每一像素點的三原色係數,並逐個與參考照片的 每一個像素點的三原色係數進行比較,統計出該待測照片 與參考照片的像素點的三原色係數不同的像素點的個數; 影像邊緣提取分析模組,用於提取上述讀取到的待測照片 的影像邊緣並將其進行二值化,將二值化後的值與參考照 片的影像邊緣二值化後的值進行比較,統計出該待測照片 與參考照片的影像邊緣二值化後的值不同的像素點的個數 9 良品判斷模組,用於判斷上述統計出的待測照片與參考照 片的三原色係數不同的像素點的個數及與參考照片的影像 邊緣二值化後的值不同的像素點的個數是否都在設定的允 098134842 表單編號A0101 第12頁/共19頁 0982059679-0 201113630 '園内,右兩者都在設定的允許範圍内,則判定該待測 手機為良品;若有任何一個或者兩者都不在允許範圍内, 則判又該待測手機為不良品。 申π專利範圍第1項所述之手機攝像頭拍照效果測試系 統’該系統還包括: 坦生成杈組,用於根據上述三原色係數統計分析模組、 =像邊緣提取分龍組的料結果及I ^麟模組的判斷 、Ό果生成手機攝像頭拍照效果的測試報告。 〇 .種手機攝像頭拍照效果測試方法,該方法包括: (a) 叹定允許待測照片與參考照片的三原色係數不同的 ,像素點的個數的範圍及允許待測照片與參考照片的影像邊 緣一值化後的值不同的像素點的個數的範圍; (b) 從待測手機中讀取待測照片,該待測照片是待測手 機按照與參考照片相同的拍照條件對同一預先設計好的標 準圖片進行拍照並存儲於待測手機中的照片; (c) 提取出上述讀取的待測照片包含的每—像素點的_ Q 原色係數,並逐個與參考照片的每一個像素點的三原一 數進行比較,統計出待測照片與參考照片的像素點的色係 色係數不同的像素點的個數; —原 (d) 提取上述讀取到的待測照片的影像邊緣並將其進〜 二值化,並將二值化後的值與參考照片的影像邊緣二仃 後的值進行比較,統計出待測照片與參考照片的影像逢= 二值化後的值不同的像素點的個數; ' 098134842 (e)判斷上述統計出的待測照片與參考照片的^ 數不同的像素點的個數及與參考照片的影像邊緣 原色係 值化後 的值不同的像素點的個數是否都在設定的允許範圍内 表單編號A0101 第13頁/共19頁 若 〇982〇59679~〇 201113630 兩者都在設定的允許範圍内,則判定該待測手機為良品; 若有任何一個或者兩者都不在允許範圍内,則判定該待測 手機為不良品。 如申請專_ Μ 3項料之手鋪㈣㈣效果測試方 法’在步驟(e)之後還包括: 根據上述統計出的待測照片與參考照片的像素點的三原色 係數不同的像素點的個數、待測照片與參考照片的影像邊 緣二值化後的值不同的像素點的個數及良品判斷結果生成 手機攝像頭的拍照效果的測試報告。 098134842 表單編號A0101201113630 VII. Patent application scope: 1. A mobile phone camera photo effect test system, the system runs in a computer, and the computer is connected to the mobile phone to be tested through a bus bar, and the memory of the computer stores the mass production requirements. Refer to the photo of the three primary color coefficient distribution statistics and the binarized value of the image edge; the system includes: a setting module for setting a range and allowing the number of pixels that allow the three primary color coefficients of the photo to be tested and the reference photo to be different a range of the number of pixels different from the value of the image edge of the reference photo to be binarized; the data reading module is configured to read the photo to be tested from the mobile phone to be tested, and the photo to be tested is to be tested The measurement mobile phone photographs the same pre-designed standard picture according to the same photographing condition as the reference photo and stores the photo three-color coefficient statistical analysis module in the mobile phone to be tested, and extracts each of the above-mentioned read photos to be tested. The three primary color coefficients of a pixel, and are compared one by one with the three primary color coefficients of each pixel of the reference photo, statistics An image edge extraction analysis module for extracting the image edge of the read photo to be tested and binarizing the image of the image to be tested Comparing the binarized value with the binarized value of the image edge of the reference photo, and counting the number of pixels that are different from the binarized value of the image edge of the reference photo. The determining module is configured to determine whether the number of pixels of the above-mentioned statistically determined photo and the reference photo having different three primary color coefficients and the number of pixels different from the binarized value of the image edge of the reference photo are both The setting of the permission 098134842 Form No. A0101 Page 12 / Total 19 pages 0982059679-0 201113630 'In the park, the right two are within the allowable range, then the mobile phone to be tested is judged to be good; if any one or both are not in Within the allowable range, the mobile phone to be tested is judged to be defective. The mobile phone camera photographing effect testing system described in claim 1 of the patent scope includes: a tandem generating group for statistically analyzing the module according to the above three primary color coefficients, = the result of the edge extraction of the split dragon group, and I The judgment of the Lin module and the test result of the camera effect of the mobile phone camera. 〇. A method for testing the camera effect of a mobile phone camera, the method comprising: (a) arbitrarily allowing the three primary color coefficients of the photo to be tested and the reference photo to be different, the range of the number of pixels and the image edge of the photo to be tested and the reference photo The range of the number of pixels with different values after binarization; (b) reading the photo to be tested from the mobile phone to be tested, the photo to be tested is the same pre-designed according to the same photographing condition as the reference photo A good standard picture is taken and stored in the phone to be tested; (c) extracting the _Q primary color coefficient of each pixel included in the above-mentioned read photo, and each pixel of the reference photo one by one Comparing the three original numbers, and counting the number of pixels of the color coefficient of the pixel of the photo to be tested and the reference photo; - original (d) extracting the image edge of the above-mentioned read photo and It enters ~ binarization, and compares the binarized value with the value of the image edge of the reference photo, and counts the image of the photo to be tested and the reference photo = binarized value The number of the same pixel; ' 098134842 (e) It is judged that the number of pixels of the above-mentioned statistically determined photo and the reference photo are different from the value of the image edge of the reference photo. Whether the number of pixels is within the set allowable range, the form number A0101, page 13 / 19 pages, if 982 〇 59679 〇 201113630 are both within the allowable range, the mobile phone to be tested is determined to be a good product; If any one or both of them are not within the allowable range, it is determined that the mobile phone to be tested is a defective product. For example, the application of the special _ Μ 3 item hand shop (4) (4) effect test method 'after step (e) further includes: according to the above statistics, the number of pixels of the photo of the reference photo and the reference photo of the three primary color coefficients, A test report in which the number of pixels of the photo to be tested and the value of the reference image are binarized and the result of the good judgment are generated to generate a photographing effect of the mobile phone camera. 098134842 Form No. A0101 U 第14頁/共19頁 0982059679-0U Page 14 of 19 0982059679-0
TW98134842A 2009-10-14 2009-10-14 System and method of cell phone camera photo effects testing TWI440961B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW98134842A TWI440961B (en) 2009-10-14 2009-10-14 System and method of cell phone camera photo effects testing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW98134842A TWI440961B (en) 2009-10-14 2009-10-14 System and method of cell phone camera photo effects testing

Publications (2)

Publication Number Publication Date
TW201113630A true TW201113630A (en) 2011-04-16
TWI440961B TWI440961B (en) 2014-06-11

Family

ID=44909701

Family Applications (1)

Application Number Title Priority Date Filing Date
TW98134842A TWI440961B (en) 2009-10-14 2009-10-14 System and method of cell phone camera photo effects testing

Country Status (1)

Country Link
TW (1) TWI440961B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102012221563B4 (en) 2011-11-30 2022-01-27 GM Global Technology Operations LLC (n. d. Ges. d. Staates Delaware) FUNCTIONAL DIAGNOSIS AND VALIDATION OF A VEHICLE-BASED IMAGING SYSTEM

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102012221563B4 (en) 2011-11-30 2022-01-27 GM Global Technology Operations LLC (n. d. Ges. d. Staates Delaware) FUNCTIONAL DIAGNOSIS AND VALIDATION OF A VEHICLE-BASED IMAGING SYSTEM

Also Published As

Publication number Publication date
TWI440961B (en) 2014-06-11

Similar Documents

Publication Publication Date Title
US11797886B2 (en) Image processing device, image processing method, and image processing program
CN105092598B (en) A kind of large format pcb board defect method for quickly identifying and system based on connected domain
Demant et al. Microcracks in silicon wafers I: Inline detection and implications of crack morphology on wafer strength
CN104318225B (en) Detection method of license plate and device
CN110059635B (en) Skin defect detection method and device
CN103366176B (en) Optical element defect batch automatic identification equipment and method
CN103873880B (en) Method and apparatus for detecting the structured artifacts in video sequence
CN102035988A (en) System and method for testing photographic effect of mobile phone camera
TWI304187B (en) Method and apparatus for image edge detection
JP5085573B2 (en) Defect inspection method and defect inspection apparatus
US9064314B2 (en) Robust automatic determination and location of MacBeth color checker charts
CN116309409A (en) Weld defect detection method, system and storage medium
CN109283182A (en) A kind of detection method of battery welding point defect, apparatus and system
TW201317904A (en) Tag detecting system, apparatus and method for detecting tag thereof
TWI512284B (en) Bubble inspection system for glass
CN105509657B (en) A kind of high-precision measuring method of IC card chip scratch area and gray scale parameter
TWI303527B (en) Image inspecting apparatus, image inspecting method and computer-readable storage medium
CN103605973B (en) A kind of image character detection and identification method
JP2014126445A (en) Alignment device, defect inspection device, alignment method and control program
TW201336295A (en) Flicker detecting apparatus and method for camera module
JP2010008159A (en) Visual inspection processing method
TW201113630A (en) System and method of cell phone camera photo effects testing
CN115205288B (en) Industrial defect detection method and device
CN103927312A (en) Automatic classification method and system for failure information of CIS (contact image sensor)
JP2012007952A (en) Visual inspection device

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees