WO2015078189A1 - Interface adjustment method and mobile device - Google Patents
Interface adjustment method and mobile device Download PDFInfo
- Publication number
- WO2015078189A1 WO2015078189A1 PCT/CN2014/082588 CN2014082588W WO2015078189A1 WO 2015078189 A1 WO2015078189 A1 WO 2015078189A1 CN 2014082588 W CN2014082588 W CN 2014082588W WO 2015078189 A1 WO2015078189 A1 WO 2015078189A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image feature
- deviation
- vibration
- time
- mobile device
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 230000005484 gravity Effects 0.000 claims description 57
- 230000001133 acceleration Effects 0.000 claims description 16
- 230000001960 triggered effect Effects 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 6
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 claims 1
- 230000008569 process Effects 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 9
- 238000009432 framing Methods 0.000 description 6
- 230000008859 change Effects 0.000 description 5
- 238000003384 imaging method Methods 0.000 description 4
- 238000009877 rendering Methods 0.000 description 4
- 241000519995 Stachys sylvatica Species 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 238000006073 displacement reaction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/011—Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
- G06F3/013—Eye tracking input arrangements
Definitions
- the present invention relates to the field of mobile devices, and in particular, to an interface adjustment method and a mobile device. Background technique
- the gravity sensing currently used in mobile devices is actually an accelerometer or gyroscope application that can be used to measure the horizontal force of the device, the movement of the device relative to the external reference, and the placement of the device relative to the ground.
- the gyroscope also provides a calculation of the horizontal acceleration above this function;
- Image feature recognition is an image recognition technology that can identify images that conform to custom features. Common features of lens imaging and visual imaging: The size of the video is inversely proportional to the distance of the object. Summary of the invention
- the embodiment of the invention provides an interface adjustment method and a mobile device, which solves the problem that the vibration in the environment in the process of using the mobile device affects the user in the process of reading information, and the user experience is not good.
- an embodiment of the present invention provides an interface adjustment method, which is applied to a mobile device, and includes:
- the image feature and the reference image feature during the vibration are obtained Deviation of reference image features
- the mobile device interface is adjusted.
- the step of acquiring the reference image feature comprises:
- the current image is subjected to gradation and binarization processing to obtain a reference image feature.
- the step of acquiring image features during vibration comprises: triggering an image feature when acquiring a vibration by a gravity sensing signal in the case of generating a gravity sensing signal; acquiring in real time without a gravity sensing signal generated
- the current image features serve as image features at the time of vibration.
- the step of obtaining a deviation between the image feature and the reference image feature when vibrating according to the image feature and the reference image feature during the vibration comprises:
- the image feature at the time of the vibration is compared with the reference image feature, and the vertical deviation of the image feature at the time of the vibration and the reference image feature is obtained based on the comparison result.
- the step of deriving the horizontal deviation of the image feature and the reference image feature during the vibration according to the comparison result comprises:
- Horizontal lateral deviation image feature left position X-coordinate at the time of vibration - X coordinate of the left position of the reference image feature
- Horizontal longitudinal deviation image feature on vibration left position Y coordinate - reference image feature left position Y coordinate.
- the step of deriving the vertical deviation of the image feature and the reference image feature during the vibration according to the comparison result comprises:
- the interface adjustment method wherein, according to the deviation, the step of adjusting the interface of the mobile device includes:
- the mobile device interface is adjusted according to the horizontal deviation or the mobile device interface is adjusted according to the vertical deviation, or the mobile device interface is adjusted according to the horizontal deviation and the vertical deviation.
- the step of adjusting the interface of the mobile device according to the horizontal deviation comprises: subtracting the horizontal coordinate deviation from the X coordinate of the original origin, subtracting the horizontal longitudinal deviation from the Y coordinate, and performing interface drawing as the new origin coordinate.
- the step of adjusting the mobile device interface according to the vertical deviation comprises: dividing the original drawing precision by the vertical deviation as a new drawing precision for interface drawing.
- the embodiment of the invention further provides a mobile device, including:
- An image collecting device configured to: acquire a reference image and an image at the time of vibration when the anti-shake mode of the mobile device is activated;
- An image processing unit configured to: obtain a reference image feature and an image feature at the time of vibration according to the reference image and the image at the time of vibration;
- a deviation acquisition module configured to: obtain a deviation between an image feature and a reference image feature when the vibration is obtained according to the image feature and the reference image feature at the time of the vibration;
- the adjustment module is configured to: adjust the mobile device interface according to the deviation.
- the image processing unit is configured to perform gradation and binarization processing on the reference image and the image at the time of vibration, respectively, to obtain image features when the reference image feature and the vibration are obtained.
- the mobile device further includes:
- a gravity sensing device is provided to generate a gravity sensing signal and to obtain lateral acceleration and longitudinal acceleration in a horizontal direction.
- the image collecting device is configured to: when the gravity sensing device is turned on, trigger an image when the vibration is acquired by the gravity sensing signal; and if the gravity sensing device is not turned on, obtain the current image in real time as The image when vibrating.
- the deviation obtaining module comprises:
- a horizontal deviation acquiring unit configured to: compare the image feature at the time of the vibration with a reference image feature, and obtain an image feature of the vibration and a water of the reference image feature according to the comparison result Flat deviation;
- the vertical deviation acquiring unit is configured to: compare the image feature at the time of the vibration with a reference image feature, and obtain a vertical deviation of the image feature and the reference image feature at the time of the vibration according to the comparison result.
- the embodiment of the invention further provides a computer program, comprising program instructions, when the program instruction is executed by the network card device, so that the network card device can perform the above method.
- Embodiments of the present invention also provide a carrier carrying the above computer program.
- the deviation between the acquired image information feature and the reference image feature is obtained in real time, and the display information of the mobile device interface is adjusted according to the deviation, thereby reducing the influence of the vibration of the mobile device on the display interface, and improving Users use the comfort of mobile devices to enhance the user experience.
- FIG. 2 is a schematic diagram of performing binarization processing on a reference image according to an embodiment of the present invention
- FIG. 3 is a schematic diagram showing a feature distance of a reference image according to an embodiment of the present invention
- FIG. 4 is a schematic diagram of image characteristics when a vibration of a horizontal deviation is generated according to an embodiment of the present invention
- FIG. 5 is a schematic diagram of image characteristics when a vibration of a vertical deviation is generated according to an embodiment of the present invention
- FIG. 6 is a diagram showing characteristics of determining a reference image according to an embodiment of the present invention.
- FIG. 7 is a schematic diagram showing the adjustment of the display of the mobile phone interface according to the horizontal deviation according to the embodiment of the present invention
- FIG. 8 is a schematic diagram showing the adjustment of the display of the mobile phone interface according to the vertical deviation according to the embodiment of the present invention.
- Embodiments of the present invention are directed to reading information of a user in response to a vibration in an environment during use of the mobile device.
- the impact of the process, resulting in poor user experience, provides an interface adjustment method and mobile devices.
- the interface adjustment method of the embodiment of the present invention is applied to a mobile device, and includes:
- Step 10 when the anti-shake mode of the mobile device is activated, acquiring the reference image feature and the image feature when vibrating;
- Step 20 Obtain a deviation between the image feature and the reference image feature when the vibration is performed according to the image feature and the reference image feature during the vibration;
- Step 30 Adjust the mobile device interface according to the deviation.
- a static image feature is acquired, and the still image feature is stored as a reference image feature, and then the image feature of the continuous image is acquired as an image feature during the vibration, and the vibration time is obtained.
- the image feature is compared with the stored reference image feature to obtain the deviation between the two, and the display position and the outer shape of the interface element of the mobile device are adjusted by the deviation, and the display interface is reduced due to the device vibration by using the method. The resulting impact increases the comfort of the user using the mobile device.
- the step of acquiring the reference image feature in the step 10 includes: Step 11: acquiring a current image
- Step 12 Perform gray level and binarization processing on the current image to obtain a reference image feature.
- the acquired image is first subjected to gradation processing, and then the gradation-processed image is binarized (ie, traversing the pixels in the gradation-processed image, when the pixel gradation and the white gradation are deviated by 20
- the gray level is set to 255, otherwise set to 0, black and white image is generated), and then the distance between the shortest pixels between the two white spots and the position of the feature in the generated black and white image is traversed as a reference feature map. save.
- the step of acquiring an image feature at the time of vibration comprises: triggering an image feature when the vibration is acquired by a gravity sensing signal in the case where a gravity sensing signal is generated; and generating the image without the gravity sensing signal
- the current image feature is acquired in real time as an image feature at the time of vibration.
- the gravity sensing device when there is a gravity sensing device in the mobile device, when the mobile device is affected by external vibration, the gravity sensing device detects the influence and generates a gravity sensing signal, so when the anti-shake mode in the mobile device is turned on, And when the gravity sensing device is also turned on, as long as the gravity sensing signal is generated, the image feature when the vibration is acquired is triggered; when the gravity sensing device of the mobile device cannot be normally opened or the gravity sensing device is not installed in the mobile device, in the mobile device
- the anti-shake mode is turned on, the timing of triggering the acquisition of the current image feature as the image feature at the time of vibration is any time after the anti-shake mode is turned on, that is, the current image feature is acquired in real time as the image feature at the time of vibration.
- the step of obtaining a deviation between the image feature and the reference image feature when the vibration is obtained according to the image feature and the reference image feature during the vibration comprises:
- the image feature at the time of the vibration is compared with the reference image feature, and the vertical deviation of the image feature at the time of the vibration and the reference image feature is obtained based on the comparison result.
- the mobile device interface has a vertical deviation; if the image feature during vibration does not occur compared to the reference image feature Change, only the position has changed (either left, or right, or up, or down). At this point, it can be judged that the mobile device interface has a horizontal deviation, and the deviation caused by the left shift or the right shift is called The horizontal lateral deviation, the deviation caused by the upward movement or the downward movement is called the horizontal longitudinal deviation.
- the step of deriving the horizontal deviation of the image feature and the reference image feature during the vibration according to the comparison result comprises:
- the step of deriving the vertical deviation of the image feature at the time of vibration from the reference image feature based on the comparison result is:
- the current feature When the mobile device generates a vertical offset, the current feature may become larger or smaller than the reference feature.
- the step of adjusting the mobile device interface according to the deviation comprises:
- the mobile device interface is adjusted according to the horizontal deviation or the mobile device interface is adjusted according to the vertical deviation, or the mobile device interface is adjusted according to the horizontal deviation and the vertical deviation.
- the mobile device is subject to external vibration, which will cause horizontal or vertical movement or horizontal and vertical movement at the same time. Therefore, the mobile device interface will produce horizontal or vertical deviation or horizontal deviation and Vertical deviation.
- the mobile device interface is adjusted according to the horizontal deviation to: obtain the original origin X coordinate minus the horizontal lateral deviation, and the Y coordinate minus the horizontal longitudinal deviation as the new origin coordinate for interface rendering.
- the mobile device interface is adjusted according to the vertical deviation to: obtain original drawing precision, and divide the vertical deviation as a new drawing precision for interface drawing.
- the method according to the embodiment of the present invention is: when the anti-shake mode of the mobile device is turned on, graying and binarizing the image according to the acquired reference image to obtain between the two white spots.
- the distance is used as a reference image feature (reference map), and then the focal length is set for the device that acquires the image (that is, the focal length is fixed, and the image characteristics when the vibration is acquired based on the focal length); in the case of the jitter trigger, the calculation is performed.
- Offset of the device interface Calculate the horizontal deviation caused by the horizontal jitter by the acceleration induced by the gravity sensing device (eg, gyroscope); Calculate the vertical deviation of the vertical jitter by the difference between the current image imaging and the reference image imaging; The horizontal deviation and the vertical deviation are used to transform the interface coordinates, and the device interface is redrawn according to the changed interface coordinates, and the display position of the device interface image is moved to the opposite direction of the horizontal jitter of the device with the same deviation to offset the horizontal offset of the interface.
- the display image of the interface image is The same offset is zoomed in or out to offset the effect of the image on the device interface being zoomed out or magnified when the device is moved away from or near the user.
- the deviation is obtained by comparing the acquired image information in real time, and the interface display information is adjusted according to the deviation, thereby reducing the influence of the vibration of the mobile device on the display interface, and improving the use of the user.
- the comfort of mobile devices is obtained by comparing the acquired image information in real time, and the interface display information is adjusted according to the deviation, thereby reducing the influence of the vibration of the mobile device on the display interface, and improving the use of the user. The comfort of mobile devices.
- the embodiment of the invention further provides a mobile device, including:
- An image collecting device configured to acquire a reference image and an image at the time of vibration when the anti-shake mode of the mobile device is activated
- An image processing unit configured to obtain a reference image feature and an image feature at the time of vibration according to the reference image and the image at the time of vibration;
- the deviation obtaining module is configured to obtain a deviation between the image feature and the reference image feature when the vibration is performed according to the image feature and the reference image feature during the vibration;
- the adjustment module is configured to adjust the mobile device interface according to the deviation.
- the image collection device is a front camera or a rear camera.
- the image processing unit is configured to perform gradation and binarization processing on the reference image and the image at the time of vibration, respectively, to obtain an image feature when the reference image feature and the vibration are obtained.
- the mobile device further includes:
- a gravity sensing device is arranged to generate a gravity sensing signal and to obtain a lateral acceleration in the horizontal direction and a velocity in the horizontal direction.
- the gravity sensing device may be an accelerometer or a gyroscope, and any device capable of measuring the acceleration of the mobile device is within the scope of the present invention.
- the image capturing device triggers the image when the vibration is acquired by the gravity sensing signal; and when the gravity sensing device is not turned on, the current image is acquired in real time as the vibration. image.
- the gravity sensing device After the anti-shake mode is turned on, if the gravity sensing device is installed in the device, the gravity sensing device will automatically turn on. At this time, the gravity sensing device detects the force of the device and generates a gravity sensing signal, and triggers the image collection. The device performs framing on the current image. If the gravity sensing device is not successfully turned on or the gravity sensing device is not installed in the mobile device, and no gravity sensing signal is generated at this time, the image concentrating device framing the current image in real time.
- the deviation obtaining module includes:
- the horizontal deviation acquiring unit is configured to compare the image feature at the time of the vibration with the reference image feature, and obtain a horizontal deviation of the image feature and the reference image feature when the vibration is performed according to the comparison result;
- the vertical deviation acquiring unit is configured to compare the image feature at the time of the vibration with the reference image feature, and obtain a vertical deviation of the image feature and the reference image feature at the time of the vibration based on the comparison result.
- horizontal lateral deviation vibration Image feature left position X coordinate - reference image feature left position X coordinate
- horizontal longitudinal deviation image feature left position Y coordinate at vibration - reference image feature left position Y coordinate to obtain horizontal deviation
- the mobile device adjusts the device interface according to the type of the deviation, including: the adjusting module adjusts the mobile device interface according to the horizontal deviation obtained by the horizontal deviation acquiring unit or according to the The vertical deviation obtained by the vertical deviation acquiring unit adjusts the mobile device interface, or adjusts the mobile device interface according to the horizontal deviation obtained by the horizontal deviation acquiring unit and the vertical deviation obtained according to the vertical deviation acquiring unit.
- the adjusting module performs horizontal offset adjustment by acquiring the original origin X coordinate minus the horizontal lateral deviation, and subtracting the horizontal longitudinal deviation from the horizontal origin deviation as the new origin coordinate; Accuracy, divided by vertical deviation as the new drawing accuracy for interface rendering for vertical deviation adjustment.
- the adjustment module may be a drawing controller of the mobile device, and after the deviation acquisition module calculates the deviation of the mobile device interface, the deviation is transmitted to the central control module of the mobile device, where the central control module Passing the deviation to a rendering controller obtained from a drawing interface of the mobile device, the rendering controller subtracting the horizontal lateral deviation from the original origin X coordinate according to the horizontal deviation, and subtracting the horizontal longitudinal deviation from the Y coordinate as
- the new origin coordinates are drawn by the interface to adjust the horizontal deviation, and all the images drawn under the new origin coordinates will be offset to offset the offset of the mobile device itself, thereby achieving the horizontal anti-shake effect;
- the original drawing accuracy, divided by the vertical deviation as the new drawing precision for the interface to draw the vertical deviation adjustment, the shape of the image drawn under the coordinates of the new drawing precision will change to offset the mobile device away from or close to the user,
- the image on the mobile device interface is reduced or enlarged The vertical deviation.
- the human eye and the front camera are taken as an example for detailed description as follows: As shown in FIG. 2 and FIG. 3, the shortest distance between the binocular white spots of the binarized human eye image is set as the reference image. Characteristics; as shown in Fig. 4, the position of the image feature when the vibration after the horizontal offset occurs, Figure 4 It can be seen that the device interface is shifted to the right; as shown in FIG. 5, which is a schematic diagram of image features when vibration occurs after vertical offset, as can be seen from FIG. 5, the device interface moves in a direction away from the human eye; As shown in FIG.
- the original device interface coordinates 10 coincide with the device interface, and the reference image feature 30 acquired based on the interface element 40, when the horizontal offset and the vertical offset do not occur, the framing feature 20 and the reference image when vibrating Compared with feature 30, the size and position have not changed.
- Fig. 6 and Fig. 7 after horizontal jitter of the device, a horizontal deviation of 50 occurs.
- the original interface element 40 is seen by the human eye.
- the position is adjusted to the position of the interface element 60 after horizontal shaking; as shown in FIG. 8, the framing feature 20 at the time of vibration is significantly smaller than that of the reference image feature 30, and it is known that the device is shaken in a direction away from the human eye.
- the interface adjustment is performed, it is understood that the interface element 70 after the vibration corresponding to the framing feature 20 at the time of vibration is smaller than the interface element 40 corresponding to the reference image feature 30.
- the embodiment of the invention further provides a computer program, comprising program instructions, when the program instruction is executed by the network card device, so that the network card device can perform the above method.
- Embodiments of the present invention also provide a carrier carrying the above computer program.
- the mobile device with the interface adjustment function increases the influence of the vibration of the mobile device on the interface display when the jitter occurs, thereby improving the comfort of the user using the mobile device, thereby improving the user experience.
- modules or steps of the embodiments of the present invention can be implemented by a general computing device, which can be concentrated on a single computing device or distributed in multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from The steps shown or described are performed sequentially, or they are separately fabricated into individual integrated circuit modules, or multiple modules or steps thereof It is made into a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
- the acquired image information feature and the reference image feature are compared in real time to obtain a deviation, and the display information of the mobile device interface is adjusted according to the deviation, thereby reducing the influence of the mobile device vibration on the display interface, and improving the impact.
- Users use the comfort of mobile devices to enhance the user experience.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Studio Devices (AREA)
- Image Processing (AREA)
Abstract
An interface adjustment method and a mobile device. The interface adjustment method is applied to a mobile device and comprises: in the case where an anti-shake mode of a mobile device is started, acquiring a reference image feature and an image feature during vibration; according to the image feature during vibration and the reference image feature, obtaining a deviation between the image feature during vibration and the reference image feature; and according to the deviation, adjusting an interface of the mobile device. The solution solves the problem of a poor user experience caused by the influence of vibration in an environment during the process of using a mobile device of a user in the process of reading information. By comparing the acquired image information in real time to acquire a deviation and adjusting display information about an interface according to the deviation, the influence on the display interface due to device vibration is reduced, and the degree of comfort for the user using the mobile device is increased.
Description
一种界面调整方法及移动设备 Interface adjustment method and mobile device
技术领域 Technical field
本发明涉及移动设备领域, 特别涉及一种界面调整方法及移动设备。 背景技术 The present invention relates to the field of mobile devices, and in particular, to an interface adjustment method and a mobile device. Background technique
随着移动通信的日益发展, 市场对手持移动终端的需求日益增大, 对其 功能的要求也日益提高, 而决定移动终端质量成败的较为重要的条件便是用 户界面的设置, 手持移动终端界面对环境中的震动较为敏感, 如果不及时根 据震动对界面显示进行调整会直接影响用户对移动终端的使用, 降低了用户 的体验效果, 而目前的移动终端对此项功能的实现还不够完善, 使得用户对 移动设备的使用达不到预期效果。 With the development of mobile communication, the demand for handheld mobile terminals is increasing, and the requirements for its functions are increasing. The more important condition for determining the success or failure of mobile terminals is the setting of user interface, handheld mobile terminal interface. It is sensitive to the vibration in the environment. If the interface display is not adjusted according to the vibration in time, it will directly affect the user's use of the mobile terminal and reduce the user experience. However, the current mobile terminal is not perfect enough to implement this function. This makes the user's use of the mobile device less than expected.
为了便于理解, 下面对一些技术作如下解释: For ease of understanding, some of the techniques are explained below:
目前移动设备中使用的重力感应实际上就是一种加速计或者陀螺仪的应 用, 它们可用在测量设备的水平受力情况, 对设备相对外部参考物的运动以 及设备相对于地面的摆放姿势, 而陀螺仪在此功能之上, 还提供了水平加速 度的计算; The gravity sensing currently used in mobile devices is actually an accelerometer or gyroscope application that can be used to measure the horizontal force of the device, the movement of the device relative to the external reference, and the placement of the device relative to the ground. The gyroscope also provides a calculation of the horizontal acceleration above this function;
图像特征识别是一种图像鉴别技术, 可以识别符合自定义特征的图像; 镜头成像与视觉成像的共同特征: 视像的大小与对象的距离成反比。 发明内容 Image feature recognition is an image recognition technology that can identify images that conform to custom features. Common features of lens imaging and visual imaging: The size of the video is inversely proportional to the distance of the object. Summary of the invention
本发明实施例提供一种界面调整方法及移动设备, 以解决在使用移动设 备过程中环境中的震动对用户在进行阅读信息过程中产生的影响, 使得用户 体验不佳的问题。 The embodiment of the invention provides an interface adjustment method and a mobile device, which solves the problem that the vibration in the environment in the process of using the mobile device affects the user in the process of reading information, and the user experience is not good.
为了解决上述技术问题, 本发明实施例提供一种界面调整方法, 应用于 移动设备, 包括: In order to solve the above technical problem, an embodiment of the present invention provides an interface adjustment method, which is applied to a mobile device, and includes:
在移动设备的防抖模式启动的情况下, 获取参照图像特征以及振动时的 图像特征; Obtaining a reference image feature and an image feature at the time of vibration when the anti-shake mode of the mobile device is activated;
根据所述振动时的图像特征与参照图像特征, 获得振动时的图像特征与
参照图像特征的偏差; According to the image feature and the reference image feature during the vibration, the image feature and the vibration are obtained Deviation of reference image features;
根据所述偏差, 对移动设备界面进行调整。 Based on the deviation, the mobile device interface is adjusted.
较佳地, 所述获取参照图像特征的步骤包括: Preferably, the step of acquiring the reference image feature comprises:
获取当前图像; Get the current image;
对所述当前图像进行灰度以及二值化处理, 得到参照图像特征。 The current image is subjected to gradation and binarization processing to obtain a reference image feature.
较佳地, 所述获取振动时的图像特征的步骤包括: 在有重力感应信号产 生的情况下, 由重力感应信号触发获取振动时的图像特征; 在没有重力感应 信号产生的情况下, 实时获取当前的图像特征作为振动时的图像特征。 Preferably, the step of acquiring image features during vibration comprises: triggering an image feature when acquiring a vibration by a gravity sensing signal in the case of generating a gravity sensing signal; acquiring in real time without a gravity sensing signal generated The current image features serve as image features at the time of vibration.
较佳地, 所述根据所述振动时的图像特征与参照图像特征, 获得振动时 的图像特征与参照图像特征的偏差的步骤包括: Preferably, the step of obtaining a deviation between the image feature and the reference image feature when vibrating according to the image feature and the reference image feature during the vibration comprises:
将所述振动时的图像特征与参照图像特征进行对比, 根据对比结果得出 振动时的图像特征与参照图像特征的水平偏差, 其中, 所述水平偏差包括水 平横向偏差和水平纵向偏差; Comparing the image feature at the time of the vibration with the reference image feature, and obtaining a horizontal deviation of the image feature and the reference image feature at the time of the vibration according to the comparison result, wherein the horizontal deviation includes a horizontal lateral deviation and a horizontal longitudinal deviation;
将所述振动时的图像特征与参照图像特征进行对比, 根据对比结果得出 振动时的图像特征与参照图像特征的垂直偏差。 The image feature at the time of the vibration is compared with the reference image feature, and the vertical deviation of the image feature at the time of the vibration and the reference image feature is obtained based on the comparison result.
较佳地, 根据所述对比结果得出振动时的图像特征与参照图像特征的水 平偏差的步骤包括: Preferably, the step of deriving the horizontal deviation of the image feature and the reference image feature during the vibration according to the comparison result comprises:
在振动时的图像特征是由重力感应信号触发获取的情况下, 通过公式: 水平横向偏差 =l/2*ax*tA2得出水平横向偏差, 水平纵向偏差 =l/2*ay*tA2得出 水平纵向偏差, 其中, ax为通过重力感应信号获取的水平横向的加速度, ay 为通过重力感应信号获取的水平纵向的加速度, t为时间; In the case where the image characteristic during vibration is triggered by the gravity sensing signal, the horizontal lateral deviation is obtained by the formula: horizontal lateral deviation = l/2 * ax * t A 2 , horizontal longitudinal deviation = l / 2 * ay * t A 2 yields a horizontal longitudinal deviation, where ax is the horizontal lateral acceleration acquired by the gravity sensing signal, ay is the horizontal longitudinal acceleration acquired by the gravity sensing signal, and t is time;
在振动时的图像特征不是由重力感应信号触发获取的情况下, 通过以下 公式得到所述水平偏差: 水平横向偏差 =振动时的图像特征左侧位置 X坐标- 参照图像特征左侧位置 X坐标,水平纵向偏差 =振动时的图像特征左侧位置 Y 坐标-参照图像特征左侧位置 Y坐标。 In the case where the image feature at the time of vibration is not triggered by the gravity sensing signal, the horizontal deviation is obtained by the following formula: Horizontal lateral deviation = image feature left position X-coordinate at the time of vibration - X coordinate of the left position of the reference image feature, Horizontal longitudinal deviation = image feature on vibration left position Y coordinate - reference image feature left position Y coordinate.
较佳地, 根据所述对比结果得出振动时的图像特征与参照图像特征的垂 直偏差的步骤包括: Preferably, the step of deriving the vertical deviation of the image feature and the reference image feature during the vibration according to the comparison result comprises:
通过公式: 垂直偏差=参照图像特征大小 /振动时的图像特征大小来获取 垂直偏差。
所述界面调整方法, 其中, 根据所述偏差, 对移动设备界面进行调整的 步骤包括: The vertical deviation is obtained by the formula: vertical deviation = reference image feature size / image feature size at vibration. The interface adjustment method, wherein, according to the deviation, the step of adjusting the interface of the mobile device includes:
根据所述水平偏差对移动设备界面进行调整或者根据所述垂直偏差对移 动设备界面进行调整, 或者根据所述水平偏差和所述垂直偏差对移动设备界 面进行调整。 The mobile device interface is adjusted according to the horizontal deviation or the mobile device interface is adjusted according to the vertical deviation, or the mobile device interface is adjusted according to the horizontal deviation and the vertical deviation.
较佳地, 根据所述水平偏差对移动设备界面进行调整的步骤包括: 将原 始原点的 X坐标减去水平横向偏差, Y坐标减去水平纵向偏差, 作为新的原 点坐标进行界面绘制。 Preferably, the step of adjusting the interface of the mobile device according to the horizontal deviation comprises: subtracting the horizontal coordinate deviation from the X coordinate of the original origin, subtracting the horizontal longitudinal deviation from the Y coordinate, and performing interface drawing as the new origin coordinate.
较佳地, 根据所述垂直偏差对移动设备界面进行调整的步骤包括: 将原 始绘图精度, 除以垂直偏差作为新的绘图精度进行界面绘制。 Preferably, the step of adjusting the mobile device interface according to the vertical deviation comprises: dividing the original drawing precision by the vertical deviation as a new drawing precision for interface drawing.
本发明实施例还提供一种移动设备, 包括: The embodiment of the invention further provides a mobile device, including:
图像釆集装置, 其设置为: 在移动设备的防抖模式启动的情况下, 获取 参照图像以及振动时的图像; An image collecting device configured to: acquire a reference image and an image at the time of vibration when the anti-shake mode of the mobile device is activated;
图像处理单元, 其设置为: 根据所述参照图像以及振动时的图像获得参 照图像特征和振动时的图像特征; An image processing unit configured to: obtain a reference image feature and an image feature at the time of vibration according to the reference image and the image at the time of vibration;
偏差获取模块, 其设置为: 根据所述振动时的图像特征与参照图像特征, 获得振动时的图像特征与参照图像特征的偏差; 以及 a deviation acquisition module, configured to: obtain a deviation between an image feature and a reference image feature when the vibration is obtained according to the image feature and the reference image feature at the time of the vibration;
调整模块, 其设置为: 根据所述偏差, 对移动设备界面进行调整。 The adjustment module is configured to: adjust the mobile device interface according to the deviation.
较佳地, 所述图像处理单元是设置为分别对所述参照图像以及振动时的 图像进行灰度以及二值化处理, 得到参照图像特征和振动时的图像特征。 Preferably, the image processing unit is configured to perform gradation and binarization processing on the reference image and the image at the time of vibration, respectively, to obtain image features when the reference image feature and the vibration are obtained.
所述移动设备, 还包括: The mobile device further includes:
重力感应装置, 其设置为产生重力感应信号和获取水平方向的横向加速 度和纵向加速度。 A gravity sensing device is provided to generate a gravity sensing signal and to obtain lateral acceleration and longitudinal acceleration in a horizontal direction.
较佳地, 所述图像釆集装置是设置为: 在重力感应装置开启的情况下, 由重力感应信号触发获取振动时的图像; 在重力感应装置未开启的情况下, 实时获取当前的图像作为振动时的图像。 Preferably, the image collecting device is configured to: when the gravity sensing device is turned on, trigger an image when the vibration is acquired by the gravity sensing signal; and if the gravity sensing device is not turned on, obtain the current image in real time as The image when vibrating.
较佳地, 所述偏差获取模块包括: Preferably, the deviation obtaining module comprises:
水平偏差获取单元, 其设置为: 将所述振动时的图像特征与参照图像特 征进行对比, 根据所述对比结果得出振动时的图像特征与参照图像特征的水
平偏差; 以及 a horizontal deviation acquiring unit configured to: compare the image feature at the time of the vibration with a reference image feature, and obtain an image feature of the vibration and a water of the reference image feature according to the comparison result Flat deviation;
垂直偏差获取单元, 其设置为: 将所述振动时的图像特征与参照图像特 征进行对比, 根据所述对比结果得出振动时的图像特征与参照图像特征的垂 直偏差。 The vertical deviation acquiring unit is configured to: compare the image feature at the time of the vibration with a reference image feature, and obtain a vertical deviation of the image feature and the reference image feature at the time of the vibration according to the comparison result.
本发明实施例还提供一种计算机程序, 包括程序指令, 当该程序指令被 网卡设备执行时, 使得该网卡设备可执行上述方法。 The embodiment of the invention further provides a computer program, comprising program instructions, when the program instruction is executed by the network card device, so that the network card device can perform the above method.
本发明实施例还提供一种载有上述计算机程序的载体。 上述方案中, 通过实时的对获取的图像信息特征与参照图像特征进行比 对获取偏差, 根据偏差对移动设备界面显示信息进行调整, 减小了因移动设 备震动对显示界面产生的影响, 提高了用户使用移动设备的舒适度, 提升了 用户体验效果。 附图概述 Embodiments of the present invention also provide a carrier carrying the above computer program. In the above solution, the deviation between the acquired image information feature and the reference image feature is obtained in real time, and the display information of the mobile device interface is adjusted according to the deviation, thereby reducing the influence of the vibration of the mobile device on the display interface, and improving Users use the comfort of mobile devices to enhance the user experience. BRIEF abstract
图 1为本发明实施例的方法流程图; 1 is a flowchart of a method according to an embodiment of the present invention;
图 2 为本发明实施例的对参照图像进行二值化处理后的示意图; 图 3 为本发明实施例的参照图像特征距离示意图; 2 is a schematic diagram of performing binarization processing on a reference image according to an embodiment of the present invention; FIG. 3 is a schematic diagram showing a feature distance of a reference image according to an embodiment of the present invention;
图 4为本发明实施例的产生水平偏差的振动时的图像特征示意图; 图 5为本发明实施例的产生垂直偏差的振动时的图像特征示意图; 图 6表示本发明实施例的确定参照图像特征与手机界面元素位置关系示 意图; 4 is a schematic diagram of image characteristics when a vibration of a horizontal deviation is generated according to an embodiment of the present invention; FIG. 5 is a schematic diagram of image characteristics when a vibration of a vertical deviation is generated according to an embodiment of the present invention; and FIG. 6 is a diagram showing characteristics of determining a reference image according to an embodiment of the present invention. Schematic diagram of the location relationship with the interface elements of the mobile phone
图 7表示本发明实施例的根据水平偏差调整手机界面显示后的示意图; 图 8表示本发明实施例的根据垂直偏差调整手机界面显示后的示意图。 本发明的较佳实施方式 FIG. 7 is a schematic diagram showing the adjustment of the display of the mobile phone interface according to the horizontal deviation according to the embodiment of the present invention; FIG. 8 is a schematic diagram showing the adjustment of the display of the mobile phone interface according to the vertical deviation according to the embodiment of the present invention. Preferred embodiment of the invention
下面结合附图对本发明具体实施方式作详细描述。 需要说明的是, 在不 冲突的情况下, 本申请中的实施例及实施例中的特征可以相互任意组合。 本 发明实施例针对在使用移动设备过程中环境中的震动对用户在进行阅读信息
过程中产生的影响, 使得用户体验不佳的问题, 提供一种界面调整方法及移 动设备。 The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other. Embodiments of the present invention are directed to reading information of a user in response to a vibration in an environment during use of the mobile device. The impact of the process, resulting in poor user experience, provides an interface adjustment method and mobile devices.
本发明实施例的界面调整方法, 应用于移动设备, 包括: The interface adjustment method of the embodiment of the present invention is applied to a mobile device, and includes:
步骤 10, 在移动设备的防抖模式启动的情况下, 获取参照图像特征以及 振动时的图像特征; Step 10: when the anti-shake mode of the mobile device is activated, acquiring the reference image feature and the image feature when vibrating;
步骤 20 , 根据所述振动时的图像特征与参照图像特征, 获得振动时的图 像特征与参照图像特征的偏差; Step 20: Obtain a deviation between the image feature and the reference image feature when the vibration is performed according to the image feature and the reference image feature during the vibration;
步骤 30, 根据所述偏差, 对移动设备界面进行调整。 Step 30: Adjust the mobile device interface according to the deviation.
上述实施例, 在移动设备的界面抖动之前, 获取一个静态的图像特征, 并将此静态图像特征作为参照图像特征进行存储, 然后获取连续画面的图像 特征作为振动时的图像特征, 将此振动时的图像特征与存储的参照图像特征 进行对比分析, 获取两者的偏差, 通过所述偏差, 调整移动设备界面元素的 显示位置及外形大小, 通过使用所述方法减小了因设备震动对显示界面产生 的影响, 提高了用户使用移动设备的舒适度。 In the above embodiment, before the interface of the mobile device is shaken, a static image feature is acquired, and the still image feature is stored as a reference image feature, and then the image feature of the continuous image is acquired as an image feature during the vibration, and the vibration time is obtained. The image feature is compared with the stored reference image feature to obtain the deviation between the two, and the display position and the outer shape of the interface element of the mobile device are adjusted by the deviation, and the display interface is reduced due to the device vibration by using the method. The resulting impact increases the comfort of the user using the mobile device.
本发明的另一实施例中, 所述步骤 10中获取参照图像特征的步骤包括: 步骤 11 , 获取当前图像; In another embodiment of the present invention, the step of acquiring the reference image feature in the step 10 includes: Step 11: acquiring a current image;
步骤 12,对所述当前图像进行灰度以及二值化处理,得到参照图像特征。 应当说明的是, 对获取的图像首先进行灰度处理, 然后对经过灰度处理 的图像进行二值化(即遍历经过灰度处理的图像中的像素, 当像素灰度与白 色灰度偏差 20以内时, 灰度设置为 255 , 反之设置为 0, 生成黑白图) , 然 后遍历生成的黑白图中的可获取两个白斑之间的最短像素间的距离以及特征 的位置, 作为参照特征图进行保存。 应当说明的是, 获取振动时的图像特征 的方法与获取参照图像特征的方法相同, 这里便不再赘述, 本领域技术人员 应该能够理解获取参照图像特征及振动时的图像特征的实现方法, 在这里不 再详细描述。 Step 12: Perform gray level and binarization processing on the current image to obtain a reference image feature. It should be noted that the acquired image is first subjected to gradation processing, and then the gradation-processed image is binarized (ie, traversing the pixels in the gradation-processed image, when the pixel gradation and the white gradation are deviated by 20 When inside, the gray level is set to 255, otherwise set to 0, black and white image is generated), and then the distance between the shortest pixels between the two white spots and the position of the feature in the generated black and white image is traversed as a reference feature map. save. It should be noted that the method for acquiring image features during vibration is the same as the method for acquiring reference image features, and details are not described herein again. Those skilled in the art should be able to understand the method for obtaining image features when referring to image features and vibrations. It will not be described in detail here.
本发明的又一实施例中, 所述获取振动时的图像特征的步骤包括: 在有 重力感应信号产生的情况下, 由重力感应信号触发获取振动时的图像特征; 在没有重力感应信号产生的情况下, 实时获取当前的图像特征作为振动时的 图像特征。
需要说明的是, 当移动设备中有重力感应装置时, 在移动设备受到外界 震动的影响时, 重力感应装置会检测到此种影响并产生重力感应信号, 因此 当移动设备中的防抖模式开启并且重力感应装置也开启时, 只要有重力感应 信号产生便会触发获取振动时的图像特征; 当移动设备的重力感应装置不能 正常开启或者移动设备中未安装重力感应装置时, 在移动设备中的防抖模式 开启的情况下, 触发获取当前的图像特征作为振动时的图像特征的时机为防 抖模式开启后的任意时间, 也就是会实时的获取当前的图像特征作为振动时 的图像特征。 In still another embodiment of the present invention, the step of acquiring an image feature at the time of vibration comprises: triggering an image feature when the vibration is acquired by a gravity sensing signal in the case where a gravity sensing signal is generated; and generating the image without the gravity sensing signal In this case, the current image feature is acquired in real time as an image feature at the time of vibration. It should be noted that when there is a gravity sensing device in the mobile device, when the mobile device is affected by external vibration, the gravity sensing device detects the influence and generates a gravity sensing signal, so when the anti-shake mode in the mobile device is turned on, And when the gravity sensing device is also turned on, as long as the gravity sensing signal is generated, the image feature when the vibration is acquired is triggered; when the gravity sensing device of the mobile device cannot be normally opened or the gravity sensing device is not installed in the mobile device, in the mobile device When the anti-shake mode is turned on, the timing of triggering the acquisition of the current image feature as the image feature at the time of vibration is any time after the anti-shake mode is turned on, that is, the current image feature is acquired in real time as the image feature at the time of vibration.
本发明的又一实施例中, 所述根据所述振动时的图像特征与参照图像特 征, 获得振动时的图像特征与参照图像特征的偏差的步骤包括: In still another embodiment of the present invention, the step of obtaining a deviation between the image feature and the reference image feature when the vibration is obtained according to the image feature and the reference image feature during the vibration comprises:
将所述振动时的图像特征与参照图像特征进行对比, 根据对比结果得出 振动时的图像特征与参照图像特征的水平偏差, 其中, 所述水平偏差包括水 平横向偏差和水平纵向偏差; Comparing the image feature at the time of the vibration with the reference image feature, and obtaining a horizontal deviation of the image feature and the reference image feature at the time of the vibration according to the comparison result, wherein the horizontal deviation includes a horizontal lateral deviation and a horizontal longitudinal deviation;
将所述振动时的图像特征与参照图像特征进行对比, 根据对比结果得出 振动时的图像特征与参照图像特征的垂直偏差。 The image feature at the time of the vibration is compared with the reference image feature, and the vertical deviation of the image feature at the time of the vibration and the reference image feature is obtained based on the comparison result.
应当说明的是, 将获取的所述振动时的图像特征与参照图像特征进行对 比, 分析振动时的图像特征与参照图像特征的大小关系和位移关系, 如果振 动时的图像特征与参照图像特征相比发生了明显的大小的改变 (或者比参照 图像大, 或者比参照图像小) , 此时可以判断出移动设备界面产生了垂直偏 差; 如果振动时的图像特征与参照图像特征相比未发生大小变化, 只是位置 发生了变化(或者左移、 或者右移、 或者上移、 或者下移) , 此时可以判断 出移动设备界面产生了水平偏差, 其中左移、 或者右移产生的偏差称为水平 横向偏差, 上移、 或者下移产生的偏差称为水平纵向偏差。 It should be noted that, when the obtained image characteristics of the vibration are compared with the reference image features, the magnitude relationship and the displacement relationship of the image features and the reference image features during the vibration are analyzed, if the image features during the vibration and the reference image features are Compared with the significant size change (or larger than the reference image, or smaller than the reference image), it can be judged that the mobile device interface has a vertical deviation; if the image feature during vibration does not occur compared to the reference image feature Change, only the position has changed (either left, or right, or up, or down). At this point, it can be judged that the mobile device interface has a horizontal deviation, and the deviation caused by the left shift or the right shift is called The horizontal lateral deviation, the deviation caused by the upward movement or the downward movement is called the horizontal longitudinal deviation.
本发明的又一实施例中, 根据所述对比结果得出振动时的图像特征与参 照图像特征的水平偏差的步骤包括: In still another embodiment of the present invention, the step of deriving the horizontal deviation of the image feature and the reference image feature during the vibration according to the comparison result comprises:
在振动时的图像特征是由重力感应信号触发获取的情况下, 通过公式: 水平横向偏差 =l/2*ax*tA2得出水平横向偏差, 水平纵向偏差 =l/2*ay*tA2得出 水平纵向偏差, 其中, ax为通过重力感应信号获取的水平横向的加速度, ay 为通过重力感应信号获取的水平纵向的加速度, t为时间;
在振动时的图像特征不是由重力感应信号触发获取的情况下,通过公式: 水平横向偏差 =振动时的图像特征左侧位置 X坐标-参照图像特征左侧位置 X 坐标, 水平纵向偏差 =振动时的图像特征左侧位置 γ坐标 -参照图像特征左侧 位置 Y坐标。 In the case where the image characteristic during vibration is triggered by the gravity sensing signal, the horizontal lateral deviation is obtained by the formula: horizontal lateral deviation = l/2 * ax * t A 2 , horizontal longitudinal deviation = l / 2 * ay * t A 2 yields a horizontal longitudinal deviation, where ax is the horizontal lateral acceleration acquired by the gravity sensing signal, ay is the horizontal longitudinal acceleration acquired by the gravity sensing signal, and t is time; In the case where the image characteristics at the time of vibration are not triggered by the gravity sensing signal, the formula is as follows: Horizontal lateral deviation = image position on the left side of the vibration image X coordinate - reference image feature left position X coordinate, horizontal longitudinal deviation = vibration time Image feature left position gamma coordinate - reference image feature left position Y coordinate.
本发明的又一实施例中, 根据所述对比结果得出振动时的图像特征与参 照图像特征的垂直偏差的步骤为: In still another embodiment of the present invention, the step of deriving the vertical deviation of the image feature at the time of vibration from the reference image feature based on the comparison result is:
通过公式: 垂直偏差=参照图像特征大小 /振动时的图像特征大小, 来获 取垂直偏差, "/" 为除法运算。 The vertical deviation is obtained by the formula: vertical deviation = reference image feature size / image feature size at vibration, and "/" is the division operation.
对上述计算垂直偏差的过程举例如下 (以人眼与前置摄像头为例作详细 说明 ) : The above process for calculating the vertical deviation is as follows (taking the human eye and the front camera as an example for details):
因摄像头与人眼同时遵循 "视像的大小与对象的距离成反比"这一规律, 假设: 当前特征与人眼的距离为 dl , 特征视像大小为 si , 则 nl=dl*sl , 其中 nl 为反比值; 同时设备界面至人眼的距离为 d2 , 界面视像大小为 s2 , 则 n2=d2*s2, n2为反比值; Since the camera and the human eye simultaneously follow the law that the size of the video is inversely proportional to the distance of the object, it is assumed that the distance between the current feature and the human eye is dl and the feature visual image is si, then nl=dl*sl, where Nl is the inverse ratio; at the same time, the distance from the device interface to the human eye is d2, and the interface video size is s2, then n2=d2*s2, and n2 is the inverse ratio;
在使用前置摄像头的情况下有 dl=d2, 可得到 dl=d2=nl/sl=n2/s2; In the case of using the front camera, there is dl=d2, and dl=d2=nl/sl=n2/s2 can be obtained;
当移动设备产生垂直方向的偏移时, 当前特征与参照特征相比, 会变大 或者变小, 因在本发明实施例中, 特征为一条直线段, 所以当设备垂直变化 时, 当前特征会变长或者变短。 因为可由计算得出当前特征相对于参照特征 的 变化幅度 k=参照特征 /取景特征, 则 在垂直抖动 时 , dl/k=d2/k=nl/(sl *k)=n2/(s2*k) , 由此可知, 移动设备界面产生的变化比例也 为 k (即移动设备界面产生的垂直偏差为 k ) 。 When the mobile device generates a vertical offset, the current feature may become larger or smaller than the reference feature. In the embodiment of the present invention, the feature is a straight line segment, so when the device changes vertically, the current feature will Become longer or shorter. Since the magnitude of change of the current feature relative to the reference feature k = reference feature/framing feature can be calculated, in the case of vertical jitter, dl / k = d2 / k = nl / (sl * k) = n2 / (s2 * k ), it can be seen that the change ratio of the mobile device interface is also k (that is, the vertical deviation generated by the mobile device interface is k).
本发明的又一实施例中, 根据所述偏差, 对移动设备界面进行调整的步 骤包括: In still another embodiment of the present invention, the step of adjusting the mobile device interface according to the deviation comprises:
根据所述水平偏差对移动设备界面进行调整或者根据所述垂直偏差对移 动设备界面进行调整, 或者根据所述水平偏差和所述垂直偏差对移动设备界 面进行调整。 The mobile device interface is adjusted according to the horizontal deviation or the mobile device interface is adjusted according to the vertical deviation, or the mobile device interface is adjusted according to the horizontal deviation and the vertical deviation.
应当说明的是, 移动设备受外界震动的影响, 会产生水平移动或垂直移 动或会同时发生水平移动和垂直移动, 因此, 移动设备界面会相应的产生水 平偏差或垂直偏差或者同时产生水平偏差和垂直偏差。
本发明又一实施例中, 根据所述水平偏差对移动设备界面进行调整为: 获取原始原点 X坐标减去水平横向偏差, Y坐标减去水平纵向偏差作为新的 原点坐标进行界面绘制。 It should be noted that the mobile device is subject to external vibration, which will cause horizontal or vertical movement or horizontal and vertical movement at the same time. Therefore, the mobile device interface will produce horizontal or vertical deviation or horizontal deviation and Vertical deviation. In another embodiment of the present invention, the mobile device interface is adjusted according to the horizontal deviation to: obtain the original origin X coordinate minus the horizontal lateral deviation, and the Y coordinate minus the horizontal longitudinal deviation as the new origin coordinate for interface rendering.
本发明又一实施例中, 根据所述垂直偏差对移动设备界面进行调整为: 获取原始绘图精度, 除以垂直偏差作为新的绘图精度进行界面绘制。 In still another embodiment of the present invention, the mobile device interface is adjusted according to the vertical deviation to: obtain original drawing precision, and divide the vertical deviation as a new drawing precision for interface drawing.
如图 1所示, 本发明实施例的方法流程为: 在移动设备防抖动模式开启 的情况下, 依据获取的参照图像对图像进行灰度化和二值化处理, 获取两白 斑之间的距离作为参照图像特征(基准图) , 然后对获取图像的装置进行焦 距的设定(即将焦距固定, 在此焦距的基础上获取振动时的图像特征) ; 在 有抖动触发的情况下, 计算移动设备界面的偏移量: 通过重力感应装置(如, 陀螺仪)感应到的加速度来计算水平抖动产生的水平偏差; 通过当前图片成 像与基准图成像的区别计算垂直抖动发生的垂直偏差; 最后根据所述水平偏 差与垂直偏差对界面坐标进行变换,根据变化的界面坐标重新绘制设备界面, 将设备界面图像的显示位置以同样的偏差向设备发生水平抖动的反方向移动 以抵消界面水平偏移对用户产生的影响, 将界面图像的显示外形以同样的偏 差放大或是缩小, 以抵消设备远离或者靠近用户时, 设备界面上的图像缩小 或放大的效果。 As shown in FIG. 1 , the method according to the embodiment of the present invention is: when the anti-shake mode of the mobile device is turned on, graying and binarizing the image according to the acquired reference image to obtain between the two white spots. The distance is used as a reference image feature (reference map), and then the focal length is set for the device that acquires the image (that is, the focal length is fixed, and the image characteristics when the vibration is acquired based on the focal length); in the case of the jitter trigger, the calculation is performed. Offset of the device interface: Calculate the horizontal deviation caused by the horizontal jitter by the acceleration induced by the gravity sensing device (eg, gyroscope); Calculate the vertical deviation of the vertical jitter by the difference between the current image imaging and the reference image imaging; The horizontal deviation and the vertical deviation are used to transform the interface coordinates, and the device interface is redrawn according to the changed interface coordinates, and the display position of the device interface image is moved to the opposite direction of the horizontal jitter of the device with the same deviation to offset the horizontal offset of the interface. User-generated influence, the display image of the interface image is The same offset is zoomed in or out to offset the effect of the image on the device interface being zoomed out or magnified when the device is moved away from or near the user.
本发明以上实施例,通过实时的对获取的图像信息进行比对来获取偏差, 根据所述偏差对界面显示信息进行调整, 减小了因移动设备震动对显示界面 产生的影响, 提高了用户使用移动设备的舒适度。 In the above embodiment of the present invention, the deviation is obtained by comparing the acquired image information in real time, and the interface display information is adjusted according to the deviation, thereby reducing the influence of the vibration of the mobile device on the display interface, and improving the use of the user. The comfort of mobile devices.
本发明实施例还提供一种移动设备, 包括: The embodiment of the invention further provides a mobile device, including:
图像釆集装置, 设置为在移动设备的防抖模式启动的情况下, 获取参照 图像以及振动时的图像; An image collecting device configured to acquire a reference image and an image at the time of vibration when the anti-shake mode of the mobile device is activated;
图像处理单元, 设置为根据所述参照图像以及振动时的图像获得参照图 像特征和振动时的图像特征; An image processing unit configured to obtain a reference image feature and an image feature at the time of vibration according to the reference image and the image at the time of vibration;
偏差获取模块, 设置为根据所述振动时的图像特征与参照图像特征, 获 得振动时的图像特征与参照图像特征的偏差; The deviation obtaining module is configured to obtain a deviation between the image feature and the reference image feature when the vibration is performed according to the image feature and the reference image feature during the vibration;
调整模块, 设置为根据所述偏差, 对移动设备界面进行调整。 The adjustment module is configured to adjust the mobile device interface according to the deviation.
应当说明的是, 所述图像釆集装置为前置摄像头或后置摄像头, 在本发
明中, 可以根据实际需要选用前置摄像头或是后置摄像头进行图像的釆集。 本发明的又一实施例中, 所述图像处理单元是设置为分别对所述参照图 像以及振动时的图像进行灰度以及二值化处理, 得到参照图像特征和振动时 的图像特征。 It should be noted that the image collection device is a front camera or a rear camera. In the Ming Dynasty, you can use the front camera or the rear camera to collect images according to actual needs. In still another embodiment of the present invention, the image processing unit is configured to perform gradation and binarization processing on the reference image and the image at the time of vibration, respectively, to obtain an image feature when the reference image feature and the vibration are obtained.
本发明的又一实施例中, 所述移动设备, 还包括: In still another embodiment of the present invention, the mobile device further includes:
重力感应装置, 设置为产生重力感应信号和获取水平方向的横向加速度 和 έ从向力口速度。 A gravity sensing device is arranged to generate a gravity sensing signal and to obtain a lateral acceleration in the horizontal direction and a velocity in the horizontal direction.
应当说明的是, 所述重力感应装置可以为加速计或陀螺仪, 以及任何能 实现测量移动设备加速度的装置都属于本发明的保护范围。 It should be noted that the gravity sensing device may be an accelerometer or a gyroscope, and any device capable of measuring the acceleration of the mobile device is within the scope of the present invention.
应当说明的是, 所述图像釆集装置在重力感应装置开启的情况下, 由重 力感应信号触发获取振动时的图像; 在重力感应装置未开启的情况下, 实时 获取当前的图像作为振动时的图像。 It should be noted that, when the gravity sensing device is turned on, the image capturing device triggers the image when the vibration is acquired by the gravity sensing signal; and when the gravity sensing device is not turned on, the current image is acquired in real time as the vibration. image.
在防抖模式开启后, 若设备在安装有重力感应装置的情况下, 重力感应 装置会自动的开启, 此时, 重力感应装置会检测设备的受力情况产生重力感 应信号, 并触发图像釆集装置对当前图像进行取景, 若重力感应装置未成功 开启或者移动设备中并未安装重力感应装置, 此时不会有重力感应信号的产 生, 则图像釆集装置对实时的对当前图像进行取景。 After the anti-shake mode is turned on, if the gravity sensing device is installed in the device, the gravity sensing device will automatically turn on. At this time, the gravity sensing device detects the force of the device and generates a gravity sensing signal, and triggers the image collection. The device performs framing on the current image. If the gravity sensing device is not successfully turned on or the gravity sensing device is not installed in the mobile device, and no gravity sensing signal is generated at this time, the image concentrating device framing the current image in real time.
本发明的又一实施例中, 所述偏差获取模块包括: In still another embodiment of the present invention, the deviation obtaining module includes:
水平偏差获取单元, 设置为将所述振动时的图像特征与参照图像特征进 行对比, 根据所述对比结果得出振动时的图像特征与参照图像特征的水平偏 差; The horizontal deviation acquiring unit is configured to compare the image feature at the time of the vibration with the reference image feature, and obtain a horizontal deviation of the image feature and the reference image feature when the vibration is performed according to the comparison result;
垂直偏差获取单元, 设置为将所述振动时的图像特征与参照图像特征进 行对比, 根据所述对比结果得出振动时的图像特征与参照图像特征的垂直偏 差。 The vertical deviation acquiring unit is configured to compare the image feature at the time of the vibration with the reference image feature, and obtain a vertical deviation of the image feature and the reference image feature at the time of the vibration based on the comparison result.
应当说明的是,所述水平偏差获取单元在有重力感应信号产生的情况下, 通过公式: 水平横向偏差 =l/2*ax*tA2 得出水平横向偏差, 水平纵向偏差 =l/2*ay*tA2得出水平纵向偏差, 其中, ax为通过重力感应信号获取的水平横 向的加速度, ay为通过重力感应信号获取的水平纵向的加速度, t为时间; 在没有重力感应信号产生的情况下,通过公式: 水平横向偏差 =振动时的
图像特征左侧位置 X坐标-参照图像特征左侧位置 X坐标, 水平纵向偏差 =振 动时的图像特征左侧位置 Y坐标-参照图像特征左侧位置 Y坐标, 来获取水 平偏差; 应当说明的是, 所述垂直偏差获取单元通过公式: 垂直偏差=参照图像特 征大小 /振动时的图像特征大小, 来获取垂直偏差。 It should be noted that the horizontal deviation obtaining unit obtains the horizontal lateral deviation by the formula: horizontal lateral deviation=l/2*ax*t A 2 in the case where the gravity sensing signal is generated, and the horizontal longitudinal deviation=l/2 *ay*t A 2 gives the horizontal longitudinal deviation, where ax is the horizontal lateral acceleration obtained by the gravity sensing signal, ay is the horizontal longitudinal acceleration acquired by the gravity sensing signal, t is the time; no gravity sensing signal is generated In the case of the formula: horizontal lateral deviation = vibration Image feature left position X coordinate - reference image feature left position X coordinate, horizontal longitudinal deviation = image feature left position Y coordinate at vibration - reference image feature left position Y coordinate to obtain horizontal deviation; The vertical deviation acquiring unit acquires the vertical deviation by a formula: vertical deviation=reference image feature size/image feature size at the time of vibration.
应当说明的是, 在获取偏差后, 移动设备会根据偏差的类型对设备界面 进行调整, 包括: 所述调整模块根据所述水平偏差获取单元得到的水平偏差 对移动设备界面进行调整或者根据所述垂直偏差获取单元得到的垂直偏差对 移动设备界面进行调整, 或者根据所述水平偏差获取单元得到的水平偏差和 根据所述垂直偏差获取单元得到的垂直偏差对移动设备界面进行调整。 It should be noted that, after the deviation is obtained, the mobile device adjusts the device interface according to the type of the deviation, including: the adjusting module adjusts the mobile device interface according to the horizontal deviation obtained by the horizontal deviation acquiring unit or according to the The vertical deviation obtained by the vertical deviation acquiring unit adjusts the mobile device interface, or adjusts the mobile device interface according to the horizontal deviation obtained by the horizontal deviation acquiring unit and the vertical deviation obtained according to the vertical deviation acquiring unit.
本发明的又一实施例中, 所述调整模块通过获取原始原点 X坐标减去水 平横向偏差, Y坐标减去水平纵向偏差作为新的原点坐标进行界面绘制来进 行水平偏差调整; 通过获取原始绘图精度, 除以垂直偏差作为新的绘图精度 进行界面绘制来进行垂直偏差调整。 In still another embodiment of the present invention, the adjusting module performs horizontal offset adjustment by acquiring the original origin X coordinate minus the horizontal lateral deviation, and subtracting the horizontal longitudinal deviation from the horizontal origin deviation as the new origin coordinate; Accuracy, divided by vertical deviation as the new drawing accuracy for interface rendering for vertical deviation adjustment.
应当说明的是, 所述调整模块可以为移动设备的绘图控制器, 在偏差获 取模块计算得出移动设备界面的偏差后, 将所述偏差传递给移动设备的中央 控制模块, 所述中央控制模块将所述偏差传递给从移动设备的绘图接口中获 取的绘制控制器, 所述绘制控制器, 根据所述水平偏差通过获取原始原点 X 坐标减去水平横向偏差, Y坐标减去水平纵向偏差作为新的原点坐标进行界 面绘制来进行水平偏差调整, 则所有在该新的原点坐标下绘制的图像都将发 生偏移, 以抵消移动设备本身的偏移, 从而达到水平防抖的效果; 通过获取 原始绘图精度, 除以垂直偏差作为新的绘图精度进行界面绘制来进行垂直偏 差调整, 则在新的绘图精度的坐标下绘制的图像外形都将发生变化, 以抵消 移动设备远离或者靠近用户时, 移动设备界面上的图像缩小或放大而产生的 垂直偏差。 It should be noted that the adjustment module may be a drawing controller of the mobile device, and after the deviation acquisition module calculates the deviation of the mobile device interface, the deviation is transmitted to the central control module of the mobile device, where the central control module Passing the deviation to a rendering controller obtained from a drawing interface of the mobile device, the rendering controller subtracting the horizontal lateral deviation from the original origin X coordinate according to the horizontal deviation, and subtracting the horizontal longitudinal deviation from the Y coordinate as The new origin coordinates are drawn by the interface to adjust the horizontal deviation, and all the images drawn under the new origin coordinates will be offset to offset the offset of the mobile device itself, thereby achieving the horizontal anti-shake effect; The original drawing accuracy, divided by the vertical deviation as the new drawing precision for the interface to draw the vertical deviation adjustment, the shape of the image drawn under the coordinates of the new drawing precision will change to offset the mobile device away from or close to the user, The image on the mobile device interface is reduced or enlarged The vertical deviation.
对以上实施例以人眼和前置摄像头为例做详细说明, 如下: 如图 2和图 3 所示, 将二值化后人眼图像的两眼白斑之间的最短距离设定为参照图像特 征; 如图 4所示, 为发生了水平偏移后的振动时的图像特征的位置, 由图 4
可知, 设备界面向右发生了偏移; 如图 5所示, 为发生了垂直偏移后的振动 时的图像特征的示意图, 由图 5可知, 设备界面向远离人眼的方向发生了移 动; 如图 6所示, 原始设备界面坐标 10与设备界面重合, 以界面元素 40为 准获取的参照图像特征 30, 在未发生水平偏移和垂直偏移时, 振动时的取景 特征 20与参照图像特征 30相比, 大小和位置都未发生变化; 如图 6和图 7 所示, 设备发生水平抖动后, 产生水平偏差 50, 在进行了界面调整后, 此时 人眼看到的原来界面元素 40的位置调整到水平抖动后的界面元素 60的位置; 如图 8所示, 振动时的取景特征 20与参照图像特征 30相比明显变小, 可知 设备向远离人眼的方向发生了抖动, 在进行界面调整后可知振动时的取景特 征 20对应的振动后的界面元素 70与参照图像特征 30对应的界面元素 40相 比缩小了。 For the above embodiment, the human eye and the front camera are taken as an example for detailed description as follows: As shown in FIG. 2 and FIG. 3, the shortest distance between the binocular white spots of the binarized human eye image is set as the reference image. Characteristics; as shown in Fig. 4, the position of the image feature when the vibration after the horizontal offset occurs, Figure 4 It can be seen that the device interface is shifted to the right; as shown in FIG. 5, which is a schematic diagram of image features when vibration occurs after vertical offset, as can be seen from FIG. 5, the device interface moves in a direction away from the human eye; As shown in FIG. 6, the original device interface coordinates 10 coincide with the device interface, and the reference image feature 30 acquired based on the interface element 40, when the horizontal offset and the vertical offset do not occur, the framing feature 20 and the reference image when vibrating Compared with feature 30, the size and position have not changed. As shown in Fig. 6 and Fig. 7, after horizontal jitter of the device, a horizontal deviation of 50 occurs. After the interface adjustment, the original interface element 40 is seen by the human eye. The position is adjusted to the position of the interface element 60 after horizontal shaking; as shown in FIG. 8, the framing feature 20 at the time of vibration is significantly smaller than that of the reference image feature 30, and it is known that the device is shaken in a direction away from the human eye. After the interface adjustment is performed, it is understood that the interface element 70 after the vibration corresponding to the framing feature 20 at the time of vibration is smaller than the interface element 40 corresponding to the reference image feature 30.
本发明实施例还提供一种计算机程序, 包括程序指令, 当该程序指令被 网卡设备执行时, 使得该网卡设备可执行上述方法。 The embodiment of the invention further provides a computer program, comprising program instructions, when the program instruction is executed by the network card device, so that the network card device can perform the above method.
本发明实施例还提供一种载有上述计算机程序的载体。 本发明以上实施例, 增加了界面调整功能的移动设备, 在抖动发生时, 动设备震动对界面显示产生的影响, 提高了用户使用移动设备的舒适度, 进 而提升了用户体验效果。 Embodiments of the present invention also provide a carrier carrying the above computer program. In the above embodiment of the present invention, the mobile device with the interface adjustment function increases the influence of the vibration of the mobile device on the interface display when the jitter occurs, thereby improving the comfort of the user using the mobile device, thereby improving the user experience.
以上所述的是本发明的优选实施方式, 应当指出对于本技术领域的普通 人员来说, 在不脱离本发明所述原理前提下, 还可以作出若干改进和润饰, 这些改进和润饰也应视为本发明的保护范围。 The above is a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. These improvements and retouchings should also be considered. It is the scope of protection of the present invention.
显然, 本领域的技术人员应该明白, 上述的本发明实施例的各模块或各 步骤可以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或 者分布在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执 行的程序代码来实现, 从而, 可以将它们存储在存储装置中由计算装置来执 行, 并且在某些情况下, 可以以不同于此处的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤
制作成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和 软件结合。 Obviously, those skilled in the art should understand that the above modules or steps of the embodiments of the present invention can be implemented by a general computing device, which can be concentrated on a single computing device or distributed in multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from The steps shown or described are performed sequentially, or they are separately fabricated into individual integrated circuit modules, or multiple modules or steps thereof It is made into a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
工业实用性 Industrial applicability
本发明实施例通过实时的对获取的图像信息特征与参照图像特征进行比 对获取偏差, 根据偏差对移动设备界面显示信息进行调整, 减小了因移动设 备震动对显示界面产生的影响, 提高了用户使用移动设备的舒适度, 提升了 用户体验效果。
In the embodiment of the present invention, the acquired image information feature and the reference image feature are compared in real time to obtain a deviation, and the display information of the mobile device interface is adjusted according to the deviation, thereby reducing the influence of the mobile device vibration on the display interface, and improving the impact. Users use the comfort of mobile devices to enhance the user experience.
Claims
1. 一种界面调整方法, 应用于移动设备, 该方法包括: An interface adjustment method applied to a mobile device, the method comprising:
在移动设备的防抖模式启动的情况下, 获取参照图像特征以及振动时的 图像特征; Obtaining a reference image feature and an image feature at the time of vibration when the anti-shake mode of the mobile device is activated;
根据所述振动时的图像特征与所述参照图像特征, 获得所述振动时的图 像特征与所述参照图像特征的偏差; Obtaining a deviation between the image feature at the time of the vibration and the reference image feature according to the image feature at the time of the vibration and the reference image feature;
根据所述偏差, 对移动设备界面进行调整。 Based on the deviation, the mobile device interface is adjusted.
2. 根据权利要求 1所述的界面调整方法, 其中, 所述获取参照图像特征 的步骤包括: 2. The interface adjustment method according to claim 1, wherein the step of acquiring the reference image feature comprises:
获取当前图像; Get the current image;
对所述当前图像进行灰度以及二值化处理, 得到所述参照图像特征。 The current image is subjected to gradation and binarization processing to obtain the reference image feature.
3. 根据权利要求 1所述的界面调整方法, 其中, 所述获取振动时的图像 特征的步骤包括: 3. The interface adjustment method according to claim 1, wherein the step of acquiring an image feature at the time of vibration comprises:
在有重力感应信号产生的情况下, 由重力感应信号触发获取所述振动时 的图像特征; In the case where a gravity sensing signal is generated, an image characteristic when the vibration is acquired is triggered by a gravity sensing signal;
在没有重力感应信号产生的情况下, 实时获取当前的图像特征作为所述 振动时的图像特征。 In the absence of gravity sensing signal generation, the current image feature is acquired in real time as the image feature at the time of the vibration.
4. 根据权利要求 3所述的界面调整方法, 其中, 所述根据所述振动时的 图像特征与所述参照图像特征 , 获得所述振动时的图像特征与所述参照图像 特征的偏差的步骤包括: The interface adjustment method according to claim 3, wherein the step of obtaining the deviation between the image feature at the time of the vibration and the reference image feature according to the image feature at the time of the vibration and the reference image feature Includes:
将所述振动时的图像特征与所述参照图像特征进行对比, 根据对比结果 得出所述振动时的图像特征与所述参照图像特征的水平偏差, 其中, 所述水 平偏差包括水平横向偏差和水平纵向偏差; Comparing the image feature at the time of the vibration with the reference image feature, and obtaining a horizontal deviation of the image feature at the time of the vibration from the reference image feature according to a comparison result, wherein the horizontal deviation includes a horizontal lateral deviation and Horizontal longitudinal deviation
将所述振动时的图像特征与所述参照图像特征进行对比, 根据对比结果 得出所述振动时的图像特征与所述参照图像特征的垂直偏差。 Comparing the image feature at the time of the vibration with the reference image feature, and obtaining a vertical deviation of the image feature at the time of the vibration from the reference image feature according to the comparison result.
5. 根据权利要求 4所述的界面调整方法, 其中, 所述根据对比结果得出 所述振动时的图像特征与所述参照图像特征的水平偏差的步骤包括: The interface adjustment method according to claim 4, wherein the step of deriving the horizontal deviation of the image feature and the reference image feature according to the comparison result comprises:
在所述振动时的图像特征是由重力感应信号触发获取的情况下, 通过公
式: 水平横向偏差 =l/2*ax*tA2得出水平横向偏差, 通过公式: 水平纵向偏差 =l/2*ay*tA2得出水平纵向偏差, 其中, ax为通过重力感应信号获取的水平横 向的加速度, ay为通过重力感应信号获取的水平纵向的加速度, t为时间; 在所述振动时的图像特征不是由重力感应信号触发获取的情况下, 通过 以下公式得到所述水平偏差: 水平横向偏差 =振动时的图像特征左侧位置 X 坐标-参照图像特征左侧位置 X坐标, 水平纵向偏差 =振动时的图像特征左侧 位置 Y坐标-参照图像特征左侧位置 Y坐标。 In the case where the image characteristic at the time of the vibration is triggered by the gravity sensing signal, Formula: Horizontal lateral deviation = l / 2 * ax * t A 2 to obtain horizontal lateral deviation, by the formula: horizontal longitudinal deviation = l / 2 * ay * t A 2 to obtain horizontal longitudinal deviation, where ax is through gravity sensing The horizontal lateral acceleration of the signal acquisition, ay is the horizontal longitudinal acceleration obtained by the gravity sensing signal, t is time; in the case where the image feature at the time of the vibration is not triggered by the gravity sensing signal, the following formula is obtained by the following formula Horizontal deviation: horizontal lateral deviation = image feature on vibration left position X coordinate - reference image feature left position X coordinate, horizontal longitudinal deviation = image feature at vibration left position Y coordinate - reference image feature left position Y coordinate .
6. 根据权利要求 5所述的界面调整方法, 其中, 所述根据对比结果得出 所述振动时的图像特征与所述参照图像特征的垂直偏差的步骤包括: The interface adjustment method according to claim 5, wherein the step of deriving the vertical deviation of the image feature at the time of the vibration from the reference image feature according to the comparison result comprises:
通过公式: 垂直偏差=参照图像特征大小 /振动时的图像特征大小, 来获 取垂直偏差, "/" 为除法运算。 The vertical deviation is obtained by the formula: vertical deviation = reference image feature size / image feature size at vibration, and "/" is the division operation.
7. 根据权利要求 6所述的界面调整方法, 其中, 根据所述偏差, 对移动 设备界面进行调整的步骤包括: The interface adjustment method according to claim 6, wherein the step of adjusting the mobile device interface according to the deviation comprises:
根据所述水平偏差对移动设备界面进行调整, 或者根据所述垂直偏差对 移动设备界面进行调整, 或者根据所述水平偏差和所述垂直偏差对移动设备 界面进行调整。 The mobile device interface is adjusted according to the horizontal deviation, or the mobile device interface is adjusted according to the vertical deviation, or the mobile device interface is adjusted according to the horizontal deviation and the vertical deviation.
8. 根据权利要求 7所述的界面调整方法, 其中, 根据所述水平偏差对移 动设备界面进行调整的步骤包括: 将原始原点的 X坐标减去水平横向偏差, Y坐标减去水平纵向偏差, 作为新的原点坐标进行界面绘制。 8. The interface adjustment method according to claim 7, wherein the step of adjusting the mobile device interface according to the horizontal deviation comprises: subtracting a horizontal lateral deviation from an X coordinate of the original origin, and subtracting a horizontal longitudinal deviation from the Y coordinate, The interface is drawn as a new origin coordinate.
9. 根据权利要求 7所述的界面调整方法, 其中, 根据所述垂直偏差对移 动设备界面进行调整的步骤包括: 将原始绘图精度除以垂直偏差作为新的绘 图精度进行界面绘制。 9. The interface adjustment method according to claim 7, wherein the step of adjusting the mobile device interface according to the vertical deviation comprises: dividing the original drawing precision by the vertical deviation as a new drawing precision for interface drawing.
10. 一种移动设备, 包括: 10. A mobile device, comprising:
图像釆集装置, 其设置为: 在移动设备的防抖模式启动的情况下, 获取 参照图像以及振动时的图像; An image collecting device configured to: acquire a reference image and an image at the time of vibration when the anti-shake mode of the mobile device is activated;
图像处理单元, 其设置为: 根据所述参照图像以及振动时的图像获得参 照图像特征和振动时的图像特征; An image processing unit configured to: obtain a reference image feature and an image feature at the time of vibration according to the reference image and the image at the time of vibration;
偏差获取模块, 其设置为: 根据所述振动时的图像特征与所述参照图像 特征, 获得所述振动时的图像特征与所述参照图像特征的偏差; 以及
调整模块, 其设置为: 根据所述偏差, 对移动设备界面进行调整。 a deviation obtaining module, configured to: obtain a deviation between the image feature at the time of the vibration and the reference image feature according to the image feature at the time of the vibration and the reference image feature; The adjustment module is configured to: adjust the mobile device interface according to the deviation.
11. 根据权利要求 10所述的移动设备, 其中, 所述图像处理单元是设置 为: 分别对所述参照图像以及振动时的图像进行灰度以及二值化处理, 得到 参照图像特征和振动时的图像特征。 The mobile device according to claim 10, wherein the image processing unit is configured to: perform gradation and binarization processing on the reference image and the image at the time of vibration, respectively, to obtain a reference image feature and a vibration time Image features.
12. 根据权利要求 10所述的移动设备, 还包括: 12. The mobile device of claim 10, further comprising:
重力感应装置, 其设置为产生重力感应信号和获取水平方向的横向加速 度和纵向加速度。 A gravity sensing device is provided to generate a gravity sensing signal and to obtain lateral acceleration and longitudinal acceleration in a horizontal direction.
13. 根据权利要求 12所述的移动设备, 其中, 所述图像釆集装置是设置 为: 在重力感应装置开启的情况下, 由重力感应信号触发获取振动时的图像; 在重力感应装置未开启的情况下, 实时获取当前的图像作为振动时的图像。 The mobile device according to claim 12, wherein the image collecting device is configured to: when the gravity sensing device is turned on, trigger an image when the vibration is acquired by a gravity sensing signal; and the gravity sensing device is not turned on In the case, the current image is acquired in real time as an image at the time of vibration.
14. 根据权利要求 13所述的移动设备, 其中, 所述偏差获取模块包括: 水平偏差获取单元, 其设置为: 将所述振动时的图像特征与所述参照图 像特征进行对比, 根据对比结果得出振动时的图像特征与所述参照图像特征 的水平偏差; 以及 The mobile device according to claim 13, wherein the deviation acquisition module comprises: a horizontal deviation acquisition unit configured to: compare the image feature at the time of the vibration with the reference image feature, according to the comparison result Deriving a horizontal deviation of an image feature at the time of vibration from the reference image feature;
垂直偏差获取单元, 其设置为: 将所述振动时的图像特征与所述参照图 像特征进行对比, 根据对比结果得出振动时的图像特征与所述参照图像特征 的垂直偏差。 And a vertical deviation acquiring unit configured to: compare the image feature at the time of the vibration with the reference image feature, and obtain a vertical deviation of the image feature at the time of the vibration and the reference image feature according to the comparison result.
15. 一种计算机程序, 包括程序指令, 当该程序指令被移动设备执行时, 使得该移动设备可执行权利要求 1-9任一项所述的方法。 15. A computer program comprising program instructions which, when executed by a mobile device, cause the mobile device to perform the method of any of claims 1-9.
16、 一种载有权利要求 15所述计算机程序的载体。
16. A carrier carrying the computer program of claim 15.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310615866.9 | 2013-11-26 | ||
CN201310615866.9A CN104679483A (en) | 2013-11-26 | 2013-11-26 | Interface adjusting method and mobile device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2015078189A1 true WO2015078189A1 (en) | 2015-06-04 |
Family
ID=53198303
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2014/082588 WO2015078189A1 (en) | 2013-11-26 | 2014-07-21 | Interface adjustment method and mobile device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104679483A (en) |
WO (1) | WO2015078189A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113360804A (en) * | 2021-06-03 | 2021-09-07 | 北京百度网讯科技有限公司 | Interface display method and device, electronic equipment and storage medium |
CN113676667A (en) * | 2021-08-23 | 2021-11-19 | Oppo广东移动通信有限公司 | Inhibition ratio test method, apparatus, electronic equipment and storage medium |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106774782A (en) * | 2015-11-24 | 2017-05-31 | 中兴通讯股份有限公司 | Interface display method, device and terminal |
US10503278B2 (en) * | 2015-12-22 | 2019-12-10 | Sony Corporation | Information processing apparatus and information processing method that controls position of displayed object corresponding to a pointing object based on positional relationship between a user and a display region |
CN111649816A (en) | 2020-05-28 | 2020-09-11 | 长安大学 | A structural mode shape testing system and method based on digital image recognition |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101714347A (en) * | 2008-10-06 | 2010-05-26 | 宏达国际电子股份有限公司 | Film display method and mobile electronic device thereof |
CN102098373A (en) * | 2009-12-10 | 2011-06-15 | Tcl集团股份有限公司 | Mobile terminal, screen display method and device thereof |
CN103309582A (en) * | 2012-03-08 | 2013-09-18 | 阿里巴巴集团控股有限公司 | Image stabilization display method of terminal device, and terminal device with image stabilization display function |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008139600A (en) * | 2006-12-01 | 2008-06-19 | Toshiba Corp | Display device |
CN102237069A (en) * | 2010-05-05 | 2011-11-09 | 中国移动通信集团公司 | Method and device for preventing screen picture from dithering |
-
2013
- 2013-11-26 CN CN201310615866.9A patent/CN104679483A/en active Pending
-
2014
- 2014-07-21 WO PCT/CN2014/082588 patent/WO2015078189A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101714347A (en) * | 2008-10-06 | 2010-05-26 | 宏达国际电子股份有限公司 | Film display method and mobile electronic device thereof |
CN102098373A (en) * | 2009-12-10 | 2011-06-15 | Tcl集团股份有限公司 | Mobile terminal, screen display method and device thereof |
CN103309582A (en) * | 2012-03-08 | 2013-09-18 | 阿里巴巴集团控股有限公司 | Image stabilization display method of terminal device, and terminal device with image stabilization display function |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113360804A (en) * | 2021-06-03 | 2021-09-07 | 北京百度网讯科技有限公司 | Interface display method and device, electronic equipment and storage medium |
CN113360804B (en) * | 2021-06-03 | 2024-02-27 | 北京百度网讯科技有限公司 | Interface display method, device, electronic equipment and storage medium |
CN113676667A (en) * | 2021-08-23 | 2021-11-19 | Oppo广东移动通信有限公司 | Inhibition ratio test method, apparatus, electronic equipment and storage medium |
CN113676667B (en) * | 2021-08-23 | 2023-08-18 | Oppo广东移动通信有限公司 | Inhibition ratio test method, device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN104679483A (en) | 2015-06-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7127149B2 (en) | IMAGE CORRECTION METHOD, IMAGE CORRECTION APPARATUS, AND ELECTRONIC DEVICE | |
EP3062286B1 (en) | Optical distortion compensation | |
KR20190032061A (en) | Electronic device performing image correction and operation method of thereof | |
CN110930335B (en) | Image processing method and electronic equipment | |
CN103763483A (en) | Method and device for shaking resistance in photo taking process of mobile terminal and mobile terminal | |
KR102452564B1 (en) | Apparatus and method for estimating optical image stabilization motion | |
JP2013058828A (en) | Smile determination device and method | |
WO2015078189A1 (en) | Interface adjustment method and mobile device | |
KR102452575B1 (en) | Apparatus and method for compensating variation of images caused by optical image stabilization motion | |
JP2016522437A (en) | Image display method, image display apparatus, terminal, program, and recording medium | |
JP7182020B2 (en) | Information processing method, device, electronic device, storage medium and program | |
KR102439502B1 (en) | Electronic device and method for processing image of the same | |
WO2017005070A1 (en) | Display control method and device | |
CN108564613A (en) | A kind of depth data acquisition methods and mobile terminal | |
KR20140142441A (en) | Shooting Method for Three-Dimensional Modeling And Electrical Device Thereof | |
KR20210058363A (en) | Electronic device for using depth information and operating method thereof | |
CN107560637A (en) | Wear display device calibration result verification method and wear display device | |
CN102611849A (en) | Anti-shaking system and anti-shaking method for mobile phone photographing | |
CN106370883B (en) | Speed measurement method and terminal | |
CN109302563B (en) | Anti-shake processing method and device, storage medium and mobile terminal | |
CN111225149A (en) | Optical Image Stabilization Synchronization Method for Gyroscope and Actuator Drive Circuit | |
CN108537836A (en) | A kind of depth data acquisition methods and mobile terminal | |
CN111127541A (en) | Vehicle size determination method and device and storage medium | |
CN108769529B (en) | An image correction method, electronic device and computer-readable storage medium | |
CN111444749A (en) | Method and device for identifying road surface guide mark and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 14865833 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 14865833 Country of ref document: EP Kind code of ref document: A1 |