TWI464392B - Detecting system for image capture device on electronic device and method thereof - Google Patents
Detecting system for image capture device on electronic device and method thereof Download PDFInfo
- Publication number
- TWI464392B TWI464392B TW102145832A TW102145832A TWI464392B TW I464392 B TWI464392 B TW I464392B TW 102145832 A TW102145832 A TW 102145832A TW 102145832 A TW102145832 A TW 102145832A TW I464392 B TWI464392 B TW I464392B
- Authority
- TW
- Taiwan
- Prior art keywords
- image
- image capturing
- capturing device
- decoding
- color
- Prior art date
Links
Landscapes
- Image Analysis (AREA)
Description
一種檢測系統及其方法,尤其是指一種設置電子裝置上的影像擷取裝置檢測系統及其方法。A detection system and method thereof, in particular, an image capture device detection system and method thereof for setting an electronic device.
對於現有設置於電子裝置上影像擷取裝置的檢測,是直接透過影像擷取裝置進行圖像的擷取,再對由影像擷取裝置所擷取的圖像進行辨識,藉以檢測設置於電子裝置上影像擷取裝置。For the detection of the image capturing device currently installed on the electronic device, the image capturing device directly captures the image, and then the image captured by the image capturing device is recognized, thereby detecting the setting on the electronic device. The upper image capture device.
但上述對於設置於電子裝置上影像擷取裝置的檢測方式仍有檢測上的問題,即是透過影像擷取裝置進行圖像的擷取會受到外在環境的影響,而造成影像擷取裝置所擷取圖像會產生失真的情況,而造成辨識影像擷取裝置所擷取圖像的不易,會產生出誤判的情況。However, the above detection method for the image capturing device disposed on the electronic device still has a problem in that the image capturing by the image capturing device is affected by the external environment, and the image capturing device is caused by the image capturing device. The image capture will cause distortion, which makes it difficult to identify the image captured by the image capture device, which may result in a false positive.
綜上所述,可知先前技術中長期以來一直存在對於設置於電子裝置上影像擷取裝置檢測會受到外在環境影響,進而導致圖像失真所造成辨識圖像不易的問題,因此有必要提出改進的技術手段,來解決此一問題。In summary, it has been known in the prior art that for a long time, the image capturing device disposed on the electronic device is affected by the external environment, and thus the image distortion caused by the image distortion is difficult. Therefore, it is necessary to propose improvement. The technical means to solve this problem.
有鑒於先前技術存在對於設置於電子裝置上影像擷取裝置檢測會受到外在環境影響,進而導致圖像失真所造成辨識圖像不易的問題,本發明遂揭露一種設置電子裝置上的影像擷取裝置檢測系統及其方法,其中:In view of the prior art, there is a problem that the image capturing device disposed on the electronic device is affected by the external environment, thereby causing the image distortion to be caused by the image distortion, and the present invention discloses an image capturing device on the electronic device. Device detection system and method thereof, wherein:
本發明所揭露的設置電子裝置上的影像擷取裝置檢測系統,其包含:電子裝置、測試治具、影像擷取模組、解碼模組、比對模組以及判斷模組。The image capturing device detecting system for setting an electronic device according to the present invention comprises: an electronic device, a test fixture, an image capturing module, a decoding module, a comparison module, and a determining module.
電子裝置內嵌有影像擷取裝置;測試治具設置且覆蓋於影像擷取裝置上以提供影像擷取裝置標準的測試環境,且測試治具內設有均勻的光源以及標準圖像,標準圖像包含至少一色彩區域以及至少一條碼區域;影像擷取模組是用以自影像擷取裝置擷取包含標準圖像的檢測圖像;解碼模組是用以對檢測圖 像進行條碼的解碼以生成解碼結果;比對模組是用以進行檢測圖像中每一個像素點與至少一RGB值範圍進行比對,以比對出至少一色彩像素範圍;及判斷模組是用以當解碼結果與預設解碼結果不一致時,則判斷影像擷取裝置未能通過檢測;當色彩像素範圍的長度與預設長度不一致時,則判斷影像擷取裝置未能通過檢測;或當色彩像素範圍的寬度與預設寬度不一致時,則判斷影像擷取裝置未能通過檢測。The electronic device is embedded with an image capturing device; the test fixture is disposed on the image capturing device to provide a standard test environment for the image capturing device, and the test fixture has a uniform light source and a standard image, and a standard image. The image capturing module is configured to capture a detection image including a standard image from the image capturing device; the decoding module is configured to detect the image Performing decoding of the barcode to generate a decoding result; the comparison module is configured to compare each pixel in the detected image with at least one RGB value range to compare at least one color pixel range; and the determining module When the decoding result is inconsistent with the preset decoding result, it is determined that the image capturing device fails to pass the detection; when the length of the color pixel range is inconsistent with the preset length, it is determined that the image capturing device fails to pass the detection; or When the width of the color pixel range does not coincide with the preset width, it is judged that the image capturing device fails to pass the detection.
本發明所揭露的設置電子裝置上的影像擷取裝置檢測方法,其包含下列步驟:The image capturing device detecting method on the setting electronic device disclosed in the present invention comprises the following steps:
首先,提供內嵌有影像擷取裝置的電子裝置;接著,提供測試治具,測試治具設置且覆蓋於影像擷取裝置上以提供影像擷取裝置標準的測試環境,且測試治具內設有均勻的光源以及標準圖像,標準圖像包含至少一色彩區域以及至少一條碼區域;接著,自影像擷取裝置擷取包含標準圖像的檢測圖像;接著,對檢測圖像進行條碼的解碼以生成解碼結果;接著,進行檢測圖像中每一個像素點與至少一RGB值範圍進行比對,以比對出至少一色彩像素範圍;接著,當解碼結果與預設解碼結果不一致時,則判斷影像擷取裝置未能通過檢測;接著,當色彩像素範圍的長度與預設長度不一致時,則判斷影像擷取裝置未能通過檢測;最後,當色彩像素範圍的寬度與預設寬度不一致時,則判斷影像擷取裝置未能通過檢測。Firstly, an electronic device with an image capturing device is provided; then, a test fixture is provided, and the test fixture is disposed on the image capturing device to provide a standard test environment for the image capturing device, and the test fixture is provided a uniform light source and a standard image, the standard image including at least one color region and at least one code region; then, the image capturing device captures the detected image including the standard image; and then, the detected image is barcoded Decoding to generate a decoding result; then, each pixel in the detected image is compared with at least one RGB value range to compare at least one color pixel range; and then, when the decoding result is inconsistent with the preset decoding result, Then, it is judged that the image capturing device fails to pass the detection; then, when the length of the color pixel range does not coincide with the preset length, it is determined that the image capturing device fails to pass the detection; finally, when the width of the color pixel range does not coincide with the preset width When it is determined, the image capturing device fails to pass the detection.
本發明所揭露的系統以及方法如上,與先前技術之間的差異在於本發明透過設置且覆蓋於影像擷取裝置上的測試治具提供影像擷取裝置標準的測試環境,以避免外在環境影響影像擷取裝置的測試,並提供解析度與色彩識別的雙重檢測,可提高設置電子裝置上的影像擷取裝置檢測的可靠性。The system and method disclosed by the present invention are different from the prior art in that the present invention provides a standard test environment for image capture devices through test fixtures disposed and overlaid on the image capture device to avoid external environmental influences. The image capture device is tested and provides dual detection of resolution and color recognition to improve the reliability of the image capture device on the set electronic device.
透過上述的技術手段,本發明可以達成影像擷取裝置檢測排除外在環境影像且提高檢測的可靠性的技術功效。Through the above technical means, the present invention can achieve the technical effect of the image capturing device detecting the external environment image and improving the reliability of the detection.
10‧‧‧電子裝置10‧‧‧Electronic devices
20‧‧‧測試治具20‧‧‧Test fixture
21‧‧‧標準圖像21‧‧‧Standard image
211‧‧‧色彩區域211‧‧‧Color area
212‧‧‧條碼區域212‧‧‧ barcode area
31‧‧‧影像擷取模組31‧‧‧Image capture module
32‧‧‧解碼模組32‧‧‧Decoding module
33‧‧‧比對模組33‧‧‧ Alignment module
34‧‧‧判斷模組34‧‧‧Judgement module
41‧‧‧檢測圖像41‧‧‧Detection image
411‧‧‧第一像素點411‧‧‧ first pixel
412‧‧‧第二像素點412‧‧‧second pixel
413‧‧‧第三像素點413‧‧‧ third pixel
414‧‧‧第四像素點414‧‧‧ fourth pixel
415‧‧‧第五像素點415‧‧‧ fifth pixel
416‧‧‧第六像素點416‧‧‧ sixth pixel
417‧‧‧第七像素點417‧‧‧ seventh pixel
418‧‧‧第八像素點418‧‧‧ eighth pixel
步驟101‧‧‧提供內嵌有影像擷取裝置的電子裝置Step 101‧‧‧ Providing an electronic device with an image capture device embedded therein
步驟102‧‧‧提供測試治具,測試治具設置且覆蓋於影像擷取裝置上以提供影像擷取裝置標準的測試環境,且測試治具內設有均勻的光源以及標準圖像,標準圖像包含至少一色彩區域以及至少一條碼區域Step 102‧‧‧ Providing a test fixture, the test fixture is set and covered on the image capture device to provide a standard test environment for the image capture device, and the test fixture has a uniform light source and a standard image, a standard image The image includes at least one color region and at least one code region
步驟103‧‧‧自影像擷取裝置擷取包含標準圖像的檢測圖像Step 103‧‧‧ Capture image from the image capture device containing the standard image
步驟104‧‧‧對檢測圖像進行條碼的解碼以生成解碼結果Step 104‧‧‧ Decoding the detected image to generate a decoding result
步驟105‧‧‧進行檢測圖像中每一個像素點與至少一RGB值範圍進行比對,以比對出至少一色彩像素範圍Step 105‧‧‧ Aligning each pixel in the detected image with at least one RGB value range to compare at least one color pixel range
步驟106‧‧‧當解碼結果與預設解碼結果不一致時,則判斷影像擷取裝置未能通過檢測Step 106‧‧‧ When the decoding result is inconsistent with the preset decoding result, it is judged that the image capturing device fails to pass the detection
步驟107‧‧‧當色彩像素範圍的長度與預設長度不一致時,則判斷影像擷取裝置未能通過檢測Step 107‧‧‧ When the length of the color pixel range does not match the preset length, it is judged that the image capturing device fails to pass the detection
步驟108‧‧‧當色彩像素範圍的寬度與預設寬度不一致時,則判斷影像擷取裝置未能通過檢測Step 108‧‧‧ When the width of the color pixel range does not match the preset width, it is judged that the image capturing device fails to pass the detection
第1圖繪示為本發明設置電子裝置上的影像擷取裝置檢測系統的系統方塊圖。1 is a block diagram of a system for detecting an image capturing device on an electronic device according to the present invention.
第2圖繪示為本發明設置電子裝置上的影像擷取裝置檢測系統的架構示意 圖。2 is a schematic diagram showing the architecture of an image capturing device detecting system on an electronic device according to the present invention. Figure.
第3圖繪示為本發明設置電子裝置上的影像擷取裝置檢測系統的標準圖像示意圖。FIG. 3 is a schematic diagram showing a standard image of an image capturing device detecting system on an electronic device according to the present invention.
第4圖繪示為本發明設置電子裝置上的影像擷取裝置檢測方法的方法流程圖。FIG. 4 is a flow chart showing a method for detecting an image capturing device on an electronic device according to the present invention.
第5A圖繪示為本發明設置電子裝置上的影像擷取裝置檢測的第一實施態樣檢測圖像示意圖。FIG. 5A is a schematic diagram showing a first embodiment detection image detected by the image capturing device on the electronic device according to the present invention.
第5B圖繪示為本發明設置電子裝置上的影像擷取裝置檢測的第二實施態樣檢測圖像示意圖。FIG. 5B is a schematic diagram showing a second embodiment of the detection image detected by the image capturing device on the electronic device of the present invention.
第5C圖繪示為本發明設置電子裝置上的影像擷取裝置檢測的第三實施態樣檢測圖像示意圖。FIG. 5C is a schematic diagram showing a third embodiment of the detection image detected by the image capturing device on the electronic device of the present invention.
以下將配合圖式及實施例來詳細說明本發明的實施方式,藉此對本發明如可應用技術手段來解決技術問題並達成技術功效的實現過程能充分理解並據以實施。The embodiments of the present invention will be described in detail below with reference to the drawings and embodiments, and the present invention can be fully understood and implemented according to the application of the technical means to solve the technical problems and achieve the technical effects.
以下首先要說明本發明所揭露的設置電子裝置上的影像擷取裝置檢測系統,並請參考「第1圖」以及「第2圖」所示,「第1圖」繪示為本發明設置電子裝置上的影像擷取裝置檢測系統的系統方塊圖;「第2圖」繪示為本發明設置電子裝置上的影像擷取裝置檢測系統的架構示意圖。In the following, the image capturing device detecting system on the electronic device according to the present invention is first described. Please refer to FIG. 1 and FIG. 2, and FIG. 1 shows the electronic device according to the present invention. A system block diagram of an image capture device detection system on the device; "FIG. 2" is a block diagram showing the architecture of the image capture device detection system on the electronic device of the present invention.
本發明所揭露的設置電子裝置上的影像擷取裝置檢測系統,其包含:電子裝置10、測試治具20、影像擷取模組31、解碼模組32、比對模組33以及判斷模組34。An image capturing device detecting system for setting an electronic device according to the present invention includes: an electronic device 10, a test fixture 20, an image capturing module 31, a decoding module 32, a comparison module 33, and a determining module 34.
電子裝置10內嵌有影像擷取裝置11,測試治具20設置且覆蓋於所像擷取裝置11上以提供影像擷取裝置11標準的測試環境,測試治具20提供影像擷取裝置11標準的測試環境即是提供暗箱的效果且於測試治具20內設有均勻的光源以及標準圖像21,測試治具20內設有均勻的光源即為將光源平均且環繞配置於測試治具20內部藉以提供均勻的光源,而標準圖像21的示意請參考 「第3圖」所示,「第3圖」繪示為本發明設置電子裝置上的影像擷取裝置檢測系統的標準圖像示意圖,標準圖像21包含至少一色彩區域211以及至少一條碼區域212,且值得注意的是色彩區域211中的色彩分別為單一相同或是不同的色彩,在「第3圖」中是以三個色彩區域211以及一個二維條碼區域212作為示意說明,並不以此侷限本發明的應用範疇。The electronic device 10 is embedded with an image capturing device 11 . The test fixture 20 is disposed on the image capturing device 11 to provide a standard test environment for the image capturing device 11 . The test fixture 20 provides the image capturing device 11 standard. The test environment is to provide a black box effect and a uniform light source and a standard image 21 are provided in the test fixture 20. The uniform light source is provided in the test fixture 20, that is, the light source is evenly distributed around the test fixture 20 The internal source provides a uniform light source, and the standard image 21 is indicated by reference. As shown in FIG. 3, FIG. 3 is a schematic diagram showing a standard image of an image capturing device detecting system on an electronic device according to the present invention. The standard image 21 includes at least one color region 211 and at least one code region. 212, and it is worth noting that the colors in the color area 211 are respectively the same or different colors. In the "3rd picture", the three color areas 211 and one two-dimensional barcode area 212 are used as illustrations, and This limits the scope of application of the invention.
在完成上述架構設置後,影像擷取模組31即可自影像擷取裝置11擷取包含標準圖像21的檢測圖像,接著,解碼模組32即可依據一維條碼解碼方法或是二維條碼解碼方法對檢測圖像進行條碼的解碼以生成解碼結果,一維條碼解碼方法是分析一維條碼的寬度與間隔,以依據一維條碼的寬度與間隔進行解碼以生成解碼結果,二維條碼則是依據二維條碼所定義的定位標記、校正標記、版本資訊以及格式資訊進行解碼以生成解碼結果,在此僅為舉例說明之,並不以此侷限本發明的應用範疇,一維條碼解碼方法或是二維條碼解碼方法可以參考現有技術,在此不再進行贅述,在「第3圖」中即會依據二維條碼解碼方法對二維條碼區域212進行解碼以生成解碼結果。After the above-mentioned architecture setting is completed, the image capturing module 31 can capture the detection image including the standard image 21 from the image capturing device 11. Then, the decoding module 32 can be based on the one-dimensional barcode decoding method or two. The trellis barcode decoding method decodes the barcode of the detected image to generate a decoding result. The one-dimensional barcode decoding method analyzes the width and interval of the one-dimensional barcode to decode according to the width and interval of the one-dimensional barcode to generate a decoding result. The bar code is decoded according to the positioning mark, the correction mark, the version information and the format information defined by the two-dimensional bar code to generate a decoding result, which is merely an example, and is not limited to the application scope of the present invention, the one-dimensional bar code. The decoding method or the two-dimensional barcode decoding method can refer to the prior art, and will not be described again herein. In the "3rd picture", the two-dimensional barcode region 212 is decoded according to the two-dimensional barcode decoding method to generate a decoding result.
解碼模組32依據一維條碼解碼方法或是二維條碼解碼方法對檢測圖像進行條碼的解碼以生成解碼結果,解碼果果即可包含文字、圖像、URL、錯誤碼…等內容,在此僅為舉例說明之,並不以此侷限本發明的應用範疇。The decoding module 32 decodes the barcode of the detected image according to the one-dimensional barcode decoding method or the two-dimensional barcode decoding method to generate a decoding result, and the decoding result may include text, an image, a URL, an error code, and the like. This is for illustrative purposes only and is not intended to limit the scope of application of the invention.
接著,比對模組33是用以進行檢測圖像中每一個像素點與至少一RGB值範圍進行比對,以比對出至少一色彩像素範圍,且值得注意的是每一個色彩像素範圍為矩形範圍。Then, the comparison module 33 is configured to compare each pixel point in the detected image with at least one RGB value range to compare at least one color pixel range, and it is worth noting that each color pixel range is The range of rectangles.
舉例來說,假設第一RGB值範圍為“R值為255至250”、“G值為20至0”以及“B值為20至0”,而假設在檢測圖像中於第一像素點(50,50)、第二像素點(150,50)、第三像素點(50,100)以及第四像素點(150,100)的範圍內所有的像素點的RGB值都會在第一RGB值範圍內,比對模組33即可比對出第一像素點(50,50)、第二像素點(150,50)、第三像素點(50,100)以及第四像素點(150,100)的範圍為第一色彩像素範圍,在此僅為舉例說明之,並不以此侷限本發明的應用範疇。For example, assume that the first RGB value range is "R value is 255 to 250", "G value is 20 to 0", and "B value is 20 to 0", and it is assumed that the first pixel is in the detected image. The RGB values of all the pixels in the range of (50, 50), the second pixel (150, 50), the third pixel (50, 100), and the fourth pixel (150, 100) are within the first RGB value range. The comparison module 33 can compare the first pixel (50, 50), the second pixel (150, 50), the third pixel (50, 100), and the fourth pixel (150, 100) to the first color. The pixel range is merely illustrative here and is not intended to limit the scope of application of the present invention.
假設第二RGB值範圍為“R值為20至0”、“G值為255至250”以及“B值為20至0”,而假設在檢測圖像中於第五像素點(50,150)、第六像素點(100,150)、第七像素點(50,180)以及第八像素點(100,180)的範圍 內所有的像素點的RGB值都會在第二RGB值範圍內,比對模組33即可比對出第五像素點(50,150)、第六像素點(100,150)、第七像素點(50,180)以及第八像素點(100,180)的範圍為第二色彩像素範圍,在此僅為舉例說明之,並不以此侷限本發明的應用範疇。It is assumed that the second RGB value range is "R value is 20 to 0", "G value is 255 to 250", and "B value is 20 to 0", and it is assumed that in the detected image at the fifth pixel point (50, 150), Range of sixth pixel point (100, 150), seventh pixel point (50, 180), and eighth pixel point (100, 180) The RGB values of all the pixels in the range are in the second RGB value range, and the comparison module 33 can compare the fifth pixel point (50, 150), the sixth pixel point (100, 150), the seventh pixel point (50, 180), and The range of the eighth pixel (100, 180) is the second color pixel range, which is merely illustrative here, and is not intended to limit the scope of application of the present invention.
在解碼模組32依據一維條碼解碼方法或是二維條碼解碼方法對檢測圖像進行條碼的解碼以生成解碼結果,並且當解碼模組32所解碼出的解碼結果與預設解碼結果不一致時,判斷模組34即可判斷出影像擷取裝置11未能通過檢測。The decoding module 32 performs barcode decoding on the detected image according to the one-dimensional barcode decoding method or the two-dimensional barcode decoding method to generate a decoding result, and when the decoding result decoded by the decoding module 32 is inconsistent with the preset decoding result. The judging module 34 can determine that the image capturing device 11 fails the detection.
舉例來說,假設解碼模組32對檢測圖像進行條碼的解碼以生成解碼結果為“解碼錯誤”,且假設預設解碼結果為“1234”,此時由於解碼結果為“解碼錯誤”與預設解碼結果為“1234”不一致,判斷模組34即可判斷出影像擷取裝置11未能通過檢測。For example, it is assumed that the decoding module 32 performs barcode decoding on the detected image to generate a decoding result of “decoding error”, and assumes that the preset decoding result is “1234”, at which time the decoding result is “decoding error” and pre- If the decoding result is "1234", the determination module 34 can determine that the image capturing device 11 fails the detection.
在比對模組33進行檢測圖像中每一個像素點與至少一RGB值範圍進行比對,以比對出至少一色彩像素範圍,並且當比對模組33所比對出的色彩像素範圍的長度與預設長度不一致時,判斷模組34即可判斷出影像擷取裝置11未能通過測。Each pixel in the detected image of the comparison module 33 is compared with at least one RGB value range to compare at least one color pixel range, and the color pixel range compared by the comparison module 33 When the length of the length does not match the preset length, the judging module 34 can determine that the image capturing device 11 fails to pass the measurement.
舉例來說,假設比對模組33比對出的第二色彩像素範圍為第五像素點(50,150)、第六像素點(100,150)、第七像素點(50,180)以及第八像素點(100,180),且假設預設長度為“100”,此時由於第二色彩像素範圍的長度為“50”與預設長度為“100”不一致,判斷模組34即可判斷出影像擷取裝置11未能通過檢測。For example, assume that the second color pixel range that is compared by the comparison module 33 is a fifth pixel point (50, 150), a sixth pixel point (100, 150), a seventh pixel point (50, 180), and an eighth pixel point (100, 180). Assume that the preset length is "100". At this time, since the length of the second color pixel range is "50" and the preset length is "100", the determination module 34 can determine that the image capturing device 11 is not Can pass the test.
在比對模組33進行檢測圖像中每一個像素點與至少一RGB值範圍進行比對,以比對出至少一色彩像素範圍,並且當比對模組33所比對出的色彩像素範圍的寬度與預設寬度不一致時,判斷模組34即可判斷出影像擷取裝置11未能通過檢測。Each pixel in the detected image of the comparison module 33 is compared with at least one RGB value range to compare at least one color pixel range, and the color pixel range compared by the comparison module 33 When the width of the difference does not match the preset width, the determining module 34 can determine that the image capturing device 11 fails the detection.
舉例來說,假設比對模組33比對出的第二色彩像素範圍為第五像素點(50,150)、第六像素點(100,150)、第七像素點(50,180)以及第八像素點(100,180),且假設預設寬度為“50”,此時由於第二色彩像素範圍的寬度為“30”與預設寬度為“50”不一致,判斷模組34即可判斷出影像擷取裝置11未能通過檢測。For example, assume that the second color pixel range that is compared by the comparison module 33 is a fifth pixel point (50, 150), a sixth pixel point (100, 150), a seventh pixel point (50, 180), and an eighth pixel point (100, 180). Assume that the preset width is "50". At this time, since the width of the second color pixel range is "30" and the preset width is "50", the determination module 34 can determine that the image capturing device 11 is not Can pass the test.
反之,當解碼模組32所解解出的解碼結果與預設解碼結果一致,比對模組33所比對出的色彩像素範圍的長度與預設長度一致,以及比對模組33所比對出的色彩像素範圍的寬度與預設寬度一致時,判斷模組34即可判斷出影像擷取裝置11通過檢測。On the other hand, when the decoding result decoded by the decoding module 32 is consistent with the preset decoding result, the length of the color pixel range compared by the comparison module 33 is consistent with the preset length, and compared with the comparison module 33. When the width of the selected color pixel range is consistent with the preset width, the determination module 34 can determine that the image capturing device 11 passes the detection.
舉例來說,假設解碼模組32對檢測圖像進行條碼的解碼以生成解碼結果為“1234”,且假設預設解碼結果為“1234”,此時解碼結果為“1234”與預設解碼結果為“1234”一致,而比對模組33比對出的第二色彩像素範圍為第一像素點(50,50)、第二像素點(150,50)、第三像素點(50,100)以及第四像素點(150,100),且假設預設長度為“100”以及預設寬度為“50”,此時第二色彩像素範圍的長度為“100”與預設長度為“100”一致且第二色彩像素範圍的寬度為“50”與預設寬度為“50”一致,判斷模組34即可判斷出影像擷取裝置11通過檢測。For example, it is assumed that the decoding module 32 performs barcode decoding on the detected image to generate a decoding result of “1234”, and assumes that the preset decoding result is “1234”, and the decoding result is “1234” and the preset decoding result. The second color pixel range that is aligned with the comparison module 33 is the first pixel point (50, 50), the second pixel point (150, 50), the third pixel point (50, 100), and The fourth pixel point (150, 100), and assumes that the preset length is "100" and the preset width is "50", and the length of the second color pixel range is "100" and the preset length is "100" and the The width of the two color pixel ranges is “50” and the preset width is “50”, and the determination module 34 can determine that the image capturing device 11 passes the detection.
接著,以下將以一個實施例來解說本發明的運作方式及流程,以下的實施例說明將同步配合「第1圖」、「第2圖」、「第3圖」以及「第4圖」所示進行說明,「第4圖」繪示為本發明設置電子裝置上的影像擷取裝置檢測方法的方法流程圖。Next, the operation mode and flow of the present invention will be explained below by way of an embodiment. The following embodiments show that the first embodiment, the second figure, the third figure, and the fourth figure are synchronized. In the description, FIG. 4 is a flow chart showing a method for detecting an image capturing device on an electronic device according to the present invention.
電子裝置10內嵌有影像擷取裝置11(步驟101),測試治具20設置且覆蓋於所像擷取裝置11上以提供影像擷取裝置11標準的測試環境,測試治具20提供影像擷取裝置11標準的測試環境即是提供暗箱的效果且於測試治具20內設有均勻的光源以及標準圖像21,測試治具20內設有均勻的光源即為將光源平均且環繞配置於測試治具20內部藉以提供均勻的光源(步驟102),而標準圖像21的示意請參考「第3圖」所示,「第3圖」繪示為本發明設置電子裝置上的影像擷取裝置檢測系統的標準圖像示意圖,標準圖像21包含三個色彩區域211以及一二維條碼區域212,且值得注意的是色彩區域211中的色彩分別為單一相同或是不同的色彩(步驟102),在此僅為舉例說明之,並不以此侷限本發明的應用範疇。The electronic device 10 is embedded with an image capturing device 11 (step 101). The test fixture 20 is disposed and covers the image capturing device 11 to provide a standard test environment for the image capturing device 11. The test fixture 20 provides an image. The standard test environment of the device 11 is to provide a black box effect and a uniform light source and a standard image 21 are provided in the test fixture 20. The uniform light source is provided in the test fixture 20, that is, the light source is evenly and circumferentially arranged. The test fixture 20 internally provides a uniform light source (step 102), and the standard image 21 is illustrated with reference to "3", and "3" shows the image capture on the electronic device of the present invention. A standard image diagram of the device detection system, the standard image 21 includes three color regions 211 and a two-dimensional barcode region 212, and it is noted that the colors in the color region 211 are respectively the same or different colors (step 102). It is merely illustrative here, and is not intended to limit the scope of application of the present invention.
接著,請參考「第5A圖」所示進行說明,「第5A圖」繪示為本發明設置電子裝置上的影像擷取裝置檢測的第一實施態樣檢測圖像示意圖。Next, please refer to FIG. 5A for illustration. FIG. 5A is a schematic diagram showing a first embodiment detection image detected by the image capturing device on the electronic device of the present invention.
在完成上述架構設置後,影像擷取模組31即可自影像擷取裝置11擷取包含標準圖像21的檢測圖像(步驟103),接著,解碼模組32即可依據 二維條碼解碼方法對檢測圖像41進行條碼的解碼以生成解碼結果,且在實施例中解碼模組32所生成的解碼結果為“解碼錯誤”(步驟104)。After the above-mentioned architecture setting is completed, the image capturing module 31 can capture the detected image including the standard image 21 from the image capturing device 11 (step 103), and then the decoding module 32 can be The two-dimensional barcode decoding method performs decoding of the barcode on the detected image 41 to generate a decoding result, and in the embodiment, the decoding result generated by the decoding module 32 is "decoding error" (step 104).
且在實施例中的預設解碼結果為“1234”,此時由於解碼結果為“碼碼錯誤”與預設解碼結果為“1234”不一致,判斷模組34即可判斷出影像擷取裝置11未能通過檢測(步驟106)。The default decoding result in the embodiment is “1234”. At this time, because the decoding result is “code code error” and the preset decoding result is “1234”, the determination module 34 can determine the image capturing device 11 Failed to pass the test (step 106).
接著,請參考「第5B圖」所示進行說明,「第5B圖」繪示為本發明設置電子裝置上的影像擷取裝置檢測的第二實施態樣檢測圖像示意圖。Next, please refer to the description of FIG. 5B. FIG. 5B is a schematic diagram showing a second embodiment of the detection image detected by the image capturing device on the electronic device of the present invention.
在完成上述架構設置後,影像擷取模組31即可自影像擷取裝置11擷取包含標準圖像21的檢測圖像(步驟103),接著,解碼模組32即可依據二維條碼碼方法對檢測圖像41進行條碼的解碼以生成解碼結果,且在實施例中解碼模組32所生成的解碼結果為“1234”(步驟104)。After the above-mentioned architecture setting is completed, the image capturing module 31 can capture the detected image including the standard image 21 from the image capturing device 11 (step 103), and then the decoding module 32 can be based on the two-dimensional barcode code. The method performs decoding of the barcode on the detected image 41 to generate a decoding result, and in the embodiment, the decoding result generated by the decoding module 32 is "1234" (step 104).
在實施例中,第一RGB值範圍為“R值為255至250”、“G值為20至0”以及“B值為20至0”,且在檢測圖像41中於第一像素點411(50,50)、第二像素點412(150,50)、第三像素點413(50,100)以及第四像素點414(150,100)的範圍內所有的像素點的RGB值都會在第一RGB值範圍內,比對模組33即可比對出第一像素點411(50,50)、第二像素點412(150,50)、第三像素點413(50,100)以及第四像素點414(150,100)的範圍為第一色彩像素範圍(步驟105)。In an embodiment, the first RGB value range is "R value is 255 to 250", "G value is 20 to 0", and "B value is 20 to 0", and the first pixel is detected in the detected image 41. The RGB values of all the pixels in the range of 411 (50, 50), the second pixel point 412 (150, 50), the third pixel point 413 (50, 100), and the fourth pixel point 414 (150, 100) will be in the first RGB. Within the value range, the comparison module 33 can compare the first pixel point 411 (50, 50), the second pixel point 412 (150, 50), the third pixel point 413 (50, 100), and the fourth pixel point 414 ( The range of 150, 100) is the first color pixel range (step 105).
第二RGB值範圍為“R值為20至0”、“G值為255至250”以及“B值為20至0”,且在檢測圖像41中於第五像素點415(50,150)、第六像素點416(100,150)、第七像素點417(50,180)以及第八像素點417(100,180)的範圍內所有的像素點的RGB值都會在第二RGB值範圍內,比對模組33即可比對出第五像素點415(50,150)、第六像素點416(100,150)、第七像素點417(50,180)以及第八像素點418(100,180)的範圍為第二色彩像素範圍(步驟105)。The second RGB value range is "R value is 20 to 0", "G value is 255 to 250", and "B value is 20 to 0", and in the detection image 41 at the fifth pixel point 415 (50, 150), The RGB values of all the pixels in the range of the sixth pixel point 416 (100, 150), the seventh pixel point 417 (50, 180), and the eighth pixel point 417 (100, 180) are all within the second RGB value range, and the comparison module 33 The range of the fifth pixel point 415 (50, 150), the sixth pixel point 416 (100, 150), the seventh pixel point 417 (50, 180), and the eighth pixel point 418 (100, 180) can be compared to the second color pixel range (step 105). ).
且在實施例中的預設長度為“100”,此時由於第二色彩像素範圍的長度為“50”與預設長度為“100”不一致,判斷模組34即可判斷出影像擷取裝置11未能通過檢測(步驟107)。The preset length in the embodiment is “100”. At this time, since the length of the second color pixel range is “50” and the preset length is “100”, the determination module 34 can determine the image capturing device. 11 failed to pass the test (step 107).
並且在實施例中的預設寬度為“50”,此時由於第二色彩像素範圍的寬度為“30”與預設寬度為“50”不一致,判斷模組34即可判斷出影像 擷取裝置11未能通過檢測(步驟108)。Moreover, the preset width in the embodiment is “50”. At this time, since the width of the second color pixel range is “30” and the preset width is “50”, the determination module 34 can determine the image. The capture device 11 fails the test (step 108).
接著,請參考「第5C圖」所示進行說明,「第5C圖」繪示為本發明設置電子裝置上的影像擷取裝置檢測的第三實施態樣檢測圖像示意圖。Next, please refer to the description of FIG. 5C. FIG. 5C is a schematic diagram showing a third embodiment of the detection image detected by the image capturing device on the electronic device of the present invention.
在完成上述架構設置後,影像擷取模組31即可自影像擷取裝置11擷取包含標準圖像21的檢測圖像(步驟103),接著,解碼模組32即可依據二維條碼解碼方法對檢測圖像41進行條碼的解碼以生成解碼結果,且在實施例中解碼模組32所生成的解碼結果為“1234”(步驟104)。After the above-mentioned architecture setting is completed, the image capturing module 31 can capture the detected image including the standard image 21 from the image capturing device 11 (step 103), and then the decoding module 32 can decode according to the two-dimensional barcode. The method performs decoding of the barcode on the detected image 41 to generate a decoding result, and in the embodiment, the decoding result generated by the decoding module 32 is "1234" (step 104).
在實施例中,第一RGB值範圍為“R值為255至250”、“G值為20至0”以及“B值為20至0”,且在檢測圖像41中於第一像素點411(50,50)、第二像素點412(150,50)、第三像素點413(50,100)以及第四像素點414(150,100)的範圍內所有的像素點的RGB值都會在第一RGB值範圍內,比對模組33即可比對出第一像素點411(50,50)、第二像素點412(150,50)、第三像素點413(50,100)以及第四像素點414(150,100)的範圍為第一色彩像素範圍(步驟105)。In an embodiment, the first RGB value range is "R value is 255 to 250", "G value is 20 to 0", and "B value is 20 to 0", and the first pixel is detected in the detected image 41. The RGB values of all the pixels in the range of 411 (50, 50), the second pixel point 412 (150, 50), the third pixel point 413 (50, 100), and the fourth pixel point 414 (150, 100) will be in the first RGB. Within the value range, the comparison module 33 can compare the first pixel point 411 (50, 50), the second pixel point 412 (150, 50), the third pixel point 413 (50, 100), and the fourth pixel point 414 ( The range of 150, 100) is the first color pixel range (step 105).
第二RGB值範圍為“R值為20至0”、“G值為255至250”以及“B值為20至0”,且在檢測圖像41中於第五像素點415(50,150)、第六像素點416(150,150)、第七像素點417(50,200)以及第八像素點417(150,200)的範圍內所有的像素點的RGB值都會在第二RGB值範圍內,比對模組33即可比對出第五像素點415(50,150)、第六像素點416(100,150)、第七像素點417(50,180)以及第八像素點418(100,180)的範圍為第二色彩像素範圍(步驟105)。The second RGB value range is "R value is 20 to 0", "G value is 255 to 250", and "B value is 20 to 0", and in the detection image 41 at the fifth pixel point 415 (50, 150), The RGB values of all the pixels in the range of the sixth pixel point 416 (150, 150), the seventh pixel point 417 (50, 200), and the eighth pixel point 417 (150, 200) are all within the second RGB value range, and the comparison module 33 The range of the fifth pixel point 415 (50, 150), the sixth pixel point 416 (100, 150), the seventh pixel point 417 (50, 180), and the eighth pixel point 418 (100, 180) can be compared to the second color pixel range (step 105). ).
在實施例中的預設解碼結果為“1234”,此時由於解碼結果為“1234”與預設解碼結果為“1234”一致,在實施例中的預設長度為“100”,此時由於第一色彩像素範圍以及第二色彩像素範圍的長度為“100”與預設長度為“100”一致,在實施例中的預設寬度為“50”,此時由於第一色彩像素範圍以及第二色彩像素範圍的寬度為“50”與預設寬度為“50”一致,判斷模組34即可判斷出影像擷取裝置11通過檢測。The preset decoding result in the embodiment is “1234”. At this time, since the decoding result is “1234” and the preset decoding result is “1234”, the preset length in the embodiment is “100”, The first color pixel range and the second color pixel range have a length of "100" and a preset length of "100", and the preset width in the embodiment is "50", at which time the first color pixel range and the first The width of the two color pixel ranges is “50” and the preset width is “50”, and the determination module 34 can determine that the image capturing device 11 passes the detection.
綜上所述,可知本發明與先前技術之間的差異在於本發明透過設置且覆蓋於影像擷取裝置上的測試冶具提供影像擷取裝置標準的測試環境,以避免外在環境影響影像擷取裝置的測試,並提供解析度與色彩識別的雙重檢測, 可提高設置電子裝置上的影像擷取裝置檢測的可靠性。In summary, it can be seen that the difference between the present invention and the prior art is that the present invention provides a standard test environment for the image capture device through a test tool disposed and covered on the image capture device to prevent the external environment from affecting image capture. Device testing and provides dual detection of resolution and color recognition, The reliability of the image capturing device on the setting electronic device can be improved.
藉由此一技術手段可以來解決先前技術所存在對於設置於電子裝置上影像擷取裝置檢測會受到外在環境影響,進而導致圖像失真所造成辨識圖像不易的問題,進而達成影像擷取裝置檢測排除外在環境影像且提高檢測的可靠性的技術功效。The technical method can solve the problem that the prior art has the effect that the image capturing device disposed on the electronic device is affected by the external environment, thereby causing the image distortion to be difficult to identify the image, thereby achieving image capturing. The device detects technical effects that eliminate external environmental images and improve the reliability of the detection.
雖然本發明所揭露的實施方式如上,惟所述的內容並非用以直接限定本發明的專利保護範圍。任何本發明所屬技術領域中具有通常知識者,在不脫離本發明所揭露的精神和範圍的前提下,可以在實施的形式上及細節上作些許的更動。本發明的專利保護範圍,仍須以所附的申請專利範圍所界定者為準。While the embodiments of the present invention have been described above, the above description is not intended to limit the scope of the invention. Any changes in the form and details of the embodiments may be made without departing from the spirit and scope of the invention. The scope of the invention is to be determined by the scope of the appended claims.
31‧‧‧影像擷取模組31‧‧‧Image capture module
32‧‧‧解碼模組32‧‧‧Decoding module
33‧‧‧比對模組33‧‧‧ Alignment module
34‧‧‧判斷模組34‧‧‧Judgement module
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW102145832A TWI464392B (en) | 2013-12-12 | 2013-12-12 | Detecting system for image capture device on electronic device and method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW102145832A TWI464392B (en) | 2013-12-12 | 2013-12-12 | Detecting system for image capture device on electronic device and method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI464392B true TWI464392B (en) | 2014-12-11 |
TW201522946A TW201522946A (en) | 2015-06-16 |
Family
ID=52575753
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW102145832A TWI464392B (en) | 2013-12-12 | 2013-12-12 | Detecting system for image capture device on electronic device and method thereof |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI464392B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200849975A (en) * | 2007-06-15 | 2008-12-16 | Inventec Corp | Equipment and method for examining image recorded apparatus |
TW201112740A (en) * | 2009-09-30 | 2011-04-01 | Hon Hai Prec Ind Co Ltd | Camera module and testing mothod thereof |
JP2012078330A (en) * | 2010-10-06 | 2012-04-19 | Fujifilm Corp | Method for adjusting movement of camera unit in lens inspection apparatus and focus check tool |
-
2013
- 2013-12-12 TW TW102145832A patent/TWI464392B/en not_active IP Right Cessation
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200849975A (en) * | 2007-06-15 | 2008-12-16 | Inventec Corp | Equipment and method for examining image recorded apparatus |
TW201112740A (en) * | 2009-09-30 | 2011-04-01 | Hon Hai Prec Ind Co Ltd | Camera module and testing mothod thereof |
JP2012078330A (en) * | 2010-10-06 | 2012-04-19 | Fujifilm Corp | Method for adjusting movement of camera unit in lens inspection apparatus and focus check tool |
Also Published As
Publication number | Publication date |
---|---|
TW201522946A (en) | 2015-06-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9726543B2 (en) | Apparatus and method for validating leak survey results | |
US20120189509A1 (en) | Automatic analyzing method and system for test strips | |
WO2018068417A1 (en) | Component defect detection method and system | |
TWI620929B (en) | Inspecting device and method for inspecting inspection target | |
US20120188378A1 (en) | Automatic analyzing method and system for test strips | |
US20140320638A1 (en) | Electronic device and method for detecting surface flaw of sample | |
WO2012067041A1 (en) | Method for inspecting foreign material on substrate and apparatus for inspecting foreign material on substratrate | |
US20160153916A1 (en) | Method for inspecting screen | |
CN104807828B (en) | panel bright spot detection method and system | |
TWI464392B (en) | Detecting system for image capture device on electronic device and method thereof | |
KR102091014B1 (en) | Machine vision inspection device and product inspection method using machine vision | |
KR20060117834A (en) | Device detecting problem and its operating method | |
US8107720B2 (en) | Detection system for detecting appearances of many electronic elements and methods of using the same | |
TWI508528B (en) | Test fixture adjusting system by image analysis and method thereof | |
TW201522949A (en) | Inspection method for image data | |
US20140133735A1 (en) | Method of inspecting a lead of an electric device | |
CN104680117A (en) | System and method for detecting image acquisition device arranged on electronic device | |
JP2017228005A (en) | Position determination device and position determination method | |
KR20150049799A (en) | Method of inspecting a surface of a substrate and apparatus for performing the same | |
JP4967132B2 (en) | Defect inspection method for object surface | |
US20210058586A1 (en) | Information processing system | |
US9172859B2 (en) | Camera module and method for inspecting horizontality of object and the camera module | |
US10614333B2 (en) | Method for reading graphical indicator, indicator structure and electronic apparatus thereof | |
JP2019132862A5 (en) | ||
CN104679632B (en) | System and method thereof for regulating test fixture by image analysis |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |