TWI408343B - Method for estimating related information corresponding to an object and image capturing device thereof - Google Patents

Method for estimating related information corresponding to an object and image capturing device thereof Download PDF

Info

Publication number
TWI408343B
TWI408343B TW98121174A TW98121174A TWI408343B TW I408343 B TWI408343 B TW I408343B TW 98121174 A TW98121174 A TW 98121174A TW 98121174 A TW98121174 A TW 98121174A TW I408343 B TWI408343 B TW I408343B
Authority
TW
Taiwan
Prior art keywords
standard
height
tested
image
distance
Prior art date
Application number
TW98121174A
Other languages
Chinese (zh)
Other versions
TW201100763A (en
Inventor
Chia Wei Jao
Original Assignee
Compal Communications Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Compal Communications Inc filed Critical Compal Communications Inc
Priority to TW98121174A priority Critical patent/TWI408343B/en
Publication of TW201100763A publication Critical patent/TW201100763A/en
Application granted granted Critical
Publication of TWI408343B publication Critical patent/TWI408343B/en

Links

Landscapes

  • Studio Devices (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

A method includes providing a standard distance value, a standard object, a first image of the standard object which keeps the standard distance from an image capturing device, and a real size of the standard object; the image capturing device capturing a second image; marking a determined object within the second image; inputting an estimated value corresponding to the determined object, and the image capturing device calculating a related value corresponding to the determined object according to the first image and the real size of the standard object, the second image of the determined object, the standard distance, and the estimated value.

Description

用來預估待測物件相關資訊之方法及其相關攝像裝置Method for estimating information related to an object to be tested and related camera device

本發明係關於一種預估方法及其相關攝像裝置,尤指一種用來預估待測物件相關資訊之方法及其相關攝像裝置。The present invention relates to an estimation method and related camera device, and more particularly to a method for estimating information related to an object to be tested and related camera devices.

隨著資訊工業的蓬勃發展,同時也將資訊相關產品應用於日常生活或工作中,取代傳統類比式產品,帶領使用者進入數位化的世界中,舉例來說,數位相機就是一個相當具代表性的例子,一般傳統光學相機係利用底片上化學物質感光特性來記錄影像,之後,經過顯影等繁雜過程方能將影像呈現於使用者面前。再者,若使用者想要拍攝擁有特殊效果的照片,還必須仔細地控制光圈、快門、使用特殊濾鏡或沖洗成像技術等方式,對於不善於相機操作的使用者係相當地不便。有別於傳統光學相機,數位相機係以數位化的方式紀錄影像資訊,數位相機使用光感測器將影像轉換為數位訊號,且以電腦圖檔格式儲存於記憶裝置中,如此數位相機即可與電腦系統連接並將影像儲存於硬碟中,同時亦可於顯示器上顯示影像及由印表機輸出影像內容,因此可以立即觀賞到拍攝的成果。此外,使用者可利用影像處理工具對數位相機所紀錄之影像實施進一步的處理,同樣可以做出傳統光學相機所能拍攝出的特殊效果,甚至做出傳統相機所無法處理的效果,然而目前數位相機之功能也就僅限於上述的影像處理,也就是說,當使用者利用數位相機拍攝影像時,使用者僅能就數位相機所擷取到的數位照片進行特殊效果的影像編輯或修改,但是卻無法從其所擷取到的數位照片得到進一步的相關資訊,如照片內物體之尺寸或是相對距離等。With the booming of the information industry, it also applies information-related products to daily life or work, replacing traditional analog products and leading users into the digital world. For example, digital cameras are quite representative. For example, in the conventional optical camera, the photographic characteristics of the chemical on the film are used to record the image, and then the image is presented to the user through complicated processes such as development. Furthermore, if the user wants to take a photo with special effects, he or she must carefully control the aperture, shutter, special filter or image processing technique, which is quite inconvenient for users who are not good at camera operation. Unlike traditional optical cameras, digital cameras record image information in a digital manner. Digital cameras use optical sensors to convert images into digital signals and store them in a memory device in a computer image format. It can be connected to a computer system and store images on a hard disk. It can also display images on the monitor and output image content from the printer, so you can immediately see the results. In addition, the user can use the image processing tool to further process the image recorded by the digital camera, and can also make the special effects that the traditional optical camera can take, and even the effect that the conventional camera cannot handle, but the current digital The function of the camera is limited to the above image processing, that is, when the user uses the digital camera to shoot images, the user can only perform special effect image editing or modification on the digital photos captured by the digital camera, but However, it is impossible to obtain further relevant information from the digital photos that it has taken, such as the size or relative distance of the objects in the photos.

本發明係提供一種用來預估待測物件相關資訊之方法,其包含有:提供一標準距離、一標準物件、與一攝像裝置相距該標準距離之相對應該標準物件之一第一影像,以及該標準物件之一實際尺寸;該攝像裝置擷取一第二影像;於該第二影像中標定一待測物件;輸入對應該待測物件之一預估值;以及該攝像裝置根據相對應該標準物件之該第一影像與該實際尺寸、該待測物件之該第二影像、該標準距離,以及該預估值計算出對應該待測物件之一相關數值。The present invention provides a method for estimating information related to an object to be tested, comprising: providing a standard distance, a standard object, a first image corresponding to the standard object at a standard distance from a camera device, and The actual size of the standard object; the camera captures a second image; calibrates an object to be tested in the second image; inputs an estimated value corresponding to one of the objects to be tested; and the camera device according to the corresponding standard The first image of the object and the actual size, the second image of the object to be tested, the standard distance, and the estimated value calculate a correlation value corresponding to one of the objects to be tested.

本發明另提供一種可預估待測物件相關資訊之攝像裝置,其包含有一儲存單元,其係用來紀錄一標準物件之一第一影像、一標準距離,以及該標準物件之一實際尺寸;一影像擷取單元,其係連接於該儲存單元,該影像擷取單元係用來擷取一第二影像並儲存該第二影像至該儲存單元;一使用者介面,其係用來於該第二影像中標定一待測物件以及輸入對應該待測物件之一預估值;以及一計算單元,其係連接於該儲存單元以及該使用者介面,該計算單元係用來根據該標準物件之該第一影像與該實際尺寸、該待測物件之該第二影像、該標準距離,以及該預估值計算出對應該待測物件之一相關數值。The invention further provides an image capturing device capable of predicting information about an object to be tested, which comprises a storage unit for recording a first image of a standard object, a standard distance, and an actual size of one of the standard objects; An image capture unit is coupled to the storage unit, the image capture unit is configured to capture a second image and store the second image to the storage unit; a user interface is used for the image capture unit Aligning an object to be tested and inputting an estimated value corresponding to the object to be tested; and calculating a unit connected to the storage unit and the user interface, wherein the calculating unit is used according to the standard object The first image and the actual size, the second image of the object to be tested, the standard distance, and the estimated value calculate a correlation value corresponding to one of the objects to be tested.

請參閱第1圖,第1圖為本發明一攝像裝置10之功能方塊圖。攝像裝置10係可為一數位相機,攝像裝置10包含有一儲存單元12、一影像擷取單元14、一使用者介面16、以及一計算單元18。儲存單元12係用來紀錄一標準物件之一第一影像、一標準距離,以及該標準物件之一實際尺寸。影像擷取單元14係連接於儲存單元12,影像擷取單元14係用來與該標準物件相距該標準距離擷取對應該標準物件之該第一影像以及擷取一第二影像並儲存該第二影像至儲存單元12。使用者介面16係用來於該第二影像中標定一待測物件以及輸入對應該待測物件之一預估值。計算單元18係電連接於儲存單元12以及使用者介面16,計算單元18係用來根據該標準物件之該第一影像與該實際尺寸、該待測物件之該第二影像、該標準距離,以及該預估值所計算出對應該待測物件之一相關數值,計算單元18係可為內建於攝像裝置10中之一計算軟體。Please refer to FIG. 1. FIG. 1 is a functional block diagram of a camera device 10 according to the present invention. The camera device 10 can be a digital camera. The camera device 10 includes a storage unit 12, an image capturing unit 14, a user interface 16, and a computing unit 18. The storage unit 12 is used to record a first image of a standard object, a standard distance, and an actual size of one of the standard objects. The image capturing unit 14 is connected to the storage unit 12, and the image capturing unit 14 is configured to capture the first image corresponding to the standard object from the standard object and capture a second image and store the first image. The second image is to the storage unit 12. The user interface 16 is configured to calibrate an object to be tested in the second image and input an estimated value corresponding to one of the objects to be tested. The computing unit 18 is electrically connected to the storage unit 12 and the user interface 16, and the computing unit 18 is configured to use the first image of the standard object and the actual size, the second image of the object to be tested, and the standard distance. And the estimated value is calculated as a value corresponding to one of the objects to be tested, and the calculating unit 18 is a computing software built into the camera device 10.

接著請參閱第2圖,第2圖為本發明第一實施例用來預估待測物件之高度之方法之流程圖,其方法包含下列步驟。Referring to FIG. 2, FIG. 2 is a flow chart of a method for estimating the height of an object to be tested according to a first embodiment of the present invention, the method comprising the following steps.

步驟200:提供該標準距離、該標準物件、與攝像裝置10相距該標準距離之對應該標準物件之該第一影像,以及該標準物件之該標準高度;Step 200: providing the standard distance, the standard object, the first image corresponding to the standard distance from the camera device 10, and the standard image of the standard object; and the standard height of the standard object;

步驟202:攝像裝置10之影像擷取單元14擷取該第二影像;Step 202: The image capturing unit 14 of the camera device 10 captures the second image;

步驟204:透過攝像裝置10之使用者介面16於該第二影像中標定該待測物件;Step 204: calibrate the object to be tested in the second image through the user interface 16 of the camera device 10;

步驟206:透過攝像裝置10之使用者介面16輸入該待測物件相對攝像裝置10之一預估距離;Step 206: Input an estimated distance of the object to be tested relative to the camera device 10 through the user interface 16 of the camera device 10;

步驟208:攝像裝置10之計算單元18比對該標準物件於該第一影像中之一第一高度以及該待測物件於該第二影像中之一第二高度以產生該第二高度相對該第一高度之一第一倍數;Step 208: The computing unit 18 of the camera device 10 compares a first height of the standard object in the first image with a second height of the object to be tested in the second image to generate the second height. The first multiple of one of the first heights;

步驟210:攝像裝置10之計算單元18比對該標準距離與該預估距離以產生該預估距離相對該標準距離之一第二倍數;Step 210: The computing unit 18 of the camera device 10 compares the standard distance with the estimated distance to generate the estimated distance by a second multiple of the standard distance;

步驟212:攝像裝置10之計算單元18根據該標準物件之該標準高度、該第一倍數,以及該第二倍數計算出該待測物件之一預估實際高度。Step 212: The calculating unit 18 of the camera device 10 calculates an estimated actual height of the object to be tested according to the standard height of the standard object, the first multiple, and the second multiple.

以下係針對第2圖所示之步驟進行詳細之說明。首先,在步驟200中所提及之該標準距離、該標準物件、與攝像裝置10相距該標準距離之對應該標準物件之該第一影像,以及該標準物件之該標準高度係可為攝像裝置10之儲存單元12所預先儲存的內部設定值,意即於攝像裝置10出廠時被預設儲存於儲存單元12之資料,也就是說,上述之數值及物件係可先在攝像裝置10出廠前做過校正及標準值的設定,舉例來說,在攝像裝置10出廠前,其係可先選擇實際高度為10公分之一物件以作為該標準物件,接著在取1公尺為該標準距離的設定下,使用攝像裝置10之影像擷取單元14擷取與攝像裝置10相距該標準距離之對應該標準物件之該第一影像,如此即可取得該標準物件在該第一影像中之該第一高度,藉以進行後續的比對以及估算待測物件之高度的步驟,除此之外,上述之數值及物件亦可透過使用者自行設定而建立於儲存單元12內,意即由使用者自行選擇該標準物件、該標準距離,藉以自行利用攝像裝置10之影像擷取單元14擷取與攝像裝置10相距該標準距離之對應該標準物件之該第一影像,其設定步驟係與上述流程相似,故於此不再贅述。接著,在使用者利用攝像裝置10之影像擷取單元14擷取對應該待測物件之該第二影像並將該第二影像儲存至儲存單元12後(步驟202),使用者係可使用攝像裝置10之使用者介面16在該第二影像中標定該待測物件(步驟204),舉例來說,若是使用者想要利用攝像裝置10進行該待測物件之高度的估算,則使用者係可透過使用者介面16在該第二影像上點選相對應之兩點位置以標定該待測物件之高度(即上述之該第二高度),接下來,再利用使用者介面16輸入該待測物件相對攝像裝置10之該預估距離(步驟206),如此一來,攝像裝置10之計算單元18就會開始比對該標準物件之該第一影像中之該第一高度以及該待測物件於該第二影像中之該第二高度以產生該第二高度相對該第一高度之該第一倍數(步驟208),以及比對該標準距離與該預估距離以產生該預估距離相對該標準距離之該第二倍數(步驟210),最後,攝像裝置10之計算單元18即可根據該標準物件之該標準高度、該第一倍數,以及該第二倍數計算出該待測物件之一預估實際高度,此處計算單元18係根據下列公式(1)計算出該待測物件之該預估實際高度(步驟212)。The steps shown in Fig. 2 will be described in detail below. First, the standard distance mentioned in step 200, the standard object, the first distance corresponding to the standard distance from the camera device 10, and the standard image of the standard object may be the camera device. The internal setting value pre-stored by the storage unit 12 of the 10 means that the image data is preset to be stored in the storage unit 12 when the camera device 10 is shipped, that is, the above numerical values and objects can be first before the camera device 10 is shipped. The correction and the setting of the standard value have been made. For example, before the camera device 10 is shipped from the factory, it is possible to select an object having an actual height of 10 cm as the standard object, and then take 1 meter for the standard distance. In the setting, the image capturing unit 14 of the imaging device 10 captures the first image of the standard object corresponding to the standard distance from the imaging device 10, so that the standard object can be obtained in the first image. a height, by which a subsequent comparison and a step of estimating the height of the object to be tested are performed, and in addition, the above values and objects can also be established by the user's own setting. In the unit 12, the user selects the standard object and the standard distance, so that the image capturing unit 14 of the camera device 10 can automatically capture the first standard corresponding to the standard distance of the camera device 10. The setting procedure of the image is similar to the above process, so it will not be described here. Then, after the user captures the second image corresponding to the object to be tested and stores the second image to the storage unit 12 by using the image capturing unit 14 of the camera device 10 (step 202), the user can use the camera. The user interface 16 of the device 10 calibrates the object to be tested in the second image (step 204). For example, if the user wants to use the camera device 10 to estimate the height of the object to be tested, the user is The height of the object to be tested (ie, the second height) is determined by clicking the corresponding two-point position on the second image through the user interface 16. Then, the user interface 16 is used to input the Measuring the estimated distance of the object relative to the camera device 10 (step 206), such that the computing unit 18 of the camera device 10 begins to compare the first height in the first image of the standard object with the to-be-tested The second height of the object in the second image to generate the first multiple of the second height relative to the first height (step 208), and comparing the standard distance to the estimated distance to generate the estimated distance Relative to the standard distance a multiple (step 210). Finally, the calculating unit 18 of the camera device 10 can calculate an estimated actual height of the object to be tested according to the standard height of the standard object, the first multiple, and the second multiple. Here, the calculation unit 18 calculates the estimated actual height of the object to be tested according to the following formula (1) (step 212).

H2 =H1 ×M1 ×M2 公式(1)其中H2 為該待測物件之該預估實際高度,H1 為該標準高度,M1 為該第一倍數,M2 為該第二倍數。H 2 =H 1 ×M 1 ×M 2 Formula (1) wherein H 2 is the estimated actual height of the object to be tested, H 1 is the standard height, M 1 is the first multiple, and M 2 is the first Doubled.

上述公式(1)之計算原理係說明如下。請參閱第3圖,第3圖為第1圖攝像裝置10擷取被測物件之影像長度與擷取距離的幾何關係示意圖,由第3圖可知,當攝像裝置10相距被測物體之距離為1公尺時,被測物體之影像長度為y,而當攝像裝置10相距被測物體之距離增加為2公尺時,則被測物體之影像長度縮減為1/2*y,當攝像裝置10相距被測物體之距離增加為3公尺時,被測物體之影像長度縮減為1/3*y,因此由上述推知,攝像裝置10之擷取距離為3公尺所擷取到的影像長度若是與攝像裝置10之擷取距離為1公尺所擷取到的影像長度相等,則表示與攝像裝置10相距3公尺之被測物體的實際長度係為與攝像裝置10相距1公尺之被測物體的實際長度的3倍。The calculation principle of the above formula (1) is explained as follows. Referring to FIG. 3, FIG. 3 is a schematic diagram showing the geometric relationship between the image length and the capturing distance of the object to be detected by the imaging device 10 of FIG. 1. As can be seen from FIG. 3, when the distance between the imaging device 10 and the measured object is At 1 meter, the image length of the measured object is y, and when the distance between the camera 10 and the measured object is increased to 2 meters, the image length of the measured object is reduced to 1/2*y, when the camera When the distance between the objects to be measured is increased to 3 meters, the image length of the object to be measured is reduced to 1/3*y. Therefore, it is inferred from the above that the image captured by the image pickup device 10 is 3 meters. If the length of the image captured by the imaging device 10 is equal to 1 meter, the actual length of the measured object that is 3 meters away from the imaging device 10 is 1 meter away from the imaging device 10. The actual length of the measured object is 3 times.

因此,假設該第一倍數等於2的話(表示在相同擷取距離之條件下該待測物件之該預估實際高度係為該標準物件之該標準高度的2倍),且該第二倍數等於10(代表該預估距離係為該標準距離之10倍),則該待測物件之該預估實際高度即為該標準高度乘以該第一倍數接著再乘以該第二倍數的乘積,也就是說,若是該標準高度等於10公分、計算單元18比對相對應該標準物件之該第一影像中之該第一高度以及該待測物件於該第二影像中之該第二高度所產生之該第一倍數等於2,再加上使用者藉由使用者介面16輸入10公尺(該預估距離)且該標準距離等於1公尺,意即該第二倍數等於10,則計算單元18所計算出來的該待測物件之該預估實際高度係等於200公分(10公分*2*10)。綜上所述,藉由本發明所提供之攝像裝置10,當使用者欲知道利用攝像裝置10所拍攝的照片中一物件的高度時,使用者僅須利用使用者介面16於對應該物件之影像中點選相對應之兩點位置以標定該物件之高度並輸入該物件與攝像裝置10間之預估距離,則計算單元18就可以使用上述公式(1)計算出該物件之一預估實際高度。此外,以此類推,上述計算流程亦可用來計算該物件之其他尺寸相關數值,如寬度等。Therefore, assuming that the first multiple is equal to 2 (indicating that the estimated actual height of the object to be tested is twice the standard height of the standard object under the same extraction distance), and the second multiple is equal to 10 (representing the estimated distance is 10 times the standard distance), the estimated actual height of the object to be tested is the product of the standard height multiplied by the first multiple and then multiplied by the second multiple. That is, if the standard height is equal to 10 cm, the calculation unit 18 compares the first height in the first image of the corresponding standard object and the second height of the object to be tested in the second image. The first multiple is equal to 2, and the user inputs 10 meters (the estimated distance) through the user interface 16 and the standard distance is equal to 1 meter, that is, the second multiple is equal to 10, then the calculation unit The estimated actual height of the object to be tested calculated by 18 is equal to 200 cm (10 cm * 2 * 10). In summary, with the camera device 10 provided by the present invention, when the user wants to know the height of an object in the photo taken by the camera device 10, the user only needs to use the user interface 16 to image the corresponding object. The midpoint selects the corresponding two-point position to calibrate the height of the object and input the estimated distance between the object and the camera device 10, and the calculating unit 18 can calculate the estimated actuality of the object using the above formula (1). height. In addition, the above calculation process can also be used to calculate other size-related values of the object, such as width.

接著請參閱第4圖,第4圖為本發明第二實施例用來預估待測物件相對攝像裝置10之距離之方法之流程圖,其方法包含下列步驟。Referring to FIG. 4, FIG. 4 is a flow chart of a method for estimating the distance of an object to be tested from the camera device 10 according to a second embodiment of the present invention, the method comprising the following steps.

步驟400:提供該標準距離、該標準物件、與攝像裝置10相 距該標準距離之相對應該標準物件之該第一影像,以及該標準物件之該標準高度;步驟402:攝像裝置10之影像擷取單元14擷取該第二影像;步驟404:透過攝像裝置10之使用者介面16於該第二影像中標定該待測物件;步驟406:透過攝像裝置10之使用者介面16輸入該待測物件之一實際高度;步驟408:攝像裝置10之計算單元18比對該標準物件於該第一影像中之一第一高度以及該待測物件於該第二影像中之一第二高度以產生該第二高度相對該第一高度之一倍數;步驟410:攝像裝置10之計算單元18根據該標準物件之該標準高度、該標準距離、該第二高度相對該第一高度之該倍數、該待測物件之該實際高度計算出該待測物件相對攝像裝置10之一預估距離。Step 400: providing the standard distance, the standard object, and the camera device 10 The first image of the standard object and the standard height of the standard object are opposite to the standard distance; step 402: the image capturing unit 14 of the camera device 10 captures the second image; and step 404: the image capturing device 10 is transmitted. The user interface 16 calibrates the object to be tested in the second image; Step 406: Input the actual height of one of the objects to be tested through the user interface 16 of the camera device 10; Step 408: Calculate the unit 18 of the camera device 10 a first height of the standard object in the first image and a second height of the object to be tested in the second image to generate the second height as a multiple of the first height; Step 410: Camera The calculating unit 18 of the device 10 calculates the object to be tested relative to the imaging device 10 according to the standard height of the standard object, the standard distance, the multiple of the second height relative to the first height, and the actual height of the object to be tested. One of the estimated distances.

以下係針對第4圖所示之步驟進行詳細之說明。首先,在步驟400中所提及之該標準距離、該標準物件、與攝像裝置10相距該標準距離之相對應該標準物件之該第一影像,以及該標準物件之該標準高度係可與步驟200相似,也就是說,其係可為攝像裝置10之儲存單元12預先儲存的內部設定值或是由使用者自行設定。接著,在使用者利用攝像裝置10之影像擷取單元14擷取該第二影像並將該第二影像儲存至儲存單元12後(步驟402),使用者係可使用攝像 裝置10之使用者介面16在該第二影像中點選相對應之兩點位置以標定該待測物件於該第二影像中之該第二高度(步驟404),接下來,再利用使用者介面16輸入該待測物件之該實際高度,如此一來,攝像裝置10之計算單元18就會開始比對該標準物件於該第一影像中之該第一高度以及該待測物件於該第二影像中之該第二高度以產生該第二高度相對該第一高度之該倍數,最後,攝像裝置10之計算單元18即可根據該標準物件之該標準高度、該標準距離、該第二高度相對該第一高度之該倍數、以及該待測物件之該實際高度計算出該待測物件相對攝像裝置10之該預估距離,此處計算單元18係根據下列公式(2)以計算出該待測物件相對攝像裝置10之該預估距離。The following is a detailed description of the steps shown in FIG. First, the standard distance mentioned in step 400, the standard object, the first image corresponding to the standard distance from the camera device 10, and the standard image of the standard object, and the standard height of the standard object may be compared with step 200. Similarly, that is, it may be an internal setting value pre-stored by the storage unit 12 of the camera device 10 or set by the user. Then, after the user captures the second image by using the image capturing unit 14 of the camera device 10 and stores the second image in the storage unit 12 (step 402), the user can use the camera. The user interface 16 of the device 10 selects two corresponding positions in the second image to calibrate the second height of the object to be tested in the second image (step 404), and then reuses the user. The interface 16 inputs the actual height of the object to be tested, so that the computing unit 18 of the camera device 10 begins to compare the first height of the standard object in the first image with the object to be tested. The second height in the two images is used to generate the multiple of the second height relative to the first height. Finally, the computing unit 18 of the camera device 10 can be based on the standard height of the standard object, the standard distance, and the second Calculating the estimated distance of the object to be tested relative to the camera device 10 by the multiple of the height relative to the first height and the actual height of the object to be tested, where the calculating unit 18 calculates the method according to the following formula (2) The estimated distance of the object to be tested relative to the imaging device 10.

D2 =[H3 /(H4 ×M)]×D1 公式(2)其中D2 為該待測物件相對攝像裝置10之該預估距離,H3 為該待測物件之該實際高度,H4 為該標準物件之該標準高度,M為該第二高度相對該第一高度之該倍數,D1 為該標準距離。D 2 =[H 3 /(H 4 ×M)]×D 1 Formula (2) where D 2 is the estimated distance of the object to be tested relative to the imaging device 10, and H 3 is the actual height of the object to be tested , H 4 is the standard height of the standard object, M is the multiple of the second height relative to the first height, and D 1 is the standard distance.

上述公式(2)係由公式(1)推導而來,故於此不再詳述其計算原理。因此,假設該待測物件之該實際高度等於200公分、該標準物件之該標準高度等於10公分、該倍數等於2以及該標準距離等於1公尺,則該待測物件相對攝像裝置10之該預估距離係等於該待測物件之該實際高度除以該標準物件之該標準高度與該倍數之乘積後再乘以該標準距離,也就是計算單元18所計算出來的該待測物件 相對攝像裝置10之該預估距離係等於10公尺([200公分/(10公分*2)]*1公尺)。綜上所述,藉由本發明所提供之攝像裝置10,當使用者欲知道利用攝像裝置10所拍攝的照片中一物件與攝像裝置10的相對距離時,使用者僅須利用使用者介面16於該第二影像中點選相對應之兩點位置以標定該物件之高度並輸入對應該物件之預估實際高度,則計算單元18就可以使用上述公式(2)計算出該物件之該預估實際高度。The above formula (2) is derived from the formula (1), so the calculation principle thereof will not be described in detail herein. Therefore, assuming that the actual height of the object to be tested is equal to 200 cm, the standard height of the standard object is equal to 10 cm, the multiple is equal to 2, and the standard distance is equal to 1 meter, the object to be tested is opposite to the camera device 10. The estimated distance is equal to the actual height of the object to be tested divided by the product of the standard height of the standard object and the multiple, and then multiplied by the standard distance, that is, the object to be tested calculated by the calculating unit 18 The estimated distance from the camera unit 10 is equal to 10 meters ([200 cm/(10 cm*2)]*1 meter). In summary, with the camera device 10 provided by the present invention, when the user wants to know the relative distance between an object and the camera device 10 in the photo taken by the camera device 10, the user only needs to use the user interface 16 In the second image, the corresponding two-point position is selected to calibrate the height of the object and input the estimated actual height of the corresponding object, and the calculating unit 18 can calculate the estimate of the object using the above formula (2). Actual height.

相較於先前技術僅能利用數位相機進行影像之擷取與編輯,本發明係可利用內建於攝像裝置中之計算單元根據出廠預設值或使用者自訂之標準值(上述之標準距離、標準物件、與攝像裝置相距標準距離之相對應標準物件之第一影像,以及標準物件之實際高度),再加上使用者所輸入之對應待測物件之預估值(相對攝像裝置之預估距離或是待測物件之預估實際高度),進而利用本發明之實施例中所提供之計算公式而得出待測物件之相關數值(待測物件之預估實際高度或是待測物件相對攝像裝置之預估距離),如此一來,使用者除了可利用攝像裝置進行數位影像的擷取與編輯之外,更可利用內建於攝像裝置中之計算單元來進一步得知有關影像中任一物件的相關資訊,如照片內物體之尺寸或是相對距離等。Compared with the prior art, only digital camera can be used for image capture and editing, and the present invention can utilize the calculation unit built in the camera device according to the factory preset value or the user-defined standard value (the above standard distance) , the standard object, the first image of the standard object corresponding to the standard distance from the camera device, and the actual height of the standard object), plus the estimated value of the corresponding object to be tested input by the user (relative to the pre-camera) Estimating the distance or the estimated actual height of the object to be tested, and then using the calculation formula provided in the embodiment of the present invention to obtain the relevant value of the object to be tested (the estimated actual height of the object to be tested or the object to be tested) In addition to the camera device for capturing and editing digital images, the user can further learn about the images by using a computing unit built in the camera device. Information about any object, such as the size or relative distance of objects within the photo.

以上所述僅為本發明之較佳實施例,凡依本發明申請專利範圍所做之均等變化與修飾,皆應屬本發明之涵蓋範圍。The above are only the preferred embodiments of the present invention, and all changes and modifications made to the scope of the present invention should be within the scope of the present invention.

10‧‧‧攝像裝置10‧‧‧ camera

12‧‧‧儲存單元12‧‧‧ storage unit

14‧‧‧影像擷取單元14‧‧‧Image capture unit

16‧‧‧使用者介面16‧‧‧User interface

18‧‧‧計算單元18‧‧‧Computation unit

第1圖為本發明攝像裝置之功能方塊圖。Fig. 1 is a functional block diagram of an image pickup apparatus of the present invention.

第2圖為本發明第一實施例用來預估待測物件之高度之方法之流程圖。Fig. 2 is a flow chart showing a method for estimating the height of an object to be tested according to the first embodiment of the present invention.

第3圖為第1圖攝像裝置擷取被測物體之影像高度與擷取距離的幾何關係示意圖。Fig. 3 is a schematic diagram showing the geometric relationship between the image height of the object to be measured and the capturing distance in the image capturing device of Fig. 1.

第4圖為本發明第二實施例用來預估待測物件相對攝像裝置之距離之方法之流程圖。Figure 4 is a flow chart of a method for estimating the distance of an object to be tested from an imaging device according to a second embodiment of the present invention.

200~212...步驟200 to 212. . . step

Claims (16)

一種用來預估待測物件相關資訊之方法,其包含有:提供一標準距離、一標準物件、與一攝像裝置相距該標準距離之相對應該標準物件之一第一影像,以及該標準物件之一實際尺寸;該攝像裝置擷取一第二影像;於該第二影像中標定一待測物件;輸入對應該待測物件之一預估值;以及該攝像裝置根據相對應該標準物件之該第一影像與該實際尺寸、該待測物件之該第二影像、該標準距離,以及該預估值計算出對應該待測物件之一相關數值。 A method for estimating information related to an object to be tested, comprising: providing a standard distance, a standard object, a first image of a standard object corresponding to the standard distance from a camera device, and the standard object An actual size; the camera captures a second image; calibrates an object to be tested in the second image; inputs an estimated value corresponding to one of the objects to be tested; and the camera device according to the corresponding standard object An image and the actual size, the second image of the object to be tested, the standard distance, and the estimated value calculate a correlation value corresponding to one of the objects to be tested. 如請求項1所述之方法,其中提供該標準距離、該標準物件、與該攝像裝置相距該標準距離之相對應該標準物件之該第一影像,以及該標準物件之該實際尺寸包含有該攝像裝置於相距該標準物件該標準距離擷取相對應該標準物件之該第一影像。 The method of claim 1, wherein the standard distance, the standard object, the first image of the standard object corresponding to the standard distance from the camera device, and the actual size of the standard object are included in the camera The device draws the first image corresponding to the standard object at the standard distance from the standard object. 如請求項1所述之方法,其中輸入對應該待測物件之該預估值包含有輸入該待測物件相對該攝像裝置之一預估距離。 The method of claim 1, wherein the inputting the estimated value corresponding to the object to be tested comprises inputting an estimated distance of the object to be tested relative to the one of the camera devices. 如請求項3所述之方法,其中該攝像裝置根據相對應該標準物件之該第一影像與該實際尺寸、該待測物件之該第二影像、該標準距離,以及該預估值計算出對應該待測物件之該相關數值包含 有:該攝像裝置比對該標準物件於該第一影像中之一第一高度以及該待測物件於該第二影像中之一第二高度以產生該第二高度相對該第一高度之一第一倍數;該攝像裝置比對該標準距離與該預估距離以產生該預估距離相對該標準距離之一第二倍數;以及根據該標準物件之一標準高度、該第一倍數,以及該第二倍數計算出該待測物件之一預估實際高度。 The method of claim 3, wherein the camera device calculates a pair according to the first image of the corresponding standard object and the actual size, the second image of the object to be tested, the standard distance, and the estimated value. The relevant value of the object to be tested should contain The camera device has a first height of the standard object in the first image and a second height of the object to be tested in the second image to generate the second height relative to the first height a first multiple; the camera device compares the standard distance with the estimated distance to generate the estimated distance with respect to the second multiple of the standard distance; and according to the standard height of one of the standard objects, the first multiple, and the The second multiple calculates the estimated actual height of one of the objects to be tested. 如請求項4所述之方法,其中根據該標準物件之該標準高度、該第一倍數,以及該第二倍數計算出該待測物件之該預估實際高度包含有根據下列關係式計算出該待測物件之該預估實際高度:H2 =H1 ×M1 ×M2 ;其中H2 為該待測物件之該預估實際高度,H1 為該標準高度,M1 為該第一倍數,M2 為該第二倍數。The method of claim 4, wherein calculating the estimated actual height of the object to be tested according to the standard height of the standard object, the first multiple, and the second multiple comprises calculating according to the following relationship The estimated actual height of the object to be tested: H 2 = H 1 × M 1 × M 2 ; wherein H 2 is the estimated actual height of the object to be tested, H 1 is the standard height, and M 1 is the first The multiple, M 2 is the second multiple. 如請求項1所述之方法,其中輸入對應該待測物件之該預估值包含有輸入該待測物件之一實際高度。 The method of claim 1, wherein the inputting the estimated value corresponding to the object to be tested includes inputting an actual height of one of the objects to be tested. 如請求項6所述之方法,其中該攝像裝置根據相對應該標準物件之該第一影像與該實際尺寸、該待測物件之該第二影像、該標準距離,以及該預估值計算出對應該待測物件之該相關數值包含有: 該攝像裝置比對該標準物件於該第一影像中之一第一高度以及該待測物件於該第二影像中之一第二高度以產生該第二高度相對該第一高度之一倍數;以及根據該標準物件之一標準高度、該標準距離、該第二高度相對該第一高度之該倍數、該待測物件之該實際高度計算出該待測物件相對該攝像裝置之一預估距離。 The method of claim 6, wherein the camera device calculates the pair according to the first image of the corresponding standard object and the actual size, the second image of the object to be tested, the standard distance, and the estimated value. The relevant value of the object to be tested includes: The camera device compares a first height of the standard object in the first image and a second height of the object to be tested in the second image to generate the second height as a multiple of the first height; And calculating, according to a standard height of the standard object, the standard distance, the multiple of the second height relative to the first height, and the actual height of the object to be tested, an estimated distance of the object to be tested relative to the camera device . 如請求項7所述之方法,其中根據該標準物件之該標準高度、該標準距離、該第二高度相對該第一高度之該倍數、該待測物件之該實際高度計算出該待測物件相對該攝像裝置之該預估距離包含有根據下列關係式計算出該待測物件相對該攝像裝置之該預估距離:D2 =[H3 /(H4 ×M)]×D1 ;其中D2 為該待測物件相對該攝像裝置之該預估距離,H3 為該待測物件之該實際高度,H4 為該標準物件之該標準高度,M為該第二高度相對該第一高度之該倍數,D1 為該標準距離。The method of claim 7, wherein the object to be tested is calculated according to the standard height of the standard object, the standard distance, the multiple of the second height relative to the first height, and the actual height of the object to be tested. The estimated distance from the camera device includes calculating the estimated distance of the object to be tested relative to the camera device according to the following relationship: D 2 =[H 3 /(H 4 ×M)]×D 1 ; D 2 is the estimated distance of the object to be tested relative to the camera device, H 3 is the actual height of the object to be tested, H 4 is the standard height of the standard object, and M is the second height relative to the first The multiple of the height, D 1 is the standard distance. 一種可預估待測物件相關資訊之攝像裝置,其包含有:一儲存單元,其係用來紀錄一標準物件之一第一影像、一標準距離,以及該標準物件之一實際尺寸;一影像擷取單元,其係連接於該儲存單元,該影像擷取單元係用來擷取一第二影像並儲存該第二影像至該儲存單元;一使用者介面,其係用來於該第二影像中標定一待測物件以及輸 入對應該待測物件之一預估值;以及一計算單元,其係連接於該儲存單元以及該使用者介面,該計算單元係用來根據該標準物件之該第一影像與該實際尺寸、該待測物件之該第二影像、該標準距離,以及該預估值計算出對應該待測物件之一相關數值。 An image capturing device capable of estimating information related to an object to be tested, comprising: a storage unit for recording a first image of a standard object, a standard distance, and an actual size of the standard object; The capture unit is connected to the storage unit, the image capture unit is configured to capture a second image and store the second image to the storage unit; a user interface is used for the second Calibrate an object to be tested and lose in the image Entering an estimated value of one of the objects to be tested; and a computing unit coupled to the storage unit and the user interface, the computing unit is configured to use the first image and the actual size of the standard object, The second image of the object to be tested, the standard distance, and the estimated value calculate a correlation value corresponding to one of the objects to be tested. 如請求項9所述之攝像裝置,其中該影像擷取單元係用來與該標準物件相距該標準距離擷取對應該標準物件之該第一影像。 The camera device of claim 9, wherein the image capturing unit is configured to capture the first image corresponding to the standard object from the standard object by the standard distance. 如請求項9所述之攝像裝置,其中該使用者介面係用來輸入該待測物件相對該攝像裝置之一預估距離。 The camera device of claim 9, wherein the user interface is configured to input an estimated distance of the object to be tested relative to the camera device. 如請求項11所述之攝像裝置,其中該計算單元係用來比對該標準物件於該第一影像中之一第一高度以及該待測物件於該第二影像中之一第二高度以產生該第二高度相對該第一高度之一第一倍數、比對該標準距離與該預估距離以產生該預估距離相對該標準距離之一第二倍數,以及根據該標準物件之一標準高度、該第一倍數,以及該第二倍數計算出該待測物件之一預估實際高度。 The camera device of claim 11, wherein the computing unit is configured to compare a first height of the standard object in the first image with a second height of the object to be tested in the second image. Generating a first multiple of the second height relative to the first height, comparing the standard distance to the estimated distance to produce a second multiple of the estimated distance relative to the standard distance, and a standard according to the standard object The height, the first multiple, and the second multiple calculate an estimated actual height of the object to be tested. 如請求項12所述之攝像裝置,其中該標準物件之該標準高度、該第一倍數,以及該第二倍數與該待測物件之該預估實際高度之關係式如下: H2 =H1 ×M1 ×M2 ;其中H2 為該待測物件之該預估實際高度,H1 為該標準高度,M1 為該第一倍數,M2 為該第二倍數。The camera device of claim 12, wherein the standard height of the standard object, the first multiple, and the relationship between the second multiple and the estimated actual height of the object to be tested are as follows: H 2 =H 1 × M 1 × M 2 ; wherein H 2 is the estimated actual height of the object to be tested, H 1 is the standard height, M 1 is the first multiple, and M 2 is the second multiple. 如請求項9所述之攝像裝置,其中該使用者介面係用來輸入該待測物件之一實際高度。 The camera device of claim 9, wherein the user interface is used to input an actual height of one of the objects to be tested. 如請求項14所述之攝像裝置,其中該計算單元係用來比對該標準物件於該第一影像中之一第一高度以及該待測物件在該第二影像中之一第二高度以產生該第二高度相對該第一高度之一倍數以及根據該標準物件之一標準高度、該標準距離、該第二高度相對該第一高度之該倍數、以及該待測物件之該實際高度計算出該待測物件相對該攝像裝置之一預估距離。 The camera device of claim 14, wherein the computing unit is configured to compare a first height of the standard object in the first image with a second height of the object to be tested in the second image Generating a second height relative to the first height and calculating a standard height of the standard object, the standard distance, the multiple of the second height relative to the first height, and the actual height of the object to be tested An estimated distance from the object to be tested relative to the camera device. 如請求項15所述之攝像裝置,其中該標準物件之該標準高度、該標準距離、該第二高度相對該第一高度之該倍數、該待測物件之該實際高度與該待測物件相對該攝像裝置之該預估距離之關係式如下:D2 =[H3 /(H4 ×M)]×D1 ;其中D2 為該待測物件相對該攝像裝置之該預估距離,H3 為該待測物件之該實際高度,H4 為該標準物件之該標準高度,M為該第二高度相對該第一高度之該倍數,D1 為該標準距離。The camera device of claim 15, wherein the standard height of the standard object, the standard distance, the multiple of the second height relative to the first height, and the actual height of the object to be tested are opposite to the object to be tested. The relationship between the estimated distances of the camera device is as follows: D 2 =[H 3 /(H 4 ×M)]×D 1 ; wherein D 2 is the estimated distance of the object to be tested relative to the camera device, H 3 is the actual height of the object to be tested, H 4 is the standard height of the standard object, M is the multiple of the second height relative to the first height, and D 1 is the standard distance.
TW98121174A 2009-06-24 2009-06-24 Method for estimating related information corresponding to an object and image capturing device thereof TWI408343B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW98121174A TWI408343B (en) 2009-06-24 2009-06-24 Method for estimating related information corresponding to an object and image capturing device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW98121174A TWI408343B (en) 2009-06-24 2009-06-24 Method for estimating related information corresponding to an object and image capturing device thereof

Publications (2)

Publication Number Publication Date
TW201100763A TW201100763A (en) 2011-01-01
TWI408343B true TWI408343B (en) 2013-09-11

Family

ID=44836742

Family Applications (1)

Application Number Title Priority Date Filing Date
TW98121174A TWI408343B (en) 2009-06-24 2009-06-24 Method for estimating related information corresponding to an object and image capturing device thereof

Country Status (1)

Country Link
TW (1) TWI408343B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI628415B (en) * 2017-09-13 2018-07-01 國立清華大學 Positioning and measuring system based on image scale

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI477737B (en) * 2011-01-10 2015-03-21 Hon Hai Prec Ind Co Ltd Electronic apparatus and method with measuring function

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5867256A (en) * 1997-07-16 1999-02-02 Raytheon Ti Systems, Inc. Passive range estimation using image size measurements
TW385362B (en) * 1998-11-27 2000-03-21 Lin Gu Chin Computer-aided image analysis distance measuring system
US20080141772A1 (en) * 2006-12-13 2008-06-19 Nokia Corporation System and method for distance functionality
CN101298979A (en) * 2008-07-01 2008-11-05 北京林业大学 Estimate survey technique using metric camera cooperating with theodolite

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5867256A (en) * 1997-07-16 1999-02-02 Raytheon Ti Systems, Inc. Passive range estimation using image size measurements
TW385362B (en) * 1998-11-27 2000-03-21 Lin Gu Chin Computer-aided image analysis distance measuring system
US20080141772A1 (en) * 2006-12-13 2008-06-19 Nokia Corporation System and method for distance functionality
CN101298979A (en) * 2008-07-01 2008-11-05 北京林业大学 Estimate survey technique using metric camera cooperating with theodolite

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI628415B (en) * 2017-09-13 2018-07-01 國立清華大學 Positioning and measuring system based on image scale
US10535157B2 (en) 2017-09-13 2020-01-14 National Tsing Hua University Positioning and measuring system based on image scale

Also Published As

Publication number Publication date
TW201100763A (en) 2011-01-01

Similar Documents

Publication Publication Date Title
JP4911230B2 (en) Imaging apparatus, control program, and control method
US8648918B2 (en) Method and system for obtaining a point spread function using motion information
US10008005B2 (en) Measurement system and method for measuring multi-dimensions
JP6124184B2 (en) Get distances between different points on an imaged subject
TWI393980B (en) The method of calculating the depth of field and its method and the method of calculating the blurred state of the image
US8059154B1 (en) Systems and methods for automatic camera calibration
TW201122411A (en) Document camera with device size estimation function
JP4775474B2 (en) Imaging apparatus, imaging control method, and program
TW201118791A (en) System and method for obtaining camera parameters from a plurality of images, and computer program products thereof
CN107545592A (en) Dynamic camera is calibrated
JP2012185161A (en) Method for measuring real dimension of object by using camera included in portable terminal
WO2019169941A1 (en) Distance measurement method and apparatus
CN110969045B (en) Behavior detection method and device, electronic equipment and storage medium
JP2004506389A (en) Method and apparatus for externally calibrating a camera via a graphical user interface
TWI468658B (en) Lens test device and method
TWI408343B (en) Method for estimating related information corresponding to an object and image capturing device thereof
US7411614B2 (en) Image sensing apparatus and method
CN103039068A (en) Image processing device and image processing program
JP7240115B2 (en) Information processing device, its method, and computer program
TW201317587A (en) Dimension measuring device and method thereof
CN111145247A (en) Vision-based position detection method, robot and computer storage medium
Raju et al. Estimation of plate and bowl dimensions for food portion size assessment in a wearable sensor system
JP2008014857A (en) Device, method, and program for acquiring coordinate for inspection of printed board
KR101741501B1 (en) Apparatus and Method for Estimation of Distance between Camera and Object
TW202141351A (en) Image inspection device and image inspection method

Legal Events

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