TW201814240A - Method of length measurement for 2D photography - Google Patents

Method of length measurement for 2D photography Download PDF

Info

Publication number
TW201814240A
TW201814240A TW105132506A TW105132506A TW201814240A TW 201814240 A TW201814240 A TW 201814240A TW 105132506 A TW105132506 A TW 105132506A TW 105132506 A TW105132506 A TW 105132506A TW 201814240 A TW201814240 A TW 201814240A
Authority
TW
Taiwan
Prior art keywords
image
reference object
shooting
tested
computer
Prior art date
Application number
TW105132506A
Other languages
Chinese (zh)
Other versions
TWI621827B (en
Inventor
賴鵬程
江俊賢
Original Assignee
萬里科技股份有限公司
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 萬里科技股份有限公司 filed Critical 萬里科技股份有限公司
Priority to TW105132506A priority Critical patent/TWI621827B/en
Priority to JP2017021601A priority patent/JP2018059890A/en
Priority to KR1020170018617A priority patent/KR20180038942A/en
Publication of TW201814240A publication Critical patent/TW201814240A/en
Application granted granted Critical
Publication of TWI621827B publication Critical patent/TWI621827B/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/28Measuring arrangements characterised by the use of optical techniques for measuring areas
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/194Segmentation; Edge detection involving foreground-background segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • G06T7/74Determining position or orientation of objects or cameras using feature-based methods involving reference images or patches

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Image Analysis (AREA)

Abstract

A method of length measurement for 2d photography comprises the following steps. First, a measure object and a photographed object are respectively photographed to form a reference image and a photographed object image, wherein the measure object has a geometrical shape capable of being presented by an area calculation function saved in a computer with a predetermined size. Thereafter, a measure object image is separated from the reference image and scanned to obtain a total number of pixels included therein, so as to obtain a specific number of pixels corresponding to a unit length based on the area calculation function and the predetermined size. Therefaore, once any two points of the photographed object image are marked up on a screen of the computer, an actual length between the two points is calculated out based on a ratio of the total number of pixels to the specific number of pixels.

Description

用於平面拍攝的長度量測方法Length measurement method for plane shooting

本發明係一種以計算一幾何形狀且已預設尺寸之一參考物件面積作為平面拍攝量測的方法。The present invention is a method of calculating a geometrical shape and having one of the preset dimensions as a reference photographing area.

一般在網路上看到一商品之影像都無法進行該商品之線上尺寸量測,購買者很難體會該商品之真正大小,容易造成採購遲疑、買賣糾紛或退貨的結果。雖然也有在待售商品旁標示尺寸的作法,但會影響商品影像的美觀及背景的使用彈性。也有在待測物件(photographed object)旁放置量尺(ruler)拍攝,讓影像閱覽者(viewer)可以藉由同時看到待測物件及尺的刻度(scale)而得知待測物件的尺寸。但是在這種情況下,影像閱覽者雖然可以明顯看出衣物的總長度和總寬度,但是衣物上的圖案、口袋和袖子等細部尺寸只能由影像閱覽者依照比例自行估算,準確度不高。而且,當待測物件較厚時,由於待測物件和量尺相對於鏡頭之間的拍攝距離不同,更容易導致影像閱覽者在尺寸估算上的誤差。Generally, it is impossible to measure the online size of the product on the Internet. It is difficult for the purchaser to understand the true size of the product, which may result in hesitation, purchase and sale disputes or returns. Although there are also ways to mark the size of the goods for sale, it will affect the aesthetics of the product image and the flexibility of the background. There is also a ruler placed next to the photographed object, so that the image viewer can know the size of the object to be tested by simultaneously seeing the scale of the object to be tested and the scale. However, in this case, although the image viewer can clearly see the total length and the total width of the clothes, the size of the pattern, pockets and sleeves on the clothes can only be estimated by the image viewer in proportion, and the accuracy is not high. . Moreover, when the object to be tested is thick, it is more likely to cause an error in the size estimation of the image viewer due to the difference in the shooting distance between the object to be tested and the scale relative to the lens.

在參考物件拍攝階段雖然也可以拍攝一根尺或以其他光學儀器量測參考物件大小,並輸入參考物件尺寸作為量測待測物件尺寸的依據,但都必須以人工輸入參考物件尺寸,容易產生錯誤的量測結果。同樣地,參考物件上未標示出的尺寸也只能由影像閱覽者依照比例自行估算,不僅尺寸的取得較為麻煩,準確度也不高。相對而言,本發明可以自動輸入參考物件尺寸或以不同加工符號的洞數代表不同的參考物件尺寸,以減少拍攝不同尺寸之待測物件時產生誤差。In the reference object shooting stage, although it is also possible to take a ruler or measure the size of the reference object with other optical instruments, and input the reference object size as the basis for measuring the size of the object to be tested, it is necessary to manually input the reference object size, which is easy to generate. Wrong measurement results. Similarly, the dimensions not shown on the reference object can only be estimated by the image viewer in proportion, which is not only difficult to obtain the size, but also has low accuracy. In contrast, the present invention can automatically input the reference object size or the number of holes with different processing symbols to represent different reference object sizes, so as to reduce errors when shooting different sizes of the object to be tested.

本發明目的之一係為提供一種以計算一幾何形狀且已預設尺寸之一參考物件面積,作為平面拍攝量測的方法。利用分離該參考物件與一背景,再掃描一螢幕上該參考物件所涵蓋之總像素數目,再經由該預設尺寸及該參考物件面積計算公式,算出每單位該參考物件長度所對應之像素數目。放置一待測物件於該背景上,該拍攝裝置之拍攝距離、鏡頭的放大/縮小(zoom)與拍攝角度保持固定,並進行該待測物件拍攝,即能在該螢幕上以像素數目量測出該待測物件上,任意兩點之長度。以該拍攝裝置對準該參考物件及待測物件的中央拍攝,能提高量測之準確度。該參考物件之預設尺寸及面積計算公式都要先以人工輸入。One of the objects of the present invention is to provide a method for measuring a geometric shape and having one of the preset dimensions as a reference image area. Separating the reference object from a background, scanning a total number of pixels covered by the reference object on the screen, and calculating a number of pixels corresponding to the length of the reference object per unit by using the preset size and the reference object area calculation formula . The object to be tested is placed on the background, the shooting distance of the photographing device, the zooming/zooming of the lens and the shooting angle are kept fixed, and the object to be tested is taken, that is, the number of pixels can be measured on the screen. The length of any two points on the object to be tested. Aligning the reference object and the center of the object to be tested with the camera can improve the accuracy of the measurement. The preset size and area calculation formula of the reference object must be manually input first.

一般拍攝不同尺寸之一待測物件都選擇與其尺寸相近之一參考物件,以提升量測準確度,但不同尺寸之該參考物件及其面積計算公式都要人工輸入,容易因輸入該參考物件尺寸或面積計算公式之錯誤造成量測該待測物件時產生錯誤。因此本發明之另一目的係為在該參考物件上加工一個或一個以上之貫穿該參考物件的加工穿洞符號,再以加工穿洞符號的洞數協助確認該參考物件之預設尺寸之正確性,甚至可以經由該加工穿洞符號的洞數自動選取電腦內預先儲存的該參考物件之尺寸及面積計算公式,以避免人為輸入錯誤產生量測錯誤的影響。Generally, one of the different sizes of the object to be tested selects one of the reference objects with the same size to improve the measurement accuracy, but the reference object of different sizes and the calculation formula of the area must be manually input, which is easy to input due to the size of the reference object. Or an error in the area calculation formula causes an error in measuring the object to be tested. Therefore, another object of the present invention is to process one or more processed through-hole symbols through the reference object on the reference object, and then to correct the preset size of the reference object by processing the number of holes of the through-hole symbol. Therefore, the size and area calculation formula of the reference object pre-stored in the computer can be automatically selected through the number of holes of the processed hole-piercing symbol to avoid the influence of measurement errors caused by human input errors.

上述該些已預設尺寸之該參考物件多數採用平板或柱體的平面投影形狀來進行面積計算,亦即該參考物件之外緣投影為一平面幾何形狀,並且該平面幾何形狀能以一面積計算公式來表達。而且,待測物件較薄時通常使用較薄的平板狀參考物件,而待測物件較厚時則通常使用與待測物件厚度相近的柱體狀參考物件(例如圓柱體、三角柱體等),以提高尺寸計算的準確度。另外,除了前述的平板或柱體之外,也能採用頂面上具有許多凸點或塊狀或球狀之平板或柱體當成參考物件,同時該幾何形狀為該參考物件之外緣於該拍攝裝置在拍攝方向上的平面投影。但在不同角度之立體拍攝時,平板狀的參考物件因視角不同導致原預設之尺寸產生變化而無法作為不同角度拍攝時,對立體待測物件進行不同角度之量測。是以本發明之另一目的係為利用一預設直徑的圓球作為參考物件,以每個不同角度之圓球拍攝之投影面積作為該拍攝角度之該待測物件作量測時之依據。Most of the reference objects of the predetermined size are calculated by using a planar projection shape of a flat plate or a cylinder, that is, the outer edge of the reference object is projected into a planar geometric shape, and the planar geometric shape can be an area. Calculate the formula to express. Moreover, when the object to be tested is thin, a thin flat reference object is generally used, and when the object to be tested is thick, a cylindrical reference object (such as a cylinder, a triangular cylinder, etc.) similar to the thickness of the object to be tested is generally used. To improve the accuracy of the size calculation. In addition, in addition to the aforementioned flat plate or cylinder, a flat plate or a cylinder having a plurality of bumps or a block or a spherical shape on the top surface can be used as a reference object, and the geometric shape is the outer edge of the reference object. Plane projection of the camera in the shooting direction. However, in stereoscopic shooting at different angles, when the flat reference object changes the original preset size due to different viewing angles and cannot be taken as different angles, the stereoscopic object to be tested is measured at different angles. Another object of the present invention is to use a ball of a predetermined diameter as a reference object, and the projected area of the ball shot at each different angle is used as a basis for measuring the object to be tested of the shooting angle.

為達上述目的,我們可以選任何一種或一種以上較容易計算面積的幾何形狀如第2圖之正方形(square)、三角形(triangle)、長方形(rectangle)、梯形(trapezia)、菱形(lozenqe)、圓形(circular)、星形(star)、多邊形(polygon)等之平板(flat plate)或柱體(column)、或是頂面上具有凸點、塊狀之平板或圓球當成參考物件,亦即只要有面積公式對應之任何幾何形狀均可作為量測用之參考物件。先預設該些參考物件之尺寸如第2圖所標示之a、b、d及h,並知道正方形面積為a × a,長方形面積為a × b,三角形面積為a × h / 2,梯形面積為 (a + b) × h / 2,菱形面積為a × h,圓柱體投影面積為d × h,圓形或圓球投影面積均為π× d × d / 4,其中d為直徑(diameter)、π為圓周率(circumference ratio)。在該些已知尺寸及面積計算公式的參考物件上,進行一個或一個以上之加工穿洞符號(processed hole mark)以貫穿該被選定幾何形狀的該參考物件,如第3圖可在長方形參考物件上加工為圓形、三角形(triangle)、正方形、星形(star)等幾何形狀的加工穿洞符號,該些加工穿洞符號是被分隔(isolated)開的,再以該些加工穿洞符號的洞數,協助該參考物件尺寸之確認,因選擇該固定幾何形狀的該參考物件,可以得知其面積計算公式,也由洞數與該參考物件之預設尺寸預先儲在電腦內之對照表(look up table)即可知道該參考物件之尺寸以作為在螢幕上量測待測物件尺寸之依據,並可省去人工輸入選定幾何形狀之參考物件之尺寸至電腦的麻煩並避免該參考物件尺寸輸入錯誤之可能。In order to achieve the above purpose, we can select any one or more of the geometric shapes that are easier to calculate the area, such as the square, triangle, rectangle, trapezia, lozenqe, a flat plate or a column of a circular, a star, a polygon, or a flat plate or a ball having a bump or a block on the top surface as a reference object, That is, any geometric shape corresponding to the area formula can be used as a reference object for measurement. First, the dimensions of the reference objects are preset as a, b, d and h as indicated in Fig. 2, and the square area is a × a, the rectangular area is a × b, and the area of the triangle is a × h / 2, trapezoidal The area is (a + b) × h / 2, the area of the diamond is a × h, the projected area of the cylinder is d × h, and the projected area of the circle or sphere is π × d × d / 4, where d is the diameter ( Diameter), π is the circumference ratio. On the reference object of the known size and area calculation formula, one or more processed hole marks are processed to penetrate the reference object of the selected geometry, as shown in FIG. The object is machined into a hole punching symbol of a geometric shape such as a circle, a triangle, a square, a star, etc., and the processed hole punching symbols are isolated, and then the holes are formed by the processing. The number of holes of the symbol assists the confirmation of the size of the reference object. The reference area of the fixed geometry is selected, and the area calculation formula is known, and the number of holes and the preset size of the reference object are pre-stored in the computer. The lookup table can know the size of the reference object as the basis for measuring the size of the object to be tested on the screen, and can save the trouble of manually inputting the size of the reference object of the selected geometry to the computer and avoiding the problem. Refer to the object size to enter the wrong possibility.

為使審查委員能對本發明之特徵、目的及功能有更進一步的認知與了解,茲配合圖式詳細解說如後。In order to enable the reviewing committee to have a further understanding and understanding of the features, objects and functions of the present invention, a detailed explanation will be given in conjunction with the drawings.

第1圖所示為依據本發明一實施例之一計算一幾何形狀且已預設尺寸之一參考物件面積作為平面拍攝量測之流程圖。該幾何形狀為該參考物件之外緣於一拍攝裝置之拍攝方向的平面投影。步驟S11為選取一已在電腦內預設尺寸之一參考物件放置在一拍攝背景上,以一拍攝裝置進行拍攝得到該參考物件影像存入電腦後再以電腦在一螢幕上作該參考物件與該拍攝背景之分離工作,如步驟S12,然後由電腦掃描該螢幕上該參考物件所涵蓋範圍之總像素數目,如步驟S13,再經由該參考物件存在電腦內預設之尺寸及面積計算公式即能算出每單位該參考物件長度所對應之像素數目,如步驟S14,接著保持該拍攝裝置之拍攝距離、鏡頭的放大/縮小與拍攝角度之固定,如步驟S15,同時放置一待測物件於該拍攝背景上並以該拍攝裝置對該待測物件拍攝並將完成之待測物件影像存入該電腦中,如步驟S16,即能在該螢幕上以像素數目量測出該待測物件上任意兩點之長度,如步驟S17。第1圖中之該參考物件上沒有任何的加工穿洞符號存在,不同之參考物件間無法辨別差異,使用不同之參考物件時,存入電腦之尺寸及面積計算公式要重設。實際量測時,可以先拍攝該待測物件以確認該待測物件影像範圍再進行參考物件拍攝,亦即第1圖中先執行S16、S15再執行S11、S12、S13、S14及S17。第2圖所示為依據本發明一實施例之一計算一幾何形狀且已預設尺寸之一參考物件面積作為平面拍攝量測之可能採用的平板狀、柱體或圓球之該參考物件的幾何形狀樣式。該參考物件可以是其他任何能以面積公式表示之幾何形狀之平板狀、平板狀上有凸點、塊狀或一柱體或圓球物件。該圓球則利用該拍攝裝置之拍攝方向的圓形投影作為該參考物件之總像素數目涵蓋範圍。圓形代表圓平板或圓球。FIG. 1 is a flow chart showing the calculation of a geometric shape and one of the preset sizes of the reference object area as a plane photographing measurement according to an embodiment of the present invention. The geometry is a planar projection of the reference object outside of the imaging direction of the camera. Step S11 is to select a reference object that has been preset in the computer to be placed on a shooting background, and take a shooting device to obtain the reference object image and store it in the computer, and then use the computer as the reference object on the screen. The separation of the shooting background is as shown in step S12, and then the computer scans the total number of pixels of the range covered by the reference object on the screen, as in step S13, and then the predetermined size and area calculation formula in the computer is stored via the reference object. The number of pixels corresponding to the length of the reference object can be calculated. In step S14, the shooting distance of the photographing device, the enlargement/reduction of the lens, and the shooting angle are fixed. In step S15, an object to be tested is placed at the same time. Shooting on the background and taking the object to be tested by the photographing device and storing the completed object image to be tested into the computer. In step S16, the object on the object to be tested can be measured in the number of pixels on the screen. The length of two points is as shown in step S17. In the first figure, there is no processing hole-piercing symbol on the reference object. Different reference objects cannot be distinguished. When using different reference objects, the calculation formula for the size and area of the computer is reset. In the actual measurement, the object to be tested may be photographed to confirm the image range of the object to be tested and then the reference object is photographed, that is, in the first figure, S16, S15 and S11, S12, S13, S14 and S17 are executed first. FIG. 2 is a diagram showing the reference object of a flat plate, a cylinder or a sphere which may be used as a plane photographing measurement for calculating a geometric shape and having a preset size according to an embodiment of the present invention. Geometric shape style. The reference object may be any other flat shape in the form of an area formula, a bump on a flat plate, a block or a cylinder or a ball object. The sphere uses the circular projection of the shooting direction of the camera as the total number of pixels of the reference object. The circle represents a round plate or a sphere.

第4圖所示為依據本發明一實施例之一計算一幾何形狀且已預設尺寸之一參考物件面積作為平面拍攝量測之垂直拍攝時之一參考物件及一待測物件之擺放方式。第4圖(a)將一參考物件1水平平放在一拍攝背景2上再由一拍攝裝置3對準該參考物件1拍攝。第4圖(b)則是該拍攝裝置3對準該待測物件4拍攝,再進行該待測物件之量測。FIG. 4 is a diagram showing a reference object and a method for placing an object to be tested when one of the geometrical shapes and one of the preset sizes is used as a plane photographing measurement according to an embodiment of the present invention. . In Fig. 4(a), a reference object 1 is placed horizontally on a shooting background 2 and then photographed by a photographing device 3 aligned with the reference object 1. FIG. 4(b) shows that the photographing device 3 is photographed in alignment with the object to be tested 4, and then the measurement of the object to be tested is performed.

第5圖所示為依據本發明一實施例之一計算一幾何形狀且已預設尺寸之一參考物件面積作為平面拍攝量測之水平拍攝時之一參考物件及一待測物件之擺放方式。第5圖(a)將一參考物件5貼在一條狀透明壓克力6上之垂掛方式以拍攝背景7為背景,並以該拍攝裝置3對準該參考物件5進行水平拍攝,其中該參考物件5之中間高度應為擬量測尺寸之一待測物件9之中間高度相同,在該條狀透明壓克力6上方開數個洞8作為調整該參考物件5高度之使用。第5圖(b)則是該拍攝裝置3對準該待測物件9之中間點拍攝,再進行該待測物件之量測。FIG. 5 is a diagram showing a reference object and a method for placing an object to be tested when calculating a geometric shape and one of the preset sizes is used as a plane shooting measurement according to an embodiment of the present invention. . Figure 5 (a) is a hanging manner of a reference object 5 attached to a strip of transparent acrylic 6 with the background of the photographing background 7, and the photographing device 3 is aligned with the reference object 5 for horizontal shooting, wherein the reference The middle height of the object 5 should be the same as the middle height of the object to be tested 9 which is to be measured, and a plurality of holes 8 are opened above the strip-shaped transparent acryl 6 as the use for adjusting the height of the reference object 5. Fig. 5(b) shows the photographing device 3 being photographed at an intermediate point of the object to be tested 9, and then measuring the object to be tested.

第1圖中分離該參考物件與該拍攝背景常用方法有以下三種: (1)該參考物件與該拍攝背景之亮度(brightness)差異進行分離。常見的色彩模式(color mode)有RGB、YIQ、HSV、YUV、YCbCr等,我們就取RGB色彩模式來說明,R為Red的縮寫;G為Green的縮寫;B為Blue的縮寫,將其轉為高灰階影像(gray image),利用以下公式將RGB轉換成YIQ,Y代表亮度(luminance);I(inphase)和Q(quadrature)代表兩種不同的色調。對高灰階影像,透過灰階分佈柱狀圖,如第12圖所示,利用波峰波谷的落差,使用蠻力法(brute-force),將影像二值化(binarization),灰階值低於t* 區間轉為黑色,將灰階值大於t* 區間轉為白色。藉此分離該拍攝背景及該參考物件,如第12圖所示。 (2)色鍵(chroma key)將RGB轉為YCbCr再依特徵值(feature value)進行該參考物件與該拍攝背景之分離。色鍵的詳細技術可參考文獻 [1] Keith Jack, “Video Demystified”, Independent Pub Group (Computer), 1996。色鍵主要用於電影、影片及遊戲相關產業。主要由綠幕、藍幕作為背景,調整背景色彩區間,將背景之顏色轉化為透明背景,進而替換背景。 (3)在電腦及螢幕上以人工去背(background removal)方式進行該參考物件與該拍攝背景之分離。There are three common methods for separating the reference object and the shooting background in Fig. 1: (1) The reference object is separated from the difference in brightness of the shooting background. Common color modes (RGB mode, YIQ, HSV, YUV, YCbCr, etc.), we take the RGB color mode to illustrate, R is the abbreviation of Red; G is the abbreviation of Green; B is the abbreviation of Blue, turn it For high gray image, RGB is converted to YIQ using the following formula, Y represents luminance; I (inphase) and Q (quadrature) represent two different tones. For high-gray images, through the gray-scale distribution histogram, as shown in Fig. 12, using the drop of the peak and valley, using the brute-force method, the image is binarized, and the gray scale value is low. Turns black in the t* interval and turns the grayscale value larger than the t* interval to white. Thereby separating the shooting background and the reference object, as shown in FIG. (2) The chroma key converts RGB to YCbCr and then separates the reference object from the shooting background according to the feature value. The detailed technique of the color key can be found in the literature [1] Keith Jack, "Video Demystified", Independent Pub Group (Computer), 1996. The color keys are mainly used in the movie, film and game related industries. Mainly by the green screen and the blue screen as the background, the background color interval is adjusted, and the background color is converted into a transparent background, thereby replacing the background. (3) Separating the reference object from the background of the photograph by manual removal on the computer and the screen.

第1圖所示掃描一螢幕上該參考物件所涵蓋之總像素數目,將在以下於該參考物件上加工一個或一個以上之貫穿該參考物件的加工穿洞符號時一併說明。又第1圖所示經由該參考物件所預設之尺寸及面積計算公式即能算出每單位該參考物件長度所對應之像素數目。以第2圖長方形為例,該參考物件為長方形,已預設邊長分別為a與b,面積為a × b。當掃描得知該參考物件所涵蓋之總像素數目時,將總像素數目除以b就等於長度a所對應之像素數目,再把對應之像素數目除以a就等於每單位該參考物件長度所對應之像素數目。第2圖所示之各不同幾何形狀之一參考物件,所標示之a、b、h、d都是預設值,由各自不同的面積計算公式及該參考物件所涵蓋之總像素數目,都可依上述算法算出每單位該參考物件長度所對應之像素數目,作為量測一待測物件尺寸時使用。The total number of pixels covered by the reference object on the scanning screen as shown in Fig. 1 will be described below when processing one or more processed hole-punching symbols through the reference object on the reference object. In addition, the size and area calculation formula preset by the reference object can be used to calculate the number of pixels corresponding to the length of the reference object per unit. Taking the rectangle of Fig. 2 as an example, the reference object is a rectangle, and the preset side lengths are a and b, respectively, and the area is a × b. When scanning to know the total number of pixels covered by the reference object, dividing the total number of pixels by b is equal to the number of pixels corresponding to the length a, and dividing the number of corresponding pixels by a is equal to the length of the reference object per unit. The number of pixels corresponding to it. The reference object of one of the different geometries shown in Fig. 2, the labeled a, b, h, and d are preset values, and the calculation formulas of different areas and the total number of pixels covered by the reference object are all The number of pixels corresponding to the length of the reference object per unit can be calculated according to the above algorithm, and is used as a measure of the size of the object to be tested.

第6圖(a)&(b)所示為依據本發明一實施例之一計算一幾何形狀且已預設尺寸之一參考物件面積作為平面拍攝量測時在一參考物件上加工穿洞符號,該參考物件的垂直(垂掛)與水平平放拍攝時擺放方式。其待測物件擺放方式與第4圖(b)與第5圖(b)相同。FIG. 6(a) and (b) are diagrams showing the processing of a hole-piercing symbol on a reference object when calculating a geometric shape and one of the preset sizes of the reference object area as a plane photographing measurement according to an embodiment of the present invention. , the vertical (hanging) of the reference object and the horizontal flat shooting mode. The objects to be tested are placed in the same manner as in Figures 4(b) and 5(b).

第7圖所示為依據本發明一實施例之一計算一幾何形狀且已預設尺寸之一參考物件面積作為平面拍攝量測時在該參考物件上加工穿洞符號之流程圖。第7圖與第1圖之間除第7圖之步驟S21、S23~S26載明加工穿洞符號的相關內容未記載於第1圖之步驟S11、S13~S14外,其餘均相同(例如步驟S22、S27~S29即相同於步驟S12、S15~S17),於此不再贅述。簡單來說,第7圖只用一個有加工穿洞符號之該參考物件與第1圖之功能相似,但當有多個該些參考物件上都有不同洞數時,該些參考物件上之洞數都能以對照表應用該些參考物件之不同尺寸、不同幾何圖形及不同面積計算公式。從不同洞數就對照並取出預先存在電腦內之前述資料,不會有錯誤,也能依不同待測物件大小直接放入近似尺寸有加工穿洞符號的參考物件。第8圖為第7圖步驟S23、S24的詳細說明之流程圖,而第11圖為第8圖中的掃描步驟的示意圖。第8圖先將一有加工穿洞符號的參考物件在一拍攝背景上開始由螢幕左上角,由左而右,由上而下進行整張圖片掃描,找出第一個拍攝背景區塊之像素,標記為區塊A,將鄰近此像素之拍攝背景像素也連續標記為區塊A,直到相鄰之像素沒有再發現拍攝背景為止,如以下第11圖(a)所示。FIG. 7 is a flow chart showing the processing of a hole-piercing symbol on the reference object when calculating a geometric shape and one of the preset sizes of the reference object area as a plane photographing measurement according to an embodiment of the present invention. Steps S21 and S23 to S26 of Fig. 7 are not described in the steps S11 and S13 to S14 of Fig. 1 except for the steps S21 and S23 to S26 in Fig. 7 (the steps are the same). S22 and S27 to S29 are the same as steps S12 and S15 to S17, and will not be described again. Briefly, Figure 7 uses only one reference object with a machined hole symbol similar to that of Figure 1, but when there are multiple reference objects on each of the reference objects, the reference objects are The number of holes can be calculated by using different sizes, different geometric shapes and different area calculations of the reference objects. The number of holes is compared and the aforementioned data in the pre-existing computer is taken out, there is no error, and the reference object having the approximate size of the processed hole-piercing symbol can be directly placed according to the size of the object to be tested. Fig. 8 is a flow chart showing the detailed description of steps S23 and S24 of Fig. 7, and Fig. 11 is a view showing the scanning step of Fig. 8. Figure 8 firstly scans the reference object with the processed hole-piercing symbol on the shooting background from the upper left corner of the screen, from left to right, and scans the entire image from top to bottom to find the first background block. The pixel, labeled as block A, also continuously marks the background pixel adjacent to the pixel as block A until the adjacent pixel has no longer found the background, as shown in FIG. 11(a) below.

接著,繼續找尋未被標記之像素(標記過之拍攝背景,將不再搜尋。如搜尋至第11圖(b)第一個加工穿洞符號最上緣時發現未被標記之拍攝背景區塊)。Then, continue to search for unmarked pixels (marked background will no longer be searched. If you search to the top of the first hole in the 11th figure (b), the unmarked background block is found.) .

然後,與找尋區塊A相同之作法,將拍攝背景標記為區塊B,且將鄰近區塊B之拍攝背景也標記為區塊B,如第11圖(c)所示。Then, in the same manner as the search for the block A, the photographing background is marked as the block B, and the photographing background of the adjacent block B is also marked as the block B as shown in Fig. 11(c).

之後,繼續找尋未被標記之區塊(標記過之拍攝背景,將不再搜尋。如搜尋至第11圖(d)第二個加工穿洞符號最上緣時發現未被標記之拍攝背景區塊)。After that, continue to search for unmarked blocks (marked backgrounds will not be searched. If you search to the top of the second processing hole symbol in Figure 11 (d), you will find unmarked background blocks. ).

同樣地,與找尋區塊A相同之作法,將拍攝背景標記為區塊C,且將鄰近區塊C之拍攝背景也標記為區塊C,如第11圖(e)所示。Similarly, in the same manner as the search for block A, the photographing background is marked as block C, and the photographing background of the adjacent block C is also marked as block C, as shown in Fig. 11(e).

然後,重複搜尋及標記區塊C的作法,將拍攝背景找出來並且標記為區塊D,如第11圖(f)所示。Then, the method of searching and marking block C is repeated, and the shooting background is found and labeled as block D, as shown in Fig. 11(f).

之後,已找出區塊A、B、C、D,將開放區塊A去除並得到三個區塊B、C、D,如第11圖(g)所示。Thereafter, blocks A, B, C, and D have been found, and the open block A is removed and three blocks B, C, and D are obtained, as shown in Fig. 11(g).

總之,只需掃描一次就能同時將區塊A及參考物件內之區塊B、C、D標示出,計算參考物件所涵蓋範圍內的總像素數目時將區塊B、C、D都計入。In summary, blocks B, C, and D in block A and the reference object can be simultaneously marked by scanning once, and blocks B, C, and D are counted when calculating the total number of pixels in the range covered by the reference object. In.

第7圖步驟S26依步驟S24取得之洞數,查對照表(look up table)取得該參考物件預設之尺寸及面積計算公式即能算出每單位該參考物件長度所對應之像素數目。不同洞數所對應之a、b、h等長度,可依該待測物件大小預設為任何相近尺寸如下,再套用該參考物件之面積計算公式進行計算。 對照表 In step S26 of step 7, according to the number of holes obtained in step S24, the lookup table obtains the preset size and area calculation formula of the reference object to calculate the number of pixels corresponding to the length of the reference object per unit. The lengths of a, b, h, etc. corresponding to different hole numbers can be preset to any similar size according to the size of the object to be tested as follows, and then the area calculation formula of the reference object is used for calculation. Chart

洞數除了可對照出該參考物件之尺寸外,也可以同時對照出其幾何形狀及面積計算公式。亦即不同之洞數在不同之該些參考物件上時能對照出不同之該些參考物件尺寸、不同之該些幾何形狀及不同之該些面積計算公式。使用者只要放入有加工穿洞符號之該些參考物件,就能自動完成每單位該參考物件長度所對應的像素數目。該加工穿洞符號可為任何形狀的分隔孔洞,例如:圓形、三角形、正方形、長方形、梯形、星形或多邊形。In addition to comparing the dimensions of the reference object, the number of holes can also be compared with the geometry and area calculation formula. That is, when the number of different holes is different on the reference objects, the calculation formulas of the reference object sizes, the different geometric shapes, and the different areas can be compared. The user can automatically complete the number of pixels corresponding to the length of the reference object per unit by simply placing the reference objects with the processed hole-punching symbols. The machined hole sign can be a separate hole of any shape, such as a circle, a triangle, a square, a rectangle, a trapezoid, a star, or a polygon.

第9圖所示為依據本發明一實施例之一計算一圓球投影成圓形且預設該圓球直徑之一參考物件面積作為平面拍攝量測之半球拍攝示意圖。第9圖(a)將一待測物件10放置在轉盤(turntable)11上,並以拍攝背景12為背景,將昇降平台(hoist platform)13上之雷射標示器(laser pointer)14,因昇降平台13調整高度使雷射標示器14對準該待測物件10之中心點。第9圖(b)之預設直徑d之一圓球15以透明線16懸吊固定在上方固定塊17上或以一透明柱由下方支撐圓球15,調整該圓球15高度至其中心點與雷射標示器14之雷射光(lazer ray)對準,並由架設在多手臂(multi-arm)、弧狀(arc)或圓弧(circular)架子(rack)上之多台拍攝裝置19~28對準該圓球15拍攝,並以各該些拍攝裝置19~28於不同角度所拍攝該圓球15的圓形投影面積作為該些拍攝裝置19~28各自量測用的參考物件面積。再由第9圖(a)上該些拍攝裝置19~28對該待測物件10進行拍攝,由轉盤11轉動至各角度拍攝,即能在各拍攝角度之完成影像中,量測該待測物件10上的任意兩點長度。FIG. 9 is a schematic diagram showing hemispherical shooting in which a sphere is projected into a circle and a reference object area of one of the sphere diameters is taken as a plane photographing measurement according to an embodiment of the present invention. Figure 9 (a) places an object to be tested 10 on a turntable 11 and sets the laser pointer 14 on the hoist platform 13 against the background of the photographing background 12. The lifting platform 13 adjusts the height so that the laser marker 14 is aligned with the center point of the object 10 to be tested. One of the preset diameters d of the first figure (b) is suspended from the upper fixed block 17 by a transparent wire 16 or the ball 15 is supported by a transparent column from below, and the height of the ball 15 is adjusted to the center point thereof. Aligned with the laser light of the laser marker 14 and mounted by a plurality of cameras 19 mounted on a multi-arm, arc or circular rack. ~28 is aligned with the ball 15 and the circular projected area of the ball 15 is taken at different angles by the respective imaging devices 19-28 as the reference object area for each of the imaging devices 19-28. . Then, the object to be tested 10 is photographed by the photographing devices 19 to 28 in FIG. 9( a), and is rotated by the turntable 11 to shoot at various angles, that is, the measured object can be measured in the completed image of each shooting angle. Any two points on the object 10 length.

第10圖所示為依據本發明一實施例之一計算一圓球投影或圓形且預設該圓形直徑之一參考物面積作為平面拍攝量測之全球拍攝示意圖。第10圖(a)&(b)的拍攝方法與第9圖除轉盤30放置上方,將該待測物件10吊掛空中由轉盤30帶動,作全球拍攝及雷射標示器31在中間高度外,其餘都相同。FIG. 10 is a schematic diagram showing the global shooting of a sphere projection or circle and presetting a reference area of the circular diameter as a plane photographing measurement according to an embodiment of the invention. The photographing method of Fig. 10(a) & (b) and Fig. 9 are placed above the turntable 30, and the object to be tested 10 is suspended in the air by the turntable 30 for global shooting and the laser marker 31 is at an intermediate height. The rest are the same.

綜合上述,本發明所提供的以計算一幾何形狀已預設尺寸之一參考物件面積作為平面拍攝量測的方法,不必像傳統必須拍攝有刻度的尺並以人工輸入其長度,較容易造成量測錯誤且量測不同待測物件尺寸時,必須重複上述過程,而本發明特別是在一參考物件上加工一個或一個以上之加工穿洞符號,在量測不同待測物件大小時,只要把具有不同洞數加工穿洞符號的該參考物件放入拍攝,就可自動完成每單位該參考物件長度所對應之像素數目,也不會發生錯誤。In summary, the method for calculating the reference object area of one geometrical shape has been used as a plane shooting measurement method, and it is not necessary to manually take a scaled ruler and manually input the length thereof, which is easier to cause. When the error is measured and the size of different objects to be tested is measured, the above process must be repeated, and the present invention processes one or more processed hole-piercing symbols on a reference object, and when measuring the size of different objects to be tested, When the reference object having the different hole number processing hole punching symbols is put into the shooting, the number of pixels corresponding to the length of the reference object per unit can be automatically completed without error.

另外,以上實施例都是以先拍攝參考物件再拍攝待測物件舉例說明。然而,所屬技術領域中具有通常知識者應該都能理解到,在不調整拍攝距離、鏡頭的放大/縮小與拍攝角度的情況下,先拍攝待測物件再拍攝參考物件不但也能夠達到本發明所欲達成的功效,更可確保參考物件在拍攝時不會超出拍攝裝置的拍攝範圍。也就是說,第1圖中步驟S16能和步驟S11~14對調,而第7圖中的步驟S28也能和步驟S21~S26對調。因此,先拍攝待測物件再拍攝參考物件的實例也應該要包含在本發明所請求的範圍內。In addition, the above embodiments are exemplified by taking a reference object first and then photographing the object to be tested. However, those of ordinary skill in the art should understand that, without adjusting the shooting distance, zooming in/out of the lens, and shooting angle, first photographing the object to be tested and then photographing the reference object can not only achieve the present invention. The effect to be achieved ensures that the reference object does not exceed the shooting range of the camera when shooting. That is to say, step S16 in Fig. 1 can be reversed with steps S11 to 14, and step S28 in Fig. 7 can also be reversed with steps S21 to S26. Therefore, an example of first taking an object to be tested and then photographing the reference object should also be included in the scope of the present invention.

本發明所提供的用於平面拍攝的長度量測方法包括,但不僅限於以下兩種: 1. 將一個參考物件放置在一個拍攝背景前,其中參考物件具有一個預設尺寸之一個幾何形狀,幾何形狀能以一個面積計算公式表示,且預設尺寸與面積計算公式均預先存入一台電腦中;由一個拍攝裝置拍攝參考物件和拍攝背景,以形成一個參考影像;將參考影像存入電腦內並顯示在電腦的一個螢幕上;將參考影像分離為一個參考物件影像與一個拍攝背景影像,並使參考物件影像顯示在螢幕上;由電腦掃描參考物件影像的一個涵蓋範圍,並計算涵蓋範圍中之總像素數目,再由電腦依預設尺寸及面積計算公式算出參考物件影像的一個單位長度所對應之像素數目;將一個待測物件放置在拍攝背景前,並由拍攝裝置拍攝待測物件和拍攝背景,以形成一個待測物件影像,並將待測物件影像存入電腦中;以及在螢幕上顯示待測物件影像並標記待測物件影像中的任兩點,其中這兩點間的一個實際長度和單位長度的一個比值實質上等於這兩點間所對應像素數目和單位長度所對應像素數目的一個比值。 2. 將一個參考物件放置在一個拍攝背景前,其中參考物件具有一個預設尺寸之一個幾何形狀,幾何形狀能以一個面積計算公式表示,參考物件上並具有至少一個加工穿洞符號,且預設尺寸、面積計算公式以及預設有加工穿洞符號的洞數間相對關係的一個對照表均預先存入一台電腦中;由一個拍攝裝置拍攝參考物件和拍攝背景,以形成一個參考影像;將參考影像存入電腦內並顯示在電腦的一個螢幕上;將參考影像分離為一個參考物件影像與一個拍攝背景影像,並使參考物件影像顯示在螢幕上;由電腦掃描參考物件影像的一個涵蓋範圍,並計算涵蓋範圍中之總像素數目,同時標記參考物件影像上之加工穿洞符號並計算洞數,以經由對照表得知預設尺寸,再由電腦依預設尺寸及面積計算公式算出參考物件影像的一個單位長度所對應之像素數目;將一個待測物件放置在拍攝背景前,並由拍攝裝置拍攝待測物件和拍攝背景,以形成一個待測物件影像,並將待測物件影像存入電腦中;以及在螢幕上顯示待測物件影像並標記待測物件影像中的任兩點,其中這兩點間的一個實際長度和單位長度的一個比值實質上等於這兩點間所對應像素數目和單位長度所對應像素數目的一個比值。The length measurement method for planar shooting provided by the present invention includes, but is not limited to, the following two types: 1. placing a reference object in front of a shooting background, wherein the reference object has a geometric shape of a predetermined size, geometry The shape can be expressed by an area calculation formula, and the preset size and area calculation formula are pre-stored in one computer; the reference object and the shooting background are taken by one shooting device to form a reference image; the reference image is stored in the computer And displayed on a screen of the computer; separating the reference image into a reference object image and a shooting background image, and displaying the reference object image on the screen; scanning a range of the reference object image by the computer, and calculating the coverage range The total number of pixels, and then the computer calculates the number of pixels corresponding to one unit length of the reference object image according to the preset size and area calculation formula; placing an object to be tested before the shooting background, and taking the object to be tested by the photographing device and Shoot the background to form an image of the object to be tested, and the object to be tested The image is stored in the computer; and the image of the object to be tested is displayed on the screen and marks any two points in the image of the object to be tested, wherein a ratio of an actual length to a unit length between the two points is substantially equal to the two points A ratio of the number of pixels corresponding to the number of pixels corresponding to the unit length. 2. Place a reference object in front of a shooting background, wherein the reference object has a geometry of a preset size, the geometry can be represented by an area calculation formula, and the reference object has at least one machined hole symbol and A comparison table of the size, area calculation formula and the relative relationship between the number of holes pre-formed with the hole punching symbol is pre-stored in a computer; the reference object and the shooting background are photographed by a photographing device to form a reference image; The reference image is stored in the computer and displayed on a screen of the computer; the reference image is separated into a reference object image and a background image, and the reference object image is displayed on the screen; a cover of the reference object image is scanned by the computer Range, and calculate the total number of pixels in the coverage range, and mark the hole punching symbol on the reference object image and calculate the number of holes to know the preset size through the comparison table, and then calculate the formula according to the preset size and area calculation by the computer. The number of pixels corresponding to one unit length of the reference object image; The object is placed in front of the shooting background, and the object to be tested and the background are photographed by the camera to form an image of the object to be tested, and the image of the object to be tested is stored in the computer; and the image of the object to be tested is displayed on the screen and marked for Measuring any two points in the object image, wherein a ratio of an actual length to a unit length between the two points is substantially equal to a ratio of the number of pixels corresponding to the two points and the number of pixels corresponding to the unit length.

1、5‧‧‧參考物件1, 5‧‧‧ reference objects

2、7、12‧‧‧拍攝背景2, 7, 12 ‧ ‧ shooting background

3、19~28‧‧‧拍攝裝置3, 19 ~ 28 ‧ ‧ camera

4、9、10‧‧‧待測物件4, 9, 10‧‧‧ Items to be tested

6‧‧‧條狀透明壓克力6‧‧‧ Strip transparent acrylic

8‧‧‧洞8‧‧‧ hole

11、30‧‧‧轉盤11, 30‧‧ ‧ turntable

13‧‧‧昇降平台13‧‧‧ Lifting platform

14、31‧‧‧雷射標示器14, 31‧‧ ‧ laser marker

15‧‧‧圓球15‧‧‧ sphere

16‧‧‧透明線16‧‧‧Transparent line

17‧‧‧固定塊17‧‧‧Fixed blocks

A、B、C、D‧‧‧區塊Blocks A, B, C, D‧‧

d‧‧‧直徑D‧‧‧diameter

S11~S17、S21~S29‧‧‧步驟S11~S17, S21~S29‧‧‧ steps

第1圖所示為依據本發明一實施例之一計算一幾何形狀且已預設尺寸之一參考物件面積作為平面拍攝量測之流程圖。FIG. 1 is a flow chart showing the calculation of a geometric shape and one of the preset sizes of the reference object area as a plane photographing measurement according to an embodiment of the present invention.

第2圖所示為依據本發明一實施例之一計算一幾何形狀且已預設尺寸之一參考物件面積作為平面拍攝量測之可能採用的平板狀、柱體或圓球之該參考物件的幾何形狀樣式。FIG. 2 is a diagram showing the reference object of a flat plate, a cylinder or a sphere which may be used as a plane photographing measurement for calculating a geometric shape and having a preset size according to an embodiment of the present invention. Geometric shape style.

第3圖為加工穿洞符號的示意圖。Figure 3 is a schematic diagram of the processing of the hole punching symbol.

第4圖所示為依據本發明一實施例之一計算一幾何形狀且已預設尺寸之一參考物件面積作為平面拍攝量測之垂直拍攝時之一參考物件及一待測物件之擺放方式。FIG. 4 is a diagram showing a reference object and a method for placing an object to be tested when one of the geometrical shapes and one of the preset sizes is used as a plane photographing measurement according to an embodiment of the present invention. .

第5圖所示為依據本發明一實施例之一計算一幾何形狀且已預設尺寸之一參考物件面積作為平面拍攝量測之水平拍攝時之一參考物件及一待測物件之擺放方式。FIG. 5 is a diagram showing a reference object and a method for placing an object to be tested when calculating a geometric shape and one of the preset sizes is used as a plane shooting measurement according to an embodiment of the present invention. .

第6圖(a)&(b)所示為依據本發明一實施例之一計算一幾何形狀且已預設尺寸之一參考物件面積作為平面拍攝量測時在一參考物件上加工穿洞符號,該參考物件的垂直(垂掛)與水平平放拍攝時擺放方式。FIG. 6(a) and (b) are diagrams showing the processing of a hole-piercing symbol on a reference object when calculating a geometric shape and one of the preset sizes of the reference object area as a plane photographing measurement according to an embodiment of the present invention. , the vertical (hanging) of the reference object and the horizontal flat shooting mode.

第7圖所示為依據本發明一實施例之一計算一幾何形狀且已預設尺寸之一參考物件面積作為平面拍攝量測時在該參考物件上加工穿洞符號之流程圖。FIG. 7 is a flow chart showing the processing of a hole-piercing symbol on the reference object when calculating a geometric shape and one of the preset sizes of the reference object area as a plane photographing measurement according to an embodiment of the present invention.

第8圖為第7圖步驟S23、S24的詳細說明之流程圖。Fig. 8 is a flow chart showing the detailed description of steps S23 and S24 of Fig. 7.

第9圖所示為依據本發明一實施例之一計算一圓球投影成圓形且預設該圓球直徑之一參考物件面積作為平面拍攝量測之半球拍攝示意圖。FIG. 9 is a schematic diagram showing hemispherical shooting in which a sphere is projected into a circle and a reference object area of one of the sphere diameters is taken as a plane photographing measurement according to an embodiment of the present invention.

第10圖所示為依據本發明一實施例之一計算一圓球投影或圓形且預設該圓形直徑之一參考物面積作為平面拍攝量測之全球拍攝示意圖。FIG. 10 is a schematic diagram showing the global shooting of a sphere projection or circle and presetting a reference area of the circular diameter as a plane photographing measurement according to an embodiment of the invention.

第11圖為第8圖中的掃描步驟的示意圖。Figure 11 is a schematic illustration of the scanning step in Figure 8.

第12圖為將高灰階影像分離成拍攝背景影像及參考物件影像的示意圖。Figure 12 is a schematic diagram of separating a high grayscale image into a background image and a reference object image.

Claims (12)

一種用於平面拍攝的長度量測方法,包括: 將一參考物件放置在一拍攝背景前,其中該參考物件具有一預設尺寸之一幾何形狀,該幾何形狀能以一面積計算公式表示,且該預設尺寸與該面積計算公式均預先存入一電腦中; 由一拍攝裝置拍攝該參考物件和該拍攝背景,以形成一參考影像; 將該參考影像存入該電腦內並顯示在該電腦的一螢幕上; 將該參考影像分離為一參考物件影像與一拍攝背景影像,並使該參考物件影像顯示在該螢幕上; 由該電腦掃描該參考物件影像的一涵蓋範圍,並計算該涵蓋範圍中之總像素數目,再由該電腦依該預設尺寸及該面積計算公式算出該參考物件影像的一單位長度所對應之像素數目; 將一待測物件放置在該拍攝背景前,並由該拍攝裝置拍攝該待測物件和該拍攝背景,以形成一待測物件影像,並將該待測物件影像存入該電腦中;以及 在該螢幕上顯示該待測物件影像並標記該待測物件影像中的任兩點,其中該兩點間的一實際長度和該單位長度的一比值實質上等於該兩點間所對應像素數目和該單位長度所對應像素數目的一比值。A length measuring method for planar shooting, comprising: placing a reference object in front of a shooting background, wherein the reference object has a geometric shape of a predetermined size, the geometric shape can be expressed by an area calculation formula, and The preset size and the area calculation formula are pre-stored in a computer; the reference object and the shooting background are captured by a camera to form a reference image; the reference image is stored in the computer and displayed on the computer Separating the reference image into a reference object image and a shooting background image, and displaying the reference object image on the screen; scanning a range of the reference object image by the computer, and calculating the coverage The total number of pixels in the range, and the computer calculates the number of pixels corresponding to a unit length of the reference object image according to the preset size and the area calculation formula; placing an object to be tested before the shooting background, and The photographing device captures the object to be tested and the photographing background to form an image of the object to be tested, and deposits the image of the object to be tested In the computer; and displaying the image of the object to be tested on the screen and marking any two points in the image of the object to be tested, wherein a ratio between an actual length and the unit length between the two points is substantially equal to the two points A ratio of the number of corresponding pixels to the number of pixels corresponding to the unit length. 如申請專利範圍第1項所述之用於平面拍攝的長度量測方法,其中該參考物件為頂面呈平坦表面或頂面上具有凸點、塊狀之平板或柱體,而該幾何形狀為該參考物件之一外緣於該拍攝裝置的一拍攝方向上的一平面投影,並且呈三角形、正方形、長方形、梯形、菱形、圓形、星形或多邊形。The length measuring method for plane shooting according to claim 1, wherein the reference object is a flat surface or a flat plate or a cylinder having a bump on the top surface, and the geometric shape is One of the outer edges of the reference object is projected on a plane in a shooting direction of the photographing device, and is triangular, square, rectangular, trapezoidal, diamond, circular, star or polygonal. 如申請專利範圍第1項所述之用於平面拍攝的長度量測方法,其中將該參考影像分離為該參考物件影像與該拍攝背景影像包括採該參考物件影像與該拍攝背景影像之亮度差異或採色鍵之特徵值或採人工去背。The method for length measurement for plane shooting according to claim 1, wherein separating the reference image into the reference object image and the shooting background image comprises using a brightness difference between the reference object image and the shooting background image. Or the characteristic value of the color key or manual back. 如申請專利範圍第1項所述之用於平面拍攝的長度量測方法,其中該參考物件之放置可為水平方向平放方式或垂直方向垂掛方式。The length measuring method for plane shooting according to claim 1, wherein the reference object is placed in a horizontally horizontal manner or a vertically suspended manner. 如申請專利範圍第2項所述之用於平面拍攝的長度量測方法,其中該參考物件為一圓球,並且該拍攝裝置從多個拍攝角度進行半球或全球拍攝,以從該些拍攝角度量測該待測物件。The length measuring method for plane shooting according to claim 2, wherein the reference object is a ball, and the photographing device performs hemisphere or global shooting from a plurality of shooting angles to obtain an amount from the shooting angles. Measure the object to be tested. 如申請專利範圍第5項所述之用於平面拍攝的長度量測方法,其中該圓球以吊掛或以一透明柱由下方支撐方式放置。The length measuring method for plane shooting as described in claim 5, wherein the ball is placed by hanging or supported by a transparent column. 一種用於平面拍攝的長度量測方法,包括: 將一參考物件放置在一拍攝背景前,其中該參考物件具有一預設尺寸之一幾何形狀,該幾何形狀能以一面積計算公式表示,該參考物件上並具有至少一加工穿洞符號,該預設尺寸、該面積計算公式以及預設有該加工穿洞符號的洞數間相對關係的一對照表均預先存入一電腦中; 由一拍攝裝置拍攝該參考物件和該拍攝背景,以形成一參考影像; 將該參考影像存入該電腦內並顯示在該電腦的一螢幕上; 將該參考影像分離為一參考物件影像與一拍攝背景影像,並使該參考物件影像顯示在該螢幕上; 由該電腦掃描該參考物件影像的一涵蓋範圍,並計算該涵蓋範圍中之總像素數目,同時標記該參考物件影像上之該加工穿洞符號並計算該洞數,以經由該對照表得知該預設尺寸,再由該電腦依該預設尺寸及該面積計算公式算出該參考物件影像的一單位長度所對應之像素數目; 將一待測物件放置在該拍攝背景前,並由該拍攝裝置拍攝該待測物件和該拍攝背景,以形成一待測物件影像,並將該待測物件影像存入該電腦中;以及 在該螢幕上顯示該待測物件影像並標記該待測物件影像中的任兩點,其中該兩點間的一實際長度和該單位長度的一比值實質上等於該兩點間所對應像素數目和該單位長度所對應像素數目的一比值。A length measuring method for planar shooting, comprising: placing a reference object in front of a shooting background, wherein the reference object has a geometric shape of a predetermined size, and the geometric shape can be expressed by an area calculation formula, The reference object has at least one processing hole-piercing symbol, and the comparison table, the area calculation formula and a comparison table pre-set the relative relationship between the holes of the processing hole-piercing symbols are pre-stored in a computer; The photographing device captures the reference object and the photographing background to form a reference image; the reference image is stored in the computer and displayed on a screen of the computer; and the reference image is separated into a reference object image and a shooting background And displaying the reference object image on the screen; scanning a range of the reference object image by the computer, and calculating a total number of pixels in the coverage area, and marking the processing through hole on the reference object image And calculating the number of holes to learn the preset size via the comparison table, and then calculating, by the computer, the preset size and the area Calculating a number of pixels corresponding to a unit length of the reference object image; placing an object to be tested before the shooting background, and taking the object to be tested and the shooting background by the photographing device to form an image of the object to be tested And storing the image of the object to be tested into the computer; and displaying the image of the object to be tested on the screen and marking any two points in the image of the object to be tested, wherein an actual length between the two points and the unit A ratio of the length is substantially equal to a ratio of the number of pixels corresponding between the two points and the number of pixels corresponding to the unit length. 如申請專利範圍第7項所述之用於平面拍攝的長度量測方法,其中該加工穿洞符號之形狀可為圓形、三角形、正方形、長方型、梯形、星形或多邊形。The length measuring method for plane shooting according to claim 7, wherein the shape of the machined hole symbol may be a circle, a triangle, a square, a rectangle, a trapezoid, a star or a polygon. 如申請專利範圍第7項所述之用於平面拍攝的長度量測方法,其中將該參考影像分離為該參考物件影像與該拍攝背景影像包括採該參考物件影像與該拍攝背景影像之亮度差異或採色鍵之特徵值或採人工去背。The length measuring method for plane shooting according to claim 7 , wherein separating the reference image into the reference object image and the shooting background image comprises using a brightness difference between the reference object image and the shooting background image. Or the characteristic value of the color key or manual back. 如申請專利範圍第7項所述之用於平面拍攝的長度量測方法,其中該參考物件之放置可為水平方向平放方式或垂直方向垂掛方式。The length measuring method for plane shooting according to claim 7, wherein the reference object is placed in a horizontally horizontal manner or a vertically suspended manner. 如申請專利範圍第7項所述之用於平面拍攝的長度量測方法,其中該參考物件的數量為多個,並且不同之該些參考物件上具有不同的該洞數,以經由該對照表對照出不同之該預設尺寸、該幾何形狀及該面積計算公式。The length measuring method for plane shooting according to claim 7, wherein the number of the reference objects is plural, and different reference objects have different numbers of holes to pass through the comparison table. The formula is calculated by comparing the preset size, the geometry, and the area. 如申請專利範圍第7項所述之用於平面拍攝的長度量測方法,其中該參考物件為頂面呈平坦表面或頂面上具有凸點、塊狀之平板或柱體,而該幾何形狀為該參考物件之一外緣於該拍攝裝置的一拍攝方向上的一平面投影,並且呈三角形、正方形、長方形、梯形、菱形、圓形、星形或多邊形。The length measuring method for plane shooting according to claim 7, wherein the reference object is a flat surface or a flat plate or a cylinder having a bump on the top surface, and the geometric shape is One of the outer edges of the reference object is projected on a plane in a shooting direction of the photographing device, and is triangular, square, rectangular, trapezoidal, diamond, circular, star or polygonal.
TW105132506A 2016-10-07 2016-10-07 Method of length measurement for 2d photography TWI621827B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
TW105132506A TWI621827B (en) 2016-10-07 2016-10-07 Method of length measurement for 2d photography
JP2017021601A JP2018059890A (en) 2016-10-07 2017-02-08 Length measurement method to be used in two-dimensional shot picture
KR1020170018617A KR20180038942A (en) 2016-10-07 2017-02-10 Method of length measurement for 2d photography

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW105132506A TWI621827B (en) 2016-10-07 2016-10-07 Method of length measurement for 2d photography

Publications (2)

Publication Number Publication Date
TW201814240A true TW201814240A (en) 2018-04-16
TWI621827B TWI621827B (en) 2018-04-21

Family

ID=61909931

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105132506A TWI621827B (en) 2016-10-07 2016-10-07 Method of length measurement for 2d photography

Country Status (3)

Country Link
JP (1) JP2018059890A (en)
KR (1) KR20180038942A (en)
TW (1) TWI621827B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110540042A (en) * 2019-10-11 2019-12-06 宁夏广天夏电子科技有限公司 Belt feeder material piles up detecting system based on three-dimensional image and video technology
CN112509028A (en) * 2020-11-18 2021-03-16 中铁第五勘察设计院集团有限公司 Method and apparatus for estimating window area
CN112419392A (en) * 2020-11-30 2021-02-26 广州博进信息技术有限公司 Method, apparatus and medium for calculating actual size of moving object based on machine vision
CN112817840B (en) * 2020-12-30 2024-01-26 交控科技股份有限公司 Switch checking column and checking block gap measuring method and device based on camera
CN116888430A (en) * 2021-05-31 2023-10-13 京东方科技集团股份有限公司 Distance measuring method, distance measuring device and computer program product

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09318351A (en) * 1996-05-24 1997-12-12 Kokusai Electric Co Ltd Distance survey apparatus and size measuring method of object
TW200821552A (en) * 2006-11-01 2008-05-16 Altek Corp Method for calculating distance and actual size of shot object
JP4848312B2 (en) * 2007-05-17 2011-12-28 綜合警備保障株式会社 Height estimating apparatus and height estimating method
US8419564B1 (en) * 2011-10-31 2013-04-16 Karsten Manufacturing Corporation Adjustable length golf clubs and methods of manufacturing adjustable length golf clubs
JP2013257283A (en) * 2012-06-14 2013-12-26 Mitsubishi Electric Corp Length measuring device and length measuring method
US8885916B1 (en) * 2014-03-28 2014-11-11 State Farm Mutual Automobile Insurance Company System and method for automatically measuring the dimensions of and identifying the type of exterior siding
CN104949617B (en) * 2014-03-31 2018-06-08 大猩猩科技股份有限公司 For the object three-dimensional dimension estimating system and method for object encapsulation
JP2016076167A (en) * 2014-10-08 2016-05-12 ソニー株式会社 Information processor and information processing method

Also Published As

Publication number Publication date
TWI621827B (en) 2018-04-21
KR20180038942A (en) 2018-04-17
JP2018059890A (en) 2018-04-12

Similar Documents

Publication Publication Date Title
TWI621827B (en) Method of length measurement for 2d photography
US10083522B2 (en) Image based measurement system
US9989952B2 (en) Image calibration
US10151664B2 (en) Method and system for measuring lens distortion
CN105279372B (en) A kind of method and apparatus of determining depth of building
CN103759638B (en) A kind of part detection method
CN108760767A (en) Large-size LCD Screen defect inspection method based on machine vision
US20140098244A1 (en) Calibrated image display
US8238640B2 (en) Display testing apparatus and method
KR20070008652A (en) Method for extracting raw data of a photographed image
TW200421857A (en) Method and apparatus for optical inspecting of a display
CN105096348B (en) The device and method of tint plate in detection image
US10298780B2 (en) Long range image calibration
US20180108136A1 (en) Method of length measurement for 2d photography
CN108846796A (en) Image split-joint method and electronic equipment
JP5771423B2 (en) Image color correction apparatus and image color correction method
CN108538246A (en) Display screen matrix data capture method and device, pixel compensation method and system
CN107644442B (en) Spatial position calibration method of double-camera module
JP2002328096A (en) Program, method, and system for detecting crack defect generated on structure
TWI610282B (en) Method and system for modular display frame
CN108254380A (en) PCB circuit board template matching method based on Digital Image Processing
GB2554903A (en) Method of length measurement for 2D photography
JPH05215547A (en) Method for determining corresponding points between stereo images
CN107967698A (en) Length method for measurement for plane shooting
JP2017150907A (en) Dimension measuring device

Legal Events

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