US-20260126857-A1 - HAPTIC FEEDBACK METHOD AND APPARATUS BASED ON IMAGE TEXTURE, DEVICE, AND STORAGE MEDIUM
Abstract
A haptic feedback method and apparatus based on image texture, a device and a storage medium are provided. Object feature information of an image object is obtained according to a texture feature parameter of the image texture. A global relative vibration parameter corresponding to the image object is obtained according to the object feature information. On detecting a touch operation event relative to the image object, the local relative vibration parameter corresponding to a position at which the touch operation occurs is obtained according to the global relative vibration parameter. The actual vibration parameter of the haptic feedback actuator is mapped based on the local relative vibration parameter, and a vibration control signal corresponding to the position is generated according to the actual vibration parameter. The vibration control signal is sent to the executor, to control the executor to perform a vibration operation on the position.
Inventors
- Shiyu Pei
- Yajun ZHENG
Assignees
- AAC Acoustic Technologies (Shanghai) Co., Ltd.
Dates
- Publication Date
- 20260507
- Application Date
- 20250410
Claims (9)
- 1 . A haptic feedback method based on image texture, comprising: acquiring object feature information of an image object according to a texture feature parameter of an image texture in a target display image; acquiring, according to the object feature information, a global relative vibration parameter corresponding to the image object; on detecting a touch operation event relative to the image object, acquiring, according to the global relative vibration parameter, a local relative vibration parameter corresponding to a position at which a touch operation occurs; mapping an actual vibration parameter of a haptic feedback actuator based on the local relative vibration parameter, and generating, according to the actual vibration parameter, a vibration control signal corresponding to the position at which the touch operation occurs; and sending the vibration control signal to the haptic feedback executor to control the haptic feedback executor to perform a corresponding vibration operation on the position at which the touch operation occurs.
- 2 . The haptic feedback method according to claim 1 , wherein the acquiring, according to the object feature information, a global relative vibration parameter corresponding to the image object comprises: acquiring, according to roughness of the image object, a global relative vibration intensity corresponding to the image object, and/or acquiring, according to hardness of the image object, a global relative vibration frequency corresponding to the image object.
- 3 . The haptic feedback method according to claim 2 , wherein the object feature information is the roughness, and the acquiring object feature information of an image object according to a texture feature parameter of an image texture in a target display image comprises: converting the target display image into a grayscale image; extracting a first texture feature parameter of the grayscale image based on a grayscale symbiotic matrix, wherein the first texture feature parameter comprises at least one of: texture entropy, texture inertia moment, texture contrast, texture correlation, or texture uniformity; and calculating the roughness of the image object based on a preset function between the first texture feature parameter and the roughness.
- 4 . The haptic feedback method according to claim 2 , wherein the object feature information is the hardness, and the acquiring object feature information of an image object according to a texture feature parameter of an image texture in a target display image comprises: acquiring N displayed images in a video being currently displayed that are previous to the target display image, wherein N is a positive integer greater than 0; counting second texture feature information of the image texture in the target display image according to the target display image and the N displayed images, wherein the second texture feature information comprises deformation information; and calculating the hardness of the image object based on a preset function between the second texture feature parameter and the hardness.
- 5 . The haptic feedback method according to claim 4 , further comprising: querying a preset object prior information base for hardness corresponding to the image object, wherein the N displayed images in the video being currently displayed that are previous to the target display image are acquired on failure of the query.
- 6 . The haptic feedback method according to claim 1 , wherein the relative vibration parameter comprises a relative vibration intensity and a relative vibration frequency, and the mapping an actual vibration parameter of a haptic feedback actuator based on the local relative vibration parameter comprises: weighting the local relative vibration intensity based on touch operation pressure and weighting the local relative vibration frequency based on a touch operation speed; and mapping the weighted local relative vibration intensity to an actual vibration intensity of the haptic feedback actuator, and mapping the weighted local relative vibration frequency to an actual vibration frequency of the haptic feedback actuator.
- 7 . The haptic feedback method according to claim 6 , wherein the mapping the weighted local relative vibration intensity to an actual vibration intensity of the haptic feedback actuator and mapping the weighted local relative vibration frequency to an actual vibration frequency of the haptic feedback actuator comprises: acquiring a rated voltage and a rated frequency response range of the haptic feedback actuator; and mapping the weighted local relative vibration intensity to the actual vibration intensity of the haptic feedback actuator based on the rated voltage, and mapping the weighted local relative vibration frequency to the actual vibration frequency of the haptic feedback actuator based on the rated frequency response range.
- 8 . An electronic device, comprising a memory and a processor, wherein the processor is configured to execute a computer program stored in the memory to implement steps in the haptic feedback method based on image texture according to claim 1 .
- 9 . A computer readable storage medium, on which a computer program is stored, wherein the computer program is executable by a processor to implement steps in the haptic feedback method based on image texture according to claim 1 .
Description
CROSS REFERENCE TO RELATED APPLICATIONS The present application is a continuation of PCT Patent Application No. PCT/CN2024/129960, entitled “HAPTIC FEEDBACK METHOD AND APPARATUS BASED ON IMAGE TEXTURE, DEVICE, AND STORAGE MEDIUM,” filed Nov. 5, 2024, which is incorporated by reference herein in its entirety. TECHNICAL FIELD This application relates to the technical field of electronics, and is appliable to haptic feedback scenarios of electronic devices. Specifically, this application relates to a haptic feedback method based on image texture, a haptic feedback apparatus based on image texture, a device, and a storage medium. BACKGROUND With the continuous advancement of science and technology, electronic devices are becoming increasingly versatile. These devices now offer users a wide range of human-computer interaction functions. Among these, haptic feedback stands out as a key feature, significantly enhancing the user experience when operating electronic devices. Currently, the haptic feedback technologies provided for electronic devices are limited to a few types: vibration feedback in response to a user's virtual keypress or specific in-game actions during gameplay. In other words, the diversity and interactivity of haptic feedback technologies in current solutions remain quite limited. It is important to note that the technologies described in this section may not necessarily be those that have been previously envisioned or implemented. Unless explicitly stated otherwise, no assumption should be made that any technology mentioned here is considered prior art simply because it is included. Similarly, unless otherwise specified, the issues raised in this section should not be assumed to be universally recognized in existing technologies. SUMMARY A haptic feedback method and apparatus based on image texture, a device and a storage medium are provided, aiming to solve at least one of the problems in the related technology to a certain extent. To resolve the foregoing technical problem, a first aspect of this application provides a haptic feedback method based on image texture. The method includes: acquiring object feature information of an image object according to a texture feature parameter of an image texture in a target display image; acquiring, according to the object feature information, a global relative vibration parameter corresponding to the image object; on detecting a touch operation event relative to the image object, acquiring, according to the global relative vibration parameter, a local relative vibration parameter corresponding to a position at which a touch operation occurs; mapping an actual vibration parameter of a haptic feedback actuator based on the local relative vibration parameter, and generating, according to the actual vibration parameter, a vibration control signal corresponding to the position at which the touch operation occurs; and sending the vibration control signal to the haptic feedback executor to control the haptic feedback executor to perform a corresponding vibration operation on the position at which the touch operation occurs. A second aspect of this application provides a haptic feedback apparatus based on image texture, including: an information acquisition module configured to acquire object feature information of an image object according to a texture feature parameter of an image texture in a target display image; a first parameter acquisition module configured to acquire, according to the object feature information, a global relative vibration parameter corresponding to the image object; a second parameter acquisition module configured to: on detecting a touch operation event relative to the image object, acquire, according to the global relative vibration parameter, a local relative vibration parameter corresponding to a position at which a touch operation occurs; a signal generation module configured to: map an actual vibration parameter of a haptic feedback actuator based on the local relative vibration parameter, and generate, according to the actual vibration parameter, a vibration control signal corresponding to the position at which the touch operation occurs; and a vibration control module configured to send the vibration control signal to the haptic feedback executor to control the haptic feedback executor to perform a corresponding vibration operation on the position at which the touch operation occurs. A third aspect of this application provides an electronic device, including a memory and a processor. The processor is configured to execute a computer program stored in the memory to implement steps in the haptic feedback method based on image texture in the first aspect of this application. A fourth aspect of this application provides a computer readable storage medium, where a computer program is stored in the computer readable storage medium, and the processor is configured to execute the computer program to implement steps in the haptic feedbac