Haptic signal encoding processing method and decoding processing method, and related device
By acquiring the key frame sequence and target residual signal of multi-channel tactile signals, performing low-pass filtering processing and applying a masking model for encoding processing, the problem of low compression rate of tactile signals in the existing technology is solved, and more efficient signal compression is achieved. .
Patent Information
- Application Number
- PCT/CN2024/083452
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-31
- Filing Date
- 2024-03-25
- Publication Date
- 2024-10-03
AI Technical Summary
The compression rate of tactile signals in the existing technology is low, resulting in redundancy problems in the encoding process.
By obtaining the key frame sequence and target residual signal of multi-channel tactile signals, low-pass filtering is performed and a masking model is applied for encoding processing to remove signal redundancy and improve compression efficiency.
Effectively removes signal redundancy and improves the compression rate and efficiency of tactile signals.
Smart Images

Figure CN2024083452_03102024_PF_FP_ABST
Abstract
Description
Tactile signal encoding and processing method, decoding and processing method and related equipment
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese Patent Application No. 202310338779.7 filed in China on March 31, 2023, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present application belongs to the field of tactile coding and decoding technology, and specifically relates to a tactile signal encoding and processing method, a decoding and processing method, and related equipment. Background Art
[0004] During the encoding process of tactile signals (including but not limited to vibration texture signals), multiple single-point tactile signals are typically encoded one by one to achieve multi-point tactile signal encoding. However, due to the masking effect between adjacent tactile signals during the encoding process, the tactile signals obtained after encoding the single-point tactile signals one by one contain certain redundancy. Therefore, the existing technology suffers from a low compression rate of tactile signals.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a tactile signal encoding and processing method, a decoding and processing method, and related devices, which can solve the problem of low compression rate of tactile signals.
[0007] In a first aspect, a tactile signal encoding and processing method is provided, which is applied to an encoding end and includes:
[0008] Obtaining at least one of a key frame sequence and a first signal corresponding to each tactile signal in multiple tactile signals, wherein the key frame sequence is obtained based on a second signal, the first signal is obtained based on a target residual signal and a third signal, the target residual signal is obtained based on the second signal and the key frame sequence, the second signal and the third signal are obtained by low-pass filtering the tactile signal, and a frequency of the second signal is lower than a frequency of the third signal;
[0009] Execute a target operation; wherein the target operation includes at least one of the following:
[0010] Performing a first masking process on the key frame sequence based on a first masking model, and encoding the signal after the first masking process to obtain a first coded sequence;
[0011] A second masking process is performed on the first signal based on a second masking model, and the signal after the second masking process is encoded to obtain a second coding sequence.
[0012] In a second aspect, a tactile signal decoding and processing method is provided, which is applied to a decoding end and includes:
[0013] Decoding the second coding sequence to obtain multiple fourth signals;
[0014] Performing block processing on each of the fourth signals to obtain at least one signal block, where each signal block corresponds to a time interval;
[0015] Determine the primary signal block and the secondary signal block corresponding to each time interval;
[0016] For each of the time intervals, masking and restoring the secondary signal block based on the primary signal block to obtain a fifth signal, wherein the fifth signal includes the primary signal block and the masked and restored secondary signal block;
[0017] obtaining a multi-channel decoded signal based on the fifth signal;
[0018] The second coding sequence is obtained based on the first signal corresponding to each tactile signal in the multiple tactile signals, the first signal is obtained based on the target residual signal and the third signal, the target residual signal is obtained based on the second signal, the second signal and the third signal are obtained based on low-pass filtering of the tactile signal, and the frequency of the second signal is less than the frequency of the third signal.
[0019] In a third aspect, a tactile signal encoding and processing device is provided, which is applied to an encoding end and includes:
[0020] an acquisition module, configured to acquire at least one of a key frame sequence and a first signal corresponding to each tactile signal in multiple tactile signals, wherein the key frame sequence is obtained based on the second signal, the first signal is obtained based on a target residual signal and a third signal, the target residual signal is obtained based on the second signal and the key frame sequence, the second signal and the third signal are obtained by low-pass filtering the tactile signal, and a frequency of the second signal is lower than a frequency of the third signal;
[0021] An execution module, configured to execute a target operation; wherein the target operation includes at least one of the following:
[0022] Performing a first masking process on the key frame sequence based on a first masking model, and encoding the signal after the first masking process to obtain a first coded sequence;
[0023] A second masking process is performed on the first signal based on a second masking model, and the signal after the second masking process is encoded to obtain a second coding sequence.
[0024] In a fourth aspect, a tactile signal decoding and processing device is provided, which is applied to a decoding end and includes:
[0025] A decoding module, configured to decode the second coding sequence to obtain multiple fourth signals;
[0026] Block processing, used to perform block processing on each of the fourth signals to obtain at least one signal block, each signal block corresponding to a time interval;
[0027] A first determining module, configured to determine a primary signal block and a secondary signal block corresponding to each time interval;
[0028] a restoration module, configured to perform masking restoration on the secondary signal block based on the primary signal block for each of the time intervals to obtain a fifth signal, wherein the fifth signal includes the primary signal block and the masked and restored secondary signal block;
[0029] a processing module, configured to obtain a multi-channel decoded signal based on the fifth signal;
[0030] The second coding sequence is obtained based on the first signal corresponding to each tactile signal in the multiple tactile signals, the first signal is obtained based on the target residual signal and the third signal, the target residual signal is obtained based on the second signal, the second signal and the third signal are obtained based on low-pass filtering of the tactile signal, and the frequency of the second signal is less than the frequency of the third signal.
[0031] In a fifth aspect, an electronic device is provided, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented, or when the program or instructions are executed by the processor, the steps of the method described in the second aspect are implemented.
[0032] In a sixth aspect, an electronic device is provided, including a processor and a communication interface, wherein:
[0033] When the electronic device is an encoding end, the processor is used to obtain at least one of a key frame sequence and a first signal corresponding to each tactile signal in multiple tactile signals, wherein the key frame sequence is obtained based on the second signal, the first signal is obtained based on a target residual signal and a third signal, the target residual signal is obtained based on the second signal and the key frame sequence, the second signal and the third signal are obtained based on low-pass filtering of the tactile signal, and the frequency of the second signal is less than the frequency of the third signal; perform a target operation; wherein the target operation includes at least one of the following: performing a first masking process on the key frame sequence based on a first masking model, and encoding the signal after the first masking process to obtain a first coding sequence; performing a second masking process on the first signal based on a second masking model, and encoding the signal after the second masking process to obtain a second coding sequence;
[0034] When the electronic device is a decoding end, the processor is used to decode the second coding sequence to obtain multiple fourth signals; block-process each of the fourth signals to obtain at least one signal block, each signal block corresponding to a time interval; determine the main signal block and the secondary signal block corresponding to each time interval; for each of the time intervals, mask and restore the secondary signal block based on the main signal block to obtain a fifth signal, the fifth signal including the main signal block and the masked and restored secondary signal block; obtain multiple decoded signals based on the fifth signal; wherein, the second coding sequence is obtained based on the first signal corresponding to each tactile signal in the multiple tactile signals, the first signal is obtained based on the target residual signal and the third signal, the target residual signal is obtained based on the second signal, the second signal and the third signal are obtained based on low-pass filtering of the tactile signal, and the frequency of the second signal is less than the frequency of the third signal.
[0035] In the seventh aspect, a tactile signal encoding and decoding system is provided, including: an encoding end device and a decoding end device, the encoding end device can be used to execute the steps of the tactile signal encoding and processing method as described in the first aspect, and the decoding end device can be used to execute the steps of the tactile signal decoding and processing method as described in the second aspect.
[0036] In an eighth aspect, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented, or the steps of the method described in the second aspect are implemented.
[0037] In the ninth aspect, a chip is provided, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the steps of the method described in the first aspect, or to implement the steps of the method described in the second aspect.
[0038] In the tenth aspect, a computer program / program product is provided, which is stored in a storage medium and is executed by at least one processor to implement the steps of the method described in the first aspect, or to implement the steps of the method described in the second aspect.
[0039] In an embodiment of the present application, a key frame sequence corresponding to each tactile signal in a plurality of tactile signals and at least one of the first signals are obtained, wherein the key frame sequence is obtained based on the second signal, the first signal is obtained based on the target residual signal and the third signal, the target residual signal is obtained based on the second signal and the key frame sequence, the second signal and the third signal are obtained based on low-pass filtering of the tactile signal, and the frequency of the second signal is less than the frequency of the third signal; a target operation is performed; wherein the target operation includes at least one of the following: performing a first masking process on the key frame sequence based on a first masking model, and encoding the signal after the first masking process to obtain a first coding sequence; performing a second masking process on the first signal based on a second masking model, and encoding the signal after the second masking process to obtain a second coding sequence. In this way, since at least one of the key frame sequence and the first signal is masked, signal redundancy can be removed, thereby improving the efficiency of tactile signal compression. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] FIG1 is a schematic flow chart of a tactile signal encoding and processing method provided in an embodiment of the present application;
[0041] FIG2 is a schematic diagram of a coding framework of a tactile signal coding and processing method provided in an embodiment of the present application;
[0042] FIG3 is a schematic flow chart of a tactile signal decoding and processing method provided in an embodiment of the present application;
[0043] FIG4 is a schematic diagram of a decoding framework of a tactile signal decoding and processing method provided in an embodiment of the present application;
[0044] FIG5 is a schematic structural diagram of a tactile signal encoding and processing device provided in an embodiment of the present application;
[0045] FIG6 is a schematic structural diagram of a tactile signal decoding and processing device provided in an embodiment of the present application;
[0046] FIG7 is a structural diagram of a communication device provided in an embodiment of the present application;
[0047] FIG8 is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] The following will be combined with the accompanying drawings in the embodiments of this application to clearly describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0049] The terms "first", "second", etc. in this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of the same type, and do not limit the number of objects, for example, the first object can be one or more. In addition, "or" in this application represents at least one of the connected objects. For example, "A or B" covers three options, namely, Option 1: including A but not including B; Option 2: including B but not including A; Option 3: including both A and B. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.
[0050] The term "indication" in this application can be either a direct indication (or explicit indication) or an indirect indication (or implicit indication). A direct indication can be understood as the sender explicitly informing the receiver of specific information, the operation to be performed, or the requested result, etc. in the instruction sent; an indirect indication can be understood as the receiver determining the corresponding information based on the instruction sent by the sender, or making a judgment and determining the operation to be performed or the requested result, etc. based on the judgment result.
[0051] The encoding and decoding end corresponding to the tactile signal encoding and decoding method in the embodiment of the present application can be a terminal, which can also be called a terminal device or user equipment (UE). The terminal can be a mobile phone, a tablet personal computer, a laptop computer or a notebook computer, a personal digital assistant (PDA), a handheld computer, a netbook, an ultra-mobile personal computer (UMPC), a mobile Internet device (MID), a wearable device (Wearable Device) or a vehicle user equipment (VUE), a pedestrian terminal (Pedestrian User Equipment, PUE) and other terminal-side devices. Wearable devices include: smart watches, bracelets, headphones, glasses, etc. It should be noted that the specific type of the terminal is not limited in the embodiment of the present application.
[0052] For ease of understanding, some of the contents involved in the embodiments of this application are described below:
[0053] As a unique sensory channel, touch can effectively capture complex information that is difficult to perceive through other sensory modalities such as vision or hearing. Tactile information refers to the human body's perception of shape, position, surface texture, hardness, roughness, and temperature. It is primarily categorized into two main types: tactile information based on muscle movement (hereafter referred to as kinesthetic information) and tactile information based on skin texture (hereafter referred to as texture information). Texture information includes surface texture, friction, and temperature, as sensed by mechanoreceptors on the skin. After being collected and texture-encoded by hardware systems, texture signals are reconstructed using specialized tactile reproduction devices, delivering the user with a combination of vibrations or stimulus pulses perceived by the receptors. For example, new tactile feedback displays allow users to experience textured touch by sliding their fingers across a touchscreen; vibration wave tactile feedback discs add vibratory tactile perception to the existing audio-visual senses of virtual reality games; and Google has added tactile game controllers to its gaming platforms. The development of these tactile reconstruction systems relies on texture encoding technology, which is a crucial foundation for the development of these devices.
[0054] Texture coding methods are mainly divided into three categories: statistics-based coding methods; coding methods based on perceptual models (Weber's theorem); and hybrid perceptual coding methods. Statistics-based texture coding uses quantization and prediction models to reduce data redundancy. Perceptual model-based coding methods achieve data compression by setting a difference threshold (discrimination sensitivity). Hybrid perceptual coding uses the absolute threshold of perception and masking phenomena to extract the necessary attributes of the input signal to achieve perceptual compression. The perceptual vibrotactile signal compression algorithm based on sparse linear prediction (PVC-SLP) uses an accelerated sensitivity function (ASF) to construct a tactile sensitivity model and has been selected as part of the IEEE P1918.1.1 tactile codec standard.
[0055] The tactile signal encoding method provided by the embodiment of the present application is described in detail below through some embodiments and application scenarios in conjunction with the accompanying drawings.
[0056] Step 101: Acquire at least one of a key frame sequence and a first signal corresponding to each tactile signal in multiple tactile signals, wherein the key frame sequence is obtained based on a second signal, the first signal is obtained based on a target residual signal and a third signal, the target residual signal is obtained based on the second signal and the key frame sequence, the second signal and the third signal are obtained by low-pass filtering the tactile signal, and a frequency of the second signal is lower than a frequency of the third signal;
[0057] In the embodiment of the present application, each tactile signal has a corresponding key frame sequence and a first signal. The second signal can be understood as a low-frequency signal component of the tactile signal, and the third signal can be understood as a high-frequency signal component of the tactile signal.
[0058] Optionally, in some embodiments, multiple spatially adjacent tactile signals and tactile spatial information may be first obtained, where the spatial information includes but is not limited to the following information: body region information, position information within the body region, and relative position information of each signal source; then, the following process may be used to obtain a key frame sequence and a first signal corresponding to each tactile signal:
[0059] Performing low-pass filtering on the multi-channel tactile signals to separate the low-frequency signal components and high-frequency signal components that are easily perceived by the human body, thereby obtaining the second signal and the third signal;
[0060] For each second signal, each extreme value is taken as a key frame to obtain a key frame sequence corresponding to each second tactile signal;
[0061] Obtaining a reconstructed low-frequency signal by interpolation reconstruction, and calculating a residual between the reconstructed low-frequency signal and the corresponding second signal to obtain a target residual signal;
[0062] The target residual signal is added to the corresponding third signal, thereby obtaining the first signal, that is, obtaining a high-frequency signal with a low-frequency residual.
[0063] Step 102: Execute a target operation. The target operation may include at least one of the following:
[0064] Performing a first masking process on the key frame sequence based on a first masking model, and encoding the signal after the first masking process to obtain a first coded sequence;
[0065] A second masking process is performed on the first signal based on a second masking model, and the signal after the second masking process is encoded to obtain a second coding sequence.
[0066] In the embodiments of the present application, a masking method can be selected as needed: for example, only the key frame sequence can be masked, only the first signal can be masked, or both the key frame sequence and the first signal can be masked. It should be understood that when neither the key frame sequence nor the first signal is masked, it can be understood that conventional encoding processing is not performed on the masked object.
[0067] Optionally, the above-mentioned first masking model includes but is not limited to a spatiotemporal joint masking effect model applicable to low-frequency signals. The above-mentioned second masking model includes but is not limited to a spatiotemporal joint masking effect model applicable to high-frequency signals. The spatiotemporal joint masking effect model represents the masking effect of the main signal on the surrounding secondary signals under the action of main signals of different frequencies, which is expressed as a masking threshold coefficient. Among them, the amplitude of the main signal is multiplied by the masking threshold coefficient and subjected to corresponding assignment operations to obtain a masking threshold matrix. When the amplitude of the secondary signal adjacent to the main signal in the space is lower than the masking threshold, it means that the main signal has a masking effect on the secondary signal, and people cannot feel or can hardly feel the secondary signal at this time under the influence of the main signal.
[0068] In an embodiment of the present application, a key frame sequence corresponding to each tactile signal in a plurality of tactile signals and at least one of the first signals are obtained, wherein the key frame sequence is obtained based on the second signal, the first signal is obtained based on the target residual signal and the third signal, the target residual signal is obtained based on the second signal and the key frame sequence, the second signal and the third signal are obtained based on low-pass filtering of the tactile signal, and the frequency of the second signal is less than the frequency of the third signal; a target operation is performed; wherein the target operation includes at least one of the following: performing a first masking process on the key frame sequence based on a first masking model, and encoding the signal after the first masking process to obtain a first coding sequence; performing a second masking process on the first signal based on a second masking model, and encoding the signal after the second masking process to obtain a second coding sequence. In this way, since at least one of the key frame sequence and the first signal is masked, signal redundancy can be removed, thereby improving the efficiency of tactile signal compression.
[0069] Optionally, in some embodiments, performing a first masking process on the key frame sequence based on the first masking model to obtain a first coded sequence includes:
[0070] Determining a primary key frame sequence and a secondary key frame sequence in the key frame sequences corresponding to the multiple tactile signals;
[0071] determining the first occlusion model according to spatial position information corresponding to the primary key frame sequence and spatial position information corresponding to the secondary key frame sequence;
[0072] performing a first masking process on the secondary key frame sequence according to the first masking model to obtain a target key frame sequence, wherein the target key frame sequence includes the primary key frame sequence and the masked secondary key frame sequence;
[0073] The target key frame sequence is encoded to obtain a first encoded sequence.
[0074] In the embodiment of the present application, the above-mentioned first coding sequence can be referred to as a low-frequency coding sequence. The main key frame sequence can be understood as a key frame sequence corresponding to the tactile signal of the tactile sensitive point, or can be understood as a key frame sequence corresponding to a tactile signal with a larger signal strength. The above-mentioned secondary key frame sequence is a key frame sequence other than the main key frame sequence in the multiple key frame sequences corresponding to the multiple tactile signals. In other words, in the embodiment of the present application, the main key frame sequence satisfies at least one of the following:
[0075] The main key frame sequence is a key frame sequence corresponding to the tactile signal of the tactile sensitive point;
[0076] The main key frame sequence is a key frame sequence corresponding to a tactile signal having a signal strength greater than or equal to a preset strength threshold.
[0077] Optionally, the method for determining the main key frame sequence may include the following method:
[0078] 1. When the signal strengths are roughly the same, determine the primary keyframe sequence based on whether the tactile signal is located at a tactile sensitive point. For example, the keyframe sequence corresponding to the tactile signal at the tactile sensitive point is used as the primary keyframe sequence. Tactile sensitive points can be determined through subjective testing or defined based on specific equipment or locations.
[0079] 2. When the signal strength has a large interpolation value, the primary and secondary key frame sequences can be defined according to the strength of the signal. For example, a specified time interval can be determined first, and the key frames contained in the time interval can be interpolated to obtain the restored signal.
[0080] The restored signals of each channel are integrated according to factors such as amplitude and power, and sorted in descending order according to the integration results. Several key frame sequences are selected according to the compression requirements and defined as the main key frame sequence.
[0081] It should be understood that different spatial position information corresponds to different masking models, and the corresponding first masking model can be selected for masking based on the position information of the key frame sequence. For example, the face area corresponds to one masking model, and the finger area corresponds to another masking model.
[0082] Optionally, the number of the main key frame sequences may be one or more, and each main key frame sequence is a key frame sequence corresponding to one haptic signal.
[0083] Optionally, performing the first masking process on the secondary key frame according to the first masking model may include the following process:
[0084] According to the occlusion threshold and the number of occlusion points, the key frames in the secondary key frame sequence whose distance range corresponding to the number of occlusion points of the key frames in the primary key frame sequence is smaller than the occlusion threshold are deleted.
[0085] Optionally, the target key frame sequence can be understood as a masked key frame sequence, and binary encoding can be used to encode the target key frame sequence. The encoding length can be set according to actual needs, for example, the encoding length can be 8, 16 or 32.
[0086] Optionally, in some embodiments, performing a first masking process on the secondary key frame sequence according to the first masking model to obtain a target key frame sequence includes:
[0087] Inputting the frequency of the main key frame sequence into the first masking model to obtain a first masking threshold coefficient;
[0088] Multiplying the amplitude of the main key frame sequence by a first masking threshold coefficient to obtain a first masking threshold matrix;
[0089] A first masking process is performed on the secondary key frame sequence based on the first masking threshold matrix to obtain a target key frame sequence.
[0090] In an embodiment of the present application, the first masking processing performed on the sub-key frame sequence based on the first masking threshold matrix can be based on comparing the amplitude of each key frame in the sub-key frame sequence with the masking threshold of the key frame at the corresponding position in the first masking threshold matrix. When the amplitude of each key frame is less than the masking threshold of the key frame at the corresponding position in the first masking threshold matrix, the amplitude of the key frame is set to 0 or the sub-key frame is deleted (in this case, the key frame can be understood as a redundant signal). In other words, the first masking processing includes: when the amplitude of a target sub-key frame in the sub-key frame sequence is less than or equal to the masking threshold corresponding to the target sub-key frame in the first masking threshold matrix, the amplitude of the target sub-key frame is set to 0 or the target sub-key frame is deleted. Among them, the masking threshold of a position in a first masking threshold matrix corresponds to an interval range position. For example, the masking threshold of position 300 (assuming that the 300th signal frame is the primary key frame, position 300 is the position of the 300th signal frame in the first masking threshold matrix) corresponds to position 300 (the 301st signal frame in the secondary signal sequence) to position 328 (the 301st signal frame in the secondary signal sequence), that is, the signal frames corresponding to positions 301 to 328 contain the masking threshold of the secondary key frame corresponding to position 300.
[0091] Optionally, in some embodiments, performing a second masking process on the first signal based on a second masking model, and encoding the signal after the second masking process to obtain a second coded sequence includes:
[0092] Performing block processing on each of the first signals to obtain at least one signal block, where each signal block corresponds to a time interval;
[0093] For each signal block in the time interval, determining a primary signal block and a secondary signal block;
[0094] determining the second masking model according to the spatial modality mask;
[0095] performing a second masking process on the secondary signal block based on the second masking model to obtain a target signal block corresponding to each time interval, the target signal block including the primary signal block and the masked secondary signal block;
[0096] splicing the target signal blocks corresponding to all time intervals according to the correspondence between the signal blocks and the tactile signals to obtain multiple signals to be encoded;
[0097] performing encoding processing on the multiple signals to be encoded to obtain the second encoding sequence;
[0098] The spatial modality mask is determined based on the relative positions of the primary signal block and the secondary signal block.
[0099] In the embodiment of the present application, each tactile signal corresponds to a first signal, and the specific block length can be set according to actual needs. The length of the block will not directly affect the compression effect of the tactile signal, but the length of the block will affect the second masking process, thereby indirectly affecting the compression effect. Therefore, the block length can be understood as a hyperparameter and can be set according to actual conditions such as the processing performance and compression effect requirements of the tactile processing device. For example, in some embodiments, the block length can be 32, 64, 128 or 512, etc. It should be noted that, under the premise of meeting the compression fidelity and device processing capacity requirements, the length can be selected as a larger value as possible to improve the compression rate of the tactile signal.
[0100] Optionally, when performing block processing to obtain at least two signal blocks, each signal in each signal block is a partial signal of one first signal. For example, assuming that the first signal includes 1024 frames of signal and the length of the block is 512, the block processing includes two signal blocks, where the first signal block includes the 1st frame signal to the 512th frame signal, and the second signal block includes the 513th frame signal to the 1024th frame signal.
[0101] It should be understood that the first signals of different paths have the same time interval when they are processed in blocks, that is, a signal block of each first signal is included in a certain time interval. Optionally, in an embodiment of the present application, the main signal block in each time interval can be determined according to an agreed algorithm, and the number of main signal blocks corresponding to a time interval can be one or more, which is not further limited here. Among them, the main signal block should be a signal with a larger intensity index such as amplitude in the current time interval or a signal to which the human body is more sensitive. Due to the existence of the main signal in the main signal block and the retention of human tactile perception, the main signal in the main signal block produces a spatial masking effect on the secondary signals in other relatively weak secondary signal blocks at adjacent positions in the surrounding space within a certain period of time. The spatial masking effect makes it difficult for the human body to tactilely perceive these masked secondary signals. The existence of these secondary signals has little significance for reproducing the tactile signals that the human body can perceive, and they can be called redundant tactile information. Removing redundant tactile information has little effect on the fidelity of the signal, but can significantly improve the compression performance by removing a large amount of redundant information.
[0102] Optionally, in the embodiment of the present application, the signals in the primary signal block may be referred to as primary signals, and the signals in the secondary signal block may be referred to as secondary signals.
[0103] Optionally, the above-mentioned agreed algorithm can be configured according to actual needs. Some possible solutions are described below:
[0104] 1. When the signal strengths are roughly the same, determine the primary signal block based on whether the tactile signal is located at a tactile sensitive point. The input signal corresponding to the tactile signal at the tactile sensitive point (i.e., the signal block of the first signal) is used as the primary signal block. Tactile sensitive points can be determined through subjective testing or defined based on specific equipment or locations.
[0105] 2. When signal strength has a large interpolation value, primary and secondary signal blocks can be defined based on signal strength. For all input signals (i.e., the signal block of the first signal), the current multi-channel input block signals are integrated based on factors such as amplitude and power, and the integration results are sorted in descending order. Based on the compression requirements, several signal blocks are selected to define the primary signal blocks.
[0106] Alternatively, subjective testing typically makes it difficult to test the masking effect of the main signal block at all frequencies, so only the main signal blocks at a few control frequency values are selected for spatial masking effect testing. Therefore, when the spatiotemporal joint masking effect model is obtained through subjective testing, the second masking threshold coefficient for the masking effect of the main signal block at any frequency needs to be obtained through an interpolation function.
[0107] It should be noted that in an embodiment of the present application, the second masking processing process can be executed for one time interval each time (the second masking processing process includes: first determining the main signal block and the secondary signal block, then determining the second masking model, and finally performing the second masking processing), and then the target signal block corresponding to each time interval is obtained by cyclically executing the above-mentioned second masking processing process.
[0108] Optionally, in some embodiments, one primary signal block includes K primary signals, where K is a positive integer, and performing the second masking process on the secondary signal block based on the second masking model to obtain a target signal block corresponding to each time interval includes:
[0109] Inputting the characteristic frequency of the main signal block into the second masking model to obtain a second masking threshold coefficient;
[0110] multiplying the amplitude of the main signal block by the second masking threshold coefficient to obtain a second masking threshold matrix;
[0111] Performing assignment processing on the second masking threshold matrix based on the K main signals to obtain a third masking threshold matrix;
[0112] performing a second masking process on the secondary signal block based on the third masking threshold matrix to obtain the target signal block;
[0113] In which, the assignment processing satisfies: when the K main signals include at least one unprocessed main signal, the assignment processing is performed; when the assignment processing is performed for the Pth time, the masking thresholds of the consecutive n second positions located after the first position in the second masking threshold matrix are assigned as the masking thresholds of the first position, the first position is adjacent to the n second positions, the first position is the position corresponding to the main signal with the largest amplitude among the unprocessed main signals when the assignment processing is performed for the previous P-1 times, and the main signals corresponding to the first position and the second position are the main signals processed when the assignment processing is performed for the Pth time, and n and P are both positive integers.
[0114] In the embodiment of the present application, each main signal block corresponds to a second masking threshold matrix. When there are multiple main signal blocks, the same processing is performed on each main signal block, which will not be described in detail here. Take a main signal block as an example for explanation: when performing the first assignment processing, the K main signals can be sorted first to obtain the main signal with the largest amplitude among the K main signals, and the main signal with the largest amplitude among the K main signals can be determined. The first position corresponding to the main signal with the largest amplitude in the second masking threshold matrix is then determined. The masking threshold amplitudes of the consecutive n second positions after the first position in the second masking threshold matrix are then used as the masking thresholds of the first position. The main signal corresponding to the first position and the main signals corresponding to the consecutive n second positions are then marked as processed main signals. During the second assignment process, the Q main signals (i.e., the unprocessed main signals among the K main signals) can be sorted first to obtain the main signal with the largest amplitude among the Q main signals. The first position corresponding to the main signal with the largest amplitude among the Q main signals in the second masking threshold matrix is determined. The masking threshold amplitudes of the n consecutive second positions after the first position in the second masking threshold matrix are then used as the masking thresholds of the first position. The main signal corresponding to the first position and the main signals corresponding to the n consecutive second positions are then marked as processed main signals. This cycle is repeated until all main signals are processed.
[0115] Optionally, the unprocessed main signal may be understood as a main signal among the K main signals excluding the main signal corresponding to the first position and the main signal corresponding to the second position.
[0116] For example, taking a block length of 1024 and n=128 as an example, assuming that the position corresponding to the main signal with the largest amplitude is determined to be 300 during the first assignment process, positions 301 to 428 in the second masking threshold matrix can be assigned values based on the masking threshold of position 300. During the second assignment process, the main signal with the largest amplitude is found among the main signals corresponding to all positions other than positions 300 to 428, and then the corresponding positions in the second masking threshold matrix are assigned values. For example, assuming that the position corresponding to the main signal with the largest amplitude is determined to be 200 during the second assignment process, positions 201 to 328 in the second masking threshold matrix can be assigned values based on the masking threshold of position 200.
[0117] It should be noted that, in some embodiments, positions corresponding to the processed primary signal may be excluded during the assignment process. For example, in the above embodiment, during the second assignment process, positions 201 to 299 in the second masking threshold matrix may be assigned values based on the masking threshold of position 200. It should be understood that the masking threshold of position 300 during the first assignment process is larger than the masking threshold of position 200 during the second assignment process (because the original primary signal corresponding to position 300 is larger than the original primary signal corresponding to position 200, and multiplying by the same threshold coefficient still results in the masking threshold of position 300 being larger than the masking threshold of position 200). Therefore, the values assigned to positions 300 to 328 during the second assignment process are "overwritten" by the larger values assigned during the first assignment process.
[0118] Optionally, in some embodiments, the second masking process includes at least one of the following:
[0119] When the amplitude of the first signal in the Lth secondary signal block is 0, the amplitude of the first signal is kept unchanged, and a first flag is added to the metadata, where the first flag is used to indicate that masking restoration does not need to be performed on the first signal;
[0120] If the amplitude of the second signal in the Lth secondary signal block is not 0, the amplitude of the second signal is set to 0, and a second flag is added to the metadata, where the second flag is used to indicate that masking restoration needs to be performed on the second signal;
[0121] Wherein, L is a positive integer.
[0122] It should be noted that, at the decoding end, the second signal that needs to be restored can be determined based on the second flag (the amplitude of the second signal obtained by the decoding end is 0), and the amplitude of the second signal is replaced with the M-th main signal, thereby obtaining the second signal after masking and restoration. For example, the amplitude of a certain secondary signal in the Lth secondary signal block obtained by the decoding end is 0, and based on the second flag, it is determined that the secondary signal needs to be masked and restored. Assuming that the second masking threshold coefficient corresponding to the secondary signal is 0.5 and the corresponding proportional coefficient is 0.8, then at the decoding end, the secondary signal in the Lth secondary signal block can be replaced with a main signal waveform with an amplitude of 0.5*0.8=0.4 times the main signal amplitude.
[0123] Optionally, the above-mentioned rule for determining the proportional coefficient may include but is not limited to any of the following:
[0124] 1. Use the same scaling factor for all secondary signal blocks, determined by the ratio between the average amplitude of the masked secondary signal and its corresponding secondary average amplitude of the primary signal;
[0125] 2. A different proportional coefficient is used for each signal block, which is determined by the ratio between the average amplitude of the masked secondary signal of each signal block and the average amplitude of its corresponding primary signal block.
[0126] Optionally, after obtaining the high-frequency block signals after each channel is masked (i.e., the target signal blocks mentioned above), the signals can be combined to obtain new multi-channel high-frequency tactile signals (i.e., the multi-channel signals obtained after the above splicing). At this time, the multi-channel high-frequency tactile signals have been processed for redundancy based on the spatial masking effect and the principle of temporal retention of the masking effect. Compared with the first signal, this signal reduces a large number of tactile signals that are not perceived or difficult to be perceived by the human body due to the influence of the spatial masking effect, and basically ensures that the human body has a difference in tactile perception of the processed signal.
[0127] Optionally, in some embodiments, the method further comprises:
[0128] Performing a Fast Fourier Transform (FFT) operation on the main signal block to obtain a frequency spectrum of the main signal block;
[0129] A frequency component with the largest amplitude in the frequency spectrum of the main signal block is determined as a characteristic frequency of the main signal block.
[0130] Optionally, in some embodiments, the method further comprises:
[0131] Send metadata to the decoder, where the metadata includes at least one of the following:
[0132] a position number of the main signal block and a spatial modality mask corresponding to the main signal block;
[0133] a model identifier of a second masking model used to perform a second masking process on the first signal;
[0134] A flag indicating whether the signal with an amplitude of 0 in the secondary signal block needs to be masked and restored;
[0135] The proportional coefficient of the signal in the secondary signal block that needs to be masked and restored.
[0136] In the embodiment of the present application, the metadata is data describing the data, mainly information describing the data attributes, and is indispensable in signal encoding and decoding. Metadata is also required to be transmitted in the encoding and decoding of vibrotactile signals so that the decoding end can restore the original vibrotactile signals.
[0137] Optionally, in some embodiments, the metadata may further include: information about the body region to which each signal belongs, information about its position within the body region, and information about the relative positions of each signal. If the tactile signal is a vibrotactile signal, the metadata may further include other information such as the sampling rate of the vibrotactile signal.
[0138] In order to better understand the present application, the following describes the encoding process in the present application with reference to FIG2. As shown in FIG2, the encoding process for each tactile signal may include the following steps:
[0139] 21. Perform low-pass filtering on the tactile signal to obtain a second signal (low-frequency signal component) and a third signal (high-frequency signal component);
[0140] 22. Perform key frame extraction on the second signal to obtain a key frame sequence, perform key frame masking (i.e., a first masking process) on the key frame sequence to obtain a target key frame sequence, and then perform lossless binary encoding on the target key frame sequence to obtain a first coded sequence;
[0141] 23. Reconstructing the low-frequency signal based on the key frame sequence, calculating the residual between the reconstructed low-frequency signal and the original second signal to obtain a target residual signal, and then superimposing the target residual signal onto the third signal to obtain the first signal (the high-frequency signal with the low-frequency residual);
[0142] 24. Perform block processing on the first signal, determine a main signal block based on an integrator, then determine a characteristic frequency of the main signal block, and determine a spatiotemporal joint masking effect model based on the characteristic frequency.
[0143] 25. Use the spatiotemporal joint masking effect model to perform spatiotemporal joint masking on the secondary signal block of the first signal, and then perform wavelet transform and binary compression coding.
[0144] 26. Perform signal combination on the coding sequences after compression coding of multiple signals to obtain the final coding sequence.
[0145] 3 , the present application further provides a tactile signal decoding method, which is applied to a decoding end. As shown in FIG3 , the tactile signal decoding method includes:
[0146] Step 301: Decode the second coding sequence to obtain multiple fourth signals;
[0147] Step 302: performing block processing on each channel of the fourth signal to obtain at least one signal block, where each signal block corresponds to a time interval;
[0148] Step 303: determine the primary signal block and the secondary signal block corresponding to each time interval;
[0149] Step 304: For each of the time intervals, perform masking and restoration on the secondary signal block based on the primary signal block to obtain a fifth signal, wherein the fifth signal includes the primary signal block and the masked and restored secondary signal block.
[0150] Step 305: obtaining a multi-channel decoded signal based on the fifth signal;
[0151] The second coding sequence is obtained based on the first signal corresponding to each tactile signal in the multiple tactile signals, the first signal is obtained based on the target residual signal and the third signal, the target residual signal is obtained based on the second signal, the second signal and the third signal are obtained based on low-pass filtering of the tactile signal, and the frequency of the second signal is less than the frequency of the third signal.
[0152] Optionally, in some embodiments, the method further comprises:
[0153] decoding a first coded sequence to obtain a key frame sequence, where the first coded sequence is obtained based on the second signal;
[0154] performing interpolation processing on the key frame sequence to obtain a sixth signal;
[0155] Wherein, obtaining a multi-channel decoded signal based on the fifth signal includes: performing superposition processing on the fifth signal and the sixth signal to obtain a multi-channel decoded signal.
[0156] In the embodiment of the present application, the fourth signal may be understood as a high-frequency signal component with a low-frequency residual. Specifically, decoding the second coding sequence includes performing binary decoding and inverse wavelet transform on the second coding sequence to obtain the fourth signal.
[0157] Optionally, the superposition process may include performing an addition operation.
[0158] Optionally, in some embodiments, for each of the time intervals, the secondary signal block is masked and restored based on the primary signal block to obtain a fifth signal;
[0159] For each of the time intervals, the secondary signal block is masked and restored according to the second masking threshold coefficient corresponding to the secondary signal block, the proportional coefficient corresponding to the secondary signal block, and the amplitude of the primary signal block to obtain the fifth signal.
[0160] Optionally, in some embodiments, the shielding restoration includes:
[0161] The secondary signal that needs to be masked and restored in the secondary signal block is replaced with M times the target main signal, where the target main signal is the main signal in the main signal block used to mask the secondary signal, wherein M is determined based on the second masking threshold coefficient corresponding to the second signal and the proportional coefficient corresponding to the second signal.
[0162] In the embodiment of the present application, the value range of the above M is 0 to 1.
[0163] Optionally, in some embodiments, the method further comprises:
[0164] Receive metadata, the metadata including at least one of the following:
[0165] a position number of the main signal block and a spatial modality mask corresponding to the main signal block;
[0166] a model identifier of a second masking model used to perform a second masking process on the first signal;
[0167] A flag indicating whether the signal with an amplitude of 0 in the secondary signal block needs to be masked and restored;
[0168] The proportional coefficient of the signal in the secondary signal block that needs to be masked and restored.
[0169] In an embodiment of the present application, whether recovery is required (i.e., whether masking restoration is required) can be determined based on a flag bit in the metadata. When recovery is required, the corresponding secondary signal block can be masked and restored based on the corresponding second masking threshold coefficient, the corresponding proportional coefficient, and the amplitude of the main signal block.
[0170] Optionally, in some embodiments, the metadata may further include: information about the body region to which each signal belongs, information about its position within the body region, and information about the relative positions of each signal. If the tactile signal is a vibrotactile signal, the metadata may further include other information such as the sampling rate of the vibrotactile signal.
[0171] It should be noted that after obtaining the above-mentioned multi-channel decoded signals, the multi-channel decoded signals are matched to the body area and the position within the body area according to the position information in the metadata. The primary signal and the secondary signal should also be matched to the corresponding position. The primary signal is very critical for reproducing the vibrotactile signal, and the reproduction of the primary signal should be ensured first. Specifically, the matching process may include the following:
[0172] 1. Match the body area to which each signal belongs.
[0173] 2. Match the positions of several signals belonging to the same body region within the body region.
[0174] 3. Prioritize each signal belonging to the main signal. Signals with priority tags are processed first in subsequent steps to ensure the quality of vibrotactile signal reproduction.
[0175] After obtaining a matching result, the system transmits each signal to the vibrotactile reproduction device at the corresponding location on the human body. Finally, each vibrotactile reproduction device receives the signal corresponding to its location from the decoder. After verifying that the signal matches its location, the device completes the vibrotactile signal reproduction.
[0176] In order to better understand the present application, the decoding process in the present application is described below with reference to FIG4 . As shown in FIG4 , the decoding process for each tactile signal may include the following steps:
[0177] 41. Divide the signal into blocks to obtain a first coding sequence and a second coding sequence corresponding to each tactile signal;
[0178] 42. Perform lossless binary decoding on the first coded sequence to obtain a key frame sequence, and perform interpolation processing on the key frame sequence to obtain a sixth signal (i.e., a low-frequency signal component);
[0179] 43. Perform binary compression decoding, wavelet transform, and masked signal restoration processing on the second coded sequence to obtain a fifth signal;
[0180] 44. Add the fourth signal and the fifth signal to obtain a decoded signal;
[0181] 45. Combine multiple decoded signals to obtain the final decoded signal.
[0182] The tactile signal encoding and processing method provided in the embodiment of the present application can be executed by a tactile signal encoding and processing device. In the embodiment of the present application, the tactile signal encoding and processing device performing the tactile signal encoding and processing method is used as an example to illustrate the tactile signal encoding and processing device provided in the embodiment of the present application.
[0183] 5 , an embodiment of the present application further provides a tactile signal encoding and processing device, which is applied to an encoding end. As shown in FIG5 , the tactile signal encoding and processing device 500 includes:
[0184] an acquisition module 501, configured to acquire at least one of a key frame sequence and a first signal corresponding to each tactile signal in multiple tactile signals, wherein the key frame sequence is obtained based on the second signal, the first signal is obtained based on a target residual signal and a third signal, the target residual signal is obtained based on the second signal and the key frame sequence, the second signal and the third signal are obtained by low-pass filtering the tactile signal, and a frequency of the second signal is lower than a frequency of the third signal;
[0185] The execution module 502 is configured to execute a target operation, wherein the target operation includes at least one of the following:
[0186] Performing a first masking process on the key frame sequence based on a first masking model, and encoding the signal after the first masking process to obtain a first coded sequence;
[0187] A second masking process is performed on the first signal based on a second masking model, and the signal after the second masking process is encoded to obtain a second coding sequence.
[0188] Optionally, the execution module 502 is specifically configured to perform the following operations:
[0189] Determining a primary key frame sequence and a secondary key frame sequence in the key frame sequences corresponding to the multiple tactile signals;
[0190] determining the first occlusion model according to spatial position information corresponding to the primary key frame sequence and spatial position information corresponding to the secondary key frame sequence;
[0191] performing a first masking process on the secondary key frame sequence according to the first masking model to obtain a target key frame sequence, wherein the target key frame sequence includes the primary key frame sequence and the masked secondary key frame sequence;
[0192] The target key frame sequence is encoded to obtain a first encoded sequence.
[0193] Optionally, the execution module 502 is specifically configured to perform the following operations:
[0194] Inputting the frequency of the main key frame sequence into the first masking model to obtain a first masking threshold coefficient;
[0195] Multiplying the amplitude of the reconstructed signal obtained by reconstructing the main key frame sequence by the first masking threshold coefficient to obtain a first masking threshold matrix;
[0196] A first masking process is performed on the secondary key frame sequence based on the first masking threshold matrix to obtain a target key frame sequence.
[0197] Optionally, the main key frame sequence satisfies at least one of the following:
[0198] The main key frame sequence is a key frame sequence corresponding to the tactile signal of the tactile sensitive point;
[0199] The main key frame sequence is a key frame sequence corresponding to a tactile signal having a signal strength greater than or equal to a preset strength threshold.
[0200] Optionally, the execution module 502 is specifically configured to perform the following operations:
[0201] Performing block processing on each of the first signals to obtain at least one signal block, where each signal block corresponds to a time interval;
[0202] For each signal block in the time interval, determining a primary signal block and a secondary signal block;
[0203] determining the second masking model according to the spatial modality mask;
[0204] performing a second masking process on the secondary signal block based on the second masking model to obtain a target signal block corresponding to each time interval, the target signal block including the primary signal block and the masked secondary signal block;
[0205] splicing the target signal blocks corresponding to all time intervals according to the correspondence between the signal blocks and the tactile signals to obtain multiple signals to be encoded;
[0206] performing encoding processing on the multiple signals to be encoded to obtain the second encoding sequence;
[0207] The spatial modality mask is determined based on the relative positions of the primary signal block and the secondary signal block.
[0208] Optionally, one main signal block includes K main signals, where K is a positive integer. The execution module 502 is specifically configured to perform the following operations:
[0209] Inputting the characteristic frequency of the main signal block into the second masking model to obtain a second masking threshold coefficient;
[0210] multiplying the amplitude of the main signal block by the second masking threshold coefficient to obtain a second masking threshold matrix;
[0211] Performing assignment processing on the second masking threshold matrix based on the K main signals to obtain a third masking threshold matrix;
[0212] performing a second masking process on the secondary signal block based on the third masking threshold matrix to obtain the target signal block;
[0213] In which, the assignment processing satisfies: when the K main signals include at least one unprocessed main signal, the assignment processing is performed; when the assignment processing is performed for the Pth time, the masking thresholds of the consecutive n second positions located after the first position in the second masking threshold matrix are assigned as the masking thresholds of the first position, the first position is adjacent to the n second positions, the first position is the position corresponding to the main signal with the largest amplitude among the unprocessed main signals when the assignment processing is performed for the previous P-1 times, and the main signals corresponding to the first position and the second position are the main signals processed when the assignment processing is performed for the Pth time, and n and P are both positive integers.
[0214] Optionally, the second masking process includes at least one of the following:
[0215] When the amplitude of the first signal in the Lth secondary signal block is 0, the amplitude of the first signal is kept unchanged, and a first flag is added to the metadata, where the first flag is used to indicate that masking restoration does not need to be performed on the first signal;
[0216] If the amplitude of the second signal in the Lth secondary signal block is not 0, the amplitude of the second signal is set to 0, and a second flag is added to the metadata, where the second flag is used to indicate that masking restoration needs to be performed on the second signal;
[0217] Wherein, L is a positive integer.
[0218] Optionally, the tactile signal encoding and processing device 500 further includes:
[0219] a transform module, configured to perform a fast Fourier transform (FFT) operation on the main signal block to obtain a frequency spectrum of the main signal block;
[0220] The second determining module is further configured to determine a frequency component with the largest amplitude in the frequency spectrum of the main signal block as a characteristic frequency of the main signal block.
[0221] Optionally, the tactile signal encoding and processing device 500 further includes:
[0222] The sending module is configured to send metadata to the decoding end, where the metadata includes at least one of the following:
[0223] a position number of the main signal block and a spatial modality mask corresponding to the main signal block;
[0224] a model identifier of a second masking model used to perform a second masking process on the first signal;
[0225] A flag indicating whether the signal with an amplitude of 0 in the secondary signal block needs to be masked and restored;
[0226] The proportional coefficient of the signal in the secondary signal block that needs to be masked and restored.
[0227] The tactile signal decoding and processing method provided in the embodiment of the present application can be executed by a tactile signal decoding and processing device. In the embodiment of the present application, the tactile signal decoding and processing device performing the tactile signal decoding and processing method is taken as an example to illustrate the tactile signal decoding and processing device provided in the embodiment of the present application.
[0228] 6 , an embodiment of the present application further provides a tactile signal decoding and processing device, which is applied to a decoding end. As shown in FIG6 , the tactile signal decoding and processing device 600 includes:
[0229] A decoding module 601 is configured to decode the second coding sequence to obtain multiple fourth signals;
[0230] Block processing 602, configured to perform block processing on each of the fourth signals to obtain at least one signal block, where each signal block corresponds to a time interval;
[0231] A determination module 603 is configured to determine a primary signal block and a secondary signal block corresponding to each time interval;
[0232] a restoration module 604 configured to perform masking restoration on the secondary signal block based on the primary signal block for each of the time intervals to obtain a fifth signal, wherein the fifth signal includes the primary signal block and the masked and restored secondary signal block;
[0233] A processing module 605 is configured to obtain a multi-channel decoded signal based on the fifth signal;
[0234] The second coding sequence is obtained based on the first signal corresponding to each tactile signal in the multiple tactile signals, the first signal is obtained based on the target residual signal and the third signal, the target residual signal is obtained based on the second signal, the second signal and the third signal are obtained based on low-pass filtering of the tactile signal, and the frequency of the second signal is less than the frequency of the third signal.
[0235] Optionally, the restoration module 604 is specifically used to: for each of the time intervals, perform masking restoration on the secondary signal block according to the second masking threshold coefficient corresponding to the secondary signal block, the proportional coefficient corresponding to the secondary signal block and the amplitude of the main signal block to obtain the fifth signal.
[0236] Optionally, the mask restoration includes:
[0237] The secondary signal that needs to be masked and restored in the secondary signal block is replaced with M times the target main signal, where the target main signal is the main signal in the main signal block used to mask the secondary signal, wherein M is determined based on the second masking threshold coefficient corresponding to the second signal and the proportional coefficient corresponding to the second signal.
[0238] Optionally, the tactile signal decoding and processing device 600 further includes:
[0239] The receiving module 601 is configured to receive metadata, where the metadata includes at least one of the following:
[0240] a position number of the main signal block and a spatial modality mask corresponding to the main signal block;
[0241] a model identifier of a second masking model used to perform a second masking process on the first signal;
[0242] A flag indicating whether the signal with an amplitude of 0 in the secondary signal block needs to be masked and restored;
[0243] The proportional coefficient of the signal in the secondary signal block that needs to be masked and restored.
[0244] Optionally, the decoding module 601 is further configured to decode a first coding sequence to obtain a key frame sequence, where the first coding sequence is obtained based on the second signal; and perform interpolation processing on the key frame sequence to obtain a sixth signal.
[0245] The processing module 605 is specifically configured to perform superposition processing on the fifth signal and the sixth signal to obtain a multi-channel decoded signal.
[0246] The tactile signal encoding and processing device or the tactile signal decoding and processing device in the embodiments of the present application can be an electronic device, such as an electronic device with an operating system, or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other device other than a terminal. For example, the terminal can include but is not limited to the types of terminals 11 listed above, and other devices can be servers, network attached storage (NAS), etc., which are not specifically limited in the embodiments of the present application.
[0247] The tactile signal encoding and processing device and the tactile signal decoding and processing device provided in the embodiments of the present application can implement the various processes implemented in the method embodiments of Figures 1 to 4 and achieve the same technical effects. To avoid repetition, they will not be described here.
[0248] As shown in Figure 7, an embodiment of the present application further provides a communication device 700, including a processor 701 and a memory 702, wherein the memory 702 stores programs or instructions that can be run on the processor 701. For example, when the communication device 700 is an encoding end device, the program or instruction is executed by the processor 701 to implement the various steps of the above-mentioned tactile signal encoding and processing method embodiment, and can achieve the same technical effect. When the communication device 700 is a decoding end device, the program or instruction is executed by the processor 701 to implement the various steps of the above-mentioned tactile signal decoding and processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here. Optionally, the above-mentioned memory can further store a spatiotemporal joint shielding effect model.
[0249] The embodiment of the present application also provides an electronic device, including a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the steps in the method embodiment shown in Figures 1 to 4. This electronic device embodiment corresponds to the above-mentioned method embodiment, and each implementation process and implementation method of the above-mentioned method embodiment can be applied to this electronic device embodiment and can achieve the same technical effect. Specifically, Figure 8 is a schematic diagram of the hardware structure of an electronic device that implements an embodiment of the present application.
[0250] The electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809 and at least some of the components of the processor 810.
[0251] Those skilled in the art will appreciate that the electronic device 800 may further include a power source (e.g., a battery) to power various components. The power source may be logically connected to the processor 810 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The electronic device structure shown in FIG8 does not limit the electronic device. The electronic device may include more or fewer components than shown, or may combine certain components or arrange the components differently, which will not be described in detail here.
[0252] It should be understood that in an embodiment of the present application, the input unit 804 may include a tactile signal acquisition sensor and a sensor host computer for collecting, processing, and converting sensor information. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 807 includes a touch panel 8071 and at least one of other input devices 8072. The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts: a touch detection device and a touch controller. Other input devices 8072 may include but are not limited to a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0253] In the embodiment of the present application, after receiving downlink data from a network-side device, the radio frequency unit 801 may transmit the data to the processor 810 for processing. Furthermore, the radio frequency unit 801 may send uplink data to the network-side device. Typically, the radio frequency unit 801 includes, but is not limited to, an antenna, an amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, and the like.
[0254] The memory 809 can be used to store software programs or instructions and various data (for example, data such as a spatiotemporal joint masking effect model and tactile signals). The memory 809 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 809 may include a volatile memory or a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 809 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0255] Processor 810 may include one or more processing units. Optionally, processor 810 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 810.
[0256] Wherein, when the electronic device is an encoding end, the processor 810 is used to obtain at least one of a key frame sequence and a first signal corresponding to each tactile signal in multiple tactile signals, wherein the key frame sequence is obtained based on the second signal, the first signal is obtained based on a target residual signal and a third signal, the target residual signal is obtained based on the second signal and the key frame sequence, the second signal and the third signal are obtained based on low-pass filtering of the tactile signal, and the frequency of the second signal is less than the frequency of the third signal; perform a target operation; wherein the target operation includes at least one of the following: performing a first masking process on the key frame sequence based on a first masking model, and encoding the signal after the first masking process to obtain a first coding sequence; performing a second masking process on the first signal based on a second masking model, and encoding the signal after the second masking process to obtain a second coding sequence;
[0257] When the electronic device is a decoding end, the processor 810 is used to decode the second coding sequence to obtain multiple fourth signals; perform block processing on each of the fourth signals to obtain at least one signal block, each signal block corresponding to a time interval; determine the main signal block and the secondary signal block corresponding to each time interval; for each of the time intervals, mask and restore the secondary signal block based on the main signal block to obtain a fifth signal, the fifth signal including the main signal block and the masked and restored secondary signal block; obtain multiple decoded signals based on the fifth signal; wherein, the second coding sequence is obtained based on the first signal corresponding to each tactile signal in the multiple tactile signals, the first signal is obtained based on the target residual signal and the third signal, the target residual signal is obtained based on the second signal, the second signal and the third signal are obtained based on low-pass filtering of the tactile signal, and the frequency of the second signal is less than the frequency of the third signal.
[0258] It can be understood that the implementation process of each implementation method mentioned in this embodiment can refer to the relevant description of the above-mentioned method embodiment and achieve the same or corresponding technical effects. To avoid repetition, it will not be repeated here.
[0259] The present application also provides a readable storage medium having a program or instruction stored thereon. When executed by a processor, the program or instruction implements the various processes of the aforementioned tactile signal encoding and processing method embodiment, or the various processes of the aforementioned tactile signal decoding and processing method embodiment, and achieves the same technical effect. To avoid repetition, the description is omitted here. Optionally, the readable storage medium may further store a spatiotemporal joint masking effect model.
[0260] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk. In some examples, the readable storage medium may be a non-transitory readable storage medium.
[0261] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned tactile signal encoding and processing method embodiment, or to implement the various processes of the above-mentioned tactile signal decoding and processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0262] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0263] An embodiment of the present application further provides a computer program / program product, which is stored in a storage medium. The computer program / program product is executed by at least one processor to implement the various processes of the above-mentioned tactile signal encoding and processing method embodiment, or to implement the various processes of the above-mentioned tactile signal decoding and processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0264] An embodiment of the present application also provides a tactile signal encoding and decoding system, including: an encoding end device and a decoding end device, the terminal can be used to execute the steps of the tactile signal encoding processing method as described above, and the network side device can be used to execute the steps of the tactile signal decoding processing method as described above.
[0265] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0266] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of a computer software product plus a necessary general-purpose hardware platform, or of course, by hardware. The computer software product is stored in a storage medium (such as ROM, RAM, magnetic disk, optical disk, etc.) and includes a number of instructions for enabling a terminal or network-side device to execute the methods described in each embodiment of the present application.
[0267] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms of implementation methods without departing from the purpose of this application and the scope of protection of the claims. These implementation methods are all within the protection of this application.
Claims
1. A tactile signal encoding and processing method, applied to an encoding end, comprising: Acquire at least one of a key frame sequence and a first signal corresponding to each tactile signal in multiple tactile signals, wherein the key frame sequence is obtained based on the second signal, the first signal is obtained based on a target residual signal and a third signal, the target residual signal is obtained based on the second signal and the key frame sequence, the second signal and the third signal are obtained based on low-pass filtering the tactile signal, and a frequency of the second signal is less than a frequency of the third signal; Execute a target operation; wherein the target operation includes at least one of the following: Performing a first masking process on the key frame sequence based on a first masking model, and encoding the signal after the first masking process to obtain a first coded sequence; The first signal is subjected to a second masking process based on a second masking model, and the signal subjected to the second masking process is encoded to obtain a second encoding sequence.
2. The method according to claim 1, wherein: The performing a first masking process on the key frame sequence based on the first masking model to obtain a first coding sequence comprises: Determining a primary key frame sequence and a secondary key frame sequence in the key frame sequences corresponding to the multiple tactile signals; Determine the first occlusion model according to the spatial position information corresponding to the primary key frame sequence and the spatial position information corresponding to the secondary key frame sequence; Performing a first masking process on the secondary key frame sequence according to the first masking model to obtain a target key frame sequence, wherein the target key frame sequence includes the primary key frame sequence and the masked secondary key frame sequence; The target key frame sequence is encoded to obtain a first encoded sequence.
3. The method according to claim 2, wherein: The performing a first masking process on the secondary key frame sequence according to the first masking model to obtain a target key frame sequence comprises: Inputting the frequency of the main key frame sequence into the first masking model to obtain a first masking threshold coefficient; Multiplying the amplitude of the main key frame sequence by a first masking threshold coefficient to obtain a first masking threshold matrix; A first masking process is performed on the secondary key frame sequence based on the first masking threshold matrix to obtain a target key frame sequence.
4. The method according to claim 2, wherein: The main key frame sequence satisfies at least one of the following: The main key frame sequence is a key frame sequence corresponding to the tactile signal of the tactile sensitive point; The main key frame sequence is a key frame sequence corresponding to a tactile signal having a signal strength greater than or equal to a preset strength threshold.
5. The method according to any one of claims 1 to 4, wherein: The performing a second masking process on the first signal based on a second masking model, and encoding the signal after the second masking process to obtain a second coded sequence comprises: Perform block processing on each of the first signals to obtain at least one signal block, where each signal block corresponds to a time interval; For each signal block in the time interval, determine a primary signal block and a secondary signal block; determining the second masking model according to the spatial modal mask; Performing a second masking process on the secondary signal block based on the second masking model to obtain a target signal block corresponding to each time interval, wherein the target signal block includes the primary signal block and the masked secondary signal block; splicing the target signal blocks corresponding to all time intervals according to the correspondence between the signal blocks and the tactile signals to obtain multiple channels of signals to be encoded; Performing encoding processing on the multiple signals to be encoded to obtain the second encoding sequence; The spatial modal mask is determined based on the relative position of the primary signal block and the secondary signal block.
6. The method according to claim 5, wherein: One of the main signal blocks includes K main signals, where K is a positive integer. The performing of the second masking process on the secondary signal block based on the second masking model to obtain a target signal block corresponding to each time interval includes: Inputting the characteristic frequency of the main signal block into the second masking model to obtain a second masking threshold coefficient; Multiplying the amplitude of the main signal block by the second masking threshold coefficient to obtain a second masking threshold matrix; Performing value assignment processing on the second masking threshold matrix based on the K main signals to obtain a third masking threshold matrix; Performing a second masking process on the secondary signal block based on the third masking threshold matrix to obtain the target signal block; Among them, the assignment processing satisfies: when the K main signals include at least one unprocessed main signal, the assignment processing is performed; when the assignment processing is performed for the Pth time, the masking thresholds of the consecutive n second positions located after the first position in the second masking threshold matrix are assigned as the masking thresholds of the first position, the first position is adjacent to the n second positions, the first position is the position corresponding to the main signal with the largest amplitude among the main signals that have not been processed when the assignment processing was performed for the previous P-1 times, and the main signals corresponding to the first position and the second position are the main signals processed when the assignment processing is performed for the Pth time, and n and P are both positive integers.
7. The method according to claim 6, wherein: The second masking process includes at least one of the following: When the amplitude of the first signal in the Lth secondary signal block is 0, the amplitude of the first signal is kept unchanged, and a first flag is added to the metadata, where the first flag is used to indicate that the first signal does not need to be masked and restored; When the amplitude of the second signal in the Lth secondary signal block is not 0, the amplitude of the second signal is set to 0, and a second flag is added to the metadata, where the second flag is used to indicate that the second signal needs to be restored by masking; Wherein, L is a positive integer.
8. The method according to claim 6, further comprising: Performing a fast Fourier transform (FFT) operation on the main signal block to obtain a frequency spectrum of the main signal block; The frequency component with the largest amplitude in the frequency spectrum of the main signal block is determined as the characteristic frequency of the main signal block.
9. The method according to any one of claims 5 to 8, further comprising: Send metadata to the decoding end, where the metadata includes at least one of the following: a position number of the main signal block and a spatial modal mask corresponding to the main signal block; a model identifier of a second masking model used to perform a second masking process on the first signal; A flag indicating whether the signal with an amplitude of 0 in the secondary signal block needs to be masked and restored; The proportionality coefficient of the signal in the secondary signal block that needs to be masked and restored.
10. A tactile signal decoding processing method, applied to a decoding end, comprising: Decoding the second coding sequence to obtain multiple fourth signals; Perform block processing on each of the fourth signals to obtain at least one signal block, where each signal block corresponds to a time interval; Determine a primary signal block and a secondary signal block corresponding to each time interval; For each of the time intervals, masking and restoring the secondary signal block based on the primary signal block to obtain a fifth signal, wherein the fifth signal includes the primary signal block and the masked and restored secondary signal block; Based on the fifth signal, obtaining a multi-channel decoded signal; Among them, the second coding sequence is obtained based on the first signal corresponding to each tactile signal in the multiple tactile signals, the first signal is obtained based on the target residual signal and the third signal, the target residual signal is obtained based on the second signal, the second signal and the third signal are obtained based on low-pass filtering of the tactile signal, and the frequency of the second signal is less than the frequency of the third signal.
11. The method according to claim 10, wherein: For each of the time intervals, masking and restoring the secondary signal block based on the primary signal block to obtain the fifth signal includes: For each of the time intervals, the secondary signal block is masked and restored according to the second masking threshold coefficient corresponding to the secondary signal block, the proportional coefficient corresponding to the secondary signal block, and the amplitude of the main signal block to obtain the fifth signal.
12. The method according to claim 11, wherein: The mask restoration comprises: The secondary signal that needs to be masked and restored in the secondary signal block is replaced with M times the target main signal, where the target main signal is the main signal in the main signal block used to mask the secondary signal, wherein M is determined based on the second masking threshold coefficient corresponding to the second signal and the proportional coefficient corresponding to the second signal.
13. The method according to any one of claims 10 to 12, further comprising: Receive metadata, the metadata comprising at least one of the following: a position number of the main signal block and a spatial modal mask corresponding to the main signal block; a model identifier of a second masking model used to perform a second masking process on the first signal; A flag indicating whether the signal with an amplitude of 0 in the secondary signal block needs to be masked and restored; The proportionality coefficient of the signal in the secondary signal block that needs to be masked and restored.
14. The method according to any one of claims 10 to 13, further comprising: Decoding a first coded sequence to obtain a key frame sequence, where the first coded sequence is obtained based on the second signal; Performing interpolation processing on the key frame sequence to obtain a sixth signal; Wherein, obtaining a multi-channel decoded signal based on the fifth signal includes: performing superposition processing on the fifth signal and the sixth signal to obtain a multi-channel decoded signal.
15. A tactile signal encoding and processing device, applied to an encoding end, comprising: an acquisition module, configured to acquire at least one of a key frame sequence and a first signal corresponding to each tactile signal in multiple tactile signals, wherein the key frame sequence is obtained based on the second signal, the first signal is obtained based on a target residual signal and a third signal, the target residual signal is obtained based on the second signal and the key frame sequence, the second signal and the third signal are obtained based on low-pass filtering of the tactile signal, and a frequency of the second signal is less than a frequency of the third signal; An execution module is used to execute a target operation; wherein the target operation includes at least one of the following: Performing a first masking process on the key frame sequence based on a first masking model, and encoding the signal after the first masking process to obtain a first coded sequence; The first signal is subjected to a second masking process based on a second masking model, and the signal subjected to the second masking process is encoded to obtain a second encoding sequence.
16. A tactile signal decoding and processing device, applied to a decoding end, comprising: A decoding module, used for decoding the second coding sequence to obtain multiple fourth signals; Block processing, used for performing block processing on each of the fourth signals to obtain at least one signal block, each signal block corresponding to a time interval; A first determination module, used to determine a primary signal block and a secondary signal block corresponding to each time interval; A restoration module, configured to perform masking restoration on the secondary signal block based on the primary signal block for each of the time intervals to obtain a fifth signal, wherein the fifth signal includes the primary signal block and the masked and restored secondary signal block; A processing module, configured to obtain a multi-channel decoded signal based on the fifth signal; Among them, the second coding sequence is obtained based on the first signal corresponding to each tactile signal in the multiple tactile signals, the first signal is obtained based on the target residual signal and the third signal, the target residual signal is obtained based on the second signal, the second signal and the third signal are obtained based on low-pass filtering of the tactile signal, and the frequency of the second signal is less than the frequency of the third signal.
17. An electronic device, comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the tactile signal encoding processing method as described in any one of claims 1 to 9 are implemented, or when the program or instruction is executed by the processor, the steps of the tactile signal decoding processing method as described in any one of claims 10 to 14 are implemented.
18. A readable storage medium storing a program or instruction, wherein the program or instruction, when executed by a processor, implements the steps of the tactile signal encoding method as described in any one of claims 1 to 9, or implements the steps of the tactile signal decoding method as described in any one of claims 10 to 14.
19. A chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the steps of the tactile signal encoding and processing method as described in any one of claims 1 to 9, or to implement the steps of the tactile signal decoding and processing method as described in any one of claims 10 to 14.
20. A computer program / program product, wherein the computer program / program product is stored in a storage medium, and the computer program / program product is executed by at least one processor to implement the steps of the tactile signal encoding processing method as described in any one of claims 1 to 9, or to implement the steps of the tactile signal decoding processing method as described in any one of claims 10 to 14.
Citation Information
Patent Citations
Capacitive sensing array device and electronic equipment using same
CN105094477A
Optimization for host based touch processing
CN106030475A
Encoding / decoding apparatuses and methods for encoding / decoding vibrotactile signals
CN111757127A
Decoding device, decoding method, program, encoding device, and encoding method
CN115516770A
Video encoding and decoding method and device, electronic equipment and medium
CN115834906A
