TW201519028A - Method for optically detecting location and device for optically detecting location - Google Patents

Method for optically detecting location and device for optically detecting location Download PDF

Info

Publication number
TW201519028A
TW201519028A TW102141405A TW102141405A TW201519028A TW 201519028 A TW201519028 A TW 201519028A TW 102141405 A TW102141405 A TW 102141405A TW 102141405 A TW102141405 A TW 102141405A TW 201519028 A TW201519028 A TW 201519028A
Authority
TW
Taiwan
Prior art keywords
rectangular object
candidate placement
candidate
placement position
quadrilateral
Prior art date
Application number
TW102141405A
Other languages
Chinese (zh)
Other versions
TWI515622B (en
Inventor
Hsi-Chun Hsiao
Shou-Te Wei
Original Assignee
Wistron Corp
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 Wistron Corp filed Critical Wistron Corp
Priority to TW102141405A priority Critical patent/TWI515622B/en
Priority to CN201310611937.8A priority patent/CN104635999B/en
Publication of TW201519028A publication Critical patent/TW201519028A/en
Application granted granted Critical
Publication of TWI515622B publication Critical patent/TWI515622B/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/042Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means
    • G06F3/0428Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means by sensing at the edges of the touch surface the interruption of optical paths, e.g. an illumination plane, parallel to the touch surface which may be virtual
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/041Indexing scheme relating to G06F3/041 - G06F3/045
    • G06F2203/04109FTIR in optical digitiser, i.e. touch detection by frustrating the total internal reflection within an optical waveguide due to changes of optical properties or deformation at the touch location

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Image Analysis (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

A device for optically detecting location comprises a first optical receiver, arranged to detect a first shadow angle shadowed by a rectangular object with known-size, a second optical receiver, arranged to detect a second shadow angle shadowed by the rectangular object with known-size, a coverage calculation unit yielding a coverage of the quadrilateral according to overlaps of a first region corresponding to the first shadow angle and a second region corresponding to the second shadow angle, a determination unit yielding at least a first candidate location and a second candidate location of the rectangular object from the coverage of the quadrilateral according to lengths of a first side and a second side of the rectangular object, and a selection unit selecting a real location of the rectangular object from the first candidate location and the second candidate location according to relative locations between the first candidate location and the coverage of the quadrilateral and between the second candidate location and the coverage of the quadrilateral and/or according to relative locations between the first candidate location and a known location of the rectangular object before a predetermined time, and between the second candidate location and a known location of the rectangular object before the predetermined time.

Description

光學式位置偵測方法及光學式位置偵測裝置 Optical position detecting method and optical position detecting device

本發明係有關於一種偵測裝置,特別係有關於光學式位置偵測裝置。 The invention relates to a detecting device, in particular to an optical position detecting device.

目前一般的光學式觸控設備係透過設置在該設備兩個角落的電荷耦合元件(Charge-coupled Device,CCD)/互補式金氧半導體(complementary metal oxide semiconductor,CMOS)攝影機偵測遮蔽物所形成的陰影,再透過三角定位的方式從陰影處找出遮蔽物可能的位置。然而,僅透過兩個CCD/CMOS攝影機所偵測出陰影的範圍會較大,較大的範圍將包含較多種可能的遮蔽物位置,因此將較難從較多的可能位置中準確判斷出遮蔽物的位置。若將傳統的光學式觸控設備應用在電子白板上,將導致因無法準確得知已知尺寸板擦的位置,進而無法準確清除板擦擦拭的圖示或文字。 At present, a general optical touch device is formed by detecting a mask by a charge-coupled device (CCD)/complementary metal oxide semiconductor (CMOS) camera disposed at two corners of the device. The shadow, and then through the triangle positioning to find the possible position of the shelter from the shadow. However, the range of shadows detected by only two CCD/CMOS cameras will be larger, and the larger range will contain more than one possible mask position, so it will be more difficult to accurately determine the shadow from more possible positions. The location of the object. If the conventional optical touch device is applied to the electronic whiteboard, the position of the known size of the eraser cannot be accurately known, and the icon or text of the eraser wipe cannot be accurately removed.

傳統的解決方式係透過增加光學式觸控設備上的CCD/CMOS攝影機,例如增加額外的CCD/CMOS攝影機在光學式觸控設備之其餘的兩個角落,以縮小陰影的範圍,進而減少可能擺放位置的數量,而能夠較為準確的從較少數量的位置中判斷出遮蔽物的位置。然而,由於此一方式需增加額外的CCD/CMOS攝影機,其將導致成本增加。因此,有需要提出一 種能夠準確偵測已知尺寸之矩形物體之位置而不會大幅增加成本的光學式觸控裝置。 The traditional solution is to reduce the range of shadows by adding CCD/CMOS cameras on optical touch devices, such as adding additional CCD/CMOS cameras to the remaining two corners of the optical touch device. By placing the number of positions, it is possible to more accurately determine the position of the shelter from a smaller number of positions. However, as this approach requires the addition of additional CCD/CMOS cameras, it will result in increased costs. Therefore, there is a need to propose one An optical touch device capable of accurately detecting the position of a rectangular object of a known size without greatly increasing the cost.

有鑑於此,本發明之一實施例提出一種光學式位置偵測裝置,包括一光學發射器,用於發射光線。該光學式位置偵測裝置更包括一第一光學接收器,用於偵測因已知尺寸的一矩形物體遮蔽該光線所產生之一第一遮蔽角度。該光學式位置偵測裝置更包括一第二光學接收器,用於偵測因已知尺寸的該矩形物體遮蔽該光線所產生之一第二遮蔽角度。該光學式位置偵測裝置更包括一遮蔽範圍計算單元,耦接該第一光學接收器及該第二光學接收器,依據該第一遮蔽角度及該第二遮蔽角度所分別對應的一第一區域及一第二區域之重疊部分,得出一四邊形遮蔽範圍。該光學式位置偵測裝置更包括一判斷單元,根據該矩形物體之一第一邊的長度及一第二邊的長度,從該四邊形遮蔽範圍判斷出該矩形物體之至少一第一候選擺放位置及一第二候選擺放位置。該光學式位置偵測裝置更包括一選擇單元,根據該第一候選擺放位置及該第二候選擺放位置個別相對於該四邊形遮蔽範圍之相對位置及/或個別相對於一既定時間前該矩形物體之已知擺放位置的相對位置,從該第一候選擺放位置及該第二候選擺放位置中選出該矩形物體之一真實擺放位置。 In view of this, an embodiment of the present invention provides an optical position detecting device including an optical transmitter for emitting light. The optical position detecting device further includes a first optical receiver for detecting a first shielding angle generated by obscuring the light by a rectangular object of a known size. The optical position detecting device further includes a second optical receiver for detecting a second shielding angle generated by the rectangular object of a known size to block the light. The optical position detecting device further includes a shielding range calculating unit coupled to the first optical receiver and the second optical receiver, respectively corresponding to the first shielding angle and the second shielding angle. The overlapping portion of the region and the second region yields a quadrilateral masking range. The optical position detecting device further includes a judging unit, and determining, according to the length of the first side of the rectangular object and the length of the second side, at least one first candidate placement of the rectangular object from the quadrilateral shielding range Position and a second candidate placement position. The optical position detecting device further includes a selection unit, according to the relative position of the first candidate placement position and the second candidate placement position relative to the quadrilateral shielding range and/or individually relative to a predetermined time The relative position of the known position of the rectangular object is selected from the first candidate placement position and the second candidate placement position.

除此之外,本發明之一實施例提出一種光學式位置偵測方法,包括發射光線。該光學式位置偵測方法更包括偵測因已知尺寸的一矩形物體遮蔽該光線所產生之一第一遮蔽 角度。該光學式位置偵測方法更包括偵測因已知尺寸的該矩形物體遮蔽該光線所產生之一第二遮蔽角度。該光學式位置偵測方法更包括依據該第一遮蔽角度及該第二遮蔽角度所分別對應的一第一區域及一第二區域之重疊部分,得出一四邊形遮蔽範圍。該光學式位置偵測方法更包括根據該矩形物體之一第一邊的長度及一第二邊的長度,從該四邊形遮蔽範圍判斷出該矩形物體之至少一第一候選擺放位置及一第二候選擺放位置。該光學式位置偵測方法更包括根據該第一候選擺放位置及該第二候選擺放位置個別相對於該四邊形遮蔽範圍之相對位置及/或個別相對於一既定時間前該矩形物體之已知擺放位置的相對位置,從該第一候選擺放位置及該第二候選擺放位置中選出該矩形物體之一真實擺放位置。 In addition, an embodiment of the present invention provides an optical position detection method including emitting light. The optical position detection method further includes detecting a first shadow generated by obscuring the light by a rectangular object of a known size angle. The optical position detecting method further includes detecting a second shielding angle generated by the rectangular object of a known size to block the light. The optical position detecting method further includes obtaining a quadrilateral shielding range according to the overlapping portions of the first region and the second region respectively corresponding to the first shielding angle and the second shielding angle. The optical position detecting method further includes determining, according to the length of the first side of the rectangular object and the length of the second side, at least one first candidate placement position of the rectangular object from the quadrilateral shielding range and a first Two candidate placement positions. The optical position detecting method further includes: according to the relative positions of the first candidate placement position and the second candidate placement position relative to the quadrilateral shielding range and/or individually relative to a rectangular object before a predetermined time Knowing the relative position of the placement position, selecting one of the first candidate placement positions and the second candidate placement position to select an actual placement position of the rectangular object.

本發明之一實施例提出一種電腦可讀取儲存媒 體,用以儲存一電腦程式,該電腦程式被載入到一電腦,用以執行一種光學式位置偵測方法。該光學式位置偵測方法包括發射光線。該光學式位置偵測方法更包括偵測因已知尺寸的一矩形物體遮蔽該光線所產生之一第一遮蔽角度。該光學式位置偵測方法更包括偵測因已知尺寸的該矩形物體遮蔽該光線所產生之一第二遮蔽角度。該光學式位置偵測方法更包括依據該第一遮蔽角度及該第二遮蔽角度所分別對應的一第一區域及一第二區域之重疊部分,得出一四邊形遮蔽範圍。該光學式位置偵測方法更包括根據該矩形物體之一第一邊的長度及一第二邊的長度,從該四邊形遮蔽範圍判斷出該矩形物體之至少一第一候選擺放位置及一第二候選擺放位置。該光學式位置偵測方 法更包括根據該第一候選擺放位置及該第二候選擺放位置個別相對於該四邊形遮蔽範圍之相對位置及/或個別相對於一既定時間前該矩形物體之已知擺放位置的相對位置,從該第一候選擺放位置及該第二候選擺放位置中選出該矩形物體之一真實擺放位置。 An embodiment of the present invention provides a computer readable storage medium For storing a computer program, the computer program is loaded into a computer for performing an optical position detection method. The optical position detection method includes emitting light. The optical position detection method further includes detecting a first shielding angle generated by obscuring the light by a rectangular object of a known size. The optical position detecting method further includes detecting a second shielding angle generated by the rectangular object of a known size to block the light. The optical position detecting method further includes obtaining a quadrilateral shielding range according to the overlapping portions of the first region and the second region respectively corresponding to the first shielding angle and the second shielding angle. The optical position detecting method further includes determining, according to the length of the first side of the rectangular object and the length of the second side, at least one first candidate placement position of the rectangular object from the quadrilateral shielding range and a first Two candidate placement positions. Optical position detector The method further includes: according to the relative position of the first candidate placement position and the second candidate placement position relative to the quadrilateral shielding range and/or the relative relative position of the rectangular object before a predetermined time a position, selecting one of the first candidate placement positions and the second candidate placement position to select an actual placement position of the rectangular object.

上述之光學式位置偵測裝置、光學式位置偵測方法能夠提昇偵測已知尺寸矩形物體位置的準確度。 The optical position detecting device and the optical position detecting method described above can improve the accuracy of detecting the position of a rectangular object of a known size.

10‧‧‧光學式位置偵測裝置 10‧‧‧Optical position detection device

11‧‧‧顯示板 11‧‧‧ display board

104a-104d‧‧‧邊 104a-104d‧‧‧ side

102a‧‧‧第一光學接收器 102a‧‧‧First optical receiver

102b‧‧‧第二光學接收器 102b‧‧‧second optical receiver

106‧‧‧遮蔽範圍計算單元 106‧‧‧Shading range calculation unit

108‧‧‧遮蔽範圍計算單元 108‧‧‧Shading range calculation unit

110‧‧‧判斷單元 110‧‧‧judging unit

20‧‧‧矩形物體 20‧‧‧Rectangle objects

D1‧‧‧第一邊 D1‧‧‧ first side

D2‧‧‧第二邊 D2‧‧‧ second side

θ 1‧‧‧第一遮蔽角度 θ 1‧‧‧first shading angle

θ 2‧‧‧第二遮蔽角度 θ 2‧‧‧second shading angle

A1‧‧‧第一區域 A1‧‧‧ first area

A2‧‧‧第二區域 A2‧‧‧Second area

Q1‧‧‧四邊形遮蔽範圍 Q1‧‧‧ Quadrilateral occlusion range

X1‧‧‧第一頂點 The first vertex of X1‧‧

X2‧‧‧第二頂點 X2‧‧‧ second vertex

X3‧‧‧第三頂點 X3‧‧‧ third vertex

X4‧‧‧第四頂點 X4‧‧‧ fourth vertex

S1‧‧‧第一邊 S1‧‧‧ first side

S2‧‧‧第二邊 S2‧‧‧ second side

S3‧‧‧第三邊 S3‧‧‧ third side

S4‧‧‧第四邊 S4‧‧‧ fourth side

L1‧‧‧第一線段 L1‧‧‧ first line

41a、42a‧‧‧第一頂點 41a, 42a‧‧‧ first vertex

41b、42b‧‧‧第二頂點 41b, 42b‧‧‧ second vertex

41c、42c‧‧‧第三頂點 41c, 42c‧‧‧ third vertex

41d、42d‧‧‧第四頂點 41d, 42d‧‧‧ fourth vertex

41ab、42ab‧‧‧第一邊 41ab, 42ab‧‧‧ first side

41bc‧‧‧第二邊 41bc‧‧‧ second side

41cd‧‧‧第三邊 41cd‧‧‧ third side

41da‧‧‧第四邊 41da‧‧‧ fourth side

t1‧‧‧既定距離 T1‧‧‧established distance

R1‧‧‧第一矩形 R1‧‧‧ first rectangle

R2‧‧‧第二矩形 R2‧‧‧ second rectangle

φ 1‧‧‧第一角度 Φ 1‧‧‧ first angle

φ 2‧‧‧第二角度 φ 2‧‧‧second angle

50、55‧‧‧線段 50, 55‧‧ ‧ line segments

第1圖係顯示根據本發明一實施例所述之光學式位置偵測裝置10之示意圖。 1 is a schematic view showing an optical position detecting device 10 according to an embodiment of the invention.

第2A圖係顯示根據本發明一實施例所述之一已知尺寸之矩形物體。 Figure 2A is a diagram showing a rectangular object of a known size in accordance with an embodiment of the present invention.

第2B圖係顯示根據本發明一實施例所述之矩形物體遮蔽光線產生之四邊形遮蔽範圍之示意圖。 FIG. 2B is a schematic diagram showing a quadrangular shielding range generated by a rectangular object shielding light according to an embodiment of the invention.

第3A-3B圖係分別顯示根據本發明一實施例所述之在第2圖中的該第一遮蔽角度θ 1及該第二遮蔽角度θ 2之角度-亮度示意圖。 3A-3B are schematic diagrams showing angle-luminance of the first shielding angle θ 1 and the second shielding angle θ 2 in FIG. 2 according to an embodiment of the invention.

第4A-4C圖係顯示根據本發明一實施例所述之該判斷單元108判斷該矩形物體20之複數候選擺放位置之流程圖。 4A-4C is a flow chart showing the judgment unit 108 determining the plurality of candidate placement positions of the rectangular object 20 according to an embodiment of the invention.

第5A-5D圖係顯示根據本發明一實施例所述之選擇該矩形物體之真實擺放位置之示意圖。 5A-5D are diagrams showing the selection of the true placement position of the rectangular object according to an embodiment of the invention.

要瞭解的是本說明書以下的揭露內容提供許多不 同的實施例或範例,以實施本揭露各種不同實施例的不同特徵。當然,這些特定的範例並非用以限定本揭露。另外,本揭露的說明中不同範例可能使用重複的參考符號及/或用字。這些重複符號或用字係為了簡化與清晰的目的,並非用以限定各個實施例及/或所述外觀結構的關係。再者,若是本說明書已下的揭露內容敘述了將第一特徵形成於一第二特徵之上或上方,即表示其包含了所形成的上述第一特徵與上述第二特徵是直接接觸的實施例,亦包含了尚可將附加的特徵形成於上述第一特徵與上述第二特徵之間,而使上述第一特徵與上述第二特徵可能未直接接觸的實施例。 It is to be understood that the following disclosures of this specification provide many The same embodiments or examples are presented to implement various features of the various embodiments disclosed herein. Of course, these specific examples are not intended to limit the disclosure. In addition, different examples in the description of the disclosure may use repeated reference symbols and/or words. These repeated symbols or words are not intended to limit the relationship of the various embodiments and/or the appearance structures for the purpose of simplicity and clarity. Furthermore, if the disclosure of the present specification describes forming the first feature on or above a second feature, it means that the formed first feature is directly in contact with the second feature. For example, an embodiment in which additional features are formed between the first feature and the second feature, and the first feature and the second feature may not be in direct contact with each other may be included.

本發明之概念為,根據一矩形物體遮蔽的光線判 斷出一四邊形遮蔽範圍;接著,根據該矩形物體之正確尺寸或大略尺寸,從該四邊形遮蔽範圍中,找出該矩形物體的複數個可能的擺放位置,並進一步將該矩形物體移動的軌跡與該等可能的擺放位置進行比對,找出該矩形物體之實際擺放位置,透過此一方式,將能提昇偵測該矩形物體擺放位置的準確度而不會大幅增加成本。 The concept of the invention is that the light is blocked according to a rectangular object Breaking a quadrilateral shielding range; then, according to the correct size or the approximate size of the rectangular object, finding a plurality of possible placement positions of the rectangular object from the quadrilateral shielding range, and further moving the rectangular object Comparing with the possible placement positions to find the actual placement position of the rectangular object, by this method, the accuracy of detecting the position of the rectangular object can be improved without greatly increasing the cost.

第1圖係顯示將本發明一實施例所述之光學式位 置偵測裝置10應用至電子白板之示意圖。電子白板(未圖示)更包括一顯示板11,用以於顯示文字或圖案。該光學式位置偵測裝置10包括一光學發射器(未圖示)、一第一光學接收器102a、一第二光學接收器102b、一遮蔽範圍計算單元106、一遮蔽範圍計算單元108以及一判斷單元110。該遮蔽範圍計算單元106耦接該第一光學接收器102a及該第二光學接收器102b。 該判斷單元108耦接該遮蔽範圍計算單元106。該遮蔽範圍計算單元106耦接該選擇單元110。在一特定的實施例中,該光學發射器,更包含一第一光學發射器及一第二光學發射器,其中該第一光學發射器及該第二光學發射器分別與該第一光學接收器102a及該第二光學接收器102b搭配,以形成兩組之光學接收發射器。 Figure 1 is a view showing an optical position according to an embodiment of the present invention. A schematic diagram of the detection device 10 applied to the electronic whiteboard. The electronic whiteboard (not shown) further includes a display panel 11 for displaying characters or patterns. The optical position detecting device 10 includes an optical transmitter (not shown), a first optical receiver 102a, a second optical receiver 102b, a shielding range calculating unit 106, a shielding range calculating unit 108, and a Judging unit 110. The shielding range calculating unit 106 is coupled to the first optical receiver 102a and the second optical receiver 102b. The determining unit 108 is coupled to the shielding range calculating unit 106. The masking range calculation unit 106 is coupled to the selection unit 110. In a specific embodiment, the optical transmitter further includes a first optical emitter and a second optical emitter, wherein the first optical emitter and the second optical emitter are respectively coupled to the first optical receiver The device 102a and the second optical receiver 102b are combined to form two sets of optical receiving transmitters.

如圖所示,該第一光學接收器102a設置於該顯示 板11之邊104a、104b之夾角上。同樣的,該第二光學發射器與該第二光學接收器102b設置於該顯示板11之邊104a、104d之夾角上。該光學式位置偵測裝置10透過該第一光學接收器102a及該第二光學接收器102b用來偵測在該顯示板11上之板擦(未圖示)之擺放位置。應用本發明所述之該光學式位置偵測裝置10至電子白板,將能準確偵測板擦之位置,使得電子白板能準確清除已知尺寸之板擦所擦拭過的文字或圖示。 As shown, the first optical receiver 102a is disposed on the display The edges of the plates 11 are at the corners 104a, 104b. Similarly, the second optical transmitter and the second optical receiver 102b are disposed at an angle between the sides 104a, 104d of the display panel 11. The optical position detecting device 10 is configured to detect a position of a wipe (not shown) on the display panel 11 through the first optical receiver 102a and the second optical receiver 102b. By applying the optical position detecting device 10 of the present invention to the electronic whiteboard, the position of the eraser can be accurately detected, so that the electronic whiteboard can accurately remove the text or illustration wiped by the brush of a known size.

該光學式位置偵測裝置10更包括複數反射邊條(未圖示),其可分別設置在該等邊104b、104c及104d上,用來反射該光學發射器所發射之光線。在一特定的實施例中,該第一光學接收器102a及一第二光學接收器102b為電荷耦合元件鏡頭(CCD)或互補式金屬氧化物半導體(CMOS)鏡頭,但不限定於此。該光學發射器可為紅外線發射器。 The optical position detecting device 10 further includes a plurality of reflective edge strips (not shown) respectively disposed on the sides 104b, 104c and 104d for reflecting the light emitted by the optical emitter. In a specific embodiment, the first optical receiver 102a and the second optical receiver 102b are a charge coupled device lens (CCD) or a complementary metal oxide semiconductor (CMOS) lens, but are not limited thereto. The optical emitter can be an infrared emitter.

第2A圖係顯示根據本發明一實施例所述之一已知尺寸之矩形物體。一矩形物體20具有一第一邊D1及一第二邊D2,該第一邊D1之長度以及該第二邊D2之長度為已知(即該矩形物體20之尺寸為已知)。該矩形物體20之該第一邊D1為該 矩形物體20之長邊及寬邊之其中之一,在本實施例中,該第一邊D1為長邊,該第二邊D2為短邊,但不限定於此。當該矩形物體20之該第一邊D1為該矩形物體之長邊時,該矩形物體20之該第二邊D2為該矩形物體之寬邊,以及當該矩形物體20之該第一邊D1為該矩形物體之寬邊時,該矩形物體20之該第二邊D2為該矩形物體20之長邊。 Figure 2A is a diagram showing a rectangular object of a known size in accordance with an embodiment of the present invention. A rectangular object 20 has a first side D1 and a second side D2. The length of the first side D1 and the length of the second side D2 are known (ie, the size of the rectangular object 20 is known). The first side D1 of the rectangular object 20 is the same In the present embodiment, the first side D1 is a long side, and the second side D2 is a short side, but is not limited thereto. When the first side D1 of the rectangular object 20 is the long side of the rectangular object, the second side D2 of the rectangular object 20 is the wide side of the rectangular object, and when the first side D1 of the rectangular object 20 When the broad side of the rectangular object is the second side D2 of the rectangular object 20 is the long side of the rectangular object 20.

第2B圖係顯示根據本發明一實施例所述之矩形物 體遮蔽光線產生之四邊形遮蔽範圍之示意圖。該矩形物體20置於該顯示板11上,一四邊形遮蔽範圍Q1由該矩形物體20遮蔽光線所產生。該第一光學接收器102a,用於偵測已知尺寸之該矩形物體20遮蔽該光線之一第一遮蔽角度θ 1。該第二光學接收器102b,用於偵測已知尺寸的該矩形物體20遮蔽該光線之一第二遮蔽角度θ 2。 2B is a diagram showing a rectangular object according to an embodiment of the invention Schematic diagram of the quadrilateral shielding range produced by the body shielding light. The rectangular object 20 is placed on the display panel 11, and a quadrilateral shielding range Q1 is generated by the rectangular object 20 obscuring light. The first optical receiver 102a is configured to detect the rectangular object 20 of a known size to block a first shielding angle θ 1 of the light. The second optical receiver 102b is configured to detect the rectangular object 20 of a known size to block a second shielding angle θ 2 of the light.

判斷四邊形遮蔽範圍Judging the quadrilateral masking range

該遮蔽範圍計算單元106,依據該第一遮蔽角度θ 1及該第二遮蔽角度θ 2所分別對應的一第一區域A1及一第二區域A2之重疊部分,得出該四邊形遮蔽範圍Q1。該第一區域A1指的是,以該第一光學接收器102a為基準點,延伸該第一遮蔽角度θ 1之兩夾邊所形成之區域。同樣的,該第二區域A2指的是,以該第二光學接收器102b為基準點,延伸該第二遮蔽角度θ 2之兩夾邊所形成之區域。在一特定實施例中,該遮蔽範圍計算單元106配合該第一光學接收器102a及該第二光學接收器102b在電子白板之該顯示區11的裝設位置及角度,運用三角定位法,決定出該四邊形遮蔽範圍Q1在該電子白板之該顯示區 11中的所在位置。需注意的是,在一特定的實施例中,當該四邊形遮蔽範圍Q1之面積大於一臨界面積值(例如是50平方公分),或是當該第一遮蔽角度θ 1及該第二遮蔽角度θ 2大於一臨界角度(例如10度)時,該光學式位置偵測裝置10才會執行判斷該矩形物體之實際位置之操作。 The shielding range calculating unit 106 obtains the quadrilateral shielding range Q1 according to the overlapping portion of the first area A1 and the second area A2 corresponding to the first shielding angle θ 1 and the second shielding angle θ 2 , respectively. The first area A1 refers to a region formed by extending the two sides of the first shielding angle θ 1 with the first optical receiver 102a as a reference point. Similarly, the second area A2 refers to an area formed by extending the two sides of the second shielding angle θ 2 with the second optical receiver 102b as a reference point. In a specific embodiment, the masking range calculating unit 106 cooperates with the mounting position and angle of the first optical receiver 102a and the second optical receiver 102b in the display area 11 of the electronic whiteboard by using a triangulation method. The quadrilateral shielding range Q1 is in the display area of the electronic whiteboard The location in 11. It should be noted that, in a specific embodiment, when the area of the quadrilateral shielding range Q1 is greater than a critical area value (for example, 50 square centimeters), or when the first shielding angle θ 1 and the second shielding angle are When θ 2 is greater than a critical angle (for example, 10 degrees), the optical position detecting device 10 performs an operation of determining the actual position of the rectangular object.

第3A-3B圖係分別顯示根據本發明一實施例所述 之在第2圖中的該第一遮蔽角度θ 1及該第二遮蔽角度θ 2之角度-亮度示意圖。第3A圖顯示該第一光學接收器102a偵測到該第一遮蔽角度θ 1範圍內的亮度值相對低,同樣的,第3B圖顯示該第二光學接收器102b偵測到該第二遮蔽角度θ 2範圍內的亮度值相對低。因此,在一特定實施例中,該遮蔽範圍計算單元106能根據第3A-3B圖所示之亮度-角度關係圖,決定出該四邊形遮蔽範圍Q1。 3A-3B are respectively shown according to an embodiment of the invention. The angle-luminance diagram of the first shielding angle θ 1 and the second shielding angle θ 2 in FIG. 2 . FIG. 3A shows that the first optical receiver 102a detects that the luminance value in the range of the first shielding angle θ 1 is relatively low. Similarly, FIG. 3B shows that the second optical receiver 102b detects the second shielding. The brightness value in the range of angle θ 2 is relatively low. Therefore, in a particular embodiment, the masking range calculation unit 106 can determine the quadrilateral masking range Q1 according to the brightness-angle relationship diagram shown in FIG. 3A-3B.

判斷候選擺放位置Judging candidate placement

第4A-4C圖係顯示根據本發明一實施例所述之該判斷單元108判斷該矩形物體20之複數候選擺放位置之流程圖。為了簡潔起見,第4B及4C圖僅顯示說明用之標記。參照第4A圖,該四邊形遮蔽範圍Q1由一第一頂點X1、一第二頂點X2、一第三頂點X3、一第四頂點X4、一第一邊S1、一第二邊S2、一第三邊S3及一第四邊S4組成。在本發明之一實施例中,基於窮舉法的概念,該判斷單元108根據該矩形物體20之該第一邊D1的長度及該第二邊D2的長度,從該四邊形遮蔽範圍Q1判斷出該矩形物體20之至少一第一候選擺放位置及一第二候選擺放位置。具體來說,當該矩形各個頂點與該四邊形遮蔽範圍Q1 之各邊或各角的最短距離小於一既定長度(例如是1mm,5mm)時,則意謂該矩形之該頂點與該四邊形遮蔽範圍Q1之邊或角接觸。基於以上概念,該矩形物體20在該四邊形遮蔽範圍Q1內之擺放方式,大略有三種:第一種,該矩形物體20之四個頂點均分別接觸該四邊形遮蔽範圍Q1之四個邊。第二種,僅該矩形物體20之其中一個頂點位於該四邊形遮蔽範圍Q1之一個頂點上。第三種,該矩形物體20的兩個對頂點分別位於該四邊形遮蔽範圍Q1之兩個對頂點上。需注意的是,以上三種接觸方式,儘為示範之用,並非用來限制本發明所述之矩形物體之擺放位置。本發明係基於上述之概念來找出各種可能的擺放方式,其可行的操作,將於下方進一步描述。 4A-4C is a flow chart showing the judgment unit 108 determining the plurality of candidate placement positions of the rectangular object 20 according to an embodiment of the invention. For the sake of brevity, Figures 4B and 4C show only the labels used for illustration. Referring to FIG. 4A, the quadrilateral shielding range Q1 is composed of a first vertex X1, a second vertex X2, a third vertex X3, a fourth vertex X4, a first side S1, a second side S2, and a third. The side S3 and the fourth side S4 are composed. In an embodiment of the present invention, based on the concept of the exhaustive method, the determining unit 108 determines from the quadrilateral shielding range Q1 according to the length of the first side D1 of the rectangular object 20 and the length of the second side D2. At least one first candidate placement position and a second candidate placement position of the rectangular object 20. Specifically, when the vertices of the rectangle and the quadrilateral shielding range Q1 When the shortest distance of each side or corner is less than a predetermined length (for example, 1 mm, 5 mm), it means that the vertex of the rectangle is in contact with the side or angle of the quadrilateral shielding range Q1. Based on the above concept, the rectangular object 20 is placed in the quadrilateral shielding range Q1 in three ways. First, the four vertices of the rectangular object 20 respectively contact four sides of the quadrilateral shielding range Q1. Second, only one of the vertices of the rectangular object 20 is located at one of the vertices of the quadrilateral shading range Q1. Third, the two pairs of vertices of the rectangular object 20 are respectively located on two pairs of vertices of the quadrilateral shielding range Q1. It should be noted that the above three contact modes are used for demonstration purposes, and are not intended to limit the placement position of the rectangular object according to the present invention. The present invention is based on the above concepts to find out the various possible placement modes, and the possible operations thereof will be further described below.

在本發明之一實施例中,該判斷單元108更執行一 第一操作,以根據該矩形物體20之該第一邊D1的長度及該第二邊D2的長度,從該四邊形遮蔽範圍Q1判斷出該矩形物體20之至少該第一候選擺放位置及該第二候選擺放位置,其中該第一操作包括複數個步驟(a)-(d)。該判斷單元108依序執行該等步驟,其細節將在下方更進一步描述。 In an embodiment of the present invention, the determining unit 108 performs one more a first operation to determine at least the first candidate placement position of the rectangular object 20 from the quadrilateral shielding range Q1 according to the length of the first side D1 of the rectangular object 20 and the length of the second side D2 a second candidate placement location, wherein the first operation comprises a plurality of steps (a)-(d). The determining unit 108 performs the steps in sequence, the details of which will be further described below.

在步驟(a)中,該判斷單元108設定該四邊形遮 蔽範圍Q1之任一端點或該等邊上的一選定點為一起始點,其中任一端點例如是該第一頂點X1、該第二頂點X2、該第三頂點X3及該第四頂點X4之一,以及其中該等邊例如是該第一邊S1、該第二邊S2、該第三邊S3或該第四邊S4。在一特定的實施例中,參照第4A圖,設定該第一頂點X1為該起始點,但不限定於此。 In step (a), the determining unit 108 sets the quadrilateral mask One of the endpoints of the masking range Q1 or a selected point on the sides is a starting point, and any one of the endpoints is, for example, the first vertex X1, the second vertex X2, the third vertex X3, and the fourth vertex X4 One, and wherein the sides are, for example, the first side S1, the second side S2, the third side S3, or the fourth side S4. In a specific embodiment, referring to FIG. 4A, the first vertex X1 is set as the starting point, but is not limited thereto.

接著,進入步驟(b),如第4A圖所示,計算該起 始點與該四邊形遮蔽範圍Q1之該第一邊S1連接所形成之一第一線段L1的長度。 Then, proceed to step (b), as shown in Figure 4A, calculate the The starting point is connected to the first side S1 of the quadrilateral shielding range Q1 to form a length of one of the first line segments L1.

接著,進入步驟(c),當該第一線段L1之長度與 該矩形物體20之該第一邊D1的長度相差在一預設範圍(例如0.1cm)內時,則如第4A圖所示將該第一線段L1設為該第一候選擺放位置所對應之一第一矩形R1(參照第4B圖)之一第一邊41ab,其中該第一線段L1之兩端分別為該第一矩形R1之一第一頂點41a及一第二頂點41b。若該第一線段L1之長度小於該矩形物體20之該第一邊D1的長度且長度相差超過該預設範圍時,則將該第一線段L1之其中一端(即位在第二頂點X2、第三頂點X3連線上之一端)沿著第二頂點X2及第三頂點X3形成之線段,往該第三頂點X3移動,以增加該第一線段L1的長度,若該第一線段L1的長度持續增加,使得該第一線段L1的長度與該矩形物體20之該第一邊D1的長度相差在一預設範圍(例如0.1cm)內時,則如上所述,該第一線段L1為該第一矩形R1之該第一邊41ab。相反地,若該第一線段L1之長度大於該矩形物體20之該第一邊D1的長度且長度相差超過該預設範圍時,則將該第一線段L1之其中一端(即位在第二頂點X2、第三頂點X3連線上之一端)往該第二頂點X2移動,以減小該第一線段L1的長度,若該第一線段L1的長度持續減小,使得該第一線段L1的長度與該矩形物體20之該第一邊D1的長度相差在一預設範圍(例如0.1cm)內時,則如上所述,該第一線段L1為該第一矩形R1之該第一邊41ab。 Then, proceeding to step (c), when the length of the first line segment L1 is When the length of the first side D1 of the rectangular object 20 is within a predetermined range (for example, 0.1 cm), the first line segment L1 is set as the first candidate placement position as shown in FIG. 4A. Corresponding to one of the first rectangles R1 (refer to FIG. 4B), the first side 41ab, wherein the two ends of the first line segment L1 are respectively a first vertex 41a and a second vertex 41b of the first rectangle R1. If the length of the first line segment L1 is less than the length of the first side D1 of the rectangular object 20 and the length difference exceeds the preset range, then one end of the first line segment L1 (ie, the bit at the second vertex X2) And a line segment formed along the second vertex X2 and the third vertex X3, moves to the third vertex X3 to increase the length of the first line segment L1, if the first line The length of the segment L1 is continuously increased such that when the length of the first line segment L1 differs from the length of the first side D1 of the rectangular object 20 by a predetermined range (for example, 0.1 cm), as described above, the first A line segment L1 is the first side 41ab of the first rectangle R1. Conversely, if the length of the first line segment L1 is greater than the length of the first side D1 of the rectangular object 20 and the length differs by more than the predetermined range, then one end of the first line segment L1 is The second vertex X2, one end of the third vertex X3 is moved to the second vertex X2 to reduce the length of the first line segment L1, and if the length of the first line segment L1 continues to decrease, the first When the length of the line segment L1 differs from the length of the first side D1 of the rectangular object 20 by a predetermined range (for example, 0.1 cm), as described above, the first line segment L1 is the first rectangle R1. The first side 41ab.

最後,進入步驟(d),如第4B圖所示,根據該矩 形物體20之該第二邊D2的長度,並以該第一線段L1為基準,得出該第一矩形R1的該第三頂點41c及該第四頂點41d。舉例來說,基於向量的原理,根據該第一邊41ab得到該第一矩形R1之一第二邊41bc,接著得到該第三邊41cd及該第四邊41da,進而判斷出該第一候選擺放位置所對應之該第一矩形R1。 Finally, proceed to step (d), as shown in Figure 4B, according to the moment The length of the second side D2 of the shaped object 20 is based on the first line segment L1, and the third vertex 41c and the fourth vertex 41d of the first rectangle R1 are obtained. For example, based on the principle of the vector, the second side 41bc of the first rectangle R1 is obtained according to the first side 41ab, and then the third side 41cd and the fourth side 41da are obtained, thereby determining the first candidate pendulum. The first rectangle R1 corresponding to the placement position.

判斷出該第一候選擺放位置所對應之該第一矩形 R1後,改變該起始點之位置,重複執行上述步驟(b)~(d),以計算出該第二候選擺放位置。在本發明一特定實施例中,參照第4C圖,在該四邊形遮蔽範圍Q1之邊界上,設定距離該第一頂點X1一既定距離t1之點為一新的起始點,重複執行上述步驟(b)~(d),以計算出由一第一頂點42a、一第二頂點42b、一第三頂點42c、一第四頂點42d所形成之一第二矩形R2,該第二矩形R2對應該第二候選擺放位置,其中該既定距離t1之長度例如是0.5cm。該第一矩形R1及該第二矩形R2之尺寸本質上與該矩形物體20之尺寸相等。需注意的是,在第4C圖中,新的起始點是設在該第一頂點X1及該第二頂點X2之間,此儘為示範之用。新的起始點也可設在該第一頂點X1及該第四頂點X4之間。 Determining the first rectangle corresponding to the first candidate placement position After R1, the position of the starting point is changed, and steps (b) to (d) above are repeatedly performed to calculate the second candidate placement position. In a specific embodiment of the present invention, referring to FIG. 4C, on the boundary of the quadrilateral shielding range Q1, a point starting from the first vertex X1 by a predetermined distance t1 is set as a new starting point, and the above steps are repeatedly performed ( b)~(d), to calculate a second rectangle R2 formed by a first vertex 42a, a second vertex 42b, a third vertex 42c, and a fourth vertex 42d, the second rectangle R2 corresponding to The second candidate placement position, wherein the predetermined distance t1 is, for example, 0.5 cm. The dimensions of the first rectangle R1 and the second rectangle R2 are substantially equal to the size of the rectangular object 20. It should be noted that in FIG. 4C, a new starting point is set between the first vertex X1 and the second vertex X2, which is exemplary. A new starting point may also be set between the first vertex X1 and the fourth vertex X4.

參照第4C圖,在本發明一實施例中,該判斷單元 108繼續執行判斷候選擺放位置之步驟,從前一次的起始點開始(即,從判斷出該第二候選擺放位置之起始點開始)至第二頂點X2為止,同樣的,每隔該既定距離t1(例如是0.5cm),重複執行上述步驟(b)~(d),以判斷出一第一複數候選擺放位 置。舉例來說,該第一複數候選擺放位置指的是,起始點從第一頂點X1開始至第二頂點X2為止,所判斷出的複數個候選擺放位置。或是,當該第二候選擺放位置所對應之起始點位於該第一頂點X1與該第四頂點X4之間時,則該第一複數候選擺放位置指的是,從第一頂點X1開始至第四頂點X4為止,所判斷出的複數個候選擺放位置。 Referring to FIG. 4C, in an embodiment of the present invention, the determining unit 108. Continuing to perform the step of determining the candidate placement position, starting from the previous starting point (ie, starting from determining the starting point of the second candidate placement position) to the second vertex X2, and similarly, For a predetermined distance t1 (for example, 0.5 cm), the above steps (b) to (d) are repeatedly performed to determine a first complex candidate placement position. Set. For example, the first plurality of candidate placement positions refer to a plurality of candidate placement positions determined from the first vertex X1 to the second vertex X2. Or, when the starting point corresponding to the second candidate placement position is between the first vertex X1 and the fourth vertex X4, the first plurality of candidate placement positions refers to the first vertex The plurality of candidate placement positions determined from the start of X1 to the fourth vertex X4.

在本發明一較佳實施例中,除了上述判斷該第一 複數候選擺放位置之步驟以外,判斷候選擺放位置之步驟更包括:從該四邊形遮蔽範圍之另一頂點開始至該四邊形遮蔽範圍之該第一頂點之對頂點為止,每隔該既定距離,重複執行上述步驟(b)~(d),以判斷出一第二複數候選擺放位置。舉例來說,該第二複數候選擺放位置指的是,起始點從第二頂點X2開始至第三頂點X3為止,所判斷出之複數候選擺放位置。 In a preferred embodiment of the present invention, in addition to the above determining the first In addition to the step of the plurality of candidate placement positions, the step of determining the candidate placement position further includes: starting from the other vertex of the quadrilateral masking range to the pair of vertices of the first vertex of the quadrilateral masking range, every predetermined distance, The above steps (b) to (d) are repeatedly performed to determine a second complex candidate placement position. For example, the second plurality of candidate placement positions refers to the plurality of candidate placement positions determined from the second vertex X2 to the third vertex X3.

選擇真實擺放位置Choose the actual placement

在本發明之一實施例中,該選擇單元110根據該第一候選擺放位置(對應該第一矩形R1)及該第二候選擺放位置(對應該第二矩形R2)個別相對於該四邊形遮蔽範圍Q1之相對位置及/或個別相對於一既定時間前該矩形物體20之已知擺放位置的相對位置,從該第一候選擺放位置及該第二候選擺放位置中選出該矩形物體20之一真實擺放位置。 In an embodiment of the present invention, the selecting unit 110 individually and relative to the quadrilateral according to the first candidate placement position (corresponding to the first rectangle R1) and the second candidate placement position (corresponding to the second rectangle R2) Selecting the relative position of the shielding range Q1 and/or the relative position of the rectangular display object 20 relative to a known position of the rectangular object 20 before a predetermined time, selecting the rectangle from the first candidate placement position and the second candidate placement position One of the objects 20 is actually placed.

在本發明之另一實施例中,該選擇單元110更執行一第二操作,以根據該第一候選擺放位置及該第二候選擺放位置個別相對於該四邊形遮蔽範圍Q1之相對位置及/或個別相對於一既定時間前該矩形物體20之已知擺放位置的相對位置,從 該第一候選擺放位置及該第二候選擺放位置中選出該矩形物體20之一真實擺放位置,如第5A-5C圖所示。 In another embodiment of the present invention, the selecting unit 110 further performs a second operation to respectively determine the relative position of the first candidate placement position and the second candidate placement position relative to the quadrilateral shielding range Q1. / or relative position of the known position of the rectangular object 20 relative to a predetermined time, from One of the first candidate placement position and the second candidate placement position selects a true placement position of the rectangular object 20, as shown in FIGS. 5A-5C.

第5A-5D圖係顯示根據本發明一實施例所述之選 擇該矩形物體之真實擺放位置之示意圖。該第二操作包括複數個步驟(a)-(c),該選擇單元110依序執行該等步驟。 5A-5D are diagrams showing selection according to an embodiment of the invention A schematic diagram of the actual placement of the rectangular object. The second operation includes a plurality of steps (a)-(c), and the selection unit 110 performs the steps in sequence.

在步驟(a)中,該選擇單元110計算該第一矩形 R1之該第一頂點402a、第二頂點402b、第三頂點402c及第四頂點402d分別與該四邊形遮蔽範圍Q1之邊界(邊界例如是第一頂點X1、第二頂點X2、第三頂點X3、第四頂點X4、該第一邊S1、該第二邊S2、該第三邊S3及該第四邊S4之一)的第一至第四最短距離的一第一總合誤差值。舉例來說,參照第5A圖,由於該第一頂點41a位於該第一頂點X1上,因此第一最短距離為數值0。由於該第二頂點41b位於該第一邊S1上,因此第二最短距離為數值0。由於該第三頂點41c位於該第二邊S2上,因此第三最短距離為數值0;以及,該第四頂點41d與第三邊X3之間的第四最短距離,例如是數值5(即線段52之長度為5)。因此,該第一總和誤差值為上述數值之總和,即為數值5。在本發明一特定實施例中,當該第一矩形之一頂點與該四邊形遮蔽範圍Q1之任一邊或任一角之最短距離小於一臨界值時(例如是1mm或5mm),該選擇單元110判斷該頂點與該任一邊或該任一角「接觸」。 In step (a), the selection unit 110 calculates the first rectangle The first vertex 402a, the second vertex 402b, the third vertex 402c, and the fourth vertex 402d of R1 are respectively bordered by the quadrilateral masking range Q1 (the boundary is, for example, the first vertex X1, the second vertex X2, the third vertex X3, a first total error value of the first to fourth shortest distances of the fourth vertex X4, the first side S1, the second side S2, the third side S3, and the fourth side S4). For example, referring to FIG. 5A, since the first vertex 41a is located on the first vertex X1, the first shortest distance is a value of zero. Since the second vertex 41b is located on the first side S1, the second shortest distance is a value of zero. Since the third vertex 41c is located on the second side S2, the third shortest distance is a value of 0; and the fourth shortest distance between the fourth vertex 41d and the third side X3 is, for example, a value of 5 (ie, a line segment) The length of 52 is 5). Therefore, the first sum error value is the sum of the above values, that is, the value of 5. In a specific embodiment of the present invention, when the shortest distance between one of the vertices of the first rectangle and any one or any of the quadrilateral shielding ranges Q1 is less than a critical value (for example, 1 mm or 5 mm), the selecting unit 110 determines The vertex is "in contact" with either or both of the corners.

在步驟(b)中,參照第5B圖,該選擇單元110計 算該第一矩形R1之該第一邊41ab與該既定時間前該矩形物體20之已知擺放位置所對應之一第三矩形R3之一第一邊43ab所 夾的一第一角度φ 1,其中該第三矩形R3之該第一邊43ab對應該第一矩形R1之該第一邊41ab。 In step (b), referring to FIG. 5B, the selection unit 110 counts Calculating the first side 41ab of the first rectangle R1 and the first side 43ab of the third rectangle R3 corresponding to the known placement position of the rectangular object 20 before the predetermined time A first angle φ1 of the clip, wherein the first side 43ab of the third rectangle R3 corresponds to the first side 41ab of the first rectangle R1.

在步驟(c)中,將該第一總合誤差值,例如是數值5,及該第一角度φ 1之角度值,例如是數值5,代入一數學方程式,以計算出該第一候選擺放位置所對應之一第一分數值,該方程式例如是:分數值=λ d+(1-λ)×φ (方程式一) In the step (c), the first total error value, for example, the value 5, and the angle value of the first angle φ 1 , for example, the value 5, are substituted into a mathematical equation to calculate the first candidate pendulum One of the first score values corresponding to the position, the equation is, for example, a fractional value = λ d + (1 - λ) × φ (Equation 1)

在該方程式中,λ:為一個比例參數,介於0~1之間;d:總和誤差值;φ:角度改變量。方程式一儘為示範之用,並非用來限制本發明。 In the equation, λ: is a proportional parameter, between 0 and 1; d: sum error value; φ: angle change amount. Equation 1 is for illustrative purposes and is not intended to limit the invention.

假設λ為0.5,將第一總和誤差值,例如是數值5,以及該第一角度φ 1之角度值(即角度改變量),例如是數值5,代入方程式一,可計算出第一分數值為數值5。 Assuming λ is 0.5, the first sum error value, for example, the value 5, and the angle value of the first angle φ 1 (ie, the amount of angle change), for example, the value 5, is substituted into Equation 1, and the first score value can be calculated. It is a value of 5.

重複上述步驟(a)-(c),以計算出該第二候選擺放位置所對應之一第二分數值。舉例來說,參照第5C圖,由於由於該第一頂點42a位於該第四邊S4上,因此第一最短距離為數值0。由於該第二頂點42b位於該第一邊S1上,因此第二最短距離為數值0。該第三頂點402c與該第三邊S3之一第三最短距離506,例如是數值5(即線段50之長度值為5);以及,該第四頂點42d與第三邊S3之間的第四最短距離,例如是數值5(即線段55之長度值為5)。因此該第二總和誤差值為上述數值之總和,即為數值10。接著,參照第5D圖,該第一邊42ab與該既定時間前該矩形物體20之已知擺放位置所對應之該第三矩形R3之該第一邊43ab所夾的一第二角度φ 2,例如是數值 5。將該第二角度φ 2及第二總和誤差值代入方程式一,可計算出第二分數值為7.5。 The above steps (a)-(c) are repeated to calculate a second score value corresponding to the second candidate placement position. For example, referring to FIG. 5C, since the first vertex 42a is located on the fourth side S4, the first shortest distance is a value of zero. Since the second vertex 42b is located on the first side S1, the second shortest distance is a value of zero. The third shortest distance 506 of the third vertex 402c and the third side S3 is, for example, a value of 5 (ie, the length value of the line segment 50 is 5); and, between the fourth vertex 42d and the third side S3. The four shortest distances are, for example, a value of 5 (i.e., the length of the line segment 55 is 5). Therefore, the second sum error value is the sum of the above values, that is, the value 10. Next, referring to FIG. 5D, the first side 42ab and the first side 43ab of the third rectangle R3 corresponding to the known placement position of the rectangular object 20 before the predetermined time have a second angle φ 2 , for example, a numerical value 5. Substituting the second angle φ 2 and the second sum error value into Equation 1 can calculate a second score value of 7.5.

該選擇單元110依據該第一分數值及該第二分數 值之較小者,選擇出該第一候選擺放位置及該第二候選擺放位置之一作為該矩形物體之該真實矩形擺放位置。由於該第一分數值為5,第二分數值為7.5,因此該第一分數值所對應之該第一矩形R1所對應之該第一候選擺放位置為該矩形物體20之該真實矩形擺放位置。上述各數字及方程式儘為示範之用,並非用來限制本發明。 The selection unit 110 is based on the first score value and the second score The smaller one of the values, the one of the first candidate placement position and the second candidate placement position is selected as the true rectangular placement position of the rectangular object. Since the first score value is 5 and the second score value is 7.5, the first candidate placement position corresponding to the first rectangle R1 corresponding to the first fractional value is the real rectangular pendulum of the rectangular object 20 Put the position. The above figures and equations are used for exemplary purposes and are not intended to limit the invention.

再參照第5A-5D圖,該選擇單元110計算分數之步 驟更包括計算該第一複數候選擺放位置之各個位置所對應之分數,以及選擇步驟更包括,依據該第一複數候選擺放位置中之各個擺放位置所對應之分數值之較小者,選則出該第一複數候選擺放位置之一作為該矩形物體之該真實矩形擺放位置。 Referring again to Figures 5A-5D, the selection unit 110 calculates the score step. The step further includes calculating a score corresponding to each position of the first plurality of candidate placement positions, and the selecting step further comprises: according to the smaller of the score values corresponding to the respective placement positions of the first plurality of candidate placement positions And selecting one of the first plurality of candidate placement positions as the real rectangular placement position of the rectangular object.

在本發明一較佳實施例中,除了上述計算該第一 複數候選擺放位置之各個位置所對應之分數,更包括計算該第二複數候選擺放位置所對應之分數;選擇步驟更包括:依據該第一複數候選擺放位置之各個擺放位置所對應之分數值及該第二複數候選擺放位置之各個擺放位置所對應之分數值之較小者,選擇出該第一複數候選擺放位置及該第二複數候選擺放位置之一作為該矩形物體之該真實矩形擺放位置。 In a preferred embodiment of the present invention, the first The score corresponding to each position of the plurality of candidate placement positions further includes calculating a score corresponding to the placement position of the second plurality of candidate positions; and the selecting step further comprises: corresponding to each placement position of the first plurality of candidate placement positions And selecting one of the first plurality of candidate placement positions and the second plurality of candidate placement positions as the smaller of the score values corresponding to the respective placement positions of the second plurality of candidate placement positions The true rectangular placement of the rectangular object.

除此之外,本發明之一實施例提出一種光學式位 置偵測方法,包括發射光線。該光學式位置偵測方法更包括偵測已知尺寸的一矩形物體20遮蔽該光線之一第一遮蔽角度φ 1。該光學式位置偵測方法更包括偵測已知尺寸的該矩形物體20遮蔽該光線之一第二遮蔽角度φ 2。該光學式位置偵測方法更包括依據該第一遮蔽角度φ 1及該第二遮蔽角度φ 2所分別對應的一第一區域A1及一第二區域A2之重疊部分,得出一四邊形遮蔽範圍Q1。該光學式位置偵測方法更包括根據該矩形物體20之一第一邊D1的長度及一第二邊D2的長度,從該四邊形遮蔽範圍Q1判斷出該矩形物體20之至少一第一候選擺放位置及一第二候選擺放位置。該光學式位置偵測方法更包括根據該第一候選擺放位置及該第二候選擺放位置個別相對於該四邊形遮蔽範圍Q1之相對位置及/或個別相對於一既定時間前該矩形物體20之已知擺放位置的相對位置,從該第一候選擺放位置及該第二候選擺放位置中選出該矩形物體20之一真實擺放位置。 In addition, an embodiment of the present invention proposes an optical position The detection method includes emitting light. The optical position detecting method further includes detecting a rectangular object 20 of a known size to block a first shielding angle φ of the light. 1. The optical position detecting method further includes detecting the rectangular object 20 of a known size to block a second shielding angle φ 2 of the light. The optical position detecting method further includes: a quadrilateral shielding range according to the overlapping portion of the first area A1 and the second area A2 corresponding to the first shielding angle φ 1 and the second shielding angle φ 2 respectively Q1. The optical position detecting method further includes determining, according to the length of the first side D1 of the rectangular object 20 and the length of a second side D2, at least one first candidate pendulum of the rectangular object 20 from the quadrilateral shielding range Q1. The placement position and a second candidate placement position. The optical position detecting method further includes: according to the relative position of the first candidate placement position and the second candidate placement position relative to the quadrilateral shielding range Q1 and/or individually relative to a rectangular object 20 before a predetermined time The relative position of the known placement position is selected from the first candidate placement position and the second candidate placement position.

本發明另一實施例更提出一種電腦可讀取儲存媒 體,用以儲存一電腦程式,該電腦程式被載入到一電腦,以執行本發明所提出之光學式位置偵測方法。 Another embodiment of the present invention further provides a computer readable storage medium For storing a computer program, the computer program is loaded into a computer to perform the optical position detection method proposed by the present invention.

根據以上所述之光學式位置偵測方法及光學式位 置偵測裝置10能夠提昇偵測已知尺寸矩形物體20位置的準確度。 Optical position detection method and optical position according to the above The detecting device 10 is capable of improving the accuracy of detecting the position of the rectangular object 20 of a known size.

本發明可至少部分實施於有形的機器可讀取儲存 媒體(例如,隨機存取記憶體(RAM)、唯讀記憶體(ROMs)、光碟、數位影音光碟、藍光光碟、硬碟機(hard disk drives)、快閃記憶體、或其他有形的機器可讀取儲存媒體)之電腦程式碼,其中,當上述電腦程式碼已載入並執行於電腦,該電腦成 為實行本發明之一設備。本發明可至少實施於部分形式之電腦程式碼,不論是載入和/或執行於電腦,當上述電腦程式碼已載入並執行於電腦,該電腦成為執行本發明之一設備。當實施於一般目的之處理器,電腦程式碼區分配置該處理器以創造一特定邏輯電路。本發明可至少部分實施於特殊應用積體電路組成的數位信號處理器替代地完成本發明。 The invention can be at least partially implemented in a tangible machine readable storage Media (eg, random access memory (RAM), read only memory (ROMs), compact discs, digital video discs, Blu-ray discs, hard disk drives, flash memory, or other tangible machines Reading the computer code of the storage medium), wherein when the computer code is loaded and executed on the computer, the computer becomes To carry out one of the devices of the present invention. The present invention can be implemented at least in part in the form of computer code, whether loaded and/or executed on a computer, which is a device for performing the present invention when the computer code is loaded and executed on a computer. When implemented in a general purpose processor, the computer code distinguishes the processor to create a particular logic circuit. The present invention can be implemented, at least in part, in a digital signal processor composed of a special application integrated circuit.

前述內容概略描述了幾種實施例的特性,使得本 領域內之技藝人士能更好得瞭解本揭露的概念。本領域內之技藝人士應能領悟到他們能立即的使用本揭露的揭露作為基準以進行設計或修正其他程序及結構,來完成相同用途及/或達到於此所介紹實施例的相同優點。本領域內之技藝人士應能瞭解類似等效的結構並不脫離本揭露的精神與範疇,以及於此他們能有多種改變、替換以及選擇而沒有脫離本揭露的精神與範疇。 The foregoing summary briefly describes the features of several embodiments, such that Those skilled in the art will be better able to understand the concepts of this disclosure. Those skilled in the art will appreciate that they can immediately use the disclosure of the present disclosure as a basis for designing or modifying other procedures and structures to accomplish the same use and/or achieve the same advantages of the embodiments described herein. A person skilled in the art should be able to understand the equivalent structure and the spirit and scope of the disclosure, and the various changes, substitutions, and alternatives may be made without departing from the spirit and scope of the disclosure.

10‧‧‧光學式位置偵測裝置 10‧‧‧Optical position detection device

11‧‧‧顯示板 11‧‧‧ display board

104a-104d‧‧‧邊 104a-104d‧‧‧ side

102a‧‧‧第一光學接收器 102a‧‧‧First optical receiver

102b‧‧‧第二光學接收器 102b‧‧‧second optical receiver

106‧‧‧遮蔽範圍計算單元 106‧‧‧Shading range calculation unit

108‧‧‧遮蔽範圍計算單元 108‧‧‧Shading range calculation unit

110‧‧‧判斷單元 110‧‧‧judging unit

Claims (20)

一種光學式位置偵測裝置,包括:一光學發射器,用於發射光線;一第一光學接收器,用於偵測因已知尺寸的一矩形物體遮蔽該光線所產生之一第一遮蔽角度;一第二光學接收器,用於偵測因已知尺寸的該矩形物體遮蔽該光線所產生之一第二遮蔽角度;一遮蔽範圍計算單元,耦接該第一光學接收器及該第二光學接收器,依據該第一遮蔽角度及該第二遮蔽角度所分別對應的一第一區域及一第二區域之重疊部分,得出一四邊形遮蔽範圍;一判斷單元,根據該矩形物體之一第一邊的長度及一第二邊的長度,從該四邊形遮蔽範圍判斷出該矩形物體之至少一第一候選擺放位置及一第二候選擺放位置;以及一選擇單元,根據該第一候選擺放位置及該第二候選擺放位置個別相對於該四邊形遮蔽範圍之相對位置及/或個別相對於一既定時間前該矩形物體之已知擺放位置的相對位置,從該第一候選擺放位置及該第二候選擺放位置中選出該矩形物體之一真實擺放位置。 An optical position detecting device comprising: an optical transmitter for emitting light; and a first optical receiver for detecting a first shielding angle generated by obscuring the light by a rectangular object of a known size a second optical receiver for detecting a second shielding angle generated by the rectangular object of a known size to block the light; a shielding range calculating unit coupled to the first optical receiver and the second The optical receiver obtains a quadrilateral shielding range according to the overlapping portion of the first region and the second region respectively corresponding to the first shielding angle and the second shielding angle; and a determining unit according to the rectangular object a length of the first side and a length of the second side, determining at least one first candidate placement position and a second candidate placement position of the rectangular object from the quadrilateral shielding range; and a selection unit according to the first a relative position of the candidate placement position and the second candidate placement position relative to the quadrilateral shielding range and/or a known position of the rectangular object before a predetermined time And a relative position of the rectangular object is selected from the first candidate placement position and the second candidate placement position. 如申請專利範圍第1項所述之光學式位置偵測裝置,其中該判斷單元更執行一第一操作,以根據該矩形物體之該第一邊的長度及該第二邊的長度,從該四邊形遮蔽範圍判斷出該矩形物體之至少該第一候選擺放位置及該第二候選擺放位置,其中該第一操作包括: (a)設定該四邊形遮蔽範圍之任一端點或邊上的一選定點為一起始點;(b)計算該起始點與該四邊形遮蔽範圍之一第一邊連接所形成之一第一線段的長度;(c)當該第一線段之長度與該矩形物體之該第一邊的長度相差在一預設範圍內時,將該第一線段設為該第一候選擺放位置所對應之一第一矩形之一第一邊,其中該第一線段之兩端分別為該第一矩形之一第一頂點及一第二頂點;(d)根據該矩形物體之該第二邊的長度,並以該第一線段為基準,得出該第一矩形的一第三頂點及一第四頂點;以及改變該起始點之位置,重複執行上述步驟(b)~(d),以計算出該第二候選擺放位置。 The optical position detecting device of claim 1, wherein the determining unit further performs a first operation to: according to the length of the first side of the rectangular object and the length of the second side The quadrilateral shielding range determines at least the first candidate placement position and the second candidate placement position of the rectangular object, wherein the first operation comprises: (a) setting a selected point on either end or edge of the quadrilateral shielding range as a starting point; (b) calculating a first line formed by connecting the starting point to the first side of the quadrilateral shielding range The length of the segment; (c) when the length of the first line segment differs from the length of the first side of the rectangular object by a predetermined range, the first line segment is set to the first candidate placement position Corresponding to one of the first sides of the first rectangle, wherein the two ends of the first line segment are respectively a first vertex and a second vertex of the first rectangle; (d) according to the second object of the rectangular object The length of the edge, and based on the first line segment, a third vertex and a fourth vertex of the first rectangle are obtained; and the position of the starting point is changed, and the above steps (b) to (d) are repeatedly performed. ) to calculate the second candidate placement position. 如申請專利範圍第2項所述之光學式位置偵測裝置,其中該選擇單元更執行一第二操作,以從該第一候選擺放位置及該第二候選擺放位置中選出該矩形物體之該真實擺放位置,其中該第二操作包括:計算該第一矩形之該第一至該第四頂點分別與該四邊形遮蔽範圍之邊界的第一至第四最短距離的一第一總合誤差值;計算該第一矩形之該第一邊與該既定時間前該矩形物體之已知擺放位置所對應之一第三矩形之一第一邊所夾的一第一角度,其中該第三矩形之該第一邊對應該第一矩形之該第一邊;根據該第一總合誤差值及該第一角度計算出該第一候選擺 放位置所對應之一第一分數值;重複上述步驟以計算出該第二候選擺放位置所對應之一第二分數值;以及依據該第一分數值及該第二分數值之較小者,選擇出該第一候選擺放位置及該第二候選擺放位置之一作為該矩形物體之該真實矩形擺放位置。 The optical position detecting device of claim 2, wherein the selecting unit further performs a second operation to select the rectangular object from the first candidate placement position and the second candidate placement position. The true placement position, wherein the second operation comprises: calculating a first total of the first to fourth shortest distances of the first to fourth vertices of the first rectangle and the boundary of the quadrilateral shielding range An error value; a first angle of the first side of the third rectangle corresponding to the first side of the first rectangle and the known position of the rectangular object before the predetermined time, wherein the first angle is The first side of the three rectangles corresponds to the first side of the first rectangle; and the first candidate pendulum is calculated according to the first total error value and the first angle One of the first score values corresponding to the position; repeating the above steps to calculate a second score value corresponding to the second candidate placement position; and the smaller one according to the first score value and the second score value And selecting one of the first candidate placement position and the second candidate placement position as the real rectangular placement position of the rectangular object. 如申請專利範圍第3項所述之光學式位置偵測裝置,其中該判斷單元判斷候選擺放位置,更包括:從該四邊形遮蔽範圍之一第一頂點開始至相鄰該四邊形遮蔽範圍之該第一頂點之另一頂點為止,每隔一既定距離,重複執行上述步驟(b)~(d),以判斷出一第一複數候選擺放位置。 The optical position detecting device of claim 3, wherein the determining unit determines the candidate placement position, and further includes: starting from one of the first vertices of the quadrilateral shielding range to the adjacent quadrangular shielding range The above steps (b) to (d) are repeatedly executed every other predetermined distance from the other vertex of the first vertex to determine a first complex candidate placement position. 如申請專利範圍第4項所述之光學式位置偵測裝置,其中該選擇單元計算分數,更包括計算該第一複數候選擺放位置之各個位置所對應之分數,以及選擇步驟更包括,依據該第一複數候選擺放位置中之各個擺放位置所對應之分數值之較小者,選則出該第一複數候選擺放位置之一作為該矩形物體之該真實矩形擺放位置。 The optical position detecting device of claim 4, wherein the selecting unit calculates a score, further comprising calculating a score corresponding to each position of the first plurality of candidate placement positions, and the selecting step further comprises: And the smaller one of the score values corresponding to each of the first plurality of candidate placement positions, and one of the first plurality of candidate placement positions is selected as the real rectangular placement position of the rectangular object. 如申請專利範圍第5項所述之光學式位置偵測裝置,其中該判斷單元判斷候選擺放位置,更包括:從該四邊形遮蔽範圍之另一頂點開始至該四邊形遮蔽範圍之該第一頂點之對頂點為止,每隔該既定距離,重複執行上述步驟(b)~(d),以判斷出一第二複數候選擺放位置。 The optical position detecting device of claim 5, wherein the determining unit determines the candidate placement position, further comprising: starting from another vertex of the quadrilateral shielding range to the first vertex of the quadrilateral shielding range For the vertices, the above steps (b) to (d) are repeatedly executed every predetermined distance to determine a second complex candidate placement position. 如申請專利範圍第6項所述之光學式位置偵測裝置,其中該 選擇單元計算分數,更包括計算該第二複數候選擺放位置所對應之分數,以及選擇步驟更包括依據該第一複數候選擺放位置之各個擺放位置所對應之分數值及該第二複數候選擺放位置之各個擺放位置所對應之分數值之較小者,選擇出該第一複數候選擺放位置及該第二複數候選擺放位置之一作為該矩形物體之該真實矩形擺放位置。 The optical position detecting device according to claim 6, wherein the optical position detecting device The selecting unit calculates a score, and further includes calculating a score corresponding to the second complex candidate placement position, and the selecting step further comprises: a score value corresponding to each placement position of the first complex candidate placement position and the second plural number And selecting one of the first plurality of candidate placement positions and the second plurality of candidate placement positions as the real rectangular arrangement of the rectangular object, wherein a smaller one of the score values corresponding to each of the candidate placement positions is selected position. 如申請專利範圍第1項所述之光學式位置偵測裝置,其中該矩形物體之該第一邊為該矩形物體之長邊及寬邊之其中之一。 The optical position detecting device of claim 1, wherein the first side of the rectangular object is one of a long side and a wide side of the rectangular object. 如申請專利範圍第8項所述之光學式位置偵測裝置,其中當該矩形物體之該第一邊為該矩形物體之長邊時,該矩形物體之該第二邊為該矩形物體之寬邊,以及當該矩形物體之該第一邊為該矩形物體之寬邊時,該矩形物體之該第二邊為該矩形物體之長邊。 The optical position detecting device of claim 8, wherein when the first side of the rectangular object is the long side of the rectangular object, the second side of the rectangular object is the width of the rectangular object. The edge, and when the first side of the rectangular object is the broad side of the rectangular object, the second side of the rectangular object is the long side of the rectangular object. 如申請專利範圍第1項所述之光學式位置偵測裝置,更包括複數反射邊條,用來反射光線。 The optical position detecting device according to claim 1, further comprising a plurality of reflective edge strips for reflecting light. 如申請專利範圍第1項所述之光學式位置偵測裝置,其中該第一光學接收器及該第二光學接收器為電荷耦合元件鏡頭或互補式金屬氧化物半導體鏡頭。 The optical position detecting device of claim 1, wherein the first optical receiver and the second optical receiver are a charge coupled device lens or a complementary metal oxide semiconductor lens. 一種光學式位置偵測方法,包括:發射光線;偵測因已知尺寸的一矩形物體遮蔽該光線所產生之一第一遮蔽角度;偵測因已知尺寸的該矩形物體遮蔽該光線所產生之一第二 遮蔽角度;依據該第一遮蔽角度及該第二遮蔽角度所分別對應的一第一區域及一第二區域之重疊部分,得出一四邊形遮蔽範圍;根據該矩形物體之一第一邊的長度及一第二邊的長度,從該四邊形遮蔽範圍判斷出該矩形物體之至少一第一候選擺放位置及一第二候選擺放位置;以及根據該第一候選擺放位置及該第二候選擺放位置個別相對於該四邊形遮蔽範圍之相對位置及/或個別相對於一既定時間前該矩形物體之已知擺放位置的相對位置,從該第一候選擺放位置及該第二候選擺放位置中選出該矩形物體之一真實擺放位置。 An optical position detecting method includes: emitting light; detecting a first shielding angle generated by obscuring the light by a rectangular object of a known size; detecting that the rectangular object of a known size blocks the light One of the second The shielding angle is obtained according to the overlapping portion of the first region and the second region corresponding to the first shielding angle and the second shielding angle respectively, and a quadrangular shielding range is obtained; according to the length of the first side of the rectangular object And a length of the second side, determining at least one first candidate placement position and a second candidate placement position of the rectangular object from the quadrilateral shielding range; and according to the first candidate placement position and the second candidate a relative position of the placement position relative to the quadrilateral shielding range and/or a relative position of the rectangular display object relative to a known position before the predetermined time, from the first candidate placement position and the second candidate pendulum Select one of the rectangular objects to be placed in the position. 如申請專利範圍第12項所述之光學式位置偵測方法,更執行一第一操作,以根據該矩形物體之該第一邊的長度及該第二邊的長度,從該四邊形遮蔽範圍判斷出該矩形物體之至少該第一候選擺放位置及該第二候選擺放位置,其中該第一操作包括:(a)設定該四邊形遮蔽範圍之任一端點或邊上的一選定點為一起始點;(b)計算該起始點與該四邊形遮蔽範圍之一第一邊連接所形成之一第一線段的長度;(c)當該第一線段之長度與該矩形物體之該第一邊的長度相差在一預設範圍內時,將該第一線段設為該第一候選擺放位置所對應之一第一矩形之一第一邊,其中該第一線段之兩端分別為該第一矩形之一第一頂點及一第二頂點; (d)根據該矩形物體之該第二邊的長度,並以該第一線段為基準,得出該第一矩形的一第三頂點及一第四頂點;以及改變該起始點之位置,重複執行上述步驟(b)~(d),以計算出該第二候選擺放位置。 The optical position detecting method of claim 12, further performing a first operation to determine from the quadrilateral shielding range according to the length of the first side of the rectangular object and the length of the second side And at least the first candidate placement position and the second candidate placement position of the rectangular object, wherein the first operation comprises: (a) setting a selected point of the quadrilateral shielding range or a selected point on the side together a starting point; (b) calculating a length of the first line segment formed by connecting the starting point to the first side of the quadrilateral shielding range; (c) when the length of the first line segment is opposite to the rectangular object When the length of the first side is within a preset range, the first line segment is set as one of the first sides of the first rectangle corresponding to the first candidate placement position, wherein the first line segment is two The ends are respectively a first vertex and a second vertex of the first rectangle; (d) according to the length of the second side of the rectangular object, and based on the first line segment, a third vertex and a fourth vertex of the first rectangle are obtained; and the position of the starting point is changed Repeat steps (b) to (d) above to calculate the second candidate placement position. 如申請專利範圍第13項所述之光學式位置偵測方法,更執行一第二操作,以從該第一候選擺放位置及該第二候選擺放位置中選出該矩形物體之該真實擺放位置,其中該第二操作包括:計算該第一矩形之該第一至該第四頂點分別與該四邊形遮蔽範圍之邊界的第一至第四最短距離的一第一總合誤差值;計算該第一矩形之該第一邊與該既定時間前該矩形物體之已知擺放位置所對應之一第三矩形之一第一邊所夾的一第一角度,其中該第三矩形之該第一邊對應該第一矩形之該第一邊;根據該第一總合誤差值及該第一角度,計算出該第一候選擺放位置所對應之一第一分數值;重複上述步驟以計算出該第二候選擺放位置所對應之一第二分數值;以及依據該第一分數值及該第二分數值之較小者,選擇出該第一候選擺放位置及該第二候選擺放位置之一作為該矩形物體之該真實矩形擺放位置。 The optical position detecting method of claim 13 further performs a second operation to select the true pendulum of the rectangular object from the first candidate placement position and the second candidate placement position. And a second position comprising: calculating a first total error value of the first to fourth shortest distances of the first to fourth vertices of the first rectangle and the boundary of the quadrilateral shielding range; a first angle of the first side of the first rectangle corresponding to the first side of the third rectangle corresponding to the known placement position of the rectangular object before the predetermined time, wherein the third rectangle The first side corresponds to the first side of the first rectangle; and according to the first total error value and the first angle, one of the first score values corresponding to the first candidate placement position is calculated; Calculating a second score value corresponding to the second candidate placement position; and selecting the first candidate placement position and the second candidate according to the smaller of the first score value and the second score value One of the placement positions as the rectangular object The real rectangle placement. 如申請專利範圍第14項所述之光學式位置偵測方法,其中判斷候選擺放位置之步驟更包括: 從該四邊形遮蔽範圍之一第一頂點開始至相鄰該四邊形遮蔽範圍之該第一頂點之另一頂點為止,每隔一既定距離,重複執行上述步驟(b)~(d),以判斷出一第一複數候選擺放位置。 The optical position detecting method of claim 14, wherein the step of determining the candidate position further comprises: From the first vertex of one of the quadrilateral shielding ranges to the other vertex of the first vertex adjacent to the quadrilateral shielding range, the above steps (b) to (d) are repeatedly performed every predetermined distance to determine A first plurality of candidate placement positions. 如申請專利範圍第15項所述之光學式位置偵測方法,其中計算分數之步驟更包括計算該第一複數候選擺放位置之各個位置所對應之分數,以及選擇步驟更包括,依據該第一複數候選擺放位置中之各個擺放位置所對應之分數值之較小者,選則出該第一複數候選擺放位置之一作為該矩形物體之該真實矩形擺放位置。 The optical position detecting method of claim 15, wherein the calculating the score further comprises calculating a score corresponding to each position of the first plurality of candidate placement positions, and the selecting step further comprises, according to the And a smaller one of the score values corresponding to each of the plurality of candidate placement positions, and one of the first plurality of candidate placement positions is selected as the real rectangular placement position of the rectangular object. 如申請專利範圍第16項所述之光學式位置偵測方法,其中判斷候選擺放位置之步驟更包括:從該四邊形遮蔽範圍之另一頂點開始至該四邊形遮蔽範圍之該第一頂點之對頂點為止,每隔該既定距離,重複執行上述步驟(b)~(d),以判斷出一第二複數候選擺放位置。 The optical position detecting method of claim 16, wherein the step of determining the candidate placement position further comprises: starting from another vertex of the quadrilateral shielding range to the pair of the first vertex of the quadrilateral shielding range At the vertices, the above steps (b) to (d) are repeatedly executed every predetermined distance to determine a second complex candidate placement position. 如申請專利範圍第17項所述之光學式位置偵測方法,計算分數之步驟更包括計算該第二複數候選擺放位置之各個擺放位置所對應之分數,以及選擇步驟更包括依據該第一複數候選擺放位置之各個擺放位置所對應之分數值及該第二複數候選擺放位置之各個擺放位置所對應之分數值之較小者,選擇出該第一複數候選擺放位置及該第二複數候選擺放位置之一作為該矩形物體之該真實矩形擺放位置。 The optical position detecting method of claim 17, wherein the calculating the score further comprises calculating a score corresponding to each of the placement positions of the second plurality of candidate positions, and the selecting step further comprises: Selecting the first complex candidate placement position by the smaller of the score values corresponding to the respective placement positions of the plurality of candidate placement positions and the respective placement positions of the second plurality of candidate placement positions And one of the second plurality of candidate placement positions is the true rectangular placement position of the rectangular object. 如申請專利範圍第12項所述之光學式位置偵測方法,其中該矩形物體之該第一邊為該矩形物體之長邊及寬邊之其中 之一。 The optical position detecting method according to claim 12, wherein the first side of the rectangular object is a long side and a wide side of the rectangular object. one. 如申請專利範圍第18項所述之光學式位置偵測方法,其中當該矩形物體之該第一邊為該矩形物體之長邊時,該矩形物體之該第二邊為該矩形物體之寬邊,以及當該矩形物體之該第一邊為該矩形物體之寬邊時,該矩形物體之該第二邊為該矩形物體之長邊。 The optical position detecting method according to claim 18, wherein when the first side of the rectangular object is a long side of the rectangular object, the second side of the rectangular object is a width of the rectangular object The edge, and when the first side of the rectangular object is the broad side of the rectangular object, the second side of the rectangular object is the long side of the rectangular object.
TW102141405A 2013-11-14 2013-11-14 Method for optically detecting location and device for optically detecting location TWI515622B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW102141405A TWI515622B (en) 2013-11-14 2013-11-14 Method for optically detecting location and device for optically detecting location
CN201310611937.8A CN104635999B (en) 2013-11-14 2013-11-26 Optical position detecting method and optical position detecting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW102141405A TWI515622B (en) 2013-11-14 2013-11-14 Method for optically detecting location and device for optically detecting location

Publications (2)

Publication Number Publication Date
TW201519028A true TW201519028A (en) 2015-05-16
TWI515622B TWI515622B (en) 2016-01-01

Family

ID=53214835

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102141405A TWI515622B (en) 2013-11-14 2013-11-14 Method for optically detecting location and device for optically detecting location

Country Status (2)

Country Link
CN (1) CN104635999B (en)
TW (1) TWI515622B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI391852B (en) * 2009-06-18 2013-04-01 Quanta Comp Inc System and method of distinguishing multiple touch points
TWI410841B (en) * 2009-09-24 2013-10-01 Acer Inc Optical touch system and its method
TWI424343B (en) * 2010-11-22 2014-01-21 Pixart Imaging Inc Optical screen touch system and method thereof
TW201241695A (en) * 2011-04-08 2012-10-16 Acer Inc Optical touch device and object identification method thereof
CN103092431B (en) * 2011-11-08 2015-09-02 原相科技股份有限公司 Optical touch control system

Also Published As

Publication number Publication date
CN104635999B (en) 2017-09-08
TWI515622B (en) 2016-01-01
CN104635999A (en) 2015-05-20

Similar Documents

Publication Publication Date Title
KR102461093B1 (en) Depth image providing apparatus and method
US10091489B2 (en) Image capturing device, image processing method, and recording medium
TWI363286B (en) Method and apparatus for detecting motion of image in optical navigator
EP2571257B1 (en) Projector device and operation detecting method
US20140292648A1 (en) Information operation display system, display program, and display method
TWI494823B (en) Locating method of optical touch device and optical touch device
TWI416385B (en) Method of determining pointing object position for three dimensional interaction display
KR102689863B1 (en) Electronic apparatus and method for controlling thereof
TWI430151B (en) Touch device and touch method
JP7361251B2 (en) Measuring device and method
US20160080644A1 (en) Movement assisting device, movement assisting method, and computer program product
CN102375170A (en) Diffractive optical element, distance measuring apparatus and distance measuring method
TWI417774B (en) Optical distance determination device, optical touch monitor system and method for measuring distance of a touch point on an optical touch panel
TWI515622B (en) Method for optically detecting location and device for optically detecting location
US9552074B2 (en) Method and system for generating user feedback of a gesture capturing device
JP2015141580A (en) mobile device
TWI451312B (en) Optical touch device and light source assembly
TWI662466B (en) Apparatus and method for recognizing a moving direction of gesture
US8988393B2 (en) Optical touch system using overlapping object and reflection images and calculation method thereof
CN105451009A (en) Information processing method and electronic equipment
KR102029786B1 (en) Display apparatus having pattern and method for detecting input position by recognizing the pattern and the image recognition device therefor
TWI489349B (en) Jig and calibration method
JP6730029B2 (en) Image processing device, image processing method, image processing program, and imaging device
US9721151B2 (en) Method and apparatus for detecting interfacing region in depth image
JP5509441B1 (en) Corresponding point detection device and corresponding point detection method