TW201521426A - Detection method for camera - Google Patents

Detection method for camera Download PDF

Info

Publication number
TW201521426A
TW201521426A TW103130038A TW103130038A TW201521426A TW 201521426 A TW201521426 A TW 201521426A TW 103130038 A TW103130038 A TW 103130038A TW 103130038 A TW103130038 A TW 103130038A TW 201521426 A TW201521426 A TW 201521426A
Authority
TW
Taiwan
Prior art keywords
camera
detecting
pattern
offset
color
Prior art date
Application number
TW103130038A
Other languages
Chinese (zh)
Other versions
TWI549482B (en
Inventor
Chin-Lin Lin
Original Assignee
Tech Front Shanghai Computer Co Ltd
Tech Com Shanghai Comp Co Ltd
Tech Giant Shanghai Comp Co Ltd
Tech Lead Shanghai Comp Co Ltd
Tech Trend Shanghai Computer Co Ltd
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 Tech Front Shanghai Computer Co Ltd, Tech Com Shanghai Comp Co Ltd, Tech Giant Shanghai Comp Co Ltd, Tech Lead Shanghai Comp Co Ltd, Tech Trend Shanghai Computer Co Ltd filed Critical Tech Front Shanghai Computer Co Ltd
Publication of TW201521426A publication Critical patent/TW201521426A/en
Application granted granted Critical
Publication of TWI549482B publication Critical patent/TWI549482B/en

Links

Landscapes

  • Studio Devices (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

A detection method for camera includes predetermining a square standard picture; taking the standard picture by means of the camera, acquiring an electronic picture of the standard picture; detecting various performance indices of the camera, such as offset, deformation, clarity and color sensitivity by analyzing offset detection graph, deformation detection graph, color of deformation detection graph, and color detection graph in the electronic picture.

Description

用於相機之檢測方法Detection method for camera

本發明係有關於設備檢測技術領域,特別是成像裝置檢測技術領域,更詳而言之,係關於一種用於相機之檢測方法。The present invention relates to the field of device detection technology, particularly the field of imaging device detection technology, and more particularly to a method for detecting a camera.

光學系統測量是系統研究的前提,也是系統校正的開端;信息技術的發展使圖像資訊直接與人們的生活息息相關,電子攝像技術走入了千家萬戶;對被測系統的圖像進行校正處理,尤其是一些大視角鏡頭的畸變恢復,對於一些安全監控系統的圖像恢復更具價值。Optical system measurement is the premise of system research and the beginning of system calibration. The development of information technology makes image information directly related to people's life. Electronic camera technology has entered thousands of households; the image of the system under test is corrected. In particular, the distortion recovery of some large viewing angle lenses is more valuable for image recovery of some security surveillance systems.

現在市場上也有國外的儀器可以測得數位相機或手機照相機之鏡頭品質 (只檢測光學系統);通常,消費者是通過眼睛觀察來判斷數位相機之成像品質,缺少科學的檢測概念和方法。There are also foreign instruments on the market that can measure the lens quality of digital cameras or mobile cameras (only optical systems are detected); usually, consumers use eye observation to judge the imaging quality of digital cameras, and lack scientific detection concepts and methods.

數位成像設備的大規模應用使得人們對圖像品質的要求越來越高,要獲得高品質的數位圖像,就必須對數位圖像的採集、傳輸、處理、記錄等過程中數位圖像的品質資訊進行檢測和分析,發現問題並及時加以改進。由此推動和促進數位圖像品質檢測技術的應用和發展。數位圖像品質檢測技術已經引起了業內人士的廣泛關注。The large-scale application of digital imaging equipment makes people's requirements for image quality higher and higher. To obtain high-quality digital images, digital images must be collected, transmitted, processed, recorded, etc. Quality information is tested and analyzed to identify problems and improve them in a timely manner. This promotes and promotes the application and development of digital image quality detection technology. Digital image quality detection technology has attracted widespread attention in the industry.

數位相機之鏡頭的透光性是否良好影響到成像照片的中心亮度與邊緣亮度是否一致。鏡頭中心是否與圖像感測器的幾何中心重合不僅影響照片的均勻度,嚴重的會在照片四周形成暗角。Whether the light transmittance of the lens of the digital camera is good or not affects whether the center brightness and the edge brightness of the imaged photo are consistent. Whether the center of the lens coincides with the geometric center of the image sensor not only affects the uniformity of the photo, but also forms a vignetting around the photo.

但長期以來,鏡頭中心和幾何中心的一致只能從設計上保證。雖然理論計算上是一致的,但在製作過程中常會引入誤差,此誤差如何去量測一直是個沒有解決的問題。But for a long time, the consistency of the lens center and the geometric center can only be guaranteed by design. Although the theoretical calculation is consistent, errors are often introduced in the production process. How to measure this error has always been an unsolved problem.

有鑑於此,本發明之主要目的在於提供一種相機之檢測方法,用於檢測相機之各項品質指標。In view of this, the main object of the present invention is to provide a camera detection method for detecting various quality indicators of a camera.

為達到上述目的及其他目的,本發明提供一種用於相機之檢測方法,係包括以下步驟:預設一個方形之標準圖像,該標準圖像包括:佈設於標準圖像中心位置用於檢測相機偏移量之偏移量檢測圖形;佈設於標準圖像內至少包含一行一列圖形、用於檢測相機變形量之變形量檢測圖形,該變形量檢測圖形具有預設之顏色以檢測相機清晰度;圍設於偏移量檢測圖形周圍用於檢測相機感色性能、具有標準顏色之色彩檢測圖形;通過相機攝取該標準圖像,獲取該標準圖像之電子化圖像;以及通過分析該電子化圖像中偏移量檢測圖形、變形量檢測圖形、變形量檢測圖形之顏色以及色彩檢測圖形對應檢測相機之偏移量、變形量、清晰度以及感色性能。To achieve the above and other objects, the present invention provides a method for detecting a camera, comprising the steps of: presetting a standard image of a square, the standard image comprising: being disposed at a center of a standard image for detecting a camera The offset detection pattern of the offset; the deformation detection pattern disposed in the standard image and including at least one row and one column of graphics for detecting the deformation amount of the camera, the deformation detection pattern having a preset color to detect camera sharpness; a color detection pattern surrounding the offset detection pattern for detecting camera color sensing performance and having a standard color; capturing the standard image by the camera to obtain an electronic image of the standard image; and analyzing the electronic image The offset detection pattern, the deformation amount detection pattern, the color of the deformation amount detection pattern, and the color detection pattern in the image correspond to the offset, deformation amount, sharpness, and color perception performance of the detection camera.

在本發明之一實施例中,上述之檢測相機偏移量之方法係為:獲取相機之成像範圍並獲取該成像範圍之中心點座標;獲取電子化圖像中偏移量檢測圖形之中心點座標;以及計算偏移量檢測圖形之中心點座標與該成像範圍之中心點座標之間的差值,該差值即係為相機之偏移量。In an embodiment of the present invention, the method for detecting a camera offset is: acquiring an imaging range of the camera and acquiring a center point coordinate of the imaging range; and acquiring a center point of the offset detection graphic in the electronic image a coordinate; and calculating a difference between a center point coordinate of the offset detection pattern and a center point coordinate of the imaging range, the difference being the offset of the camera.

在本發明之一實施例中,上述之檢測相機變形量之方法係為:獲取電子化圖像中變形量檢測圖形內位於同一行或同一列的任意兩個圖形之中心點座標,根據獲取的兩個圖形之中心點座標獲取由該兩個圖形之中心點連接成的直線之斜率,該斜率係為相機之變形量。In an embodiment of the present invention, the method for detecting a deformation amount of the camera is: acquiring a center point coordinate of any two figures in the same row or the same column in the deformation amount detection pattern in the electronic image, according to the acquired The center point coordinates of the two figures acquire the slope of the line connected by the center points of the two figures, which is the amount of deformation of the camera.

在本發明之一實施例中,上述之檢測相機清晰度的方法係為:分析電子化圖像中變形量檢測圖形內任意圖形之邊緣確定相機之清晰度。In an embodiment of the invention, the method for detecting camera sharpness is as follows: analyzing an edge of an arbitrary shape in the deformation amount detection pattern in the electronic image to determine the sharpness of the camera.

在本發明之一實施例中,上述之偏移量檢測圖形係為菱形、方形或圓形。In an embodiment of the invention, the offset detection pattern is a diamond, a square or a circle.

在本發明之一實施例中,上述之變形量檢測圖形係為若干菱形或若干方形或若干圓形。In an embodiment of the invention, the deformation amount detecting pattern is a plurality of diamonds or a plurality of squares or a plurality of circles.

在本發明之一實施例中,上述之色彩檢測圖形包括圍設於偏移量檢測圖形周圍具有不同標準顏色之若干菱形或若干方形或若干圓形。In an embodiment of the invention, the color detection pattern includes a plurality of diamonds or squares or circles having different standard colors surrounding the offset detection pattern.

在本發明之一實施例中,上述之變形量檢測圖形至少包括佈設於標準圖像四周邊緣的若干圖形。In an embodiment of the invention, the deformation amount detecting pattern includes at least a plurality of patterns arranged on the periphery of the standard image.

在本發明之一實施例中,上述之標準圖像中包含63個灰色菱形和具有不同標準顏色之24個方形;63個灰色菱形以7行9列均勻分佈,其中:每一個至少由四個菱形所組成之方形區域形成變形量檢測圖形,佈設於標準圖像中心位置的菱形係為偏移量檢測圖形;具有不同標準顏色之24個方形以偏移量檢測圖形係為中心並以4行6列均勻分佈形成色彩檢測圖形。In an embodiment of the present invention, the standard image includes 63 gray diamonds and 24 squares having different standard colors; 63 gray diamonds are evenly distributed in 7 rows and 9 columns, wherein: each of at least four The square area composed of the diamond shape forms a deformation detection pattern, and the diamond shape disposed at the center of the standard image is an offset detection pattern; 24 squares having different standard colors are centered on the offset detection pattern and are 4 lines 6 columns are evenly distributed to form a color detection pattern.

基於上述,本發明提供之相機之檢測方法,具有以下有益效果:Based on the above, the detection method of the camera provided by the present invention has the following beneficial effects:

1、本發明通過預設一個方形之標準圖像,並在標準圖像之中心位置佈設用於檢測相機偏移量之偏移量檢測圖形,在標準圖像內佈設至少包含一行一列圖形、用於檢測相機變形量之變形量檢測圖形,該變形量檢測圖形具有預設之顏色以檢測相機清晰度,以及在偏移量檢測圖形周圍圍設用於檢測相機感色性能、具有標準顏色之色彩檢測圖形,再通過相機攝取該標準圖像,獲取該標準圖像之電子化圖像,最後通過分析該電子化圖像中偏移量檢測圖形、變形量檢測圖形、變形量檢測圖形之顏色以及色彩檢測圖形對應檢測相機之偏移量、變形量、清晰度以及感色性能,所以本發明可以達到檢測相機之各項品質指標的目的。1. The present invention prescribes a standard image of a square, and arranges an offset detection pattern for detecting a camera offset at a center position of the standard image, and arranges at least one row and one column of graphics in the standard image. a deformation detecting pattern for detecting a deformation amount of the camera, the deformation detecting pattern having a preset color to detect camera sharpness, and a color for detecting camera color sensing performance and having a standard color around the offset detecting pattern Detecting a graphic, taking the standard image by the camera, acquiring an electronic image of the standard image, and finally analyzing the color of the offset detection pattern, the deformation amount detection pattern, the deformation amount detection pattern in the electronic image, and The color detection pattern corresponds to detecting the offset, the deformation amount, the sharpness and the color sensing performance of the camera, so the invention can achieve the purpose of detecting various quality indexes of the camera.

2、本發明可以大大簡化具有拍照功能的電子產品特別是相機生產時的檢測流程,節約檢測時間,提高生產率。2. The invention can greatly simplify the detection process of the electronic product having the photographing function, especially the production of the camera, saving the detection time and improving the productivity.

3、本發明的檢測方法操作簡單,適用範圍廣,具有廣泛的經濟價值。3. The detection method of the invention has simple operation, wide application range and wide economic value.

為讓本發明之上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。The above described features and advantages of the present invention will be more apparent from the following description.

以下藉由特定的具體實施例說明本發明之實施方式,熟悉此技術領域之人士可由本說明書所揭示之內容輕易地瞭解本發明之其他優點及功效。本發明亦可藉由其它不同的具體實施例加以施行或應用,本說明書中的各項細節亦可基於不同觀點與應用,在不背離本發明之精神下進行各種修飾與變更。The embodiments of the present invention are described below by way of specific embodiments, and those skilled in the art can readily appreciate the other advantages and advantages of the present invention. The present invention may be embodied or applied in various other specific embodiments, and various modifications and changes may be made without departing from the spirit and scope of the invention.

須知,本說明書所附圖式中所繪示之結構、比例、大小等,均僅用以配合說明書所揭示之內容,以供熟悉此技術領域之人士之瞭解與閱讀,並非用以限定本發明可實施之限定條件,故不具技術上之實質意義,任何結構之修飾、比例關係之改變或大小之調整,在不影響本發明所能產生之功效及所能達成之目的下,均應仍落在本發明所揭示之技術內容得能涵蓋之範圍內。同時,本說明書中所引用之如“上”、“下”、“一”及“底部”等之用語,亦僅為便於敘述之明瞭,而非用以限定本發明可實施之範圍,其相對關係之改變或調整,於無實質變更技術內容下,當亦視為本發明可實施之範疇。It should be understood that the structures, the proportions, the sizes, and the like, which are illustrated in the specification of the present specification, are used for the purpose of understanding and reading by those skilled in the art, and are not intended to limit the present invention. The conditions that can be implemented are not technically meaningful, and any modification of the structure, change of the proportional relationship or adjustment of the size should be continued without affecting the effects and objectives of the present invention. It is within the scope of the technical contents disclosed in the present invention. In the meantime, the terms "upper", "lower", "one" and "bottom" are used in the description, and are not intended to limit the scope of the invention. Changes or adjustments to the relationship are considered to be within the scope of the invention as a result of the absence of material changes.

本發明應用於相機檢測或者具有相機功能的電子設備中拍照模組的檢測,其中,電子設備包括但不限於電腦、PAD,手機或智慧型手機,攝像機等。因此,本發明的目的在於提供一種用於相機之檢測方法,用於檢測相機之各項品質指標。以下將詳細闡述本發明的一種用於相機之檢測方法的原理及實施方式,使本領域技術人員不需要創造性勞動即可理解本發明的一種用於相機之檢測方法。The invention is applied to the detection of a camera module in an electronic device with camera detection or camera function, wherein the electronic device includes, but is not limited to, a computer, a PAD, a mobile phone or a smart phone, a camera, and the like. Accordingly, it is an object of the present invention to provide a method for detecting a camera for detecting various quality indicators of a camera. The principle and embodiment of a method for detecting a camera of the present invention will be described in detail below, so that a method for detecting a camera of the present invention can be understood by those skilled in the art without any inventive effort.

請參閱圖1,顯示為本發明的一種用於相機之檢測方法的流程示意圖。如圖1所示,本發明提供一種用於相機之檢測方法,該方法包括:Please refer to FIG. 1 , which is a flow chart showing a method for detecting a camera according to the present invention. As shown in FIG. 1, the present invention provides a method for detecting a camera, the method comprising:

步驟S11,預設一個方形之標準圖像,如圖2所示,該標準圖像1包括:佈設於標準圖像1中心位置用於檢測相機偏移量之偏移量檢測圖形11;佈設於標準圖像1內至少包含一行一列圖形、用於檢測相機變形量之變形量檢測圖形12,該變形量檢測圖形12具有預設之顏色以檢測相機清晰度;圍設於偏移量檢測圖形11周圍用於檢測相機感色性能、具有標準顏色之色彩檢測圖形13。Step S11, preset a square standard image, as shown in FIG. 2, the standard image 1 includes: an offset detection pattern 11 disposed at a center position of the standard image 1 for detecting a camera offset; The standard image 1 includes at least one row and one column of graphics, and a deformation amount detecting pattern 12 for detecting a camera deformation amount, the deformation amount detecting pattern 12 having a preset color to detect camera sharpness; and an offset detecting pattern 11 A color detection pattern 13 for detecting the color performance of the camera and having a standard color.

步驟S12,通過相機攝取該標準圖像1,獲取該標準圖像1的電子化圖像。In step S12, the standard image 1 is taken by the camera to acquire an electronic image of the standard image 1.

步驟S13,通過分析該電子化圖像中偏移量檢測圖形11、變形量檢測圖形12、變形量檢測圖形12的顏色以及色彩檢測圖形13對應檢測相機之偏移量、變形量、清晰度以及感色性能。Step S13, by analyzing the offset detection pattern 11, the deformation amount detection pattern 12, the color of the deformation amount detection pattern 12, and the color detection pattern 13 in the electronic image, the offset, the deformation amount, the sharpness, and the detection of the camera are detected. Color perception performance.

以下對相機之檢測方法進行詳細說明。The camera detection method will be described in detail below.

首先預設一個方形之標準圖像1,可以為長方形標準圖像1或者正方形標準圖像1。如圖2所示,該標準圖像1包括:偏移量檢測圖形11,變形量檢測圖形12和色彩檢測圖形13。First, a square standard image 1 is preset, which may be a rectangular standard image 1 or a square standard image 1. As shown in FIG. 2, the standard image 1 includes an offset detecting pattern 11, a deformation amount detecting pattern 12, and a color detecting pattern 13.

偏移量檢測圖形11佈設於標準圖像1中心位置用於檢測相機偏移量,該偏移量檢測圖形11的數量為一個。The offset detecting pattern 11 is disposed at the center position of the standard image 1 for detecting the camera shift amount, and the number of the offset detecting patterns 11 is one.

具體地,在本實施例中,該偏移量檢測圖形11包括但不限於菱形、方形、圓形或等邊三角形,其它中心點座標容易獲取的圖形也適用於本實施例中的偏移量檢測圖形11。Specifically, in the embodiment, the offset detection pattern 11 includes, but is not limited to, a diamond, a square, a circle, or an equilateral triangle, and other patterns with easy coordinates of the center point coordinates are also applicable to the offset in this embodiment. The pattern 11 is detected.

該偏移量檢測圖形11的中心與標準圖像1的中心重合。這樣通過獲取該偏移量檢測圖形11的中心點座標是否偏移即可知道整個獲取的電子化標準圖像1是否偏移。The center of the offset detecting pattern 11 coincides with the center of the standard image 1. Thus, by acquiring whether the center point coordinates of the offset detecting pattern 11 are offset, it is known whether or not the entire acquired electronic standard image 1 is shifted.

具體地,在本實施例中,如圖3所示,檢測相機偏移量之方法為:獲取相機之成像範圍2並獲取該成像範圍之中心點座標,即圖3中所示的C2;獲取電子化圖像中偏移量檢測圖形11的中心點座標,即圖3中所示的C1;計算偏移量檢測圖形11的中心點座標C1與該成像範圍之中心點座標C2之間的差值,該差值即為相機之偏移量。Specifically, in the embodiment, as shown in FIG. 3, the method for detecting the camera offset is: acquiring the imaging range 2 of the camera and acquiring the center point coordinate of the imaging range, that is, C2 shown in FIG. 3; The center point coordinate of the offset detecting pattern 11 in the electronic image, that is, C1 shown in FIG. 3; the difference between the center point coordinate C1 of the offset detecting pattern 11 and the center point coordinate C2 of the imaging range is calculated. The value, which is the offset of the camera.

相機偏移量分析如下:若C1和C2的縱坐標不相等,橫坐標相等,說明相機在豎直方向有偏移,若C1和C2的縱坐標相等,橫坐標不相等,說明相機在水準方向有偏移,若C1和C2的縱坐標不相等,橫坐標也不相等,說明相機在豎直方向和水準方向均有偏移,若C1和C2的縱坐標相等,橫坐標也相等,即C1和C2兩點重合,說明相機沒有偏移。The camera offset is analyzed as follows: If the ordinates of C1 and C2 are not equal, the abscissa is equal, indicating that the camera has an offset in the vertical direction. If the ordinates of C1 and C2 are equal, the abscissa is not equal, indicating that the camera is in the horizontal direction. There is an offset. If the ordinates of C1 and C2 are not equal, the abscissa is not equal, indicating that the camera is offset in both the vertical direction and the horizontal direction. If the ordinates of C1 and C2 are equal, the abscissa is also equal, that is, C1. The two points coincide with C2, indicating that the camera has no offset.

變形量檢測圖形12佈設於標準圖像1內至少包含一行一列圖形、用於檢測相機變形量。The deformation amount detecting pattern 12 is disposed in the standard image 1 and includes at least one row and one column of graphics for detecting the amount of camera deformation.

具體地,在本實施例中,該變形量檢測圖形12包括但不限於至少包含一行一列的若干菱形或至少包含一行一列的若干方形或至少包含一行一列的若干圓形或至少包含一行一列的若干等邊三角形,其它中心點座標容易獲取的圖形也適用於本實施例中的變形量檢測圖形12。Specifically, in the embodiment, the deformation detecting pattern 12 includes, but is not limited to, a plurality of diamonds including at least one row and one column, or a plurality of squares including at least one row and one column, or a plurality of circles including at least one row and one column, or a plurality of at least one row and one column. The equilateral triangle, the pattern in which other center point coordinates are easily obtained is also applicable to the deformation amount detecting pattern 12 in this embodiment.

該變形量檢測圖形12中檢測的變形量通常是相機中的鏡頭變形引起的,所以通過檢測變形量可以知道相機鏡頭是否有變形。該變形量檢測圖形12應具備可以檢測水準變形量和豎直變形量,該變形量檢測圖形12至少包含一行圖形(一行至少有兩個圖形)用於檢測水準變形量,一列圖形(一列至少有兩個圖形)用於檢測豎直變形量。The amount of deformation detected in the deformation amount detecting pattern 12 is usually caused by lens distortion in the camera, so it is possible to know whether or not the camera lens is deformed by detecting the amount of deformation. The deformation amount detecting pattern 12 should be provided with a level change amount and a vertical deformation amount, and the deformation amount detecting pattern 12 includes at least one line of graphics (at least two patterns in one line) for detecting the amount of level deformation, and one column of graphs (at least one column) Two graphs) are used to detect the amount of vertical deformation.

具體地,在本實施例中,變形量檢測圖形12至少包括佈設於標準圖像1四周邊緣的若干圖形。Specifically, in the present embodiment, the deformation amount detecting pattern 12 includes at least a plurality of patterns arranged on the periphery of the standard image 1.

具體地,在本實施例中,檢測相機變形量之方法為:獲取電子化圖像中變形量檢測圖形12內位於同一行或同一列的任意兩個圖形之中心點座標,根據獲取的兩個圖形之中心點座標獲取由該兩個圖形之中心點連接成的直線之斜率,該斜率即為相機之變形量。Specifically, in the embodiment, the method for detecting the amount of deformation of the camera is: acquiring the coordinates of the center point of any two figures in the same row or the same column in the deformation amount detecting pattern 12 in the electronic image, according to the acquired two The center point coordinates of the graph obtain the slope of the line connected by the center points of the two figures, which is the amount of deformation of the camera.

具體地,如圖4所示,相機水準方向的變形量可以通過同一行的兩個圖形中心點座標連接成的直線之斜率來體現。A點到C點連接成的直線為L1,L1的斜率可算出相機上方水準方向的變形量,假設L1的斜率為k1,k1=(y3-y1)/(x3-x1),若k1≠0,則說明相機水準方向有形變,若k=0,則說明相機上方水準方向的變形量為零,相機水準方向沒有變形。Specifically, as shown in FIG. 4, the amount of deformation of the camera in the horizontal direction can be represented by the slope of a straight line connecting the two center point coordinates of the same row. The straight line connecting point A to point C is L1, and the slope of L1 can calculate the amount of deformation in the horizontal direction above the camera. It is assumed that the slope of L1 is k1, k1=(y3-y1)/(x3-x1), if k1≠0 , indicating that the camera's level direction is deformed. If k=0, it means that the amount of deformation in the horizontal direction above the camera is zero, and the camera's level is not deformed.

同理,同一行的任意兩點也選為A點和B點,或B點和C點。A點到B點連接成的直線之斜率k11也可以用來體現相機上方水準方向的變形量,斜率k11=(y2-y1)/(x2-x1),若k11≠0,則說明相機水準方向有形變,若k11=0,則說明相機上方水準方向的變形量為零,相機水準方向沒有變形。同理,B點到C點連接成的直線之斜率k12也可以用來體現相機上方水準方向的變形量,斜率k12=(y3-y2)/(x3-x2),若k12≠0,則說明相機水準方向有形變,若k12=0,則說明相機上方水準方向的變形量為零,相機水準方向沒有變形。上述A點、B點和C點僅為說明計算相機水準方向變形量之方法,具體在計算相機水準方向變形量時,可選取其它同一行的任意兩個圖形。Similarly, any two points in the same row are also selected as point A and point B, or point B and point C. The slope k11 of the line connected from point A to point B can also be used to reflect the amount of deformation in the horizontal direction above the camera. The slope k11=(y2-y1)/(x2-x1). If k11≠0, the camera level is indicated. There is a deformation. If k11=0, it means that the amount of deformation in the horizontal direction above the camera is zero, and there is no deformation in the camera level. Similarly, the slope k12 of the line connecting B to C can also be used to reflect the amount of deformation in the horizontal direction above the camera. The slope k12=(y3-y2)/(x3-x2), if k12≠0, then The camera's level is deformed. If k12=0, the amount of deformation in the horizontal direction above the camera is zero, and the camera's level is not deformed. The above points A, B, and C are only methods for calculating the amount of deformation in the camera level direction. Specifically, when calculating the amount of deformation in the camera level direction, any two other patterns in the same line can be selected.

與計算相機水準方向變形量之方法相似,計算相機豎直方向變形量之方法是根據同一列的兩個圖形中心點座標連接成的直線之斜率來體現。如圖4所示,以選取位於同一列的A點和D點為例,A點到D點連接成的直線之斜率k2可以用來體現相機豎直方向的變形量,斜率k2=(y4-y1)/(x4-x1),若k2≠0,則說明相機豎直方向有形變,若k2=0,則說明相機豎直方向的變形量為零,相機豎直方向沒有變形。上述A點和D點僅為說明計算相機豎直方向變形量之方法,具體在計算相機豎直方向變形量時,可選取其它同一列的兩個圖形。Similar to the method of calculating the amount of deformation in the horizontal direction of the camera, the method of calculating the amount of deformation of the camera in the vertical direction is represented by the slope of the line connecting the coordinates of the center points of the two figures in the same column. As shown in Fig. 4, taking the points A and D located in the same column as an example, the slope k2 of the line connected from point A to point D can be used to reflect the amount of deformation in the vertical direction of the camera, and the slope k2 = (y4- Y1)/(x4-x1), if k2≠0, it means that the camera has a deformation in the vertical direction. If k2=0, the deformation of the camera in the vertical direction is zero, and the camera is not deformed in the vertical direction. The above points A and D are only a method for calculating the amount of deformation of the camera in the vertical direction. Specifically, when calculating the amount of deformation in the vertical direction of the camera, two other patterns of the same column may be selected.

該變形量檢測圖形12具有預設之顏色以檢測相機清晰度。具體地,在本實施例中,檢測相機清晰度的方法為:分析電子化圖像中變形量檢測圖形12內任意圖形之邊緣確定相機之清晰度。The deformation amount detecting pattern 12 has a preset color to detect camera sharpness. Specifically, in the embodiment, the method of detecting the sharpness of the camera is: analyzing the edge of any graphic in the deformation detecting pattern 12 in the electronic image to determine the sharpness of the camera.

具體地,在本實施例中,該變形量檢測圖形12中任意圖形(邊緣)的顏色與背景的顏色具有一定色差。為了符合產品不同性能及等級要求,可任意調整圖形之顏色與背景的顏色的差值。若以顏色的灰階值來表示,全黑為0,全白為255,那麼上述兩個顏色可寫為任意由差值的資料,例如0(圖形之顏色)與255(背景的顏色)或80(圖形之顏色)與225(背景的顏色)等。為提高相機之檢測標準,選用對比度相對較弱的色系,由於黑色、白色或其它顏色較為豔麗的顏色,拍出來的顏色相對仍然較為豔麗或清晰,不好對比區分,但對比度相對較弱的色系,例如灰色,卻可以更好的檢測相機之清晰度。顏色的對比取決於產品的特性及品質要求,顏色差距越小,愈是考驗相機之顏色識別度及清晰度。在本實施例中為淺灰與深灰,圖形之顏色的灰階值為80,背景的顏色的灰階值為255。Specifically, in the present embodiment, the color of any pattern (edge) in the deformation amount detecting pattern 12 has a certain color difference from the color of the background. In order to meet the different performance and grade requirements of the product, the difference between the color of the graphic and the color of the background can be arbitrarily adjusted. If the gray scale value of the color is used, the total black is 0, and the total white is 255, then the above two colors can be written as any data of the difference, such as 0 (color of the graphic) and 255 (color of the background) or 80 (color of graphics) and 225 (color of background), etc. In order to improve the detection standard of the camera, the color system with relatively weak contrast is selected. Because of the bright color of black, white or other colors, the color is still relatively bright or clear, which is not good for contrast, but the contrast is relatively weak. Colors, such as gray, can better detect the clarity of the camera. The contrast of colors depends on the characteristics and quality requirements of the product. The smaller the color difference, the more the color recognition and clarity of the camera are tested. In this embodiment, it is light gray and dark gray, the grayscale value of the color of the graphic is 80, and the grayscale value of the color of the background is 255.

色彩檢測圖形13圍設於偏移量檢測圖形11周圍用於檢測相機感色性能、具有標準顏色。具體地,在本實施例中,該色彩檢測圖形13包括圍設於偏移量檢測圖形11周圍具有不同標準顏色之若干菱形或若干方形或若干圓形。The color detection pattern 13 is disposed around the offset detection pattern 11 for detecting the color perception performance of the camera and having a standard color. Specifically, in the present embodiment, the color detecting pattern 13 includes a plurality of diamonds or squares or circles having different standard colors surrounding the offset detecting pattern 11.

該標準圖像1中包括偏移量檢測圖形11,變形量檢測圖形12和色彩檢測圖形13,而變形量檢測圖形12和色彩檢測圖形13中圖形之數量和相對位置可自由設定,只要滿足上述變形量檢測圖形12和色彩檢測圖形13的功能需求即可,但本實施例提供一種優選的標準圖像1,通過使用該優選的標準圖像1,可以達到更好的檢測效果。The standard image 1 includes an offset detection pattern 11, a deformation amount detection pattern 12, and a color detection pattern 13, and the number and relative positions of the patterns in the deformation amount detection pattern 12 and the color detection pattern 13 can be freely set as long as the above is satisfied. The functional requirements of the deformation amount detecting pattern 12 and the color detecting pattern 13 may be sufficient, but the present embodiment provides a preferred standard image 1, by which a better detection effect can be achieved by using the preferred standard image 1.

如圖5所示,具體地,在本實施例中,該標準圖像1中包含63個灰色菱形和具有不同標準顏色之24個方形;63個灰色菱形以7行9列均勻分佈,其中:每一個至少由四個菱形所組成之方形區域形成變形量檢測圖形12,佈設於標準圖像1中心位置的菱形為偏移量檢測圖形11;具有不同標準顏色之24個方形以偏移量檢測圖形11為中心並以4行6列均勻分佈形成色彩檢測圖形13。As shown in FIG. 5, specifically, in the embodiment, the standard image 1 includes 63 gray diamonds and 24 squares having different standard colors; 63 gray diamonds are evenly distributed in 7 rows and 9 columns, wherein: Each of the square regions composed of at least four diamonds forms a deformation amount detecting pattern 12, and the diamonds disposed at the center position of the standard image 1 are offset detecting patterns 11; 24 squares having different standard colors are detected by offset The pattern 11 is centered and uniformly distributed in 4 rows and 6 columns to form a color detection pattern 13.

各行與各列的圖案個數,可依實際需求做調整,一般而言會配合相機之長寬比做調整。The number of patterns in each row and column can be adjusted according to actual needs, and generally it will be adjusted according to the aspect ratio of the camera.

其中,每一個有菱形所組成之方形區域都可以用來計算相機中鏡頭的變形量(包括水準變形量和豎直變形量),擴大了檢測選取的範圍;最中心的菱形可用於計算相機之偏移量,這個偏移量包含成品組裝後元件的累積公差。Among them, each square area composed of diamonds can be used to calculate the amount of deformation of the lens in the camera (including the amount of horizontal deformation and vertical deformation), which expands the range of detection selection; the most central diamond can be used to calculate the camera Offset, this offset contains the cumulative tolerance of the component after assembly.

本發明中使用一個具有多種檢測目的的標準圖像1,待檢驗的相機通過拍攝此標準圖像1,並通過相應的檢驗軟體分析拍攝後的標準圖像1的電子化圖像,即可檢測出此相機之各項品質指標,這些品質指標不僅是相機本體,更包含了組裝後的品質專案,例如,清晰度、鏡頭變形程度,偏移量等。In the present invention, a standard image 1 having various detection purposes is used, and the camera to be inspected can detect by taking the standard image 1 and analyzing the electronic image of the captured standard image 1 by the corresponding inspection software. Out of the camera's various quality indicators, these quality indicators are not only the camera body, but also include the assembled quality project, such as clarity, lens distortion, offset and so on.

綜上所述,本發明的一種用於相機之檢測方法,達到了以下有益效果:In summary, the method for detecting a camera of the present invention achieves the following beneficial effects:

本發明通過預設一個方形之標準圖像,並在標準圖像之中心位置佈設用於檢測相機偏移量之偏移量檢測圖形,在標準圖像內佈設至少包含一行一列圖形、用於檢測相機變形量之變形量檢測圖形,該變形量檢測圖形具有預設之顏色以檢測相機清晰度,以及在偏移量檢測圖形周圍圍設用於檢測相機感色性能、具有標準顏色之色彩檢測圖形,再通過相機攝取該標準圖像,獲取該標準圖像之電子化圖像,最後通過分析該電子化圖像中偏移量檢測圖形、變形量檢測圖形、變形量檢測圖形之顏色以及色彩檢測圖形對應檢測相機之偏移量、變形量、清晰度以及感色性能,所以本發明可以達到檢測相機之各項品質指標的目的;同時,本發明可以大大簡化具有拍照功能的電子產品特別是相機生產時的檢測流程,節約檢測時間,提高生產率;而且本發明的檢測方法操作簡單,適用範圍廣,具有廣泛的經濟價值。所以,本發明有效克服了現有技術中的種種缺點而具高度產業利用價值。The invention prescribes a square standard image, and arranges an offset detection pattern for detecting a camera offset at a center position of the standard image, and arranges at least one row and one column of graphics in the standard image for detecting a deformation amount detecting pattern of a camera deformation amount, the deformation amount detecting pattern having a preset color to detect camera sharpness, and a color detecting pattern having a standard color for detecting camera color sensing performance around the offset detecting pattern Then, the standard image is taken by the camera to obtain an electronic image of the standard image, and finally the color of the offset detection pattern, the deformation detection pattern, the deformation detection pattern, and the color detection are analyzed by analyzing the electronic image. The graphic corresponds to detecting the offset, the deformation amount, the sharpness and the color sensing performance of the camera, so the invention can achieve the purpose of detecting various quality indexes of the camera; meanwhile, the invention can greatly simplify the electronic product having the photographing function, especially the camera. The detection process at the time of production saves the detection time and improves the productivity; and the detection method operation of the present invention Single, wide application, with a wide range of economic value. Therefore, the present invention effectively overcomes various shortcomings in the prior art and has high industrial utilization value.

上述實施例係用以例示性說明本發明之原理及其功效,而非用於限制本發明。任何熟習此項技術領域之人士均可在不違背本發明之精神及範疇下,對上述實施例進行修改。因此本發明之權利保護範圍,應如後述之申請專利範圍所列。The above embodiments are intended to illustrate the principles of the invention and its effects, and are not intended to limit the invention. Any of the above-described embodiments can be modified by those skilled in the art without departing from the spirit and scope of the invention. Therefore, the scope of protection of the present invention should be as set forth in the appended claims.

1‧‧‧標準圖像
11‧‧‧偏移量檢測圖形
12‧‧‧變形量檢測圖形
13‧‧‧色彩檢測圖形
2‧‧‧相機之成像範圍
S11~S13‧‧‧步驟
1‧‧‧Standard image
11‧‧‧Offset detection graphics
12‧‧‧ deformation detection pattern
13‧‧‧Color detection graphics
2‧‧‧ camera imaging range
S11~S13‧‧‧Steps

圖1顯示為本發明之用於相機之檢測方法的流程示意圖。1 is a flow chart showing a method for detecting a camera of the present invention.

圖2顯示為本發明之用於相機之檢測方法中標準圖像之結構示意圖。2 is a schematic view showing the structure of a standard image in the method for detecting a camera of the present invention.

圖3顯示為本發明之用於相機之檢測方法中檢測相機偏移量示意圖。FIG. 3 is a schematic diagram showing the detection of camera offset in the detection method for a camera of the present invention.

圖4顯示為本發明之用於相機之檢測方法中檢測相機變形量示意圖。4 is a schematic view showing the amount of deformation of a detecting camera in the detecting method for a camera of the present invention.

圖5顯示為本發明之用於相機之檢測方法中標準圖像之優選結構示意圖。Fig. 5 is a view showing a preferred configuration of a standard image in the method for detecting a camera of the present invention.

S11~S13 S11~S13

Claims (9)

一種用於相機之檢測方法,係包括以下步驟: 預設一個方形之標準圖像,該標準圖像包括:佈設於標準圖像中心位置用於檢測相機偏移量之偏移量檢測圖形;佈設於該標準圖像內至少包含一行一列圖形、用於檢測相機變形量之變形量檢測圖形,該變形量檢測圖形具有預設之顏色以檢測相機清晰度;圍設於該偏移量檢測圖形周圍用於檢測相機感色性能、具有標準顏色之色彩檢測圖形; 通過相機攝取該標準圖像,獲取該標準圖像之電子化圖像;以及 通過分析該電子化圖像中偏移量檢測圖形、變形量檢測圖形、變形量檢測圖形之顏色以及色彩檢測圖形對應檢測相機之偏移量、變形量、清晰度以及感色性能。A method for detecting a camera includes the following steps: Presetting a standard image of a square, the standard image comprising: an offset detection pattern disposed at a center position of a standard image for detecting a camera offset; Included in the standard image, at least one row and one column of graphics, a deformation amount detecting pattern for detecting a camera deformation amount, the deformation amount detecting pattern having a preset color to detect camera sharpness; surrounding the offset detecting pattern a color detection pattern for detecting a color perception performance of the camera and having a standard color; acquiring an electronic image of the standard image by capturing the standard image by the camera; and analyzing the offset detection pattern in the electronic image by analyzing The deformation amount detection pattern, the color of the deformation amount detection pattern, and the color detection pattern correspond to the detection camera offset, deformation amount, sharpness, and color perception performance. 如申請專利範圍第1項所述之用於相機之檢測方法,其中,檢測相機偏移量之方法係為: 獲取相機之成像範圍並獲取該成像範圍之中心點座標; 獲取該電子化圖像中偏移量檢測圖形之中心點座標;以及 計算該偏移量檢測圖形之中心點座標與該成像範圍之中心點座標之間的差值,該差值即係為相機之偏移量。The method for detecting a camera according to claim 1, wherein the method for detecting a camera offset is: acquiring an imaging range of the camera and acquiring a center point coordinate of the imaging range; acquiring the electronic image The center point coordinate of the middle offset detection pattern; and calculating a difference between a center point coordinate of the offset detection pattern and a center point coordinate of the imaging range, the difference being the offset of the camera. 如申請專利範圍第1項所述之用於相機之檢測方法,其中,檢測相機變形量之方法係為:獲取該電子化圖像中變形量檢測圖形內位於同一行或同一列的任意兩個圖形之中心點座標,根據獲取的兩個圖形之中心點座標獲取由該兩個圖形之中心點連接成的直線之斜率,該斜率係為相機之變形量。The method for detecting a camera according to claim 1, wherein the method for detecting the amount of deformation of the camera is: acquiring any two of the deformation detection patterns in the electronic image in the same row or the same column. The center point coordinate of the graph acquires the slope of the line connected by the center points of the two figures according to the coordinates of the center point coordinates of the two figures obtained, which is the deformation amount of the camera. 如申請專利範圍第1項所述之用於相機之檢測方法,其中,檢測相機清晰度的方法係為:分析該電子化圖像中變形量檢測圖形內任意圖形之邊緣確定相機之清晰度。The method for detecting a camera according to the first aspect of the invention, wherein the method for detecting camera sharpness is: analyzing an edge of an arbitrary shape in the deformation amount detecting pattern in the electronic image to determine a sharpness of the camera. 如申請專利範圍第1或2項所述之用於相機之檢測方法,其中,該偏移量檢測圖形係為菱形、方形或圓形。The method for detecting a camera according to claim 1 or 2, wherein the offset detecting pattern is a diamond, a square or a circle. 如申請專利範圍第1或3項所述之用於相機之檢測方法,其中,該變形量檢測圖形係為若干菱形或若干方形或若干圓形。The method for detecting a camera according to claim 1 or 3, wherein the deformation amount detecting pattern is a plurality of diamonds or a plurality of squares or a plurality of circles. 如申請專利範圍第1項所述之用於相機之檢測方法,其中,該色彩檢測圖形包括圍設於偏移量檢測圖形周圍具有不同標準顏色之若干菱形或若干方形或若干圓形。The method for detecting a camera according to claim 1, wherein the color detecting pattern comprises a plurality of diamonds or squares or circles having different standard colors surrounding the offset detecting pattern. 如申請專利範圍第1項所述之用於相機之檢測方法,其中,該變形量檢測圖形至少包括佈設於標準圖像四周邊緣的若干圖形。The method for detecting a camera according to claim 1, wherein the deformation amount detecting pattern includes at least a plurality of patterns arranged on edges of a standard image. 如申請專利範圍第1項所述之用於相機之檢測方法,其中,該標準圖像中包含63個灰色菱形和具有不同標準顏色之24個方形;63個灰色菱形以7行9列均勻分佈,其中:每一個至少由四個菱形所組成之方形區域形成該變形量檢測圖形,佈設於該標準圖像中心位置的菱形係為偏移量檢測圖形;具有不同標準顏色之24個方形以偏移量檢測圖形係為中心並以4行6列均勻分佈形成色彩檢測圖形。The method for detecting a camera according to claim 1, wherein the standard image includes 63 gray diamonds and 24 squares having different standard colors; 63 gray diamonds are evenly distributed in 7 rows and 9 columns. Wherein: each of the square regions composed of at least four diamond shapes forms the deformation amount detecting pattern, and the diamond shape disposed at the center position of the standard image is an offset detecting pattern; 24 squares having different standard colors are biased The shift detection pattern is centered and uniformly distributed in 4 rows and 6 columns to form a color detection pattern.
TW103130038A 2013-11-29 2014-08-29 Detection Method for Camera TWI549482B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310630133.2A CN104683793B (en) 2013-11-29 2013-11-29 Detecting method for camera

Publications (2)

Publication Number Publication Date
TW201521426A true TW201521426A (en) 2015-06-01
TWI549482B TWI549482B (en) 2016-09-11

Family

ID=53318281

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103130038A TWI549482B (en) 2013-11-29 2014-08-29 Detection Method for Camera

Country Status (2)

Country Link
CN (1) CN104683793B (en)
TW (1) TWI549482B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105120258A (en) * 2015-07-20 2015-12-02 深圳市航盛电子股份有限公司 Method and system for testing distortion rate of camera
CN106686370B (en) * 2015-11-09 2019-07-05 宁波舜宇光电信息有限公司 Choose layout and its choosing method in the zoning for calculating camera lens shade
CN105430377B (en) * 2015-11-17 2017-12-08 高新兴科技集团股份有限公司 A kind of video camera movement optical axis automatic correction method and system
CN105939474B (en) * 2016-06-24 2018-03-06 华为技术有限公司 For testing the test equipment and method of testing of camera
CN108694729B (en) * 2017-04-07 2021-01-29 深圳市腾盛精密装备股份有限公司 Positioning method, device and apparatus based on image detection and storage medium
CN107333130B (en) * 2017-08-24 2019-04-23 歌尔股份有限公司 Assemble multi-cam module testing method and system
CN107995486A (en) * 2017-12-11 2018-05-04 珠海格力电器股份有限公司 A kind of camera bearing calibration and device
CN108769670B (en) * 2018-06-07 2020-05-22 凌云光技术集团有限责任公司 Method and system for carrying out repeatability precision test on motion system by using camera
CN110602486B (en) * 2019-08-30 2021-04-02 歌尔光学科技有限公司 Detection method, detection device, depth camera and computer readable storage medium
CN110708537B (en) * 2019-09-30 2021-05-28 芯盟科技有限公司 Image sensor performance testing method and device and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8184923B2 (en) * 2004-04-19 2012-05-22 Semiconductor Energy Laboratory Co., Ltd. Image analysis method, image analysis program, pixel evaluation system having the image analysis method, and pixel evaluation system having the image analysis program
CN1702541A (en) * 2005-07-25 2005-11-30 王赋琛 Digital camera for automatic correction of photograph deformation
US20080062266A1 (en) * 2006-09-12 2008-03-13 Mediatek Inc. Image test board
JP4469382B2 (en) * 2007-03-28 2010-05-26 アキュートロジック株式会社 Chromatic aberration amount detection method and chromatic aberration amount detection apparatus in imaging apparatus
TW201143429A (en) * 2010-05-17 2011-12-01 Hon Hai Prec Ind Co Ltd System for correcting image and correcting method thereof
WO2012001793A1 (en) * 2010-06-30 2012-01-05 富士通株式会社 Image processing program and image processing device
US8743214B2 (en) * 2011-05-11 2014-06-03 Intel Corporation Display screen for camera calibration
CN103018015B (en) * 2012-12-26 2016-01-20 青岛歌尔声学科技有限公司 The apparatus and method of the light shaft offset of camera lens in checkout equipment
CN103162939A (en) * 2013-01-07 2013-06-19 福兴达科技实业(深圳)有限公司 Camera lens focusing detection method and device using the same

Also Published As

Publication number Publication date
CN104683793B (en) 2017-04-12
TWI549482B (en) 2016-09-11
CN104683793A (en) 2015-06-03

Similar Documents

Publication Publication Date Title
TWI549482B (en) Detection Method for Camera
CN101207833B (en) Method for checking optical centre bias of lens of digital camera
US6577756B1 (en) Method and apparatus for quantitatively evaluating scintillation, antiglare film and method of producing the same
WO2022082904A1 (en) Lens smudge detection method, apparatus and device
CN104616275A (en) Defect detecting method and defect detecting device
WO2017012312A1 (en) Screen pressing yellowing determination method and determination device
TW201926247A (en) Defect inspection method and defect inspection system
US20140320638A1 (en) Electronic device and method for detecting surface flaw of sample
CN104749801B (en) High Precision Automatic optical detecting method and system
CN103630554A (en) Detection device and method for defects on double faces of lens
CN112419229A (en) Display screen linear defect detection method and device and storage medium
CN108072664B (en) Appearance detection system and method
JP2011033570A (en) Evaluation method of distortion aberration of optical lens
CN116990993A (en) LCD display panel quality detection method
TW201326735A (en) Method and system for measuring width
TWI751869B (en) Computation apparatus and method of detecting defects for near-eye display
CN107643611A (en) A kind of automatic checkout system of liquid crystal display and backlight assembly precision
CN106908225B (en) detection device, method and system
JP2013205091A (en) Film inspection system, and film inspection method
CN106469532A (en) Display floater bright light inspection method
CN105078404A (en) Fully automatic eye movement tracking distance measuring calibration instrument based on laser algorithm and use method of calibration instrument
CN107024487B (en) ITO conductive glass detection system and detection method thereof
CN110274907B (en) Mirror plane defect detection system and method based on fan-shaped stripes
CN112858331A (en) VR screen detection method and detection system
CN109754365B (en) Image processing method and device