WO2020082334A1 - 滑动轨迹校正方法、电子装置及计算机可读存储介质 - Google Patents

滑动轨迹校正方法、电子装置及计算机可读存储介质 Download PDF

Info

Publication number
WO2020082334A1
WO2020082334A1 PCT/CN2018/112101 CN2018112101W WO2020082334A1 WO 2020082334 A1 WO2020082334 A1 WO 2020082334A1 CN 2018112101 W CN2018112101 W CN 2018112101W WO 2020082334 A1 WO2020082334 A1 WO 2020082334A1
Authority
WO
WIPO (PCT)
Prior art keywords
point
length
sliding
line segment
projection
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
Application number
PCT/CN2018/112101
Other languages
English (en)
French (fr)
Inventor
刘佳庆
韩超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Royole Technologies Co Ltd
Original Assignee
Shenzhen Royole Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Royole Technologies Co Ltd filed Critical Shenzhen Royole Technologies Co Ltd
Priority to PCT/CN2018/112101 priority Critical patent/WO2020082334A1/zh
Priority to CN201880096057.2A priority patent/CN112771482A/zh
Publication of WO2020082334A1 publication Critical patent/WO2020082334A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means

Definitions

  • the present application relates to the technical field of mobile terminals, and in particular, to a sliding trajectory correction method, an electronic device, and a computer-readable storage medium.
  • the sliding operation is used.
  • the volume can be adjusted by a sliding operation or the picture can be enlarged by a sliding operation.
  • the sliding distance needs to be calculated, and the corresponding adjustment range determined according to the sliding distance.
  • the display screen of the existing electronic device is in a flat state.
  • the sliding visual distance is the same as the actual distance acquired by the electronic device.
  • the actual sliding length on the curved surface is greater than the user's visual distance, which in turn causes the actual adjustment range to be different from the user's expected user experience.
  • Embodiments of the present application disclose a sliding trajectory correction method, an electronic device, and a computer-readable storage medium, which can correct the sliding trajectory so that the length of the corrected sliding trajectory matches the visual length of the user, which improves the user Experience.
  • a sliding trajectory correction method disclosed in an embodiment of the present application is applied to an electronic device, and the electronic device includes a curved touch screen; the sliding trajectory correction method includes the following steps:
  • the sliding trajectory includes an arc
  • the sliding trajectory is corrected.
  • An electronic device disclosed in an embodiment of the present application includes a curved touch screen, a memory, and a processor.
  • the memory stores a correction program for a sliding trajectory correction method.
  • the processor runs the correction program for the sliding trajectory correction method to perform the following operations :
  • the sliding trajectory includes an arc
  • the sliding trajectory is corrected.
  • a computer-readable storage medium disclosed in an embodiment of the present application a correction program of a sliding track correction method is stored on the computer-readable storage medium, and the correction program of the sliding track correction method is executed by a processor to realize the above-mentioned sliding The steps of the trajectory correction method.
  • the slide trajectory correction method, electronic device, and computer-readable storage medium of the present application can correct the slide trajectory when it is determined that the slide trajectory includes an arc, so that the length of the corrected slide trajectory is visually The length matches, so that the result caused by the sliding operation matches the user's expectation, and the user experience is improved.
  • FIG. 1 is a flowchart of a sliding trajectory correction method disclosed in an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a sliding trajectory and a corresponding straight line segment disclosed in an embodiment of the present application.
  • FIG. 3 is an algorithm flowchart of a straight line segment length corresponding to a sliding trajectory disclosed in an embodiment of the present application.
  • FIG. 4 is a schematic diagram of sliding track projection disclosed in an embodiment of the present application.
  • FIG. 5 is a schematic diagram of sliding track projection disclosed in another embodiment of the present application.
  • FIG. 6 is a schematic diagram of a straight line segment corresponding to a sliding track disclosed in another embodiment of the present application.
  • FIG. 7 is a flowchart of a sliding trajectory correction method disclosed in another embodiment of the present application.
  • FIG. 8 is a structural block diagram of an electronic device disclosed in an embodiment of the present application.
  • FIG. 1 is a flowchart of a sliding trajectory correction method disclosed in an embodiment of the present application.
  • the sliding trajectory correction method is applied to an electronic device, and the electronic device includes a curved touch screen.
  • the sliding trajectory correction method includes the following steps:
  • Step S11 when a sliding operation on the curved touch screen is detected, a sliding track corresponding to the sliding operation is acquired.
  • the curved touch screen includes but is not limited to a cylindrical curved touch screen, a tapered curved touch screen, a spherical curved touch screen, and the like.
  • the curved touch screen may also be a cylindrical curved touch screen formed by the flexible touch screen in a curled state.
  • the area where the user's finger is in contact with the curved touch screen will generate a touch point, and when the user's finger moves, the contact position will also change. Multiple touch points are generated on the curved touch screen.
  • the curved touch screen includes a pixel unit matrix for displaying specific content, and the touch point is a pixel unit to which the pixel unit matrix is slidingly touched.
  • the pixel unit is a pixel or a pixel set composed of pixels of the same number and regular arrangement.
  • Step S12 Determine whether the sliding track includes an arc. If yes, step S13 is executed. If not, step S11 is executed.
  • the sliding trajectory may be a straight line.
  • the curved touch screen is a cylindrical curved touch screen
  • the sliding trajectory is a straight line perpendicular to the two end faces, in this case, the sliding distance of the sliding operation is The lengths of the sliding trajectories are equal, therefore, there is no need to calibrate the sliding trajectories, and thus the processing efficiency of the electronic device can be improved.
  • the determining whether the sliding track includes an arc includes: determining whether the sliding track is an arc according to the matrix arrangement of the touch points in the sliding track.
  • the cross-section of the curved touch screen is circular, and when the projection points of the touch points on the cross-section are not in the same straight line, it is determined that the sliding trajectory is an arc.
  • the cross section may be one of a pair of circular end surfaces of a cylindrical curved touch screen, or may be a circular bottom surface of a conical curved touch screen, which is not limited herein.
  • Step S13 correct the sliding track.
  • the actual sliding length on the curved surface is greater than the user's visual distance. Therefore, when it is determined that the sliding trajectory is an arc, the sliding trajectory needs to be calibrated , So that the user ’s expectations are consistent with the actual adjustment effect, thereby improving the user experience.
  • the sliding trajectory correction method disclosed in the present application can correct the sliding trajectory when it is determined that the sliding trajectory includes an arc, so that the length of the corrected sliding trajectory matches the visual length of the user, thereby making The result caused by the sliding operation is consistent with what the user expects, which improves the user experience.
  • correcting the sliding track includes: correcting the length of the sliding track. Since the user perceives the segment length corresponding to the arc length, the arc length of the sliding trajectory needs to be corrected, so that the calculated length is the same as the user-perceived length, and the user experience is improved.
  • correcting the length of the sliding track includes: determining a starting point A of the sliding track and an ending point B of the sliding track, where the starting point A is the first touched one of the sliding tracks The touch point reached; the end point B is the last touch point touched in the sliding track. Calculate the length of the straight line segment AB composed of the starting point A and the end point B as the two end points, and determine the length of the straight line segment AB composed of the starting point A and the end point B as the two end points as the correction After the length of the sliding track.
  • Step S31 Use the starting point A or the ending point B as a reference point to establish a reference plane that includes the reference point and is parallel to the cross section.
  • a reference plane R is established by using the starting point A or the ending point B as a reference point.
  • the reference plane R is parallel to the cross section Q.
  • the cross section Q may be one of a pair of circular end surfaces of the cylindrical curved touch screen.
  • the cross-section Q may also be a circular bottom surface.
  • the center angle ⁇ corresponding to the sliding locus can also be obtained
  • the radius of curvature R to calculate the length of the corresponding line segment AB includes: determining the sliding trajectory Corresponding central angle; calculate the length of the straight line segment AB formed by the starting point A and the ending point B according to the central angle and the radius of curvature.
  • step S32 a projection point A 'of another point on the reference plane is determined.
  • the projection point of the end point B on the reference plane is determined.
  • the projection point of the starting point A on the reference plane is determined, wherein the connection line between the starting point A and the starting point A, the projection point A 'and the The reference plane is vertical.
  • the curved touch screen is a tapered curved touch screen, preferably, the point close to the cross section is used as a reference point to facilitate calculation.
  • Step S33 according to the matrix position of the starting point A, the matrix position of the ending point B, and the matrix position of the projection point A ′, respectively calculate a line segment AA ′ composed of the starting point A and the projection point A ′ And the length of the line segment BA 'composed of the end point B and the projection point A'.
  • Step S34 according to the length of the line segment AA 'composed of the starting point A and the projection point A', and the length of the line segment BA 'composed of the end point B and the projection point A', calculate The starting point A and the ending point B are the length of the straight line segment AB formed by the two end points.
  • the length of the line segment AB can be calculated according to the Pythagorean theorem.
  • the length of the straight line segment BA 'formed by the end point B and the projection point A' being two end points is calculated according to the arc length and the cross-sectional radius.
  • the starting point A when used as a reference point, the starting point is calculated based on the matrix position of the starting point A, the matrix position of the ending point B, and the matrix position of the projection point A ′, respectively
  • the length of the line segment AA ′ composed of A and the projection point A ′, and the length of the line segment BA ′ composed of the end point B and the projection point A ′ include:
  • the length of the straight line segment formed by the starting point and the projection point is calculated according to the arc length and the cross-sectional radius.
  • the sliding trajectory correction method further includes the following steps:
  • step S71 the target operation corresponding to the corrected sliding trajectory is determined.
  • a relationship table corresponding to the sliding trajectory and the target operation may be pre-stored in the electronic device, and after the sliding trajectory is determined, the target operation corresponding to the sliding operation may be determined by looking up the table.
  • target operations include but are not limited to volume adjustment, picture zoom, brightness adjustment, page turning and other operations.
  • the length of different sliding tracks corresponds to different adjustment amplitudes, for example, the adjustment amplitude may be proportional to the length of the sliding tracks.
  • the determining the target operation corresponding to the corrected sliding trajectory includes: determining the current application program and / or interactive interface of the electronic device, according to the current The application program and / or the interactive interface determine the target operation corresponding to the corrected sliding trajectory.
  • the application currently running on the electronic device is a video playback application (such as Tencent Video)
  • the video The playback interface can be adjusted by slide operation to play the sound and brightness of the interface. Therefore, the currently running application program of the electronic device can be detected first, and then the target operation corresponding to the sliding track can be determined according to different application programs. In this way, the practicality of the sliding track calibration method can be improved.
  • Step S72 Control the target object according to the target operation.
  • the volume is adjusted according to the target operation, for example, the music playback volume is increased to 80% or decreased to 30% according to the current target operation.
  • the number of page turnings can be controlled according to the target operation, for example, according to the target operation corresponding to the length of the corrected sliding track, turning back two pages or turning forward Four pages.
  • FIG. 8 is a structural block diagram of an electronic device 100 in an embodiment of the present application.
  • the electronic device 100 may be, but not limited to, a mobile phone, a tablet computer, a notebook computer, a personal digital assistant (Personal Digital Assistant (PDA), a portable media player (Portable Media Player, PMP), a navigation device, a wearable device, Smart bracelets, pedometers, etc. are not limited here.
  • the electronic device 100 includes but is not limited to a curved touch screen 10, a memory 20, and a processor 30. Specifically, the curved touch screen 10, the memory 20 and the processor 30 may be coupled through a communication bus 40.
  • FIG. 8 is a structural block diagram of an electronic device 100 in an embodiment of the present application.
  • the electronic device 100 may be, but not limited to, a mobile phone, a tablet computer, a notebook computer, a personal digital assistant (Personal Digital Assistant (PDA), a portable media player (Portable Media Player, PMP), a navigation device, a wearable device
  • the electronic device 100 may include more or more than that shown in FIG. There are few components, or some components are combined, or different components, for example, the electronic device 100 may further include input and output devices, network access devices, and the like.
  • the curved touch screen 10 includes, but is not limited to, a quantum dot curved touch screen (Quantum Dot Light Emitting Diodes, QLED), an organic light emitting diode curved touch screen (Organic Light-Emitting Diode, OLED), etc., which is not limited herein.
  • QLED Quantum Dot Light Emitting Diodes
  • OLED Organic Light-Emitting Diode
  • the memory 20 may be used to store computer programs and / or modules.
  • the processor 30 executes or executes the computer programs and / or modules stored in the memory 20 and calls the data stored in the memory 20 to achieve The various functions of the electronic device 100 are described.
  • the memory 20 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, application programs required for multiple functions (such as a sound playback function, an image playback function, etc.), etc .; the data storage area may Store data created according to the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 20 may include a high-speed random access memory, and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media, Card, SMC), and secure digital SD) card, flash card (Flash), multiple disk storage devices, flash memory devices, or other volatile solid-state storage devices.
  • a non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media, Card, SMC), and secure digital SD) card, flash card (Flash), multiple disk storage devices, flash memory devices, or other volatile solid-state storage devices.
  • the processor 30 may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Field-programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
  • the processor is the control center of the electronic device 100, and various interfaces and lines are used to connect the entire electronic device 100. Various parts.
  • the memory 20 stores a correction program of the sliding trajectory correction method
  • the processor 30 runs the correction program of the sliding trajectory correction method to perform the following operations: when a sliding operation on the curved touch screen 10 is detected To obtain a sliding trajectory corresponding to the sliding operation; determine whether the sliding trajectory includes an arc; when it is determined that the sliding trajectory includes an arc, correct the sliding trajectory.
  • the curved touch screen 10 includes but is not limited to a cylindrical curved touch screen, a tapered curved touch screen, a spherical curved touch screen, and the like.
  • the curved touch screen may also be a cylindrical curved touch screen formed by the flexible touch screen in a curled state.
  • the curved touch screen includes a pixel unit matrix for displaying specific content, and the touch point is a pixel unit to which the pixel unit matrix is slidingly touched.
  • the specific content includes but is not limited to images, characters, characters and other content.
  • the determining whether the sliding track includes an arc includes: determining whether the sliding track is an arc according to the matrix arrangement of the touch points in the sliding track.
  • the cross-section of the curved touch screen is circular, and when the projection points of the touch points on the cross-section are not in the same straight line, it is determined that the sliding trajectory is an arc.
  • the cross section may be one of a pair of circular end surfaces of a cylindrical curved touch screen, or may be a circular bottom surface of a conical curved touch screen, which is not limited herein.
  • correcting the sliding track includes: correcting the length of the sliding track. Since the user perceives the segment length corresponding to the arc length, the arc length of the sliding trajectory needs to be corrected, so that the calculated length is the same as the user-perceived length, and the user experience is improved.
  • correcting the length of the sliding track includes: determining a starting point A of the sliding track and an ending point B of the sliding track, where the starting point A is the first touched one of the sliding tracks Touch point; the end point B is the last touch point touched in the sliding track. Calculate the length of the straight line segment AB composed of the starting point A and the end point B as the two end points, and determine the length of the straight line segment AB composed of the starting point A and the end point B as the two end points as the correction After the length of the sliding track.
  • the calculation of the length of the straight line segment AB composed of the starting point A and the ending point B as two endpoints includes: establishing the reference point using the starting point A or the ending point B as a reference point and The reference plane parallel to the cross-section; determine the projection point A 'of another point on the reference plane; according to the coordinates of the starting point A, the coordinates of the end point B and the coordinates of the projection point A', calculate by The length of the line segment AA 'composed of the starting point A and the projection point A', and the length of the line segment BA 'composed of the end point B and the projection point A'; The length of the line segment AA 'composed of the projection point A' and the length of the line segment BA 'composed of the endpoint B and the projection point A' are calculated by the starting point A and the ending point B being two The length of the straight line segment AB formed by the end points.
  • the projection point of the end point B on the reference plane is determined.
  • the projection point of the starting point A on the reference plane is determined.
  • a line connecting the starting point A and the projection point A 'of the starting point A is perpendicular to the reference plane.
  • the cross section Q may be one of a pair of circular end surfaces of the cylindrical curved touch screen.
  • the cross-section Q may also be a circular bottom surface.
  • the starting point A when the starting point A is a reference point, the starting point A is calculated according to the matrix position of the starting point A, the matrix position of the ending point B, and the matrix position of the projection point A ′, respectively
  • the length of the line segment AA 'composed of the projection point A' and the length of the line segment BA 'composed of the endpoint B and the projection point A' include: calculating the matrix position of the endpoint and the The line difference of the matrix position of the projection point, and the length corresponding to the line difference is taken as the length of the line segment composed of the end point and the projection point; calculating the column of the matrix position of the starting point and the matrix position of the projection point Difference, and the length corresponding to the column difference is taken as the arc length of the arc formed by the starting point and the projection point; the starting point and the projection point are calculated according to the arc length and the cross-sectional radius The length of the straight line segment.
  • the end point B when the end point B is a reference point (as shown in FIG. 4), according to the matrix position of the start point A, the matrix position of the end point B, and the matrix position of the projection point A ′ , Respectively calculate the length of the line segment AA 'composed of the starting point A and the projection point A', and the length of the line segment BA 'composed of the end point B and the projection point A', including: The line difference between the matrix position of the starting point A and the matrix position of the projection point A ′, and the length corresponding to the line difference is taken as the length of the line segment AA ′ composed of the starting point A and the projection point A ′; The column difference between the matrix position of the end point B and the matrix position of the projection point A ′, and the length corresponding to the column difference is taken as the arc length of the arc formed by the endpoint B and the projection point A ′ ; Calculate the length of the straight line segment BA 'formed by the end point B and the projection point A' as the
  • the center angle ⁇ and the radius of curvature R corresponding to the sliding trajectory can also be calculated
  • the length of the corresponding line segment AB that is, in this embodiment, the calculating the length AB of the line segment composed of the starting point A and the ending point B includes: determining the center angle corresponding to the sliding trajectory; The center angle and the radius of curvature are calculated as the length of the straight line segment AB formed by the start point A and the end point B.
  • the processor 30 runs the correction program of the sliding trajectory correction method and further performs the following operations: determining a target operation corresponding to the corrected sliding trajectory; controlling the target object according to the target operation .
  • a relationship table corresponding to the sliding trajectory and the target operation may be pre-stored in the electronic device, and after the sliding trajectory is determined, the target operation corresponding to the sliding operation may be determined by looking up the table.
  • target operations include but are not limited to volume adjustment, picture zoom, brightness adjustment, page turning and other operations.
  • the length of different sliding tracks corresponds to different adjustment amplitudes, for example, the adjustment amplitude may be proportional to the length of the sliding tracks.
  • the determining the target operation corresponding to the corrected sliding trajectory includes: determining the current application program and / or interactive interface of the electronic device, according to the current application program of the electronic device and / Or an interactive interface to determine the target operation corresponding to the corrected sliding trajectory.
  • the application currently running on the electronic device is a video playback application (such as Tencent Video)
  • the video The playback interface can be adjusted by slide operation to play the sound and brightness of the interface. Therefore, the currently running application program of the electronic device can be detected first, and then the target operation corresponding to the sliding track can be determined according to different application programs. In this way, the practicality of the sliding track calibration method can be improved.
  • the electronic device 100 disclosed in the present application corrects the sliding trajectory when it is determined that the sliding trajectory includes an arc, so that the length of the corrected sliding trajectory matches the visual length of the user, so that the The result of the sliding operation is consistent with the user's expectations, which improves the user experience.
  • the sliding trajectory correction method provided in this application can be implemented in hardware or firmware, or can be used as software or computer code that can be stored in a computer-readable storage medium such as CD, ROM, RAM, floppy disk, hard disk, or magneto-optical disk, or Computer code that can be stored as a source on a remote recording medium or a non-transitory machine-readable medium, downloaded over a network, and stored in a local recording medium, so that the method described here can utilize a general-purpose computer or a special processor or in a device such as ASIC or Programmable or dedicated hardware such as FPGA is presented as software stored on a recording medium.
  • a computer-readable storage medium such as CD, ROM, RAM, floppy disk, hard disk, or magneto-optical disk
  • a computer, processor, microprocessor, controller, or programmable hardware includes memory components, such as RAM, ROM, flash memory, etc., which are accessed when the computer, processor, or hardware implements the processing methods described herein
  • the memory component may store or receive the software or computer code.
  • the general-purpose computer accesses the code for implementing the processing shown here, the execution of the code converts the general-purpose computer into a dedicated computer for performing the processing shown here.
  • the computer-readable storage medium may be solid-state memory, memory card, optical disc, etc.
  • the computer-readable storage medium stores program instructions for the computer to execute the sliding trajectory correction method shown in FIGS. 1-5.

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)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开一种滑动轨迹校正方法,应用于电子装置中,所述电子装置包括曲面触摸屏;其特征在于,所述滑动轨迹校正方法包括如下步骤:当检测到所述曲面触摸屏上的滑动操作时,获取与所述滑动操作对应的滑动轨迹;判断所述滑动轨迹是否包括弧线;当所述滑动轨迹包括弧线时,对所述滑动轨迹进行校正。本申请还公开一种电子装置和一种计算机可读存储介质。本申请能够能够对所述滑动轨迹进行校正,使得校正后的滑动轨迹的长度与用户视觉上的长度相符合,提高了用户体验。

Description

滑动轨迹校正方法、电子装置及计算机可读存储介质 技术领域
本申请涉及移动终端技术领域,尤其涉及一种滑动轨迹校正方法、电子装置及计算机可读存储介质。
背景技术
目前,手机、平板电脑等电子装置已经被广泛地使用,极大地便利了人们的生活。用户在对电子装置进行操作时,都会使用滑动操作。例如,通过滑动操作来对音量进行调节或者通过滑动操作来对图片进行放大等。在该所述滑动操作中需要计算滑动距离,依据滑动距离确定的对应的调节幅度。现有的电子装置的显示屏呈平面状态,当用户在所述显示屏上滑动时,其滑动视觉距离和电子装置获取的实际距离相同。然而,当电子装置的显示屏呈曲面时,当用户欲滑动一段视觉距离时,其在曲面上实际滑动的长度是大于用户视觉距离的,进而导致实际的调节幅度与用户预期的幅度不符,影响用户体验。
发明内容
本申请实施例公开一种滑动轨迹校正方法、电子装置及计算机可读存储介质,能够对所述滑动轨迹进行校正,使得校正后的滑动轨迹的长度与用户视觉上的长度相符合,提高了用户体验。
本申请实施例公开的一种滑动轨迹校正方法,应用于电子装置中,所述电子装置包括曲面触摸屏;所述滑动轨迹校正方法包括如下步骤:
当检测到所述曲面触摸屏上的滑动操作时,获取与所述滑动操作对应的滑动轨迹;
判断所述滑动轨迹是否包括弧线;
当所述滑动轨迹包括弧线时,对所述滑动轨迹进行校正。
本申请实施例公开的一种电子装置,包括曲面触摸屏、存储器和处理器,所述存储器存有滑动轨迹校正方法的校正程序,所述处理器运行所述滑动轨迹校正方法的校正程序执行如下操作:
当检测到所述曲面触摸屏上的滑动操作时,获取与所述滑动操作对应的滑动轨迹;
判断所述滑动轨迹是否包括弧线;
当所述滑动轨迹包括弧线时,对所述滑动轨迹进行校正。
本申请实施例公开的一种计算机可读存储介质,所述计算机可读存储介质上存储有滑动轨迹校正方法的校正程序,所述滑动轨迹校正方法的校正程序被处理器执行时实现上述的滑动轨迹校正方法的步骤。
本申请的滑动轨迹校正方法、电子装置及计算机可读存储介质,当确定所述滑动轨迹包括弧线时,能够对所述滑动轨迹进行校正,使得校正后的滑动轨迹的长度与用户视觉上的长度相符合,从而使得由所述滑动操作所导致的结果与用户预期的相符合,提高了用户体验。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请一实施例中公开的滑动轨迹校正方法的流程图。
图2为本申请一实施例中公开的滑动轨迹与对应的直线线段示意图。
图3为本申请一实施例中公开的滑动轨迹对应的直线线段长度的算法流程图。
图4为本申请一实施例中公开的滑动轨迹投影的示意图。
图5为本申请另一实施例中公开的滑动轨迹投影的示意图。
图6为本申请另一实施例中公开的滑动轨迹对应的直线线段示意图。
图7为本申请另一实施例中公开的滑动轨迹校正方法的流程图。
图8为本申请一实施例中公开的电子装置的结构框图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
需要说明的是,在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。
请参阅图1,图1为本申请一实施例公开的滑动轨迹校正方法的流程图。所述滑动轨迹校正方法应用于一电子装置中,所述电子装置包括曲面触摸屏。如图1所示,所述滑动轨迹校正方法包括如下步骤:
步骤S11,当检测到所述曲面触摸屏上的滑动操作时,获取与所述滑动操作对应的滑动轨迹。
在本实施方式中,所述曲面触摸屏包括但不限于柱形曲面触摸屏、锥形曲面触摸屏、球形曲面触摸屏等。在其他实施方式中,所述曲面触摸屏还可以是柔性触摸屏在卷曲状态下所形成的柱形曲面触摸屏。
当用户在所述曲面触摸屏上产生滑动操作时,用户的手指会与所述曲面触摸屏相接触的区域会产生触控点,当用户的手指移动时,接触位置也会发生变化,进而在所述曲面触摸屏上产生多个触控点。
在本实施方式中,述曲面触模屏包括用于显示特定内容的像素单位矩阵,所述触控点为所述像素单位矩阵中被滑动触控到的像素单位。该像素单位为一个像素点或者由相同数量和排列规则的像素点构成的像素集合。
步骤S12,判断所述滑动轨迹是否包括弧线。若是,则执行步骤S13。若否,则执行步骤S11。
虽然所述滑动操作是在所述曲面触摸屏上进行的,但是滑动轨迹可能存在为直线的情况,例如,当所述曲面触摸屏为柱形曲面触摸屏时,若用户的滑动操作为从所述柱形曲面触摸屏的一个圆形端面向相对的另一个圆形端面滑动时,所述滑动轨迹为分别与所述两个端面相垂直的直线,在该情况下,所述滑 动操作的滑动距离与所述滑动轨迹的长度相等,因此,无需对所述滑动轨迹进行校准,进而可以提高电子装置的处理效率。
在一些实施方式中,所述判断所述滑动轨迹是否包括弧线,包括:根据所述滑动轨迹中各个触控点的矩阵排列判断所述滑动轨迹是否为弧线。在本实施方式中,所述曲面触摸屏的横截面为圆形,当所述触控点在所述横截面的投影点不在同一条直线时,确定所述滑动轨迹为弧线。其中,横截面可以为一柱形曲面触摸屏的一对圆形的端面中的一个,也可以为锥形曲面触摸屏的圆形的底面,在此不做限定。
步骤S13,对所述滑动轨迹进行校正。
当用户在曲面触摸屏上以一段视觉距离进行滑动时,其在曲面上实际滑动的长度是大于用户视觉距离的,因此,当确定所述滑动轨迹为弧线时,需要对所述滑动轨迹进行校准,以使得用户的预期与实际的调节效果相符合,从而提高用户体验。
本申请所公开的滑动轨迹校正方法,当确定所述滑动轨迹包括弧线时,能够对所述滑动轨迹进行校正,使得校正后的滑动轨迹的长度与用户视觉上的长度相符合,从而使得由所述滑动操作所导致的结果与用户预期的相符合,提高了用户体验。
请再参阅图2,在一实施方式中,对所述滑动轨迹进行校正,包括:对所述滑动轨迹的长度进行校正。由于用户感知的是所述弧线长度对应的线段长度,因此,需要对滑动轨迹的弧线长度进行校正,进而使得计算的长度与用户感知的长度相同,提高用户体验。
进一步地,对所述滑动轨迹的长度进行校正,包括:确定所述滑动轨迹的起点A和所述滑动轨迹的终点B,其中,所述起点A为所述滑动轨迹中第一个被触控到的触控点;所述终点B为所滑动轨迹中最后一个被触控到的触控点。计算以所述起点A和所述终点B为两个端点所构成的直线线段AB的长度,并确定以所述起点A和所述终点B为两个端点所构成的直线线段AB的长度为校正后的滑动轨迹的长度。
请再参阅图3,其中,所述计算以所述起点A和所述终点B为两个端点所构成的直线线段AB的长度,包括如下步骤:
步骤S31,以所述起点A或者所述终点B为参考点建立包含所述参考点且平行于横截面的参考面。
请再参阅图4,计算由起点A与终点B所组成的线段AB的长度时,首先以起点A或者终点B为参考点,建立一参考面R。其中,所述参考面R与所述横截面Q平行。在本实施方式中,由于所述曲面触摸屏为柱形曲面触摸屏,因此,所述横截面Q可以为所述柱形曲面触摸屏的一对圆形的端面中的一个。
请再参阅图5,在另一实施方式中,当所述曲面触摸屏为锥形曲面触摸屏时,所述横截面Q还可以是圆形的底面。
请再参阅图6,在其他实施方式中,当所述曲面触摸屏为规则的曲面时,例如,为一球形曲面触摸屏或者为一球形触摸屏的一部分时,还可以通过滑动轨迹所对应的圆心角θ及曲率半径R计算出对应的线段AB的长度,亦即,在本实施方式中,所述计算由所述起点A和所述终点B所构成的线段的长度AB,包括:确定所述滑动轨迹对应的圆心角;根据所述圆心角及曲率半径计算以所述起点A和所述终点B所构成的直线线段AB的长度。
步骤S32,确定另一点在所述参考面上的投影点A’。
在本实施方式中,当以所述起点A为参考点时,则确定终点B在所述参考面上的投影点。当以所述终点B为参考点时,则确定所述起点A在所述参考面上的投影点,其中,所述起点A与所述起点A所述投影点A’的连线与所述参考面垂直。需要说明的是,当所述曲面触摸屏为锥形曲面触摸屏时,优选地,以靠近所述横截面的点为参考点以方便计算。
步骤S33,根据所述起点A的矩阵位置、所述终点B的矩阵位置以及所述投影点A’的矩阵位置,分别计算由所述起点A和所述投影点A’所组成的线段AA’的长度,和由所述终点B和所述投影点A’所组成的线段BA’的长度。
步骤S34,根据由所述起点A和所述投影点A’所组成的线段AA’的长度,和由所述终点B和所述投影点A’所组成的线段BA’的长度,计算以所述起点A和所述终点B为两个端点所构成的直线线段AB的长度。
在本实施方式中,当线段AA’的长度和线段BA’的长度确定后,由于线段AA’与参考面垂直,且所述线段BA’位于所述参考面内,因此,所述线段AA’垂直线段BA’,根据勾股定理即可计算出线段AB的长度。
请再次参阅图4,在一实施方式中,当以所述终点B为参考点时,根据所述起点A的矩阵位置、所述终点B的矩阵位置以及所述投影点A’的矩阵位置,分别计算由所述起点A和所述投影点A’所组成的线段AA’的长度,和由所述终点B和所述投影点A’所组成的线段BA’的长度,包括:
计算所述起点A的矩阵位置与所述投影点A’的矩阵位置的行差,并将所述行差对应的长度作为所述起点A和所述投影点A’所组成的线段AA’长度;
计算所述终点B的矩阵位置与所述投影点A’的矩阵位置的列差,并将所述列差对应的长度作为所述终点B和所述投影点A’所组成弧线的弧线长度;
根据所述弧线长度及横截面半径计算所述终点B和所述投影点A’为两个端点所构成的直线线段BA’的长度。
在其他实施方式中,当以所述起点A为参考点时,根据所述起点A的矩阵位置、所述终点B的矩阵位置以及所述投影点A’的矩阵位置,分别计算由所述起点A和所述投影点A’所组成的线段AA’的长度,和由所述终点B和所述投影点A’所组成的线段BA’的长度,包括:
计算所述终点的矩阵位置与所述投影点的矩阵位置的行差,并将所述行差对应的长度作为所述终点和所述投影点所组成的线段长度;
计算所述起点的矩阵位置与所述投影点的矩阵位置的列差,并将所述列差对应的长度作为所述起点和所述投影点所组成弧线的弧线长度;
根据所述弧线长度及横截面半径计算所述起点和所述投影点所构成的直线线段的长度。
请再参阅图7,在一些实施方式中,在图1的步骤S13之后,所述滑动轨迹校正方法还包括如下步骤:
步骤S71,确定与校正后的滑动轨迹所对应的目标操作。
在本实施方式中,所述电子装置中可以预先存有滑动轨迹与目标操作对应的关系表,当滑动轨迹确定后通过查表可以确定与该滑动操作对应的目标操作。其中,目标操作包括但不限于音量调节、图片缩放、亮度调节、翻页等操作。其中,不同的滑动轨迹的长度对应不同的调节幅度,例如,调节幅度可以和滑动轨迹的长度呈正比。
进一步地,在一些实施方式中,所述确定与校正后的滑动轨迹所对应的目 标操作,包括:确定所述电子装置的当前的应用程序和/或交互界面,根据所述电子装置的当前的应用程序和/或交互界面,确定与校正后的滑动轨迹所对应的目标操作。
应当理解的是,电子装置中的应用程序众多,各应用程序不同交互界面可以提供不同的交互功能,例如,当电子装置当前运行的应用程序为视频播放应用程序(比如腾讯视频)时,在视频播放界面可以通过滑动操作来调节播放的声音和界面的亮度。因此,可以先检测电子装置当前运行的应用程序,再根据不同的应用程序确定滑动的轨迹所对应的目标操作,如此,可以提高滑动轨迹校准方法的实用性。
步骤S72,根据所述目标操作对目标对象进行控制。
具体地,在一实施方式中,若当前界面为音乐播放界面时,根据目标操作对音量进行调节,例如,根据当前目标操作将音乐播放音量调高至80%或者降低至30%。在另一实施方式中,若当前界面为阅读界面时,根据目标操作可以控制翻页的数量,例如,根据修正后的滑动轨迹的长度所对应的目标操作控制向后翻两页或者向前翻四页。
请参阅图8,其为本申请一实施例中的电子装置100的结构框图。所述电子装置100可以是但不限于手机、平板电脑、笔记本电脑、、个人数字助理(Personal Digital Assistant,PDA)、便捷式媒体播放器(Portable Media Player,PMP)、导航装置、可穿戴设备、智能手环、计步器等,此处不做限定。所述电子装置100包括但不限于曲面触摸屏10、存储器20以及处理器30。具体地,所述曲面触摸屏10、所述存储器20及所述处理器30可以通过通信总线40耦合。本领技术人员应当理解的是,所述图8仅是所述电子装置100的示例,并不构成对所述电子装置100的限定,所述电子装置100可以包括比图1所示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述电子装置100还可以包括输入输出设备、网络接入设备等。
所述曲面触摸屏10包括但不限于量子点曲面触摸屏(Quantum Dot Light Emitting Diodes,QLED)、有机发光二极管曲面触摸屏(Organic Light-Emitting Diode,OLED)等,此处不做限定。
所述存储器20可用于存储计算机程序和/或模块,所述处理器30通过运 行或执行存储在所述存储器20内的计算机程序和/或模块,以及调用存储在存储器20内的数据,实现所述电子装置100的各种功能。所述存储器20可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、多个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。
此外,所述存储器20可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
所述处理器30可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述处理器是所述电子装置100的控制中心,利用各种接口和线路连接整个所述电子装置100的各个部分。
具体地,所述存储器20中存有滑动轨迹校正方法的校正程序,所述处理器30运行所述滑动轨迹校正方法的校正程序执行如下操作:当检测到所述曲面触摸屏10上的滑动操作时,获取与所述滑动操作对应的滑动轨迹;判断所述滑动轨迹是否包括弧线;当确定所述滑动轨迹包括弧线时,对所述滑动轨迹进行校正。
在本实施方式中,所述曲面触摸屏10包括但不限于柱形曲面触摸屏、锥形曲面触摸屏、球形曲面触摸屏等。在其他实施方式中,所述曲面触摸屏还可以是柔性触摸屏在卷曲状态下所形成的柱形曲面触摸屏。当用户在所述曲面触摸屏上产生滑动操作时,用户的手指会与所述曲面触摸屏相接触的区域会产生触控点,当用户的手指移动时,接触位置也会发生变化,进而在所述曲面触摸屏上产生多个触控点。
在本实施方式中,述曲面触模屏包括用于显示特定内容的像素单位矩阵,所述触控点为所述像素单位矩阵中被滑动触控到的像素单位。其中,所述特定 内容包括但不限于图像、人物、文字等内容。
在一些实施方式中,所述判断所述滑动轨迹是否包括弧线,包括:根据所述滑动轨迹中各个触控点的矩阵排列判断所述滑动轨迹是否为弧线。在本实施方式中,所述曲面触摸屏的横截面为圆形,当所述触控点在所述横截面的投影点不在同一条直线时,确定所述滑动轨迹为弧线。其中,横截面可以为一柱形曲面触摸屏的一对圆形的端面中的一个,也可以为锥形曲面触摸屏的圆形的底面,在此不做限定。
在一实施方式中,对所述滑动轨迹进行校正,包括:对所述滑动轨迹的长度进行校正。由于用户感知的是所述弧线长度对应的线段长度,因此,需要对滑动轨迹的弧线长度进行校正,进而使得计算的长度与用户感知的长度相同,提高用户体验。
进一步地,对所述滑动轨迹的长度进行校正,包括:确定所述滑动轨迹的起点A和所述滑动轨迹的终点B,所述起点A为所述滑动轨迹中第一个被触控到的触控点;所述终点B为所滑动轨迹中最后一个被触控到的触控点。计算以所述起点A和所述终点B为两个端点所构成的直线线段AB的长度,并确定以所述起点A和所述终点B为两个端点所构成的直线线段AB的长度为校正后的滑动轨迹的长度。
其中,所述计算以所述起点A和所述终点B为两个端点所构成的直线线段AB的长度,包括:以所述起点A或者所述终点B为参考点建立包含所述参考点且平行于横截面的参考面;确定另一点在所述参考面上的投影点A’;根据所述起点A的坐标、所述终点B的坐标以及所述投影点A’的坐标,分别计算由所述起点A和所述投影点A’所组成的线段AA’的长度,和由所述终点B和所述投影点A’所组成的线段BA’的长度;根据由所述起点A和所述投影点A’所组成的线段AA’的长度,和由所述终点B和所述投影点A’所组成的线段BA’的长度,计算以所述起点A和所述终点B为两个端点所构成的直线线段AB的长度。
在本实施方式中,当以所述起点A为参考点时,则确定终点B在所述参考面上的投影点。当以所述终点B为参考点时,则确定所述起点A在所述参考面上的投影点。其中,所述起点A与所述起点A所述投影点A’的连线与所 述参考面垂直。需要说明的是,当所述曲面触摸屏为锥形曲面触摸屏时,优选地,以靠近所述横截面的点为参考点以方便计算。
在本实施方式中,由于所述曲面触摸屏为柱形曲面触摸屏,因此,所述横截面Q可以为所述柱形曲面触摸屏的一对圆形的端面中的一个。
请再参阅图5,在另一实施方式中,当所述曲面触摸屏为锥形曲面触摸屏时,所述横截面Q还可以是圆形的底面。
在一些实施方式中,当所述起点A为参考点时,根据所述起点A的矩阵位置、所述终点B的矩阵位置以及所述投影点A’的矩阵位置,分别计算由所述起点A和所述投影点A’所组成的线段AA’的长度,和由所述终点B和所述投影点A’所组成的线段BA’的长度,包括:计算所述终点的矩阵位置与所述投影点的矩阵位置的行差,并将所述行差对应的长度作为所述终点和所述投影点所组成的线段长度;计算所述起点的矩阵位置与所述投影点的矩阵位置的列差,并将所述列差对应的长度作为所述起点和所述投影点所组成弧线的弧线长度;根据所述弧线长度及横截面半径计算所述起点和所述投影点所构成的直线线段的长度。
在另一些实施方式中,当所述终点B为参考点时(如图4所示),根据所述起点A的矩阵位置、所述终点B的矩阵位置以及所述投影点A’的矩阵位置,分别计算由所述起点A和所述投影点A’所组成的线段AA’的长度,和由所述终点B和所述投影点A’所组成的线段BA’的长度,包括:计算所述起点A的矩阵位置与所述投影点A’的矩阵位置的行差,并将所述行差对应的长度作为所述起点A和所述投影点A’所组成的线段AA’长度;计算所述终点B的矩阵位置与所述投影点A’的矩阵位置的列差,并将所述列差对应的长度作为所述终点B和所述投影点A’所组成弧线的弧线长度;根据所述弧线长度及横截面半径计算所述终点B和所述投影点A’为两个端点所构成的直线线段BA’的长度。
在其他实施方式中,当所述曲面触摸屏为规则的曲面时,例如,为一球形曲面触摸屏或者为一球形触摸屏的一部分时,还可以通过滑动轨迹所对应的圆心角θ及曲率半径R计算出对应的线段AB的长度,亦即,在本实施方式中,所述计算由所述起点A和所述终点B所构成的线段的长度AB,包括:确定所 述滑动轨迹对应的圆心角;根据所述圆心角及曲率半径计算以所述起点A和所述终点B所构成的直线线段AB的长度。
在另一些实施方式中,所述处理器30运行所述滑动轨迹校正方法的校正程序还执行如下操作:确定与校正后的滑动轨迹所对应的目标操作;根据所述目标操作对目标对象进行控制。在本实施方式中,所述电子装置中可以预先存有滑动轨迹与目标操作对应的关系表,当滑动轨迹确定后通过查表可以确定与该滑动操作对应的目标操作。其中,目标操作包括但不限于音量调节、图片缩放、亮度调节、翻页等操作。其中,不同的滑动轨迹的长度对应不同的调节幅度,例如,调节幅度可以和滑动轨迹的长度呈正比。
在一些实施方式中,所述确定与校正后的滑动轨迹所对应的目标操作,包括:确定所述电子装置的当前的应用程序和/或交互界面,根据所述电子装置的当前的应用程序和/或交互界面,确定与校正后的滑动轨迹所对应的目标操作。
应当理解的是,电子装置中的应用程序众多,各应用程序不同交互界面可以提供不同的交互功能,例如,当电子装置当前运行的应用程序为视频播放应用程序(比如腾讯视频)时,在视频播放界面可以通过滑动操作来调节播放的声音和界面的亮度。因此,可以先检测电子装置当前运行的应用程序,再根据不同的应用程序确定滑动的轨迹所对应的目标操作,如此,可以提高滑动轨迹校准方法的实用性。
本申请所公开的电子装置100,当确定所述滑动轨迹包括弧线时,对所述滑动轨迹进行校正,使得校正后的滑动轨迹的长度与用户视觉上的长度相符合,从而使得由所述滑动操作所导致的结果与用户预期的相符合,提高了用户体验。
需要说明的是,对于前述的各个方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某一些步骤可以采用其他顺序或者同时进行。其次,本领技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详 细描述的部分,可以参见其他实施例的相关描述。
本申请实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。
本申请提供的滑动轨迹校正方法可以在硬件、固件中实施,或者可以作为可以存储在例如CD、ROM、RAM、软盘、硬盘或磁光盘的等计算机可读存储介质中的软件或计算机代码,或者可以作为原始存储在远程记录介质或非瞬时的机器可读介质上、通过网络下载并且存储在本地记录介质中的计算机代码,从而这里描述的方法可以利用通用计算机或特殊处理器或在诸如ASIC或FPGA之类的可编程或专用硬件中以存储在记录介质上的软件来呈现。如本领能够理解的,计算机、处理器、微处理器、控制器或可编程硬件包括存储器组件,例如,RAM、ROM、闪存等,当计算机、处理器或硬件实施这里描述的处理方法而存取和执行软件或计算机代码时,存储器组件可以存储或接收软件或计算机代码。另外,当通用计算机存取用于实施这里示出的处理的代码时,代码的执行将通用计算机转换为用于执行这里示出的处理的专用计算机。
其中,所述计算机可读存储介质可为固态存储器、存储卡、光碟等。所述计算机可读存储介质存储有程序指令而供计算机调用后执行图1-5所示的滑动轨迹校正方法。
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施例进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领的一般技术人员,依据本申请的思想,在具体实施例及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种滑动轨迹校正方法,应用于电子装置中,所述电子装置包括曲面触摸屏;其特征在于,所述滑动轨迹校正方法包括如下步骤:
    当检测到所述曲面触摸屏上的滑动操作时,获取与所述滑动操作对应的滑动轨迹;
    判断所述滑动轨迹是否包括弧线;
    当所述滑动轨迹包括弧线时,对所述滑动轨迹进行校正。
  2. 如权利要求1所述的滑动轨迹校正方法,其特征在于,所述曲面触模屏包括用于显示特定内容的像素单位矩阵,所述判断所述滑动轨迹是否包括弧线,包括:
    根据所述滑动轨迹中各个触控点的矩阵排列判断所述滑动轨迹是否为弧线;其中,所述触控点为所述像素单位矩阵中被滑动触控到的像素单位。
  3. 如权利要求2所述的控制方法,其特征在于,所述曲面触摸屏的横截面为圆形,当所述触控点在所述横载面的投影点不在同一条直线时,确定所述滑动轨迹为弧线。
  4. 如权利要求1所述的滑动轨迹校正方法,其特征在于,所述当所述滑动轨迹包括弧线时,对所述滑动轨迹进行校正,包括:
    当所述滑动轨迹为弧线时,对所述滑动轨迹的长度进行校正。
  5. 如权利要求4所述的滑动轨迹校正方法,其特征在于,所述对所述滑动轨迹的长度进行校正,包括:
    确定所述滑动轨迹的起点和所述滑动轨迹的终点;其中,所述起点为所述滑动轨迹中第一个被触控到的触控点;所述终点为所滑动轨迹中最后一个被触控到的触控点;
    计算以所述起点和所述终点为两个端点所构成的直线线段的长度,并确定以所述起点和所述终点为两个端点所构成的直线线段的长度为校正后的滑动轨迹的长度。
  6. 如权利要求5所述的滑动轨迹校正方法,其特征在于,所述计算以所述起点和所述终点为两个端点所构成的直线线段的长度,包括:
    以所述起点或者所述终点为参考点建立包含所述参考点且与横截面平行 的参考面;
    确定所述起点和所述终点中的另一点在所述参考面上的投影点;
    根据所述起点的矩阵位置、所述终点的矩阵位置以及所述投影点的矩阵位置,分别计算由所述起点和所述投影点所组成的线段的长度和由所述终点和所述投影点所组成的线段长度;
    根据由所述起点和所述投影点所组成的线段的长度,和由所述终点和所述投影点所组成的线段长度,计算以所述起点和所述终点为两个端点所构成的直线线段的长度。
  7. 如权利要求3或6所述的滑动轨迹校正方法,其特征在于,当所述曲面触摸屏呈柱形时,所述横载面为所述柱形的一对相互平行的圆形的端面中的一个;当所述曲面触摸屏呈锥形时,所述横截面为所述锥形的底面。
  8. 如权利要求6所述的滑动轨迹校正方法,其特征在于,当所述起点为参考点时,所述根据所述起点的矩阵位置、所述终点的矩阵位置以及所述投影点的矩阵位置,分别计算由所述起点和所述投影点所组成的线段的长度和由所述终点和所述投影点所组成的线段长度,包括:
    计算所述终点的矩阵位置与所述投影点的矩阵位置的行差,并将所述行差对应的长度作为所述终点和所述投影点所组成的线段长度;
    计算所述起点的矩阵位置与所述投影点的矩阵位置的列差,并将所述列差对应的长度作为所述起点和所述投影点所组成弧线的弧线长度;
    根据所述弧线长度及横截面半径计算所述起点和所述投影点所构成的直线线段的长度;或
    当所述终点为参考点时,所述根据所述起点的矩阵位置、所述终点的矩阵位置以及所述投影点的矩阵位置,分别计算由所述起点和所述投影点所组成的线段的长度和由所述终点和所述投影点所组成的线段长度,包括:
    计算所述起点的矩阵位置与所述投影点的矩阵位置的行差,并将所述行差对应的长度作为所述起点和所述投影点所组成的线段长度;
    计算所述终点的矩阵位置与所述投影点的矩阵位置的列差,并将所述列差对应的长度作为所述终点和所述投影点所组成弧线的弧线长度;
    根据所述弧线长度及横截面半径计算所述终点和所述投影点为两个端点 所构成的直线线段的长度。
  9. 如权利要求1所述的滑动轨迹校正方法,其特征在于,在所述对所述滑动轨迹进行校正的步骤后,所述滑动轨迹校正方法还包括:
    确定与校正后的滑动轨迹所对应的目标操作;
    依据所述目标操作对目标对象进行控制。
  10. 如权利要求9所述的滑动轨迹校正方法,其特征在于,所述确定与校正后的滑动轨迹所对应的目标操作,包括:
    确定所述电子装置的当前的应用程序和/或交互界面;根据所述电子装置的当前的应用程序和/或交互界面,确定与校正后的滑动轨迹所对应的目标操作。
  11. 一种电子装置,包括曲面触摸屏、存储器和处理器,其特征在于,所述存储器存有滑动轨迹校正方法的校正程序,所述处理器运行所述滑动轨迹校正方法的校正程序执行如下操作:
    当检测到所述曲面触摸屏上的滑动操作时,获取与所述滑动操作对应的滑动轨迹;
    判断所述滑动轨迹是否包括弧线;
    当所述滑动轨迹包括弧线时,对所述滑动轨迹进行校正。
  12. 如权利要求11所述的电子装置,其特征在于,所述曲面触模屏包括用于显示特定内容的像素单位矩阵,所述判断所述滑动轨迹是否包括弧线,包括:
    根据所述滑动轨迹中各个触控点的矩阵排列判断所述滑动轨迹是否为弧线;其中,所述触控点为所述像素单位矩阵中被滑动触控到的像素单位。
  13. 如权利要求12所述的电子装置,其特征在于,所述曲面触摸屏的横截面为圆形,当所述触控点在所述横载面的投影点不在同一条直线时,确定所述滑动轨迹为弧线。
  14. 如权利要求11所述的电子装置,其特征在于,所述当所述滑动轨迹包括弧线时,对所述滑动轨迹进行校正,包括:
    当所述滑动轨迹为弧线时,对所述滑动轨迹的长度进行校正。
  15. 如权利要求14所述的电子装置,其特征在于,所述对所述滑动轨迹 的长度进行校正,包括:
    确定所述滑动轨迹的起点和所述滑动轨迹的终点;所述起点为所述滑动轨迹中第一个被触控到的触控点;所述终点为所滑动轨迹中最后一个被触控到的触控点;
    计算以所述起点和所述终点为两个端点所构成的直线线段的长度,并确定以所述起点和所述终点为两个端点所构成的直线线段的长度为校正后的滑动轨迹的长度。
  16. 如权利要求15所述的电子装置,其特征在于,所述计算以所述起点和所述终点为两个端点所构成的线段的长度,包括:
    以所述起点或者所述终点为参考点建立包含所述参考点且与横截面平行的参考面;
    确定所述起点和所述终点中的另一点在所述参考面上的投影点;
    根据所述起点的矩阵位置、所述终点的矩阵位置以及所述投影点的矩阵位置,分别计算由所述起点和所述投影点所组成的线段的长度和由所述终点和所述投影点所组成的线段长度;
    根据由所述起点和所述投影点所组成的线段的长度和由所述终点和所述投影点所组成的线段长度,计算以所述起点和所述终点为两个端点所构成的直线线段的长度。
  17. 如权利要求13或16所述的电子装置,其特征在于,当所述曲面触摸屏呈柱形时,所述横截面为所述柱形的一对相互平行的圆形的端面中的一个;当所述曲面触摸屏呈锥形时,所述横截面为所述锥形的底面。
  18. 如权利要求16所述的电子装置,其特征在于,当所述起点为参考点时,所述根据所述起点的矩阵位置、所述终点的矩阵位置以及所述投影点的矩阵位置,分别计算由所述起点和所述投影点所组成的线段的长度和由所述终点和所述投影点所组成的线段长度,包括:
    计算所述终点的矩阵位置与所述投影点的矩阵位置的行差,并将所述行差对应的长度作为所述终点和所述投影点所组成的线段长度;
    计算所述起点的矩阵位置与所述投影点的矩阵位置的列差,并将所述列差对应的长度作为所述起点和所述投影点所组成弧线的弧线长度;
    根据所述弧线长度及横截面半径计算所述起点和所述投影点所构成的直线线段的长度;或
    当所述终点为参考点时,所述根据所述起点的矩阵位置、所述终点的矩阵位置以及所述投影点的矩阵位置,分别计算由所述起点和所述投影点所组成的线段的长度和由所述终点和所述投影点所组成的线段长度,包括:
    计算所述起点的矩阵位置与所述投影点的矩阵位置的行差,并将所述行差对应的长度作为所述起点和所述投影点所组成的线段长度;
    计算所述终点的矩阵位置与所述投影点的矩阵位置的列差,并将所述列差对应的长度作为所述终点和所述投影点所组成弧线的弧线长度;
    根据所述弧线长度及横截面半径计算所述终点和所述投影点为两个端点所构成的直线线段的长度。
  19. 如权利要求18所述的电子装置,其特征在于,所述处理器运行所述滑动轨迹校正方法的校正程序还执行如下操作:
    确定与校正后的滑动轨迹所对应的目标操作;
    依据所述目标操作对目标对象进行控制。
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有滑动轨迹校正方法的校正程序,所述滑动轨迹校正方法的校正程序被处理器执行时实现如权利要求1-10中任一项所述的滑动轨迹校正方法的步骤。
PCT/CN2018/112101 2018-10-26 2018-10-26 滑动轨迹校正方法、电子装置及计算机可读存储介质 Ceased WO2020082334A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/112101 WO2020082334A1 (zh) 2018-10-26 2018-10-26 滑动轨迹校正方法、电子装置及计算机可读存储介质
CN201880096057.2A CN112771482A (zh) 2018-10-26 2018-10-26 滑动轨迹校正方法、电子装置及计算机可读存储介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/112101 WO2020082334A1 (zh) 2018-10-26 2018-10-26 滑动轨迹校正方法、电子装置及计算机可读存储介质

Publications (1)

Publication Number Publication Date
WO2020082334A1 true WO2020082334A1 (zh) 2020-04-30

Family

ID=70330250

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/112101 Ceased WO2020082334A1 (zh) 2018-10-26 2018-10-26 滑动轨迹校正方法、电子装置及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN112771482A (zh)
WO (1) WO2020082334A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023206544A1 (zh) * 2022-04-29 2023-11-02 北京小米移动软件有限公司 输入方法及装置、终端设备、可读存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105528113A (zh) * 2015-12-30 2016-04-27 深圳市金立通信设备有限公司 一种基于曲面触摸屏的触控方法和终端
CN106062678A (zh) * 2014-04-15 2016-10-26 Lg电子株式会社 柔性触敏显示装置及其控制方法
CN107229407A (zh) * 2016-03-25 2017-10-03 联想(北京)有限公司 一种信息处理方法及电子设备

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108287621B (zh) * 2017-01-10 2021-01-29 南宁富桂精密工业有限公司 触摸屏校准方法及系统
CN108111893B (zh) * 2017-12-29 2021-06-15 深圳Tcl新技术有限公司 触摸遥控器的滑动方向估算方法、遥控器和计算机存储介质

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106062678A (zh) * 2014-04-15 2016-10-26 Lg电子株式会社 柔性触敏显示装置及其控制方法
CN105528113A (zh) * 2015-12-30 2016-04-27 深圳市金立通信设备有限公司 一种基于曲面触摸屏的触控方法和终端
CN107229407A (zh) * 2016-03-25 2017-10-03 联想(北京)有限公司 一种信息处理方法及电子设备

Also Published As

Publication number Publication date
CN112771482A (zh) 2021-05-07

Similar Documents

Publication Publication Date Title
US12388954B2 (en) Display apparatus and control methods thereof
CN104898981B (zh) 用于识别手势的方法、装置及终端
US9965155B2 (en) Dynamically merging multiple screens into one view port
CN110378954A (zh) 投影画面校正方法、装置、移动设备及存储介质
WO2017032007A1 (zh) 一种屏幕亮度调节方法及移动终端
CN103631435B (zh) 用于控制触摸功能的方法及其电子装置
WO2015161653A1 (zh) 一种终端操作方法及终端设备
WO2015109816A1 (zh) 一种终端截屏的方法以及终端
WO2022134390A1 (zh) 标注方法及装置、电子设备和存储介质
TW202013316A (zh) 人臉圖像的處理方法及裝置、電子設備和儲存介質
WO2018010316A1 (zh) 桌面页面管理的方法及装置
CN107148776A (zh) 获取视频数据的方法、装置、系统及计算机可读存储介质
JP6720513B2 (ja) 通信端末、通信システム、通信制御方法、及びプログラム
US10319338B2 (en) Electronic device and method of extracting color in electronic device
CN106412457A (zh) 一种图像处理方法及移动终端
CN114565701A (zh) 线段绘制方法、装置、电子设备及计算机可读存储介质
CN106203436A (zh) 图像二值化方法和装置
WO2020082334A1 (zh) 滑动轨迹校正方法、电子装置及计算机可读存储介质
WO2020200255A1 (zh) 擦除控件的处理方法、装置和设备
CN105320434A (zh) 基于安卓系统的曲线绘制处理方法、装置及终端
WO2018157655A1 (zh) 重新定义屏幕的操控显示区域的方法和装置
EP3048524B1 (en) Document display support device, terminal, document display method, and computer-readable storage medium for computer program
CN113253829B (zh) 眼球跟踪校准方法及相关产品
CN109683729B (zh) 三维场景控制方法及装置
CN109085974B (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: 18937807

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: 18937807

Country of ref document: EP

Kind code of ref document: A1