WO2021175142A1 - Control method and electronic device - Google Patents

Control method and electronic device Download PDF

Info

Publication number
WO2021175142A1
WO2021175142A1 PCT/CN2021/077809 CN2021077809W WO2021175142A1 WO 2021175142 A1 WO2021175142 A1 WO 2021175142A1 CN 2021077809 W CN2021077809 W CN 2021077809W WO 2021175142 A1 WO2021175142 A1 WO 2021175142A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
value
preset
touch input
sound
Prior art date
Application number
PCT/CN2021/077809
Other languages
French (fr)
Chinese (zh)
Inventor
严宇鹏
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2021175142A1 publication Critical patent/WO2021175142A1/en

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H20/00ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
    • G16H20/70ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to mental therapies, e.g. psychological therapy or autogenous training
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/016Input arrangements with force or tactile feedback as computer generated output to the user
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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
    • G06F3/0488Interaction 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 using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Psychology (AREA)
  • Epidemiology (AREA)
  • Medical Informatics (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • Social Psychology (AREA)
  • Psychiatry (AREA)
  • Hospice & Palliative Care (AREA)
  • Developmental Disabilities (AREA)
  • Child & Adolescent Psychology (AREA)
  • Multimedia (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A control method, an electronic device, a computer readable storage medium, and a computer program product. The method comprises: an electronic device displays a target image in the screen (S101); the electronic device receives a target touch input of a user on a target region in the screen (S102); the electronic device executes, in response to the target touch input, a control action corresponding to the target touch input (S103), the control action comprising at least one of: outputting target sound corresponding to a pattern of the target image, changing a pattern corresponding to the target region in the target image, and increasing the current value output in the target region. The method can be applied in a scenario for reducing the stress of a user.

Description

控制方法及电子设备Control method and electronic equipment
相关申请的交叉引用Cross-references to related applications
本申请主张在2020年03月04日在中国提交的中国专利申请号No.202010143896.4的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 202010143896.4 filed in China on March 4, 2020, the entire content of which is incorporated herein by reference.
技术领域Technical field
本发明实施例涉及通信技术领域,尤其涉及一种控制方法及电子设备。The embodiments of the present invention relate to the field of communication technologies, and in particular, to a control method and electronic equipment.
背景技术Background technique
随着科技的不断进步,社会竞争越来越激烈,人们面临的社会压力、工作压力和生活压力等也越来越繁重。在这种环境下,有些时候人们可能会产生焦虑、烦躁、压抑和紧张等各种负面情绪,从而会损害身心健康。With the continuous advancement of science and technology, social competition has become increasingly fierce, and the social pressures, work pressures and life pressures that people face have become more and more onerous. In this environment, sometimes people may have various negative emotions such as anxiety, irritability, depression and tension, which can damage physical and mental health.
目前,听音乐能够在一定程度上使人放松身心,因此人们可以使用音乐播放器播放某些舒缓的音乐,从而缓和情绪并减轻精神压力。但是,当某些不喜欢听音乐的人的压力较大时,播放音乐的方式可能并不适用,导致为用户减轻压力的效果较差。At present, listening to music can relax people to a certain extent, so people can use music players to play some soothing music to ease emotions and reduce mental stress. However, when some people who do not like to listen to music are stressed, the way of playing music may not be suitable, resulting in a poorer effect of reducing stress for users.
发明内容Summary of the invention
本发明实施例提供一种控制方法及电子设备,以解决采用播放音乐的方式为用户减轻压力的效果较差的问题。The embodiments of the present invention provide a control method and an electronic device to solve the problem of poor effect of reducing stress for users by playing music.
为了解决上述技术问题,本发明实施例是这样实现的:In order to solve the above technical problems, the embodiments of the present invention are implemented as follows:
第一方面,本发明实施例提供了一种控制方法。该方法包括:在屏幕中显示目标图像;接收用户对屏幕中目标区域的目标触控输入;响应于该目标触控输入,执行与该目标触控输入对应的控制动作;其中,该控制动作包括以下至少一项:输出与该目标图像的图案对应的目标声音,改变该目标图像中与该目标区域对应的图案,增大在该目标区域输出的电流值。In the first aspect, an embodiment of the present invention provides a control method. The method includes: displaying a target image on a screen; receiving a user's target touch input to a target area in the screen; in response to the target touch input, executing a control action corresponding to the target touch input; wherein the control action includes At least one of the following: output a target sound corresponding to the pattern of the target image, change the pattern corresponding to the target area in the target image, and increase the current value output in the target area.
第二方面,本发明实施例提供了一种电子设备。该电子设备包括显示模块、接收模块和处理模块。显示模块,用于在屏幕中显示目标图像;接收模块,用于接收用户对屏幕中目标区域的目标触控输入;处理模块,用于响应于接收模块接收的该目标触控输入,执行与该目标触控输入对应的控制动作;其中,该控制动作包括以下至少一项:输出与该目标图像的图案对应的目标声音,改变该目标图像中与该目标区域对应的图案,增大在该目标区域输出的电流值。In the second aspect, an embodiment of the present invention provides an electronic device. The electronic device includes a display module, a receiving module, and a processing module. The display module is used to display the target image on the screen; the receiving module is used to receive the user's target touch input to the target area in the screen; the processing module is used to respond to the target touch input received by the receiving module and execute the The control action corresponding to the target touch input; wherein the control action includes at least one of the following: outputting a target sound corresponding to the pattern of the target image, changing the pattern corresponding to the target area in the target image, and increasing the The current value of the area output.
第三方面,本发明实施例提供了一种电子设备,包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现第一方面提供的控制方法的步骤。In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored in the memory and running on the processor. The computer program is executed by the processor to realize the first The steps of the control method provided by the aspect.
第四方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介 质上存储计算机程序,该计算机程序被处理器执行时实现第一方面提供的控制方法的步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium that stores a computer program on the computer-readable storage medium, and the computer program implements the steps of the control method provided in the first aspect when the computer program is executed by a processor.
在本发明实施例中,可以在屏幕中显示目标图像;并接收用户对屏幕中目标区域的目标触控输入;以及响应于该目标触控输入,执行与该目标触控输入对应的控制动作;其中,该控制动作包括以下至少一项:输出与该目标图像的图案对应的目标声音,改变该目标图像中与该目标区域对应的图案,增大在该目标区域输出的电流值。通过该方案,当用户感觉压力大时,用户可以通过对屏幕中的某个区域的输入,触发电子设备输出与在屏幕中显示的目标图像的图案对应的目标声音、改变目标图像中的与该目标区域对应的图像图案、增大在目标区域输出的电流值,因此电子设备可以为用户提供听觉体验、视觉体验和触觉体验等不同方位的体验,使得用户可以更为直观、逼真地体验戳泡泡或捏面饼等减压方式,从而有效地舒缓了用户的负面情绪,并减轻了用户的压力。In the embodiment of the present invention, the target image may be displayed on the screen; and the user's target touch input to the target area on the screen may be received; and in response to the target touch input, a control action corresponding to the target touch input may be executed; The control action includes at least one of the following: outputting a target sound corresponding to the pattern of the target image, changing the pattern corresponding to the target area in the target image, and increasing the current value output in the target area. With this solution, when the user feels stressed, the user can trigger the electronic device to output the target sound corresponding to the pattern of the target image displayed on the screen by inputting a certain area on the screen, and change the target sound in the target image. The image pattern corresponding to the target area increases the current value output in the target area, so the electronic device can provide users with different aspects of experience such as auditory experience, visual experience and tactile experience, so that users can experience poking bubbles more intuitively and realistically Decompression methods such as soaking or kneading dough, which effectively relieves the user's negative emotions, and reduces the user's pressure.
附图说明Description of the drawings
图1为本发明实施例提供的一种安卓操作系统的架构示意图;FIG. 1 is a schematic diagram of the architecture of an Android operating system provided by an embodiment of the present invention;
图2为本发明实施例提供的一种控制方法的示意图之一;FIG. 2 is one of the schematic diagrams of a control method provided by an embodiment of the present invention;
图3为本发明实施例提供的对目标区域的操作示意图之一;FIG. 3 is one of schematic diagrams of operations on a target area provided by an embodiment of the present invention;
图4为本发明实施例提供的对目标区域的操作示意图之二;FIG. 4 is a second schematic diagram of operations on a target area provided by an embodiment of the present invention;
图5为本发明实施例提供的一种控制方法的示意图之二;FIG. 5 is the second schematic diagram of a control method provided by an embodiment of the present invention;
图6为本发明实施例提供的一种控制方法的示意图之三;FIG. 6 is the third schematic diagram of a control method provided by an embodiment of the present invention;
图7为本发明实施例提供的触控输入的压力值和电流值对应关系的示意图;FIG. 7 is a schematic diagram of the corresponding relationship between the pressure value and the current value of the touch input provided by an embodiment of the present invention;
图8为本发明实施例提供的一种控制方法的示意图之四;FIG. 8 is a fourth schematic diagram of a control method provided by an embodiment of the present invention;
图9为本发明实施例提供的电子设备的结构示意图之一;FIG. 9 is one of structural schematic diagrams of an electronic device provided by an embodiment of the present invention;
图10为本发明实施例提供的电子设备的结构示意图之二;FIG. 10 is a second structural diagram of an electronic device provided by an embodiment of the present invention;
图11为本发明实施例提供的电子设备的硬件示意图。FIG. 11 is a schematic diagram of hardware of an electronic device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
本文中术语“和/或”,是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。本文中符号“/”表示关联对象是或者的关系,例如A/B表示A或者B。The term "and/or" in this article refers to an association relationship that describes associated objects, which means that there can be three types of relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone These three situations. The symbol "/" in this document represents the relationship that the associated object is or, for example, A/B represents A or B.
本发明的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一音调和第二音调等是用于区别不同的音调,而不是用于描述音调的特定顺序。The terms "first" and "second" in the specification and claims of the present invention are used to distinguish different objects, rather than to describe a specific order of objects. For example, the first tones and the second tones are used to distinguish different tones, rather than to describe a specific order of tones.
在本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不 应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present invention, words such as "exemplary" or "for example" are used to represent examples, illustrations, or illustrations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present invention should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as "exemplary" or "for example" are used to present related concepts in a specific manner.
在本发明实施例的描述中,除非另有说明,“多个”的含义是指两个或者两个以上,例如,多个元件是指两个或者两个以上的元件等。In the description of the embodiments of the present invention, unless otherwise specified, the meaning of "plurality" means two or more than two, for example, a plurality of elements means two or more elements, and so on.
本发明实施例中的电子设备可以为具有操作系统的电子设备。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本发明实施例不作具体限定。The electronic device in the embodiment of the present invention may be an electronic device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present invention.
下面以安卓操作系统为例,介绍一下本发明实施例提供的控制方法所应用的软件环境。The following takes the Android operating system as an example to introduce the software environment to which the control method provided by the embodiment of the present invention is applied.
如图1所示,为本发明实施例提供的一种安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。As shown in FIG. 1, it is a schematic structural diagram of an Android operating system provided by an embodiment of the present invention. In Figure 1, the architecture of the Android operating system includes 4 layers, which are: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
其中,应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。Among them, the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。The application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework.
系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。The system runtime layer includes a library (also called a system library) and an Android operating system runtime environment. The library mainly provides various resources needed by the Android operating system. The Android operating system operating environment is used to provide a software environment for the Android operating system.
内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。The kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software level. The kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
以安卓操作系统为例,本发明实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本发明实施例提供的控制方法的软件程序,从而使得该控制方法可以基于如图1所示的安卓操作系统运行。即处理器或者电子设备可以通过在安卓操作系统中运行该软件程序实现本发明实施例提供的控制方法。Taking the Android operating system as an example, in the embodiment of the present invention, developers can develop a software program that implements the control method provided by the embodiment of the present invention based on the system architecture of the Android operating system as shown in FIG. 1, so that the control method It can be run based on the Android operating system as shown in Figure 1. That is, the processor or the electronic device can implement the control method provided by the embodiment of the present invention by running the software program in the Android operating system.
本发明实施例中的电子设备可以为终端设备。该终端设备可以为移动终端设备,也可以为非移动终端设备。示例性的,移动终端设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动终端设备可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本发明实施例不作具体限定。The electronic device in the embodiment of the present invention may be a terminal device. The terminal device may be a mobile terminal device or a non-mobile terminal device. Exemplarily, the mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). Assistant, PDA), etc. The non-mobile terminal device may be a personal computer (PC), television (television, TV), teller machine, or self-service machine, etc., which is not specifically limited in the embodiment of the present invention.
本发明实施例提供的控制方法的执行主体可以为上述的电子设备,也可以为该电子设备中能够实现该控制方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本发明实施例不作限定。The execution subject of the control method provided by the embodiment of the present invention may be the above-mentioned electronic device, or may be a functional module and/or functional entity in the electronic device that can implement the control method. The specifics can be determined according to actual usage requirements. The embodiment is not limited.
目前,一方面,听音乐能够在一定程度上使人放松身心,因此人们可以使用电子设备的音乐播放器播放某些舒缓的音乐,从而缓和情绪并减轻精神压力。但是,当某些不喜欢听音乐的人的压力较大时,播放音乐的方式可能并不适用,导致为用户减轻压力的效果较差。另一方面,戳泡泡纸的减压方式效果较好,但是戳泡泡纸的体积较大不方便用户携带,并且,戳泡泡纸会消耗材料,并不环保。At present, on the one hand, listening to music can relax people to a certain extent, so people can use music players of electronic devices to play some soothing music, so as to ease emotions and reduce mental stress. However, when some people who do not like to listen to music are stressed, the way of playing music may not be suitable, resulting in a poorer effect of reducing stress for users. On the other hand, the decompression method of bubble paper has a better effect, but the volume of bubble paper is large and inconvenient for users to carry. Moreover, bubble paper consumes materials and is not environmentally friendly.
为此,本发明实施例提供一种控制方法,当用户感到压力较大时,用户可以对通过对在电子设备的屏幕中显示包括目标图案(例如泡泡图案、面饼图案)的图像的触控输入,触发电子设备执行与该触控输入对应的控制动作,从而既可以达到为用户减压的目的,又更为环保。To this end, the embodiment of the present invention provides a control method. When the user feels a lot of pressure, the user can touch the image that includes the target pattern (such as bubble pattern, noodle pattern) displayed on the screen of the electronic device. The control input triggers the electronic device to execute the control action corresponding to the touch input, so that the purpose of reducing pressure for the user can be achieved, and it is more environmentally friendly.
为了更清楚地示意本发明实施例,下面是本发明提供的控制方法的两种应用场景:In order to illustrate the embodiments of the present invention more clearly, the following are two application scenarios of the control method provided by the present invention:
第一种可能的场景为,当用户感到压力较大时,用户可以通过对电子设备的第一输入,触发电子设备显示目标图像。例如,第一输入可以是对目标控件的输入,该目标控件可以触发电子设备在屏幕中显示目标图像,该目标控件可以是悬浮球或目标应用程序中的一个功能控件。再例如,第一输入可以包括第一子输入和第二子输入,用户可以通过对目标应用程序的图标的第一子输入,触发电子设备显示多个具备减压效果的图像的缩略图,之后,用户可以通过对目标图像的缩略图的第二子输入,触发电子设备在屏幕中显示该目标图像。其中,该目标应用程序可以用于执行本发明实施例提供的控制方法。The first possible scenario is that when the user feels a lot of pressure, the user can trigger the electronic device to display the target image through the first input to the electronic device. For example, the first input may be an input to a target control, the target control may trigger the electronic device to display the target image on the screen, and the target control may be a floating ball or a functional control in the target application. For another example, the first input may include a first sub-input and a second sub-input. The user can trigger the electronic device to display multiple thumbnails of images with a decompression effect through the first sub-input to the icon of the target application, and then , The user can trigger the electronic device to display the target image on the screen through the second sub-input of the thumbnail of the target image. Wherein, the target application can be used to execute the control method provided by the embodiment of the present invention.
第二种可能的场景为,电子设备可以按照预设周期,周期性地检测电子设备是否满足预设条件,并在满足预设条件的情况下,在屏幕中自动显示目标图像。其中,该预设条件可以包括以下至少一项:电子设备的系统时间为预设时间(例如周末21:00或参加考试的前一夜晚),电子设备所处的地理位置为预设位置(例如用户家庭所在的位置或公司所在的位置),电子设备检测到下载、存储、发送或分享包含预设关键字的内容(例如用户分享一个表示工作压力大的状态信息)。The second possible scenario is that the electronic device can periodically detect whether the electronic device meets the preset condition according to the preset period, and automatically display the target image on the screen when the preset condition is satisfied. The preset condition may include at least one of the following: the system time of the electronic device is a preset time (for example, 21:00 on weekends or the night before taking an exam), and the geographic location of the electronic device is a preset location (for example, The location of the user's home or the location of the company), the electronic device detects that it downloads, stores, sends, or shares content containing preset keywords (for example, the user shares a status message that indicates high work pressure).
下面以执行主体为电子设备为例,对本发明实施例提供的控制方法进行示例性的说明。Hereinafter, taking the electronic device as the execution subject as an example, the control method provided by the embodiment of the present invention will be exemplarily described.
如图2所示,本发明实施例提供一种控制方法。该方法可以包括下述的S101至S103。As shown in FIG. 2, an embodiment of the present invention provides a control method. The method may include the following S101 to S103.
S101、电子设备在屏幕中显示目标图像。S101. The electronic device displays a target image on the screen.
可选的,上述目标图像为包括目标图案的图像。其中,该目标图案可以为泡泡纸图案、面饼图案、泡沫图案、发泄球或气球图案等任意具备减压效果的图案。Optionally, the above-mentioned target image is an image including a target pattern. Wherein, the target pattern can be any pattern with a pressure reducing effect, such as a bubble paper pattern, a cake pattern, a foam pattern, a vent ball or a balloon pattern.
可选的,上述目标图像可以为静态图像,也可以为动态图像。Optionally, the above-mentioned target image may be a static image or a dynamic image.
需要说明的是,上述目标图案可以包括N个子图案,本发明实施例对该N个子图案的形状、大小和颜色不作具体限定。该N个子图案的形状可以相同或不同,该N个子图案的大小可以相同或不同,该N个子图案的颜色可以相同或不同,其中,N为大于或等于1的整数。另外,上述目标图案在目标图像中可以处于均匀分布的状态,也可以处于非均匀分布的状态,还可以处于随机分布的状态。It should be noted that the foregoing target pattern may include N sub-patterns, and the embodiment of the present invention does not specifically limit the shape, size, and color of the N sub-patterns. The shapes of the N sub-patterns may be the same or different, the sizes of the N sub-patterns may be the same or different, and the colors of the N sub-patterns may be the same or different, where N is an integer greater than or equal to 1. In addition, the above-mentioned target patterns may be in a state of uniform distribution in the target image, may also be in a state of non-uniform distribution, or may be in a state of random distribution.
例如,在如图3所示的泡泡纸图案中,各个泡泡的大小并不相同,且各个泡泡的位置是随机变化的,因此用户可以看到界面中飘动的各个泡泡。在如图4所示的面饼图案中,非均匀分布很多根面饼丝,这些面饼丝并没有分布规律。For example, in the bubble paper pattern shown in FIG. 3, the size of each bubble is different, and the position of each bubble changes randomly, so the user can see each bubble floating in the interface. In the cake pattern shown in Fig. 4, there are many flour cake threads that are unevenly distributed, and these flour cake threads have no regular distribution.
可选的,上述目标图像可以为电子设备中存储的图像,也可以为电子设备从服务器下载的图像,还可以为其他设备向用户使用的电子设备分享的图像。可以根据实际使用需求确定,本发明实施例不作限定。Optionally, the above-mentioned target image may be an image stored in an electronic device, an image downloaded by the electronic device from a server, or an image shared by other devices with the electronic device used by the user. It can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
可选的,在电子设备中存储具备减压效果的多个图像的情况下,目标图像可以为 从该多个图像中随机选择的一个图像,或为由用户通过输入指定的一个图像。可以根据实际使用需求确定,本发明实施例不作限定。Optionally, in the case of storing multiple images with decompression effects in the electronic device, the target image may be an image randomly selected from the multiple images, or an image designated by the user through input. It can be determined according to actual use requirements, and the embodiment of the present invention does not limit it.
可选的,上述目标图像在电子设备的屏幕中的显示区域可以为一个预设区域,例如该预设区域可以为整个屏幕区域或靠近屏幕右侧的一个区域;也可以为用户在屏幕中指定的一个任意区域。例如,电子设备通常会在屏幕的预设区域显示目标图像,若用户对预设区域不满意,则用户可以通过输入调整目标图像的显示区域,从而电子设备可以在用户指定的区域显示目标图像。Optionally, the display area of the target image on the screen of the electronic device may be a preset area, for example, the preset area may be the entire screen area or an area close to the right side of the screen; it may also be specified by the user on the screen An arbitrary area of. For example, the electronic device usually displays the target image in a preset area of the screen. If the user is not satisfied with the preset area, the user can adjust the display area of the target image through input, so that the electronic device can display the target image in the area specified by the user.
S102、电子设备接收用户对屏幕中目标区域的目标触控输入。S102. The electronic device receives a user's target touch input to a target area on the screen.
本发明实施例中,若目标图像在屏幕中的显示区域为第一区域,则目标区域可以为第一区域中的部分区域,即目标触控输入为用户对目标图像中的部分图像的输入。In the embodiment of the present invention, if the display area of the target image on the screen is the first area, the target area may be a partial area in the first area, that is, the target touch input is the user's input to a part of the image in the target image.
可选的,上述目标触控输入具体可以为对目标区域的点击输入、按压输入或其他任意可能的输入等,可以根据实际使用需求确定。Optionally, the aforementioned target touch input may specifically be a click input, a press input, or any other possible input to the target area, which may be determined according to actual usage requirements.
示例性的,如图3中的(a)所示,电子设备可以在屏幕中全屏显示一张泡泡纸图像,用户可以点击一个较大泡泡所在的区域01,从而电子设备可以接收用户对区域01的点击输入。或者,如图4中的(a)所示,电子设备可以在屏幕中全屏显示一张面饼图像,用户可以按压一根面饼丝所在的区域02,从而电子设备可以接收用户对区域02的按压输入。Exemplarily, as shown in Figure 3(a), the electronic device can display a bubble paper image in full screen on the screen, and the user can click on the area 01 where a larger bubble is located, so that the electronic device can receive user feedback Click to enter area 01. Or, as shown in Figure 4(a), the electronic device can display a piece of dough image on the screen in full screen, and the user can press the area 02 where a piece of dough piece is located, so that the electronic device can receive the user’s information on the area 02 Press to enter.
S103、电子设备响应于该目标触控输入,执行与该目标触控输入对应的控制动作。S103. In response to the target touch input, the electronic device executes a control action corresponding to the target touch input.
其中,上述控制动作可以包括以下至少一项:输出与目标图像的图案对应的目标声音,改变目标图像中与目标区域对应的图案,增大在目标区域输出的电流值。The aforementioned control action may include at least one of the following: outputting a target sound corresponding to the pattern of the target image, changing the pattern corresponding to the target area in the target image, and increasing the current value output in the target area.
本发明实施例中,上述控制动作可以与目标触控输入的压力值相关,即电子设备可以根据目标触控输入的压力值,执行与该目标触控输入对应的控制动作。可以理解的是,当目标触控输入的压力值改变时,输出的目标声音可以不同,目标图像中与目标区域对应的图案的改变方式可以不同,在目标区域输出的电流的增大电流值可以不同。具体将在下述实施例中进行描述,此处不予赘述。In the embodiment of the present invention, the aforementioned control action may be related to the pressure value of the target touch input, that is, the electronic device may execute the control action corresponding to the target touch input according to the pressure value of the target touch input. It is understandable that when the pressure value of the target touch input changes, the output target sound can be different, the pattern of the target image corresponding to the target area can be changed in different ways, and the current output in the target area can be increased by different. The details will be described in the following embodiments, which will not be repeated here.
可选的,上述目标声音可以为根据目标图像的图案和目标触控输入的压力确定的。具体的,若目标图像的图案不同,则与图案对应的声音类型不同;若目标触控输入的压力不同,则与压力对应的声音类型和声音频率也可以不同。Optionally, the foregoing target sound may be determined according to the pattern of the target image and the pressure of the target touch input. Specifically, if the pattern of the target image is different, the sound type corresponding to the pattern is different; if the pressure of the target touch input is different, the sound type and sound frequency corresponding to the pressure may also be different.
可选的,上述改变目标图像中与目标区域对应的图案可以包括以下至少一项:改变目标图像中的与目标区域对应的图案的形状,改变目标图像中的与目标区域对应的图案的数量。Optionally, changing the pattern corresponding to the target area in the target image may include at least one of the following: changing the shape of the pattern in the target image corresponding to the target area, and changing the number of patterns in the target image corresponding to the target area.
上述改变目标图像中的与目标区域对应的图案的形状是指:在不改变与目标区域对应的图案的数量的前提条件下,对与目标区域对应的图案进行形变处理。例如,若与目标区域对应的图案为泡泡,则用户可以通过目标触控输入使泡泡的部分边缘向泡泡内部凹陷,或使泡泡从圆形更改为椭圆形等;再例如,若与目标区域对应的图案为多根面饼丝,则用户可以通过目标触控输入使这些面饼丝产生弯曲等。The above-mentioned changing the shape of the pattern corresponding to the target area in the target image refers to performing deformation processing on the pattern corresponding to the target area under the premise of not changing the number of patterns corresponding to the target area. For example, if the pattern corresponding to the target area is a bubble, the user can use the target touch input to dent part of the edge of the bubble into the bubble, or change the bubble from a circle to an oval, etc.; for another example, if The pattern corresponding to the target area is a plurality of noodles, and the user can make these noodles bend through the target touch input.
上述减少目标图像中的与目标区域对应的图案的数量是指:将与目标区域对应的图案从目标图像中删除。若与目标区域对应的图案为泡泡,则用户可以通过目标触控输入使这些泡泡破裂,从而在目标图像中不再显示这些泡泡;再例如,若与目标区域 对应的图案为多根面饼丝,则用户可以通过目标触控输入使这些面饼丝发生断裂。The aforementioned reduction of the number of patterns corresponding to the target area in the target image refers to deleting the patterns corresponding to the target area from the target image. If the patterns corresponding to the target area are bubbles, the user can burst these bubbles through the target touch input, so that these bubbles are no longer displayed in the target image; for another example, if the patterns corresponding to the target area are multiple Cake shreds, the user can make these shreds break through target touch input.
可选的,上述增大在目标区域输出的电流值,包括下述两种方式:Optionally, the above-mentioned increase in the current value output in the target area includes the following two ways:
第一种方式,在接收目标触控输入之前,电子设备在目标区域未输出电流;在接收目标触控输入之后,电子设备在目标区域输出的电流为第二电流值。可以理解的是,在用户对目标区域进行触控输入之后,电子设备通过在该目标区域输出电流,可以使用户获得触感反馈,例如被电流震麻的感觉。In the first way, before receiving the target touch input, the electronic device does not output current in the target area; after receiving the target touch input, the current output by the electronic device in the target area is the second current value. It is understandable that after the user performs a touch input on the target area, the electronic device outputs a current in the target area, so that the user can obtain tactile feedback, such as the feeling of being numbed by the current.
第二种方式,在接收用户对屏幕中目标区域的目标触控输入之前,电子设备在目标区域输出的电流为第一电流值;在接收用户对屏幕中目标区域的目标触控输入之后,电子设备在目标区域输出的电流为第二电流值,第二电流值大于第一电流值。可以理解的是,与第一种方式相比,由于第二种方式是先输出一个电流值较低的电流,再输出一个电流值较高的电流,因此用户在对目标区域进行触控输入的整个过程中,用户可以感受到目标区域的电流变化,即获取更好的触觉感受。In the second way, before receiving the user's target touch input on the target area on the screen, the current output by the electronic device in the target area is the first current value; after receiving the user's target touch input on the target area on the screen, the electronic device The current output by the device in the target area is the second current value, and the second current value is greater than the first current value. It is understandable that, compared with the first method, since the second method is to output a current with a lower current value first, and then output a current with a higher current value, the user is performing touch input on the target area. During the whole process, the user can feel the current change in the target area, that is, get a better tactile feeling.
示例性的,如图3中的(a)所示,电子设备可以在屏幕中全屏显示一张泡泡纸图像,用户可以点击一个较大泡泡所在的区域01,即目标区域。如图3中的(b)所示,在电子设备接收用户对区域01的点击输入之后,电子设备可以播放一个泡泡破裂的声音,取消在区域01中显示的泡泡,以及增大在区域01输出的电流值。因此,电子设备可以为用户提供听觉体验、视觉体验和触觉体验等多方位体验,从而用户可以更为直观、逼真地体验戳泡泡,并减轻用户的压力。Exemplarily, as shown in (a) of FIG. 3, the electronic device can display a bubble paper image in full screen on the screen, and the user can click on the area 01 where a larger bubble is located, that is, the target area. As shown in Figure 3(b), after the electronic device receives the user’s click input on area 01, the electronic device can play a bubble bursting sound, cancel the bubble displayed in area 01, and increase the area 01 The output current value. Therefore, the electronic device can provide users with multi-directional experiences such as auditory experience, visual experience, and tactile experience, so that the user can experience poking bubbles more intuitively and realistically, and reduce the user's pressure.
示例性的,如图4中的(a)所示,电子设备可以在屏幕中全屏显示一张面饼图像,用户可以按压一根面饼丝所在的区域02,即目标区域。如图4中的(b)所示,在电子设备接收用户对区域02的点击输入之后,电子设备可以播放面饼丝断裂的声音,并在区域02中显示一根断裂的面饼丝,以及增大在区域02输出的电流值。因此,电子设备可以为用户提供听觉体验、视觉体验和触觉体验等多方位体验,从而用户可以更为直观、逼真地体验捏碎面饼,并减轻用户的压力。Exemplarily, as shown in (a) of FIG. 4, the electronic device can display a piece of dough image on the screen in full screen, and the user can press the area 02 where a piece of dough piece is located, that is, the target area. As shown in (b) in Figure 4, after the electronic device receives the user's click input on area 02, the electronic device can play the sound of broken noodles and display a broken noodles in area 02, and Increase the output current value in area 02. Therefore, the electronic device can provide users with multi-directional experiences such as auditory experience, visual experience, and tactile experience, so that the user can experience crunching the dough more intuitively and realistically, and reduce the user's pressure.
本发明实施例提供一种控制方法,可以在屏幕中显示目标图像;并接收用户对屏幕中目标区域的目标触控输入;以及响应于该目标触控输入,执行与该目标触控输入对应的控制动作;其中,该控制动作包括以下至少一项:输出与该目标图像的图案对应的目标声音,改变该目标图像中与该目标区域对应的图案,增大在该目标区域输出的电流值。通过该方案,一方面,当用户感觉压力大时,用户可以通过对屏幕中的某个区域的输入,触发电子设备输出与在屏幕中显示的目标图像的图案对应的目标声音、改变目标图像中的与该目标区域对应的图像图案、增大在目标区域输出的电流值,因此电子设备可以为用户提供听觉体验、视觉体验和触觉体验等多方位体验,使得用户可以更为直观、逼真地体验戳泡泡或捏面饼等减压方式,从而有效地舒缓了用户的负面情绪,并减轻了用户的压力。另一方面,与原生的戳泡泡纸相比,当用户使用本发明实施例提供的控制方法更加环保,更加经济,而且不受泡泡纸的体积影响,方便用户随时随身携带,可以实现随时想减压。The embodiment of the present invention provides a control method, which can display a target image on a screen; and receives a user's target touch input to a target area in the screen; and in response to the target touch input, executes the target touch input corresponding to the target touch input. A control action; wherein the control action includes at least one of the following: outputting a target sound corresponding to the pattern of the target image, changing the pattern corresponding to the target area in the target image, and increasing the current value output in the target area. Through this solution, on the one hand, when the user feels stressed, the user can trigger the electronic device to output the target sound corresponding to the pattern of the target image displayed on the screen by inputting a certain area on the screen, and change the target image. The image pattern corresponding to the target area increases the current value output in the target area, so the electronic device can provide users with multi-directional experiences such as auditory, visual, and tactile experiences, so that users can experience more intuitively and realistically Decompression methods such as poking bubbles or kneading dough can effectively relieve the user’s negative emotions and reduce the user’s pressure. On the other hand, compared with the original bubble paper, when the user uses the control method provided by the embodiment of the present invention, it is more environmentally friendly, more economical, and is not affected by the volume of the bubble paper, which is convenient for the user to carry at any time, and can realize I want to decompress.
为了更清楚地示意本发明,下面将通过下述的三个实施例,分别对与目标触控输入对应的控制动作为增大在目标区域输出的电流值、输出与目标图像的图案对应的目标声音、改变目标图像中与目标区域对应的图案进行示例性说明。In order to illustrate the present invention more clearly, the following three embodiments will be used to control the control actions corresponding to the target touch input to increase the current value output in the target area and output the target corresponding to the pattern of the target image. Sound and changing the pattern corresponding to the target area in the target image are exemplified.
实施例一Example one
可选的,针对与目标触控输入对应的控制动作为增大在目标区域输出的电流值这种方式,电子设备可以在每个像素点所在的显示位置,分别按照与每个像素点对应的电流值输出电流;之后,若电子设备接收到用户对目标区域的目标触控输入,则电子设备可以增大目标区域输出电流的电流值,从而使用户可以从触觉上感受到目标区域的变化。Optionally, for the control action corresponding to the target touch input to increase the current value output in the target area, the electronic device can set the display position of each pixel according to the corresponding The current value outputs the current; then, if the electronic device receives the user's target touch input to the target area, the electronic device can increase the current value of the output current of the target area, so that the user can feel the change of the target area from the touch.
可选的,结合图2,如图5所示,在上述S101之后,在上述S102之前,本发明实施例提供的控制方法还可以包括下述的S104至S106。Optionally, in conjunction with FIG. 2, as shown in FIG. 5, after the above S101 and before the above S102, the control method provided by the embodiment of the present invention may further include the following S104 to S106.
S104、电子设备获取与目标图像的每个像素点对应的特征值及每个像素点显示在屏幕中的位置。S104. The electronic device obtains the feature value corresponding to each pixel of the target image and the display position of each pixel on the screen.
其中,上述特征值包括以下至少一项:亮度值、梯度值、至少一个颜色通道的像素值。Wherein, the aforementioned characteristic value includes at least one of the following: a brightness value, a gradient value, and a pixel value of at least one color channel.
本发明实施例中,目标图像可以包括多个像素点。每个像素点分别对应一个或一组特征值,且每个像素点分别对应屏幕中的一个显示位置。In the embodiment of the present invention, the target image may include multiple pixels. Each pixel corresponds to one or a group of characteristic values, and each pixel corresponds to a display position on the screen.
可选的,上述至少一个颜色通道的像素值可以包括以下至少一项:R通道的像素值、G通道的像素值、B通道的像素值。其中,R代表明红色通道,G代表绿色通道,B代表蓝色通道。Optionally, the pixel value of the at least one color channel may include at least one of the following: the pixel value of the R channel, the pixel value of the G channel, and the pixel value of the B channel. Among them, R represents the bright red channel, G represents the green channel, and B represents the blue channel.
或者,上述至少一个颜色通道的像素值可以包括以下至少一项:Y通道的像素值、U通道的像素值、V通道的像素值。其中,Y代表明亮度,U和V代表色度。Alternatively, the pixel value of the at least one color channel may include at least one of the following: the pixel value of the Y channel, the pixel value of the U channel, and the pixel value of the V channel. Among them, Y stands for brightness, U and V stand for chromaticity.
需要说明的是,本发明实施例中,在目标图像包括多个图案的情况下,在每个图案中位于边缘的像素点的梯度值较大,而在每个图案中位于非边缘的像素点的梯度值较小,这样使得电子设备可以根据每个像素点的梯度值快速确定出图案的边缘,并区分出目标图像中的每个图案。It should be noted that, in the embodiment of the present invention, when the target image includes multiple patterns, the gradient value of the pixels located at the edges in each pattern is larger, and the pixels located at the non-edges in each pattern The gradient value of is small, so that the electronic device can quickly determine the edge of the pattern according to the gradient value of each pixel, and distinguish each pattern in the target image.
S105、电子设备根据与每个像素点对应的特征值,获取与每个像素点对应的电流值。S105. The electronic device obtains a current value corresponding to each pixel point according to the characteristic value corresponding to each pixel point.
示例1,以目标图像中的目标像素点的特征值为亮度值为例进行示例性说明。假设目标像素点的亮度值用Y表示,与目标像素点对应的电流值用I表示,则Y和I存在以下关系:Example 1, taking the characteristic value of the target pixel in the target image as the brightness value as an example for illustrative description. Assuming that the brightness value of the target pixel is represented by Y, and the current value corresponding to the target pixel is represented by I, then Y and I have the following relationship:
I=k1*Y。其中,k1为比例系数。I=k1*Y. Among them, k1 is the proportional coefficient.
示例2,以目标图像中的目标像素点的特征值为梯度值为例进行示例性说明。假设目标像素点的梯度值用
Figure PCTCN2021077809-appb-000001
表示,与目标像素点对应的电流值用I表示,则
Figure PCTCN2021077809-appb-000002
和I存在以下关系:
Example 2, taking the characteristic value of the target pixel in the target image and the gradient value as an example for exemplification. Assume that the gradient value of the target pixel is used
Figure PCTCN2021077809-appb-000001
Indicates that the current value corresponding to the target pixel is represented by I, then
Figure PCTCN2021077809-appb-000002
There is the following relationship with I:
Figure PCTCN2021077809-appb-000003
其中,k2为比例系数。
Figure PCTCN2021077809-appb-000003
Among them, k2 is the proportional coefficient.
示例3,以目标图像中的目标像素点的特征值为RGB三个颜色通道的像素值为例进行示例性说明。假设目标像素点的RGB三个颜色通道的像素值分别用R、G、B表示,则R、G、B和I存在以下关系:Example 3, taking the characteristic values of the target pixel points in the target image and the pixel values of the three color channels of RGB as an example to illustrate. Assuming that the pixel values of the three color channels of RGB of the target pixel are represented by R, G, and B respectively, then R, G, B, and I have the following relationship:
I=k3*R+k4*G+k5*B。其中,k3、k4、k5为比例系数。I=k3*R+k4*G+k5*B. Among them, k3, k4, and k5 are proportional coefficients.
示例4,以目标图像中的目标像素点的特征值为YUV三个颜色通道的像素值为例进行示例性说明。假设目标像素点的YUV三个颜色通道的像素值分别用Y、U、V表 示,则Y、U、V和I存在以下关系:Example 4, taking the characteristic values of the target pixel points in the target image and the pixel values of the three color channels of YUV as an example to illustrate. Assuming that the pixel values of the three YUV color channels of the target pixel are represented by Y, U, V, then Y, U, V, and I have the following relationship:
I=k6*Y+k7*U+k8*V。其中,k6、k7、k8为比例系数。I=k6*Y+k7*U+k8*V. Among them, k6, k7, and k8 are proportional coefficients.
可选的,与每个像素点对应的特征值、与每个像素点对应的电流值之间可以是线性关系,也可以是非线性关系。例如,在上述示例1至示例4中与每个像素点对应的特征值、与每个像素点对应的电流值是线性关系。再例如,假设目标像素点的亮度值用Y表示,与目标像素点对应的电流值用I表示,则I=f(x)*Y,其中,f(x)为对数函数或指数函数等,这时与每个像素点对应的特征值、与每个像素点对应的电流值是非线性关系。Optionally, the characteristic value corresponding to each pixel point and the current value corresponding to each pixel point may have a linear relationship or a nonlinear relationship. For example, in the above examples 1 to 4, the characteristic value corresponding to each pixel point and the current value corresponding to each pixel point are in a linear relationship. For another example, suppose the brightness value of the target pixel is represented by Y, and the current value corresponding to the target pixel is represented by I, then I=f(x)*Y, where f(x) is a logarithmic function or an exponential function, etc. At this time, the characteristic value corresponding to each pixel point and the current value corresponding to each pixel point are in a non-linear relationship.
需要说明的是,上述示例3和示例4均是以根据三个颜色通道的像素值获取每个像素点对应的电流值为例进行示例性说明的,其并不对本发明实施例形成任何限定。可以理解的是,实际实现时,也可以仅根据一个或两个颜色通道的像素值获取每个像素点对应的电流值。例如,当根据R颜色通道的像素值获取每个像素点对应的电流值时,与目标区域对应的图案颜色越红,目标区域的触发反馈越强烈。再例如,当根据Y通道的像素值获取每个像素点对应的电流值时,与目标区域对应的图案颜色明亮,目标区域的触控反馈越强烈。It should be noted that the foregoing example 3 and example 4 are all exemplified by obtaining the current value corresponding to each pixel according to the pixel values of the three color channels, which do not limit the embodiment of the present invention in any way. It can be understood that, in actual implementation, the current value corresponding to each pixel point can also be obtained only according to the pixel value of one or two color channels. For example, when the current value corresponding to each pixel point is obtained according to the pixel value of the R color channel, the redder the pattern color corresponding to the target area, the stronger the trigger feedback of the target area. For another example, when the current value corresponding to each pixel point is obtained according to the pixel value of the Y channel, the color of the pattern corresponding to the target area is bright, and the touch feedback of the target area is stronger.
S106、电子设备在每个像素点显示在屏幕中的位置分别输出与每个像素点对应的电流值。S106: The electronic device outputs a current value corresponding to each pixel point at the position where each pixel point is displayed on the screen.
可选的,在获取与目标图像中的每个像素点对应的电流值之后,电子设备可以存储目标图像中每个像素点在屏幕中的位置、与每个像素点对应的特征值、与每个像素点对应的电流值,从而便于在改变目标区域中的图案之后,电子设备恢复目标图像中的图案。Optionally, after obtaining the current value corresponding to each pixel in the target image, the electronic device may store the position of each pixel in the target image on the screen, the characteristic value corresponding to each pixel, and the The current value corresponding to each pixel is convenient for the electronic device to restore the pattern in the target image after changing the pattern in the target area.
示例性的,以目标图像中包括像素点a、像素点b和像素点c为例。假设像素点a的亮度值为5、像素点b的亮度值为10和像素点c的亮度值为15,像素点a在屏幕中的位置用(x1,y1)表示,像素点b在屏幕中的位置用(x2,y2)表示,像素点c在屏幕中的位置用(x3,y3表示,电子设备可以根据I=k1*Y,获取像素点a对应的电流值为5*k1,像素点b对应的电流值为10*k1,像素点c对应的电流值为15*k1。之后,电子设备可以在位置(x1,y1)输出电流值5*k1,在位置(x2,y2)输出电流值10*k1,在位置(x3,y3)输出电流值15*k1。Exemplarily, take the pixel point a, the pixel point b, and the pixel point c in the target image as an example. Assuming that the brightness value of pixel a is 5, the brightness value of pixel b is 10, and the brightness value of pixel c is 15, the position of pixel a on the screen is represented by (x1, y1), and pixel b is in the screen The position of the pixel point is represented by (x2, y2), and the position of the pixel point c on the screen is represented by (x3, y3). The electronic device can obtain the current value of the pixel point a corresponding to 5*k1 according to I=k1*Y, and the pixel point The current value corresponding to b is 10*k1, and the current value corresponding to pixel c is 15*k1. After that, the electronic device can output current value 5*k1 at position (x1, y1), and output current at position (x2, y2) Value 10*k1, output current value 15*k1 at position (x3, y3).
本发明实施例提供的控制方法,由于在目标图像中每个像素点对应的特征值并不相同,因此每个像素点对应的电流值也不相同。当用户使用手指触摸屏幕的目标区域时,目标区域中各个像素点所在位置为用户带来的触控反馈不同,从而使得用户可以更加真实感触到图案的纹理和形态等。In the control method provided by the embodiment of the present invention, since the characteristic value corresponding to each pixel point in the target image is different, the current value corresponding to each pixel point is also different. When the user touches the target area of the screen with a finger, the position of each pixel in the target area brings different touch feedback to the user, so that the user can feel the texture and shape of the pattern more realistically.
可选的,结合图2,如图6所示,在上述S102之前,本发明实施例提供的控制方法还可以包括下述的S107;并且,上述S103可以通过下述的S103a和S103b实现。Optionally, in conjunction with FIG. 2, as shown in FIG. 6, before the above S102, the control method provided in the embodiment of the present invention may further include the following S107; and the above S103 may be implemented by the following S103a and S103b.
S107、电子设备在目标区域输出第一电流值。S107. The electronic device outputs the first current value in the target area.
本发明实施例中,目标区域可以包括多个像素点,当多个像素点中的每个像素点对应的特征不同时,每个像素点对应的电流值也不相同。需要说明的是,对于S107的具体可以方式可以参照上述S104至S106中的具体描述,此处不再赘述。In the embodiment of the present invention, the target area may include multiple pixels, and when each of the multiple pixels has different characteristics, the current value corresponding to each pixel is also different. It should be noted that, for the specific possible manner of S107, reference may be made to the specific descriptions in S104 to S106 above, which will not be repeated here.
S103a、电子设备响应于目标触控输入,根据该目标触控输入的压力值,获取第二 电流值。S103a. In response to the target touch input, the electronic device obtains a second current value according to the pressure value of the target touch input.
上述“根据目标触控输入的压力值,获取第二电流值”可以通过下述方式实现:The above-mentioned "obtain the second current value according to the pressure value of the target touch input" can be implemented in the following manner:
方式一、在目标触控输入的压力值小于或等于预设压力值的情况下,电子设备根据该目标触控输入的压力值和第一电流值,获取第二电流值。Manner 1: When the pressure value of the target touch input is less than or equal to the preset pressure value, the electronic device obtains the second current value according to the pressure value of the target touch input and the first current value.
示例性的,假设第一电流值用I表示,目标触控输入的压力值用P表示,第二电流值用I’表示,则存在以下关系:Exemplarily, assuming that the first current value is represented by I, the pressure value of the target touch input is represented by P, and the second current value is represented by I', the following relationship exists:
I’=k9*P*I。其中,k9为比例系数。I'=k9*P*I. Among them, k9 is the proportional coefficient.
可以理解的是,在通过上述S105确定与每个像素点对应的电流值输出电流之后,若用户在目标区域的目标触控输入的压力值越大,则电子设备获取的第二电流值越大,在目标区域输出的第二电流值越大,在目标区域为用户带来的触控反馈越强烈。因此,用户可以通过提高对屏幕的按压力度,以获取更为强烈的触控反馈,从而更好地起到减轻压力的效果。It is understandable that after the current value corresponding to each pixel is determined through the above S105 output current, if the user's target touch input pressure value in the target area is greater, the second current value acquired by the electronic device is greater , The larger the second current value output in the target area, the stronger the touch feedback to the user in the target area. Therefore, the user can obtain stronger touch feedback by increasing the pressing force on the screen, so as to better reduce the pressure.
方式二、在目标触控输入的压力值大于预设压力值的情况下,电子设备将预设的目标电流值作为第一电流值。Manner 2: When the pressure value of the target touch input is greater than the preset pressure value, the electronic device uses the preset target current value as the first current value.
可选的,目标电流值可以与目标图像的图案关联,即不同的图案对应的电流值可以不同。例如,如图3所示的泡泡纸图案对应的目标电流值可以为150mA,如图4所示的面饼图案对应的目标电流值可以为180mA。Optionally, the target current value may be associated with the pattern of the target image, that is, the current value corresponding to different patterns may be different. For example, the target current value corresponding to the bubble paper pattern shown in FIG. 3 may be 150 mA, and the target current value corresponding to the noodle pattern shown in FIG. 4 may be 180 mA.
可选的,目标电流值可以为一个阶跃电流值,该目标电流值大于根据目标触控输入的压力值和第一电流值获取的电流值。Optionally, the target current value may be a step current value, and the target current value is greater than the current value obtained according to the pressure value of the target touch input and the first current value.
示例性的,图7为本发明实施例提供的触控输入的压力值和电流值对应关系的示意图。如图7所示,在目标触控输入的压力值小于或等于预设压力值的情况下,根据目标触控输入的压力值和第一电流值获取的第二电流值可以位于区间(0mA,100mA)内;而在目标触控输入的压力值大于预设压力值的情况下,目标电流值可以为150mA。该目标电流值可以为一个阶跃电流值。Exemplarily, FIG. 7 is a schematic diagram of the corresponding relationship between the pressure value and the current value of the touch input provided by an embodiment of the present invention. As shown in FIG. 7, when the pressure value of the target touch input is less than or equal to the preset pressure value, the second current value obtained according to the pressure value of the target touch input and the first current value may be in the interval (0 mA, 100mA); and when the pressure value of the target touch input is greater than the preset pressure value, the target current value can be 150mA. The target current value can be a step current value.
可以理解的是,对于方式二,当目标触控输入的压力值大于预设压力值时,通过在目标区域输出一个较大电流,可以使用户在这个区域强烈感受到类似泡泡破裂或面饼捏碎等触控反馈。It is understandable that for the second method, when the pressure value of the target touch input is greater than the preset pressure value, by outputting a larger current in the target area, the user can strongly feel the burst of bubbles or dough in this area. Touch feedback such as crushing.
S103b、电子设备在目标区域输出第二电流值。S103b. The electronic device outputs the second current value in the target area.
其中,第二电流值大于第一电流值。Wherein, the second current value is greater than the first current value.
可选的,上述按照第二电流值输出电流,包括:在预设时间内,按照第二电流值输出电流;在预设时间后,在目标区域不再输出电流,即停止输出电流。Optionally, the foregoing outputting current according to the second current value includes: outputting the current according to the second current value within a preset time; after the preset time, no more current is output in the target area, that is, the output of current is stopped.
例如,预设时长可以是10毫秒、50毫秒或100毫秒等。可以理解的是,在预设时间内在目标区域输出第二电流值,已经可以起到让用户感受到触觉反馈的作用,而为了不影响用户的其他正常操作,可以将目标区域的电流归零,即无需在目标区域继续输出电流。For example, the preset duration may be 10 milliseconds, 50 milliseconds, or 100 milliseconds. It is understandable that outputting the second current value in the target area within the preset time can already make the user feel the tactile feedback. In order not to affect other normal operations of the user, the current in the target area can be reset to zero. That is, there is no need to continue to output current in the target area.
需要说明的是,由于目标区域包括多个像素点,因此在目标区域中各个像素点输出的电流值可能并不完全相同。例如,在如图3中的(a)所示的区域01中,在泡泡的边缘位置输出的电流较大,在泡泡的中心位置输出的电流较小。It should be noted that since the target area includes a plurality of pixels, the current value output by each pixel in the target area may not be completely the same. For example, in the area 01 shown in (a) of FIG. 3, the current output at the edge of the bubble is relatively large, and the current output at the center of the bubble is relatively small.
本发明实施例提供的控制方法,由于目标触控输入的压力值不同时,电子设备在 目标区域增大的电流值也不相同,因此通过检测用户触控输入的力度,可以输出不同的电流值,从而为用户提高更为真实地触觉反馈。In the control method provided by the embodiment of the present invention, when the pressure value of the target touch input is different, the current value increased by the electronic device in the target area is also different, so by detecting the strength of the user's touch input, different current values can be output , So as to improve the user more realistic tactile feedback.
实施例二Example two
可选的,针对与目标触控输入对应的控制动作为输出与目标图像的图案对应的目标声音这种方式,在目标触控输入的压力值较小的情况下,电子设备可以输出一个较低音量的声音;在目标触控输入的压力值较大的情况下,电子设备可以输出一个较高音量的声音,从而使用户可以从听觉上感受到变化。Optionally, for the control action corresponding to the target touch input to output a target sound corresponding to the pattern of the target image, when the pressure value of the target touch input is small, the electronic device can output a lower value The volume of the sound; when the pressure value of the target touch input is large, the electronic device can output a higher volume of sound, so that the user can hear the change.
可选的,结合图2,如图8所示,上述S103可以通过下述的S103c和S103d,或者,通过下述的S103c和S103e实现。其中,S103d和S103e择一执行。Optionally, in conjunction with FIG. 2, as shown in FIG. 8, the foregoing S103 may be implemented by the following S103c and S103d, or by the following S103c and S103e. Among them, S103d and S103e are executed alternatively.
S103c、电子设备响应于目标触控输入,获取该目标触控输入的压力值。S103c. In response to the target touch input, the electronic device acquires the pressure value of the target touch input.
S103d、在该目标触控输入的压力值小于或等于预设压力值的情况下,电子设备根据该目标触控输入的压力值和目标图像的图案,获取目标声音特征值,并按照该目标声音特征值输出第一声音。S103d. In the case that the pressure value of the target touch input is less than or equal to the preset pressure value, the electronic device obtains the target sound characteristic value according to the pressure value of the target touch input and the pattern of the target image, and according to the target sound The characteristic value outputs the first sound.
可选的,上述目标声音特征值可以包括以下至少一项:目标音调、目标响度、目标音色。Optionally, the aforementioned target sound characteristic value may include at least one of the following: target pitch, target loudness, and target timbre.
可选的,假设目标声音特征值包括目标音调。在目标触控输入的压力值小于或等于预设压力值的情况下,目标触控输入的压力值越大,目标音调越高,即第一声音的频率越高。Optionally, it is assumed that the target sound feature value includes the target pitch. When the pressure value of the target touch input is less than or equal to the preset pressure value, the greater the pressure value of the target touch input, the higher the target pitch, that is, the higher the frequency of the first sound.
可选的,假设目标声音特征值包括目标响度。在目标触控输入的压力值小于或等于预设压力值的情况下,目标触控输入的压力值越大,目标响度越高,即第一声音的振幅越大。Optionally, it is assumed that the target sound feature value includes the target loudness. When the pressure value of the target touch input is less than or equal to the preset pressure value, the greater the pressure value of the target touch input, the higher the target loudness, that is, the greater the amplitude of the first sound.
S103e、在该目标触控输入的压力值大于预设压力值的情况下,电子设备按照与目标图像的图案对应的预设声音特征值输出第二声音。S103e: When the pressure value of the target touch input is greater than the preset pressure value, the electronic device outputs the second sound according to the preset sound feature value corresponding to the pattern of the target image.
可选的,上述预设声音特征值可以包括以下至少一项:预设音调、预设响度、预设音色。Optionally, the aforementioned preset sound characteristic value may include at least one of the following: a preset pitch, a preset loudness, and a preset timbre.
(a)在目标声音特征值包括目标音调,且预设声音特征值包括预设音调的情况下,该预设音调高于该目标音调。(a) In a case where the target sound feature value includes a target pitch, and the preset sound feature value includes a preset pitch, the preset pitch is higher than the target pitch.
本发明实施例中,与第一音调相比,该第二音调可以为一个阶跃音调。In the embodiment of the present invention, compared with the first tone, the second tone may be a step tone.
(b)在目标声音特征值包括目标响度,且预设声音特征值包括预设响度的情况下,该预设响度高于该目标响度。(b) In a case where the target sound characteristic value includes the target loudness, and the preset sound characteristic value includes the preset loudness, the preset loudness is higher than the target loudness.
(c)在目标声音特征值包括目标音色,且预设声音特征值包括预设音色的情况下,该预设音色与该目标音色不同。(c) In a case where the target sound feature value includes a target tone color, and the preset sound feature value includes a preset tone color, the preset tone color is different from the target tone color.
可选的,上述第一声音和第二声音可以为同一类型的声音,例如第一声音和第二声音都可以是挤压面饼的声音,也可以为不同类型的声音,例如第一声音可以为泡泡挤压的声音,第二声音可以为泡泡破裂的声音。Optionally, the above-mentioned first sound and second sound may be the same type of sound, for example, the first sound and the second sound may both be the sound of squeezing dough, or may be different types of sound, for example, the first sound may be For the sound of bubble squeezing, the second sound may be the sound of bubble bursting.
具体的,在目标图像的图案已经确定的情况下,目标声音可以为第一声音或第二声音,该第一声音可以为在目标触控输入的压力值小于或等于预设压力值的情况下由电子设备输出的一种类型的声音,该第二声音可以为在目标触控输入的压力值大于预设压力值的情况下由电子设备输出的另一种类型的声音。并且,在目标触控输入的压 力值小于或等于预设压力值的情况下,第一声音的音调随着目标触控输入的压力值的增加而增加。Specifically, in the case where the pattern of the target image has been determined, the target sound may be the first sound or the second sound, and the first sound may be when the pressure value of the target touch input is less than or equal to the preset pressure value One type of sound output by the electronic device, and the second sound may be another type of sound output by the electronic device when the pressure value of the target touch input is greater than the preset pressure value. Moreover, in the case that the pressure value of the target touch input is less than or equal to the preset pressure value, the pitch of the first sound increases as the pressure value of the target touch input increases.
例如,假设目标图像是泡泡纸图案,则与泡泡纸图案对应的目标声音可以是泡泡挤压的声音(即第一声音)或泡泡破裂的声音(即第二声音)。在目标触控输入的压力值小于或等于预设压力值的情况下,随着目标触控输入的压力值增加,电子设备播放的泡泡挤压的声音的音调越来越高;在目标触控输入的压力值大于预设压力值的情况下,电子设备改为播放泡泡破裂的声音。For example, assuming that the target image is a bubble paper pattern, the target sound corresponding to the bubble paper pattern may be the sound of bubble squeezing (ie, the first sound) or the sound of bubble bursting (ie, the second sound). When the pressure value of the target touch input is less than or equal to the preset pressure value, as the pressure value of the target touch input increases, the pitch of the bubble squeezing sound played by the electronic device becomes higher and higher; When the pressure value of the control input is greater than the preset pressure value, the electronic device changes to play the sound of bursting bubbles.
再例如,假设目标图像是面饼图案,则与面饼图案对应的目标声音可以是面饼挤压的声音(即第一声音)或面饼破裂的声音(即第二声音)。在目标触控输入的压力值小于或等于预设压力值的情况下,随着目标触控输入的压力值增加,电子设备播放的面饼挤压的声音的音调越来越高;在目标触控输入的压力值大于预设压力值的情况下,电子设备改为播放面饼破裂的声音。For another example, assuming that the target image is a cake pattern, the target sound corresponding to the cake pattern may be the sound of squeezing the cake (that is, the first sound) or the sound of breaking the cake (that is, the second sound). When the pressure value of the target touch input is less than or equal to the preset pressure value, as the pressure value of the target touch input increases, the tone of the sound of the dough squeezing played by the electronic device becomes higher and higher; When the pressure value of the control input is greater than the preset pressure value, the electronic device changes to play the sound of cracking dough.
本发明实施例提供的控制方法,由于目标触控输入的压力值不同时,电子设备在目标区域输出的声音也不相同,因此通过检测用户触控输入的力度,可以输出不同的声音,从而为用户提高更为真实地听觉反馈。In the control method provided by the embodiment of the present invention, when the pressure value of the target touch input is different, the sound output by the electronic device in the target area is different. Therefore, by detecting the strength of the user's touch input, different sounds can be output. The user improves the more realistic auditory feedback.
实施例三Example three
可选的,针对与目标触控输入对应的控制动作为改变目标图像中与目标区域对应的图案这种方式:第一种可选的实现方式为,在目标触控输入的压力值较小或较大的情况下,电子设备均改变目标图像中的与目标区域对应的图案的形状。第二种可选的实现方式为,在目标触控输入的压力值较小的情况下,电子设备改变目标图像中的与目标区域对应的图案的形状;而在目标触控输入的压力值较大的情况下,改变目标图像中的与目标区域对应的图案的数量。下面分别对这两种可选的实现方式进行说明。Optionally, the control action corresponding to the target touch input is to change the pattern corresponding to the target area in the target image: The first optional implementation method is that the pressure value of the target touch input is smaller or In larger cases, the electronic device changes the shape of the pattern corresponding to the target area in the target image. The second optional implementation method is that when the pressure value of the target touch input is small, the electronic device changes the shape of the pattern in the target image corresponding to the target area; and the pressure value of the target touch input is relatively low. If it is large, the number of patterns corresponding to the target area in the target image is changed. The two optional implementations are described below respectively.
第一种可选的实现方式The first alternative implementation
可选的,上述S103可以通过下述的S103c和S103f,或者,通过下述的S103c和S103g实现。其中,S103f和S103g择一执行。Optionally, the foregoing S103 may be implemented through the following S103c and S103f, or through the following S103c and S103g. Among them, S103f and S103g are executed alternatively.
S103c、电子设备响应于目标触控输入,获取该目标触控输入的压力值。S103c. In response to the target touch input, the electronic device acquires the pressure value of the target touch input.
S103f、在该目标触控输入的压力值小于或等于预设压力值的情况下,电子设备将目标图像中与目标区域对应的图案从原始形状改变为第一形状。S103f: When the pressure value of the target touch input is less than or equal to the preset pressure value, the electronic device changes the pattern corresponding to the target area in the target image from the original shape to the first shape.
S103g、在该目标触控输入的压力值大于预设压力值的情况下,电子设备将目标图像中与目标区域对应的图案从第一形状改变为第二形状。S103g: When the pressure value of the target touch input is greater than the preset pressure value, the electronic device changes the pattern corresponding to the target area in the target image from the first shape to the second shape.
其中,第二形状的形变量大于第一形状的形变量。Wherein, the amount of deformation of the second shape is greater than the amount of deformation of the first shape.
示例性的,以目标图像中与目标区域对应的图案为发泄球为例。当用户的手指以较小的压力按压该目标区域时,电子设备可以检测到目标触控输入的压力值小于或等于预设压力值,并使该发泄球产生一个较小的形变量;当用户的手指以较大的压力按压目标区域时,电子设备可以检测到目标触控输入的压力值大于预设压力值,并使该发泄球在原来的形变量的基础上继续产生更大形变量。因此,无论目标触控输入的压力值有多大,目标区域对应的发泄球只会产生形变,而不会取消显示。Exemplarily, the pattern corresponding to the target area in the target image is a vent ball as an example. When the user's finger presses the target area with a small pressure, the electronic device can detect that the pressure value of the target touch input is less than or equal to the preset pressure value, and make the vent ball produce a small deformation; when the user When the finger presses the target area with greater pressure, the electronic device can detect that the pressure value of the target touch input is greater than the preset pressure value, and make the vent ball continue to generate a larger deformation based on the original deformation. Therefore, no matter how great the pressure value of the target touch input is, the vent ball corresponding to the target area will only be deformed, and the display will not be cancelled.
第二种可选的实现方式The second alternative implementation
可选的,上述S103可以通过下述的S103c和S103h,或者,通过下述的S103c和 S103i实现。其中,S103h和S103i择一执行。Optionally, the foregoing S103 may be implemented through the following S103c and S103h, or through the following S103c and S103i. Among them, S103h and S103i are executed alternatively.
S103c、电子设备响应于目标触控输入,获取该目标触控输入的压力值。S103c. In response to the target touch input, the electronic device acquires the pressure value of the target touch input.
S103h、在该目标触控输入的压力值小于或等于预设压力值的情况下,电子设备改变目标图像中与目标区域对应的图案的形状。S103h: When the pressure value of the target touch input is less than or equal to the preset pressure value, the electronic device changes the shape of the pattern in the target image corresponding to the target area.
S103i、在该目标触控输入的压力值大于预设压力值的情况下,电子设备改变目标图像中的与目标区域对应的图案的数量。S103i: In a case where the pressure value of the target touch input is greater than the preset pressure value, the electronic device changes the number of patterns in the target image corresponding to the target area.
可选的,上述改变目标图像中的与目标区域对应的图案的数量,包括:增加目标图像中的与目标区域对应的图案的数量,或减少目标图像中的与目标区域对应的图案的数量。Optionally, the above-mentioned changing the number of patterns in the target image corresponding to the target area includes: increasing the number of patterns in the target image corresponding to the target area, or reducing the number of patterns in the target image corresponding to the target area.
示例性的,以目标图像中与目标区域对应的图案为泡泡为例。当用户的手指以较小的压力按压该目标区域时,电子设备可以检测到目标触控输入的压力值小于或等于预设压力值,并使泡泡的边缘向泡泡的内部凹陷,使得泡泡可以产生形变。并且,随着目标触控输入的压力值增加,泡泡的形变量更为明显。当电子设备检测到目标触控输入的压力值大于预设压力值时,泡泡破裂,即在目标区域中减少一个泡泡。如此,用户可以通过对屏幕不同区域的多次输入,触发电子设备从目标图像中减少多个泡泡。Exemplarily, the pattern corresponding to the target area in the target image is a bubble as an example. When the user's finger presses the target area with a small pressure, the electronic device can detect that the pressure value of the target touch input is less than or equal to the preset pressure value, and the edge of the bubble is recessed toward the inside of the bubble, so that the bubble Bubbles can deform. Moreover, as the pressure value of the target touch input increases, the deformation of the bubble becomes more obvious. When the electronic device detects that the pressure value of the target touch input is greater than the preset pressure value, the bubble bursts, that is, one bubble is reduced in the target area. In this way, the user can trigger the electronic device to reduce multiple bubbles from the target image through multiple inputs to different areas of the screen.
示例性的,以目标图像中与目标区域对应的图案为面饼为例。当用户的手指以较小的压力按压该目标区域时,电子设备可以检测到目标触控输入的压力值小于或等于预设压力值,并将面饼丝按照与梯度连线的垂直方向位移,从而达到形变的视觉效果。并且,随着目标触控输入的压力值增加,面饼丝的形变量更为明显。当电子设备检测到目标触控输入的压力值大于预设压力值时,面饼丝断裂。如此,用户可以通过对屏幕不同区域的多次输入,触发电子设备将目标图像中的多个面饼丝断裂。Exemplarily, it is taken as an example that the pattern corresponding to the target area in the target image is a noodle. When the user's finger presses the target area with a small pressure, the electronic device can detect that the pressure value of the target touch input is less than or equal to the preset pressure value, and shift the noodles in the vertical direction connected with the gradient. So as to achieve the visual effect of deformation. Moreover, as the pressure value of the target touch input increases, the deformation of the noodles becomes more obvious. When the electronic device detects that the pressure value of the target touch input is greater than the preset pressure value, the noodle strands are broken. In this way, the user can trigger the electronic device to break multiple noodles in the target image through multiple inputs to different areas of the screen.
可以理解的是,对于上述两种可选的实现方式,由于目标触控输入的压力值不同时,电子设备在目标区域改变与目标区域对应的图案的形状的方式也不相同,因此通过检测用户触控输入的力度,可以灵活改变与目标区域对应的图案的形状,从而为用户提高更为真实地视觉反馈。It is understandable that for the above two optional implementations, when the pressure value of the target touch input is different, the way the electronic device changes the shape of the pattern corresponding to the target area in the target area is different, so by detecting the user The strength of the touch input can flexibly change the shape of the pattern corresponding to the target area, thereby improving more realistic visual feedback for the user.
可选的,在上述S103之后,本发明实施例提供的控制方法还可以包括下述的S108。Optionally, after the foregoing S103, the control method provided in the embodiment of the present invention may further include the following S108.
S108、在目标图像满足预设条件的情况下,电子设备恢复目标图像中的图案。S108: When the target image meets the preset condition, the electronic device restores the pattern in the target image.
上述预设条件可以包括以下至少一项:The aforementioned preset conditions may include at least one of the following:
(1)在目标图像中的图案的总数量小于或等于第一预设值。(1) The total number of patterns in the target image is less than or equal to the first preset value.
示例性的,以目标图像的图案为泡泡为例。在触控输入的压力值较大时,泡泡会取消显示,因此目标图像中的泡泡的总数会减少。当电子设备可以目标图像中的泡泡的总数小于或等于第一预设值时,电子设备可以恢复目标图像中的泡泡的个数。Exemplarily, take the pattern of the target image as a bubble as an example. When the pressure value of the touch input is large, the bubbles will be cancelled, so the total number of bubbles in the target image will be reduced. When the electronic device can restore the number of bubbles in the target image when the total number of bubbles in the target image is less than or equal to the first preset value.
(2)在目标图像中改变形状的图案的数量大于或等于第二预设值。(2) The number of patterns whose shapes are changed in the target image is greater than or equal to the second preset value.
示例性的,以目标图像的图案为面饼为例。在触控输入的压力值较大时,面饼中的部分面饼丝会折断。对于每个折断的面饼丝,会产生两个断点。电子设备可以通过统计这些断点的数量,确定目标图像中改变形状的图案的数量。例如,若断点数量2T,则目标图像中改变形状的图案的数量为T,其中,T为正整数。当在目标图像中改变形状的图案的数量大于或等于第二预设值时,电子设备可以恢复目标图像中被折断的面饼丝的形状。Exemplarily, take the pattern of the target image as a noodle as an example. When the pressure value of the touch input is large, part of the noodles in the noodles will be broken. For each broken dough piece, two break points will be generated. The electronic device can determine the number of patterns that change shape in the target image by counting the number of these breakpoints. For example, if the number of breakpoints is 2T, the number of patterns that change shape in the target image is T, where T is a positive integer. When the number of patterns with changing shapes in the target image is greater than or equal to the second preset value, the electronic device can restore the shape of the broken dough in the target image.
(3)在目标图像中减少的图案的数量大于或等于第三预设值。(3) The number of reduced patterns in the target image is greater than or equal to the third preset value.
示例性的,以目标图像的图案为泡泡为例。在触控输入的压力值较大时,目标图像中的泡泡会取消显示。电子设备可以统计取消显示的泡泡的数量。当取消显示的泡泡的数量(即目标图像中减少的图案的数量)大于或等于第三预设值时,电子设备可以恢复目标图像中的泡泡的个数。Exemplarily, take the pattern of the target image as a bubble as an example. When the pressure value of the touch input is large, the bubbles in the target image will be cancelled. The electronic device can count the number of canceled bubbles. When the number of canceled bubbles (that is, the number of reduced patterns in the target image) is greater than or equal to the third preset value, the electronic device can restore the number of bubbles in the target image.
需要说明的是,上述第一预设值、第二预设值和于第三预设值可以相等,也可以不等,本发明实施例不作限定。It should be noted that the above-mentioned first preset value, second preset value, and third preset value may be equal to or different from each other, which is not limited in the embodiment of the present invention.
(4)在目标图像中目标图案的形变量大于或等于第四预设值。(4) The deformation of the target pattern in the target image is greater than or equal to the fourth preset value.
示例性的,以目标图像的图案为发泄球为例。在触控输入的压力值较大时,发泄球会产生形变。当发泄球的形变量大于或等于第四预设值时,电子设备可以恢复发泄球的初始形态,从而用户可以继续对发泄球进行触控输入,以减轻压力。Exemplarily, take the pattern of the target image as a vent ball as an example. When the pressure value of the touch input is large, the vent ball will be deformed. When the deformation of the vent ball is greater than or equal to the fourth preset value, the electronic device can restore the initial shape of the vent ball, so that the user can continue to perform touch input on the vent ball to reduce stress.
可选的,上述恢复目标图像中的图案可以包括以下至少一项:Optionally, the pattern in the restoration target image may include at least one of the following:
第一项,恢复目标图像中的图案的数量。The first item is to restore the number of patterns in the target image.
示例性的,以目标图像的图案为泡泡为例。在满足目标图像中的图案的总数量小于或等于预设值等预设条件的情况下,一种方式为,电子设备可以按照预设速度,在目标区域内采用从上到下方式、或从左到右的方式、或随机显示的方式等,恢复目标区域内减少的泡泡的数量,即恢复目标区域对应的图案的数量。另一种方式为,电子设备可以按照预设速度,采用从屏幕的底部至屏幕的顶部的方式、或从屏幕的顶部至屏幕的底部的方式、或从屏幕的左侧至屏幕的右侧的方式、或从屏幕的右侧至屏幕的左侧的方式等,恢复目标图像中减少的泡泡的数量,即更新整个屏幕对应的图案。Exemplarily, take the pattern of the target image as a bubble as an example. In the case that the total number of patterns in the target image is less than or equal to the preset value and other preset conditions, one way is that the electronic device can adopt a top-to-bottom approach or from top to bottom within the target area at a preset speed. The left-to-right way, or the way of random display, etc., restores the number of bubbles reduced in the target area, that is, restores the number of patterns corresponding to the target area. Another way is that the electronic device can use a preset speed from the bottom of the screen to the top of the screen, or from the top of the screen to the bottom of the screen, or from the left side of the screen to the right side of the screen. The method, or the method from the right side of the screen to the left side of the screen, etc., restores the reduced number of bubbles in the target image, that is, updates the pattern corresponding to the entire screen.
第二项,恢复目标图像中的图案的形状/形态。The second item is to restore the shape/morphology of the pattern in the target image.
示例性的,以目标图像的图案为面饼为例。在满足目标图像中改变形状的图案的数量大于或等于预设值等预设条件的情况下,电子设备可以根据预先保存的目标图像中各个像素点的像素值和所在位置,恢复目标图像中被折断的面饼丝的形状/形态。Exemplarily, take the pattern of the target image as a noodle as an example. In the case of meeting preset conditions such as the number of patterns with changing shapes in the target image being greater than or equal to the preset value, the electronic device can restore the target image according to the pixel value and location of each pixel in the target image saved in advance. The shape/morphology of the broken noodles.
本发明实施例提供的控制方法,在目标图像满足预设条件的情况下,电子设备通过恢复目标图像中的图案,可以使得用户可以再次对目标图像进行触控输入,从而电子设备可以再次为用户提供听觉体验、视觉体验和触觉体验等多方位体验。因此本发明实施例可以为用户提供多次减压体验,从而能有效地舒缓用户的负面情绪,并减轻用户的压力。In the control method provided by the embodiment of the present invention, when the target image meets the preset condition, the electronic device can restore the pattern in the target image, so that the user can perform touch input on the target image again, so that the electronic device can be the user again Provide multi-faceted experience such as auditory experience, visual experience and tactile experience. Therefore, the embodiment of the present invention can provide the user with multiple stress reduction experiences, thereby effectively alleviating the user's negative emotions and reducing the user's stress.
需要说明的是,本发明实施例中,上述各个附图所示的控制方法均是以结合本发明实施例中的一个附图为例示例性的说明的。具体实现时,上述各个附图所示的控制方法还可以结合上述实施例中示意的其它可以结合的任意附图实现,此处不再赘述。It should be noted that, in the embodiment of the present invention, the control methods shown in each of the above figures are all exemplarily described in conjunction with a figure in the embodiment of the present invention. In a specific implementation, the control method shown in each of the above figures can also be implemented in combination with any other figures illustrated in the above embodiments that can be combined, and will not be repeated here.
如图9所示,本发明实施例提供一种电子设备900。该电子设备可以包括显示模块901、接收模块902和处理模块903。显示模块901,可以用于在屏幕中显示目标图像。接收模块902,可以用于接收用户对屏幕中目标区域的目标触控输入。处理模块903,可以用于响应于接收模块902接收的该目标触控输入,执行与该目标触控输入对应的控制动作。其中,该控制动作可以包括以下至少一项:输出与该目标图像的图案对应的目标声音,改变该目标图像中与该目标区域对应的图案,增大在该目标区域输出的电流值。As shown in FIG. 9, an embodiment of the present invention provides an electronic device 900. The electronic device may include a display module 901, a receiving module 902, and a processing module 903. The display module 901 can be used to display the target image on the screen. The receiving module 902 may be used to receive the user's target touch input to the target area on the screen. The processing module 903 may be configured to execute a control action corresponding to the target touch input in response to the target touch input received by the receiving module 902. The control action may include at least one of the following: outputting a target sound corresponding to the pattern of the target image, changing the pattern corresponding to the target area in the target image, and increasing the current value output in the target area.
可选的,结合图9,如图10所示,本发明实施例提供的电子设备还可以包括获取模块904。获取模块904,可以用于在接收模块902接收用户对屏幕中目标区域的目标触控输入之前,获取与目标图像的每个像素点对应的特征值及每个像素点显示在屏幕中的位置;并根据与每个像素点对应的特征值,获取与每个像素点对应的电流值。处理模块903,还可以用于在每个像素点显示在屏幕中的位置,分别输出与每个像素点对应的电流值。其中,该特征值可以包括以下至少一项:亮度值、梯度值、至少一个颜色通道的像素值。Optionally, in conjunction with FIG. 9, as shown in FIG. 10, the electronic device provided by the embodiment of the present invention may further include an obtaining module 904. The obtaining module 904 can be used to obtain the feature value corresponding to each pixel of the target image and the display position of each pixel on the screen before the receiving module 902 receives the user's target touch input on the target area on the screen; And according to the characteristic value corresponding to each pixel point, the current value corresponding to each pixel point is obtained. The processing module 903 may also be used to output the current value corresponding to each pixel at the position where each pixel is displayed on the screen. Wherein, the characteristic value may include at least one of the following: a brightness value, a gradient value, and a pixel value of at least one color channel.
可选的,上述控制动作包括增大在目标区域输出的电流值。如图10所示,本发明实施例提供的电子设备还可以包括获取模块904。处理模块903,还可以用于在接收模块902接收用户对屏幕中目标区域的目标触控输入之前,在目标区域输出第一电流值。获取模块904,可以用于响应于接收模块902接收的目标触控输入,根据该目标触控输入的压力值,获取第二电流值。处理模块903,具体可以用于在目标区域输出该第二电流值。其中,该第二电流值大于第一电流值。Optionally, the aforementioned control action includes increasing the value of the current output in the target area. As shown in FIG. 10, the electronic device provided by the embodiment of the present invention may further include an obtaining module 904. The processing module 903 may also be configured to output the first current value in the target area before the receiving module 902 receives the user's target touch input to the target area on the screen. The obtaining module 904 may be configured to obtain the second current value according to the pressure value of the target touch input in response to the target touch input received by the receiving module 902. The processing module 903 may be specifically configured to output the second current value in the target area. Wherein, the second current value is greater than the first current value.
可选的,获取模块904,具体可以用于在目标触控输入的压力值小于或等于预设压力值的情况下,根据该目标触控输入的压力值和第一电流值,获取第二电流值;或者,在目标触控输入的压力值大于预设压力值的情况下,将预设的目标电流值作为第二电流值。其中,该目标电流值大于根据该目标触控输入的压力值和该第一电流值获取的电流值。Optionally, the obtaining module 904 can be specifically used to obtain the second current according to the pressure value of the target touch input and the first current value when the pressure value of the target touch input is less than or equal to the preset pressure value. Or, in the case where the pressure value of the target touch input is greater than the preset pressure value, the preset target current value is used as the second current value. Wherein, the target current value is greater than the current value obtained according to the pressure value of the target touch input and the first current value.
可选的,上述控制动作包括输出与目标图像的图案对应的目标声音,该目标声音为第一声音或第二声音。如图10所示,本发明实施例提供的电子设备还可以包括获取模块904。获取模块904,可以用于获取目标触控输入的压力值。处理模块903,具体可以用于在该目标触控输入的压力值小于或等于预设压力值的情况下,按照获取模块根据该目标触控输入的压力值和目标图像的图案,获取目标声音特征值,并按照该目标声音特征值输出第一声音;或者,在该目标触控输入的压力值大于预设压力值的情况下,按照与目标图像的图案对应的预设声音特征值输出第二声音。Optionally, the aforementioned control action includes outputting a target sound corresponding to the pattern of the target image, and the target sound is the first sound or the second sound. As shown in FIG. 10, the electronic device provided by the embodiment of the present invention may further include an obtaining module 904. The obtaining module 904 may be used to obtain the pressure value of the target touch input. The processing module 903 may be specifically configured to obtain the target sound feature according to the acquisition module according to the pressure value of the target touch input and the pattern of the target image when the pressure value of the target touch input is less than or equal to the preset pressure value Value, and output the first sound according to the target sound characteristic value; or, in the case that the pressure value of the target touch input is greater than the preset pressure value, output the second sound according to the preset sound characteristic value corresponding to the pattern of the target image sound.
其中;在目标声音特征值包括目标音调,且预设声音特征值包括预设音调的情况下,该预设音调高于该目标音调。在目标声音特征值包括目标响度,且预设声音特征值包括预设响度的情况下,该预设响度高于该目标响度。在目标声音特征值包括目标音色,且预设声音特征值包括预设音色的情况下,该预设音色与该目标音色不同。Wherein; in the case where the target sound feature value includes a target tone, and the preset sound feature value includes a preset tone, the preset tone is higher than the target tone. In a case where the target sound feature value includes the target loudness, and the preset sound feature value includes the preset loudness, the preset loudness is higher than the target loudness. In the case where the target sound feature value includes a target timbre, and the preset sound feature value includes a preset timbre, the preset timbre is different from the target timbre.
可选的,上述改变目标图像中与目标区域对应的图案可以包括以下至少一项:改变该目标图像中的与该目标区域对应的图案的形状,改变该目标图像中的与该目标区域对应的图案的数量。处理模块903,还可以用于在目标图像满足预设条件的情况下,控制显示模块901恢复该目标图像中的图案。其中,该预设条件可以包括以下至少一项:在目标图像中的图案的总数量小于或等于第一预设值,在目标图像中改变形状的图案的数量大于或等于第二预设值,在目标图像中减少的图案的数量大于或等于第三预设值,在目标图像中目标图案的形变量大于或等于第四预设值。Optionally, the above-mentioned changing the pattern corresponding to the target area in the target image may include at least one of the following: changing the shape of the pattern in the target image corresponding to the target area, and changing the pattern corresponding to the target area in the target image. The number of patterns. The processing module 903 can also be used to control the display module 901 to restore the pattern in the target image when the target image meets a preset condition. Wherein, the preset condition may include at least one of the following: the total number of patterns in the target image is less than or equal to a first preset value, and the number of patterns that change shapes in the target image is greater than or equal to a second preset value, The number of reduced patterns in the target image is greater than or equal to the third preset value, and the deformation amount of the target pattern in the target image is greater than or equal to the fourth preset value.
本发明实施例提供的电子设备能够实现上述方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。The electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the foregoing method embodiment. To avoid repetition, details are not described herein again.
本发明实施例提供一种电子设备,一方面,当用户感觉压力大时,用户可以通过 对屏幕中的某个区域的输入,触发电子设备输出与在屏幕中显示的目标图像的图案对应的目标声音、改变目标图像中的与该目标区域对应的图像图案、增大在目标区域输出的电流值,因此电子设备可以为用户提供听觉体验、视觉体验和触觉体验等多方位体验,使得用户可以更为直观、逼真地体验戳泡泡或捏面饼等减压方式,从而有效地舒缓了用户的负面情绪,并减轻了用户的压力。另一方面,与原生的戳泡泡纸相比,本发明实施例提供的电子设备更加环保,更加经济,而且不受泡泡纸的体积影响,方便用户随时随身携带,可以实现随时想减压。An embodiment of the present invention provides an electronic device. On the one hand, when the user feels a lot of pressure, the user can trigger the electronic device to output a target corresponding to the pattern of the target image displayed on the screen by inputting a certain area on the screen. Sound, change the image pattern in the target image corresponding to the target area, and increase the current value output in the target area. Therefore, electronic devices can provide users with multi-directional experiences such as auditory, visual, and tactile experiences, so that users can more In order to intuitively and realistically experience pressure reduction methods such as poking bubbles or kneading dough, it effectively relieves the user’s negative emotions and reduces the user’s pressure. On the other hand, compared with the original bubble paper, the electronic device provided by the embodiment of the present invention is more environmentally friendly, more economical, and is not affected by the volume of the bubble paper, is convenient for users to carry around at any time, and can realize pressure reduction at any time. .
图11为实现本发明各个实施例的一种电子设备的硬件结构示意图。如图11所示,该电子设备200包括但不限于:射频单元201、网络模块202、音频输出单元203、输入单元204、传感器205、显示单元206、用户输入单元207、接口单元208、存储器209、处理器210、以及电源211等部件。本领域技术人员可以理解,图11中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、以及计步器等。FIG. 11 is a schematic diagram of the hardware structure of an electronic device that implements various embodiments of the present invention. As shown in FIG. 11, the electronic device 200 includes but is not limited to: a radio frequency unit 201, a network module 202, an audio output unit 203, an input unit 204, a sensor 205, a display unit 206, a user input unit 207, an interface unit 208, and a memory 209 , Processor 210, and power supply 211. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 11 does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout. In the embodiments of the present invention, electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, in-vehicle electronic devices, wearable devices, and pedometers.
其中,处理器210,用于控制显示单元206在屏幕中显示目标图像;并用于控制用户输入单元207接收用户对屏幕中目标区域的目标触控输入;以及用于响应于用户输入单元207接收的该目标触控输入,执行与该目标触控输入对应的控制动作。该控制动作可以包括以下至少一项:输出与该目标图像的图案对应的目标声音,改变该目标图像中与该目标区域对应的图案,增大在该目标区域输出的电流值。Among them, the processor 210 is used to control the display unit 206 to display the target image on the screen; and used to control the user input unit 207 to receive the user's target touch input to the target area in the screen; and to respond to the user input unit 207 received The target touch input executes a control action corresponding to the target touch input. The control action may include at least one of the following: outputting a target sound corresponding to a pattern of the target image, changing a pattern corresponding to the target area in the target image, and increasing a current value output in the target area.
本发明实施例提供一种电子设备,一方面,当用户感觉压力大时,用户可以通过对屏幕中的某个区域的输入,触发电子设备输出与在屏幕中显示的目标图像的图案对应的目标声音、改变目标图像中的与该目标区域对应的图像图案、增大在目标区域输出的电流值,因此电子设备可以为用户提供听觉体验、视觉体验和触觉体验等多方位体验,使得用户可以更为直观、逼真地体验戳泡泡或捏面饼等减压方式,从而有效地舒缓了用户的负面情绪,并减轻了用户的压力。另一方面,与原生的戳泡泡纸相比,本发明实施例提供的电子设备更加环保,更加经济,而且不受泡泡纸的体积影响,方便用户随时随身携带,可以实现随时想减压。An embodiment of the present invention provides an electronic device. On the one hand, when the user feels a lot of pressure, the user can trigger the electronic device to output a target corresponding to the pattern of the target image displayed on the screen by inputting a certain area on the screen. Sound, change the image pattern in the target image corresponding to the target area, and increase the current value output in the target area. Therefore, electronic devices can provide users with multi-directional experiences such as auditory, visual, and tactile experiences, so that users can more In order to intuitively and realistically experience pressure reduction methods such as poking bubbles or kneading dough, it effectively relieves the user’s negative emotions and reduces the user’s pressure. On the other hand, compared with the original bubble paper, the electronic device provided by the embodiment of the present invention is more environmentally friendly, more economical, and is not affected by the volume of the bubble paper, is convenient for users to carry around at any time, and can realize pressure reduction at any time. .
应理解的是,本发明实施例中,射频单元201可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器210处理;另外,将上行的数据发送给基站。通常,射频单元201包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元201还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the radio frequency unit 201 can be used for receiving and sending signals during the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 210; in addition, Uplink data is sent to the base station. Generally, the radio frequency unit 201 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 201 can also communicate with the network and other devices through a wireless communication system.
电子设备通过网络模块202为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides users with wireless broadband Internet access through the network module 202, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元203可以将射频单元201或网络模块202接收的或者在存储器209中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元203还可以提供与电子设备200执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元203包括扬声器、蜂鸣器以及受话器等。The audio output unit 203 can convert the audio data received by the radio frequency unit 201 or the network module 202 or stored in the memory 209 into audio signals and output them as sounds. Moreover, the audio output unit 203 may also provide audio output related to a specific function performed by the electronic device 200 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 203 includes a speaker, a buzzer, a receiver, and the like.
输入单元204用于接收音频或视频信号。输入单元204可以包括图形处理器(Graphics Processing Unit,GPU)2041和麦克风2042,图形处理器2041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元206上。经图形处理器2041处理后的图像帧可以存储在存储器209(或其它存储介质)中或者经由射频单元201或网络模块202进行发送。麦克风2042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元201发送到移动通信基站的格式输出。The input unit 204 is used to receive audio or video signals. The input unit 204 may include a graphics processing unit (GPU) 2041 and a microphone 2042, and the graphics processor 2041 is configured to monitor still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed. The processed image frame may be displayed on the display unit 206. The image frame processed by the graphics processor 2041 may be stored in the memory 209 (or other storage medium) or sent via the radio frequency unit 201 or the network module 202. The microphone 2042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to the mobile communication base station via the radio frequency unit 201 in the case of a telephone call mode for output.
电子设备200还包括至少一种传感器205,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板2061的亮度,接近传感器可在电子设备200移动到耳边时,关闭显示面板2061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器205还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 200 further includes at least one sensor 205, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 2061 according to the brightness of the ambient light. The proximity sensor can turn off the display panel 2061 and the display panel 2061 when the electronic device 200 is moved to the ear. / Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer posture calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 205 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元206用于显示由用户输入的信息或提供给用户的信息。显示单元206可包括显示面板2061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板2061。The display unit 206 is used to display information input by the user or information provided to the user. The display unit 206 may include a display panel 2061, and the display panel 2061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
用户输入单元207可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元207包括触控面板2071以及其他输入设备2072。触控面板2071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板2071上或在触控面板2071附近的操作)。触控面板2071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器210,接收处理器210发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板2071。除了触控面板2071,用户输入单元207还可以包括其他输入设备2072。具体地,其他输入设备2072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 207 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 207 includes a touch panel 2071 and other input devices 2072. The touch panel 2071, also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 2071 or near the touch panel 2071. operate). The touch panel 2071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 210, the command sent by the processor 210 is received and executed. In addition, the touch panel 2071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 2071, the user input unit 207 may also include other input devices 2072. Specifically, other input devices 2072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
进一步的,触控面板2071可覆盖在显示面板2061上,当触控面板2071检测到在其上或附近的触摸操作后,传送给处理器210以确定触摸事件的类型,随后处理器210根据触摸事件的类型在显示面板2061上提供相应的视觉输出。虽然在图11中,触控面板2071与显示面板2061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板2071与显示面板2061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the touch panel 2071 can be overlaid on the display panel 2061. When the touch panel 2071 detects a touch operation on or near it, it transmits it to the processor 210 to determine the type of the touch event, and then the processor 210 determines the type of touch event according to the touch The type of event provides corresponding visual output on the display panel 2061. Although in FIG. 11, the touch panel 2071 and the display panel 2061 are used as two independent components to realize the input and output functions of the electronic device, but in some embodiments, the touch panel 2071 and the display panel 2061 can be integrated The implementation of the input and output functions of the electronic device is not specifically limited here.
接口单元208为外部装置与电子设备200连接的接口。例如,外部装置可以包括 有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元208可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备200内的一个或多个元件或者可以用于在电子设备200和外部装置之间传输数据。The interface unit 208 is an interface for connecting an external device and the electronic device 200. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 208 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 200 or can be used to connect the electronic device 200 to an external device. Transfer data between devices.
存储器209可用于存储软件程序以及各种数据。存储器209可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器209可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 209 can be used to store software programs and various data. The memory 209 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc. In addition, the memory 209 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器210是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器209内的软件程序和/或模块,以及调用存储在存储器209内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器210可包括一个或多个处理单元;可选的,处理器210可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器210中。The processor 210 is the control center of the electronic device, which uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes the software programs and/or modules stored in the memory 209, and calls the data stored in the memory 209 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole. The processor 210 may include one or more processing units; optionally, the processor 210 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem The adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 210.
电子设备200还可以包括给各个部件供电的电源211(比如电池),可选的,电源211可以通过电源管理系统与处理器210逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device 200 may also include a power source 211 (such as a battery) for supplying power to various components. Optionally, the power source 211 may be logically connected to the processor 210 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
另外,电子设备200包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 200 includes some functional modules not shown, which will not be repeated here.
可选的,本发明实施例还提供一种电子设备,包括如图11所示的处理器210,存储器209,存储在存储器209上并可在处理器210上运行的计算机程序,该计算机程序被处理器210执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present invention also provides an electronic device, including a processor 210 as shown in FIG. 11, a memory 209, a computer program stored in the memory 209 and running on the processor 210, and the computer program is The processor 210 implements the various processes of the foregoing method embodiments when executing, and can achieve the same technical effect. To avoid repetition, details are not described herein again.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the foregoing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, I won’t repeat them here. Among them, computer-readable storage media, such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disks, or optical disks, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, It also includes other elements that are not explicitly listed, or elements inherent to the process, method, article, or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情 况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例描述的方法。Through the description of the above implementation manners, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention are described above with reference to the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of the present invention, many forms can be made without departing from the purpose of the present invention and the scope of protection of the claims, and they all fall within the protection of the present invention.

Claims (14)

  1. 一种控制方法,所述方法包括:A control method, the method includes:
    在屏幕中显示目标图像;Display the target image on the screen;
    接收用户对所述屏幕中目标区域的目标触控输入;Receiving a user's target touch input to a target area on the screen;
    响应于所述目标触控输入,执行与所述目标触控输入对应的控制动作;In response to the target touch input, executing a control action corresponding to the target touch input;
    其中,所述控制动作包括以下至少一项:输出与所述目标图像的图案对应的目标声音,改变所述目标图像中与所述目标区域对应的图案,增大在所述目标区域输出的电流值。Wherein, the control action includes at least one of the following: outputting a target sound corresponding to the pattern of the target image, changing the pattern corresponding to the target area in the target image, and increasing the current output in the target area value.
  2. 根据权利要求1所述的方法,其中,所述接收用户对所述屏幕中目标区域的目标触控输入之前,所述方法还包括:The method according to claim 1, wherein before the receiving a user's target touch input on the target area on the screen, the method further comprises:
    获取与所述目标图像的每个像素点对应的特征值及每个像素点显示在所述屏幕中的位置;Acquiring the feature value corresponding to each pixel of the target image and the display position of each pixel on the screen;
    根据与每个像素点对应的特征值,获取与每个像素点对应的电流值;Obtain the current value corresponding to each pixel according to the characteristic value corresponding to each pixel;
    在每个像素点显示在所述屏幕中的位置分别输出与每个像素点对应的电流值;Respectively outputting a current value corresponding to each pixel at the position where each pixel is displayed on the screen;
    其中,所述特征值包括以下至少一项:亮度值、梯度值、至少一个颜色通道的像素值。Wherein, the characteristic value includes at least one of the following: a brightness value, a gradient value, and a pixel value of at least one color channel.
  3. 根据权利要求1所述的方法,其中,所述控制动作包括增大在所述目标区域输出的电流值;The method according to claim 1, wherein the control action includes increasing the current value output in the target area;
    所述接收用户对所述屏幕中目标区域的目标触控输入之前,所述方法还包括:Before the receiving the user's target touch input to the target area on the screen, the method further includes:
    在所述目标区域输出第一电流值;Output a first current value in the target area;
    所述响应于所述目标触控输入,执行与所述目标触控输入对应的控制动作,包括:The executing a control action corresponding to the target touch input in response to the target touch input includes:
    响应于所述目标触控输入,根据所述目标触控输入的压力值,获取第二电流值,并在所述目标区域输出第二电流值;In response to the target touch input, obtaining a second current value according to the pressure value of the target touch input, and outputting the second current value in the target area;
    其中,所述第二电流值大于第一电流值。Wherein, the second current value is greater than the first current value.
  4. 根据权利要求1所述的方法,其中,所述控制动作包括输出与所述目标图像的图案对应的目标声音,所述目标声音为第一声音或第二声音;The method according to claim 1, wherein the control action comprises outputting a target sound corresponding to the pattern of the target image, and the target sound is the first sound or the second sound;
    所述响应于所述目标触控输入,执行与所述目标触控输入对应的控制动作,包括:The executing a control action corresponding to the target touch input in response to the target touch input includes:
    获取所述目标触控输入的压力值;Acquiring the pressure value of the target touch input;
    在所述目标触控输入的压力值小于或等于预设压力值的情况下,根据所述目标触控输入的压力值和所述目标图像的图案,获取目标声音特征值,并按照所述目标声音特征值输出第一声音;或者,In the case that the pressure value of the target touch input is less than or equal to the preset pressure value, the target sound feature value is obtained according to the pressure value of the target touch input and the pattern of the target image, and the target sound characteristic value is obtained according to the target The sound feature value outputs the first sound; or,
    在所述目标触控输入的压力值大于预设压力值的情况下,按照与所述目标图像的图案对应的预设声音特征值输出第二声音;In a case where the pressure value of the target touch input is greater than the preset pressure value, output a second sound according to the preset sound characteristic value corresponding to the pattern of the target image;
    其中,在所述目标声音特征值包括目标音调,且所述预设声音特征值包括预设音调的情况下,所述预设音调高于所述目标音调;Wherein, in a case where the target sound characteristic value includes a target pitch, and the preset sound characteristic value includes a preset pitch, the preset pitch is higher than the target pitch;
    在所述目标声音特征值包括目标响度,且所述预设声音特征值包括预设响度的情况下,所述预设响度高于所述目标响度;In a case where the target sound characteristic value includes a target loudness, and the preset sound characteristic value includes a preset loudness, the preset loudness is higher than the target loudness;
    在所述目标声音特征值包括目标音色,且所述预设声音特征值包括预设音色的情 况下,所述预设音色与所述目标音色不同。In the case where the target sound characteristic value includes a target timbre, and the preset sound characteristic value includes a preset timbre, the preset timbre is different from the target timbre.
  5. 根据权利要求1至4中任一项所述的方法,其中,所述改变所述目标图像中与所述目标区域对应的图案包括以下至少一项:改变所述目标图像中的与所述目标区域对应的图案的形状,改变所述目标图像中的与所述目标区域对应的图案的数量;The method according to any one of claims 1 to 4, wherein the changing the pattern corresponding to the target area in the target image comprises at least one of the following: changing the pattern corresponding to the target area in the target image The shape of the pattern corresponding to the area, changing the number of patterns in the target image corresponding to the target area;
    所述方法还包括:The method also includes:
    在所述目标图像满足预设条件的情况下,恢复所述目标图像中的图案;In the case that the target image meets a preset condition, restore the pattern in the target image;
    其中,所述预设条件包括以下至少一项:在所述目标图像中的图案的总数量小于或等于第一预设值,在所述目标图像中改变形状的图案的数量大于或等于第二预设值,在所述目标图像中减少的图案的数量大于或等于第三预设值,在所述目标图像中目标图案的形变量大于或等于第四预设值。Wherein, the preset condition includes at least one of the following: the total number of patterns in the target image is less than or equal to a first preset value, and the number of patterns that change shapes in the target image is greater than or equal to the second The preset value, the number of reduced patterns in the target image is greater than or equal to a third preset value, and the amount of deformation of the target pattern in the target image is greater than or equal to the fourth preset value.
  6. 一种电子设备,所述电子设备包括显示模块、接收模块和处理模块;An electronic device including a display module, a receiving module, and a processing module;
    所述显示模块,用于在屏幕中显示目标图像;The display module is used to display the target image on the screen;
    所述接收模块,用于接收用户对所述屏幕中目标区域的目标触控输入;The receiving module is configured to receive a user's target touch input to a target area on the screen;
    所述处理模块,用于响应于所述接收模块接收的所述目标触控输入,执行与所述目标触控输入对应的控制动作;The processing module is configured to execute a control action corresponding to the target touch input in response to the target touch input received by the receiving module;
    其中,所述控制动作包括以下至少一项:输出与所述目标图像的图案对应的目标声音,改变所述目标图像中与所述目标区域对应的图案,增大在所述目标区域输出的电流值。Wherein, the control action includes at least one of the following: outputting a target sound corresponding to the pattern of the target image, changing the pattern corresponding to the target area in the target image, and increasing the current output in the target area value.
  7. 根据权利要求6所述的电子设备,其中,所述电子设备还包括获取模块;The electronic device according to claim 6, wherein the electronic device further comprises an acquisition module;
    所述获取模块,用于在所述接收模块接收用户对所述屏幕中目标区域的目标触控输入之前,获取与所述目标图像的每个像素点对应的特征值及每个像素点显示在所述屏幕中的位置;并根据与每个像素点对应的特征值,获取与每个像素点对应的电流值;The acquiring module is configured to acquire the characteristic value corresponding to each pixel of the target image and display each pixel on the target area of the screen before the receiving module receives the user's target touch input on the target area of the screen. The position in the screen; and obtaining the current value corresponding to each pixel according to the characteristic value corresponding to each pixel;
    所述处理模块,还用于在每个像素点显示在所述屏幕中的位置,分别输出与每个像素点对应的电流值;The processing module is further configured to output the current value corresponding to each pixel at the position where each pixel is displayed on the screen;
    其中,所述特征值包括以下至少一项:亮度值、梯度值、至少一个颜色通道的像素值。Wherein, the characteristic value includes at least one of the following: a brightness value, a gradient value, and a pixel value of at least one color channel.
  8. 根据权利要求6所述的电子设备,其中,所述控制动作包括增大在所述目标区域输出的电流值;所述电子设备还包括获取模块;The electronic device according to claim 6, wherein the control action comprises increasing the current value output in the target area; the electronic device further comprises an acquisition module;
    所述处理模块,还用于在所述接收模块接收用户对所述屏幕中目标区域的目标触控输入之前,在所述目标区域输出第一电流值;The processing module is further configured to output a first current value in the target area before the receiving module receives the user's target touch input to the target area on the screen;
    所述获取模块,用于响应于所述接收模块接收的所述目标触控输入,根据所述目标触控输入的压力值,获取第二电流值;The obtaining module is configured to obtain a second current value according to the pressure value of the target touch input in response to the target touch input received by the receiving module;
    所述处理模块,具体用于在所述目标区域输出第二电流值;The processing module is specifically configured to output a second current value in the target area;
    其中,所述第二电流值大于第一电流值。Wherein, the second current value is greater than the first current value.
  9. 根据权利要求6所述的电子设备,其中,所述控制动作包括输出与所述目标图像的图案对应的目标声音,所述目标声音为第一声音或第二声音;所述电子设备还包括获取模块;The electronic device according to claim 6, wherein the control action comprises outputting a target sound corresponding to the pattern of the target image, and the target sound is the first sound or the second sound; the electronic device further comprises acquiring Module
    所述获取模块,用于获取所述目标触控输入的压力值;The acquisition module is configured to acquire the pressure value of the target touch input;
    所述处理模块,具体用于在所述目标触控输入的压力值小于或等于预设压力值的 情况下,按照所述获取模块根据所述目标触控输入的压力值和所述目标图像的图案,获取目标声音特征值,并按照所述目标声音特征值输出第一声音;或者,在所述目标触控输入的压力值大于预设压力值的情况下,按照与所述目标图像的图案对应的预设声音特征值输出第二声音;The processing module is specifically configured to: when the pressure value of the target touch input is less than or equal to the preset pressure value, according to the acquisition module according to the pressure value of the target touch input and the target image Pattern, obtain the target sound characteristic value, and output the first sound according to the target sound characteristic value; or, in the case that the pressure value of the target touch input is greater than the preset pressure value, follow the pattern corresponding to the target image The corresponding preset sound feature value outputs the second sound;
    其中,在所述目标声音特征值包括目标音调,且所述预设声音特征值包括预设音调的情况下,所述预设音调高于所述目标音调;Wherein, in a case where the target sound characteristic value includes a target pitch, and the preset sound characteristic value includes a preset pitch, the preset pitch is higher than the target pitch;
    在所述目标声音特征值包括目标响度,且所述预设声音特征值包括预设响度的情况下,所述预设响度高于所述目标响度;In a case where the target sound characteristic value includes a target loudness, and the preset sound characteristic value includes a preset loudness, the preset loudness is higher than the target loudness;
    在所述目标声音特征值包括目标音色,且所述预设声音特征值包括预设音色的情况下,所述预设音色与所述目标音色不同。In a case where the target sound characteristic value includes a target timbre, and the preset sound characteristic value includes a preset timbre, the preset timbre is different from the target timbre.
  10. 根据权利要求6至9中任一项所述的电子设备,其中,所述改变所述目标图像中与所述目标区域对应的图案包括以下至少一项:改变所述目标图像中的与所述目标区域对应的图案的形状,改变所述目标图像中的与所述目标区域对应的图案的数量;The electronic device according to any one of claims 6 to 9, wherein the changing the pattern corresponding to the target area in the target image comprises at least one of the following: changing the pattern in the target image corresponding to the The shape of the pattern corresponding to the target area, changing the number of patterns in the target image corresponding to the target area;
    所述处理模块,还用于在所述目标图像满足预设条件的情况下,控制所述显示模块恢复所述目标图像中的图案;The processing module is further configured to control the display module to restore the pattern in the target image when the target image meets a preset condition;
    其中,所述预设条件包括以下至少一项:在所述目标图像中的图案的总数量小于或等于第一预设值,在所述目标图像中改变形状的图案的数量大于或等于第二预设值,在所述目标图像中减少的图案的数量大于或等于第三预设值,在所述目标图像中目标图案的形变量大于或等于第四预设值。Wherein, the preset condition includes at least one of the following: the total number of patterns in the target image is less than or equal to a first preset value, and the number of patterns that change shapes in the target image is greater than or equal to the second The preset value, the number of reduced patterns in the target image is greater than or equal to a third preset value, and the amount of deformation of the target pattern in the target image is greater than or equal to a fourth preset value.
  11. 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至5中任一项所述的控制方法的步骤。An electronic device, comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor, the computer program being executed by the processor to implement any of claims 1 to 5 One of the steps of the control method.
  12. 一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5中任一项所述的控制方法的步骤。A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the control method according to any one of claims 1 to 5 are realized.
  13. 一种计算机程序产品,所述计算机程序产品被至少一个处理器执行以实现如权利要求1至5任一项所述的控制方法。A computer program product, which is executed by at least one processor to implement the control method according to any one of claims 1 to 5.
  14. 一种电子设备,所述电子设备被配置成用于执行如权利要求1至5中任一项所述的控制方法。An electronic device configured to execute the control method according to any one of claims 1 to 5.
PCT/CN2021/077809 2020-03-04 2021-02-25 Control method and electronic device WO2021175142A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010143896.4 2020-03-04
CN202010143896.4A CN111430005A (en) 2020-03-04 2020-03-04 Control method and electronic equipment

Publications (1)

Publication Number Publication Date
WO2021175142A1 true WO2021175142A1 (en) 2021-09-10

Family

ID=71547490

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/077809 WO2021175142A1 (en) 2020-03-04 2021-02-25 Control method and electronic device

Country Status (2)

Country Link
CN (1) CN111430005A (en)
WO (1) WO2021175142A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111430005A (en) * 2020-03-04 2020-07-17 维沃移动通信有限公司 Control method and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103869960A (en) * 2012-12-18 2014-06-18 富泰华工业(深圳)有限公司 Touch feedback system and touch feedback providing method thereof
CN104737096A (en) * 2012-05-31 2015-06-24 诺基亚公司 A display apparatus
US20170032437A1 (en) * 2014-03-31 2017-02-02 Gift Card Impressions, LLC System and method for digital delivery of reveal videos for online gifting
CN106933397A (en) * 2015-12-30 2017-07-07 网易(杭州)网络有限公司 Virtual object control method and device
CN106970707A (en) * 2017-03-30 2017-07-21 珠海市魅族科技有限公司 For the feedback method, feedback device and touch control terminal of touch control operation
CN107015640A (en) * 2017-02-23 2017-08-04 珠海市魅族科技有限公司 The method and device of terminal control vibration
CN111430005A (en) * 2020-03-04 2020-07-17 维沃移动通信有限公司 Control method and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103279223B (en) * 2013-05-27 2016-11-23 深圳市金立通信设备有限公司 A kind of method of touch information feedback, equipment and system
US9104237B1 (en) * 2014-03-31 2015-08-11 Gift Card Impressions, LLC System and method for digital delivery of reveal videos for online gifting

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104737096A (en) * 2012-05-31 2015-06-24 诺基亚公司 A display apparatus
CN103869960A (en) * 2012-12-18 2014-06-18 富泰华工业(深圳)有限公司 Touch feedback system and touch feedback providing method thereof
US20170032437A1 (en) * 2014-03-31 2017-02-02 Gift Card Impressions, LLC System and method for digital delivery of reveal videos for online gifting
CN106933397A (en) * 2015-12-30 2017-07-07 网易(杭州)网络有限公司 Virtual object control method and device
CN107015640A (en) * 2017-02-23 2017-08-04 珠海市魅族科技有限公司 The method and device of terminal control vibration
CN106970707A (en) * 2017-03-30 2017-07-21 珠海市魅族科技有限公司 For the feedback method, feedback device and touch control terminal of touch control operation
CN111430005A (en) * 2020-03-04 2020-07-17 维沃移动通信有限公司 Control method and electronic equipment

Also Published As

Publication number Publication date
CN111430005A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
CN110460907B (en) Video playing control method and terminal
US11675442B2 (en) Image processing method and flexible-screen terminal
CN109002243B (en) Image parameter adjusting method and terminal equipment
US11604567B2 (en) Information processing method and terminal
WO2021104321A1 (en) Image display method and electronic device
WO2019196864A1 (en) Control method for virtual button and mobile terminal
CN108712577B (en) Call mode switching method and terminal equipment
JP7480355B2 (en) Method, device and electronic device for displaying unread messages
CN110174993B (en) Display control method, terminal equipment and computer readable storage medium
CN111562896B (en) Screen projection method and electronic equipment
WO2021004306A1 (en) Operation control method and terminal
WO2021083256A1 (en) Touch-control response method and electronic device
WO2019223569A1 (en) Information processing method and mobile terminal
CN108391007A (en) A kind of the volume setting method and mobile terminal of application program
WO2021185139A1 (en) Electronic device and screen display method
US20220086114A1 (en) Message sending method and terminal
CN108804628B (en) Picture display method and terminal
CN110866465A (en) Control method of electronic equipment and electronic equipment
US11947790B2 (en) Interface display method and terminal, and computer readable storage medium
US20220174146A1 (en) Incoming call processing method and electronic device
WO2021175142A1 (en) Control method and electronic device
WO2021208890A1 (en) Screen capturing method and electronic device
WO2021208769A1 (en) Control method and electronic device
CN107977947B (en) Image processing method and mobile terminal
WO2020238477A1 (en) Editing method and mobile terminal

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

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

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 21765166

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 01.03.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21765166

Country of ref document: EP

Kind code of ref document: A1