TWI502982B - Image capture device and image correction method thereof - Google Patents

Image capture device and image correction method thereof Download PDF

Info

Publication number
TWI502982B
TWI502982B TW100149110A TW100149110A TWI502982B TW I502982 B TWI502982 B TW I502982B TW 100149110 A TW100149110 A TW 100149110A TW 100149110 A TW100149110 A TW 100149110A TW I502982 B TWI502982 B TW I502982B
Authority
TW
Taiwan
Prior art keywords
image
data
capturing device
image data
image capturing
Prior art date
Application number
TW100149110A
Other languages
Chinese (zh)
Other versions
TW201328345A (en
Inventor
Ko Meng Chen
Yu Chi Liu
Original Assignee
Teco Image Sys Co Ltd
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 Teco Image Sys Co Ltd filed Critical Teco Image Sys Co Ltd
Priority to TW100149110A priority Critical patent/TWI502982B/en
Publication of TW201328345A publication Critical patent/TW201328345A/en
Application granted granted Critical
Publication of TWI502982B publication Critical patent/TWI502982B/en

Links

Landscapes

  • Image Processing (AREA)

Description

影像擷取裝置及其影像校正方法Image capturing device and image correcting method thereof

  本案係關於一種影像擷取裝置,尤指一種具有修正影像歪斜功能之影像擷取裝置及其影像校正方法。The present invention relates to an image capturing device, and more particularly to an image capturing device with a corrected image skew function and an image correcting method thereof.

  近年來,隨著電子工業的演進以及工業技術的蓬勃發展,科技日新月異,各種電子裝置設計及開發的走向逐漸朝輕便、易於攜帶的方向發展,以利使用者隨時隨地應用於行動商務、娛樂或休閒等用途。In recent years, with the evolution of the electronics industry and the rapid development of industrial technology, technology is changing with each passing day. The design and development of various electronic devices are gradually moving towards light and easy to carry, so that users can apply to mobile commerce, entertainment or anytime, anywhere. Leisure and other uses.

  舉例而言,各式各樣的可攜式影像擷取裝置正廣泛應用於各種領域,例如手持式掃瞄器,其具有體積小且方便攜帶之優點,使用者得以隨身攜帶並於有使用需求時隨時取出並進行影像擷取,再透過例如智慧型手機加以處理並儲存,或進一步透過行動網路上傳至網際網路之中,不僅具有重要的商業價值,更讓一般大眾的日常生活更添色彩。For example, a wide variety of portable image capture devices are widely used in various fields, such as hand-held scanners, which have the advantages of small size and portability, and can be carried by users and used. It can be taken out and imaged at any time, processed and stored through, for example, a smart phone, or uploaded to the Internet through a mobile network. This not only has important commercial value, but also enhances the daily life of the general public. color.

  傳統的可攜式影像擷取裝置主要是藉由使用者手持之方式滑動以進行影像擷取。然而,由於使用者在操作時無法像機器一樣維持同樣的滑動或操作水平,往往造成擷取到的影像資料產生壓縮、拉長或歪斜之情形,進而造成影像失真、位置偏移或者影像遺漏等問題,而必須重複相同的操作程序以重新進行影像擷取,不單造成使用者困擾,也浪費了許多能源以及時間成本。The conventional portable image capturing device mainly slides by the user to perform image capturing. However, since the user cannot maintain the same sliding or operating level as the machine during operation, the captured image data is often compressed, elongated or skewed, thereby causing image distortion, positional shift, or image omission. The problem, and the same procedure must be repeated to re-image the image, not only causing user confusion, but also wasting a lot of energy and time costs.

  因此,如何發展一種足以改善上述習知技術之缺失,且能避免擷取之影像資料產生壓縮、拉長或歪斜之情形,以簡化操作流程並降低能源及時間成本花費之影像擷取裝置及其影像校正方法,實為目前迫切需要解決之問題。Therefore, how to develop an image capturing device capable of improving the above-mentioned conventional technology and avoiding the compression, elongation or skew of the captured image data to simplify the operation process and reduce the energy and time cost The image correction method is an urgent problem to be solved.

  本案之主要目的為提供一種影像擷取裝置及其影像校正方法,俾解決習知影像擷取裝置因使用者操作因素產生影像壓縮、拉長或歪斜,進而造成影像失真、位置偏移或者影像遺漏等問題,以及重複的操作程序耗徒增能源以及時間成本等缺點。The main purpose of the present invention is to provide an image capturing device and an image correcting method thereof, which solves the problem that the image capturing device of the conventional image is compressed, elongated or skewed due to user operation factors, thereby causing image distortion, positional shift or image omission. Such problems, as well as repeated operating procedures, are disadvantages such as increased energy consumption and time cost.

  本案之另一目的為提供一種影像擷取裝置及其影像校正方法,藉由採用加速度感測模組擷取加速度資料並計算出位置資料,再透過控制模組對影像資料加以校正,可達到避免影像資料壓縮、拉長或歪斜之功效。Another object of the present invention is to provide an image capturing device and an image correcting method thereof, which can be avoided by using an acceleration sensing module to extract acceleration data and calculate position data, and then correcting the image data through the control module. The effect of compressing, stretching or skewing image data.

  本案之另一目的為提供一種影像擷取裝置及其影像校正方法,透過平面判斷演算法、影像偏移補償以及影像修復演算法,可有效避免影像失真、位置偏移及影像遺漏等問題,進而減少操作難度及次數,並達到節省能源及時間成本之功效。Another object of the present invention is to provide an image capturing device and an image correcting method thereof, which can effectively avoid image distortion, positional shift, and image omission by transmitting a plane judgment algorithm, image offset compensation, and image repair algorithm. Reduce the difficulty and frequency of operation and save energy and time costs.

  為達上述目的,本案之一較佳實施態樣為提供一種影像擷取裝置,至少包括:一控制模組,係架構於校正一第一影像資料並產生一第二影像資料;一線性感測模組,與該控制模組相連接,用以擷取該第一影像資料;一加速度感測模組,與該控制模組相連接,並於該線性感測模組擷取該第一影像資料時擷取一加速度資料;以及一儲存模組,與該控制模組相連接,用以儲存該加速度資料、該第一影像資料以及該第二影像資料;其中,該控制模組係根據該加速度資料計算出一位置資料,俾根據該位置資料對該第一影像資料進行校正,以產生該第二影像資料。In order to achieve the above object, a preferred embodiment of the present invention provides an image capturing device, comprising at least: a control module configured to correct a first image data and generate a second image data; The group is connected to the control module for capturing the first image data; an acceleration sensing module is connected to the control module, and the first image data is captured by the line sensing module And acquiring a acceleration data; and a storage module connected to the control module for storing the acceleration data, the first image data and the second image data; wherein the control module is based on the acceleration The data is calculated as a location data, and the first image data is corrected according to the location data to generate the second image data.

  為達上述目的,本案之另一較佳實施態樣為提供一種影像校正方法,至少包括步驟:(a)提供一影像擷取裝置;(b)擷取一第一影像資料以及一加速度資料;以及(c)根據該加速度資料計算出一位置資料,俾根據該位置資料對該第一影像資料進行校正,以產生一第二影像資料。In order to achieve the above object, another preferred embodiment of the present invention provides an image correction method, comprising at least the steps of: (a) providing an image capturing device; (b) capturing a first image data and an acceleration data; And (c) calculating a location data based on the acceleration data, and correcting the first image data according to the location data to generate a second image data.

  體現本案特徵與優點的一些典型實施例將在後段的說明中詳細敘述。應理解的是本案能夠在不同的態樣上具有各種的變化,然其皆不脫離本案的範圍,且其中的說明及圖式在本質上係當作說明之用,而非用以限制本案。Some exemplary embodiments embodying the features and advantages of the present invention are described in detail in the following description. It should be understood that the present invention is capable of various modifications in the various aspects of the present invention, and the description and drawings are intended to be illustrative and not limiting.

  請參閱第1圖,其係為本案較佳實施例之影像擷取裝置之元件方塊圖。如第1圖所示,本案之影像擷取裝置1至少包括控制模組2、線性感測模組3、加速度感測模組4以及儲存模組5。控制模組2係架構於校正第一影像資料並產生第二影像資料,線性感測模組3係與控制模組2相連接,用以擷取第一影像資料,例如透過具有感光元件31之線性感測模組3對一媒體或文件進行掃描動作,而加速度感測模組4亦係與控制模組2相連接,並於線性感測模組3擷取第一影像資料時擷取加速度資料,例如透過具有三軸向加速度計41之加速度感測模組4於一時間區間內連續採樣並擷取影像擷取裝置1之複數個加速度值,然皆不以此為限。其中,控制模組2係根據加速度資料進行二次積分,以計算出位置資料,例如但不限於根據影像擷取裝置1之複數個加速度值進行二次積分,以計算出影像擷取裝置1之位置資料,俾根據該位置資料對第一影像資料進行校正,以產生第二影像資料,例如但不限於一掃描影像成品。至於儲存模組5,其係與控制模組2相連接,用以儲存加速度資料、第一影像資料以及第二影像資料,且儲存模組5可為隨機存取記憶體(Random Access Memory, RAM)、唯讀記憶體(Read-Only Memory, ROM)、快閃記憶體(Flash Memory)、記憶卡(Memory Card)、硬碟(Hard Disk)或固態硬碟(Solid State Disk or Solid State Drive)等,但不以此為限。由此可見,本案之影像擷取裝置1係藉由採用加速度感測模組4擷取加速度資料並計算出位置資料,再透過控制模組2對影像資料加以校正,可達到避免影像資料壓縮、拉長或歪斜之功效,而有效避免影像失真、位置偏移及影像遺漏等問題,進而減少操作難度及次數,並達到節省能源及時間成本之功效。Please refer to FIG. 1 , which is a block diagram of the components of the image capturing device of the preferred embodiment of the present invention. As shown in FIG. 1 , the image capturing device 1 of the present invention includes at least a control module 2 , a line sensing module 3 , an acceleration sensing module 4 , and a storage module 5 . The control module 2 is configured to correct the first image data and generate the second image data. The line sensor module 3 is connected to the control module 2 for capturing the first image data, for example, through the photosensitive element 31. The line sensing module 3 scans a medium or a file, and the acceleration sensing module 4 is also connected to the control module 2, and captures the acceleration when the line sensing module 3 captures the first image data. For example, the acceleration sensing module 4 having the three-axis accelerometer 41 continuously samples and captures the plurality of acceleration values of the image capturing device 1 in a time interval, which are not limited thereto. The control module 2 performs secondary integration based on the acceleration data to calculate the position data, for example, but not limited to, performing secondary integration according to the plurality of acceleration values of the image capturing device 1 to calculate the image capturing device 1 The location data is corrected according to the location data to generate a second image data, such as but not limited to a scanned image product. The storage module 5 is connected to the control module 2 for storing acceleration data, first image data and second image data, and the storage module 5 can be a random access memory (Random Access Memory, RAM). ), Read-Only Memory (ROM), Flash Memory, Memory Card, Hard Disk, or Solid State Drive (Solid State Disk or Solid State Drive) Wait, but not limited to this. It can be seen that the image capturing device 1 of the present invention captures the acceleration data by using the acceleration sensing module 4 and calculates the position data, and then corrects the image data through the control module 2, thereby avoiding the compression of the image data. The effect of lengthening or skewing can effectively avoid image distortion, positional shift and image omission, thereby reducing the difficulty and frequency of operation, and achieving energy and time cost savings.

  於一些實施例中,本案之控制模組2可為包括中央處理器(Central Processing Unit, CPU)、微處理器(Micro Processing Unit, MPU)或其他具有運算及控制功能之處理器之控制模組2。且於另一些實施例中,控制模組2係包括開關元件21,用以控制影像擷取裝置1之啟動與停止,例如控制影像擷取裝置1之線性感測模組3及加速度感測模組4開始進行第一影像資料及加速度資料之擷取或進入待機狀態,但不以此為限。In some embodiments, the control module 2 of the present invention may be a control module including a central processing unit (CPU), a microprocessor (Micro Processing Unit (MPU), or other processor with arithmetic and control functions. 2. In other embodiments, the control module 2 includes a switching component 21 for controlling the start and stop of the image capturing device 1, for example, controlling the line sensing module 3 and the acceleration sensing module of the image capturing device 1. Group 4 begins to capture or enter the standby state of the first image data and acceleration data, but is not limited thereto.

  根據本案之構想,本案之影像擷取裝置1更包括通訊模組6,其係與控制模組2相連接,用以將第二影像資料傳輸至一儲存裝置或一電子裝置,例如外接記憶卡、硬碟、固態硬碟、快閃記憶體、電腦(PC)、筆記型電腦(Notebook PC)、平板電腦(Tablet PC)、伺服器(Server)、智慧型手機(Smart Phone)或個人數位助理(Personal Digital Assistant, PDA)等,但不以此為限,且儲存模組6可為具有通用序列匯流排(USB)傳輸介面、雷霆(Thunderbolt)傳輸介面、火線(Firewire)傳輸介面、序列高技術配置(Serial Advanced Technology Attachment, SATA)傳輸介面、快捷外設互聯標準(Peripheral Component Interconnect Express, PCI-E)傳輸介面或符合CAT-5e、CAT-6、CAT-6e或CAT-7等規格之網路傳輸介面(Ethernet Port),然亦不以此為限。According to the concept of the present invention, the image capturing device 1 of the present invention further includes a communication module 6 connected to the control module 2 for transmitting the second image data to a storage device or an electronic device, such as an external memory card. , hard drive, solid state drive, flash memory, computer (PC), notebook PC (Notebook PC), tablet (Tablet PC), server (Server), smart phone (Smart Phone) or personal digital assistant (Personal Digital Assistant, PDA), etc., but not limited thereto, and the storage module 6 can have a universal serial bus (USB) transmission interface, a Thunderbolt transmission interface, a Firewire transmission interface, and a high sequence. Serial Advanced Technology Attachment (SATA) transmission interface, Peripheral Component Interconnect Express (PCI-E) transmission interface or CAT-5e, CAT-6, CAT-6e or CAT-7 The Ethernet port is not limited to this.

  請參閱第2圖並配合第1圖,其中第2圖係為本案較佳實施例之影像校正方法流程圖。如第1圖及第2圖所示,本案之影像校正方法至少包括步驟:首先,如步驟S100所示,提供影像擷取裝置1,且該影像擷取裝置1至少包括控制模組2、線性感測模組3、加速度感測模組4以及儲存模組5。其次,如步驟S200所示,影像擷取裝置1透過線性感測模組3及加速度感測模組4擷取第一影像資料以及加速度資料;然後,如步驟S300所示,影像擷取裝置1藉由控制模組2根據加速度資料計算出位置資料,俾根據位置資料對第一影像資料進行校正,以產生第二影像資料,其係透過平面判斷演算法、影像偏移補償以及影像修復演算法等對第一影像資料進行校正,可有效避免影像失真、位置偏移及影像遺漏等問題,進而減少操作難度及次數,並達到節省能源及時間成本之功效。Please refer to FIG. 2 and FIG. 1 , wherein FIG. 2 is a flow chart of the image correction method according to the preferred embodiment of the present invention. As shown in FIG. 1 and FIG. 2, the image correction method of the present invention includes at least the steps. First, as shown in step S100, the image capturing device 1 is provided, and the image capturing device 1 includes at least a control module 2 and a line. The sexy measuring module 3, the acceleration sensing module 4 and the storage module 5. Next, as shown in step S200, the image capturing device 1 captures the first image data and the acceleration data through the line sensing module 3 and the acceleration sensing module 4; then, as shown in step S300, the image capturing device 1 The control module 2 calculates the position data according to the acceleration data, and corrects the first image data according to the position data to generate the second image data, which is transmitted through the plane judgment algorithm, the image offset compensation, and the image restoration algorithm. By correcting the first image data, problems such as image distortion, positional shift, and image omission can be effectively avoided, thereby reducing the difficulty and the number of operations, and achieving the effect of saving energy and time cost.

  請參閱第3圖並配合第1圖及第2圖,其中第3圖係為本案影像校正方法之細部流程圖。如第1圖、第2圖及第3圖所示,本案之影像校正方法之細部流程至少包括步驟:首先,如步驟S100所示,提供影像擷取裝置1;其次,第2圖所示之步驟S200中更包括步驟S201~S203,如步驟S201所示,開啟影像擷取裝置1之電源,並如步驟S202所示,按壓開關元件21以啟動影像擷取及校正程序,再如步驟S203所示,影像擷取裝置1之線性感測模組3及加速度感測模組4分別擷取第一影像資料及加速度資料;然後,第2圖所示之步驟S300中更包括步驟S301~S305,如步驟S301所示,影像擷取裝置1藉由控制模組2根據加速度資料計算出位置資料,並如步驟S302~S304所示,根據該位置資料對第一影像資料分別以平面判斷演算法、影像偏移補償以及影像修復演算法進行校正,再如步驟S305所示,產生第二影像資料;接著,再如步驟S400所示,按壓開關元件21以進入待機模式。於待機模式中,若使用者欲將影像擷取裝置1關機,則如步驟S500所示,關閉影像擷取裝置1之電源;若使用者欲續行影像擷取及校正程序,則重複步驟S202,再度按壓開關元件21,以啟動影像擷取及校正程序。Please refer to Fig. 3 and cooperate with Fig. 1 and Fig. 2, wherein Fig. 3 is a detailed flow chart of the image correction method of the present invention. As shown in FIG. 1 , FIG. 2 and FIG. 3 , the detailed process of the image correction method of the present invention includes at least steps: first, as shown in step S100, the image capturing device 1 is provided; secondly, as shown in FIG. 2 Step S200 further includes steps S201 to S203. As shown in step S201, the power of the image capturing device 1 is turned on, and as shown in step S202, the switching element 21 is pressed to start the image capturing and correcting process, and then the step S203 is performed. The line sensing module 3 and the acceleration sensing module 4 of the image capturing device 1 respectively capture the first image data and the acceleration data; then, the step S300 shown in FIG. 2 further includes steps S301 to S305. As shown in step S301, the image capturing device 1 calculates the position data based on the acceleration data by the control module 2, and performs a plane determination algorithm on the first image data according to the position data, as shown in steps S302-S304. The image offset compensation and the image restoration algorithm perform correction, and as shown in step S305, the second image data is generated. Then, as shown in step S400, the switching element 21 is pressed to enter the standby mode. In the standby mode, if the user wants to turn off the image capturing device 1, the power of the image capturing device 1 is turned off as shown in step S500; if the user wants to continue the image capturing and correcting process, step S202 is repeated. The switching element 21 is pressed again to activate the image capture and correction process.

  請參閱第4圖並配合第1圖,其中第4圖係為本案較佳實施例之影像擷取裝置進行影像擷取之示意圖。如第1圖及第4圖所示,本案影像擷取裝置1可用以對一媒體7進行影像擷取,例如文件、圖片、海報或書籍等,但不以此為限。於一些實施例中,使用者於操作影像擷取裝置1時,無法如同機器般精準操作影像擷取裝置1,故於操作影像擷取裝置1對媒體7進行影像擷取時,雖係沿方向M滑動影像擷取裝置1,然而實際路徑卻可能如路徑P滑動而有所偏移,且無法以等速度進行滑動,故影像擷取裝置1之加速度感測模組4於線性感測模組3擷取第一影像資料時係可擷取到加速度資料。Please refer to FIG. 4 and FIG. 1 , wherein FIG. 4 is a schematic diagram of image capturing by the image capturing device of the preferred embodiment of the present invention. As shown in FIG. 1 and FIG. 4, the image capturing device 1 of the present invention can be used to perform image capturing on a medium 7, such as a file, a picture, a poster, or a book, but is not limited thereto. In some embodiments, when the image capturing device 1 is operated by the user, the image capturing device 1 cannot be operated as accurately as the machine. Therefore, when the image capturing device 1 is operated to capture the image of the medium 7, the image is taken along the direction. M sliding image capturing device 1, but the actual path may be offset as the path P slides, and cannot slide at the same speed, so the acceleration sensing module 4 of the image capturing device 1 is in the line sensing module 3 Acceleration data can be captured when the first image data is captured.

  以下將說明影像擷取裝置1根據加速度資料計算出位置資料後,對第一影像資料進行校正之方法原理。請參閱第5圖並配合第1圖及第4圖,其中第5圖係為影像擷取裝置於第4圖所示之區域A、B、C之位置示意圖。如第1圖、第4圖及第5圖所示,當本案之影像擷取裝置1處於第一區域A時,係經控制模組2根據加速度資料計算得出兩端點之座標A1、A2,且於處於第二區域B及第三區域C時分別計算得出兩端點之座標B1、B2及C1、C2。控制模組2遂依據第一區域A兩端點座標A1、A2及第二區域B兩端點座標B1、B2計算出第一垂直向量 及第一水平向量 ,並依據第二區域B兩端點座標B1、B2及第三區域C兩端點座標C1、C2計算出第二垂直向量 及第二水平向量 ,並以向量外積計算出影像擷取裝置1於第一區域A及第二區域B時之座標平面之第一單位法向量以及影像擷取裝置1於第二區域B及第三區域C時之座標平面之第二單位法向量。The principle of correcting the first image data after the image capturing device 1 calculates the position data based on the acceleration data will be described below. Please refer to FIG. 5 and cooperate with FIG. 1 and FIG. 4 , wherein FIG. 5 is a schematic diagram of the position of the image capturing device in the regions A, B and C shown in FIG. 4 . As shown in FIG. 1 , FIG. 4 and FIG. 5 , when the image capturing device 1 of the present invention is in the first area A, the control module 2 calculates the coordinates A1 and A2 of the two ends according to the acceleration data. And when in the second region B and the third region C, the coordinates B1, B2, and C1, C2 of the two ends are respectively calculated. The control module 2 calculates the first vertical vector according to the coordinate coordinates A1, A2 at the two ends of the first region A and the coordinates B1 and B2 at the two ends of the second region B. First horizontal vector And calculating the second vertical vector according to the coordinate coordinates C1 and C2 at the two ends of the second region B, the coordinates B1 and C2 at both ends of the third region C Second horizontal vector Calculating the first unit normal vector of the coordinate plane of the image capturing device 1 in the first region A and the second region B and the image capturing device 1 in the second region B and the third region C by using the vector outer product The second unit normal vector of the coordinate plane.

  請參閱第6A圖及第6B圖並配合第1圖,其中第6A圖及第6B圖係分別為水平平面單位法向量及第一單位法向量具有夾角之示意圖以及水平平面單位法向量及第二單位法向量平行之示意圖。如第1圖、第6A圖及第6B圖所示,由於水平平面單位法向量 之座標表示必定為X=Y=0, Z=1,亦即(0, 0, 1),故可藉由水平平面單位法向量 與第一單位法向量 及第二單位法向量 之內積計算推得其夾角θ。於一些實施例中,當水平平面單位法向量 與第一單位法向量 之內積結果不等於1時,即代表其具有夾角θ,亦即代表影像擷取裝置1於第一區域A及第二區域B時之座標平面並非水平。於另一些實施例中,當水平平面單位法向量 與第二單位法向量 之內積結果等於1時,即代表水平平面單位法向量 與第二單位法向量 係平行,且其夾角θ之角度係為0度,或可稱不具有夾角θ,亦即代表影像擷取裝置1於第二區域B及第三區域C時之座標平面係為水平。Please refer to FIG. 6A and FIG. 6B and cooperate with FIG. 1 , wherein FIG. 6A and FIG. 6B are respectively a schematic diagram of a horizontal plane unit normal vector and a first unit normal vector having an angle and a horizontal plane unit normal vector and a second. Schematic diagram of the unit normal vector parallel. Horizontal plane unit normal vector as shown in Figure 1, Figure 6A and Figure 6B The coordinate representation must be X=Y=0, Z=1, which is (0, 0, 1), so the horizontal plane unit normal vector First unit normal vector Second unit normal vector The inner product calculation pushes the angle θ. In some embodiments, when the horizontal plane unit normal vector First unit normal vector When the inner product result is not equal to 1, it means that it has an angle θ, that is, the coordinate plane of the image capturing device 1 in the first area A and the second area B is not horizontal. In other embodiments, when the horizontal plane unit normal vector Second unit normal vector When the inner product result is equal to 1, it represents the horizontal plane unit normal vector Second unit normal vector The angles of the angles θ are 0 degrees, or may be said to have no angle θ, that is, the coordinate planes of the image capturing device 1 in the second region B and the third region C are horizontal.

  當判別出座標平面並非水平後,本案影像擷取裝置1之控制模組2係對第一影像資料進行校正。請參閱第7A圖及第7B圖並配合第1圖,其中第7A圖及第7B圖係分別為本案影像擷取裝置實際行進路徑之示意圖以及本案平面判斷演算法進行校正之原理示意圖。如第1圖、第7A圖及第7B圖所示,本案之影像擷取裝置1若於座標平面不為水平之情形下,其實際行進路徑係沿路徑l進行滑動,然實際於影像辨識時,會將之判斷為路徑l之水平投影量x,若未進行影像校正,則會生成實際長度或寬度等於路徑l之影像於等於投影量x之長度或寬度內,而使得影像失真,本案係藉由平面判斷演算法進行校正,其係透過商高定理,並於極短之時間內進行取樣。在判斷座標平面並非為平面後,即根據路徑l之水平投影量x以及高度差z透過商高定理計算出其近似三角形之斜邊長r,並生成實際長度或寬度等於路徑l之影像於相等於斜邊長r之長度或寬度內,以避免影像失真之問題產生。When it is determined that the coordinate plane is not horizontal, the control module 2 of the image capturing device 1 of the present invention corrects the first image data. Please refer to FIG. 7A and FIG. 7B and cooperate with FIG. 1 , wherein FIG. 7A and FIG. 7B are schematic diagrams showing the actual traveling path of the image capturing device of the present invention and the principle of correcting the plane determining algorithm in the present case. As shown in FIG. 1 , FIG. 7A and FIG. 7B , if the image capturing device 1 of the present case is not horizontal in the coordinate plane, the actual traveling path is slid along the path l, but actually in the image recognition. It will be judged as the horizontal projection amount x of the path l. If the image correction is not performed, the actual length or width of the image equal to the path l is equal to the length or width of the projection amount x, and the image is distorted. The correction is performed by a plane judgment algorithm, which uses the Shang Gao theorem and samples in a very short time. After judging that the coordinate plane is not a plane, that is, according to the horizontal projection amount x and the height difference z of the path l, the oblique side length r of the approximate triangle is calculated by the quotient height theorem, and an image whose actual length or width is equal to the path l is generated. It is equal to the length or width of the bevel length r to avoid image distortion.

  於水平判斷演算法校正完畢後,本案之影像擷取裝置1係進行影像偏移補償之校正。請參閱第8A圖、第8B圖及第8C圖並配合第1圖及第4圖,其中第8A圖係為第4圖所示之區域A之影像資料示意圖,第8B圖係為第4圖所示之區域B之影像資料示意圖,以及第8C圖係為第8B圖所示影像資料校正後之影像資料示意圖。如第1圖、第4圖、第8A圖、第8B圖及第8C圖所示,本案之影像擷取裝置1擷取之區域A之影像資料因為影像擷取裝置1之實際滑動路徑P於區域A時並未有偏移之情形,故無須進行影像校正。然而,如第8B圖所示之區域B之影像資料,因本案之影像擷取裝置1之實際滑動路徑P於B區域內發生偏移之情形,故必須進行影像偏移之校正,其係透過比較位置資料中之座標位置以計算出兩相鄰資料之水平偏移量ΔX以及垂直偏移量ΔY,控制模組2遂對偏移之影像資料逐一進行校正,並反向補回水平偏移量ΔX以及垂直偏移量ΔY,以使影像資料校正為水平狀態下之正常影像(如第8C圖所示)。After the horizontal determination algorithm is corrected, the image capturing device 1 of the present invention performs image offset compensation correction. Please refer to FIG. 8A, FIG. 8B and FIG. 8C and cooperate with FIG. 1 and FIG. 4 , wherein FIG. 8A is a schematic diagram of image data of area A shown in FIG. 4 , and FIG. 8B is a fourth diagram. The image data of the area B shown in the figure and the 8C figure are the image data of the corrected image data shown in FIG. 8B. As shown in FIG. 1 , FIG. 4 , FIG. 8A , FIG. 8B , and FIG. 8C , the image data of the area A captured by the image capturing device 1 of the present invention is the actual sliding path P of the image capturing device 1 . There is no offset in area A, so no image correction is required. However, as for the image data of the area B shown in FIG. 8B, since the actual sliding path P of the image capturing apparatus 1 of the present invention is offset in the B area, the image shift correction must be performed. Comparing the coordinate position in the position data to calculate the horizontal offset ΔX and the vertical offset ΔY of the two adjacent data, the control module 2 校正 corrects the offset image data one by one, and reverses the horizontal offset The amount ΔX and the vertical offset ΔY are used to correct the image data to a normal image in a horizontal state (as shown in Fig. 8C).

  於影像偏移補償校正完畢後,本案之影像擷取裝置1係進行影像修復演算法之校正。請參閱第9A圖及第9B圖,其係分別為影像遺漏之影像資料示意圖以及本案影像校正方法修復影像後之影像資料示意圖。如第9A圖及第9B圖所示,本案之影像擷取1於影像擷取過程中,係可記錄影像遺漏之區段,並透過本案影像校正方法之影像修復演算法進行校正,於此實施例中,影像擷取裝置1所擷取之第一影像資料係具有影像遺漏區域E,遂透過控制模組2進行影像修復演算法之校正,控制模組2係以位置資料算出相鄰資料點位P1、P2、P3及P4之座標,並依據點位P1、P2、P3及P4上之影像資料,以數學內插法之方式得出影像遺漏區域E內原有影像資料之近似影像資料R,並將影像遺漏區域E以近似影像資料R取代,而完成影像修復演算法之校正,而生成資料完整之正常影像。After the image offset compensation is corrected, the image capturing device 1 of the present invention performs correction of the image restoration algorithm. Please refer to FIG. 9A and FIG. 9B, which are schematic diagrams of image data missing from the image and schematic diagrams of the image data after the image correction method is repaired. As shown in Fig. 9A and Fig. 9B, the image capture 1 of the present invention can record the missing portion of the image during the image capture process, and correct it by the image restoration algorithm of the image correction method of the present invention. In the example, the first image data captured by the image capturing device 1 has an image missing area E, and the image restoration algorithm is corrected by the control module 2, and the control module 2 calculates the adjacent data points by using the position data. The coordinates of bits P1, P2, P3 and P4, and according to the image data on the points P1, P2, P3 and P4, the approximate image data of the original image data in the missing area E of the image is obtained by mathematical interpolation. And the image missing area E is replaced by the approximate image data R, and the image restoration algorithm is corrected, and the normal image of the complete data is generated.

  根據本案之構想,影像擷取裝置1之控制模組2對第一影像資料進行平面判斷演算法之校正、影像偏移補償之校正以及影像修復演算法之校正完成後,其產生之影像資料即為第二影像資料,亦即校正完成後之成品影像。According to the concept of the present invention, after the control module 2 of the image capturing device 1 performs the correction of the plane determination algorithm, the correction of the image offset compensation, and the correction of the image restoration algorithm, the image data generated by the image capturing device 1 is It is the second image data, that is, the finished image after the correction is completed.

  綜上所述,本案之影像擷取裝置及其影像校正方法,係藉由採用加速度感測模組擷取加速度資料並以二次積分計算出位置資料,再透過控制模組以平面判斷演算法、影像偏移補償以及影像修復演算法對第一影像資料加以校正,並產生第二影像資料,可避免影像資料壓縮、拉長或歪斜,進而有效防止影像失真、位置偏移及影像遺漏等問題,而減少操作難度及次數,並達到節省能源及時間成本之功效。In summary, the image capturing device and the image correcting method thereof in the present invention use the acceleration sensing module to extract the acceleration data and calculate the position data by the second integral, and then use the control module to determine the algorithm by plane. The image offset compensation and the image restoration algorithm correct the first image data and generate the second image data, thereby preventing the image data from being compressed, elongated or skewed, thereby effectively preventing image distortion, positional shift, and image omission. , reducing the difficulty and frequency of operation, and achieving energy and time costs.

  縱使本發明已由上述之實施例詳細敘述而可由熟悉本技藝之人士任施匠思而為諸般修飾,然皆不脫如附申請專利範圍所欲保護者。



The present invention has been described in detail by the above-described embodiments, and may be modified by those skilled in the art, without departing from the scope of the appended claims.



1...影像擷取裝置1. . . Image capture device

2...控制模組2. . . Control module

21...開關元件twenty one. . . Switching element

3...線性感測模組3. . . Line sensing module

31...感光元件31. . . Photosensitive element

4...加速度感測模組4. . . Acceleration sensing module

41...三軸向速度計41. . . Triaxial speedometer

5...儲存模組5. . . Storage module

6...通訊模組6. . . Communication module

7...媒體7. . . media

A、B、C...區域A, B, C. . . region

A1、A2、B1、B2、C1、C2...座標A1, A2, B1, B2, C1, C2. . . coordinate

E...影像遺漏區域E. . . Image missing area

1、P...路徑1, P. . . path

M...方向M. . . direction

...第一單位法向量 . . . First unit normal vector

...第二單位法向量 . . . Second unit normal vector

...水平平面單位法向量 . . . Horizontal plane unit normal vector

P1、P2、P3、P4...點位P1, P2, P3, P4. . . Point

R...近似影像資料R. . . Approximate image data

...向量 , , , . . . vector

x...水平投影量x. . . Horizontal projection

z...高度差z. . . Height difference

r...斜邊長r. . . Beveled length

△X...水平偏移量△X. . . Horizontal offset

△Y...垂直偏移量△Y. . . Vertical offset

θ...夾角θ. . . Angle

S100~S300...步驟S100~S300. . . step

S201~S203、S301~S305、S400、S500...步驟S201~S203, S301~S305, S400, S500. . . step

第1圖係為本案較佳實施例之影像擷取裝置之元件方塊圖。BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a block diagram of the components of the image capture device of the preferred embodiment of the present invention.

第2圖係為本案較佳實施例之影像校正方法流程圖。Figure 2 is a flow chart of the image correction method of the preferred embodiment of the present invention.

第3圖係為本案影像校正方法之細部流程圖。Figure 3 is a detailed flow chart of the image correction method of this case.

第4圖係為本案較佳實施例之影像擷取裝置進行影像擷取之示意圖。Figure 4 is a schematic diagram of image capture by the image capture device of the preferred embodiment of the present invention.

第5圖係為影像擷取裝置於第4圖所示之區域A、B、C之位置示意圖。Fig. 5 is a schematic view showing the position of the image capturing device in the areas A, B, and C shown in Fig. 4.

第6A圖係為水平平面單位法向量及第一單位法向量具有夾角之示意圖。Figure 6A is a schematic diagram showing the angle between the horizontal plane unit normal vector and the first unit normal vector.

第6B圖係為水平平面單位法向量及第二單位法向量平行之示意圖。Figure 6B is a schematic diagram of the horizontal plane unit normal vector and the second unit normal vector.

第7A圖係為本案影像擷取裝置實際行進路徑之示意圖。Figure 7A is a schematic diagram of the actual travel path of the image capturing device of the present invention.

第7B圖係為本案平面判斷演算法進行校正之原理示意圖。Figure 7B is a schematic diagram of the principle of correcting the plane judgment algorithm for this case.

第8A圖係為第4圖所示之區域A之影像資料示意圖。Fig. 8A is a schematic view of the image data of the area A shown in Fig. 4.

第8B圖係為第4圖所示之區域B之影像資料示意圖。Fig. 8B is a schematic view of the image data of the area B shown in Fig. 4.

第8C圖係為第8B圖所示影像資料校正後之影像資料示意圖。Fig. 8C is a schematic diagram of image data after correction of the image data shown in Fig. 8B.

第9A圖係為影像遺漏之影像資料示意圖。Figure 9A is a schematic diagram of image data missing from the image.

第9B圖係為本案影像校正方法修復影像後之影像資料示意圖。Figure 9B is a schematic diagram of image data after the image is corrected by the image correction method of the present invention.

1...影像擷取裝置1. . . Image capture device

2...控制模組2. . . Control module

21...開關元件twenty one. . . Switching element

3...線性感測模組3. . . Line sensing module

31...感光元件31. . . Photosensitive element

4...加速度感測模組4. . . Acceleration sensing module

41...三軸向速度計41. . . Triaxial speedometer

5...儲存模組5. . . Storage module

6...通訊模組6. . . Communication module

Claims (10)

一種影像擷取裝置,至少包括:
  一控制模組,係架構於校正一第一影像資料並產生一第二影像資料;
  一線性感測模組,與該控制模組相連接,用以擷取該第一影像資料;
  一加速度感測模組,與該控制模組相連接,並於該線性感測模組擷取該第一影像資料時擷取一加速度資料;以及
  一儲存模組,與該控制模組相連接,用以儲存該加速度資料、該第一影像資料以及該第二影像資料;
  其中,該控制模組係根據該加速度資料計算出一位置資料,俾根據該位置資料對該第一影像資料進行校正,以產生該第二影像資料。
An image capturing device comprising at least:
a control module is configured to correct a first image data and generate a second image data;
a first-line sensing module is connected to the control module for capturing the first image data;
An acceleration sensing module is connected to the control module, and captures an acceleration data when the line sensing module captures the first image data; and a storage module is connected to the control module For storing the acceleration data, the first image data, and the second image data;
The control module calculates a location data according to the acceleration data, and corrects the first image data according to the location data to generate the second image data.
如申請專利範圍第1項所述之影像擷取裝置,其中該加速度感測模組包括一三軸向加速度計,該三軸向加速度計係與該控制模組相連接,用以感測三軸向之加速度值。The image capturing device of claim 1, wherein the acceleration sensing module comprises a three-axis accelerometer, and the three-axis accelerometer is connected to the control module for sensing three Axial acceleration value. 如申請專利範圍第1項所述之影像擷取裝置,其中該控制模組包括一開關元件,用以啟動該影像擷取裝置進行影像擷取及影像校正,或使該影像擷取裝置進入待機狀態。The image capturing device of claim 1, wherein the control module includes a switching component for enabling the image capturing device to perform image capturing and image correction, or to cause the image capturing device to enter standby mode. status. 如申請專利範圍第1項所述之影像擷取裝置,其中該控制模組係根據該位置資料以平面判斷演算法校正該第一影像資料。The image capturing device of claim 1, wherein the control module corrects the first image data by a plane determining algorithm according to the location data. 如申請專利範圍第1項所述之影像擷取裝置,其中該控制模組係根據該位置資料以影像偏移補償校正該第一影像資料。The image capturing device of claim 1, wherein the control module corrects the first image data with image offset compensation according to the position data. 如申請專利範圍第1項所述之影像擷取裝置,其中該控制模組係根據該位置資料以影像修復演算法校正該第一影像資料。The image capturing device of claim 1, wherein the control module corrects the first image data by using an image restoration algorithm according to the location data. 一種影像校正方法,至少包括步驟:
  (a)提供一影像擷取裝置;
  (b)擷取一第一影像資料以及一加速度資料;以及
  (c)根據該加速度資料計算出一位置資料,俾根據該位置資料對該第一影像資料進行校正,以產生一第二影像資料。
An image correction method includes at least the steps of:
(a) providing an image capture device;
(b) extracting a first image data and an acceleration data; and (c) calculating a position data based on the acceleration data, and correcting the first image data according to the position data to generate a second image data .
如申請專利範圍第7項所述之影像校正方法,其中步驟(b)更包括步驟:
  (b1)開啟該影像擷取裝置之電源;
  (b2)按壓該影像擷取裝置之一開關元件;以及
  (b3)該影像擷取裝置擷取該第一影像資料以及該加速度資料。
The image correction method according to claim 7, wherein the step (b) further comprises the steps of:
(b1) turning on the power of the image capturing device;
(b2) pressing a switching element of the image capturing device; and (b3) the image capturing device capturing the first image data and the acceleration data.
如申請專利範圍第8項所述之影像校正方法,其中步驟(c)更包括步驟:
  (c1)該影像擷取裝置根據該加速度資料計算出該位置資料;
  (c2)根據該位置資料對該第一影像資料以平面判斷演算法進行校正;
  (c3)根據該位置資料對該第一影像資料以影像偏移補償進行校正;
  (c4)根據該位置資料對該第一影像資料以影像修復演算法進行校正;以及
  (c5)產生該第二影像資料。
The image correction method of claim 8, wherein the step (c) further comprises the steps of:
(c1) the image capturing device calculates the position data according to the acceleration data;
(c2) correcting the first image data by a plane judgment algorithm according to the location data;
(c3) correcting the first image data by image offset compensation according to the location data;
(c4) correcting the first image data with an image restoration algorithm based on the location data; and (c5) generating the second image data.
如申請專利範圍第9項所述之影像校正方法,更包括步驟(d)按壓該開關元件以使該影像擷取裝置進入待機狀態,且於步驟(d)之後,可選擇性執行步驟(e)關閉電源或重新執行步驟(b2)。The image correction method of claim 9, further comprising the step of: (d) pressing the switching element to bring the image capturing device into a standby state, and after the step (d), selectively performing the step (e) ) Turn off the power or perform step (b2) again.
TW100149110A 2011-12-28 2011-12-28 Image capture device and image correction method thereof TWI502982B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW100149110A TWI502982B (en) 2011-12-28 2011-12-28 Image capture device and image correction method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW100149110A TWI502982B (en) 2011-12-28 2011-12-28 Image capture device and image correction method thereof

Publications (2)

Publication Number Publication Date
TW201328345A TW201328345A (en) 2013-07-01
TWI502982B true TWI502982B (en) 2015-10-01

Family

ID=49225382

Family Applications (1)

Application Number Title Priority Date Filing Date
TW100149110A TWI502982B (en) 2011-12-28 2011-12-28 Image capture device and image correction method thereof

Country Status (1)

Country Link
TW (1) TWI502982B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI567661B (en) * 2015-10-30 2017-01-21 東友科技股份有限公司 Image capturing method and image capturing device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100559253C (en) * 2003-07-25 2009-11-11 株式会社尼康 Phtographic lens and camera arrangement with ambiguity correction function
CN102104791A (en) * 2009-12-17 2011-06-22 财团法人工业技术研究院 Video camera calibration system and coordinate data generation system, and method thereof
CN102103436A (en) * 2009-12-16 2011-06-22 宏碁股份有限公司 Touch-control electronic device with correcting function and operating method thereof
CN102183870A (en) * 2011-04-29 2011-09-14 广州视声电子科技有限公司 Method and system for correcting distorted projector image and projector

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100559253C (en) * 2003-07-25 2009-11-11 株式会社尼康 Phtographic lens and camera arrangement with ambiguity correction function
CN102103436A (en) * 2009-12-16 2011-06-22 宏碁股份有限公司 Touch-control electronic device with correcting function and operating method thereof
CN102104791A (en) * 2009-12-17 2011-06-22 财团法人工业技术研究院 Video camera calibration system and coordinate data generation system, and method thereof
CN102183870A (en) * 2011-04-29 2011-09-14 广州视声电子科技有限公司 Method and system for correcting distorted projector image and projector

Also Published As

Publication number Publication date
TW201328345A (en) 2013-07-01

Similar Documents

Publication Publication Date Title
JP5449329B2 (en) Method and system for enhanced image alignment
US10915998B2 (en) Image processing method and device
JP5868816B2 (en) Image processing apparatus, image processing method, and program
US20130050076A1 (en) Method of recognizing a control command based on finger motion and mobile device using the same
TWI425444B (en) Method and device for detecting and correcting skewed image data
US9245194B2 (en) Efficient line detection method
US10694098B2 (en) Apparatus displaying guide for imaging document, storage medium, and information processing method
JP5644461B2 (en) Image processing apparatus and program
TW201407420A (en) Improved video tracking
TWI731442B (en) Electronic apparatus and object information recognition method by using touch data thereof
US9218060B2 (en) Virtual mouse driving apparatus and virtual mouse simulation method
CN115797359A (en) Detection method and device based on solder paste on circuit board and storage medium
JP2008011467A (en) Imaging method and apparatus for display panel
TWI536206B (en) Locating method, locating device, depth determining method and depth determining device of operating body
JP2017120503A (en) Information processing device, control method and program of information processing device
WO2007125981A1 (en) Boundary position decision device, boundary position decision method, program for functioning computer as the device, and recording medium
TWI502982B (en) Image capture device and image correction method thereof
JP2006227768A (en) Method and program for character recognition in portable terminal
CN116342585A (en) Product defect detection method, device, equipment and storage medium
CN102005038B (en) Image edge positioning method
JP6092371B2 (en) Electronic apparatus and image processing method
JP2011029710A (en) Image processor, image processing program, and imaging apparatus
JP6171165B2 (en) Driver's license reading device and driver's license reading method
JP2017120455A (en) Information processing device, program and control method
CN108717708B (en) Method and device for calculating edge slope of regular image