TWI440961B - 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
TWI440961B
TWI440961B TW98134842A TW98134842A TWI440961B TW I440961 B TWI440961 B TW I440961B TW 98134842 A TW98134842 A TW 98134842A TW 98134842 A TW98134842 A TW 98134842A TW I440961 B TWI440961 B TW I440961B
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
TW201113630A (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)

Description

手機攝像頭拍照效果測試系統及方法Mobile phone camera taking effect test system and method

本發明涉及圖像處理技術領域,尤其涉及一種手機攝像頭拍照效果測試系統及方法。The present invention relates to the field of image processing technologies, and in particular, to a mobile phone camera photographing effect testing system and method.

目前大多數手機都具有拍照功能,每一部手機在出廠時都需要對其攝像頭的拍照效果進行測試。目前的做法是通過電腦向待測試手機發出命令,啟動手機上的攝像頭以某個固定的拍照條件(包括拍照距離、拍照角度及燈光條件)拍下一張預先設計好的標準圖得到一張照片。從手機中將該照片讀取至電腦中,並將其在顯示器中放大顯示,測試人員通過人眼觀察顯示器中顯示的照片並與標準圖對比,進而判斷照片的清晰度、色彩的品質,此種方法簡單易操作,但存在一個最大的缺點,即測試人員是通過眼睛去判斷,當測試人員疲倦時,難免會判斷錯誤;而且人眼判斷的效率低下,判斷結果具有主觀性。At present, most mobile phones have a camera function, and each mobile phone needs to test the camera effect of the camera 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 on the mobile phone to take a pre-designed standard picture to obtain a photo according to a certain fixed photographing condition (including photographing distance, photographing angle and lighting condition). . The photo is read from the mobile phone into the computer and displayed in the display, and the tester observes the photo displayed on the display through the human eye and compares it with the standard image to determine the sharpness and color quality of the photo. The 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 tester is tired, it is inevitable to judge the mistake; and the judgment of the human eye is inefficient, and the judgment result is subjective.

鑒於以上內容有必要提供一種手機攝像頭拍照效果測試系統。該系統運行於電腦中,所述電腦通過匯流排與待測手機連接。所述電腦的記憶體中存儲有符合量產要求的參考照片的三原色係數分佈統計資料和影像邊緣二值化後的值;該系統包括:設定模組,用於設定允許待測照片與參考照片的三原色係數不同的像素點的個數的範圍及允許待測照片與參考照片的影像邊緣二值化後的值不同的像素點的個數的範圍;資料讀取模組,用於從待測手機中讀取待測照片,該待測照片是待測手機按照與參考照片相同的拍照條件對同一預先設計好的標準圖片進行拍照並存儲於待測手機中的照片;三原色係數統計分析模組,用於提取出上述讀取的待測照片包含的每一像素點的三原色係數,並逐個與參考照片的每一個像素點的三原色係數進行比較,統計出該待測照片與參考照片的像素點的三原色係數不同的像素點的個數;影像邊緣提取分析模組,用於提取上述讀取到的待測照片的影像邊緣並將其進行二值化,將二值化後的值與參考照片的影像邊緣二值化後的值進行比較,統計出該待測照片與參考照片的影像邊緣二值化後的值不同的像素點的個數;良品判斷模組,用於判斷上述統計出的待測照片與參考照片的三原色係數不同的像素點的個數及與參考照片的影像邊緣二值化後的值不同的像素點的個數是否都在設定的允許範圍內,若兩者都在設定的允許範圍內,則判定該待測手機為良品;若有任何一個或者兩者都不在允許範圍內,則判定該待測手機為不良品。In view of the above, it is necessary to provide 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. 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. a range of the number of pixels having different three primary color coefficients and a range of the number of pixels that allow the photo to be measured to be different from the value of the image edge of the reference photo; the data reading module is used for testing The photo to be tested is read in the mobile phone, and the photo to be tested is a photo in which the same pre-designed standard picture is photographed and stored in the mobile phone to be tested according to the same photographing condition as the reference photo; the three primary color coefficient statistical analysis module And extracting the three primary color coefficients of each pixel included in the above-mentioned read photo to be tested, and comparing with the three primary color coefficients of each pixel of the reference photo one by one, and counting the pixels of the photo to be tested and the reference photo. The number of pixels with different primary color coefficients; the image edge extraction analysis module is used to extract the image edge of the above-mentioned read photo to be tested Binarize the value, and compare the binarized value with the binarized value of the image edge of the reference photo, and count the pixel whose image to be tested is different from the image edge of the reference photo. The number of points; the good judgment module is used for judging the number of pixels of the above-mentioned statistically determined photo and the reference photo having different three primary color coefficients and pixels different from the binarized value of the image edge of the reference photo Whether the number is within the set allowable range, if both are within the set allowable range, it is determined that the mobile phone to be tested is a good product; if any one or both are not within the allowable range, the determined to be tested The mobile phone is a defective product.

鑒於以上內容還有必要提供一種手機攝像頭拍照效果測試方法。該方法包括:(a)設定允許待測照片與參考照片的三原色係數不同的像素點的個數的範圍及允許待測照片與參考照片的影像邊緣二值化後的值不同的像素點的個數的範圍;(b)從待測手機中讀取待測照片,該待測照片是待測手機按照與參考照片相同的拍照條件對同一預先設計好的標準圖片進行拍照並存儲於待測手機中的照片;(c)提取出上述讀取的待測照片包含的每一像素點的三原色係數,並逐個與參考照片的每一個像素點的三原色係數進行比較,統計出待測照片與參考照片的像素點的三原色係數不同的像素點的個數;(d)提取上述讀取到的待測照片的影像邊緣並將其進行二值化,並將二值化後的值與參考照片的影像邊緣二值化後的值進行比較,統計出待測照片與參考照片的影像邊緣二值化後的值不同的像素點的個數;(e)判斷上述統計出的待測照片與參考照片的三原色係數不同的像素點的個數及與參考照片的影像邊緣二值化後的值不同的像素點的個數是否都在設定的允許範圍內,若兩者都在設定的允許範圍內,則判定該待測手機為良品;若有任何一個或者兩者都不在允許範圍內,則判定該待測手機為不良品。In view of the above, it is also necessary to provide a method for testing the camera 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. (c) extracting the three primary color coefficients of each pixel included in the above-mentioned read photo to be tested, and comparing with the three primary color coefficients of each pixel of the reference photo one by one, and counting the photos to be tested and the reference photo (d) extracting the edge of the image of the above-mentioned read photo to be binarized, and binarizing the binarized value with the image of the reference photo The values after the edge binarization are compared, and the number of pixels different from the binarized value of the image edge of the reference photo is counted; (e) determining the above statistics Whether the number of pixels with different three primary color coefficients of the reference photo and the reference photo and the number of pixels different from the binarized value of the image edge of the reference photo are within the set allowable range, if both are set Within the allowable range, it is determined that the mobile phone to be tested is a 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.

通過本發明提供的手機攝像頭拍照效果測試系統及方法,大大提高了手機攝像頭拍照效果測試的效率,有效避免了人工判定的主觀性。The mobile phone camera photographing effect testing system and method provided by the invention greatly improve the efficiency of the photographing effect test of the mobile phone camera, and effectively avoid the subjectivity of the manual judgment.

如圖1所示,是本發明手機攝像頭拍照效果測試系統的較佳實施例的運行環境示意圖。該系統10運行於電腦1中,所述電腦1通過匯流排3與待測手機2建立連接。所述電腦1包括記憶體20,該記憶體20中存儲有參考照片的三原色係數分佈統計資料和影像邊緣二值化後的值。該參考照片是待測手機按照固定的拍照條件(固定的距離、角度、燈光條件)對預先設計好的標準圖片進行拍照得到的照片,該照片是經人眼多次確認為符合量產要求的照片。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. The system 10 runs in a computer 1, and the computer 1 establishes a connection with the mobile phone 2 to be tested via the busbar 3. The computer 1 includes a memory 20 in which three primary color coefficient distribution statistics of reference photos and binarized values of image edges are stored. The reference photo is a photograph obtained by photographing a pre-designed standard picture according to a fixed photographing condition (fixed distance, angle, lighting condition) of the mobile phone to be tested, and the photograph is confirmed by the human eye to meet the mass production requirement. photo.

該系統10包括設定模組100、資料讀取模組101、三原色係數統計分析模組102、影像邊緣提取分析模組103、良品判斷模組104及報告生成模組105。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, a good judgment module 104, and a report generation module 105.

所述設定模組100用於設定允許待測照片與參考照片的三原色係數不同的像素點的個數的範圍及允許待測照片與參考照片的影像邊緣二值化後的值不同的像素點的個數的範圍。例如,可設定允許待測照片與參考照片的三原色係數不同的像素點個數的範圍為0~500個;設定允許待測照片與參考照片的影像邊緣二值化後的值不同的像素點個數的範圍為0~300個。在實際測試中可根據需要進行調整。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 a pixel that allows the image to be tested to be different from the value of the image edge of the reference photo. The range of numbers. 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. In actual tests, adjustments can be made as needed.

所述資料讀取模組101用於通過匯流排3從待測手機2中讀取待測照片,該待測照片是待測手機2按照與參考照片相同的拍照條件(相同的距離、角度、燈光條件)對同一預先設計好的標準圖片進行拍照並存儲於待測手機3中的照片。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 (the same distance, angle, Lighting conditions) A photograph of the same pre-designed standard picture taken and stored in the mobile phone 3 to be tested.

所述三原色係數統計分析模組102用於統計出上述待測照片包含的每一像素點的三原色係數,並逐個與參考照片的每一個像素點的三原色係數進行比較,統計出上述待測照片與參考照片中三原色係數不同的像素點的個數。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 with the three primary color coefficients of each pixel of the reference photo one by one, and count the photos to be tested and Refer to the number of pixels in the photo with different primary color coefficients.

為了更清楚地說明上述的比較過程,這裏給出一個具體的原理性的示意圖並進行詳細闡述。每張彩色圖片所包含的每個像素點都是三原色(RGB)按照不同的係數合成的。將照片的每個像素點的三原色係數統計出來就構成了一個三維陣列,該三維陣列的每個元素包括三個值,分別代表三原色係數。In order to more clearly illustrate the above comparison process, a specific schematic diagram is given here and elaborated. Each pixel contained in each color picture is composed of three primary colors (RGB) according to different coefficients. The three primary color coefficients of each pixel of the photo are counted to form a three-dimensional array, and each element of the three-dimensional array includes three values representing the three primary color coefficients.

如圖3所示,是參考照片的所有像素點的三原色係數與待測照片的像素點的三原色係數的對比示意圖。As shown in FIG. 3, it is a schematic diagram comparing the three primary color coefficients of all the pixels of the reference photo with the three primary color coefficients of the pixels of the photo to be tested.

圖3的上半部分示意了參考照片的所有像素點的三原色系數值組成的三維陣列(為了簡單說明問題,假設該照片只有16個像素點)。圖3的下半部分示意了待測照片的所有像素點的三原色系數值組成的三維陣列。經過比較統計出有四個像素點的三原色係數不同。該四個像素點的位置如圖中加粗部分所示。The upper half of Fig. 3 illustrates a three-dimensional array of three primary color coefficient values for all pixels of the reference photograph (for simplicity of explanation, the photo is assumed to have only 16 pixels). The lower half of Figure 3 illustrates a three-dimensional array of three primary color coefficient values for all pixels of the photo to be measured. After comparison, the three primary color coefficients of four pixels are different. The positions of the four pixels are shown in bold in the figure.

所述影像邊緣提取分析模組103用於提取上述待測照片的影像邊緣並將其進行二值化,將二值化後的值與參考照片的影像邊緣二值化後的值進行比較,統計出待測照片與參考照片的影像邊緣二值化後的值不同的像素點的個數。以影像處理觀點而言,邊緣是影像的高頻部分,如果拍出的照片異常(即模糊、水波紋、異色等),通常邊緣的表現也不一樣。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, different color, etc.), the edge usually performs differently.

同樣為了說明上述的比較過程,在提取出影像邊緣後,將影像邊緣二值化,這樣照片中物體的輪廓清晰部分對應的像素點二值化後其值為1,照片中物體的輪廓模糊部分或者背景對應的像素點二值化後其值為0。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 0.

如圖4所示,是待測照片的影像邊緣二值化後的值與參考照片的影像邊緣二值化後的值的對比示意圖。圖4中上半部分示意的是一個矩形物體的清晰照片(假定該照片為參考照片)進行二值化後像素點的值分佈圖,圖中下半部分示意的是一個矩形物體的模糊照片(假定該照片為待測照片)進行二值化後像素點的值分佈圖。從圖4中可以看出該矩形物體清晰照片進行二值化後其輪廓部分對應的像素點的值大多為1。而該矩形物體的模糊照片進行二值化後其輪廓部分對應的像素點的值大多為0。從上述統計出的兩張照片進行二值化後其輪廓部分的像素點的值不同的個數即可衡量待測照片的畫面的清晰程度。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 part of Fig. 4 is a diagram showing the value distribution of the pixel points after binarization of a clear picture of a rectangular object (assuming the picture is a reference picture), and the lower part of the figure shows a blurred picture of a rectangular object ( Assume that the photo is a value distribution map of the pixel points after binarization of the 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 after the binarization of the rectangular object is mostly 1. 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 contour portion is different from the two photos counted above, and the degree of clarity of the picture of the photo to be measured can be measured.

所述良品判斷模組104用於判斷上述統計出的待測照片與參考照片的三原色係數不同的像素點的個數及待測照片與參考照片的影像邊緣二值化後的值不同的像素點的個數是否都在設定的範圍內。若兩者都在設定的允許範圍內,則判定該待測手機2為良品;若兩者中有一個不在設定的允許範圍內或者兩者都不在設定的允許的範圍內,則判定該待測手機2為不良品。The good quality determining module 104 is configured to determine the number of pixels of the statistically determined photo and the reference photo that are different from the three primary color coefficients of the reference photo and the pixel value of the image to be tested and the image edge binarized value of the reference photo. Whether the number 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.

所述報告生成模組105用於根據上述三原色係數統計分析模組102及影像邊緣提取分析模組103的統計結果和良品判斷模組104的判斷結果生成待測手機攝像頭拍照效果的測試報告。The report generation module 105 is configured to generate a test report of the camera effect of the mobile phone camera to be tested according to the statistical result 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.

如圖2所示,是本發明手機攝像頭拍照效果測試方法的較佳實施例的流程圖。As shown in FIG. 2, it is a flowchart of a preferred embodiment of the method for testing the photographing effect of the mobile phone camera of the present invention.

步驟S202,通過設定模組100設定允許待測照片與參考照片的三原色係數不同的像素點的個數的範圍及允許待測照片與參考照片的影像邊緣二值化後的值不同的像素點的個數的範圍。例如,可設定允許待測照片與參考照片的三原色係數不同的像素點的個數的範圍為0~500個;設定允許與參考照片的影像邊緣二值化後的值不同的像素點的個數的範圍0~300個。在實際測試中可根據需要進行調整。Step S202, the setting module 100 sets 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 a pixel that allows the image to be tested to be different from the value of the image edge of the reference photo. The range of numbers. For example, the number of pixels that can be different from the three primary color coefficients of the reference photo and the reference photo can be set to be 0 to 500; and the number of pixels that are allowed to be different from the value of the image edge binarization of the reference photo can be set. The range is 0~300. In actual tests, adjustments can be made as needed.

步驟S204,資料讀取模組101通過匯流排3從待測手機2中讀取待測照片,該待測照片是待測手機2按照與參考照片相同的拍照條件(相同的距離、角度、燈光條件)對同一預先設計好的標準圖片進行拍照並存儲於待測手機3中的照片。Step S204, the data reading module 101 reads the 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 (the same distance, angle, and light) as the reference mobile phone 2 Condition) A photograph of the same pre-designed standard picture taken and stored in the mobile phone 3 to be tested.

步驟S206,三原色係數統計分析模組102提取出上述待測照片包含的每一像素點的三原色係數,並逐個與參考照片的每一個像素點的三原色係數進行比較,統計出該待測照片與參考照片的像素點的三原色係數不同的像素點的個數。比較的具體過程請參考本說明中對圖3的具體描述。Step S206, the three primary color coefficient statistical analysis module 102 extracts the three primary color coefficients of each pixel included in the photo to be tested, and compares with the three primary color coefficients of each pixel of the reference photo one by one, and counts the photo to be tested and the reference. The number of pixels with different three primary color coefficients of the pixel of the photo. For a detailed process of comparison, please refer to the detailed description of FIG. 3 in this description.

步驟S208,影像邊緣提取分析模組103提取上述待測照片的影像邊緣並將其進行二值化,並將二值化後的值與參考照片的影像邊緣二值化後的值進行比較,統計出該待測照片與參考照片的影像邊緣二值化後的值不同的像素點的個數。比較的具體過程請參考本說明書中對圖4的具體描述。Step S208, the image edge extraction analysis module 103 extracts the image edge of the photo to be measured and binarizes it, and compares 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. For a detailed process of comparison, please refer to the detailed description of FIG. 4 in this specification.

步驟S210,良品判斷模組104判斷上述統計出的待測照片與參考照片的三原色係數不同的像素點的個數及與參考照片的影像邊緣二值化後的值不同的像素點的個數是否都在設定的範圍內。若兩者都在設定的允許的範圍內,則判定該待測手機2為良品;若有任何一個或者兩者都不在允許的範圍內,則判定該待測手機2為不良品。In step S210, the good quality determining module 104 determines whether the number of pixels of the statistically determined photo and the reference photo are different from the three primary color coefficients of the reference photo and the number of pixels different from the binarized value of the image edge of the reference photo. All are within the set range. If both of them are within the allowable range of the setting, it is determined that the mobile phone 2 to be tested is a good product; if any one or both are not within the allowable range, it is determined that the mobile phone 2 to be tested is a defective product.

步驟S212,報告生成模組105根據上述三原色係數統計分析模組102及影像邊緣提取分析模組103的統計結果和良品判斷模組104的判斷結果生成待測手機2的攝像頭的拍照效果的測試報告。In step S212, the report generation module 105 generates a test report of the camera effect of the camera of the mobile phone 2 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 determination module 104. .

如圖5所示,是待測手機2的攝像頭拍照效果測試報告的示意圖。在該測試報告中,可清楚地瞭解該待測手機2拍照標準圖片得到的待測照片與參考照片的三原色係數不同的像素點的個數。還可瞭解待測手機2拍照標準圖片得到的待測照片與參考照片的影像邊緣二值化後的值不同的像素點的個數及該待測手機2是否為良品的測試結果。As shown in FIG. 5, it 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 of the to-be-measured photo obtained by taking the standard picture of the mobile phone to be tested and the three primary color coefficients of the reference photo can be clearly understood. It is also possible to know the number of pixels of the picture to be tested obtained by the standard picture of the mobile phone to be tested and the value of the image edge of the reference picture, and whether the phone 2 to be tested is a good test result.

應當說明的是,以上實施例僅用以說明本發明的技術方案而非限制,儘管參照較佳實施例對本發明進行了詳細說明,本領域的普通技術人員應當理解,可以對本發明的技術方案進行修改或等同替換,而不脫離本發明技術方案的精神和範圍。It should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting, although the present invention will be described in detail with reference to the preferred embodiments. Modifications or equivalents are made without departing from the spirit and scope of the invention.

10‧‧‧手機攝像頭拍照效果測試系統10‧‧‧Mobile camera camera effect test system

1‧‧‧電腦1‧‧‧ computer

3‧‧‧匯流排3‧‧‧ Busbar

2‧‧‧待測手機2‧‧‧Mobile phone under test

20‧‧‧記憶體20‧‧‧ memory

100‧‧‧設定模組100‧‧‧Setting module

101‧‧‧資料讀取模組101‧‧‧ data reading module

102‧‧‧三原色係數統計分析模組102‧‧‧Three primary color coefficient statistical analysis module

103‧‧‧影像邊緣提取分析模組103‧‧‧Image Edge Extraction Analysis Module

104‧‧‧良品判斷模組104‧‧‧Good judgment module

105‧‧‧報告生成模組105‧‧‧Report generation module

圖1係為本發明手機攝像頭拍照效果測試系統的較佳實施例的運行環境示意圖。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係為本發明手機攝像頭拍照效果測試方法的較佳實施例的流程圖。2 is a flow chart of a preferred embodiment of a method for testing a photographing effect of a mobile phone camera of the present invention.

圖3係為參考照片的所有像素點的三原色係數與待測照片的像素點的對比示意圖。FIG. 3 is a schematic diagram of comparison of the three primary color coefficients of all the pixels of the reference photo with the pixels of the photo to be tested.

圖4係為待測照片的影像邊緣二值化後的值與參考照片的影像邊緣二值化後的值的對比示意圖。FIG. 4 is a schematic diagram showing a comparison between 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.

圖5係為本發明手機攝像頭拍照效果測試系統生成的測試報告的示意圖。FIG. 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.

10‧‧‧手機攝像頭拍照效果測試系統 10‧‧‧Mobile camera camera effect test system

1‧‧‧電腦 1‧‧‧ computer

3‧‧‧匯流排 3‧‧‧ Busbar

2‧‧‧待測手機 2‧‧‧Mobile phone under test

20‧‧‧記憶體 20‧‧‧ memory

100‧‧‧設定模組 100‧‧‧Setting module

101‧‧‧資料讀取模組 101‧‧‧ data reading module

102‧‧‧三原色係數統計分析模組 102‧‧‧Three primary color coefficient statistical analysis module

103‧‧‧影像邊緣提取分析模組 103‧‧‧Image Edge Extraction Analysis Module

104‧‧‧良品判斷模組 104‧‧‧Good judgment module

105‧‧‧報告生成模組 105‧‧‧Report generation module

Claims (4)

一種手機攝像頭拍照效果測試系統,該系統運行於電腦中,所述電腦通過匯流排與待測手機連接,所述電腦的記憶體中存儲有符合量產要求的參考照片的三原色係數分佈統計資料和影像邊緣二值化後的值;該系統包括:
設定模組,用於設定允許待測照片與參考照片的三原色係數不同的像素點的個數的範圍及允許待測照片與參考照片的影像邊緣二值化後的值不同的像素點的個數的範圍;
資料讀取模組,用於從待測手機中讀取待測照片,該待測照片是待測手機按照與參考照片相同的拍照條件對同一預先設計好的標準圖片進行拍照並存儲於待測手機中的照片;
三原色係數統計分析模組,用於提取出上述讀取的待測照片包含的每一像素點的三原色係數,並逐個與參考照片的每一個像素點的三原色係數進行比較,統計出該待測照片與參考照片的像素點的三原色係數不同的像素點的個數;
影像邊緣提取分析模組,用於提取上述讀取到的待測照片的影像邊緣並將其進行二值化,將二值化後的值與參考照片的影像邊緣二值化後的值進行比較,統計出該待測照片與參考照片的影像邊緣二值化後的值不同的像素點的個數;
良品判斷模組,用於判斷上述統計出的待測照片與參考照片的三原色係數不同的像素點的個數及與參考照片的影像邊緣二值化後的值不同的像素點的個數是否都在設定的允許範圍內,若兩者都在設定的允許範圍內,則判定該待測手機為良品;若有任何一個或者兩者都不在允許範圍內,則判定該待測手機為不良品。
A mobile phone camera photographing effect testing system, the system running in a computer, wherein the computer is connected to the mobile phone to be tested through a bus bar, and the memory of the computer stores the three primary color coefficient distribution statistics of the reference photo that meets the mass production requirements and The value after binarization of the image edge; the system includes:
a setting module, 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 a number of pixels that allow the image to be tested to be different from the value of the image edge of the reference photo. Scope
The data reading module is configured to read a photo to be tested from the mobile phone to be tested, wherein the photo to be tested is photographed and stored in the same pre-designed standard picture according to the same photographing condition as the reference photo. Photos in the phone;
The three primary color coefficient statistical analysis module is configured to extract the three primary color coefficients of each pixel included in the above-mentioned read 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 photo to be tested. The number of pixels different from the three primary color coefficients of the pixel of the reference photo;
The image edge extraction analysis module is configured to extract the image edge of the read 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. , counting the number of pixels that are different from the value of the image edge of the reference photo after binarization;
The good quality 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 If the two are within the set allowable range, it is determined that the mobile phone to be tested is a 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.
如申請專利範圍第1項所述之手機攝像頭拍照效果測試系統,該系統還包括:
報告生成模組,用於根據上述三原色係數統計分析模組、影像邊緣提取分析模組的統計結果及良品判斷模組的判斷結果生成手機攝像頭拍照效果的測試報告。
The mobile phone camera photographing effect testing system according to claim 1, wherein the system further comprises:
The report generation module is configured to generate a test report of the camera effect of the mobile phone camera according to the statistical results of the three primary color coefficient statistical analysis module, the image edge extraction analysis module, and the judgment result of the good judgment module.
一種手機攝像頭拍照效果測試方法,該方法包括:
(a)設定允許待測照片與參考照片的三原色係數不同的像素點的個數的範圍及允許待測照片與參考照片的影像邊緣二值化後的值不同的像素點的個數的範圍;
(b)從待測手機中讀取待測照片,該待測照片是待測手機按照與參考照片相同的拍照條件對同一預先設計好的標準圖片進行拍照並存儲於待測手機中的照片;
(c)提取出上述讀取的待測照片包含的每一像素點的三原色係數,並逐個與參考照片的每一個像素點的三原色係數進行比較,統計出待測照片與參考照片的像素點的三原色係數不同的像素點的個數;
(d)提取上述讀取到的待測照片的影像邊緣並將其進行二值化,並將二值化後的值與參考照片的影像邊緣二值化後的值進行比較,統計出待測照片與參考照片的影像邊緣二值化後的值不同的像素點的個數;
(e)判斷上述統計出的待測照片與參考照片的三原色係數不同的像素點的個數及與參考照片的影像邊緣二值化後的值不同的像素點的個數是否都在設定的允許範圍內,若兩者都在設定的允許範圍內,則判定該待測手機為良品;若有任何一個或者兩者都不在允許範圍內,則判定該待測手機為不良品。
A method for testing a camera effect of a mobile phone camera, the method comprising:
(a) setting a 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, and a range of the number of pixels that allow the photo to be measured to be different from the value of the image edge of the reference photo;
(b) reading a 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 taken by the mobile phone to be tested according to the same photographing condition as the reference photo and stored in the mobile phone to be tested;
(c) extracting the three primary color coefficients of each pixel included in the above-mentioned read photo to be tested, and comparing with the three primary color coefficients of each pixel of the reference photo one by one, and counting the pixels of the photo to be tested and the reference photo. The number of pixels with different primary color coefficients;
(d) extracting the edge of the image 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 the test to be tested The number of pixels different from the value of the image edge of the reference photo after binarization;
(e) determining 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 all allowed in the setting If the two are within the set allowable range, it is determined that the mobile phone to be tested is a 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.
如申請專利範圍第3項所述之手機攝像頭拍照效果測試方法,在步驟(e)之後還包括:
根據上述統計出的待測照片與參考照片的像素點的三原色係數不同的像素點的個數、待測照片與參考照片的影像邊緣二值化後的值不同的像素點的個數及良品判斷結果生成手機攝像頭的拍照效果的測試報告。
For example, the method for testing the camera effect of the mobile phone camera described in claim 3, after step (e), further includes:
According to the above statistics, the number of pixels of the photo to be measured and the three primary color coefficients of the reference photo are different, the number of pixels of the photo to be measured and the value of the image edge of the reference photo are different, and the quality is judged. The result is a test report of the camera effect of the mobile phone camera.
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 TW201113630A (en) 2011-04-16
TWI440961B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8605949B2 (en) 2011-11-30 2013-12-10 GM Global Technology Operations LLC Vehicle-based imaging system function diagnosis and validation

Also Published As

Publication number Publication date
TW201113630A (en) 2011-04-16

Similar Documents

Publication Publication Date Title
CN108470334B (en) Method and device for collecting screen brightness and chromaticity
US11797886B2 (en) Image processing device, image processing method, and image processing program
CN106851264B (en) Camera module lens surface detection method and device
TWI351654B (en) Defect detecting device, image sensor device, imag
RU2601185C2 (en) Method, system and computer data medium for face detection
CN102035988A (en) System and method for testing photographic effect of mobile phone camera
CN111539311B (en) Living body judging method, device and system based on IR and RGB double shooting
CN106067177A (en) HDR scene method for detecting and device
CN103366176B (en) Optical element defect batch automatic identification equipment and method
CN108827597B (en) Light spot uniformity detection method and detection system of structured light projector
CN110363087B (en) Long-baseline binocular face in-vivo detection method and system
TWI512284B (en) Bubble inspection system for glass
CN104749801B (en) High Precision Automatic optical detecting method and system
CN109378279A (en) Wafer detection method and wafer detection system
CN105451015B (en) Detection method and device for image dead pixels
CN105509657B (en) A kind of high-precision measuring method of IC card chip scratch area and gray scale parameter
TWI440961B (en) System and method of cell phone camera photo effects testing
CN116067671B (en) Method, system and medium for testing vehicle paint quality
CN115690077A (en) Bubble plate back defect detection method and system
CN110087063A (en) A kind of image processing method, device and electronic equipment
CN102706882A (en) Visual inspection method for SIM (Subscriber Identity Module)
CN116993654A (en) Camera module defect detection method, device, equipment, storage medium and product
CN111935480B (en) Detection method for image acquisition device and related device
CN106846419B (en) Method and device for determining portrait outline in image
CN111832481B (en) Edible vegetable oil processing quality detection method, equipment, storage medium and device

Legal Events

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