TWI627579B - Displacement compensation method for mobile device screen - Google Patents

Displacement compensation method for mobile device screen Download PDF

Info

Publication number
TWI627579B
TWI627579B TW101105455A TW101105455A TWI627579B TW I627579 B TWI627579 B TW I627579B TW 101105455 A TW101105455 A TW 101105455A TW 101105455 A TW101105455 A TW 101105455A TW I627579 B TWI627579 B TW I627579B
Authority
TW
Taiwan
Prior art keywords
screen
value
displacement
mobile device
displacement amount
Prior art date
Application number
TW101105455A
Other languages
Chinese (zh)
Other versions
TW201335829A (en
Inventor
yan wei Hong
Jon Chao Hong
Original Assignee
Jon Chao Hong
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 Jon Chao Hong filed Critical Jon Chao Hong
Priority to TW101105455A priority Critical patent/TWI627579B/en
Publication of TW201335829A publication Critical patent/TW201335829A/en
Application granted granted Critical
Publication of TWI627579B publication Critical patent/TWI627579B/en

Links

Landscapes

  • Position Input By Displaying (AREA)

Abstract

一種行動裝置螢幕畫面的位移補償方法,由一行動裝置執行,行動裝置具有一動態感測單元、一螢幕及一控制器,控制器執行一作業並由螢幕顯示對應作業的一畫面,位移補償方法包含:(a)控制器自動態感測單元取得一代表行動裝置運動狀態的原始量值;(b)控制器將原始量值轉換為一位移量;(c)控制器判斷位移量是否落入一預設範圍;若是則執行步驟(d);及(d)將位移量的相反值與畫面的一原狀態值加總,計算出一回饋狀態值,由螢幕根據回饋狀態值顯示畫面。在行動裝置小幅度的晃動下,不論位移或是旋轉,都能夠保持螢幕畫面位在一固定位置。 A method for compensating a screen of a mobile device screen is performed by a mobile device having a dynamic sensing unit, a screen and a controller, the controller executing a job and displaying a screen corresponding to the job by the screen, and the displacement compensation method The method includes: (a) the controller obtains a raw quantity representing the motion state of the mobile device from the dynamic sensing unit; (b) the controller converts the original quantity into a displacement amount; (c) the controller determines whether the displacement amount falls a preset range; if yes, performing step (d); and (d) summing the opposite values of the displacement amount and an original state value of the screen to calculate a feedback state value, and the screen displays the screen according to the feedback state value. With a small amount of shaking of the mobile device, the screen can be kept in a fixed position regardless of displacement or rotation.

Description

行動裝置螢幕畫面的位移補償方法Displacement compensation method for mobile device screen

本發明是有關於一種位移補償方法,特別是指一種行動裝置螢幕畫面的位移補償方法。The invention relates to a displacement compensation method, in particular to a displacement compensation method for a screen of a mobile device.

隨著智慧型手機的技術發展越來越快,人們也越來越頻繁地使用它們。由於到處都可以方便地使用無線網際網路,人們會在戶外瀏覽他們的智慧型手機。然而,問題也隨之而來。當人們使用智慧型手機並乘坐汽車、火車,或任何運輸工具,集中精神在螢幕上可能會使他們覺得反感或噁心。這個問題導因於眼睛和螢幕之間的快速晃動位移,或是說導因於長期注視晃動的物體。因此,解決這個問題的最好辦法是減少晃動位移。As the technology of smart phones grows faster, people use them more and more frequently. Since wireless internet is easy to use everywhere, people can browse their smart phones outdoors. However, the problem has followed. When people use smart phones and ride cars, trains, or any means of transportation, focusing on the screen can be offensive or disgusting. This problem is caused by a rapid sway displacement between the eye and the screen, or an object that is caused by long-term swaying. Therefore, the best way to solve this problem is to reduce the sloshing displacement.

因此,本發明之目的,即在提供一種行動裝置螢幕畫面的位移補償方法,控制螢幕畫面保持在固定的位置。Accordingly, it is an object of the present invention to provide a method of displacement compensation for a screen of a mobile device that controls the screen to remain in a fixed position.

於是,本發明行動裝置螢幕畫面的位移補償方法,由一行動裝置執行,該行動裝置具有一動態感測單元、一螢幕及一與前述元件連接的控制器,該控制器執行一作業並由該螢幕顯示對應該作業的一畫面,該位移補償方法包含:Therefore, the method for compensating the displacement of the screen of the mobile device of the present invention is performed by a mobile device having a dynamic sensing unit, a screen and a controller connected to the component, the controller performing a job and The screen displays a screen corresponding to the job. The displacement compensation method includes:

(a)該控制器自該動態感測單元取得一代表該行動裝置運動狀態的原始量值;(a) the controller obtains from the dynamic sensing unit an original magnitude representative of the motion state of the mobile device;

(b)該控制器將該原始量值轉換為一位移量;(b) the controller converts the original magnitude into a displacement amount;

(c)該控制器判斷該位移量是否落入一預設範圍;若是,則執行步驟(d);及(c) the controller determines whether the displacement amount falls within a predetermined range; if yes, performing step (d);

(d)將該位移量的相反值與該畫面的一原狀態值加總,計算出一回饋狀態值,由該螢幕根據該回饋狀態值顯示該畫面。(d) summing the opposite value of the displacement amount and an original state value of the picture to calculate a feedback state value, and the screen displays the picture according to the feedback status value.

較佳地,本發明還包含一在所有步驟之前執行步驟(e)自一螢幕畫面恆居中的一般模式切換至一固定螢幕畫面模式,以及一當該步驟(c)的判斷為否時執行的步驟(f)切換回一般模式,由該螢幕根據該原狀態值顯示該畫面。Preferably, the present invention further comprises performing a step (e) of switching from a normal mode of a screen picture to a fixed screen picture mode before all steps, and performing when the determination of the step (c) is negative. Step (f) switches back to the normal mode, and the screen displays the picture based on the original status value.

或者無模式的切換,當該步驟(c)的判斷為否,則執行步驟(g)由該螢幕根據該原狀態值顯示該畫面。Or modeless switching, when the determination of the step (c) is no, the step (g) is executed by the screen to display the picture according to the original state value.

又或者,該步驟(c)的判斷若為否,則執行步驟(h),令該位移量等於該預設範圍中最接近該位移量的值,再將該位移量的相反值與該畫面的原狀態值加總,計算出一回饋狀態值,由該螢幕根據該回饋狀態值顯示該畫面。Or, if the judgment of the step (c) is no, the step (h) is performed, so that the displacement amount is equal to the value closest to the displacement amount in the preset range, and the opposite value of the displacement amount is related to the screen. The original state values are summed to calculate a feedback state value, which is displayed by the screen according to the feedback state value.

其中,該位移量包括一線位移所造成的線位移量,該原狀態值包括一原座標值,計算出的該回饋狀態值包括一回饋座標值。The displacement amount includes a line displacement caused by a line displacement, the original state value includes an original coordinate value, and the calculated feedback state value includes a feedback coordinate value.

更進一步,該位移量還包括一角位移所造成的角位移量,該原狀態值還包括一原角度值,計算出的該回饋狀態值還包括一回饋角度值。Further, the displacement amount further includes an angular displacement caused by an angular displacement, the original state value further including an original angle value, and the calculated feedback state value further includes a feedback angle value.

在本發明的一個實施態樣中,該原始量值是一線加速度值,該步驟(b)使用該線加速度值的各分量計算得該線位移量的各分量,並使用該線加速度值的各分量計算出反正切函數值而得該角位移量。In an embodiment of the present invention, the original magnitude is a linear acceleration value, and the step (b) calculates each component of the linear displacement using each component of the linear acceleration value, and uses each of the linear acceleration values. The component calculates the inverse tangent function value to obtain the angular displacement.

前述,該步驟(c)中該線位移量所比較的該預設範圍可以是正負該螢幕大小的一半長度,該角位移量所比較的該預設範圍可以是±45°。In the foregoing, the preset range in which the line displacement amount is compared in the step (c) may be half the length of the screen size, and the preset range to be compared by the angular displacement may be ±45°.

更佳地,該螢幕沿一y軸直向延伸,並沿一與y垂直的x軸橫向延伸,定義一同時垂直該x軸與該y軸且通過兩者交點的z軸,該線加速度值的各分量分別是在x軸、y軸與z軸上的分量,藉由定義一迭代式迭代該線加速度值計算出一重力加速度值,並與原線加速度值比較而得一瞬時加速度值,進而運用運動學方程式與迭代得到該線位移量,而由該重力加速度值在y軸上的分量除以在x軸上的分量可得該角位移量的正切函數(tangent)值,再進行反正切函數的計算可得該角位移量。More preferably, the screen extends straight along a y-axis and extends laterally along an x-axis perpendicular to y, defining a z-axis that is perpendicular to the x-axis and the y-axis and intersects the line. The components of the x-axis, the y-axis and the z-axis are respectively calculated by an iterative iteration to calculate a gravitational acceleration value, and compared with the original line acceleration value to obtain an instantaneous acceleration value. Then, using the kinematic equation and iteration to obtain the line displacement, and the component of the gravitational acceleration value on the y-axis is divided by the component on the x-axis to obtain the tangent value of the angular displacement, and then anyway The angular displacement is obtained by the calculation of the tangent function.

本新型之功效在於:在該行動裝置小幅度的晃動下,不論是小幅的位移或是旋轉,都能夠保持螢幕畫面位在一固定位置,減少使用者眼睛的不適。The effect of the novel is that under the small shaking of the mobile device, whether the displacement or the rotation is small, the screen screen can be kept at a fixed position, thereby reducing the discomfort of the user's eyes.

有關本發明之前述及其他技術內容、特點與功效,在以下配合參考圖式之三個較佳實施例的詳細說明中,將可清楚地呈現。The above and other technical contents, features and advantages of the present invention will be apparent from the following detailed description of the preferred embodiments.

在本發明被詳細描述之前,要注意的是,在以下的說明內容中,類似的元件是以相同的編號來表示。Before the present invention is described in detail, it is noted that in the following description, similar elements are denoted by the same reference numerals.

參閱圖1與圖2,本發明行動裝置螢幕畫面的位移補償方法之第一較佳實施例,由一行動裝置1執行,該行動裝置1具有一動態感測單元11、一螢幕12及一與前述元件連接的控制器13。在本實施例中,動態感測單元11是一加速規,該控制器13執行一作業並由該螢幕12顯示對應該作業的一畫面,該位移補償方法的步驟說明如下。Referring to FIG. 1 and FIG. 2, a first preferred embodiment of the method for compensating the displacement of the screen of the mobile device of the present invention is performed by a mobile device 1 having a dynamic sensing unit 11, a screen 12, and a The controller 13 to which the aforementioned components are connected. In the present embodiment, the dynamic sensing unit 11 is an acceleration gauge, and the controller 13 executes a job and displays a screen corresponding to the job by the screen 12. The steps of the displacement compensation method are explained as follows.

步驟S11-受使用者操作(例如點選一預設功能鍵)而自一螢幕畫面恆居中(如附件1)的一般模式切換至一固定螢幕畫面模式,並執行步驟S21。Step S11 - is switched by the user operation (for example, clicking a preset function key) to switch from a normal mode of a screen (such as Annex 1) to a fixed screen mode, and step S21 is performed.

步驟S21-控制器13由動態感測單元11取得一代表該行動裝置1運動狀態的原始量值。在本實施例中,該原始量值是一線加速度值。Step S21 - The controller 13 obtains, by the dynamic sensing unit 11, an original magnitude representative of the motion state of the mobile device 1. In this embodiment, the original magnitude is a linear acceleration value.

接下來可以同時或分別進行的方式執行步驟S31~S32與步驟S41~S42。Steps S31 to S32 and steps S41 to S42 may be subsequently performed simultaneously or separately.

步驟S31-控制器13將該原始量值轉換為一線位移量,並執行步驟S32。轉換線位移量的具體實施方式容後說明。Step S31 - The controller 13 converts the original magnitude into a line displacement, and performs step S32. The specific implementation of the conversion line displacement amount will be described later.

步驟S32-控制器13判斷該線位移量是否落入一預設範圍,在本實施例中,線位移量的預設範圍為正負半個螢幕12大小的範圍。(如附件2)Step S32 - The controller 13 determines whether the line displacement amount falls within a predetermined range. In the embodiment, the preset range of the line displacement amount is a range of plus or minus half of the screen size. (eg Annex 2)

步驟S41-控制器13將該原始量值轉換為一角位移量,並執行步驟S42。轉換角位移量的具體實施方式容後說明。Step S41 - The controller 13 converts the original magnitude into an angular displacement amount and performs step S42. The specific embodiment of the conversion angular displacement amount will be described later.

步驟S42-控制器13判斷該角位移量是否落入一預設範圍,在本實施例中,角位移量的預設範圍為±45°的範圍。(如附件3)Step S42 - The controller 13 determines whether the angular displacement amount falls within a predetermined range. In the embodiment, the preset range of the angular displacement amount is a range of ±45°. (eg Annex 3)

若步驟S32與步驟S42的判斷均為是,也就是行動裝置發生了小範圍的移動及/或轉動(如附件4),在本實施例定義為晃動,則分別繼續執行步驟S33及步驟S43,否則即定義為屬於使用者主動移動及/或轉動的行為而非晃動,執行步驟S51。If the determinations in step S32 and step S42 are both, that is, the mobile device has a small range of movement and/or rotation (such as the accessory 4), and is defined as shaking in the embodiment, the steps S33 and S43 are respectively performed. Otherwise, it is defined as belonging to the user's active movement and/or rotation behavior instead of shaking, and step S51 is performed.

步驟S33-控制器13將該線位移量的相反值與該畫面的原狀態值加總,計算出回饋狀態值,並執行步驟S34。原狀態值包括一原座標值,計算出的回饋狀態值包括一回饋座標值。Step S33 - The controller 13 sums up the opposite value of the line displacement amount and the original state value of the screen, calculates the feedback state value, and executes step S34. The original state value includes an original coordinate value, and the calculated feedback state value includes a feedback coordinate value.

步驟S34-由該螢幕12根據該回饋狀態值顯示該畫面。Step S34 - The screen 12 displays the picture based on the feedback status value.

步驟S43-控制器13將該角位移量的相反值與該畫面的原狀態值加總,計算出回饋狀態值,並執行步驟S44。原狀態值包括一原角度值,計算出的回饋狀態值包括一回饋角度值。Step S43 - The controller 13 sums up the opposite value of the angular displacement amount and the original state value of the picture, calculates a feedback state value, and executes step S44. The original state value includes an original angle value, and the calculated feedback state value includes a feedback angle value.

步驟S44-由該螢幕12根據該回饋狀態值顯示該畫面。Step S44 - The screen 12 displays the screen based on the feedback status value.

待步驟S34及步驟S44均執行完畢,則重新執行步驟S21。After the execution of both step S34 and step S44 is completed, step S21 is re-executed.

步驟S51-由該螢幕12根據該原狀態值顯示該畫面,也就是當不將位移量視為晃動的位移量時,不針對位移量進行回饋補償(如附件5,6);並執行步驟S52。Step S51 - displaying, by the screen 12, the screen according to the original state value, that is, when the displacement amount is not regarded as the displacement amount of the shaking, the feedback compensation is not performed for the displacement amount (for example, attachments 5, 6); and step S52 is performed. .

步驟S52-切換回一般模式。Step S52 - Switch back to the normal mode.

以下說明步驟S31中控制器13將原始量值轉換為一線位移量的方式。首先,命名卡氏座標中x,y,z三個方向的重力加速度分別為gx,gy,gz,並定義The manner in which the controller 13 converts the original magnitude into a line displacement amount in step S31 will be described below. First, the gravitational accelerations in the three directions x, y, and z in the Cartesian coordinates are gx, gy, gz, and defined.

gx=acceleration.x*0.1+gx*(1.0-0.1)Gx=acceleration.x*0.1+gx*(1.0-0.1)

以取得x方向的重力加速度,在本實施例中,每1/60秒計算一次以使gx更新。其中,acceleration.x為控制器13由動態感測單元11取得的原始量值,即加速度值在x方向的分量,而0.1為一權重,將gx不斷迭代運算後,可得一較穩定的gx值,而不會隨著短時間起伏的acceleration.x劇烈變動。而y方向及z方向也是如此定義及計算。In order to obtain the gravitational acceleration in the x direction, in the present embodiment, it is calculated every 1/60 second to update gx. The acceleration.x is the original magnitude obtained by the dynamic sensing unit 11 of the controller 13, that is, the component of the acceleration value in the x direction, and 0.1 is a weight, and the gx is iteratively operated to obtain a more stable gx. Values, without drastic changes in the acceleration.x with short fluctuations. The y direction and the z direction are also defined and calculated.

接著,命名卡氏座標中x,y,z三個方向的瞬間加速度分別為ax,ay,az,並定義Next, the instantaneous accelerations in the three directions x, y, and z in the Cartesian coordinates are ax, ay, az, and defined.

ax=acceleration.x-gxAx=acceleration.x-gx

其意義在於將每一瞬間的加速度值減去持續穩定存在的重力加速度值,如此便可認定是晃動造成的加速度。而y方向及z方向也是如此定義及計算。The significance of this is that the acceleration value of each moment is subtracted from the value of the gravitational acceleration that is continuously stable, so that the acceleration caused by the shaking can be determined. The y direction and the z direction are also defined and calculated.

於是,藉由運動學方程式v=v+a*Δt可得瞬間速度,也就是代入Δt=1/60(秒)即可定義並計算vx=vx+ax*1/60得到x方向的瞬間速度,其中,ax雖然是所謂的瞬間加速度,但需注意在微小的時間間距上需將ax視為過去1/60秒的平均加速度,意即假設在時間t(n)由動態感測單元11取得原始量值,並計算得到加速度ax(n),需由在時間t(n-1)的瞬間速度vx(n-1)進行計算,即vx(n)=vx(n-1)+ax(n)*1/60。Thus, the instantaneous velocity can be obtained by the kinematic equation v=v+a*Δt, that is, by substituting Δt=1/60 (seconds), vx=vx+ax*1/60 can be defined and calculated to obtain the instantaneous velocity in the x direction. Among them, although ax is a so-called instantaneous acceleration, it should be noted that ax is regarded as an average acceleration of 1/60 second in the past at a small time interval, that is, it is assumed that the time t(n) is obtained by the dynamic sensing unit 11. The original magnitude, and the calculated acceleration ax(n), is calculated from the instantaneous velocity vx(n-1) at time t(n-1), ie vx(n)=vx(n-1)+ax( n) *1/60.

最終再利用d=d+v*Δt+1/2*a*(Δt)^2計算出目前的線位移量,即是定義並計算dx(n)=dx(n-1)+vx(n-1)*1/60+1/2*ax(n)*1/3600,可得線位移量在x方向的分量。而y方向及z方向也是如此定義及計算。Finally, d=d+v*Δt+1/2*a*(Δt)^2 is used to calculate the current line displacement, that is, define and calculate dx(n)=dx(n-1)+vx(n -1) *1/60+1/2*ax(n)*1/3600, the component of the line displacement in the x direction is available. The y direction and the z direction are also defined and calculated.

在步驟S41中,運用與步驟S31中相同的方式取得gx及gy,可計算角度的正切函數值tangent=gy/gx,並可進一步計算反正切函數而得該角位移量。此外,如果動態感測單元11還包括有一陀螺儀,亦可用於提供角位移量。原則上,可以是自該陀螺儀取得繞一貫穿該行動裝置1之螢幕12的軸旋轉的角速度,再進一步計算得到螢幕12所在平面上的旋轉角作為角位移量。本發明不以特定計算角位移量之方式為限。In step S41, gx and gy are acquired in the same manner as in step S31, and the tangent function value tangent=gy/gx of the angle can be calculated, and the arc tangent function can be further calculated to obtain the angular displacement amount. In addition, if the dynamic sensing unit 11 further includes a gyroscope, it can also be used to provide an angular displacement amount. In principle, the angular velocity about the rotation of the axis of the screen 12 through the mobile device 1 can be obtained from the gyroscope, and the rotation angle on the plane of the screen 12 can be further calculated as the angular displacement. The invention is not limited to the manner in which the angular displacement is specifically calculated.

本實施例中,並未限定步驟S11中啟動固定螢幕畫面模式的方式,例如可由使用者點擊一按鈕啟動,或是另行設計判斷方式。在位移量超過預設範圍而執行步驟S52退出固定螢幕畫面模式後,螢幕畫面即停留在螢幕12中央,可讓使用者重新調整姿勢後再行啟動該模式。In this embodiment, the manner of starting the fixed screen mode in step S11 is not limited, for example, the user can click a button to start, or separately design a judgment mode. After the displacement amount exceeds the preset range and the step S52 is exited from the fixed screen mode, the screen remains in the center of the screen 12, allowing the user to re-adjust the posture and then start the mode.

參閱圖3,本發明行動裝置螢幕畫面的位移補償方法之第二較佳實施例與第一較佳實施例大致相同,其差異在於,當步驟S32的判斷為否時執行步驟S61,步驟S42的判斷為否時也執行步驟S61,且步驟S61之後還是維持在固定螢幕畫面模式,也就是本實施例不主動切換回一般模式,須以另外操作機制,例如使用者點選預設功能鍵,才進行模式切換。Referring to FIG. 3, a second preferred embodiment of the method for compensating the displacement of the screen of the mobile device of the present invention is substantially the same as that of the first preferred embodiment. The difference is that when the determination of step S32 is negative, step S61, step S42 is performed. If the determination is no, step S61 is performed, and step S61 is still maintained in the fixed screen mode, that is, the embodiment does not actively switch back to the normal mode, and another operation mechanism, such as a user clicking a preset function key, is required. Perform mode switching.

步驟S61-由該螢幕12根據該原狀態值顯示該畫面,重新執行步驟S21。Step S61 - The screen 12 displays the screen based on the original state value, and step S21 is re-executed.

因此,當線位移量超過預設範圍時,會將螢幕畫面中心點設定回螢幕12中央,當角位移量超過預設範圍時,會將螢幕畫面轉正。Therefore, when the line displacement exceeds the preset range, the center point of the screen will be set back to the center of the screen 12. When the amount of angular displacement exceeds the preset range, the screen will be rotated.

參閱圖4,本發明行動裝置螢幕畫面的位移補償方法之第三較佳實施例與第二較佳實施例大致相同,其差異在於,步驟S32的判斷為否時執行步驟S71,步驟S42的判斷為否時執行步驟S81。Referring to FIG. 4, the third preferred embodiment of the method for compensating the displacement of the screen of the mobile device of the present invention is substantially the same as the second preferred embodiment. The difference is that when the determination of step S32 is negative, the determination of step S71 and step S42 is performed. If no, step S81 is performed.

步驟S71-將該線位移量設定為該預設範圍(半個螢幕大小)中最接近該線位移量的值,例如以行動裝置在x方向移動正一個螢幕寬來說,設定的線位移量就是正半個螢幕寬;接著再將設定後的該線位移量的相反值與該畫面的原狀態值加總,計算出一回饋狀態值,並執行步驟S72。Step S71- setting the line displacement amount to a value closest to the line displacement amount in the preset range (half screen size), for example, the line displacement amount when the mobile device moves in the x direction by a screen width. That is, the screen width is half; then the opposite value of the set line displacement amount is added to the original state value of the screen to calculate a feedback state value, and step S72 is performed.

步驟S72-由該螢幕12根據該回饋狀態值顯示該畫面。重新執行步驟S21。Step S72 - The screen is displayed by the screen 12 based on the feedback status value. Step S21 is re-executed.

步驟S81-將該角位移量設定為該預設範圍(±45°)中最接近該角位移量的值,例如以行動裝置轉動+90°來說,設定的角位移量就是+45°;接著再將設定後的該角位移量的相反值與該畫面的原狀態值加總,計算出一回饋狀態值,並執行步驟S82。Step S81 - setting the angular displacement amount to a value closest to the angular displacement amount in the preset range (±45°), for example, the rotation displacement of the mobile device is +90°, and the set angular displacement amount is +45°; Then, the opposite value of the set angular displacement amount is added to the original state value of the screen to calculate a feedback state value, and step S82 is performed.

步驟S82-由該螢幕12根據該回饋狀態值顯示該畫面。重新執行步驟S21。Step S82 - the screen 12 displays the screen based on the feedback status value. Step S21 is re-executed.

因此,當線位移量超過預設範圍,或是當角位移量超過預設範圍時,會將螢幕畫面保留在預設範圍的邊界上,而不會跳至螢幕12中央,而在任何時候如果位移量減少,就能立即有固定螢幕畫面的效果。也就是說,本實施例不但能避免使用者需常常重新啟動該模式,還可以避免螢幕畫面忽然的跳動,並讓使用者能微調螢幕畫面的中心位置及角度。Therefore, when the line displacement exceeds the preset range, or when the angular displacement exceeds the preset range, the screen will remain on the boundary of the preset range without jumping to the center of the screen 12, at any time if When the amount of displacement is reduced, the effect of fixing the screen image can be immediately achieved. That is to say, this embodiment not only avoids the need for the user to frequently restart the mode, but also avoids the sudden jump of the screen, and allows the user to fine-tune the center position and angle of the screen.

綜上所述,在該行動裝置1小幅度的晃動下,不論是小幅的位移或是旋轉,都能夠保持螢幕12畫面位在一固定位置,減少使用者眼睛的不適,故確實能達成本發明之目的。In summary, under the slight shaking of the mobile device 1, the screen 12 can be kept at a fixed position regardless of a small displacement or rotation, thereby reducing the discomfort of the user's eyes, so that the present invention can be achieved. The purpose.

惟以上所述者,僅為本發明之較佳實施例而已,當不能以此限定本發明實施之範圍,即大凡依本發明申請專利範圍及發明說明內容所作之簡單的等效變化與修飾,皆仍屬本發明專利涵蓋之範圍內。The above is only the preferred embodiment of the present invention, and the scope of the invention is not limited thereto, that is, the simple equivalent changes and modifications made by the scope of the invention and the description of the invention are All remain within the scope of the invention patent.

1...行動裝置1. . . Mobile device

11...動態感測單元11. . . Dynamic sensing unit

12...螢幕12. . . Screen

13...控制器13. . . Controller

S11...步驟S11. . . step

S21...步驟S21. . . step

S31~S34...步驟S31~S34. . . step

S41~S44...步驟S41~S44. . . step

S51~S52...步驟S51~S52. . . step

S61~S62...步驟S61~S62. . . step

S71~S72...步驟S71~S72. . . step

S81~S82...步驟S81~S82. . . step

圖1是一系統方塊圖,說明本發明行動裝置螢幕畫面的位移補償方法的第一較佳實施例;1 is a system block diagram showing a first preferred embodiment of a method for compensating for a screen of a mobile device of the present invention;

圖2是一流程圖,說明該較佳實施例;Figure 2 is a flow chart illustrating the preferred embodiment;

圖3是一流程圖,說明本發明行動裝置螢幕畫面的位移補償方法的第二較佳實施例;及3 is a flow chart showing a second preferred embodiment of the method for compensating the displacement of the screen of the mobile device of the present invention; and

圖4是一流程圖,說明本發明行動裝置螢幕畫面的位移補償方法的第三較佳實施例。Fig. 4 is a flow chart showing a third preferred embodiment of the method for compensating the displacement of the screen of the mobile device of the present invention.

Claims (10)

一種行動裝置螢幕畫面的位移補償方法,由一行動裝置執行,該行動裝置具有一動態感測單元、一螢幕及一與前述元件連接的控制器,該控制器執行一作業並由該螢幕顯示對應該作業的一畫面,該位移補償方法包含:(a)該控制器自該動態感測單元取得一代表該行動裝置運動狀態的原始量值;(b)該控制器將該原始量值轉換為一位移量;(c)該控制器判斷該位移量是否落入一預設範圍;若是,則執行步驟(d),若否,則執行步驟(e)及(f)的其中之一;(d)將該位移量的相反值與該畫面的一原狀態值加總,計算出一回饋狀態值,由該螢幕根據該回饋狀態值顯示該畫面;(e)令該位移量等於該預設範圍中最接近該位移量的值,再將該位移量的相反值與該畫面的原狀態值加總,計算出該回饋狀態值,由該螢幕根據該回饋狀態值顯示該畫面;及(f)由該螢幕根據該原狀態值顯示該畫面。 A method for compensating a screen of a mobile device screen is performed by a mobile device having a dynamic sensing unit, a screen and a controller coupled to the aforementioned component, the controller performing a job and displaying the pair by the screen A screen that should be operated, the displacement compensation method includes: (a) the controller obtains a raw quantity representing the motion state of the mobile device from the dynamic sensing unit; (b) the controller converts the original magnitude into a displacement amount; (c) the controller determines whether the displacement amount falls within a predetermined range; if yes, performing step (d), and if not, performing one of steps (e) and (f); d) summing the opposite value of the displacement amount and an original state value of the picture to calculate a feedback state value, wherein the screen displays the picture according to the feedback status value; (e) making the displacement amount equal to the preset The value closest to the displacement amount in the range, and the opposite value of the displacement amount is summed with the original state value of the screen, and the feedback state value is calculated, and the screen displays the screen according to the feedback state value; and (f ) by the screen according to the original state value The screen shown. 根據申請專利範圍第1項所述行動裝置螢幕畫面的位移補償方法,還包含一在所有步驟之前執行的步驟(g)在一螢幕畫面恆居中的一般模式接收一使用者操作後,切換至一固定螢幕畫面模式,該固定螢幕畫面模式包括步驟(a)至(e),其中,當該步驟(c)的判斷為否時執行的步驟(f)是由該螢幕根據該原狀態值顯示該畫面,切換回一般模式而使螢幕畫 面恆居中。 According to the displacement compensation method of the screen of the mobile device according to the first aspect of the patent application, the method further includes a step (g) performed before all the steps, after receiving a user operation in a normal mode in the permanent state of the screen, switching to a a fixed screen mode, the fixed screen mode comprising steps (a) to (e), wherein the step (f) performed when the determination of the step (c) is negative is displayed by the screen according to the original state value Screen, switch back to normal mode and make the screen draw The face is always in the middle. 根據申請專利範圍第1項所述行動裝置螢幕畫面的位移補償方法,其中,該步驟(c)的判斷若為否,則執行步驟(e),並回到步驟(a)。 According to the displacement compensation method of the screen of the mobile device according to the first aspect of the invention, wherein the determination of the step (c) is NO, the step (e) is performed, and the process returns to the step (a). 根據申請專利範圍第1項所述行動裝置螢幕畫面的位移補償方法,其中,該步驟(c)的判斷若為否,則執行步驟(f),並回到步驟(a)。 According to the displacement compensation method of the screen of the mobile device according to the first aspect of the invention, wherein the determination of the step (c) is NO, the step (f) is performed, and the process returns to the step (a). 根據申請專利範圍第1至4項中任一項所述行動裝置螢幕畫面的位移補償方法,其中,該位移量包括一線位移所造成的線位移量,該原狀態值包括一原座標值,計算出的該回饋狀態值包括一回饋座標值。 The displacement compensation method for a screen of a mobile device according to any one of claims 1 to 4, wherein the displacement amount includes a line displacement caused by a line displacement, the original state value including an original coordinate value, and calculation The feedback status value includes a feedback coordinate value. 根據申請專利範圍第5項所述行動裝置螢幕畫面的位移補償方法,其中,該原始量值是一線加速度值,該步驟(b)使用該線加速度值的各分量計算得該線位移量的各分量。 The displacement compensation method for a screen of a mobile device according to claim 5, wherein the original magnitude is a linear acceleration value, and the step (b) calculates each linear displacement amount using each component of the linear acceleration value. Component. 根據申請專利範圍第6項所述行動裝置螢幕畫面的位移補償方法,其中,該螢幕沿一y軸直向延伸,並沿一與y垂直的x軸橫向延伸,定義一同時垂直該x軸與該y軸且通過兩者交點的z軸,該線加速度值的各分量分別是在x軸、y軸與z軸上的分量,藉由定義一迭代式迭代該線加速度值計算出一重力加速度值,並與原線加速度值比較而得一瞬時加速度值,進而運用運動學方程式與迭代得到該線位移量。 The method for compensating a screen of a mobile device screen according to claim 6, wherein the screen extends straight along a y-axis and extends laterally along an x-axis perpendicular to y, defining a simultaneous vertical x-axis and The y-axis and the z-axis passing through the intersection of the two, the components of the linear acceleration value are components on the x-axis, the y-axis, and the z-axis, respectively, and a gravity acceleration is calculated by defining an iterative iteration of the linear acceleration value The value is compared with the original line acceleration value to obtain an instantaneous acceleration value, and the line displacement is obtained by using the kinematic equation and iteration. 根據申請專利範圍第5項所述行動裝置螢幕畫面的位移補償方法,其中,該步驟(c)中該線位移量所比較的該預設範 圍是正負該螢幕大小的一半長度。 a displacement compensation method for a screen of a mobile device according to claim 5, wherein the preset range of the line displacement amount in the step (c) is compared The circumference is half the length of the screen. 根據申請專利範圍第1至4項中任一項所述行動裝置螢幕畫面的位移補償方法,其中,該位移量包括一角位移所造成的角位移量,該原狀態值包括一原角度值,計算出的該回饋狀態值包括一回饋角度值。 The displacement compensation method for a screen of a mobile device according to any one of claims 1 to 4, wherein the displacement amount includes an angular displacement caused by an angular displacement, the original state value including an original angle value, and calculation The feedback status value is a feedback angle value. 根據申請專利範圍第9項所述行動裝置螢幕畫面的位移補償方法,其中,該步驟(c)中該角位移量所比較的該預設範圍是±45°。 The displacement compensation method for a screen of a mobile device according to claim 9 of the invention, wherein the predetermined range in which the angular displacement is compared in the step (c) is ±45°.
TW101105455A 2012-02-20 2012-02-20 Displacement compensation method for mobile device screen TWI627579B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101105455A TWI627579B (en) 2012-02-20 2012-02-20 Displacement compensation method for mobile device screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101105455A TWI627579B (en) 2012-02-20 2012-02-20 Displacement compensation method for mobile device screen

Publications (2)

Publication Number Publication Date
TW201335829A TW201335829A (en) 2013-09-01
TWI627579B true TWI627579B (en) 2018-06-21

Family

ID=49627422

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101105455A TWI627579B (en) 2012-02-20 2012-02-20 Displacement compensation method for mobile device screen

Country Status (1)

Country Link
TW (1) TWI627579B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6317114B1 (en) * 1999-01-29 2001-11-13 International Business Machines Corporation Method and apparatus for image stabilization in display device
TW200940116A (en) * 2008-03-28 2009-10-01 Ind Tech Res Inst A motion sickness prevention device
TW201130317A (en) * 2009-12-30 2011-09-01 Hon Hai Prec Ind Co Ltd Portable device having vibration reduction function and vibration reduction methode thereof
CN102265242A (en) * 2008-10-29 2011-11-30 因文森斯公司 Controlling and accessing content using motion processing on mobile devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6317114B1 (en) * 1999-01-29 2001-11-13 International Business Machines Corporation Method and apparatus for image stabilization in display device
TW200940116A (en) * 2008-03-28 2009-10-01 Ind Tech Res Inst A motion sickness prevention device
CN102265242A (en) * 2008-10-29 2011-11-30 因文森斯公司 Controlling and accessing content using motion processing on mobile devices
TW201130317A (en) * 2009-12-30 2011-09-01 Hon Hai Prec Ind Co Ltd Portable device having vibration reduction function and vibration reduction methode thereof

Also Published As

Publication number Publication date
TW201335829A (en) 2013-09-01

Similar Documents

Publication Publication Date Title
JP5869177B1 (en) Virtual reality space video display method and program
US20210223547A1 (en) Method and apparatus for adjusting motion-based data space manipulation
TWI395198B (en) Compensating for anticipated movement of a device
JP5535585B2 (en) Program, information storage medium, information input device, and control method thereof
KR102311051B1 (en) Wearable watch and display method thereof
US10139902B2 (en) Method and apparatus for changing a field of view without synchronization with movement of a head-mounted display
CN101739199A (en) Mobile terminal and method for displaying images
CN104320545B (en) A kind of mobile phone screen anti-fluttering method
WO2016170717A1 (en) Wearable display, information processing system, and control method
JP2008305044A (en) Input device, control device, control system, control method, and program therefor
US20160179218A1 (en) Systems and methods for improving the quality of motion sensor generated user input to mobile devices
CN103365430A (en) Displacement compensation method of mobile device screen frame
JP6976907B2 (en) Programs, information processing devices, information processing systems and information processing methods
CN103116411B (en) The method and system of positioning pointer position
TWI627579B (en) Displacement compensation method for mobile device screen
JP2017059196A (en) Virtual reality space video display method and program
JP7174525B2 (en) Display device, display control program, and display control method that encourage posture opposite to inertial force
JP7055111B2 (en) Mobile devices, programs and methods that can estimate the user's neck bending state
CN116702313A (en) Macpherson suspension system failure chain design and simulation method, device and terminal
JP6621167B1 (en) Motion estimation device, electronic device, control program, and motion estimation method
KR100680220B1 (en) The mobile communication terminal compensating screen shacking and the operating methode of the same
JP2015039589A (en) Driving simulation device using mobile terminal, and driving simulation program
WO2013042530A1 (en) Display device, display control method, and program
JP5710809B2 (en) Dimension measurement terminal
CN103111072A (en) Virtual potentiometer and operational method thereof