TW201431370A - System and method for adjusting image capturing device - Google Patents

System and method for adjusting image capturing device Download PDF

Info

Publication number
TW201431370A
TW201431370A TW101150345A TW101150345A TW201431370A TW 201431370 A TW201431370 A TW 201431370A TW 101150345 A TW101150345 A TW 101150345A TW 101150345 A TW101150345 A TW 101150345A TW 201431370 A TW201431370 A TW 201431370A
Authority
TW
Taiwan
Prior art keywords
angle
dimensional coordinate
coordinate system
axis
correction
Prior art date
Application number
TW101150345A
Other languages
Chinese (zh)
Inventor
Cheng Zhang
Original Assignee
Chi Mei Comm Systems Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chi Mei Comm Systems Inc filed Critical Chi Mei Comm Systems Inc
Publication of TW201431370A publication Critical patent/TW201431370A/en

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Studio Devices (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

A system for adjusting image capturing device is applied in an electronic device, the system includes a setting module that predetermines a three dimensions (3D) coordinating system based on a display of the electronic device, and sets an adjustment angle between each axis of the 3D coordinating system and a horizontal plane; a calculation module that determines a current angle between each axis of the 3D coordinating system and the horizontal plane when the display is rotated, using detected parameters from a gravity sensor of the electronic device; and a capturing module that controls an image capturing device of the electronic device to capture an image of a current scene when each current angle of each axis matches with the adjustment angle. A method for adjusting image capturing device is also provided.

Description

拍照校正系統及方法Photo correction system and method

本發明涉及攝影技術,尤其涉及一種拍照校正系統及方法。The present invention relates to photography techniques, and more particularly to a camera correction system and method.

目前,有不同種類的電子裝置在配備了攝像頭之後可用於拍攝影像,然而,可擕式的電子裝置雖然可方便用戶拍攝影像,卻很容易因為用戶的手抖或其他原因(例如,未能將該電子裝置擺正位置來拍攝場景等)而無法獲取較佳拍攝效果的影像,例如拍攝所得的影像時歪斜或者因為抖動而變得模糊不清。尤其是在電子裝置重量較輕體積較小時,會因為用戶點擊拍攝按鍵的力量造成該電子裝置的抖動而無法獲得清晰影像。At present, there are different kinds of electronic devices that can be used to shoot images after being equipped with a camera. However, although the portable electronic device can conveniently capture images, it is easy for the user to shake hands or other reasons (for example, failing to The electronic device is positioned to capture a scene or the like, and an image with a better shooting effect cannot be obtained, for example, the captured image is skewed or blurred due to jitter. In particular, when the electronic device is light in weight and small in volume, the electronic device may be shaken due to the user's click on the power of the shooting button, and a clear image cannot be obtained.

鑒於以上內容,有必要提供一種拍照校正系統及方法,可根據用戶所需拍攝影像的位置或角度,實現對待拍攝影像的校正,以及在待拍攝影像符合所需位置或角度時進行自動拍攝。In view of the above, it is necessary to provide a photographing correction system and method, which can correct the image to be photographed according to the position or angle of the image to be photographed by the user, and automatically take an image when the image to be photographed meets the desired position or angle.

一種拍照校正方法,應用於電子裝置中,所述電子裝置包括重力感應器、圖像拍攝裝置與顯示螢幕,該方法包括如下步驟:以所述顯示螢幕為基準面構建三維座標系;設置拍照時所述三維座標系中每個軸需與水平面形成的校正角度;利用所述重力感應器偵測的所述顯示螢幕的轉動角度,確定轉動後的該三維座標系的每個軸與水平面形成的當前夾角;及在所述三維座標系的每個軸的當前夾角與相應的校正角度皆一致時,控制所述圖像拍攝裝置拍攝當前場景。A photographing correction method is applied to an electronic device, the electronic device comprising a gravity sensor, an image capturing device and a display screen, the method comprising the steps of: constructing a three-dimensional coordinate system with the display screen as a reference surface; a correction angle formed by each axis of the three-dimensional coordinate system with a horizontal plane; determining, by using a rotation angle of the display screen detected by the gravity sensor, each axis of the three-dimensional coordinate system after rotation is formed with a horizontal plane The current angle is included; and when the current angle of each axis of the three-dimensional coordinate system coincides with the corresponding correction angle, the image capturing device is controlled to capture the current scene.

一種拍照校正系統,應用於電子裝置中,所述電子裝置包括重力感應器、圖像拍攝裝置與顯示螢幕,該系統包括:設置模組,用於以所述顯示螢幕為基準面構建三維座標系,並設置拍照時所述三維座標系中每個軸需與水平面形成的校正角度;計算模組,用於利用所述重力感應器偵測的所述顯示螢幕的轉動角度,確定轉動後的該三維座標系的每個軸與水平面形成的當前夾角;及拍攝模組,用於在所述三維座標系的每個軸的當前夾角與相應的校正角度皆一致時,控制所述圖像拍攝裝置拍攝當前場景。A photographing correction system is applied to an electronic device, the electronic device includes a gravity sensor, an image capturing device and a display screen, and the system includes: a setting module, configured to construct a three-dimensional coordinate system with the display screen as a reference surface And setting a correction angle formed by each axis in the three-dimensional coordinate system to form a horizontal plane when the photograph is taken; the calculation module is configured to determine the rotation angle of the display screen detected by the gravity sensor to determine the rotated state a current angle formed by each axis of the three-dimensional coordinate system and the horizontal plane; and a shooting module for controlling the image capturing device when the current angle of each axis of the three-dimensional coordinate system is consistent with a corresponding correction angle Shoot the current scene.

相較於習知技術,所述的拍照校正系統及方法,可根據用戶所需拍攝影像的位置或角度,實現對待拍攝影像的校正,還可以在待拍攝影像符合所需位置或角度時進行自動拍攝,從而減少人為操作產生的誤差。Compared with the prior art, the camera correction system and method can correct the image to be captured according to the position or angle of the image that the user needs to capture, and can also automatically perform when the image to be captured meets the desired position or angle. Shooting to reduce errors caused by human operations.

如圖1所示,是本發明拍照校正系統的較佳實施方式的功能模組圖。所述的拍照校正系統10應用於電子裝置1中,所述電子裝置1可以是通訊裝置(例如手機等)、個人數位助理、平板電腦、筆記本電腦等裝置。As shown in FIG. 1, it is a functional module diagram of a preferred embodiment of the photographing correction system of the present invention. The camera correction system 10 is applied to the electronic device 1. The electronic device 1 may be a communication device (such as a mobile phone, etc.), a personal digital assistant, a tablet computer, a notebook computer, or the like.

所述電子裝置1還包括處理器11、儲存裝置12、顯示螢幕13、圖像拍攝裝置14以及重力感應器15。The electronic device 1 further includes a processor 11 , a storage device 12 , a display screen 13 , an image capturing device 14 , and a gravity sensor 15 .

所述的處理器11用於執行所述拍照校正系統10以及所述電子裝置1內安裝的各類軟體,例如作業系統等。所述的儲存裝置12,可以是所述電子裝置1的記憶體,還可以是可外接於該電子裝置1的儲存卡,如SM卡(Smart Media Card,智慧媒體卡)、SD卡(Secure Digital Card,安全數位卡)等。所述的儲存裝置12用於儲存各類資料,例如,地圖、照片、利用所述拍照校正系統10設置、獲取的資料等資訊。The processor 11 is configured to execute the photographing correction system 10 and various types of software installed in the electronic device 1, such as an operating system. The storage device 12 may be a memory of the electronic device 1 or a memory card externally connected to the electronic device 1, such as a SIM card (Smart Media Card) or an SD card (Secure Digital). Card, secure digital card) and so on. The storage device 12 is configured to store various types of materials, such as maps, photos, information obtained by using the photographing correction system 10, and acquired information.

所述的顯示螢幕13用於顯示視覺化資料,例如,照片、地圖、文字等資料。The display screen 13 is used to display visual materials such as photos, maps, texts, and the like.

所述的圖像拍攝裝置14可以是攝像頭,還可以是圖像掃描設備,用於拍攝或掃描立體或平面物件(該物件可以是物體還可以是平面圖片等)的影像。The image capturing device 14 may be a camera, and may also be an image scanning device for capturing or scanning an image of a stereo or planar object (the object may be an object or a flat picture, etc.).

所述的重力感應器15用於對所述電子裝置1的傾斜角、水準或垂直狀態、位移差、加速度等參數進行偵測。在本較佳實施方式中,所述的重力感應器15可以被用於記錄所述電子裝置1在轉動過程中與水平面的夾角。The gravity sensor 15 is configured to detect parameters such as a tilt angle, a level or a vertical state, a displacement difference, and an acceleration of the electronic device 1 . In the preferred embodiment, the gravity sensor 15 can be used to record the angle of the electronic device 1 with the horizontal plane during the rotation.

在本較佳實施方式中,所述的拍照校正系統10用於預設拍攝場景所需的角度,並在拍攝過程中根據該預設角度確定所述電子裝置1的當前角度是否正確,從而實現對拍攝圖像的角度校正並確保拍攝所得圖像清晰。In the preferred embodiment, the photographing correction system 10 is configured to preset an angle required for photographing a scene, and determine whether the current angle of the electronic device 1 is correct according to the preset angle during the photographing process, thereby realizing Correct the angle of the captured image and make sure the captured image is clear.

所述拍照校正系統10包括多個功能模組,分別是:設置模組100、計算模組102、判斷模組104以及拍攝模組106。The camera calibration system 10 includes a plurality of function modules, namely: a setup module 100, a calculation module 102, a determination module 104, and a capture module 106.

所述的設置模組100,用於以所述顯示螢幕13為基準面構建三維座標系,並確定該三維座標系的每個軸與水平面的夾角。在本較佳實施方式中,所述重力感應器15所使用的三維座標系與所述顯示螢幕13處於平行位置,即,所述重力感應器15所使用的三維座標系與所述設置模組100構建的三維座標系是平行的。因此,利用所述重力感應器15偵測的角度變化即可確定所構建的三維座標系所產生的角度變化。The setting module 100 is configured to construct a three-dimensional coordinate system with the display screen 13 as a reference surface, and determine an angle between each axis of the three-dimensional coordinate system and a horizontal plane. In the preferred embodiment, the three-dimensional coordinate system used by the gravity sensor 15 is in parallel with the display screen 13, that is, the three-dimensional coordinate system used by the gravity sensor 15 and the setting module. The three-dimensional coordinate system constructed by 100 is parallel. Therefore, the change in the angle detected by the gravity sensor 15 can be used to determine the angular change produced by the constructed three-dimensional coordinate system.

所述設置模組100可以在所述顯示螢幕13與水平面處於垂直位置時構建所述三維座標系(參考如圖2所示的所述三維座標系的第一示意圖),還可以在所述顯示螢幕13與水平面處於平行位置時構建所述三維座標系,即在將所述電子裝置1平放於水平面時構建該三維座標系(參考如圖3所示的所述三維座標系的第一示意圖)。雖然構建方法不同,但是座標軸的設定可以是相同的,區別在於所構建的三維座標系的三個軸與水平面形成的夾角不一致。例如,在圖2所示的三維座標系中,X軸與Z軸跟水平面形成的夾角為零,而Y軸與水平面形成的夾角為90度。又如,在圖3所示的三維座標系中,X軸與Y軸跟水平面形成的夾角為零,而Z軸與水平面形成的夾角為90度。The setting module 100 may construct the three-dimensional coordinate system when the display screen 13 is in a vertical position with a horizontal plane (refer to the first schematic diagram of the three-dimensional coordinate system as shown in FIG. 2), and may also be in the display. The three-dimensional coordinate system is constructed when the screen 13 is in a parallel position with the horizontal plane, that is, the three-dimensional coordinate system is constructed when the electronic device 1 is laid flat on a horizontal plane (refer to the first schematic diagram of the three-dimensional coordinate system as shown in FIG. 3). ). Although the construction method is different, the setting of the coordinate axes can be the same, except that the three axes of the constructed three-dimensional coordinate system do not coincide with the angle formed by the horizontal plane. For example, in the three-dimensional coordinate system shown in FIG. 2, the angle formed by the X-axis and the Z-axis with the horizontal plane is zero, and the angle formed by the Y-axis and the horizontal plane is 90 degrees. For another example, in the three-dimensional coordinate system shown in FIG. 3, the angle formed by the X-axis and the Y-axis with the horizontal plane is zero, and the angle formed by the Z-axis and the horizontal plane is 90 degrees.

此外,在其他實施方式中,所述三維座標系的構建與三個軸的設定還可根據實際需求進行設置或修改,上述內容僅為舉例說明,並非限制。例如,構建的三維座標系也可不與所述重力感應器15所使用的三維座標系平行而保持一定的角度,只需在後續的計算模組102對角度進行調整、校正即可。In addition, in other embodiments, the construction of the three-dimensional coordinate system and the setting of the three axes may also be set or modified according to actual needs, and the above content is merely illustrative and not limiting. For example, the constructed three-dimensional coordinate system may not be parallel to the three-dimensional coordinate system used by the gravity sensor 15 and maintain a certain angle, and only needs to be adjusted and corrected by the subsequent calculation module 102.

為了便於描述,下文對各種角度進行舉例說明時,以圖3中所示的三維座標系為例。For convenience of description, when various angles are exemplified below, the three-dimensional coordinate system shown in FIG. 3 is taken as an example.

所述的設置模組100,還用於設置拍照時所述三維座標系中每個軸需與水平面形成的校正角度。該校正角度可根據用戶所輸入的資料隨時進行修改,例如,當用戶需要令所述配備圖像拍攝裝置14的電子裝置1以垂直於水平面的角度拍攝某個場景時,可以設置X軸的校正角度為零(以圖3所示三維座標系為例),Y軸的校正角度為90,Z軸的校正角度為零,即[0,90,0]。The setting module 100 is further configured to set a correction angle that each axis of the three-dimensional coordinate system needs to form with a horizontal plane when photographing. The correction angle can be modified at any time according to the data input by the user. For example, when the user needs to cause the electronic device 1 equipped with the image capturing device 14 to take a certain scene at an angle perpendicular to the horizontal plane, the X-axis correction can be set. The angle is zero (take the three-dimensional coordinate system shown in Figure 3 as an example), the correction angle of the Y-axis is 90, and the correction angle of the Z-axis is zero, that is, [0, 90, 0].

所述的設置模組100還用於設置圖像預覽介面130。參考如圖5所示的圖像預覽介面示意圖130上除了待拍攝的場景預覽以外,還用於顯示所述三維座標系的每個軸與水平面所形成的當前角度及/或校正角度,圖5中僅示出校正角度進行舉例說明,實際應用中不限於此。The setting module 100 is further configured to set an image preview interface 130. Referring to the image preview interface diagram 130 shown in FIG. 5, in addition to the scene preview to be photographed, it is also used to display the current angle and/or the correction angle formed by each axis of the three-dimensional coordinate system and the horizontal plane, FIG. 5 Only the correction angle is shown for exemplification, and the actual application is not limited thereto.

此外,所述圖像預覽介面130還提供校正角度的輸入欄位供用戶調整該校正角度。In addition, the image preview interface 130 also provides an input field for correcting the angle for the user to adjust the correction angle.

在其他實施方式中,所述的設置模組100進一步用於設置數值以表示相應的角度,例如,1度用0.1表示,則10度為1。例如,當Y軸的校正角度為90時,用戶可以直接輸入9即可,所述的圖像預覽介面130上顯示當前角度或者校正角度時也可直接顯示各個角度相應的數值。In other embodiments, the setting module 100 is further configured to set a value to indicate a corresponding angle. For example, 1 degree is represented by 0.1, and 10 degrees is 1. For example, when the correction angle of the Y-axis is 90, the user can input 9 directly. When the current angle or the correction angle is displayed on the image preview interface 130, the corresponding value of each angle can be directly displayed.

在所述拍照校正系統10啟動後,用戶即可輸入校正角度,然後手持所述電子裝置1對某個場景進行拍攝。After the photographing correction system 10 is activated, the user can input a correction angle and then hold the electronic device 1 to photograph a certain scene.

所述的計算模組102,用於利用所述重力感應器15偵測所述顯示螢幕13的轉動角度,並根據該偵測的轉動角度計算轉動後的該三維座標系的每個軸與水平面形成的當前夾角。參考如圖4所示的轉動後的三維座標系的示意圖,原始構建的三維座標系以XYZ表示,轉動後的三維座標軸以X1YZ1表示,可見,轉動後的X1軸與原來的X軸形成一個夾角α,轉動後的Z1軸與原來的Z軸形成一個夾角β,Y軸仍然與水平面成零度角,因此,可確定轉動後的當前夾角為[α,0,β]。The computing module 102 is configured to detect the rotation angle of the display screen 13 by using the gravity sensor 15, and calculate each axis and horizontal plane of the rotated three-dimensional coordinate system according to the detected rotation angle. The current angle formed. Referring to the schematic diagram of the rotated three-dimensional coordinate system as shown in FIG. 4, the original constructed three-dimensional coordinate system is represented by XYZ, and the rotated three-dimensional coordinate axis is represented by X1YZ1, and that the rotated X1 axis forms an angle with the original X-axis. α, the rotated Z1 axis forms an angle β with the original Z axis, and the Y axis is still at an angle of zero with the horizontal plane. Therefore, it can be determined that the current included angle after rotation is [α, 0, β].

在其他實施方式中,若所述重力感應器15所使用的三維座標系與所述顯示螢幕13並非處於平行位置而存在一定的固定角度時,所述計算模組102可在確定當前夾角時,結合所述重力感應器15偵測的轉動角度及上述固定角度來計算該當前夾角,例如,可疊加所述轉動角度及固定角度,或者將所述轉動角度減去固定角度等,實際計算方式不限於此。In other embodiments, when the three-dimensional coordinate system used by the gravity sensor 15 and the display screen 13 are not in a parallel position and there is a certain fixed angle, the calculation module 102 can determine the current angle. Combining the rotation angle detected by the gravity sensor 15 with the fixed angle to calculate the current angle, for example, the rotation angle and the fixed angle may be superimposed, or the rotation angle may be subtracted from a fixed angle, etc., and the actual calculation manner is not Limited to this.

所述的判斷模組104,用於判斷所述三維座標系的每個軸的當前夾角與相應的校正角度是否一致。例如,α顯然與X軸相應的校正角度0是不相等的,因此,如圖4所示的轉動,所述判斷模組104可以判斷所述三維座標系的每個軸的當前夾角與相應的校正角度是不一致的。The determining module 104 is configured to determine whether a current angle of each axis of the three-dimensional coordinate system is consistent with a corresponding correction angle. For example, α clearly has a correction angle 0 corresponding to the X axis that is unequal. Therefore, as shown in FIG. 4, the determination module 104 can determine the current angle of each axis of the three-dimensional coordinate system and the corresponding The correction angle is inconsistent.

在所述三維座標系的其中一個軸的當前夾角與相應的校正角度不一致時,所述的判斷模組104還用於提示用戶旋轉所述顯示螢幕的角度。例如,假設該α為30度時,所述的判斷模組104可根據預先設置的方向及角度的正負值進行提醒,例如,提醒用戶將該電子裝置1向右轉動30度角。When the current angle of one of the axes of the three-dimensional coordinate system is inconsistent with the corresponding correction angle, the determining module 104 is further configured to prompt the user to rotate the angle of the display screen. For example, if the α is 30 degrees, the determination module 104 can prompt according to the positive and negative values of the preset direction and angle, for example, remind the user to rotate the electronic device 1 to the right by 30 degrees.

所述設置模組100還用於設置誤差範圍以允許角度的適度誤差,在所述三維座標系的每個軸的當前夾角與相應的校正角度之差位於所述誤差範圍之內時,可判斷該當前夾角與校正夾角一致。The setting module 100 is further configured to set an error range to allow a moderate error of the angle, and when the difference between the current angle of each axis of the three-dimensional coordinate system and the corresponding correction angle is within the error range, the determination may be determined. The current angle coincides with the correction angle.

所述的拍攝模組106,用於在所述三維座標系的每個軸的當前夾角與相應的校正角度皆一致時,控制所述圖像拍攝裝置14拍攝當前場景。The shooting module 106 is configured to control the image capturing device 14 to capture a current scene when the current angle of each axis of the three-dimensional coordinate system is consistent with a corresponding correction angle.

在本較佳實施方式中,由於用戶手動轉動所述電子裝置1進行場景拍攝時,因為人為誤差很難將角度完全轉動到預定位置,並且即使轉動到預定位置之後,再用手點擊拍攝按鍵時仍然會因為該點擊的力量使得角度發生改變,因此,利用所述拍攝模組106可在偵測到上述當前夾角與校正角度一致時即自動進行拍攝,無需再由用戶進行執行該拍攝動作。In the preferred embodiment, when the user manually rotates the electronic device 1 to perform scene shooting, it is difficult to completely rotate the angle to a predetermined position due to human error, and even after rotating to a predetermined position, when the shooting button is clicked by hand The angle may be changed due to the power of the click. Therefore, the shooting module 106 can automatically perform shooting when the current angle is detected to be the same as the correction angle, and the user does not need to perform the shooting.

如圖6所示,是本發明拍照校正方法的較佳實施方式的流程圖。FIG. 6 is a flow chart of a preferred embodiment of the photographing correction method of the present invention.

首先,步驟S2,所述的設置模組100以所述顯示螢幕13為基準面構建三維座標系。First, in step S2, the setting module 100 constructs a three-dimensional coordinate system with the display screen 13 as a reference surface.

步驟S4,所述的設置模組100設置拍照時所述三維座標系中每個軸需與水平面形成的校正角度。In step S4, the setting module 100 sets a correction angle that each axis of the three-dimensional coordinate system needs to form with a horizontal plane when photographing.

步驟S6,所述的計算模組102利用所述重力感應器15偵測所述顯示螢幕13的轉動角度。In step S6, the computing module 102 uses the gravity sensor 15 to detect the rotation angle of the display screen 13.

步驟S8,所述的計算模組102根據該偵測的轉動角度計算轉動後的該三維座標系的每個軸與水平面形成的當前夾角。In step S8, the calculation module 102 calculates a current angle formed by each axis of the rotated three-dimensional coordinate system and the horizontal plane according to the detected rotation angle.

步驟S10,所述的判斷模組104判斷所述三維座標系的每個軸的當前夾角與相應的校正角度是否一致。In step S10, the determining module 104 determines whether the current angle of each axis of the three-dimensional coordinate system is consistent with the corresponding correction angle.

在所述三維座標系的每個軸的當前夾角與相應的校正角度皆一致時,於步驟S12,所述的拍攝模組106制所述圖像拍攝裝置14拍攝當前場景,然後,結束本流程。When the current angle of each axis of the three-dimensional coordinate system is consistent with the corresponding correction angle, in step S12, the imaging module 106 makes the image capturing device 14 capture the current scene, and then ends the process. .

在所述三維座標系的其中一個軸的當前夾角與相應的校正角度不一致時,於步驟S14,所述的判斷模組104還用於提示用戶旋轉所述顯示螢幕的角度,然後,流程返回至步驟S6。When the current angle of one of the axes of the three-dimensional coordinate system is inconsistent with the corresponding correction angle, the determining module 104 is further configured to prompt the user to rotate the angle of the display screen in step S14, and then the flow returns to Step S6.

綜上所述,本發明符合發明專利要件,爰依法提出專利申請。惟,以上所述者僅爲本發明之較佳實施例,本發明之範圍並不以上述實施例爲限,舉凡熟悉本案技藝之人士爰依本發明之精神所作之等效修飾或變化,皆應涵蓋於以下申請專利範圍內。In summary, the present invention complies with the requirements of the invention patent and submits a patent application according to law. However, the above description is only the preferred embodiment of the present invention, and the scope of the present invention is not limited to the above embodiments, and equivalent modifications or variations made by those skilled in the art in accordance with the spirit of the present invention are It should be covered by the following patent application.

1...電子裝置1. . . Electronic device

10...拍照校正系統10. . . Photo correction system

100...設置模組100. . . Setting module

102...計算模組102. . . Computing module

104...判斷模組104. . . Judging module

106...拍攝模組106. . . Shooting module

11...處理器11. . . processor

12...儲存裝置12. . . Storage device

13...顯示螢幕13. . . Display screen

130...圖像預覽介面130. . . Image preview interface

14...圖像拍攝裝置14. . . Image capture device

15...重力感應器15. . . Gravity sensor

圖1是本發明拍照校正系統較佳實施方式的功能模組圖。1 is a functional block diagram of a preferred embodiment of a photographing correction system of the present invention.

圖2是本發明拍照校正系統的三維座標系的第一示意圖。2 is a first schematic diagram of a three-dimensional coordinate system of the photographing correction system of the present invention.

圖3是本發明拍照校正系統的三維座標系的第二示意圖。3 is a second schematic diagram of a three-dimensional coordinate system of the photographing correction system of the present invention.

圖4是本發明拍照校正系統的轉動後的三維座標系的示意圖。4 is a schematic diagram of a three-dimensional coordinate system after rotation of the photographing correction system of the present invention.

圖5是本發明拍照校正系統的圖像預覽介面示意圖。FIG. 5 is a schematic diagram of an image preview interface of the photographing correction system of the present invention.

圖6是本發明拍照校正方法的較佳實施方式的流程圖。6 is a flow chart of a preferred embodiment of the photographing correction method of the present invention.

1...電子裝置1. . . Electronic device

10...拍照校正系統10. . . Photo correction system

100...設置模組100. . . Setting module

102...計算模組102. . . Computing module

104...判斷模組104. . . Judging module

106...拍攝模組106. . . Shooting module

11...處理器11. . . processor

12...儲存裝置12. . . Storage device

13...顯示螢幕13. . . Display screen

14...圖像拍攝裝置14. . . Image capture device

15...重力感應器15. . . Gravity sensor

Claims (10)

一種拍照校正方法,應用於電子裝置中,所述電子裝置包括重力感應器、圖像拍攝裝置與顯示螢幕,該方法包括如下步驟:
以所述顯示螢幕為基準面構建三維座標系;
設置拍照時所述三維座標系中每個軸需與水平面形成的校正角度;
利用所述重力感應器偵測的所述顯示螢幕的轉動角度,確定轉動後的該三維座標系的每個軸與水平面形成的當前夾角;及
在所述三維座標系的每個軸的當前夾角與相應的校正角度皆一致時,控制所述圖像拍攝裝置拍攝當前場景。
A photographing correction method is applied to an electronic device, the electronic device comprising a gravity sensor, an image capturing device and a display screen, the method comprising the following steps:
Constructing a three-dimensional coordinate system with the display screen as a reference surface;
Setting a correction angle that each axis in the three-dimensional coordinate system needs to form with a horizontal plane when photographing;
Determining, by using a rotation angle of the display screen detected by the gravity sensor, a current angle formed by each axis of the rotated three-dimensional coordinate system and a horizontal plane; and a current angle of each axis of the three-dimensional coordinate system When the corresponding correction angles are consistent, the image capturing device is controlled to capture the current scene.
如申請專利範圍第1項所述的拍照校正方法,該方法還包括:
在所述三維座標系的其中一個軸的當前夾角與相應的校正角度不一致時,提示用戶旋轉所述顯示螢幕的角度。
The method for correcting photographs as described in claim 1, wherein the method further comprises:
When the current angle of one of the axes of the three-dimensional coordinate system does not coincide with the corresponding correction angle, the user is prompted to rotate the angle of the display screen.
如申請專利範圍第1項所述的拍照校正方法,該方法還包括:
提供圖像預覽介面,在所述圖像預覽介面上顯示所述三維座標系的每個軸與水平面所形成的當前角度。
The method for correcting photographs as described in claim 1, wherein the method further comprises:
An image preview interface is provided, on which the current angle formed by each axis of the three-dimensional coordinate system and the horizontal plane is displayed.
如申請專利範圍第3項所述的拍照校正方法,該方法還包括:
設置數值表示相應的角度,根據數值與角度的對應關係以數值表示所述三維座標系的每個軸與水平面所形成的當前角度及校正角度。
The method for correcting photographs as described in claim 3, the method further comprising:
The set value indicates the corresponding angle, and the current angle and the correction angle formed by each axis of the three-dimensional coordinate system and the horizontal plane are numerically represented according to the correspondence between the numerical value and the angle.
如申請專利範圍第1至4項中任一項所述的拍照校正方法,該方法還包括:
設置誤差範圍,在所述三維座標系的每個軸的當前夾角與相應的校正角度之差位於所述誤差範圍之內時,控制所述圖像拍攝裝置拍攝當前場景。
The photographing correction method according to any one of claims 1 to 4, further comprising:
And setting an error range, when the difference between the current angle of each axis of the three-dimensional coordinate system and the corresponding correction angle is within the error range, controlling the image capturing device to capture the current scene.
一種拍照校正系統,應用於電子裝置中,所述電子裝置包括重力感應器、圖像拍攝裝置與顯示螢幕,該系統包括:
設置模組,用於以所述顯示螢幕為基準面構建三維座標系,並設置拍照時所述三維座標系中每個軸需與水平面形成的校正角度;
計算模組,用於利用所述重力感應器偵測的所述顯示螢幕的轉動角度,確定轉動後的該三維座標系的每個軸與水平面形成的當前夾角;及
拍攝模組,用於在所述三維座標系的每個軸的當前夾角與相應的校正角度皆一致時,控制所述圖像拍攝裝置拍攝當前場景。
A photographing correction system is applied to an electronic device, the electronic device comprising a gravity sensor, an image capturing device and a display screen, the system comprising:
a setting module, configured to construct a three-dimensional coordinate system with the display screen as a reference surface, and set a correction angle that each axis of the three-dimensional coordinate system needs to form with a horizontal plane when photographing;
a computing module, configured to determine, by using a rotation angle of the display screen detected by the gravity sensor, a current angle formed by each axis of the rotated three-dimensional coordinate system and a horizontal plane; and a shooting module for When the current angle of each axis of the three-dimensional coordinate system is consistent with the corresponding correction angle, the image capturing device is controlled to capture the current scene.
如申請專利範圍第6項所述的拍照校正系統,該系統還包括判斷模組,用於在所述三維座標系的其中一個軸的當前夾角與相應的校正角度不一致時,提示用戶旋轉所述顯示螢幕的角度。The photographing correction system of claim 6, wherein the system further comprises a judging module, configured to prompt the user to rotate the current angle of one of the axes of the three-dimensional coordinate system and the corresponding correction angle Shows the angle of the screen. 如申請專利範圍第6項所述的拍照校正系統,所述的設置模組還用於設置圖像預覽介面,在所述圖像預覽介面上顯示所述三維座標系的每個軸與水平面所形成的當前角度。The photographing correction system of claim 6, wherein the setting module is further configured to set an image preview interface, and display each axis and a horizontal plane of the three-dimensional coordinate system on the image preview interface. The current angle formed. 如申請專利範圍第8項所述的拍照校正系統,所述的設置模組還用於設置數值表示相應的角度,所述的計算模組還用於根據數值與角度的對應關係以數值表示所述三維座標系的每個軸與水平面所形成的當前角度及校正角度。The photographing correction system of claim 8, wherein the setting module is further configured to set a numerical value to indicate a corresponding angle, and the calculating module is further configured to represent the numerical value according to the correspondence between the numerical value and the angle. The current angle and the corrected angle formed by each axis of the three-dimensional coordinate system and the horizontal plane. 如申請專利範圍第6至9項中任一項所述的拍照校正系統,所述設置模組還用於設置誤差範圍,所述的控制模組還用於在所述三維座標系的每個軸的當前夾角與相應的校正角度之差位於所述誤差範圍之內時,控制所述圖像拍攝裝置拍攝當前場景。The photographing correction system according to any one of claims 6 to 9, wherein the setting module is further configured to set an error range, and the control module is further used for each of the three-dimensional coordinate systems. When the difference between the current angle of the axis and the corresponding correction angle is within the error range, the image capturing device is controlled to capture the current scene.
TW101150345A 2012-12-24 2012-12-27 System and method for adjusting image capturing device TW201431370A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210563713.XA CN103888654B (en) 2012-12-24 2012-12-24 It takes pictures and corrects system and method

Publications (1)

Publication Number Publication Date
TW201431370A true TW201431370A (en) 2014-08-01

Family

ID=50957366

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101150345A TW201431370A (en) 2012-12-24 2012-12-27 System and method for adjusting image capturing device

Country Status (2)

Country Link
CN (1) CN103888654B (en)
TW (1) TW201431370A (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125400B (en) * 2014-07-15 2018-03-30 中兴通讯股份有限公司 A kind of method and electronic equipment for prompting user
CN104869317B (en) * 2015-06-02 2018-05-04 广东欧珀移动通信有限公司 Smart machine image pickup method and device
CN105321146A (en) * 2015-09-25 2016-02-10 广东小天才科技有限公司 Method and device for processing topic picture shot by mobile terminal
CN106713729A (en) * 2015-11-12 2017-05-24 深圳富泰宏精密工业有限公司 Shooting aiding method and electronic device
CN105933606B (en) * 2016-05-24 2019-09-20 青岛海信移动通信技术股份有限公司 The method, device and mobile terminal taken pictures
CN107682618A (en) * 2016-08-02 2018-02-09 昆山研达电脑科技有限公司 Image automatic correction system and its method
CN109690568A (en) 2016-09-12 2019-04-26 华为技术有限公司 A kind of processing method and mobile device
CN107025002B (en) * 2017-01-22 2020-06-02 Oppo广东移动通信有限公司 Terminal application control method and device and terminal
WO2018137304A1 (en) 2017-01-26 2018-08-02 华为技术有限公司 Method for displaying 2d application in vr device, and terminal
CN108885614B (en) 2017-02-06 2020-12-15 华为技术有限公司 Text and voice information processing method and terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101374198A (en) * 2007-08-24 2009-02-25 鸿富锦精密工业(深圳)有限公司 Camera device and automatic frontal method for image thereof
CN101998047A (en) * 2009-08-25 2011-03-30 鸿富锦精密工业(深圳)有限公司 Method and system for regulating horizontal position in camera
CN102207674A (en) * 2010-03-30 2011-10-05 鸿富锦精密工业(深圳)有限公司 Panorama image shooting apparatus and method
CN102353351B (en) * 2011-06-28 2014-01-15 惠州Tcl移动通信有限公司 Lateral shooting angle detecting method, inclined shooting angle detecting method and mobile phone
CN102420898A (en) * 2011-09-27 2012-04-18 惠州Tcl移动通信有限公司 Mobile phone-based panoramic photographing realization method and mobile phone

Also Published As

Publication number Publication date
CN103888654A (en) 2014-06-25
CN103888654B (en) 2018-09-07

Similar Documents

Publication Publication Date Title
TW201431370A (en) System and method for adjusting image capturing device
JP5670476B2 (en) Image capture device with tilt or perspective correction capability
US9282242B2 (en) Method and electric device for taking panoramic photograph
KR20150079762A (en) Method, device, and apparatus for controlling screen rotation
TWI581176B (en) Image adjusting system and method
CN103873693B (en) Method and mobile terminal for automatically correcting photo shooting angle according to gravitational acceleration
CN108038886B (en) Binocular camera system calibration method and device and automobile
WO2017054334A1 (en) Projection method, device, terminal, and computer storage medium
JP2013214947A (en) Image capturing apparatus, image capturing system, image processing method, information processing apparatus, and program
CN108280828B (en) Camera assembly position detection method and device
CN104363386B (en) Photo processing method and device
WO2022040951A1 (en) Image correction method and device, image collecting device, and storage medium
WO2018214778A1 (en) Method and device for presenting virtual object
TW201441916A (en) Method and system for whirling view on screen
TW202029727A (en) Image stabilization method and apparatus for panoramic video, and method for evaluating image stabilization algorithm
JP6824143B2 (en) Imaging equipment, imaging systems, image processing methods, information processing equipment, and programs
CN109451216B (en) Display processing method and device for shot photos
TW201310354A (en) Image capturing device and image processing method
TW201536050A (en) Image-capturing method for correcting deviation-viewing angle, its computer program product, and image-capturing device for correcting deviation viewing angle
TWI502271B (en) Controlling method and electronic apparatus
TWI581631B (en) An Assisting Method for Taking Pictures and An Electronic Device
JP6901580B2 (en) Horizontal calibration method of panoramic image or video, system and mobile terminal
CN104704804A (en) Imaging Apparatus And Detecting Apparatus
TWI622958B (en) Image stitching method and image stitching system
CN116887036A (en) Photographing method for automatic horizontal correction of image and related equipment