TWI477737B - Electronic apparatus and method with measuring function - Google Patents
Electronic apparatus and method with measuring function Download PDFInfo
- Publication number
- TWI477737B TWI477737B TW100100750A TW100100750A TWI477737B TW I477737 B TWI477737 B TW I477737B TW 100100750 A TW100100750 A TW 100100750A TW 100100750 A TW100100750 A TW 100100750A TW I477737 B TWI477737 B TW I477737B
- Authority
- TW
- Taiwan
- Prior art keywords
- size
- tested
- electronic device
- image
- unit
- Prior art date
Links
Landscapes
- Length Measuring Devices By Optical Means (AREA)
Description
本發明涉及一種具有測量功能的電子裝置及方法。The present invention relates to an electronic device and method having a measurement function.
目前由於可擕式電子裝置容易攜帶的特點,在電子裝置上集成一些常用的功能使用戶使用起來更為方便,在日常生活中,用戶有時候需要估算某一物體的大小,但身邊又沒有量測工具時,即無法對該待測物的大小進行測量。At present, due to the portability of the portable electronic device, it is more convenient to integrate some commonly used functions on the electronic device. In daily life, the user sometimes needs to estimate the size of an object, but there is no amount around. When measuring a tool, the size of the object to be tested cannot be measured.
有鑒於此,故需要提供一種具有量測功能的電子裝置及方法。In view of this, it is desirable to provide an electronic device and method having a measurement function.
該具有測量功能的電子裝置包括一攝像單元,該攝像單元用於攝取待測物的影像,該攝像單元有一拍攝視角,一距離測量單元,用於測量電子裝置與待測物之間的距離;一測距模組,回應用戶的一測量操作,控制該距離測量單元測量電子裝置與待測物之間的距離;一攝像畫面尺寸計算模組,根據所獲取的電子裝置與待測物之間的距離及攝像單元的拍攝視角計算攝像單元所攝取畫面的實際尺寸;一比例獲取模組,獲取攝像單元所攝取畫面的影像,並根據所獲取的影像確定待測物的尺寸占所攝取影像的尺寸的比例;一待測物尺寸計算模組,根據比例獲取模組所計算的待測物的尺寸占所攝取影像的尺寸的比例及尺寸計算模組所計算的攝像單元所攝畫面的實際尺寸計算待測物的尺寸;一顯示模組,將所測的待測物的尺寸顯示於用戶。The electronic device with the measurement function includes an image capturing unit for capturing an image of the object to be tested, the camera unit has a shooting angle of view, and a distance measuring unit for measuring the distance between the electronic device and the object to be tested; a distance measuring module, in response to a measurement operation of the user, controlling the distance measuring unit to measure the distance between the electronic device and the object to be tested; a camera picture size calculating module, according to the obtained electronic device and the object to be tested The distance and the shooting angle of the camera unit calculate the actual size of the image taken by the camera unit; a proportional acquisition module acquires an image of the image taken by the camera unit, and determines the size of the object to be tested according to the acquired image. The ratio of the size of the object to be measured; the size of the object to be tested calculated by the ratio acquisition module accounts for the size of the image taken and the actual size of the image taken by the camera unit calculated by the module Calculating the size of the object to be tested; a display module, displaying the measured size of the object to be tested on the user.
在該應用於一電子裝置的測量方法中,該電子裝置包括一攝像單元用於攝取待測物的影像,該攝像單元有一拍攝視角,該方法包括:回應用戶的一測量操作,控制一距離測量單元測量電子裝置與待測物之間的距離;根據所獲取的電子裝置與待測物之間的距離及攝像單元的拍攝視角計算攝像單元所攝取畫面的實際尺寸;獲取攝像單元所攝取畫面的影像,並根據所獲取的影像確定待測物的尺寸占所攝取影像的尺寸的比例;根據待測物的尺寸占所攝取影像的尺寸的比例及攝像單元所攝畫面的實際尺寸計算待測物的尺寸;將所測的待測物的尺寸顯示於用戶。In the measuring method applied to an electronic device, the electronic device includes an imaging unit for capturing an image of the object to be tested, the camera unit has a shooting angle, and the method includes: controlling a distance measurement in response to a measurement operation of the user The unit measures the distance between the electronic device and the object to be tested; calculates the actual size of the image taken by the camera unit according to the distance between the acquired electronic device and the object to be tested and the shooting angle of the camera unit; and acquires the image taken by the camera unit. Image, and determining, according to the acquired image, the ratio of the size of the object to be measured to the size of the captured image; calculating the object to be tested according to the ratio of the size of the object to be measured to the size of the image taken and the actual size of the image taken by the camera unit The size of the measured object to be tested is displayed to the user.
相較于現有技術,本發明通過給電子裝置設置一測量功能,以在需要時,身邊又無其他測量工具時,及時測量待測物的尺寸。Compared with the prior art, the present invention measures the size of the object to be tested in time by setting a measuring function for the electronic device to when there is no other measuring tool around when needed.
如圖1所示,為本發明一實施方式中具有測量功能的電子裝置1(以下簡稱“電子裝置”)的方塊圖。該電子裝置包括一攝像單元11、一距離測量單元12、一處理單元13及一顯示單元14。該距離測量單元12緊挨著攝像單元11設置,可測量電子裝置1與待測物2之間的距離。本實施方式中,該距離測量單元12為紅外線距離測量儀。在測量距離時,可對距離測量單元12進行調整,使所測得距離為電子裝置1與待測物2之間的垂直距離。該攝像單元11用於攝取待測物的影像,其拍攝物體的拍攝視角為θ。As shown in FIG. 1, it is a block diagram of an electronic device 1 (hereinafter referred to as "electronic device") having a measurement function according to an embodiment of the present invention. The electronic device includes an imaging unit 11, a distance measuring unit 12, a processing unit 13, and a display unit 14. The distance measuring unit 12 is disposed next to the imaging unit 11, and the distance between the electronic device 1 and the object to be tested 2 can be measured. In the present embodiment, the distance measuring unit 12 is an infrared distance measuring instrument. When measuring the distance, the distance measuring unit 12 can be adjusted such that the measured distance is the vertical distance between the electronic device 1 and the object to be tested 2. The imaging unit 11 is configured to capture an image of the object to be tested, and the photographing angle of the photographed object is θ.
該處理單元13包括一測距模組131、一攝像畫面尺寸計算模組132、一比例獲取模組133、一待測物尺寸計算模組134及一顯示模組135。該測距模組131用於回應用戶的一測量操作,控制該距離測量單元12測量電子裝置1與待測物之間的距離,該攝像畫面尺寸計算模組132根據所獲取的電子裝置1與待測物2之間的距離及攝像單元11的拍攝視角計算攝像單元11所攝取畫面的實際尺寸。本實施方式中的尺寸指的是長及寬,為了方便描述,在此,僅以計算待測物2的長為例進行描述。The processing unit 13 includes a ranging module 131, a camera image size calculation module 132, a proportional acquisition module 133, a sample size calculation module 134, and a display module 135. The ranging module 131 is configured to respond to a measurement operation of the user, and the distance measuring unit 12 is controlled to measure the distance between the electronic device 1 and the object to be tested. The imaging screen size calculation module 132 is configured according to the acquired electronic device 1 The distance between the objects to be tested 2 and the photographing angle of view of the image pickup unit 11 calculate the actual size of the screen taken by the image pickup unit 11. The size in the present embodiment refers to the length and the width. For convenience of description, only the length of the object to be tested 2 is calculated as an example.
在計算攝像畫面的長時,如圖2所示,若距離測量單元12所測得的電子裝置1與待測物2之間的垂直距離為D,攝像單元11的拍攝視角為θ,則根據三角形的邊角關係,可得攝像畫面的實際長度L=2*D1*tgθ。在攝像畫面的實際長度確定後,該比例獲取模組133獲取待測物2的影像,並根據所獲取的影像確定待測物2的長占所攝取影像的長的比例K。最後,該待測物尺寸計算模組134即可根據比例獲取模組133所計算的待測物2的長占所攝取影像的長的比例K及攝像畫面尺寸計算模組132所計算的攝像畫面的實際長度計算待測物的長度X=2*D1*tgθ*K,同理,也可測量出待測物2的寬度。所測的待測物2的尺寸可通過該顯示單元14顯示於用戶。When calculating the length of the image capturing screen, as shown in FIG. 2, if the vertical distance between the electronic device 1 and the object to be tested 2 measured by the distance measuring unit 12 is D, and the shooting angle of the image capturing unit 11 is θ, then according to The angular relationship of the triangles gives the actual length of the camera picture L=2*D1*tgθ. After the actual length of the image capture screen is determined, the ratio acquisition module 133 acquires the image of the object 2 to be tested, and determines the long ratio K of the long-term image of the object to be tested 2 according to the acquired image. Finally, the object size calculation module 134 can calculate the length ratio K of the object to be detected and the image frame calculated by the camera size calculation module 132 according to the length of the object 2 to be measured calculated by the ratio acquisition module 133. The actual length is calculated as the length of the object to be tested X=2*D1*tgθ*K. Similarly, the width of the object 2 can be measured. The measured size of the object 2 to be tested can be displayed to the user through the display unit 14.
在待測物2的長及寬計算出來之後,還可根據所計算出來的長和寬計算待測物2的面積。After the length and width of the object 2 are calculated, the area of the object 2 can be calculated based on the calculated length and width.
如圖3所示,為通過電子裝置1對待測物2尺寸測量的方法的流程圖。首先,該測距模組131回應用戶的一測量操作,控制該距離測量單元12測量電子裝置1與待測物2之間的距離(步驟301)。As shown in FIG. 3, it is a flowchart of a method of measuring the size of the object 2 by the electronic device 1. First, the ranging module 131 controls the distance measuring unit 12 to measure the distance between the electronic device 1 and the object to be tested 2 in response to a measurement operation of the user (step 301).
該攝像畫面尺寸計算模組132根據所獲取的電子裝置1與待測物2之間的距離及攝像單元11的拍攝視角計算攝像單元11所攝像畫面的實際尺寸(步驟S302)。The imaging screen size calculation module 132 calculates the actual size of the image captured by the imaging unit 11 based on the acquired distance between the electronic device 1 and the object to be tested 2 and the imaging angle of view of the imaging unit 11 (step S302).
在攝像單元11所攝像畫面的實際尺寸確定後,該比例獲取模組133獲取待測物2的影像,並根據所獲取的待測物2的影像確定影像中待測物2的尺寸占所攝取影像的尺寸的比例K(步驟S303)。After the actual size of the image captured by the camera unit 11 is determined, the ratio acquisition module 133 acquires the image of the object 2 to be tested, and determines the size of the object to be tested 2 in the image according to the acquired image of the object 2 to be inspected. The ratio K of the size of the image (step S303).
該待測物尺寸計算模組134根據比例獲取模組133所計算的待測物2的尺寸占所攝取影像的尺寸的比例K及攝像畫面尺寸計算模組132所計算的攝像畫面的尺寸計算待測物2的尺寸(步驟S304)。The object size calculation module 134 calculates the ratio of the size of the object 2 to be measured calculated by the scale acquisition module 133 to the size of the captured image and the size of the image captured by the camera size calculation module 132. The size of the object 2 is measured (step S304).
該測試結果顯示模組135將所測量待測物2的尺寸通過顯示單元14顯示於用戶(步驟S305)。The test result display module 135 displays the size of the measured object 2 to be displayed to the user through the display unit 14 (step S305).
1...電子裝置1. . . Electronic device
11...攝像單元11. . . Camera unit
12...距離測量單元12. . . Distance measuring unit
13...處理單元13. . . Processing unit
14...顯示單元14. . . Display unit
2...待測物2. . . Analyte
131...測距模組131. . . Ranging module
132...攝像畫面尺寸計算模組132. . . Camera screen size calculation module
133...比例獲取模組133. . . Proportional acquisition module
134...待測物尺寸計算模組134. . . DUT size calculation module
135...顯示模組135. . . Display module
圖1為本發明一實施方式中具有測量功能的電子裝置的方塊圖。1 is a block diagram of an electronic device having a measurement function according to an embodiment of the present invention.
圖2為利用圖1中的電子裝置計算待測物的尺寸時的示意圖。FIG. 2 is a schematic view of the case where the size of the object to be tested is calculated using the electronic device of FIG. 1.
圖3為通過電子裝置對待測物尺寸測量的方法的流程圖。3 is a flow chart of a method of measuring an object size by an electronic device.
Claims (10)
一距離測量單元,用於測量電子裝置與待測物之間的距離;
一測距模組,回應用戶的一測量操作,控制該距離測量單元測量電子裝置與待測物之間的距離;
一攝像畫面尺寸計算模組,根據所獲取的電子裝置與待測物之間的距離及攝像單元的拍攝視角計算攝像單元所攝取畫面的實際尺寸;
一比例獲取模組,獲取攝像單元所攝取畫面的影像,並根據所獲取的影像確定待測物的尺寸占所攝取影像的尺寸的比例;
一待測物尺寸計算模組,根據比例獲取模組所計算的待測物的尺寸占所攝取影像的尺寸的比例及尺寸計算模組所計算的攝像單元所攝畫面的實際尺寸計算待測物的尺寸;
一顯示模組,將所測的待測物的尺寸顯示於用戶。An electronic device having a measuring function, the electronic device comprising: an image capturing unit for capturing an image of the object to be tested, the camera unit having a shooting angle of view, wherein the electronic device further comprises:
a distance measuring unit for measuring a distance between the electronic device and the object to be tested;
a ranging module, in response to a measurement operation of the user, controlling the distance measuring unit to measure a distance between the electronic device and the object to be tested;
a camera picture size calculation module calculates the actual size of the picture taken by the camera unit according to the distance between the acquired electronic device and the object to be tested and the shooting angle of the camera unit;
a ratio acquisition module acquires an image of a picture taken by the camera unit, and determines a ratio of a size of the object to be measured to a size of the captured image according to the acquired image;
The object size calculation module calculates the object to be tested according to the ratio of the size of the object to be measured calculated by the ratio acquisition module to the size of the image taken and the actual size of the image taken by the camera unit calculated by the module. size of;
A display module displays the measured size of the object to be tested on the user.
回應用戶的一測量操作,控制一距離測量單元測量電子裝置與待測物之間的距離;
根據所獲取的電子裝置與待測物之間的距離及攝像單元的拍攝視角計算攝像單元所攝取畫面的實際尺寸;
獲取攝像單元所攝取畫面的影像,並根據所獲取的影像確定待測物的尺寸占所攝取影像的尺寸的比例;
根據待測物的尺寸占所攝取影像的尺寸的比例及攝像單元所攝畫面的實際尺寸計算待測物的尺寸;
將所測的待測物的尺寸顯示於用戶。A measuring method applied to an electronic device, the electronic device comprising an image capturing unit for capturing an image of the object to be tested, the camera unit having a shooting angle of view, wherein the method comprises:
Responding to a measurement operation of the user, controlling a distance measuring unit to measure a distance between the electronic device and the object to be tested;
Calculating an actual size of a picture taken by the camera unit according to the distance between the acquired electronic device and the object to be tested and the shooting angle of the imaging unit;
Obtaining an image of the image taken by the camera unit, and determining, according to the acquired image, a ratio of a size of the object to be tested to a size of the captured image;
Calculating the size of the object to be tested according to the ratio of the size of the object to be tested to the size of the captured image and the actual size of the picture taken by the camera unit;
The measured size of the object to be tested is displayed to the user.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW100100750A TWI477737B (en) | 2011-01-10 | 2011-01-10 | Electronic apparatus and method with measuring function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW100100750A TWI477737B (en) | 2011-01-10 | 2011-01-10 | Electronic apparatus and method with measuring function |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201229456A TW201229456A (en) | 2012-07-16 |
TWI477737B true TWI477737B (en) | 2015-03-21 |
Family
ID=46933948
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW100100750A TWI477737B (en) | 2011-01-10 | 2011-01-10 | Electronic apparatus and method with measuring function |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI477737B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104976971A (en) * | 2014-04-03 | 2015-10-14 | 陈国仁 | Mobile terminal measurement system capable of displaying plan view size of photographed object and measurement method of mobile terminal measurement system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070195191A1 (en) * | 1999-11-16 | 2007-08-23 | Masataka Ide | Distance-measuring device installed in camera |
TW200821552A (en) * | 2006-11-01 | 2008-05-16 | Altek Corp | Method for calculating distance and actual size of shot object |
CN101672620A (en) * | 2008-09-08 | 2010-03-17 | 鸿富锦精密工业(深圳)有限公司 | Electronic device and method for measuring size of object |
TW201100763A (en) * | 2009-06-24 | 2011-01-01 | Compal Communications Inc | Method for estimating related information corresponding to an object and image capturing device thereof |
-
2011
- 2011-01-10 TW TW100100750A patent/TWI477737B/en active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070195191A1 (en) * | 1999-11-16 | 2007-08-23 | Masataka Ide | Distance-measuring device installed in camera |
TW200821552A (en) * | 2006-11-01 | 2008-05-16 | Altek Corp | Method for calculating distance and actual size of shot object |
CN101672620A (en) * | 2008-09-08 | 2010-03-17 | 鸿富锦精密工业(深圳)有限公司 | Electronic device and method for measuring size of object |
TW201100763A (en) * | 2009-06-24 | 2011-01-01 | Compal Communications Inc | Method for estimating related information corresponding to an object and image capturing device thereof |
Also Published As
Publication number | Publication date |
---|---|
TW201229456A (en) | 2012-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101316451B1 (en) | Concrete surface crack detecting apparatus, detecting method, smart phone and public computer | |
TWI394431B (en) | Evaluation method of stereoscopic image display panel and system of the same | |
US9875574B2 (en) | Method and device for automatically identifying the deepest point on the surface of an anomaly | |
JP2009514266A5 (en) | ||
CN102564313B (en) | There is electronic installation and the method for measurement function | |
JP2007018426A5 (en) | ||
TW201239869A (en) | System and method for adjusting font size on screen | |
JP2011244058A5 (en) | ||
JP2013219615A5 (en) | ||
CN105554247A (en) | Measuring method, measuring system and terminal | |
TWI530154B (en) | System and method for automatically adjusting a visual angle of 3d images | |
JP2009210334A5 (en) | ||
CN103591894A (en) | Method and device for measuring length of object through camera | |
JP2009111855A5 (en) | ||
TW200706855A (en) | Apparatus and method for testing picture quality of liquid crystal display | |
CN111164407B (en) | Two-dimensional flicker measurement device, two-dimensional flicker measurement system, two-dimensional flicker measurement method, and two-dimensional flicker measurement program | |
TWI630377B (en) | Thermal detection device | |
JP2012028877A5 (en) | ||
KR20180056534A (en) | The size of objects using smart phone camera and laser sensor measurement methods | |
TWI506388B (en) | Automatic temperature testing system and temperature testing method | |
TWI477737B (en) | Electronic apparatus and method with measuring function | |
JP2009141951A5 (en) | ||
JP2009299241A (en) | Body size measuring device | |
KR20110025724A (en) | Method for measuring height of a subject using camera module | |
CN210571299U (en) | System for measuring optical parameters of small-field projection module |