WO2020155031A1 - 一种显示控制方法、电子火炬及存储介质 - Google Patents
一种显示控制方法、电子火炬及存储介质 Download PDFInfo
- Publication number
- WO2020155031A1 WO2020155031A1 PCT/CN2019/074210 CN2019074210W WO2020155031A1 WO 2020155031 A1 WO2020155031 A1 WO 2020155031A1 CN 2019074210 W CN2019074210 W CN 2019074210W WO 2020155031 A1 WO2020155031 A1 WO 2020155031A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- acceleration
- flame pattern
- electronic torch
- display control
- control method
- Prior art date
- Legal status (The legal status 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 status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
Definitions
- the present invention relates to the field of communication technology, in particular to a display control method, an electronic torch and a storage medium.
- the torch is a sacred symbol, and the torches are ignited at some large-scale sports games.
- the realization of the torch relay has become an important event to celebrate the opening of the games.
- the flame of a traditional torch is produced by burning chemical fuels, and the combustion of chemical fuels will produce exhaust gas, which has a negative impact on the environment. Therefore, the electronic torch came into being.
- the electronic torch displays the dynamic pattern of the flame by controlling the display screen to vividly simulate and restore the flame of the traditional torch, so as to fully demonstrate the beauty of civilization and technology.
- the purpose of the present invention is to provide a display control method, an electronic torch and a storage medium.
- the object of the present invention is achieved by adopting the following technical solutions: to provide a display control method applied to an electronic torch, the electronic torch includes a display screen, and the display control method includes: displaying a first flame pattern on the display screen; The movement information of the electronic torch; judging whether the movement state of the electronic torch has changed according to the detected movement information; and when the movement state of the electronic torch changes, the display screen is controlled to display according to the movement information The first flame pattern is switched to a second flame pattern, and the second flame pattern is different from the first flame pattern.
- the present invention also provides an electronic torch.
- the electronic torch includes: a display screen for displaying flame patterns; a sensor for detecting movement information of the electronic torch; and a memory for storing a computer-readable display control program And a processor, which implements the aforementioned display control method when the processor calls the display control program.
- the present invention also provides a storage medium that stores a computer-executable display control program, and when the computer-executable display control program is called by a computer, the computer executes the aforementioned display control method.
- the display control method, electronic torch and storage medium provided by the present invention can simulate the flame in the traditional torch by displaying the first flame pattern on the display screen when the electronic torch is turned on.
- a sensor is installed on the electronic torch, the sensor is used to detect the movement information of the electronic torch, and according to the detected movement information, it is judged whether the movement state of the electronic torch has changed.
- the control display screen switches the first flame pattern to the second flame pattern, where the first flame pattern and the second display pattern are different to simulate the movement of the flame of the traditional torch, the flame changes following the movement of the torch.
- FIG. 1 is a flow chart of the steps of a display control method provided by an embodiment of the present invention.
- Fig. 2 is a schematic diagram showing the first flame pattern on the display screen of the electronic torch.
- Fig. 3 is a flowchart of specific steps of step S103 in Fig. 1.
- FIG. 4A is a flowchart of specific steps of step S104 in FIG. 1.
- Fig. 4B is a graph showing the relationship between acceleration and tilt.
- Fig. 5A shows the second flame pattern displayed on the display screen when the electronic torch is along the first acceleration direction and the acceleration is a1.
- Fig. 5B is the second flame pattern displayed on the electronic torch display screen when the electronic torch is along the first acceleration direction and the acceleration is a2, and a2 is greater than a1.
- Figure 5C shows the second flame pattern displayed on the display screen when the electronic torch is in the second acceleration direction and the acceleration is a3.
- Figure 5D shows the second flame pattern displayed on the electronic torch display screen when the electronic torch is along the second acceleration direction, and the acceleration is a4, and
- FIG. 6 is a flowchart of steps of a display control method provided by another embodiment of the present invention.
- FIG. 7A is a flowchart of specific steps of step S106 in FIG. 6.
- Fig. 7B is a diagram showing the positional relationship between the third flame pattern and the first flame pattern and the second flame pattern displayed on the display screen when the electronic torch makes a decelerating movement after displaying the second flame pattern.
- Fig. 7C is a diagram showing the positional relationship between the third flame pattern and the first flame pattern and the second flame pattern displayed on the display screen when the electronic torch performs an accelerated motion after displaying the second flame pattern.
- Fig. 8 is a structural block diagram of an electronic torch provided by the present invention.
- the first electronic torch in the present invention may include other functions such as personal digital assistant (PDA) and/or portable multimedia player (PMP) functions such as portable communication devices, such as electronic paper, e-books, car monitors, tablet computers, smart phones , Smart watches, smart bracelets, etc.
- PDA personal digital assistant
- PMP portable multimedia player
- portable communication devices such as electronic paper, e-books, car monitors, tablet computers, smart phones , Smart watches, smart bracelets, etc.
- Exemplary embodiments of the portable electronic device include, but are not limited to, a portable first electronic torch equipped with other operating systems of iOS@Android@Windows Phone@ ⁇ .
- the first electronic torch generally supports multiple applications, such as one or more of the following: drawing applications, rendering applications, word processing applications, web page creation applications, disk editing applications, spreadsheet applications, games Apps, phone apps, video conferencing apps, email apps, instant messaging apps, exercise support apps, photo management apps, digital camera apps, digital video camera apps, web browsing apps, digital music Player application, and/or digital video player application.
- applications such as one or more of the following: drawing applications, rendering applications, word processing applications, web page creation applications, disk editing applications, spreadsheet applications, games Apps, phone apps, video conferencing apps, email apps, instant messaging apps, exercise support apps, photo management apps, digital camera apps, digital video camera apps, web browsing apps, digital music Player application, and/or digital video player application.
- the present invention provides a display control method, an electronic torch and a storage medium.
- the electronic torch has a display screen.
- a first flame pattern is displayed on the display screen to simulate the flames in a traditional torch.
- a sensor is installed on the electronic torch, the sensor is used to detect the movement information of the electronic torch, and according to the detected movement information, it is judged whether the movement state of the electronic torch has changed.
- the control display screen switches the first flame pattern to the second flame pattern, where the first flame pattern and the second display pattern are different to simulate the movement of the flame of the traditional torch, the flame changes following the movement of the torch.
- an embodiment of the present invention provides a display control method applied to an electronic torch.
- the display control method includes the steps:
- Step S101 Display a first flame pattern on the display screen.
- the electronic torch 10 includes a display screen 101 and a handle 102.
- the display screen 101 is used to display a flame pattern to simulate the flame of a traditional torch.
- the handle 102 is connected to the display screen 101 for holding by the user, so that the user can hold the electronic torch 10 through the handle 102.
- the display screen 101 of the electronic torch 10 is activated, the first flame pattern is displayed on the display screen 101.
- Step S102 Detect the movement information of the electronic torch.
- the electronic torch 10 is also provided with a detection unit 103, which is installed on the handle 102 or integrated in the display screen 101 for acquiring the movement information of the electronic torch 10.
- the detection unit 103 may be a speed sensor or an acceleration sensor.
- Step S103 Determine whether the movement state of the electronic torch has changed according to the detected movement information.
- the motion state of the electronic torch 10 refers to the state of the motion speed relative to the ground when the torch is in motion.
- the motion information of the electronic torch 10 includes acceleration, and the acceleration includes the magnitude and direction of the acceleration.
- the electronic torch 10 starts to move from a stationary state as an example for description.
- the speed of the electronic torch 10 can be obtained by detecting the acceleration of the electronic torch 10 by the detection unit 103, that is, by detecting the acceleration of the electronic torch 10 It can be known whether the movement state of the electronic torch 10 has changed.
- the detection unit 103 is an acceleration sensor, and the acceleration sensor is used to obtain the acceleration of the electronic torch 10.
- step S103 includes:
- Step S1031 Determine whether the electronic torch performs a variable speed motion according to the acceleration.
- the electronic torch 10 When the acceleration is greater than zero, the electronic torch 10 is determined to be accelerating. When the acceleration is less than zero, the electronic torch 10 is determined to be decelerating. When the acceleration is equal to zero, it is determined that the electronic torch 10 is moving at a constant speed or the electronic torch 10 is stationary. Wherein, when the electronic torch 10 performs a variable speed movement such as an acceleration movement or a deceleration movement, it is determined that the movement state of the electronic torch 10 has changed.
- a variable speed movement such as an acceleration movement or a deceleration movement
- Step S1032 When the electronic torch moves at a variable speed, it is determined that the movement state of the electronic torch has changed.
- the movement state refers to the state of the movement speed relative to the ground when the torch is moving.
- the electronic torch 10 performs a variable speed movement such as acceleration or deceleration, the speed and/or direction of the electronic torch 10 changes, that is, it is determined
- the movement state of the electronic torch 10 changes.
- Step S104 When the motion state of the electronic torch changes, control the display screen to switch the displayed first flame pattern to a second flame pattern according to the motion information, and the second flame pattern is the same as the second flame pattern.
- the first flame pattern is different.
- the first flame pattern is the flame pattern displayed when the electronic torch 10 is at rest.
- the acceleration includes the magnitude and direction of acceleration, and the direction of acceleration includes the first acceleration direction and the second acceleration direction.
- the first acceleration direction and the second acceleration direction are opposite to each other.
- the acceleration direction of the electronic torch 10 is the speed direction of the electronic torch 10.
- step S104 includes:
- Step S1041 Calculate the amount of tilt according to the magnitude and direction of acceleration.
- the amount of inclination is calculated according to the magnitude of acceleration and the direction of acceleration, which specifically includes, preset the corresponding relationship between the magnitude of acceleration, direction of acceleration, and amount of inclination, and calculate the corresponding amount of inclination by obtaining the magnitude and direction of acceleration. .
- Step S1042 Obtain a flame pattern corresponding to the tilt amount as the second flame pattern according to the corresponding relationship between the tilt amount and the preset tilt amount and flame pattern.
- the corresponding relationship between the inclination amount and the flame pattern is preset, and after the inclination amount is calculated by obtaining the magnitude and direction of acceleration, the flame pattern corresponding to the inclination amount is obtained as the second flame pattern.
- the acceleration direction is the first acceleration direction and the acceleration magnitude is a1
- the corresponding tilt is calculated as ⁇ 1
- the flame pattern corresponding to ⁇ 1 As shown in FIG. 5A, the flame pattern is shifted in the direction opposite to the acceleration, and the flame pattern corresponding to the inclination amount ⁇ 1 is used as the second flame pattern.
- the acceleration direction is the first acceleration direction
- the acceleration magnitude is a2, and a2 is greater than a1
- the calculated inclination amount is ⁇ 2
- the flame pattern corresponding to ⁇ 2 is shown in Figure 5B.
- the flame pattern shifts in the direction opposite to the acceleration ,
- the flame pattern corresponding to the inclination amount ⁇ 2 is used as the second flame pattern.
- the tilt amount of the second flame pattern in the second acceleration direction is greater than the tilt amount of the second flame pattern in the second acceleration direction when the acceleration magnitude is a1.
- the acceleration direction is the second acceleration direction and the acceleration magnitude is a3, that is, when the electronic torch 10 is accelerating on the second acceleration square, the calculated inclination amount is ⁇ 3, and the flame pattern corresponding to ⁇ 3 is shown in Figure 5C , The flame pattern shifts to the direction opposite to the acceleration, and the flame pattern corresponding to the inclination amount ⁇ 3 is used as the second flame pattern.
- the acceleration direction is the second acceleration direction
- the acceleration magnitude is a4
- is greater than
- the calculated inclination is ⁇ 4
- the flame pattern corresponding to ⁇ 4 is shown in Figure 5D.
- the flame pattern is opposite to the acceleration The direction is shifted, and the flame pattern corresponding to the tilt amount ⁇ 4 is used as the second flame pattern.
- the acceleration magnitude is a4
- the tilt amount of the second flame pattern in the first acceleration direction is greater than the tilt amount of the second flame pattern in the first acceleration direction when the acceleration magnitude is a3.
- the greater the absolute value of the acceleration the greater the inclination of the second flame pattern in the direction opposite to the acceleration, that is, the greater the deviation of the second flame pattern from the first flame pattern.
- Step S1043 Display the acquired second flame pattern.
- the display control method further includes:
- Step S105 Detect whether the acceleration changes.
- the detection unit 103 detects whether the acceleration of the electronic torch 10 changes.
- Step S106 When the acceleration changes, control the display screen to switch the displayed second flame pattern to the third flame pattern, and the third flame pattern is different from the second flame pattern.
- step S106 includes:
- Step S1061 When the acceleration changes, obtain the acceleration magnitude and acceleration direction of the acceleration.
- the direction of acceleration is obtained to determine whether the electronic torch 10 is accelerating or decelerating.
- the magnitude of the acceleration is obtained to determine the amount of speed change per unit time when the electronic torch 10 is accelerating or decelerating. .
- Step S1062 Calculate the tilt compensation amount according to the corresponding relationship between the acceleration magnitude, the acceleration direction and the preset acceleration magnitude, the acceleration direction and the tilt compensation amount.
- the corresponding relationship between the acceleration magnitude, acceleration direction, and tilt compensation amount is preset, and the corresponding tilt compensation amount can be calculated by obtaining the acceleration magnitude and acceleration direction.
- Step S1063 Obtain a third flame pattern according to the tilt compensation amount and the corresponding relationship between the preset tilt compensation amount and the third flame pattern.
- the corresponding relationship between the tilt compensation amount and the third flame pattern is preset, and the corresponding third flame pattern is obtained by obtaining the tilt compensation amount.
- Step S1064 controlling the display screen to switch the displayed second flame pattern to the third flame pattern.
- the movement information of the electronic torch 10 also includes speed, where the speed includes the magnitude and direction of the speed.
- the speed direction is the direction of movement of the electronic torch 10.
- the electronic torch 10 10 After the second flame pattern is displayed on the display screen 101, the electronic torch 10 makes a decelerating motion, and the display position of the third flame pattern is between the display position of the second flame pattern and the display position of the first flame pattern, as shown in FIG. 7B .
- the electronic torch 10 further includes a processor 104 and a memory 105.
- the memory 104, the display screen 101, and the detection unit 103 are connected to the processor 105 through a bus 106.
- the detection unit 103 is used to detect movement information of the electronic torch 10, and the movement information includes the speed and/or acceleration of the electronic torch 10.
- the memory 104 includes at least one of the following: a random access memory, a non-volatile memory, and an external memory.
- the memory 104 can be used to store a computer-executable program.
- the computer-executable program includes a computer-executable display control program.
- the processor 105 executes any of the foregoing display control methods by calling a computer-executable display control program stored in the memory 104.
- the memory 104 mainly includes a program storage area and a data storage area.
- the program storage area can store an operating system, an application program required by at least one function, etc.; the data storage area can store data created according to the use of the terminal, etc., that is, the memory 104 is a computer-readable storage medium.
- the processor 105 is the control center of the electronic torch 10, which uses various interfaces and lines to connect the various parts of the entire electronic torch 10, and calls the programs and/or units stored in the memory 104 by running or executing the programs and/or units stored in the memory 104 104 to perform various functions of the terminal device and process data.
- the processor 105 can be composed of an integrated circuit (Integrated Circuit, IC for short), for example, can be composed of a single packaged IC, or can be composed of multiple packaged ICs with the same function or different functions.
- the processor 105 may only include a central processing unit, or a combination of a CPU, a digital signal processor (Digital Signal Processor, DSP for short), a GPU, and various control chips.
- the CPU may be a single computing core or may include multiple computing cores.
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)
- Controls And Circuits For Display Device (AREA)
- Pharmaceuticals Containing Other Organic And Inorganic Compounds (AREA)
Abstract
本发明公开了一种显示控制方法、电子火炬及存储介质,该显示控制方法,应用于电子火炬,所述电子火炬包括显示屏,所述显示控制方法包括:显示第一火焰图案于所述显示屏;检测所述电子火炬的运动信息;根据检测到的运动信息判断所述电子火炬的运动状态是否发生变化;以及当所述电子火炬的运动状态发生变化时,根据所述运动信息控制所述显示屏将显示的所述第一火焰图案切换为第二火焰图案,所述第二火焰图案与所述第一火焰图案不同。
Description
本发明涉及通信技术领域,尤其涉及一种显示控制方法、电子火炬及存储介质。
火炬作为一种神圣的象征,在一些大型的运动会上火炬相互点燃,实现火炬传递已经转变成为庆祝运动会开幕的一项重要活动。
传统火炬的火苗是通过燃烧化学燃料产生,而化学燃料的燃烧会产生废气,对环境造成不良影响。因此,电子火炬应运而生,电子火炬是通过控制显示屏显示火苗的动态图案,从而生动的模拟还原传统火炬的火苗,以将人文之美和科技之美展现得淋漓尽致。
现有的电子火炬在跟随使用者运动过程中,其显示的火苗无法模拟还原传统火炬的火苗在火炬运动过程中的状态变化。
发明内容
为了克服现有技术的不足,本发明的目的在于提供一种显示控制方法、电子火炬及存储介质。
本发明的目的采用如下技术方案实现:提供一种显示控制方法,应用于电子火炬,所述电子火炬包括显示屏,所述显示控制方法包括:显示第一火焰图案于所述显示屏;检测所述电子火炬的运动信息;根据检测到的运动信息判断所述电子火炬的运动状态是否发生变化;以及当所述电子火炬的运动状态发生变化时,根据所述运动信息控制所述显示屏将显示的所述第一火焰图案切换为第二火焰图案,所述第二火焰图案与所述第一火焰图案不同。
本发明还提供一种电子火炬,所述电子火炬包括:显示屏,用于显示火焰图案的显示屏;传感器,用于检测电子火炬的运动信息;存储器,用于储存计算机可读的显示控制程序;以及处理器,所述处理器调用所述显示控制程序时,实现前述的显示控制方法。
本发明还提供一种存储介质,所述存储介质存储有计算机可执行的显示控制程序,所述计算机可执行的显示控制程序在被计算机调用时,使所述计算机执行前述的显示控制方法。
与现有技术相比,本发明所提供的一种显示控制方法、电子火炬及存储介质,通过在电子火炬开启时,显示第一火焰图案于显示屏,以模拟传统火炬中的火苗。同时,在电子火炬上设置传感器,利用传感器检测电子火炬的运动信息,并根据检测到的运动信息判断电子火炬的运动状态是否发生变化,当电子火炬的运动发生变化时,根据电子火炬的运动信息控制显示屏将第一火焰图案切换为第二火焰图案,其中,第一火焰图案和第二显示图案不相同,以模拟传统火炬的火苗在运动过程中,火苗跟随火炬运动而发生变化。
图1为本发明一实施例提供的显示控制方法的步骤流程图。
图2为显示第一火焰图案于电子火炬的显示屏的示意图。
图3为图1中的步骤S103的具体步骤流程图。
图4A为图1中的步骤S104的具体步骤流程图。
图4B为加速度和倾斜量之间的曲线关系图。
图5A为电子火炬沿第一加速度方向,且加速度大小为a1时,显示屏所显示的第二火焰图案。
图5B为电子火炬沿第一加速度方向,且加速度大小为a2,a2大于a1时,电子火炬显示屏所显示的第二火焰图案。
图5C为电子火炬沿第二加速度方向,且加速度大小为a3时,显示屏所显示 的第二火焰图案。
图5D为电子火炬沿第二加速度方向,且加速度大小为a4,且|a4|大于|a3|时,电子火炬显示屏所显示的第二火焰图案。
图6为本发明另一实施例提供的显示控制方法的步骤流程图。
图7A为图6中的步骤S106的具体步骤流程图。
图7B为电子火炬在显示第二火焰图案后做减速运动时,显示屏所显示的第三火焰图案与第一火焰图案、第二火焰图案之间的位置关系图。
图7C为电子火炬在显示第二火焰图案后做加速运动时,显示屏所显示的第三火焰图案与第一火焰图案、第二火焰图案之间的位置关系图。
图8为本发明提供的一种电子火炬结构框图。
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
需要说明的是,在本发明中涉及“第一”、“第二”等的描述仅用于描述目的, 而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。
本发明中的第一电子火炬可包含其它功能诸如个人数字助理(PDA)和/或便携式多媒体播放器(PMP)功能的便携式通信设备,诸如电子纸、电子书、车载显示器、平板电脑、智能手机、智能手表、智能手环等。便携式电子设备的示例性实施例包括但不限于搭载iOS@Android@Windows Phone@者其它操作系统的便携式第一电子火炬。第一电子火炬通常支持多种应用程序,诸如以下中的一种或多种:画图应用程序、呈现应用程序、文字处理应用程序、网页创建应用程序、盘编辑应用程序、电子表格应用程序、游戏应用程序、电话应用程序、视频会议应用程序、电子邮件应用程序、即时消息应用程序、锻炼支持应用程序、相片管理应用程序、数字相机应用程序、数字视频摄像机应用程序、网络浏览应用程序、数字音乐播放器应用程序、和/或数字视频播放器应用程序。
本发明提供有一种一种显示控制方法、电子火炬及存储介质,本发明申请中,电子火炬具有显示屏,电子火炬开启时,显示第一火焰图案于显示屏,以模拟传统火炬中的火苗。同时,在电子火炬上设置传感器,利用传感器检测电子火炬的运动信息,并根据检测到的运动信息判断电子火炬的运动状态是否发生变化,当电子火炬的运动发生变化时,根据电子火炬的运动信息控制显示屏将第一火焰图案切换为第二火焰图案,其中,第一火焰图案和第二显示图案不相同,以模拟传统火炬的火苗在运动过程中,火苗跟随火炬运动而发生变化。
请参阅图1,本发明一实施例提供一种显示控制方法,应用于电子火炬,该 显示控制方法包括步骤:
步骤S101:显示第一火焰图案于所述显示屏。
请参阅图2,电子火炬10包括显示屏101以及手柄102其中,显示屏101用于显示火焰图案,以模拟传统火炬的火苗。手柄102与显示屏101连接,用于为用户握持,如此,用户可以通过手柄102握持该电子火炬10。电子火炬10的显示屏101启动时,显示第一火焰图案于该显示屏101。
步骤S102:检测所述电子火炬的运动信息。
电子火炬10还设置有检测单元103,检测单元103安装于手柄102或集成于显示屏101,用于获取电子火炬10的运动信息,该检测单元103可以是速度传感器或加速度传感器。
步骤S103:根据检测到的运动信息判断所述电子火炬的运动状态是否发生变化。
电子火炬10的运动状态是指火炬进行运动时相对地面的运动速度的状态,其中,电子火炬10的运动信息包括加速度,加速度包括加速度大小和加速度方向。
本实施例中,以电子火炬10从静止状态开始运动为例进行说明,通过检测单元103检测该电子火炬10的加速度即可获取该电子火炬10的速度,也即通过检测该电子火炬10的加速度即可获知该电子火炬10的运动状态是否发生变化。
具体地,检测单元103为加速度传感器,利用加速度传感器获取电子火炬10的加速度。
请参阅图3,具体地,步骤S103包括:
步骤S1031:根据加速度判断所述电子火炬是否进行变速运动。
当加速度大于零时,判断电子火炬10进行加速运动,当加速度小于零时,判断电子火炬10进行减速运动,加速度等于零时,判断电子火炬10进行匀速运动或该电子火炬10静止。其中,电子火炬10进行加速运动或减速运动等变速运动时,判断该电子火炬10的运动状态发生改变。
步骤S1032:当所述电子火炬进行变速运动时,判断出所述电子火炬的运动状态发生变化。
其中,运动状态是指火炬进行运动时相对地面的运动速度的状态,当电子火炬10进行加速运动或减速运动等变速运动时,该电子火炬10的速度大小和/或方向发生改变,即判断该电子火炬10的运动状态发生改变。
当判断电子火炬10进行匀速运动时,判断该电子火炬10的运动状态未发生改变。
步骤S104:当所述电子火炬的运动状态发生变化时,根据所述运动信息控制所述显示屏将显示的所述第一火焰图案切换为第二火焰图案,所述第二火焰图案与所述第一火焰图案不同。
第一火焰图案为电子火炬10静止时显示的火焰图案,加速度包括加速度大小和加速度方向,加速度方向包括第一加速度方向和第二加速度方向,第一加速度方向和第二加速度方向互为相反。
当电子火炬10从静止开始运动时,电子火炬10的加速度方向即为电子火炬10的速度方向。
请参阅图4A,具体地,步骤S104包括:
步骤S1041:根据所述加速度大小和加速度方向计算出倾斜量。
部分实施例中,根据所述加速度大小和加速度方向计算出倾斜量,具体包括,预设加速度大小、加速度方向和倾斜量的对应关系,通过获取加速度大小 和加速度方向,从而计算出对应的倾斜量。
在部分实施例中,当所述加速度方向为第一加速度方向时,根据第一公式计算出所述倾斜量,其中,所述第一公式为:θ=(2θ
m)/π*arctan|a|,其中,θ用于表示倾斜量,θ≥0,a用于表示加速度,θ
m为预设值,如图4B所示。
当所述加速度方向为第二加速度方向时,根据第二公式计算出所述倾斜量,其中,所述第二公式为:θ=-(2θ
m)/π*arctan|a|,其中,θ用于表示倾斜量,θ<0,a用于表示加速度,θ
m为预设值,如图4B所示。
步骤S1042:根据所述倾斜量与预设所述倾斜量与火焰图案的对应关系,获取与所述倾斜量所对应的火焰图案作为所述第二火焰图案。
预设倾斜量和火焰图案的对应关系,通过获取加速度大小和加速度方向计算出倾斜量后,获取根据倾斜量所对应的火焰图案作为所述第二火焰图案。
例如,当加速度方向为第一加速度方向,加速度大小为a1时,即电子火炬10在第一加速度方向上做加速度为a1的加速运动时,计算出对应的倾斜量为θ1,θ1对应的火焰图案如图5A所示,该火焰图案向与加速度相反的方向偏移,将该对应倾斜量为θ1的火焰图案作为第二火焰图案。
当加速度方向为第一加速度方向,加速度大小为a2,且a2大于a1时,计算出对应的倾斜量为θ2,θ2对应的火焰图案如图5B所示,火焰图案向与加速度相反的方向偏移,将该对应倾斜量为θ2的火焰图案作为第二火焰图案。且加速度大小为a2时,第二火焰图案向第二加速度方向的倾斜量大于加速度大小为a1时第二火焰图案向第二加速度方向的倾斜量。
当加速度方向为第二加速度方向,加速度大小为a3时,即电子火炬10在做第二加速度方形上做加速运动时,计算出对应的倾斜量为θ3,θ3对应的火焰图案如图5C所示,该火焰图案向与加速度相反的方向偏移,将该对应倾斜量为 θ3的火焰图案作为第二火焰图案。
当加速度方向为第二加速度方向,加速度大小为a4,且|a4|大于|a3|时,计算出倾斜量为θ4,θ4对应的火焰图案如图5D所示,该火焰图案向与加速度相反的方向偏移,将该对应倾斜量为θ4的火焰图案作为第二火焰图案。且加速度大小为a4时,第二火焰图案向第一加速度方向的倾斜量大于加速度大小为a3时第二火焰图案向第一加速度方向的倾斜量。
即加速度的绝对值越大,第二火焰图案向与加速度相反方向的倾斜量越大,也即第二火焰图案相对第一火焰图案的偏移量越大。
步骤S1043:显示获取到的所述第二火焰图案。
显示第二火焰图案于显示屏,以替换第一火焰图案。
请参阅图6,在部分实施例中,在显示所述第二火焰图案之后,所述显示控制方法还包括:
步骤S105:检测所述加速度是否变化。
当电子火炬10的显示屏101显示第二火焰图案时,通过检测单元103,检测电子火炬10的加速度是否发生变化。
步骤S106:当所述加速度变化时,控制所述显示屏将显示的所述第二火焰图案切换为所述第三火焰图案,所述第三火焰图案与第二火焰图案不同。
请参阅图7A,部分实施例中,步骤S106包括:
步骤S1061:当所述加速度变化时,获取所述加速度的加速度大小和加速度方向。
当加速度变化时,获取加速度方向,从而判断电子火炬10在做加速运动或减速运动,同时获取加速度的加速度大小,从而判断电子火炬10在做加速运动或减速运动时在单位时间内的速度变化量。
步骤S1062:根据加速度大小、加速度方向及预设加速度大小、加速度方向和倾斜补偿量之间的对应关系,计算出倾斜补偿量。
预设加速度大小、加速度方向和倾斜补偿量之间的对应关系,通过获取加速度大小、加速度方向即可计算出对应的倾斜补偿量。
步骤S1063:根据所述倾斜补偿量及预设倾斜补偿量和第三火焰图案的对应关系,获取第三火焰图案。
预设倾斜补偿量和第三火焰图案的对应关系,通过获取倾斜补偿量从而获得对应的第三火焰图案。
步骤S1064:控制所述显示屏将显示的所述第二火焰图案切换为所述第三火焰图案。
具体地,电子火炬10的运动信息还包括速度,其中,速度包括速度大小和速度方向,该速度方向即是电子火炬10的运动方向,当电子火炬10的速度方向和加速度方向相反时,电子火炬10在显示屏101显示第二火焰图案后,电子火炬10做减速运动,第三火焰图案的显示位置位于第二火焰图案的显示位置和第一火焰图案的显示位置之间,如图7B所示。
当电子火炬10的速度方向和加速度方向相同时,电子火炬10在显示屏101显示第二火焰图案后,电子火炬10做加速运动,第三火焰图案的显示位置向远离第二火焰图案的显示位置一侧偏移,且偏移方向与速度方向或加速度方向相反,如图7C所示。
请参阅图8,电子火炬10还包括处理器104以及存储器105。存储器104、显示屏101以及检测单元103通过总线106与处理器105连接。
检测单元103用于检测电子火炬10的运动信息,该运动信息包括电子火炬10的速度和/或加速度。
存储器104包括以下至少一种:随机存取存贮器、非易失性存储器外部存储器,所述存储器104可用于存储计算机可执行程序,该计算机可执行程序包括计算机可执行的显示控制程序,所述处理器105通过调用存储在所述存储器104中的计算机可执行的显示控制程序,从而执行上述任意一种显示控制方法。存储器104主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序等;数据存储区可存储根据终端的使用所创建的数据等,也即存储器104为计算机可读存储介质。
处理器105为电子火炬10的控制中心,利用各种接口和线路连接整个电子火炬10的各个部分,通过运行或执行存储在所述存储器104内的程序和/或单元,调用存储在所述存储器104内的数据,以执行所述终端设备的各种功能和处理数据。所述处理器105可以由集成电路(Integrated Circuit,简称IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器105可以仅包括中央处理器,也可以是CPU、数字信号处理器(Digital Signal Processor,简称DSP)、GPU及各种控制芯片的组合。在本发明实施方式中,CPU可以是单运算核心,也可以包括多运算核心。
上述实施方式仅为本发明的优选实施方式,不能以此来限定本发明保护的范围,本领域的技术人员在本发明的基础上所做的任何非实质性的变化及替换均属于本发明所要求保护的范围。
Claims (10)
- 一种显示控制方法,应用于电子火炬,所述电子火炬包括显示屏,其特征在于:所述显示控制方法包括:显示第一火焰图案于所述显示屏;检测所述电子火炬的运动信息;根据检测到的运动信息判断所述电子火炬的运动状态是否发生变化;以及当所述电子火炬的运动状态发生变化时,根据所述运动信息控制所述显示屏将显示的所述第一火焰图案切换为第二火焰图案,所述第二火焰图案与所述第一火焰图案不同。
- 如权利要求1所述的显示控制方法,其特征在于,所述检测所述电子火炬的运动信息具体包括:利用加速度传感器获取所述电子火炬的加速度;所述根据所述检测到的运动信息判断所述电子火炬的运动状态是否发生变化具体包括:根据所述加速度判断所述电子火炬是否进行变速运动;以及当所述电子火炬进行变速运动时,判断出所述电子火炬的运动状态发生变化。
- 如权利要求2所述的显示控制方法,其特征在于,所述第一火焰图案为所述电子火炬静止时显示的火焰图案;所述加速度包括加速度大小和加速度方向,根据所述运动信息调整所述第一火焰图案为所述第二火焰图案具体包括:根据所述加速度大小和加速度方向计算出倾斜量;根据所述倾斜量与预设所述倾斜量与火焰图案的对应关系,获取与所述倾斜量所对应的火焰图案作为所述第二火焰图案;以及显示获取到的所述第二火焰图案。
- 如权利要求3所述的显示控制方法,其特征在于,所述加速度方向包括互为相反的为第一加速度方向和第二加速度方向,所述根据所述加速度大小和加速度方向计算出倾斜量包括:当所述加速度方向为第一加速度方向时,根据第一公式计算出所述倾斜量,其中,所述第一公式为:θ=(2θ m)/π*arctan|a|,其中,θ用于表示倾斜量,θ≥0,a用于表示加速度,θ m为预设值。
- 如权利要求3所述的显示控制方法,其特征在于,所述加速度方向包括互为相反的为第一加速度方向和第二加速度方向,所述根据所述加速度大小和加速度方向计算出倾斜量包括:当所述加速度方向为第二加速度方向时,根据第二公式计算出所述倾斜量,其中,所述第二公式为:θ=-(2θ m)/π*arctan|a|,其中,θ用于表示倾斜量,θ<0,a用于表示加速度,θ m为预设值。
- 如权利要求3所述的显示控制方法,其特征在于,在显示所述第二火焰图案之后,所述显示控制方法还包括:检测所述加速度是否变化;当所述加速度变化时,控制所述显示屏将显示的所述第二火焰图案切换为所述第三火焰图案,所述第三火焰图案与所述第二火焰图案不同。
- 如权利要求6所述的显示控制方法,其特征在于,所述控制所述显示屏将显示的所述第二火焰图案切换为所述第三火焰图案,包括:当所述加速度变化时,获取所述加速度的加速度大小和加速度方向;根据加速度大小、加速度方向及预设加速度大小、加速度方向和倾斜补偿量之间的对应关系,计算出倾斜补偿量;根据所述倾斜补偿量及预设倾斜补偿量和第三火焰图案的对应关系,获取第三火焰图案;控制所述显示屏将显示的所述第二火焰图案切换为所述第三火焰图案。
- 如权利要求7所述的显示控制方法,其特征在于,所述运动信息还包括速度方向,所述显示控制方法还包括:当所述速度方向和所述加速度方向相反时,所述第三火焰图案的显示位置位于所述第二火焰图案的显示位置和第一火焰图案的显示位置之间。
- 一种电子火炬,其特征在于,所述电子火炬包括:显示屏,用于显示火焰图案的显示屏;传感器,用于检测电子火炬的运动信息;存储器,用于储存计算机可读的显示控制程序;以及处理器,所述处理器调用所述显示控制程序时,实现如权利要求1-8任意一项所述的显示控制方法。
- 一种存储介质,其特征在于,所述存储介质存储有计算机可执行的显示控制程序,所述计算机可执行的显示控制程序在被计算机调用时,使所述计算机执行如权利要求1-8任意一项所述的显示控制方法。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201980074381.9A CN113260972A (zh) | 2019-01-31 | 2019-01-31 | 一种显示控制方法、电子火炬及存储介质 |
| PCT/CN2019/074210 WO2020155031A1 (zh) | 2019-01-31 | 2019-01-31 | 一种显示控制方法、电子火炬及存储介质 |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2019/074210 WO2020155031A1 (zh) | 2019-01-31 | 2019-01-31 | 一种显示控制方法、电子火炬及存储介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020155031A1 true WO2020155031A1 (zh) | 2020-08-06 |
Family
ID=71840731
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2019/074210 Ceased WO2020155031A1 (zh) | 2019-01-31 | 2019-01-31 | 一种显示控制方法、电子火炬及存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN113260972A (zh) |
| WO (1) | WO2020155031A1 (zh) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113075999A (zh) * | 2021-02-22 | 2021-07-06 | 余军涛 | 一种线上火炬传递用移动终端、系统及方法 |
| CN113075998A (zh) * | 2021-02-22 | 2021-07-06 | 余军涛 | 一种线上火炬传递方法及其使用的智能运动设备和服务器 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103019549A (zh) * | 2012-11-28 | 2013-04-03 | 深圳市中兴移动通信有限公司 | 移动终端内容滚动的方法和装置 |
| CN106293561A (zh) * | 2015-05-28 | 2017-01-04 | 北京智谷睿拓技术服务有限公司 | 显示控制方法和装置、显示设备 |
| CN107678660A (zh) * | 2011-10-06 | 2018-02-09 | 索尼公司 | 显示控制装置 |
| WO2018109988A1 (ja) * | 2016-12-16 | 2018-06-21 | シャープ株式会社 | 表示装置、表示制御方法及びプログラム |
| CN108806566A (zh) * | 2018-06-07 | 2018-11-13 | 叶华秀 | 运动显示控制方法、装置以及电子设备 |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108391002A (zh) * | 2018-02-05 | 2018-08-10 | 广东欧珀移动通信有限公司 | 显示控制方法和装置、终端、计算机可读存储介质 |
-
2019
- 2019-01-31 WO PCT/CN2019/074210 patent/WO2020155031A1/zh not_active Ceased
- 2019-01-31 CN CN201980074381.9A patent/CN113260972A/zh active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107678660A (zh) * | 2011-10-06 | 2018-02-09 | 索尼公司 | 显示控制装置 |
| CN103019549A (zh) * | 2012-11-28 | 2013-04-03 | 深圳市中兴移动通信有限公司 | 移动终端内容滚动的方法和装置 |
| CN106293561A (zh) * | 2015-05-28 | 2017-01-04 | 北京智谷睿拓技术服务有限公司 | 显示控制方法和装置、显示设备 |
| WO2018109988A1 (ja) * | 2016-12-16 | 2018-06-21 | シャープ株式会社 | 表示装置、表示制御方法及びプログラム |
| CN108806566A (zh) * | 2018-06-07 | 2018-11-13 | 叶华秀 | 运动显示控制方法、装置以及电子设备 |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113075999A (zh) * | 2021-02-22 | 2021-07-06 | 余军涛 | 一种线上火炬传递用移动终端、系统及方法 |
| CN113075998A (zh) * | 2021-02-22 | 2021-07-06 | 余军涛 | 一种线上火炬传递方法及其使用的智能运动设备和服务器 |
| CN113075999B (zh) * | 2021-02-22 | 2024-03-29 | 余军涛 | 一种线上火炬传递用移动终端、系统及方法 |
| CN113075998B (zh) * | 2021-02-22 | 2024-03-29 | 余军涛 | 一种线上火炬传递方法及其使用的智能运动设备和服务器 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113260972A (zh) | 2021-08-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9733716B2 (en) | Proxy gesture recognizer | |
| CN103258491B (zh) | 一种控制电子设备的方法及电子设备 | |
| WO2020000969A1 (zh) | 信息流展示面板的控制方法、装置、终端设备及存储介质 | |
| CN106227344A (zh) | 电子设备及其控制方法 | |
| CN103164156B (zh) | 便携式终端的触摸输入方法和设备 | |
| US10152220B2 (en) | System and method to control a touchscreen user interface | |
| JP2014511157A (ja) | 複数のタッチスクリーンを有する装置及びその画面変更方法 | |
| CN102906682A (zh) | 使用触摸检测表面的电子设备和方法 | |
| KR20130005733A (ko) | 터치 내비게이션 기능을 운용하는 방법 및 이를 지원하는 모바일 단말기 | |
| CN103593180B (zh) | 一种在应用程序中添加文件的方法和装置 | |
| CN108536357B (zh) | 应用显示方法、装置、存储介质及电子设备 | |
| KR101504310B1 (ko) | 사용자 단말 및 이의 인터페이싱 방법 | |
| CN103825998A (zh) | 能根据体感操作而自动接听或挂断来电的方法 | |
| CN105549878A (zh) | 电子书翻页控制方法及设备 | |
| US9495014B2 (en) | Portable playback device, and control method for portable playback device, program, and information storage medium capable of facilitating an operation for changing a reproduction of content data | |
| WO2020155031A1 (zh) | 一种显示控制方法、电子火炬及存储介质 | |
| TW202145206A (zh) | 單手操作模式開啟方法、終端及電腦儲存媒介 | |
| CN103777755A (zh) | 一种信息处理方法及电子设备 | |
| WO2022227784A1 (zh) | 一种图片显示方法、装置,设备及存储介质 | |
| US20190102058A1 (en) | Media resource loading method and terminal | |
| WO2021232956A1 (zh) | 设备控制方法、装置、存储介质及电子设备 | |
| CN103135907A (zh) | 一种用户终端设备浏览界面内容的方法及其系统 | |
| CN102662581A (zh) | 以鼠标输入进行控制的方法及系统 | |
| US10241659B2 (en) | Method and apparatus for adjusting the image display | |
| CN104503697A (zh) | 一种信息处理方法及电子设备 |
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: 19912331 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: 19912331 Country of ref document: EP Kind code of ref document: A1 |