TWI289198B - Image monitoring and stock detection integrated system applied in liquid storage tank and method thereof - Google Patents

Image monitoring and stock detection integrated system applied in liquid storage tank and method thereof Download PDF

Info

Publication number
TWI289198B
TWI289198B TW95136531A TW95136531A TWI289198B TW I289198 B TWI289198 B TW I289198B TW 95136531 A TW95136531 A TW 95136531A TW 95136531 A TW95136531 A TW 95136531A TW I289198 B TWI289198 B TW I289198B
Authority
TW
Taiwan
Prior art keywords
image
storage tank
liquid storage
reflector
pixel value
Prior art date
Application number
TW95136531A
Other languages
Chinese (zh)
Other versions
TW200817656A (en
Inventor
Di-Ho Wang
Chen-Chien Hsu
Jin-Dung Juang
Ming-Chih Lu
Original Assignee
Ming-Chih Lu
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 Ming-Chih Lu filed Critical Ming-Chih Lu
Priority to TW95136531A priority Critical patent/TWI289198B/en
Application granted granted Critical
Publication of TWI289198B publication Critical patent/TWI289198B/en
Publication of TW200817656A publication Critical patent/TW200817656A/en

Links

Landscapes

  • Measurement Of Levels Of Liquids Or Fluent Solid Materials (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The present invention relates to an image monitoring and stock detection integrated system applied in a liquid storage tank, which comprises a light reflecting plate floating on the surface of a liquid stored in the liquid storage tank and a digital imaging device for capturing the image picture information including the image graphic of the light reflecting plate, where the distance between the light reflecting plate and the top of the liquid storage tank can be calculated by the relationship between the number of pixels of the light reflecting plate in the image picture information and the actual length of the light reflecting plate. The present invention also provides an image monitoring and stock detection method applied in a liquid storage tank.

Description

1289198 九、發明說明: 【發明所屬之技術領域】 本發明係有關一種應用於液體儲存槽之影像監視與 存量偵測共構系統,利用一影像晝面資訊的像素值計算儲 存液體之高度,並能同時監測儲存液體的物理狀態。 【先前技術】 習知技術中,應用於儲存槽或容器中的液體(水、石 油或化學溶劑)或粉粒(塑膠粉粒、麵粉或藥粉)之高度量測 裝置中,如中華民國發明專利公告第200970號之液面計及 中華民國發明專利公告第333335號之錫爐液面偵測裝 置,一,,將量測裝置設置於儲存槽或容器中來量測儲存 物之儲1兩度。另外,亦有藉由超音波測距來計算反射 度的方式’但超音波之發射器與接收器仍需 接置因此,習知的儲量高度測量裝議^ 而中華民國發明專利公土笛 為本發r先“明,利用 來測量;;之攝二機;置於儲存槽之外不 内物質的狀態。但該等CCD攝能同時間測槽 存槽頂部之中央位置,且it機及雷射光源需設至於儲 面中央’因此增加系統設置固定於儲存液體之液 利用二道平行雷射光田難度。 偵測,以及達到精準的量亦可進行非接觸性的距離 ^安裝及校準受到其方法的限然而由於平行雷射光束 存槽之中央,在使用上仍盔法】,且其浮板液需固定於儲 w建到便利及可隨時變化之目 5 1289198 且可簡易安裝之非接觸 的。因此目前需要一種更為精密, 式量測系統。 ~ 【發明内容】 像監彳丨種應用㈣_存槽之影 係,將從數位攝影機或數位相的轉換關 =算出儲存液體之距離,並 之 旦1本發明係提供一種應用於液體儲存槽 “象監視與存1偵測共構系統 ;:前存槽所儲存液體之液面;以 ^置·’=簡取-包括前述反光板的影像圖形之影像晝面 ^ 中’利用前述影像晝面資訊計算前述反光板的影 4圖形,像素值,並計㈣述影像圖形的像素值與前述影 像晝面資sfl之最大攝影像素值的像素值之像素值比值,進 而利用前述像素值比值係與前述反光板之實際長度與前述 影像畫面資訊之實際最大攝影長度的長度比值成正比之關 係’計算前述實際影像晝面資訊之最大攝影長度,以及根 據前述最大攝影長度與三角形定理計算前述反光板與前述 液體儲存槽頂部之距離。 為達上述目的,本發明復提供一種應用於液體儲存槽 之影像監視與存量偵測方法,包括:以一數位影像裝置擷 取包含一目標物的影像圖形之影像晝面資訊;計算前述影 像圖形的像素值與前述影像畫面資訊之最大攝影像素值的 像素值之像素值比值;利用前述像素值比值係與前述目標 物之實際長度與前述影像畫面資訊之實際最大攝影長度的 1289198 長度比值成正比之關係,計算前述實際影像畫面資訊之最 影長度;以及根據前述最大攝影長度與三角形定理計 算前述目標物與前述數位影像裝置之距離。 、達,上述目的之本發明應用於液體儲存槽之影像監 視與存量債測共構系統不必再使用兩道平行的雷射光,也 不净,固定在同一垂直軸上,使得本發明系統的機構 更簡單’安裝更容易。且由於本發明之系統不必考慮光學 ,點所在的位置’以及該數位攝影機或數位相機之架設的 同度1故則於1測過程中,本發明之系統將不必做任何高 度的k正。且因無需光學原點的距離,因此使得該數位攝 3或數位相機不受限於任一品牌或型號,只要經過量測 茶,建立,便可直接進行距離之量測及影像之觀察。 巧明rf之前述目的或特徵,將依據後_式加以詳細 明而非i 瞭的疋’後附圖式及所舉之例,祇是做為說 月而非在限制或縮限本發明。 【實施方式】 為^應用於液體儲存槽之影像監視與存量 機裝;於二液體二以、將-數位攝影機或數位相 例關係及距==頂二離的線性比 體的=巧’賴時監_儲餘義物理狀態。 括:二數:攝号 =、明施例之系統架構圖,包 該數位摄与:機 諸存槽200以及-反光板_。 方,並/¾⑽係架設於該儲存槽2GG之頂部201上 槽二=璃=隔離該數位攝影機100與該储存 一避免儲存液體與數位攝影機100直接 7 1289198 接觸,以形成一非接觸式的距離量測。且進一步藉由調整 忒強化玻璃211以限制儲存液體之液面與該數位攝影機 100之距離,可避免儲存液體之液面高於該數位攝影機1〇〇 的掃描死區。 該儲存槽200之頂部2〇1進一步包括一防塵罩21〇外 罩於該數位攝影機100之上,以隔絕週遭環境對該數位攝 影機100及該儲存槽200所造成之污染。該防塵罩21〇並 加设一個投射燈221及222,以提供該儲存槽200的内部 照明。該反光板300係為一圓形浮板,且進一步包括一浮 力棉310以及一重力錘320,其中該浮力棉310係提供一 浮力予該反光板300,使該反光板300可浮置於該儲存槽 200的儲存液體之液面上,而該重力錘320係提供一重力 予該反光板300 ’以穩定該反光板300的晃動,且該浮力 棉310所提供之浮力大於該重力錘320所提供之重力,使 該反光板300得以浮出儲存液體之液面。且該反光板3〇〇 之上表面較佳的為一單色之平面,以利該數位攝影機2〇〇 擷取像素值,並進行距離量測,而於本發明之實施例中該 反光板300係為一具有黃色色系之上表面。當該反光板3〇〇 與儲存槽200内部之儲存液體顏色不相等時,該計算單元 40即可輕易將影像畫面二階化後計算出該反光板3〇〇表面 之圓面積。 利用該數位攝影機100可觀察該儲存槽200内部儲存 液體的物理狀態或紀錄其反應過程,並同時量測該儲存液 體的高度。由於反光板300將隨儲存液體的液面高度而升 降,於數位攝影機100所擷取影像晝面資訊中的該反光板 300之影像圖形的面積亦隨之改變。因此該計算單元4〇即 可以該反光板300之影像圖形的面積,計算出該反光板3〇〇 8 1289198 當時的高度。且由於該反光板300係為一圓形浮板,因此 該數位攝影機1〇〇之設置方向及位置皆不受限制。 參考第二圖為該反光板300之影像圖形的像素值與距 離轉換的示意圖,其中該反光板300進一步為一圓形平 板,藉由計算該反光板300之直徑的像素值即可求得^反 光板300距離該儲存槽200之頂部201的高度。本發^應 用於液體儲存槽之影像監視與存量偵測共構系統於^二^ 之示意圖係包括以下參數: @1289198 IX. Description of the Invention: [Technical Field] The present invention relates to an image monitoring and stock detection co-construction system applied to a liquid storage tank, which uses a pixel value of an image to calculate the height of the storage liquid, and The physical state of the stored liquid can be monitored simultaneously. [Prior Art] In the prior art, the height measuring device for liquid (water, petroleum or chemical solvent) or powder (plastic powder, flour or powder) used in a storage tank or container, such as the invention patent of the Republic of China The liquid level meter of Announcement No. 200970 and the tin furnace liquid level detecting device of the Republic of China Invention Patent No. 333335, one, the measuring device is placed in a storage tank or a container to measure the storage of the storage material twice . In addition, there is also a way to calculate the reflectance by ultrasonic ranging. 'But the transmitter and receiver of the ultrasonic still need to be connected. Therefore, the conventional reserve height measurement is recommended ^ and the Republic of China invention patent public whistle is The hair r first "light, use to measure;; the second machine; the state of the material outside the storage tank is not inside. But the CCD can simultaneously measure the central position of the top of the tank, and the machine and The laser source needs to be set to the center of the storage surface. Therefore, it is difficult to use the two parallel laser light fields to fix the liquid in the system. The detection and the precise amount can also be used for non-contact distance installation and calibration. The limitation of the method is due to the fact that the parallel laser beam is stored in the center of the groove, and the helmet solution is still used in the use, and the floating plate liquid needs to be fixed to the storage and can be easily changed and can be changed at any time. 5 1289198 and can be easily installed. Contact. Therefore, there is a need for a more sophisticated, measuring system. ~ [Invention] The application of the image (4) _ storage slot, from the digital camera or digital phase conversion = calculate the storage liquid distance, And the present invention provides a liquid storage tank "like the monitoring and storage 1 detection co-construction system;: the liquid level of the liquid stored in the front storage tank; to ^ set · ' = simple - including the aforementioned reflector The image of the image of the image is used to calculate the shadow 4 image of the reflector, the pixel value, and the pixel value of the image image and the maximum photographic pixel value of the image sfl The pixel value ratio of the pixel value is further proportional to the length ratio of the actual length of the reflector and the actual maximum photographic length of the image frame information by using the pixel value ratio to calculate the maximum photographic length of the actual image surface information. And calculating the distance between the reflector and the top of the liquid storage tank according to the aforementioned maximum photographic length and the triangle theorem. In order to achieve the above object, the present invention provides a method for image monitoring and stock detection applied to a liquid storage tank, comprising: capturing image information of an image pattern containing a target object by using a digital image device; and calculating the image pattern The ratio of the pixel value to the pixel value of the pixel value of the maximum photographic pixel value of the image frame information; the ratio of the pixel value to the ratio of the actual length of the target object to the actual maximum photographic length of the image frame information is proportional to the length ratio of 1289198 And calculating a maximum shadow length of the actual image frame information; and calculating a distance between the target object and the digital image device according to the maximum photographic length and a triangle theorem. The invention relates to the image monitoring and stock debt measurement co-construction system applied to the liquid storage tank, which does not need to use two parallel laser lights, nor is it fixed on the same vertical axis, so that the mechanism of the system of the invention Simpler 'installation is easier. Moreover, since the system of the present invention does not have to take into account the optical position, the position where the dot is located, and the degree of erection of the digital camera or digital camera, the system of the present invention does not have to do any high k positive during the measurement. And because the distance of the optical origin is not required, the digital camera or digital camera is not limited to any brand or model. As long as the tea is measured, the distance measurement and image observation can be directly performed. The above-mentioned objects or features of the present invention will be described in detail in the following description, and are not intended to limit the scope of the invention. [Embodiment] It is applied to the image monitoring and storage machine of the liquid storage tank; in the two liquids, the digital camera or the digital phase relationship and the distance == top two linear ratio body = Qiao Time supervision _ Chu Yuyi physical state. Including: two numbers: camera number =, the system architecture diagram of the application example, the digital camera and the machine: the storage slot 200 and the - reflector _. The square, and / / 3⁄4 (10) is erected on the top 201 of the storage tank 2GG, the slot 2 = glass = isolated the digital camera 100 and the storage of a storage avoidance liquid and the digital camera 100 directly 7 1289198 contact to form a non-contact distance Measure. Further, by adjusting the bismuth tempered glass 211 to limit the distance between the liquid level of the stored liquid and the digital camera 100, the liquid level of the stored liquid can be prevented from being higher than the scanning dead zone of the digital camera. The top portion 〇1 of the storage tank 200 further includes a dust cover 21 〇 over the digital camera 100 to isolate the surrounding environment from contamination of the digital camera 100 and the storage tank 200. The dust cover 21 is provided with a projection lamp 221 and 222 to provide internal illumination of the storage tank 200. The reflector 300 is a circular floating plate, and further includes a buoyancy cotton 310 and a gravity hammer 320, wherein the buoyancy cotton 310 provides a buoyancy force to the reflector 300, so that the reflector 300 can be floated thereon. The storage tank 200 stores the liquid surface of the liquid, and the gravity hammer 320 provides a gravity to the reflector 300' to stabilize the shaking of the reflector 300, and the buoyancy cotton 310 provides a buoyancy greater than the gravity hammer 320. The gravity is provided to allow the reflector 300 to float out of the liquid level of the stored liquid. And the upper surface of the reflector 3 is preferably a monochromatic plane, so that the digital camera 2 captures the pixel value and performs distance measurement, and in the embodiment of the invention, the reflector The 300 series is a surface having a yellow color system. When the color of the storage liquid in the interior of the storage tank 200 is not equal, the calculation unit 40 can easily calculate the circular area of the surface of the reflector 3 by second-ordering the image. With the digital camera 100, the physical state of the liquid stored inside the storage tank 200 can be observed or the reaction process can be recorded, and the height of the storage liquid can be measured at the same time. Since the reflector 300 will rise and fall with the level of the liquid level of the stored liquid, the area of the image pattern of the reflector 300 in the image information captured by the digital camera 100 also changes. Therefore, the calculation unit 4 can calculate the height of the reflector 3 289 8 1289198 at the time of the image pattern of the reflector 300. Moreover, since the reflector 300 is a circular floating plate, the setting direction and position of the digital camera 1 are not limited. Referring to the second figure, a schematic diagram of pixel value and distance conversion of the image pattern of the reflector 300, wherein the reflector 300 is further a circular plate, and the pixel value of the diameter of the reflector 300 can be calculated. The reflector 300 is at a height from the top 201 of the storage tank 200. The image of the image monitoring and stock detection co-construction system used in the liquid storage tank is shown in the following figure:

OP :數位攝影機100之光學原點;OP: optical origin of the digital camera 100;

Pi、Pj :該反光板300所處之不同位置; &、~ :該反光板300分別於Pi、Pj與該數位攝影 100之表面的距離; 心 厶〇 ·光學原點OP與該數位攝影機100之表面的距離· 广:該反光板300之半徑; ’ :該數位攝影機100所能攝影之最大角度; 、凡(¾):該反光板300分別於位置Pi、p复旦/ 像圖形直徑的像素值; 1 j 〃影 :該數位攝影機1〇〇所能攝影之最大办 長度;以及 面資訊的 心(^>)、:該數位攝影機100之影像書 最大攝影像素值。 由於數位攝影機100所攝影之影像晝面資訊的打 間與被掃描物的水平距離有著線性比例關係,'因此時 接以像素值的大小代表該反光板300之水平距離。可直 線性比例關係可知該反光板300的水平距離(2r)與田康°亥 9 1289198 影長度/)(¾))的比值即和該反光板300的像素值 (凡仇;、#/¥)與最大攝影像素值、馬「/^)的比值相 同,參考下列關係式: D(ht) =Pi, Pj: different positions of the reflector 300; &, ~: the distance between the Pi and Pj and the surface of the digital camera 100; the palpebral optical origin OP and the digital camera The distance of the surface of 100 is wide: the radius of the reflector 300; ': the maximum angle that the digital camera 100 can photograph; (3⁄4): the reflector 300 is at the position Pi, p Fudan / image diameter Pixel value; 1 j Shadow: The maximum length of the digital camera that can be photographed; and the heart of the face information (^>): the maximum photographic pixel value of the video book of the digital camera 100. Since the image of the image information captured by the digital camera 100 has a linear proportional relationship with the horizontal distance of the object to be scanned, 'the size of the pixel value represents the horizontal distance of the reflector 300. The linearity proportional relationship can be seen that the ratio of the horizontal distance (2r) of the reflector 300 to the shadow length/) (3⁄4) of the Tiankang Haihai 9 1289198 is the pixel value of the reflector 300 (凡仇;, #/¥ ) The same as the ratio of the maximum photographic pixel value and horse "/^), refer to the following relationship: D(ht) =

且不論該數位攝影機100的攝影距離長度為何,該數 位攝影機100所擷取之影像畫面資訊的畫面大小皆相等, 亦即每一條掃描線的像素值皆相等,為,因此可 得下列關係式:Regardless of the length of the photographic distance of the digital camera 100, the image size of the image information captured by the digital camera 100 is equal, that is, the pixel values of each scanning line are equal, so that the following relationship can be obtained:

Nd ) = Nd (hj) = Ns (max) m)=M^〇x2r N人 D%) = # 參考三角形定理以及帶入上述關係式的結果可將&、 的值表示為以下關係式: K =-i)(^)cot05-/zo K (max) Nr{K) xrxcot05 -h0 hj = — D{hj)cotes -h0 乂 (max) Nr(hj) xrxcot9s -h0 其中,COi久、知二個參數值係可經由一計算模型事先 計算出該二個參數值的大小。因此再計數 TV/Zy值之後即可求得/2Ζ·、化·的值。 1289198 參考第三圖為計算二個參數值的計算模型之 系統架構圖,包括二組垂直量尺411、412以及二組水平量 尺421、422,其中該等水平量尺421、422係分別與該數 位攝影機100的表面之垂直距離為,且該等垂直 距離Aw、可輕易由該等垂直量尺411、412量測出, 且該數位攝影機100於該等水平量尺421、422之最大水平 攝影距離可由該等水平量尺輕易量測出,並表示為、 Dm2。 由三角形定理可得、/z0+/^2的值,如以下關係 式: K +Kl =^Drnl C〇t^s h0+Kl =^Dml^ 由於藉由該等垂直量尺411、412及水平量尺421、422 可輕易得出的值,因此可求得μ狀、 知二個參數值,如以下關係式:Nd ) = Nd (hj) = Ns (max) m)=M^〇x2r N person D%) = # Reference triangle theorem and the result of the above relationship can be used to represent the value of &, as the following relation: K =-i)(^)cot05-/zo K (max) Nr{K) xrxcot05 -h0 hj = — D{hj)cotes -h0 乂(max) Nr(hj) xrxcot9s -h0 where COi is long, know The two parameter values can be calculated in advance by a calculation model. Therefore, after counting the TV/Zy value, the value of /2···· can be obtained. 1289198 Referring to the third figure, the system architecture diagram of the calculation model for calculating two parameter values includes two sets of vertical scales 411, 412 and two sets of horizontal scales 421, 422, wherein the horizontal scales 421, 422 are respectively The vertical distance of the surface of the digital camera 100 is, and the vertical distance Aw can be easily measured by the vertical scales 411, 412, and the digital camera 100 is at the maximum level of the horizontal scales 421, 422. The photographic distance can be easily measured by the horizontal scales and expressed as Dm2. The value of /z0+/^2 can be obtained from the triangle theorem, such as the following relation: K + Kl = ^ Drnl C〇t^s h0 + Kl = ^ Dml ^ due to the vertical scales 411, 412 and horizontal The values of the measuring rods 421 and 422 can be easily obtained, so that the μ-shaped and the two parameter values can be obtained, such as the following relationship:

C〇tA=2HC〇tA=2H

Dm2 ~ Dml h _ KlDm\ ~K\Dm2 〇' Dm2-Dml 參考第四A圖〜第四D圖為該數位攝影機100之水平 角度變化的掃描線示意圖,當反光板300為圓形且該數位 攝影機100係對該儲存槽200之儲存液體表面成垂直攝影 時,不論該數位攝影機100之水平角度為何,且不論該儲 存槽200之槽體為四方形或圓形,皆不會影響該反光板300 11 1289198 之影像圖形的像素計曾 之影像監視與存量^ = ¥設本發明應料液體儲存槽 系統更具有實^值錢得更為簡便,使得本發明之 參考第五圖為影像圖 5〇1時,該面積計算演管.遍^/开之机長圖’於流程 取包括該反光㈣0二=數位攝影機100讀 502時,即=二if象圖形的影像晝面資訊;於流程 有非屬黃色色資訊作色差濾光處理,以將所 5,即以作相同色系的色度比較;於流程504 、卩檢「所項取之像素的色度是否位於臨界值之内,若 L的日,則程《505,若是的話則進行流程506;於流程 。寸,則Μ,判斷下一筆讀取數值並回轉至流程5〇4;於 1程506時,啟動像素計數功能以統計像素值;於流程507 犄,檢查是否已完成全畫面確認,若否的話則進行流程 5〇8 若是的話則進行流程5〇9 ;於流程5〇8時,繼續判斷 下一筆讀取數值並回轉至流程504 ;以及於流程5〇9時, 將所統計出的總像素值換算為影像圖形面積。 當反光板300於距離該儲存槽200之頂部201為/^· 時’由於所有讀取之影像畫面資訊先作色差濾光處理,因 此當所比較的像素是位於所設定的臨界值之内,則該像素 可視為該反光板300的影像圖形之像素,此時所有被統計 的黃色色系之像素值的總合(ΣΛ^)即代表該反光板300的 影像圖形之面積,而K/2J即可視為反光板300的直徑所 佔之像素值。 由於在同一距離(/ζζ·)之下該反光板300亦可位於任一 位置,因此以下即檢查在同一距離(\·)之下,該反光板300 12 1289198 所處之位置對本發明之系統的計算結果之影塑。 當該反光板300之直徑為iU公分且㈣155公分 時,可得如下表之統計資料:Dm2 ~ Dml h _ KlDm\ ~K\Dm2 〇' Dm2-Dml Referring to FIG. 4A to FIG. 4D are schematic diagrams of scanning lines of the horizontal angle of the digital camera 100, when the reflector 300 is circular and the digit When the camera 100 is vertically photographed on the surface of the storage liquid of the storage tank 200, regardless of the horizontal angle of the digital camera 100, and regardless of whether the tank of the storage tank 200 is square or circular, the reflector is not affected. 300 11 1289198 The image of the pixel image of the image is monitored and stocked ^ = ¥ The liquid storage tank system of the present invention is more practical and simple, so that the fifth picture of the present invention is the image 5〇 At 1 o'clock, the area is calculated and the flow chart of the ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The yellow color information is used for color difference filtering to compare the chromaticity of the same color system; in the process 504, check whether the chromaticity of the pixel taken by the item is within the critical value, if L Day, then the process "505, if it is, then proceed to process 50 6; in the process. Inch, then, judge the next reading value and turn to the flow 5〇4; in the 1st step 506, start the pixel counting function to count the pixel value; in the process 507 犄, check whether the full screen has been completed Confirm, if not, proceed to process 5〇8, if yes, proceed to process 5〇9; at process 5〇8, continue to judge the next reading value and revert to process 504; and in process 5〇9, The total pixel value is converted into the area of the image pattern. When the reflector 300 is at the top 201 of the storage tank 200, the data is filtered because all the read image information is filtered. The pixel is located within the set threshold value, and the pixel can be regarded as the pixel of the image pattern of the reflector 300. At this time, the sum of the pixel values of all the counted yellow color systems (ΣΛ^) represents the reflection. The area of the image pattern of the board 300, and K/2J can be regarded as the pixel value occupied by the diameter of the reflector 300. Since the reflector 300 can be located at any position below the same distance (/ζζ·), the following That is, the inspection is under the same distance (\·) The position of the reflector is located 300,121,289,198 plastic shadow calculation result of the system of the present invention, when the diameter of the reflecting plate 300 and ㈣155 iU cm cm, available statistics of the following table:

當該反光板300之直徑為1U公分且&為- 時,可得如下表之統計資料:When the diameter of the reflecting plate 300 is 1 U cm and & is -, the statistics of the following table are obtained:

而誤差量的定義為: 士 Σ雄)-雄) 丄 N n=\_ :100% m 根據誤,量的定義,可證實在同—距離⑹之下,該 光板獅所處之位置對本發明之系統 大,且其誤差是可以被接受的。 T — U並不 因此,當反光板300於&位置時, 光板300的影像圖形之面積,且以 ^代表6亥反 影像圖形之直徑,可求得該錄細=下為戶^板雇的The error amount is defined as: 士Σ雄)-雄) 丄N n=\_ :100% m According to the definition of error and quantity, it can be confirmed that under the same-distance (6), the location of the light lion is on the present invention. The system is large and its error is acceptable. T—U is not the result. When the reflector 300 is in the & position, the area of the image pattern of the light panel 300, and the diameter of the image representing the 6-ray inverse image, can be obtained. of

Nr (^ ) = 2 X. π 由於本發明係先統計該影像圖 挪),再利用面積與半徑的關係式 ,3〇=直徑所佔之像素值(物),如此利 的計鼻方法可避免量測結果的不確定性。 句值 而在得知AW的值之後,由於c_s,二個參數值 13 1289198 係為事先所計算出之已知值,因此根據以下關係式即可計 算出&的值: w〇tes—h〇Nr (^) = 2 X. π Since the present invention first counts the image map, and then uses the relationship between the area and the radius, 3〇 = the pixel value of the diameter (object), so the method of calculating the nose can be Avoid uncertainty in measurement results. After the value of AW is known, since c_s, the two parameter values 13 1289198 are known values calculated in advance, so the value of & can be calculated according to the following relation: w〇tes-h 〇

一般儲存液體的高度係指由儲存液體之液面到儲存槽 之槽底的距離,因此復參考第-圖,其中Ρβ為該反光板 300浮置於液面時其上表面之位置’ 為底部2〇2的上表 面,為該反光板300置於底部202時其上表面之位置。 因此,/zg係為該反光板300位於/>α時該反光板$⑻之上 表面與該數位攝影機1GG之表面的㈣,&係為該反光板 300位於W時該反光板300之上表面與該數位攝影機ι〇〇 之表面的距離,而迅g則為該反光板3〇〇之結構厚度因 此該儲存槽200之儲存液體的高度可表示為如下所示: Η 明=hg-ha+HbgGenerally, the height of the stored liquid refers to the distance from the liquid level of the storage liquid to the bottom of the storage tank. Therefore, reference is made to the figure, wherein Ρβ is the position of the upper surface of the reflector 300 when it is placed on the liquid surface. The upper surface of 2〇2 is the position of the upper surface of the reflector 300 when it is placed at the bottom 202. Therefore, /zg is the (4) of the surface above the reflector $(8) and the surface of the digital camera 1GG when the reflector 300 is located at />, and the reflector 300 is located when the reflector 300 is located at W. The distance between the upper surface and the surface of the digital camera is fast, and the height is the structural thickness of the reflector 3, so the height of the storage liquid of the storage tank 200 can be expressed as follows: Η明=hg- Ha+Hbg

Kmax) AT“max) 由上述關係式可知,計算儲存液體之高度並不需要知 之參數值,因此可表示本發明之系統適祕任—數位攝影 機,而不受限於其光學原點OP的位置,且不 摄 影機100之安裝高度為何皆不會影響到量測之結^,因此 使得本發明之系統的安裝與架設變的十分容易。 本發明之系統並實際以sony P10為數位攝影機100 作實際量測,利用第三圖所示之系統架構圖建立參數值 印紙=0.731 ’且該數位攝影機1〇〇之解析度為2〇48*1536, 所以每一條掃描線最大攝影像素值Μ知似;為2〇48個,而 該反光板300之半徑為公分,因此可得結果如下所示: —實際高度 ^~155 ~ 14 1289198Kmax) AT "max" From the above relationship, the calculation of the height of the stored liquid does not require a known parameter value, and thus can represent the system of the present invention, which is not limited by the position of the optical origin OP. Moreover, the mounting height of the camera 100 does not affect the measurement, so that the installation and mounting of the system of the present invention is very easy. The system of the present invention is actually a sony P10 for the digital camera 100. Actual measurement, using the system architecture diagram shown in the third figure to establish the parameter value printing paper = 0.731 'and the resolution of the digital camera is 2〇48*1536, so the maximum photographic pixel value of each scanning line is Μ ; 2 〇 48, and the radius of the reflector 300 is cm, so the results are as follows: - actual height ^ ~ 155 ~ 14 1289198

Nr(ha) 107.23 84.50 量測高度 --------—___ 154.97 ----- 196.66 誤差量% 0.019 0.173 - 因此,即使當該反光板300並未固定,且位於該儲存 槽200内部儲存液體之液面的任意位置,本發明之^統^ 量測之結果所獲得之誤差仍非常小。 ' 目前的自動化加工系統之距離量測方法中,在各種自 動化加工之工作母機上,幾乎都是使用增量型的光學尺做 為距離量測的工具。然而在光學尺的使用上必須帶動感測 _ 頭的移動,以進行光學量測,而感測頭的移動容易產生摩 擦,且導致因震動所造成的誤差以及測量時的歸零校正等 問題。因此可進一步將本發明應用於液體儲存槽之影像監 視與存量偵測共構系統應用於自動化加工系統之距^量^ 方法,以改善上述之問題。 、 參考第六圖為將本發明應用於自動化加工系統之距離 量測方法之一實施例的系統架構圖。該實施例即於一加工 設備603 —侧加裝一固定面積之標準面積參考板6〇1,以 達到本發明系統的反光板之功能,且該加工 •…平台602上作水平移動,以將固定夹 待加工物進行表面加工之動作。 該實施例同樣以一數位攝影機100架設於該標準平面 參考板601之一侧,利用該標準面積參考板6〇1於該數位 攝影機100的影像晝面中所形成之影像圖形的面積大小, 以代表該數位攝影機100與該標準面積參考板601之距 離。由於加工設備603之加工範圍的起點(A)與終點(B)皆 以直接預先设疋,且當加工設備603位於a及b之上方 時’其影像圖形分別可表示為與Σ&。 15 1289198 於該貝知例中,該標準面積參考板⑹ 的最大範圍選用不同大小之摔準 依待測距離 解析度(量測的最小單位),t=到最高的量测 ,方形時,可以用每一條掃描:===6。1 i作該距離時的等則能避免因震動所二 參考第七圖為該標準面積參考板6 C示意圖,其中,該標準面積參考板601、:長 為々,且共有灸條掃描、線,因此可得一關係 ς 疋 而求得該標準面積參考板6()1的移動距離下’亚進 Κ h、ha,m) K(ha)=^~— Κ 若以2公分的移動量具有2〇〇個 ί量測解析度即可達狀1公厘㈣的:度多 =數位攝雜或触像機其單财传 達到_個像素以上,故其量測解析度將可達至 μιη)以上的解析度。因此將本發明之系統應用於各動自動 化加工設備的設計與製造,亦能提供一種精確且能依 而任意加裝的距離量測系統,因而使得本發明之系 計及應用上更具彈性。 一綜上所述,本發明應用於液體儲存槽之影像監視鱼存 量偵測共構系統係為一非接觸式距離量測系統,可避免操 作時工作人員與儲存液體接觸所引發之公安危險,且由於 本發明之系統不必再使用兩道平行的雷射光,也不必把浮 板固定在同一垂直軸上,使得量測系統的機構更簡單,安 装更容易。並且因不必考慮數位攝影機光學原點所在的位 置,也不必考慮於槽頂架設的高度,故於量測過程中,將 16 1289198 何高度的校正。且因無f光學原點的距離,因此 使传該數⑽影機或触相財受限於任—品 :要經過量測參數的建立’便能代入數位攝影“ S t ax),並直接使驗本發明之純巾。且本的 =门:可應用於各種自動必加重,做為精密距離^的 能由影像畫*觀測加工的情形,並且得知^離 在詳細說明本發明的較佳實施例之後,熟悉 I清楚的瞭解’在不脫離下述t請專利範心2術 j仃各種變化與改變,且本 砷下 實施例的實施方式。料U不又_,書中所舉Nr(ha) 107.23 84.50 Measurement height --------___ 154.97 ----- 196.66 Error amount % 0.019 0.173 - Therefore, even when the reflector 300 is not fixed, and is located in the storage tank 200 The error obtained by the measurement results of the present invention is still very small at any position of the liquid level of the internal storage liquid. In the current distance measurement method of automated machining systems, incremental optical gauges are almost always used as distance measurement tools in various automatic machining machines. However, in the use of the optical scale, the movement of the sensing head must be driven for optical measurement, and the movement of the sensing head is liable to cause friction, and causes errors due to vibration and zero correction during measurement. Therefore, the present invention can be further applied to the method of applying the image monitoring and stock detection co-construction system of the liquid storage tank to the automated processing system to improve the above problems. Reference Fig. 6 is a system architecture diagram of an embodiment of a distance measuring method for applying the present invention to an automated processing system. In this embodiment, a fixed area standard area reference plate 6〇1 is attached to a processing device 603 to achieve the function of the reflector of the system of the present invention, and the processing platform 602 is horizontally moved to Fixing the action of the workpiece to be processed on the surface. In this embodiment, a digital camera 100 is also mounted on one side of the standard plane reference board 601, and the area of the image pattern formed by the standard area reference board 6〇1 in the image plane of the digital camera 100 is used. Represents the distance of the digital camera 100 from the standard area reference plate 601. Since both the start point (A) and the end point (B) of the processing range of the processing apparatus 603 are directly pre-set, and when the processing apparatus 603 is located above a and b, the image patterns thereof can be expressed as Σ & 15 1289198 In the case of the Bay, the maximum range of the standard area reference plate (6) is selected according to the resolution of the distance to be measured (the smallest unit of measurement), t= to the highest measurement, square, can With each scan: ===6. 1 i for this distance can avoid the vibration according to the second reference seventh picture is the standard area reference plate 6 C schematic, wherein the standard area reference plate 601,: long For 々, and there are a total of moxibustion scans, lines, so you can get a relationship ς 疋 and find the standard area of the reference plate 6 () 1 moving distance under the 'Asian Κ h, ha, m) K (ha) = ^ ~— Κ If you have 2 〇〇 ί ί 以 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Therefore, the measurement resolution will reach the resolution above μιη). Therefore, the application of the system of the present invention to the design and manufacture of various dynamic automated processing equipment can also provide an accurate and arbitrarily detachable distance measuring system, thereby making the system and application of the present invention more flexible. In summary, the image monitoring fish stock detection co-construction system applied to the liquid storage tank is a non-contact distance measuring system, which can avoid the public security risk caused by the contact between the worker and the storage liquid during operation. Moreover, since the system of the present invention does not have to use two parallel laser lights, it is not necessary to fix the floating plate on the same vertical axis, which makes the mechanism of the measuring system simpler and easier to install. And because it is not necessary to consider the position of the optical origin of the digital camera, and it is not necessary to consider the height of the top of the slot, the height of the 16 1289198 is corrected during the measurement. And because there is no distance from the optical origin of the f, the number (10) of the camera or the phase of the money is limited to any product: the establishment of the measurement parameter can be substituted into the digital photography "S t ax", and directly The invention can be used to test the pure towel of the present invention, and the present invention can be applied to various automatic weighting, as a precise distance ^ can be observed by the image drawing *, and it is known that the invention is described in detail. After the preferred embodiment, familiar with I clearly understands 'there are variations and changes without departing from the following t, and the implementation of the embodiment of the present arsenic. The material U is not _, the book

17 1289198 【圖式簡單說明】 第一圖為本發明一較佳實施例之系統架構圖; 第二圖為像素值與距離轉換的示意圖; 第三圖為計算參數值的計算模型之系統架構圖; 第四A圖為該數位攝影機於水平角度及該反光板於 /2/距離之掃描線示意圖; 第四B圖為該數位攝影機於水平角度及該反光板於 %距離之掃描線示意圖; 第四C圖為該數位攝影機於傾斜角度及該反光板於 距離之掃描線示意圖; 第四D圖為該數位攝影機於傾斜角度及該反光板於 &距離之掃描線示意圖; 第五圖為影像圖形面積計算之流程圖; 第六圖為本發明另一實施例之系統架構圖;以及 第七圖為標準面積參考板的掃描線示意圖。 主要部份之代表符號: 100—數位攝影機 > 200…儲存槽 201…儲存槽頂部 202…儲存槽底部 210 —防塵罩 211 —強化玻璃 221、222…投射燈 300—反光板 310—浮力棉 320…重力錘 18 1289198 411、412…垂直量尺 421、422…水平量尺 500—面積計算演算法 501〜50 9—流程 601 —標準面積參考板 602…工作平台 603…加工設備 604— 待加工物 605— 固定爽17 1289198 BRIEF DESCRIPTION OF THE DRAWINGS The first figure is a system architecture diagram of a preferred embodiment of the present invention; the second diagram is a schematic diagram of pixel value and distance conversion; and the third figure is a system architecture diagram of a calculation model for calculating parameter values. 4A is a schematic diagram of the digital camera at a horizontal angle and a scan line of the reflector at /2/distance; FIG. 4B is a schematic diagram of the digital camera at a horizontal angle and a scan line of the reflector at a % distance; The fourth C picture is a schematic diagram of the scanning line of the digital camera at an oblique angle and the distance of the reflector; the fourth D is a schematic diagram of the digital camera at an oblique angle and a scanning line of the reflector in the &distance; A flowchart of a graph area calculation; a sixth diagram is a system architecture diagram of another embodiment of the present invention; and a seventh diagram is a schematic diagram of a scan line of a standard area reference board. Representative symbols of the main parts: 100-digit camera> 200... Storage tank 201... Storage tank top 202... Storage tank bottom 210 - Dust cover 211 - Reinforced glass 221, 222... Projection lamp 300 - Reflector 310 - Buoyancy cotton 320 ...gravity hammer 18 1289198 411, 412... vertical scale 421, 422... horizontal scale 500 - area calculation algorithm 501~50 9 - flow 601 - standard area reference plate 602... work platform 603... processing equipment 604 - to be processed 605- fixed

1919

Claims (1)

1289198 十、申請專利範圍: ' 1. 一種應用於液體儲存槽之影像監視與存量偵測共構系 統,包括: 一反光板,係浮置於前述液體儲存槽所儲存液體之 液面;以及 一數位影像裝置,用以擷取一包括前述反光板的影 像圖形之影像畫面資訊; 其中,利用前述影像晝面資訊計算前述反光板的影 • 像圖形之像素值,並計算前述影像圖形的像素值與前述 影像晝面資訊之最大攝影像素值的像素值之像素值比 值,進而利用前述像素值比值係與前述反光板之實際長 度與前述影像畫面資訊之實際最大攝影長度的長度比 值成正比之關係,計算前述實際影像畫面資訊之最大攝 影長度,以及根據前述最大攝影長度與三角形定理計算 前述反光板與前述液體儲存槽頂部之距離。 2. 如申請專利範圍第1項之應用於液體儲存槽之影像監 ® 視與存量偵測共構系統,其中前述數位影像裝置係可為 一數位攝影機或一數位相機。 3. 如申請專利範圍第1項之應用於液體儲存槽之影像監 視與存量偵測共構系統,其中前述反光板之上表面係為 一具有單色系之平坦表面。 4. 如申請專利範圍第1項之應用於液體儲存槽之影像監 視與存量偵測共構系統,其中前述反光板係為一圓形平 20 1289198 板。 .5·如申巧專利範圍第1項、第3項或第4項之應用於液體 儲存槽之影像監視與存量偵測共構系統,其中前述反光 板進一步包括一浮體,用以提供前述反光板浮力。 6·如申凊專利範圍第丨項、第3項或第4項之應用於液體 儲存槽之影像監視與存量偵測共構系統,其中前述反光 • 板進一步包括一重力錘,用以穩定前述反光板。 7·如申睛專利範圍第1項之應用於液體儲存槽之影像監 視與存量偵測共構系統,其中前述液體儲存槽進一步包 括技射燈’用以增加前述液體儲存槽内部之亮度。 8·如申請專利範圍第1項之應用於液體儲存槽之影像監 視^存量偵測共構系統,其中前述數位影像裝置係設置 於刖述液體儲存槽之頂部,並以一透明隔離板隔離前述 春 數位影像裝置與前述液體儲存槽所儲存之液體。 9· 一種應用於液體儲存槽之影像監視與存量偵測方法,包 括: 以一數位影像裝置擷取包含一目標物的影像圖形之 影像晝面資訊; p計算前述影像圖形的像素值與前述影像畫面資訊之 . 最大攝影像素值的像素值之像素值比值; 、,利用前述像素值比值係與前述目標物之實際長度與 月'J述影像晝面資訊之實際最大攝影長度的長度比值成 211289198 X. Patent application scope: ' 1. A video surveillance and stock detection co-construction system applied to a liquid storage tank, comprising: a reflector, a liquid surface floating on the liquid stored in the liquid storage tank; a digital image device for capturing image information of an image pattern including the reflector; wherein the image of the image of the reflector is calculated by using the image information of the reflector, and the pixel value of the image is calculated a pixel value ratio of a pixel value of a maximum photographic pixel value of the image facet information, and further proportional to a length ratio of the actual length of the reflector and the actual maximum photographic length of the image frame information by using the pixel value ratio Calculating a maximum photographic length of the actual image frame information, and calculating a distance between the reflector and the top of the liquid storage tank according to the maximum photographic length and a triangle theorem. 2. The image monitoring and storage detection co-construction system applied to a liquid storage tank according to the first application of the patent scope, wherein the digital image device can be a digital camera or a digital camera. 3. The image monitoring and stock detection co-construction system applied to a liquid storage tank according to claim 1, wherein the upper surface of the reflector is a flat surface having a monochromatic system. 4. The image monitoring and stock detection co-construction system applied to a liquid storage tank according to the first application of the patent scope, wherein the reflector is a circular flat 20 1289198 board. .5. The image monitoring and stock detection co-construction system applied to a liquid storage tank according to claim 1, wherein the reflector further comprises a floating body for providing the foregoing Reflector buoyancy. 6. The image monitoring and stock detection co-construction system applied to a liquid storage tank according to the third, fourth or fourth aspect of the application, wherein the reflective plate further comprises a gravity hammer for stabilizing the foregoing Reflector. 7. The image monitoring and stock detection co-construction system for liquid storage tanks according to claim 1, wherein the liquid storage tank further comprises a technical light to increase the brightness of the interior of the liquid storage tank. 8. The image monitoring and storage detecting co-construction system applied to a liquid storage tank according to claim 1, wherein the digital image device is disposed at the top of the liquid storage tank and is insulated by a transparent partition. The spring digital image device and the liquid stored in the liquid storage tank. 9. A method for image monitoring and stock detection applied to a liquid storage tank, comprising: capturing image information of an image pattern containing a target object by using a digital image device; p calculating a pixel value of the image pattern and the image The ratio of the pixel value of the pixel value of the maximum photographic pixel value; and the ratio of the length of the pixel value to the actual length of the target object and the actual maximum photographic length of the monthly image information is 21
TW95136531A 2006-10-02 2006-10-02 Image monitoring and stock detection integrated system applied in liquid storage tank and method thereof TWI289198B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW95136531A TWI289198B (en) 2006-10-02 2006-10-02 Image monitoring and stock detection integrated system applied in liquid storage tank and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW95136531A TWI289198B (en) 2006-10-02 2006-10-02 Image monitoring and stock detection integrated system applied in liquid storage tank and method thereof

Publications (2)

Publication Number Publication Date
TWI289198B true TWI289198B (en) 2007-11-01
TW200817656A TW200817656A (en) 2008-04-16

Family

ID=39294920

Family Applications (1)

Application Number Title Priority Date Filing Date
TW95136531A TWI289198B (en) 2006-10-02 2006-10-02 Image monitoring and stock detection integrated system applied in liquid storage tank and method thereof

Country Status (1)

Country Link
TW (1) TWI289198B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI473975B (en) * 2011-11-01 2015-02-21 Finetek Co Ltd The installation and adjustment of the liquid level gauge
CN114459362A (en) * 2021-12-31 2022-05-10 深圳市瑞图生物技术有限公司 Measuring device and measuring method thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI473975B (en) * 2011-11-01 2015-02-21 Finetek Co Ltd The installation and adjustment of the liquid level gauge
CN114459362A (en) * 2021-12-31 2022-05-10 深圳市瑞图生物技术有限公司 Measuring device and measuring method thereof
CN114459362B (en) * 2021-12-31 2024-03-26 深圳市瑞图生物技术有限公司 Measuring device and measuring method thereof

Also Published As

Publication number Publication date
TW200817656A (en) 2008-04-16

Similar Documents

Publication Publication Date Title
CN104303026B (en) Dual-beam non-contact displacement transducer
US8244023B2 (en) Shape measuring device and shape measuring method
CN103308007B (en) The IC pin coplanarity measuring system of higher order reflection and grating image and method
CN203929068U (en) A kind of wide field optical system
TWI305395B (en) System and method for detecting wafer failure in wet bench application
CN103499334B (en) Distance measurement method, device and electronic equipment
CN108332708A (en) Laser leveler automatic checkout system and detection method
US10041814B2 (en) Optical measurement system, method and scaleplate therefor
CN108489423B (en) Method and system for measuring horizontal inclination angle of product surface
JP2018205025A (en) Image inspection device, image inspection method, image inspection program, and computer readable recording medium and recorded apparatus
US11060848B2 (en) Measuring device, system, method, and program
TWI247106B (en) Defect inspection apparatus
CN101770145A (en) Method for estimating actual size of object and real object projector
JP3427801B2 (en) Liquid level measuring device and liquid level measuring method
CN114495815B (en) Demura method, computing device and storage medium of miniature display screen
CN109683168A (en) A kind of geometric method laser imaging range unit and its measurement method
TWI289198B (en) Image monitoring and stock detection integrated system applied in liquid storage tank and method thereof
CN109357637B (en) Method for measuring curvature radius and thickness of plate rolling machine plate rolling based on depth camera
CN210720179U (en) Rechecking camera focusing and ranging device and glass rechecking equipment
JP2018205024A (en) Image inspection device, image inspection method, image inspection program, and computer readable recording medium and recorded apparatus
CN103443580A (en) System and method for calibrating a vehicle measurement reference system
JP2005291830A (en) Image measurement apparatus and image measurement method for liquid level
CN111947607B (en) Flatness measuring method, flatness measuring device, electronic equipment and storage medium
JP2012058136A (en) Displacement measuring device and displacement measuring method for dam body
CN208187381U (en) Laser leveler automatic checkout system

Legal Events

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