WO2024099154A1 - Tactile signal encoding method and apparatus, tactile signal decoding method and apparatus, and device - Google Patents

Tactile signal encoding method and apparatus, tactile signal decoding method and apparatus, and device Download PDF

Info

Publication number
WO2024099154A1
WO2024099154A1 PCT/CN2023/128016 CN2023128016W WO2024099154A1 WO 2024099154 A1 WO2024099154 A1 WO 2024099154A1 CN 2023128016 W CN2023128016 W CN 2023128016W WO 2024099154 A1 WO2024099154 A1 WO 2024099154A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
frequency signal
code stream
key frame
frequency
Prior art date
Application number
PCT/CN2023/128016
Other languages
French (fr)
Chinese (zh)
Inventor
吕卓逸
蔺虎虎
何大众
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2024099154A1 publication Critical patent/WO2024099154A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/184Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being bits, e.g. of the compressed video stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/63Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding using sub-band based transform, e.g. wavelets

Definitions

  • the present application belongs to the field of coding and decoding technology, and specifically relates to a tactile signal encoding method, a tactile signal decoding method, a device and an apparatus.
  • Tactile information is mainly divided into two categories: tactile information based on muscle movement perception, also known as kinesthetic information; and tactile information based on skin texture perception, also known as texture information.
  • tactile signals are generated based on tactile information, and the hardware device transmits the tactile signals to the user, so that the user feels vibration or pulse, thereby increasing the user's tactile perception.
  • tactile signal compression can be achieved through tactile signal encoding.
  • the target object is divided into multiple blocks, and the single-point tactile signal in each block is encoded one by one to achieve tactile signal encoding, which results in low encoding efficiency of tactile signal encoding.
  • the embodiments of the present application provide a tactile signal encoding method, a tactile signal decoding method, an apparatus and a device, which can solve the problem of low encoding efficiency of tactile signal encoding.
  • a tactile signal encoding method comprising:
  • the encoder obtains N main tactile signals corresponding to the block group of the target object and a secondary tactile signal associated with each main tactile signal; the N main tactile signals and the secondary tactile signal associated with each main tactile signal are determined based on a plurality of tactile signals corresponding to the block group, where N is a positive integer greater than or equal to 1;
  • the encoding end processes the N main tactile signals and the secondary tactile signals associated with each main tactile signal.
  • the first tactile signal is subjected to frequency band decomposition to obtain a first frequency signal and a second frequency signal corresponding to each main tactile signal, and a third frequency signal and a fourth frequency signal corresponding to each secondary tactile signal; the frequency of the first frequency signal is greater than a first threshold, the frequency of the second frequency signal is less than or equal to the first threshold, the frequency of the third frequency signal is greater than the second threshold, and the frequency of the fourth frequency signal is less than or equal to the second threshold;
  • the encoding end encodes the first frequency signal, the second frequency signal, the third frequency signal, and the fourth frequency signal to generate a target code stream.
  • a tactile signal decoding method comprising:
  • the decoding end obtains the target bitstream
  • the decoding end determines, based on the target bitstream, a first frequency signal, a second frequency signal, a third frequency signal, and a fourth frequency signal; the frequency of the first frequency signal is greater than a first threshold, the frequency of the second frequency signal is less than or equal to the first threshold, the frequency of the third frequency signal is greater than a second threshold, and the frequency of the fourth frequency signal is less than or equal to the second threshold;
  • the decoding end determines a main tactile signal based on the first frequency signal and the second frequency signal, and determines a secondary tactile signal associated with the main tactile signal based on the third frequency signal and the fourth frequency signal.
  • a tactile signal encoding device which is applied to an encoding end, and the device includes:
  • an acquisition module configured to acquire N main tactile signals corresponding to a block group of a target object and a secondary tactile signal associated with each main tactile signal; the N main tactile signals and the secondary tactile signal associated with each main tactile signal are determined based on a plurality of tactile signals corresponding to the block group, where N is a positive integer greater than or equal to 1;
  • a processing module configured to perform frequency band decomposition on the N main tactile signals and the secondary tactile signals associated with each main tactile signal, to obtain a first frequency signal and a second frequency signal corresponding to each main tactile signal, and a third frequency signal and a fourth frequency signal corresponding to each secondary tactile signal; the frequency of the first frequency signal is greater than a first threshold, the frequency of the second frequency signal is less than or equal to the first threshold, the frequency of the third frequency signal is greater than a second threshold, and the frequency of the fourth frequency signal is less than or equal to the second threshold;
  • an encoding module configured to encode the first frequency signal, the second frequency signal, the third frequency signal and the fourth frequency signal to generate a target code stream.
  • a tactile signal decoding device which is applied to a decoding end, and the device includes:
  • An acquisition module is used to acquire a target bitstream
  • a first determination module is used to determine a first frequency signal, a second frequency signal, a third frequency signal and a fourth frequency signal based on the target code stream; the frequency of the first frequency signal is greater than a first threshold, the frequency of the second frequency signal is less than or equal to the first threshold, the frequency of the third frequency signal is greater than a second threshold, and the frequency of the fourth frequency signal is less than or equal to the second threshold;
  • the second determination module is configured to determine a primary tactile signal based on the first frequency signal and the second frequency signal, and to determine a secondary tactile signal associated with the primary tactile signal based on the third frequency signal and the fourth frequency signal.
  • a terminal which includes 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 method described in the first aspect are implemented, or the steps of the method described in the second aspect are implemented.
  • a readable storage medium on which a program or instruction is stored.
  • 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.
  • 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 method described in the first aspect, or to implement the method described in the second aspect.
  • a computer program/program product is provided, 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 method described in the first aspect, or to implement the steps of the method described in the second aspect.
  • a system comprising an encoding end and a decoding end, wherein the encoding end performs the steps of the method described in the first aspect, and the decoding end performs the steps of the method described in the second aspect.
  • N main tactile signals corresponding to the block group of the target object and the secondary tactile signals associated with each main tactile signal are obtained; the N main tactile signals and the secondary tactile signals associated with each main tactile signal are obtained.
  • the frequency band of the secondary tactile signals connected is decomposed to obtain the first frequency signal and the second frequency signal corresponding to each main tactile signal, and the third frequency signal and the fourth frequency signal corresponding to each secondary tactile signal; the first frequency signal, the second frequency signal, the third frequency signal and the fourth frequency signal are encoded to generate a target code stream.
  • the first frequency signal and the second frequency signal corresponding to the main tactile signal, and the third frequency signal and the fourth frequency signal corresponding to the secondary tactile signal are encoded to generate a target code stream, thereby realizing tactile signal encoding by encoding multi-point tactile signals, rather than encoding each single-point tactile signal one by one to realize tactile signal encoding, thereby improving the encoding efficiency of tactile signal encoding.
  • FIG1 is a schematic diagram of a flow chart of a tactile signal encoding method provided in an embodiment of the present application
  • FIG2 is a schematic diagram of a flow chart of a tactile signal decoding method provided in an embodiment of the present application.
  • FIG3 is a structural diagram of a tactile signal encoding device provided in an embodiment of the present application.
  • FIG4 is a structural diagram of a tactile signal decoding device provided in an embodiment of the present application.
  • FIG5 is a structural diagram of a communication device provided in an embodiment of the present application.
  • FIG6 is a schematic diagram of the hardware structure of the terminal provided in an embodiment of the present application.
  • first, second, etc. in the specification and claims of the present 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 under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by “first” and “second” are generally of the same type, and the number of objects is not limited.
  • the first object can be one or more.
  • “and/or” in the specification and claims represents at least one of the connected objects, and the character “/" generally represents that the objects associated with each other are in an "or” relationship.
  • the target object includes multiple blocks.
  • the target object can be a person.
  • the human body is divided into multiple blocks, and each block is labeled.
  • a serial number may be used to represent each block, and the serial number is a 5-bit binary number corresponding to the label minus 1.
  • label 1 represents the front of the head, and the serial number corresponding to the front of the head is 00000
  • label 12 represents the left upper arm, and the serial number corresponding to the left upper arm is 01011
  • label 32 represents the left toe, and the serial number corresponding to the left toe is 11111.
  • At least one block may be divided into a block group. It should be understood that each block includes multiple spatial positions, and each spatial position corresponds to a tactile signal, also known as a single-point tactile signal.
  • FIG1 is a flow chart of a tactile signal encoding method provided in an embodiment of the present application.
  • the tactile signal encoding method provided in this embodiment comprises the following steps:
  • An encoding end obtains N primary tactile signals corresponding to a block group of a target object and a secondary tactile signal associated with each primary tactile signal.
  • the block group is composed of at least one block, and each block includes multiple spatial positions, that is, the block group includes multiple spatial positions.
  • each spatial position in the block group of the target object corresponds to a tactile signal
  • the block group corresponds to N main tactile signals and a secondary tactile signal associated with each main tactile signal.
  • the above-mentioned N main tactile signals and the secondary tactile signal associated with each main tactile signal are determined based on multiple tactile signals corresponding to the block group, and N is a positive integer greater than or equal to 1.
  • one main tactile signal is associated with at least one secondary tactile signal
  • one secondary tactile signal can be associated with one main tactile signal.
  • one secondary haptic signal may be associated with multiple primary haptic signals.
  • the primary tactile signal is determined based on the position order corresponding to each spatial position in the block group. For example, the tactile signal corresponding to the spatial position at the center of the block group and the tactile signal corresponding to the spatial position adjacent to the spatial position at the center of the block group are determined as the primary tactile signal. In this implementation, the tactile signals corresponding to the remaining spatial positions can be determined as secondary tactile signals.
  • the above-mentioned main tactile signal is determined based on the scanning order corresponding to each spatial position in the block group. For example, the tactile signal corresponding to the spatial position whose scanning order is less than a preset value is determined as the main tactile signal. In this implementation, the tactile signal corresponding to the spatial position whose scanning order is greater than or equal to the preset value is determined as the secondary tactile signal.
  • a tactile signal partition table corresponding to the block group can be generated based on the tactile signals corresponding to each spatial position in the block group.
  • the above-mentioned tactile signal partition table is used to characterize each main tactile signal corresponding to the block group and the secondary tactile signal associated with the main tactile signal, and the main tactile signal and the secondary tactile signal are read from the tactile signal partition table.
  • the encoding end performs frequency band decomposition on the N main tactile signals and the secondary tactile signals associated with each main tactile signal to obtain a first frequency signal and a second frequency signal corresponding to each main tactile signal, and a third frequency signal and a fourth frequency signal corresponding to each secondary tactile signal.
  • the main tactile signal can be decomposed into frequency bands to obtain a first frequency signal and a second frequency signal corresponding to the main tactile signal, wherein the frequency of the first frequency signal is greater than a first threshold, and the frequency of the second frequency signal is less than or equal to the first threshold.
  • the first frequency signal is also called a first high-frequency signal
  • the second frequency signal is also called a first low-frequency signal.
  • the first threshold can be customized.
  • the secondary tactile signal can be decomposed into frequency bands to obtain a third frequency signal and a fourth frequency signal corresponding to the secondary tactile signal, wherein the frequency of the third frequency signal is greater than the second threshold, and the frequency of the fourth frequency signal is less than or equal to the second threshold.
  • the third frequency signal is also called the second high-frequency signal, and the fourth frequency signal is also called the second low-frequency signal.
  • the second threshold can be customized.
  • the tactile signal may be zero-phase filtered using 8th order Butterworth high-pass and low-pass filters with a cutoff frequency set to 72.5 Hz.
  • the encoding end encodes the first frequency signal, the second frequency signal, the third frequency signal, and the fourth frequency signal to generate a target code stream.
  • the first frequency signal, the second frequency signal, the third frequency signal and the fourth frequency signal are encoded to generate a target code stream.
  • the first frequency signal, the second frequency signal, the third frequency signal and the fourth frequency signal are encoded to generate a target code stream.
  • the first frequency signal and the second frequency signal corresponding to the main tactile signal, as well as the third frequency signal and the fourth frequency signal corresponding to the secondary tactile signal are encoded to generate a target code stream, thereby realizing tactile signal encoding by encoding multi-point tactile signals, rather than encoding each single-point tactile signal one by one to realize tactile signal encoding, thereby improving the encoding efficiency of tactile signal encoding.
  • encoding the first frequency signal, the second frequency signal, the third frequency signal, and the fourth frequency signal to generate a target bitstream includes:
  • the encoding end extracts a first key frame corresponding to the second frequency signal and a second key frame corresponding to the fourth frequency signal;
  • the encoding end encodes the first key frame and the second key frame to generate a first bit stream
  • the encoding end determines a second code stream based on the first frequency signal and the first signal residual, and determines a third code stream based on the third frequency signal and the second signal residual;
  • the encoding end generates a target bitstream according to the first bitstream, the second bitstream and the third bitstream.
  • the low-frequency signal corresponding to the primary tactile signal and the low-frequency signal corresponding to the secondary tactile signal are encoded in the same manner.
  • the time domain content analysis is performed on the second frequency signal, and the extreme value extraction algorithm is used to extract the extreme value of the second frequency signal.
  • the extracted extreme value points are saved in a preset format to obtain a first key frame, and then the first key frame is encoded to generate a first code stream.
  • the above preset format is "time-amplitude", that is, the time information and vibration amplitude information of the tactile signal are retained.
  • other methods can also be used to extract the key frames of the second frequency signal. For example, based on the vibration amplitude information corresponding to each signal frame in the frequency signal, the key frames are extracted. The specific method of extracting the key frames is not limited here.
  • the fourth frequency signal is subjected to time domain content analysis, and the local extreme value extraction algorithm is used to extract the extreme value of the fourth frequency signal, and the extracted extreme value points are saved in a preset format to obtain the second key frame, and then encode the second key frame to generate a second bit stream.
  • key frames may be extracted based on vibration amplitude information corresponding to each signal frame in the frequency signal.
  • the specific method of extracting key frames is not limited herein.
  • the first signal residual can be determined based on the second frequency signal and the first key frame, and the first signal residual is a low-frequency signal residual, and then the second code stream is determined based on the first frequency signal and the first signal residual.
  • the second signal residual can be determined based on the fourth frequency signal and the second key frame, and the second signal residual is a low-frequency signal residual, and then the third code stream is determined based on the third frequency signal and the second signal residual.
  • the first code stream, the second code stream and the third code stream are mixed to generate a target code stream.
  • the first code stream, the second code stream and the third code stream can be losslessly compressed by an arithmetic encoder to obtain a target code stream.
  • the first key frame corresponding to the second frequency signal, the second key frame corresponding to the fourth frequency signal, and the first frequency signal and the third frequency signal are encoded to generate a target code stream, thereby realizing tactile signal encoding by encoding multi-point tactile signals, thereby improving the encoding efficiency of tactile signal encoding.
  • encoding the first frequency signal, the second frequency signal, the third frequency signal, and the fourth frequency signal to generate a target bitstream includes:
  • the encoding end extracts a first key frame corresponding to the second frequency signal, and encodes the first key frame to generate a fourth bit stream;
  • the encoding end performs a difference operation on the fourth frequency signal and the second frequency signal to obtain a second key frame corresponding to the fourth frequency signal, and encodes the second key frame to generate a fifth bit stream;
  • the encoding end determines a second code stream based on the first frequency signal and the first signal residual, and determines a third code stream based on the third frequency signal and the second signal residual;
  • a target code stream is generated according to the second code stream, the third code stream, the fourth code stream and the fifth code stream.
  • time domain content analysis can be performed, and the local extreme value extraction algorithm is used to extract the extreme value of the second frequency signal, and the extracted extreme value points are saved in a preset format to obtain the first key frame, and then the first key frame is encoded to generate a fourth bit stream.
  • a difference operation is performed on the fourth frequency signal and the second frequency signal, and the non-zero part of the operation result is determined as the second key frame, and then the second key frame is encoded to generate a fifth bit stream.
  • the first signal residual can be determined based on the second frequency signal and the first key frame, and the first signal residual is a low-frequency signal residual, and then the second code stream is determined based on the first frequency signal and the first signal residual.
  • the second signal residual can be determined based on the fourth frequency signal and the second key frame, and the second signal residual is a low-frequency signal residual, and then the third code stream is determined based on the third frequency signal and the second signal residual.
  • the second code stream, the third code stream, the fourth code stream and the fifth code stream After obtaining the second code stream, the third code stream, the fourth code stream and the fifth code stream, the second code stream, the third code stream, the fourth code stream and the fifth code stream are mixed to generate a target code stream.
  • the second code stream, the third code stream, the fourth code stream and the fifth code stream can be losslessly compressed by an arithmetic encoder to obtain a target code stream.
  • the first key frame corresponding to the second frequency signal, the second key frame corresponding to the fourth frequency signal, and the first frequency signal and the third frequency signal are encoded to generate a target code stream, thereby realizing tactile signal encoding by encoding multi-point tactile signals, thereby improving the encoding efficiency of tactile signal encoding.
  • encoding the first frequency signal, the second frequency signal, the third frequency signal, and the fourth frequency signal to generate a target bitstream includes:
  • the encoding end encodes the first key frame corresponding to the second frequency signal to generate a fourth bit stream
  • the encoding end encodes the second key frame corresponding to the fourth frequency signal to generate a fifth bit stream
  • the encoding end determines a second code stream based on the first frequency signal and the first signal residual, and determines a third code stream based on the third frequency signal and the second signal residual;
  • a target code stream is generated according to the second code stream, the third code stream, the fourth code stream and the fifth code stream.
  • the first key frame corresponding to the second frequency signal can be encoded to generate a fourth code stream.
  • the second key frame corresponding to the fourth frequency signal is encoded to generate a fifth code stream.
  • the subsequent embodiments For a specific technical solution on how to generate the fifth code stream, please refer to the subsequent embodiments.
  • the first signal residual can be determined based on the second frequency signal and the first key frame, and the first signal residual is a low-frequency signal residual, and then the second code stream is determined based on the first frequency signal and the first signal residual.
  • the second signal residual can be determined based on the fourth frequency signal and the second key frame, and the second signal residual is a low-frequency signal residual, and then the third code stream is determined based on the third frequency signal and the second signal residual.
  • the second code stream, the third code stream, the fourth code stream and the fifth code stream After obtaining the second code stream, the third code stream, the fourth code stream and the fifth code stream, the second code stream, the third code stream, the fourth code stream and the fifth code stream are mixed to generate a target code stream.
  • the second code stream, the third code stream, the fourth code stream and the fifth code stream can be losslessly compressed by an arithmetic encoder to obtain a target code stream.
  • the first key frame corresponding to the second frequency signal, the second key frame corresponding to the fourth frequency signal, and the first frequency signal and the third frequency signal are encoded to generate a target code stream, thereby realizing tactile signal encoding by encoding multi-point tactile signals, thereby improving the encoding efficiency of tactile signal encoding.
  • encoding the first key frame corresponding to the second frequency signal to generate a fourth bitstream includes:
  • the encoding end extracts a first key frame corresponding to the second frequency signal, and encodes the first key frame to generate the fourth bit stream when the main tactile signal corresponding to the second frequency signal is the maximum main tactile signal;
  • the encoding end When the main tactile signal corresponding to the second frequency signal is not the maximum main tactile signal, the encoding end performs a difference operation on the second frequency signal and the first target signal to obtain a first key frame corresponding to the second frequency signal, and encodes the first key frame to generate the fourth bit stream.
  • the second frequency signal is a low frequency signal corresponding to the main tactile signal.
  • N is greater than 1
  • the N main tactile signals corresponding to the block group are sorted in descending order of power. It should be understood that the above sorting is the sorting of the coding order corresponding to each main tactile signal.
  • An optional implementation is that, when the main tactile signal corresponding to the second frequency signal is the maximum main tactile signal, the second frequency signal is subjected to time domain content analysis, and the second frequency signal is subjected to extreme value extraction using a local extreme value extraction algorithm, and the extracted extreme value points are saved in a preset format to obtain a first key frame, and then the first key frame is encoded to generate a fourth bit stream.
  • the maximum main tactile signal is the main tactile signal with the largest power among the N main tactile signals, that is, the maximum main tactile signal is the main tactile signal with the highest order among the N main tactile signals.
  • Another optional implementation is that, when the main tactile signal corresponding to the second frequency signal is not the maximum main tactile signal, a difference operation is performed on the second frequency signal and the first target signal, and the operation result is determined as the first key frame, and then the first key frame is encoded to generate a fourth bit stream.
  • the first target signal is a low-frequency signal corresponding to the target main tactile signal
  • the target main tactile signal is a main tactile signal that is ranked before the main tactile signal corresponding to the second frequency signal among the N main tactile signals.
  • encoding the second key frame corresponding to the fourth frequency signal to generate a fifth bitstream includes:
  • the encoding end performs a difference operation on the fourth frequency signal and the second frequency signal to obtain a second key frame corresponding to the fourth frequency signal, and encodes the second key frame to generate the fifth bit stream; or,
  • the encoding end extracts a second key frame corresponding to the fourth frequency signal, and encodes the second key frame to generate the fifth bit stream.
  • An optional implementation is to perform a difference operation on the fourth frequency signal and the second frequency signal, determine a non-zero part of the operation result as a second key frame, and then encode the second key frame to generate a fifth bit stream.
  • Another optional implementation is to perform time domain content analysis on the fourth frequency signal, and use a local extreme value extraction algorithm to extract extreme values of the fourth frequency signal, save the extracted extreme value points in a preset format, obtain a second key frame, and then encode the second key frame to generate a fifth code stream.
  • determining the second code stream based on the first frequency signal and the first signal residual includes:
  • the encoding end performs interpolation processing on the first key frame to obtain a second target signal
  • the encoding end determines a first signal residual according to the second frequency signal and the second target signal
  • the encoding end determines a third target according to the first frequency signal and the first signal residual Signal
  • the encoding end performs wavelet transform on the third target signal to obtain first wavelet coefficients
  • the encoding end encodes the first wavelet coefficients after quantization processing to generate the second code stream.
  • the first key frame can be interpolated to obtain a second target signal, the second target signal being a low-frequency signal, and then the first signal residual is determined based on the second frequency signal and the second target signal.
  • the first signal residual is the difference between the second frequency signal and the second target signal, or the first signal residual is the difference between the second target signal and the second frequency signal.
  • the first signal residual After obtaining the first signal residual, add the first frequency signal to the first signal residual to determine the third target signal, where the third target signal is a high-frequency signal; perform block processing on the third target signal to obtain at least one signal block corresponding to the third target signal.
  • set the block length of the signal block to 512. If the block length of the signal block corresponding to the third target signal is less than 512, the signal block can be padded with 0s to pad the block length of the signal block to 512.
  • the quantization operation performed on the first wavelet coefficients may be to input the signal block into the psychological perception model, obtain the energy value and signal mask ratio corresponding to the signal block, and quantize the first wavelet coefficients using the energy value and signal mask ratio.
  • the first wavelet coefficients after quantization processing can be encoded using the Set Partitioning in Hierarchical Trees (SPIHT) algorithm.
  • SPIHT Set Partitioning in Hierarchical Trees
  • determining a third code stream based on the third frequency signal and the second signal residual includes:
  • the encoding end performs interpolation processing on the second key frame to obtain a fourth target signal
  • the encoding end determines a second signal residual according to the fourth frequency signal and the fourth target signal
  • the encoding end determines a fifth target signal according to the third frequency signal and the second signal residual;
  • the encoding end performs wavelet transform on the fifth target signal to obtain second wavelet coefficients
  • the encoding end encodes the second wavelet coefficients after quantization processing to generate the third code stream.
  • the second key frame may be interpolated to obtain a fourth target signal, the fourth target signal being a low-frequency signal, and then the second signal residual may be determined based on the fourth frequency signal and the fourth target signal.
  • the second signal residual is the difference between the fourth frequency signal and the fourth target signal, or the second signal residual is the difference between the fourth target signal and the fourth frequency signal.
  • the third frequency signal to the second signal residual to determine the fifth target signal, where the fifth target signal is a high-frequency signal; perform block processing on the fifth target signal to obtain at least one signal block corresponding to the fifth target signal.
  • set the block length of the signal block to 512. If the block length of the signal block corresponding to the fifth target signal is less than 512, the signal block can be padded with 0s to pad the block length of the signal block to 512.
  • the quantization operation performed on the second wavelet coefficients may be to input the signal block into the psychological perception model, obtain the energy value and signal mask ratio corresponding to the signal block, and quantize the second wavelet coefficients using the energy value and signal mask ratio.
  • the SPIHT algorithm may be used to encode the second wavelet coefficients after quantization.
  • FIG. 2 is a flow chart of a tactile signal decoding method provided in an embodiment of the present application.
  • the tactile signal decoding method provided in this embodiment includes the following steps:
  • the decoding end obtains the target bit stream.
  • the decoding end determines a first frequency signal, a second frequency signal, a third frequency signal, and a fourth frequency signal based on the target bit stream.
  • the frequency of the first frequency signal is greater than the first threshold
  • the frequency of the second frequency signal is less than or equal to the first threshold
  • the frequency of the third frequency signal is greater than the second threshold
  • the frequency of the fourth frequency signal is less than or equal to the second threshold
  • the decoding end determines a main tactile signal based on the first frequency signal and the second frequency signal, and determines a phase of the main tactile signal based on the third frequency signal and the fourth frequency signal. Associated subtactile signals.
  • a decoding end decodes a target code stream, determines a first frequency signal, a second frequency signal, a third frequency signal, and a fourth frequency signal, and then determines a primary tactile signal based on the first frequency signal and the second frequency signal, determines a secondary tactile signal associated with the primary tactile signal based on the third frequency signal and the fourth frequency signal, and decodes the target code stream using a decoding method corresponding to the method in which the encoding end encodes the tactile signal to obtain a tactile signal.
  • the target code stream includes a first code stream, a second code stream, and a third code stream, and based on the target code stream, determining the first frequency signal, the second frequency signal, the third frequency signal, and the fourth frequency signal includes:
  • the decoding end performs interpolation processing on the first key frame obtained by decoding the first code stream to obtain a second frequency signal, and performs interpolation processing on the second key frame obtained by decoding the first code stream to obtain a fourth frequency signal;
  • the decoding end decodes the second code stream to determine a first frequency signal
  • the decoding end decodes the third code stream to determine a third frequency signal.
  • the decoding end decodes the first code stream to obtain a first key frame, and then performs interpolation processing on the first key frame to obtain a second frequency signal.
  • the target code stream includes a second code stream, a third code stream, a fourth code stream and a fifth code stream, and based on the target code stream, determining the first frequency signal, the second frequency signal, the third frequency signal and the fourth frequency signal includes:
  • the decoding end performs interpolation processing on the first key frame obtained by decoding the fourth bit stream to obtain a second frequency signal
  • the decoding end determines a fourth frequency signal based on a second key frame and the second frequency signal obtained by decoding the fifth bit stream;
  • the decoding end decodes the second code stream to determine a first frequency signal
  • the decoding end decodes the third code stream to determine a third frequency signal.
  • the decoding end decodes the fourth bit stream to obtain the first key frame, and then performs interpolation processing on the first key frame to obtain the second frequency signal. frame, adding the second key frame and the second frequency signal to obtain a fourth frequency signal.
  • the target code stream includes a second code stream, a third code stream, a fourth code stream and a fifth code stream, and based on the target code stream, determining the first frequency signal, the second frequency signal, the third frequency signal and the fourth frequency signal includes:
  • the decoding end determines a second frequency signal based on a first key frame obtained by decoding the fourth bit stream
  • the decoding end determines a fourth frequency signal based on a second key frame obtained by decoding the fifth bit stream
  • the decoding end decodes the second code stream to determine a first frequency signal
  • the decoding end decodes the third code stream to determine a third frequency signal.
  • determining the second frequency signal based on the first key frame obtained by decoding the fourth bitstream includes:
  • the decoding end decodes the fourth bit stream to obtain a first key frame
  • the decoding end performs interpolation processing on the first key frame to obtain a second frequency signal when the main tactile signal corresponding to the first key frame is the maximum main tactile signal;
  • the decoding end determines a second frequency signal based on the first key frame and the first target signal when N is greater than 1 and the main tactile signal corresponding to the first key frame is not the maximum main tactile signal.
  • An optional implementation is, when the main tactile signal corresponding to the first key frame is a maximum main tactile signal, interpolation processing is performed on the first key frame to obtain a second frequency signal, wherein the maximum main tactile signal is a main tactile signal with the largest power among N main tactile signals, and N is a positive integer greater than or equal to 1.
  • Another optional implementation is that, when the main tactile signal corresponding to the first key frame is not the maximum main tactile signal, the first key frame and the first target signal are added to obtain a second frequency signal.
  • the first target signal is a low-frequency signal corresponding to the target main tactile signal
  • the target main tactile signal is a main tactile signal that is ranked before the main tactile signal corresponding to the first key frame among the N main tactile signals. It should be understood that the above ranking is the ranking of the decoding order corresponding to the main tactile signal.
  • determining the fourth frequency signal based on the second key frame obtained by decoding the fifth bitstream includes:
  • the decoding end determines a fourth frequency signal based on the second key frame and the second frequency signal; or,
  • the decoding end performs interpolation processing on the second key frame to determine a fourth frequency signal.
  • An optional implementation is to add the second key frame and the second frequency signal to obtain a fourth frequency signal.
  • Another optional implementation is to perform interpolation processing on the second key frame to determine the fourth frequency signal.
  • the decoding the second code stream to determine the first frequency signal includes:
  • the decoding end decodes the second bit stream to obtain first wavelet coefficients
  • the decoding end performs inverse wavelet transform on the first wavelet coefficients after inverse quantization processing to obtain a first frequency signal.
  • the above decoding method may be to use a SPIHT algorithm to decode the second code stream.
  • the decoding the third code stream to determine the third frequency signal includes:
  • the decoding end decodes the third bit stream to obtain second wavelet coefficients
  • the decoding end performs inverse wavelet transform on the second wavelet coefficients after the inverse quantization process to obtain a third frequency signal.
  • the decoding end decodes the target bit stream using a decoding method corresponding to the method in which the encoding end encodes the tactile signal to obtain the tactile signal, which will not be repeated here.
  • the tactile signal encoding method provided in the embodiment of the present application may be executed by a tactile signal encoding device.
  • the tactile signal encoding device is applied to an encoding end to execute the tactile signal encoding method as an example to illustrate the tactile signal encoding device provided in the embodiment of the present application.
  • the embodiment of the present application further provides a tactile signal encoding device 300, comprising:
  • An acquisition module 301 is used to acquire N main tactile signals corresponding to a block group of a target object and a secondary tactile signal associated with each main tactile signal; the N main tactile signals and the secondary tactile signal associated with each main tactile signal are determined based on a plurality of tactile signals corresponding to the block group, where N is a positive integer greater than or equal to 1;
  • the processing module 302 is used to perform frequency band decomposition on the N main tactile signals and the secondary tactile signals associated with each main tactile signal to obtain a first frequency signal and a second frequency signal corresponding to each main tactile signal, and a third frequency signal and a fourth frequency signal corresponding to each secondary tactile signal;
  • the frequency of the first frequency signal is greater than the first threshold
  • the frequency of the second frequency signal is less than or equal to the first threshold
  • the frequency of the third frequency signal is greater than the second threshold
  • the frequency of the fourth frequency signal is less than or equal to the second threshold
  • the encoding module 303 is used to encode the first frequency signal, the second frequency signal, the third frequency signal and the fourth frequency signal to generate a target code stream.
  • the encoding module 303 is specifically configured to:
  • a target code stream is generated according to the first code stream, the second code stream and the third code stream.
  • the encoding module 303 is further specifically configured to:
  • a target code stream is generated according to the second code stream, the third code stream, the fourth code stream and the fifth code stream.
  • the encoding module 303 is further specifically configured to:
  • the second code stream is determined based on the first frequency signal and the first signal residual, and the third frequency signal is determined based on the third frequency signal.
  • the first signal residual is determined based on the second frequency signal and the first key frame, and the second signal residual is determined based on the fourth frequency signal and the second key frame;
  • a target code stream is generated according to the second code stream, the third code stream, the fourth code stream and the fifth code stream.
  • the N main tactile signals are sorted in descending order of power
  • the encoding module 303 is further specifically configured to:
  • the main tactile signal corresponding to the second frequency signal is a maximum main tactile signal, extracting a first key frame corresponding to the second frequency signal, and encoding the first key frame to generate the fourth bit stream;
  • the maximum main tactile signal is a main tactile signal with the largest power among the N main tactile signals;
  • the main tactile signal corresponding to the second frequency signal is not the maximum main tactile signal
  • a difference operation is performed on the second frequency signal and the first target signal to obtain a first key frame corresponding to the second frequency signal, and the first key frame is encoded to generate the fourth code stream
  • the first target signal is a low-frequency signal corresponding to the target main tactile signal
  • the target main tactile signal is a main tactile signal that is sorted before the main tactile signal corresponding to the second frequency signal among the N main tactile signals.
  • the encoding module 303 is further specifically configured to:
  • a second key frame corresponding to the fourth frequency signal is extracted, and the second key frame is encoded to generate the fifth code stream.
  • the encoding module 303 is further specifically configured to:
  • the first wavelet coefficients after quantization are encoded to generate the second code stream.
  • the encoding module 303 is further specifically configured to:
  • the second wavelet coefficients after quantization are encoded to generate the third code stream.
  • the tactile signal decoding method provided in the embodiment of the present application may be executed by a tactile signal decoding device.
  • the tactile signal decoding device is applied to a decoding end to execute the tactile signal decoding method as an example to illustrate the tactile signal decoding device provided in the embodiment of the present application.
  • the embodiment of the present application further provides a tactile signal decoding device 400, comprising:
  • the acquisition module 401 is used to acquire the target bitstream
  • a first determination module 402 is used to determine a first frequency signal, a second frequency signal, a third frequency signal and a fourth frequency signal based on the target code stream; the frequency of the first frequency signal is greater than a first threshold, the frequency of the second frequency signal is less than or equal to the first threshold, the frequency of the third frequency signal is greater than a second threshold, and the frequency of the fourth frequency signal is less than or equal to the second threshold;
  • the second determining module 403 is configured to determine a primary tactile signal based on the first frequency signal and the second frequency signal, and determine a secondary tactile signal associated with the primary tactile signal based on the third frequency signal and the fourth frequency signal.
  • the target code stream includes a first code stream, a second code stream and a third code stream
  • the first determining module 402 is specifically configured to:
  • the third code stream is decoded to determine a third frequency signal.
  • the target code stream includes a second code stream, a third code stream, a fourth code stream and a fifth code stream
  • the first determining module 402 is further specifically configured to:
  • the third code stream is decoded to determine a third frequency signal.
  • the target code stream includes a second code stream, a third code stream, a fourth code stream and a fifth code stream
  • the first determining module 402 is further specifically configured to:
  • the third code stream is decoded to determine a third frequency signal.
  • the first determining module 402 is further specifically configured to:
  • the main tactile signal corresponding to the first key frame is a maximum main tactile signal
  • interpolation processing is performed on the first key frame to obtain a second frequency signal
  • the maximum main tactile signal is a main tactile signal with the largest power among N main tactile signals, where N is a positive integer greater than or equal to 1;
  • a second frequency signal is determined based on the first key frame and the first target signal; the first target signal is a low-frequency signal corresponding to the target main tactile signal, and the target main tactile signal is a main tactile signal that is sorted before the main tactile signal corresponding to the first key frame among the N main tactile signals.
  • the first determining module 402 is further specifically configured to:
  • An interpolation process is performed on the second key frame to determine a fourth frequency signal.
  • the first determining module 402 is further specifically configured to:
  • An inverse wavelet transform is performed on the first wavelet coefficient after the inverse quantization process to obtain a first frequency signal.
  • the first determining module 402 is further specifically configured to:
  • the inverse wavelet transform is performed on the second wavelet coefficients after the inverse quantization process to obtain a third frequency signal.
  • the first frequency signal and the second frequency signal corresponding to the main tactile signal, and the third frequency signal and the fourth frequency signal corresponding to the secondary tactile signal are encoded to generate a target code stream.
  • the tactile signal encoding is realized by encoding multi-point tactile signals instead of encoding each single-point tactile signal one by one, thereby improving the encoding efficiency of the tactile signal encoding.
  • the tactile signal encoding device applied to the encoding end provided in the embodiment of the present application can implement each process implemented in the method embodiment of Figure 1 and achieve the same technical effect. To avoid repetition, it will not be repeated here.
  • the tactile signal decoding device applied to the decoding end provided in the embodiment of the present application can implement each process implemented by the method embodiment of FIG. 2 and achieve the same technical effect. To avoid repetition, it will not be described again here.
  • the tactile signal encoding device and the tactile signal decoding device in the embodiments of the present application may be electronic devices, such as electronic devices with an operating system, or components in electronic devices, such as integrated circuits or chips.
  • the electronic device may be a terminal, or may be other devices other than a terminal.
  • the terminal may include but is not limited to the types of terminals listed above, and other devices may be servers, network attached storage (NAS), etc., which are not specifically limited in the embodiments of the present application.
  • an embodiment of the present application further provides a communication device 500, including a processor 501 and a memory 502, wherein the memory 502 stores a program or instruction that can be run on the processor 501.
  • the communication device 500 is a terminal
  • the program or instruction is executed by the processor 501 to implement the following operations:
  • the first frequency signal, the second frequency signal, the third frequency signal and the fourth frequency signal are encoded to generate a target code stream.
  • the processor 501 is configured to perform the following operations:
  • a primary haptic signal is determined based on the first frequency signal and the second frequency signal, and a secondary haptic signal associated with the primary haptic signal is determined based on the third frequency signal and the fourth frequency signal.
  • the electronic device embodiment corresponds to the method embodiment, and each implementation process and implementation method of the above method embodiment can be applied to the electronic device embodiment and can achieve the same technical effect.
  • FIG6 is a schematic diagram of the hardware structure of a terminal implementing the embodiment of the present application.
  • the terminal 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, and a processor 610.
  • the terminal 600 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 610 through a power management system, so as to implement functions such as managing charging, discharging, and power consumption management through the power management system.
  • a power source such as a battery
  • the terminal structure shown in FIG6 does not constitute a limitation on the terminal, and the terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently, which will not be described in detail here.
  • the input unit 604 may include a graphics processing unit (GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode.
  • the display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc.
  • the user input unit 607 includes a touch panel 6071 and at least one of other input devices 6072.
  • the touch panel 6071 is also called a touch screen.
  • the touch panel 6071 may include two parts: a touch detection device and a touch controller.
  • Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
  • the RF unit 601 after receiving downlink data from the network side device, can transmit the data to the processor 610 for processing; the RF unit 601 can send uplink data to the network side device.
  • the RF unit 601 includes but is not limited to an antenna, an amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc.
  • the memory 609 can be used to store software programs or instructions and various data.
  • the memory 609 can mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area
  • the storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
  • the memory 609 may include a volatile memory or a non-volatile memory, or the memory 609 may include both a volatile memory and a non-volatile memory.
  • 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 a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM).
  • the memory 609 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
  • the processor 610 may include one or more processing units; optionally, the processor 610 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 610.
  • the processor 610 is configured to perform the following operations:
  • the first frequency signal, the second frequency signal, the third frequency signal and the fourth frequency signal are encoded to generate a target code stream.
  • processor 610 is configured to perform the following operations:
  • a primary haptic signal is determined based on the first frequency signal and the second frequency signal, and a secondary haptic signal associated with the primary haptic signal is determined based on the third frequency signal and the fourth frequency signal.
  • An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored.
  • a program or instruction is stored.
  • the various processes of the above-mentioned tactile signal encoding method embodiment are implemented, or the various processes of the above-mentioned tactile signal decoding method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
  • the processor is the processor in the terminal 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.
  • 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 method embodiment, or to implement the various processes of the above-mentioned tactile signal decoding method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
  • 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.
  • the embodiments of the present application further provide a computer program/program product, which is stored in a storage medium, and is executed by at least one processor to implement the various processes of the above-mentioned tactile signal encoding method embodiment, or to implement the various processes of the above-mentioned tactile signal decoding method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
  • An embodiment of the present application further provides a system, which includes an encoding end and a decoding end.
  • the encoding end executes the various processes of the above-mentioned embodiment of the tactile signal encoding method applied to the encoding end
  • the decoding end executes the various processes of the above-mentioned embodiment of the tactile signal decoding method applied to the decoding end, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
  • the technical solution of the present application can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
  • a storage medium such as ROM/RAM, a magnetic disk, or an optical disk
  • a terminal which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present application relates to the technical field of encoding and decoding, and provides a tactile signal encoding method and apparatus, a tactile signal decoding method and apparatus, and a device. The tactile signal encoding method comprises: acquiring N primary tactile signals corresponding to a block group of a target object and a secondary tactile signal associated with each primary tactile signal; performing frequency band decomposition on the N primary tactile signals and the secondary tactile signal associated with each primary tactile signal to obtain a first frequency signal and a second frequency signal corresponding to each primary tactile signal, and a third frequency signal and a fourth frequency signal corresponding to each secondary tactile signal; and encoding the first frequency signals, the second frequency signals, the third frequency signals and the fourth frequency signals to generate a target code stream.

Description

触觉信号编码方法、触觉信号解码方法、装置及设备Tactile signal encoding method, tactile signal decoding method, device and equipment
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请主张在2022年11月8日在中国提交的中国专利申请号No.202211394128.1的优先权,其全部内容通过引用包含于此。This application claims priority to Chinese Patent Application No. 202211394128.1 filed in China on November 8, 2022, the entire contents of which are incorporated herein by reference.
技术领域Technical Field
本申请属于编解码技术领域,具体涉及一种触觉信号编码方法、触觉信号解码方法、装置及设备。The present application belongs to the field of coding and decoding technology, and specifically relates to a tactile signal encoding method, a tactile signal decoding method, a device and an apparatus.
背景技术Background technique
触觉信息主要分为两大类:基于肌肉运动知觉的触觉信息,又称为动觉信息;以及基于皮肤纹理知觉的触觉信息,又称为纹理觉信息。在一些技术领域,例如虚拟现实技术领域或自动驾驶技术领域,通过基于触觉信息生成触觉信号,由硬件设备向用户传递触觉信号,使得用户感受到振动或脉冲,以增加用户的触觉感知。Tactile information is mainly divided into two categories: tactile information based on muscle movement perception, also known as kinesthetic information; and tactile information based on skin texture perception, also known as texture information. In some technical fields, such as virtual reality technology or autonomous driving technology, tactile signals are generated based on tactile information, and the hardware device transmits the tactile signals to the user, so that the user feels vibration or pulse, thereby increasing the user's tactile perception.
相关技术中,可以通过触觉信号编码,实现对触觉信号的压缩,具体而言,将目标对象划分为多个区块,逐一对每个区块内的单点触觉信号进行编码,实现触觉信号编码,这导致触觉信号编码的编码效率不高。In the related art, tactile signal compression can be achieved through tactile signal encoding. Specifically, the target object is divided into multiple blocks, and the single-point tactile signal in each block is encoded one by one to achieve tactile signal encoding, which results in low encoding efficiency of tactile signal encoding.
发明内容Summary of the invention
本申请实施例提供一种触觉信号编码方法、触觉信号解码方法、装置及设备,能够解决触觉信号编码的编码效率不高的问题。The embodiments of the present application provide a tactile signal encoding method, a tactile signal decoding method, an apparatus and a device, which can solve the problem of low encoding efficiency of tactile signal encoding.
第一方面,提供了一种触觉信号编码方法,包括:In a first aspect, a tactile signal encoding method is provided, comprising:
编码端获取目标对象的区块组对应的N个主触觉信号和每个主触觉信号相关联的次触觉信号;所述N个主触觉信号和每个主触觉信号相关联的次触觉信号基于所述区块组对应的多个触觉信号确定,N为大于或等于1的正整数;The encoder obtains N main tactile signals corresponding to the block group of the target object and a secondary tactile signal associated with each main tactile signal; the N main tactile signals and the secondary tactile signal associated with each main tactile signal are determined based on a plurality of tactile signals corresponding to the block group, where N is a positive integer greater than or equal to 1;
所述编码端对所述N个主触觉信号和每个主触觉信号相关联的次触觉信 号进行频带分解,获得每个主触觉信号对应的第一频率信号和第二频率信号,以及每个次触觉信号对应的第三频率信号和第四频率信号;所述第一频率信号的频率大于第一阈值,所述第二频率信号的频率小于或等于第一阈值,所述第三频率信号的频率大于第二阈值,所述第四频率信号的频率小于或等于第二阈值;The encoding end processes the N main tactile signals and the secondary tactile signals associated with each main tactile signal. The first tactile signal is subjected to frequency band decomposition to obtain a first frequency signal and a second frequency signal corresponding to each main tactile signal, and a third frequency signal and a fourth frequency signal corresponding to each secondary tactile signal; the frequency of the first frequency signal is greater than a first threshold, the frequency of the second frequency signal is less than or equal to the first threshold, the frequency of the third frequency signal is greater than the second threshold, and the frequency of the fourth frequency signal is less than or equal to the second threshold;
所述编码端编码所述第一频率信号、所述第二频率信号、所述第三频率信号和所述第四频率信号,生成目标码流。The encoding end encodes the first frequency signal, the second frequency signal, the third frequency signal, and the fourth frequency signal to generate a target code stream.
第二方面,提供一种触觉信号解码方法,包括:In a second aspect, a tactile signal decoding method is provided, comprising:
解码端获取目标码流;The decoding end obtains the target bitstream;
所述解码端基于所述目标码流,确定第一频率信号、第二频率信号、第三频率信号和第四频率信号;所述第一频率信号的频率大于第一阈值,所述第二频率信号的频率小于或等于第一阈值,所述第三频率信号的频率大于第二阈值,所述第四频率信号的频率小于或等于第二阈值;The decoding end determines, based on the target bitstream, a first frequency signal, a second frequency signal, a third frequency signal, and a fourth frequency signal; the frequency of the first frequency signal is greater than a first threshold, the frequency of the second frequency signal is less than or equal to the first threshold, the frequency of the third frequency signal is greater than a second threshold, and the frequency of the fourth frequency signal is less than or equal to the second threshold;
所述解码端基于所述第一频率信号和所述第二频率信号确定主触觉信号,基于所述第三频率信号和所述第四频率信号确定所述主触觉信号相关联的次触觉信号。The decoding end determines a main tactile signal based on the first frequency signal and the second frequency signal, and determines a secondary tactile signal associated with the main tactile signal based on the third frequency signal and the fourth frequency signal.
第三方面,提供了一种触觉信号编码装置,应用于编码端,所述装置包括:In a third aspect, a tactile signal encoding device is provided, which is applied to an encoding end, and the device includes:
获取模块,用于获取目标对象的区块组对应的N个主触觉信号和每个主触觉信号相关联的次触觉信号;所述N个主触觉信号和每个主触觉信号相关联的次触觉信号基于所述区块组对应的多个触觉信号确定,N为大于或等于1的正整数;an acquisition module, configured to acquire N main tactile signals corresponding to a block group of a target object and a secondary tactile signal associated with each main tactile signal; the N main tactile signals and the secondary tactile signal associated with each main tactile signal are determined based on a plurality of tactile signals corresponding to the block group, where N is a positive integer greater than or equal to 1;
处理模块,用于对所述N个主触觉信号和每个主触觉信号相关联的次触觉信号进行频带分解,获得每个主触觉信号对应的第一频率信号和第二频率信号,以及每个次触觉信号对应的第三频率信号和第四频率信号;所述第一频率信号的频率大于第一阈值,所述第二频率信号的频率小于或等于第一阈值,所述第三频率信号的频率大于第二阈值,所述第四频率信号的频率小于或等于第二阈值;a processing module, configured to perform frequency band decomposition on the N main tactile signals and the secondary tactile signals associated with each main tactile signal, to obtain a first frequency signal and a second frequency signal corresponding to each main tactile signal, and a third frequency signal and a fourth frequency signal corresponding to each secondary tactile signal; the frequency of the first frequency signal is greater than a first threshold, the frequency of the second frequency signal is less than or equal to the first threshold, the frequency of the third frequency signal is greater than a second threshold, and the frequency of the fourth frequency signal is less than or equal to the second threshold;
编码模块,用于编码所述第一频率信号、所述第二频率信号、所述第三 频率信号和所述第四频率信号,生成目标码流。an encoding module, configured to encode the first frequency signal, the second frequency signal, the third frequency signal and the fourth frequency signal to generate a target code stream.
第四方面,提供了一种触觉信号解码装置,应用于解码端,所述装置包括:In a fourth aspect, a tactile signal decoding device is provided, which is applied to a decoding end, and the device includes:
获取模块,用于获取目标码流;An acquisition module is used to acquire a target bitstream;
第一确定模块,用于基于所述目标码流,确定第一频率信号、第二频率信号、第三频率信号和第四频率信号;所述第一频率信号的频率大于第一阈值,所述第二频率信号的频率小于或等于第一阈值,所述第三频率信号的频率大于第二阈值,所述第四频率信号的频率小于或等于第二阈值;A first determination module is used to determine a first frequency signal, a second frequency signal, a third frequency signal and a fourth frequency signal based on the target code stream; the frequency of the first frequency signal is greater than a first threshold, the frequency of the second frequency signal is less than or equal to the first threshold, the frequency of the third frequency signal is greater than a second threshold, and the frequency of the fourth frequency signal is less than or equal to the second threshold;
第二确定模块,用于基于所述第一频率信号和所述第二频率信号确定主触觉信号,基于所述第三频率信号和所述第四频率信号确定所述主触觉信号相关联的次触觉信号。The second determination module is configured to determine a primary tactile signal based on the first frequency signal and the second frequency signal, and to determine a secondary tactile signal associated with the primary tactile signal based on the third frequency signal and the fourth frequency signal.
第五方面,提供了一种终端,该终端包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤,或者实现如第二方面所述的方法的步骤。In a fifth aspect, a terminal is provided, which includes 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 method described in the first aspect are implemented, or the steps of the method described in the second aspect are implemented.
第六方面,提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤,或者实现如第二方面所述的方法的步骤。In a sixth 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.
第七方面,提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法,或者实现如第二方面所述的方法。In the seventh 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 a program or instruction to implement the method described in the first aspect, or to implement the method described in the second aspect.
第八方面,提供了一种计算机程序/程序产品,所述计算机程序/程序产品被存储在存储介质中,所述计算机程序/程序产品被至少一个处理器执行以实现如第一方面所述的方法的步骤,或者实现如第二方面所述的方法的步骤。In an eighth aspect, a computer program/program product is provided, 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 method described in the first aspect, or to implement the steps of the method described in the second aspect.
第九方面,提供了一种系统,所述系统包括编码端和解码端,所述编码端执行如第一方面所述的方法的步骤,所述解码端执行如第二方面所述的方法的步骤。In a ninth aspect, a system is provided, comprising an encoding end and a decoding end, wherein the encoding end performs the steps of the method described in the first aspect, and the decoding end performs the steps of the method described in the second aspect.
本申请实施例中,获取目标对象的区块组对应的N个主触觉信号和每个主触觉信号相关联的次触觉信号;对N个主触觉信号和每个主触觉信号相关 联的次触觉信号进行频带分解,获得每个主触觉信号对应的第一频率信号和第二频率信号,以及每个次触觉信号对应的第三频率信号和第四频率信号;编码第一频率信号、第二频率信号、第三频率信号和第四频率信号,生成目标码流。本申请实施例中,编码主触觉信号对应的第一频率信号和第二频率信号,以及次触觉信号对应的第三频率信号和第四频率信号,生成目标码流,以此通过编码多点触觉信号的方式实现触觉信号编码,而不是逐一编码每个单点触觉信号实现触觉信号编码,提高了触觉信号编码的编码效率。In the embodiment of the present application, N main tactile signals corresponding to the block group of the target object and the secondary tactile signals associated with each main tactile signal are obtained; the N main tactile signals and the secondary tactile signals associated with each main tactile signal are obtained. The frequency band of the secondary tactile signals connected is decomposed to obtain the first frequency signal and the second frequency signal corresponding to each main tactile signal, and the third frequency signal and the fourth frequency signal corresponding to each secondary tactile signal; the first frequency signal, the second frequency signal, the third frequency signal and the fourth frequency signal are encoded to generate a target code stream. In the embodiment of the present application, the first frequency signal and the second frequency signal corresponding to the main tactile signal, and the third frequency signal and the fourth frequency signal corresponding to the secondary tactile signal are encoded to generate a target code stream, thereby realizing tactile signal encoding by encoding multi-point tactile signals, rather than encoding each single-point tactile signal one by one to realize tactile signal encoding, thereby improving the encoding efficiency of tactile signal encoding.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本申请实施例提供的触觉信号编码方法的流程示意图;FIG1 is a schematic diagram of a flow chart of a tactile signal encoding method provided in an embodiment of the present application;
图2是本申请实施例提供的触觉信号解码方法的流程示意图;FIG2 is a schematic diagram of a flow chart of a tactile signal decoding method provided in an embodiment of the present application;
图3是本申请实施例提供的触觉信号编码装置的结构图;FIG3 is a structural diagram of a tactile signal encoding device provided in an embodiment of the present application;
图4是本申请实施例提供的触觉信号解码装置的结构图;FIG4 is a structural diagram of a tactile signal decoding device provided in an embodiment of the present application;
图5是本申请实施例提供的通信设备的结构图;FIG5 is a structural diagram of a communication device provided in an embodiment of the present application;
图6是本申请实施例提供的终端的硬件结构示意图。FIG6 is a schematic diagram of the hardware structure of the terminal provided in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员所获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的术语在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”所区别的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the specification and claims of the present 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 under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first" and "second" are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and/or" in the specification and claims represents at least one of the connected objects, and the character "/" generally represents that the objects associated with each other are in an "or" relationship.
在相关技术中,目标对象包括多个区块,例如,上述目标对象可以是人 体,将人体的各个部位划分为多个区块,并对每个区块进行标号。例如,标号1:头部正面;标号2:头部后面;标号3:头部右侧;标号4:头部左侧;标号5:右上胸部;标号6:左上胸部;标号7:腹部;标号8:腰部;标号9:背部上侧;标号10:背部下侧;标号11:右上臂;标号12:左上臂;标号13:右侧小臂;标号14:左侧小臂;标号15:右手腕部;标号16:左手腕部;标号17:右手掌;标号18:左手掌;标号19:右手背;标号20:左手背;标号21:右手指;标号22:左手指;标号23:右大腿;标号24:左大腿;标号25:右小腿;标号26:左小腿;标号27:右脚掌;标号28:左脚掌;标号29:右脚背;标号30:左脚背;标号31:右脚趾;标号32:左脚趾。In the related art, the target object includes multiple blocks. For example, the target object can be a person. The human body is divided into multiple blocks, and each block is labeled. For example, number 1: front of the head; number 2: back of the head; number 3: right side of the head; number 4: left side of the head; number 5: right upper chest; number 6: left upper chest; number 7: abdomen; number 8: waist; number 9: upper back; number 10: lower back; number 11: right upper arm; number 12: left upper arm; number 13: right forearm; number 14: left forearm; number 15: right wrist; number 16: left wrist =The first part of the foot is marked with a circle; number 17: right palm; number 18: left palm; number 19: back of right hand; number 20: back of left hand; number 21: right fingers; number 22: left fingers; number 23: right thigh; number 24: left thigh; number 25: right calf; number 26: left calf; number 27: right sole; number 28: left sole; number 29: right instep; number 30: left instep; number 31: right toes; number 32: left toes.
可选地,可以使用序号表示每个区块,序号为标号减1所对应的5位二进制数。例如,标号1表示头部正面,头部正面对应的序号为00000,;标号12表示左上臂,左上臂对应的序号为01011;标号32表示左脚趾,左脚趾对应的序号为11111。Optionally, a serial number may be used to represent each block, and the serial number is a 5-bit binary number corresponding to the label minus 1. For example, label 1 represents the front of the head, and the serial number corresponding to the front of the head is 00000; label 12 represents the left upper arm, and the serial number corresponding to the left upper arm is 01011; label 32 represents the left toe, and the serial number corresponding to the left toe is 11111.
本申请实施例中,可以将至少一个区块划分为一个区块组,应理解,每个区块包括多个空间位置,每个空间位置对应一个触觉信号又称单点触觉信号。In the embodiment of the present application, at least one block may be divided into a block group. It should be understood that each block includes multiple spatial positions, and each spatial position corresponds to a tactile signal, also known as a single-point tactile signal.
下面结合附图,通过一些实施例及其应用场景对本申请实施例提供的应用于编码端的触觉信号编码方法进行详细地说明。The tactile signal encoding method applied to the encoding end provided in the embodiment of the present application is described in detail below through some embodiments and application scenarios in combination with the accompanying drawings.
请参阅图1,图1是本申请实施例提供的觉信号编码方法的流程图。本实施例提供的触觉信号编码方法包括以下步骤:Please refer to FIG1 , which is a flow chart of a tactile signal encoding method provided in an embodiment of the present application. The tactile signal encoding method provided in this embodiment comprises the following steps:
S101,编码端获取目标对象的区块组对应的N个主触觉信号和每个主触觉信号相关联的次触觉信号。S101 : An encoding end obtains N primary tactile signals corresponding to a block group of a target object and a secondary tactile signal associated with each primary tactile signal.
如上所述,区块组由至少一个区块构成,每个区块包括多个空间位置,即区块组包括多个空间位置。As described above, the block group is composed of at least one block, and each block includes multiple spatial positions, that is, the block group includes multiple spatial positions.
本步骤中,目标对象的区块组中的每个空间位置对应一个触觉信号,区块组对应N个主触觉信号和每个主触觉信号相关联的次触觉信号,上述N个主触觉信号和每个主触觉信号相关联的次触觉信号基于区块组对应的多个触觉信号确定,N为大于或等于1的正整数。需要说明的是,1个主触觉信号与至少一个次触觉信号相关联,1个次触觉信号可以与1个主触觉信号相关联, 或者1个次触觉信号可以与多个主触觉信号相关联。In this step, each spatial position in the block group of the target object corresponds to a tactile signal, and the block group corresponds to N main tactile signals and a secondary tactile signal associated with each main tactile signal. The above-mentioned N main tactile signals and the secondary tactile signal associated with each main tactile signal are determined based on multiple tactile signals corresponding to the block group, and N is a positive integer greater than or equal to 1. It should be noted that one main tactile signal is associated with at least one secondary tactile signal, and one secondary tactile signal can be associated with one main tactile signal. Alternatively, one secondary haptic signal may be associated with multiple primary haptic signals.
一种可选地实施方式为,上述主触觉信号基于区块组中各个空间位置对应的位置顺序确定。例如,将位于区块组中心的空间位置对应的触觉信号、与区块组中心的空间位置相邻的空间位置对应的触觉信号,确定为主触觉信号。这种实施方式下,可以将其余空间位置对应的触觉信号确定为次触觉信号。In an optional implementation, the primary tactile signal is determined based on the position order corresponding to each spatial position in the block group. For example, the tactile signal corresponding to the spatial position at the center of the block group and the tactile signal corresponding to the spatial position adjacent to the spatial position at the center of the block group are determined as the primary tactile signal. In this implementation, the tactile signals corresponding to the remaining spatial positions can be determined as secondary tactile signals.
另一种可选地实施方式为,上述主触觉信号基于区块组中各个空间位置对应的扫描顺序确定。例如,将扫描顺序小于预设数值的空间位置对应的触觉信号确定为主触觉信号。这种实施方式下,扫描顺序大于等于预设数值的空间位置对应的触觉信号确定为次触觉信号。Another optional implementation is that the above-mentioned main tactile signal is determined based on the scanning order corresponding to each spatial position in the block group. For example, the tactile signal corresponding to the spatial position whose scanning order is less than a preset value is determined as the main tactile signal. In this implementation, the tactile signal corresponding to the spatial position whose scanning order is greater than or equal to the preset value is determined as the secondary tactile signal.
另一种可选地实施方式为,可以基于区块组中各个空间位置对应的触觉信号,生成该区块组对应的触觉信号划分表,上述触觉信号划分表用于表征该区块组对应的每个主触觉信号和该主触觉信号相关联的次触觉信号,从该触觉信号划分表中读取主触觉信号和次触觉信号。Another optional implementation is that a tactile signal partition table corresponding to the block group can be generated based on the tactile signals corresponding to each spatial position in the block group. The above-mentioned tactile signal partition table is used to characterize each main tactile signal corresponding to the block group and the secondary tactile signal associated with the main tactile signal, and the main tactile signal and the secondary tactile signal are read from the tactile signal partition table.
S102,所述编码端对所述N个主触觉信号和每个主触觉信号相关联的次触觉信号进行频带分解,获得每个主触觉信号对应的第一频率信号和第二频率信号,以及每个次触觉信号对应的第三频率信号和第四频率信号。S102: The encoding end performs frequency band decomposition on the N main tactile signals and the secondary tactile signals associated with each main tactile signal to obtain a first frequency signal and a second frequency signal corresponding to each main tactile signal, and a third frequency signal and a fourth frequency signal corresponding to each secondary tactile signal.
本步骤中,可以对主触觉信号进行频带分解,获得该主触觉信号对应的第一频率信号和第二频率信号,其中,所述第一频率信号的频率大于第一阈值,所述第二频率信号的频率小于或等于第一阈值,上述第一频率信号又称为第一高频信号,上述第二频率信号又称为第一低频信号。上述第一阈值可以自定义设置。In this step, the main tactile signal can be decomposed into frequency bands to obtain a first frequency signal and a second frequency signal corresponding to the main tactile signal, wherein the frequency of the first frequency signal is greater than a first threshold, and the frequency of the second frequency signal is less than or equal to the first threshold. The first frequency signal is also called a first high-frequency signal, and the second frequency signal is also called a first low-frequency signal. The first threshold can be customized.
可以对次触觉信号进行频带分解,获得该次触觉信号对应的第三频率信号和第四频率信号,其中,所述第三频率信号的频率大于第二阈值,所述第四频率信号的频率小于或等于第二阈值,上述第三频率信号又称为第二高频信号,上述第四频率信号又称为第二低频信号。上述第二阈值可以自定义设置。The secondary tactile signal can be decomposed into frequency bands to obtain a third frequency signal and a fourth frequency signal corresponding to the secondary tactile signal, wherein the frequency of the third frequency signal is greater than the second threshold, and the frequency of the fourth frequency signal is less than or equal to the second threshold. The third frequency signal is also called the second high-frequency signal, and the fourth frequency signal is also called the second low-frequency signal. The second threshold can be customized.
可选地,可以使用8阶巴特沃斯高通和低通滤波器对触觉信号进行零相位滤波,截止频率设为72.5Hz。 Optionally, the tactile signal may be zero-phase filtered using 8th order Butterworth high-pass and low-pass filters with a cutoff frequency set to 72.5 Hz.
S103,所述编码端编码所述第一频率信号、所述第二频率信号、所述第三频率信号和所述第四频率信号,生成目标码流。S103: The encoding end encodes the first frequency signal, the second frequency signal, the third frequency signal, and the fourth frequency signal to generate a target code stream.
本步骤中,在得到第一频率信号、第二频率信号、第三频率信号和第四频率信号之后,对第一频率信号、第二频率信号、第三频率信号和第四频率信号进行编码,生成目标码流,具体的实施方式请参阅后续实施例。In this step, after obtaining the first frequency signal, the second frequency signal, the third frequency signal and the fourth frequency signal, the first frequency signal, the second frequency signal, the third frequency signal and the fourth frequency signal are encoded to generate a target code stream. For specific implementation methods, please refer to the subsequent embodiments.
本申请实施例中,编码主触觉信号对应的第一频率信号和第二频率信号,以及次触觉信号对应的第三频率信号和第四频率信号,生成目标码流,以此通过编码多点触觉信号的方式实现触觉信号编码,而不是逐一编码每个单点触觉信号实现触觉信号编码,提高了触觉信号编码的编码效率。In an embodiment of the present application, the first frequency signal and the second frequency signal corresponding to the main tactile signal, as well as the third frequency signal and the fourth frequency signal corresponding to the secondary tactile signal are encoded to generate a target code stream, thereby realizing tactile signal encoding by encoding multi-point tactile signals, rather than encoding each single-point tactile signal one by one to realize tactile signal encoding, thereby improving the encoding efficiency of tactile signal encoding.
可选地,所述编码所述第一频率信号、所述第二频率信号、所述第三频率信号和所述第四频率信号,生成目标码流包括:Optionally, encoding the first frequency signal, the second frequency signal, the third frequency signal, and the fourth frequency signal to generate a target bitstream includes:
所述编码端提取所述第二频率信号对应的第一关键帧和所述第四频率信号对应的第二关键帧;The encoding end extracts a first key frame corresponding to the second frequency signal and a second key frame corresponding to the fourth frequency signal;
所述编码端编码所述第一关键帧和所述第二关键帧,生成第一码流;The encoding end encodes the first key frame and the second key frame to generate a first bit stream;
所述编码端基于所述第一频率信号和第一信号残差确定第二码流,基于所述第三频率信号和第二信号残差确定第三码流;The encoding end determines a second code stream based on the first frequency signal and the first signal residual, and determines a third code stream based on the third frequency signal and the second signal residual;
所述编码端根据所述第一码流、所述第二码流和所述第三码流,生成目标码流。The encoding end generates a target bitstream according to the first bitstream, the second bitstream and the third bitstream.
本实施例中,对于主触觉信号对应的低频信号和次触觉信号对应的低频信号,即第二频率信号和第四频率信号,采用相同的方式进行编码。In this embodiment, the low-frequency signal corresponding to the primary tactile signal and the low-frequency signal corresponding to the secondary tactile signal, ie, the second frequency signal and the fourth frequency signal, are encoded in the same manner.
具体而言,对第二频率信号进行时域内容分析,并采用局部极值提取算法对第二频率信号进行极值提取,将提取出的极值点按照预设格式保存,得到第一关键帧,进而编码第一关键帧,生成第一码流。可选地,上述预设格式为“时间-幅值”,即保留触觉信号的时间信息和振动幅值信息。应理解,也可以采用其他的方式提取第二频率信号的关键帧,例如,基于频率信号中每个信号帧对应的振动幅值信息,提取关键帧,在此不对提取关键帧的具体方式进行限定,Specifically, the time domain content analysis is performed on the second frequency signal, and the extreme value extraction algorithm is used to extract the extreme value of the second frequency signal. The extracted extreme value points are saved in a preset format to obtain a first key frame, and then the first key frame is encoded to generate a first code stream. Optionally, the above preset format is "time-amplitude", that is, the time information and vibration amplitude information of the tactile signal are retained. It should be understood that other methods can also be used to extract the key frames of the second frequency signal. For example, based on the vibration amplitude information corresponding to each signal frame in the frequency signal, the key frames are extracted. The specific method of extracting the key frames is not limited here.
对第四频率信号进行时域内容分析,并采用局部极值提取算法对第四频率信号进行极值提取,将提取出的极值点按照预设格式保存,得到第二关键 帧,进而编码第二关键帧,生成第二码流。The fourth frequency signal is subjected to time domain content analysis, and the local extreme value extraction algorithm is used to extract the extreme value of the fourth frequency signal, and the extracted extreme value points are saved in a preset format to obtain the second key frame, and then encode the second key frame to generate a second bit stream.
应理解,也可以采用其他的方式提取频率信号的关键帧,例如,基于频率信号中每个信号帧对应的振动幅值信息,提取关键帧,在此不对提取关键帧的具体方式进行限定,It should be understood that other methods may be used to extract key frames of the frequency signal. For example, key frames may be extracted based on vibration amplitude information corresponding to each signal frame in the frequency signal. The specific method of extracting key frames is not limited herein.
本实施例中,可以基于第二频率信号和第一关键帧确定第一信号残差,上述第一信号残差为低频信号残差,进而基于第一频率信号和第一信号残差确定第二码流。可以基于第四频率信号和第二关键帧确定第二信号残差,上述第二信号残差为低频信号残差,进而基于第三频率信号和第二信号残差确定第三码流。具体的确定第二码流和第三码流的实施方式,请参阅后续实施例。In this embodiment, the first signal residual can be determined based on the second frequency signal and the first key frame, and the first signal residual is a low-frequency signal residual, and then the second code stream is determined based on the first frequency signal and the first signal residual. The second signal residual can be determined based on the fourth frequency signal and the second key frame, and the second signal residual is a low-frequency signal residual, and then the third code stream is determined based on the third frequency signal and the second signal residual. For specific implementation methods for determining the second code stream and the third code stream, please refer to the subsequent embodiments.
在得到第一码流、第二码流和第三码流之后,对上述第一码流、第二码流和第三码流进行混码,生成目标码流。可选地,在得到第一码流、第二码流和第三码流之后,可以通过算数编码器对第一码流、第二码流和第三码流进行无损压缩,得到目标码流。After obtaining the first code stream, the second code stream and the third code stream, the first code stream, the second code stream and the third code stream are mixed to generate a target code stream. Optionally, after obtaining the first code stream, the second code stream and the third code stream, the first code stream, the second code stream and the third code stream can be losslessly compressed by an arithmetic encoder to obtain a target code stream.
本申请实施例中,编码第二频率信号对应的第一关键帧、第四频率信号对应的第二关键帧、以及第一频率信号和第三频率信号,生成目标码流,以此通过编码多点触觉信号的方式实现触觉信号编码,提高了触觉信号编码的编码效率。In an embodiment of the present application, the first key frame corresponding to the second frequency signal, the second key frame corresponding to the fourth frequency signal, and the first frequency signal and the third frequency signal are encoded to generate a target code stream, thereby realizing tactile signal encoding by encoding multi-point tactile signals, thereby improving the encoding efficiency of tactile signal encoding.
可选地,所述编码所述第一频率信号、所述第二频率信号、所述第三频率信号和所述第四频率信号,生成目标码流包括:Optionally, encoding the first frequency signal, the second frequency signal, the third frequency signal, and the fourth frequency signal to generate a target bitstream includes:
所述编码端提取所述第二频率信号对应的第一关键帧,并编码所述第一关键帧,生成第四码流;The encoding end extracts a first key frame corresponding to the second frequency signal, and encodes the first key frame to generate a fourth bit stream;
所述编码端对所述第四频率信号与所述第二频率信号进行差值运算获得所述第四频率信号对应的第二关键帧,并编码所述第二关键帧,生成第五码流;The encoding end performs a difference operation on the fourth frequency signal and the second frequency signal to obtain a second key frame corresponding to the fourth frequency signal, and encodes the second key frame to generate a fifth bit stream;
所述编码端基于所述第一频率信号和第一信号残差确定第二码流,基于所述第三频率信号和第二信号残差确定第三码流;The encoding end determines a second code stream based on the first frequency signal and the first signal residual, and determines a third code stream based on the third frequency signal and the second signal residual;
根据所述第二码流、所述第三码流、所述第四码流和所述第五码流,生成目标码流。 A target code stream is generated according to the second code stream, the third code stream, the fourth code stream and the fifth code stream.
本实施例中,对于主触觉信号对应的低频信号即第二频率信号,可以进行时域内容分析,并采用局部极值提取算法对第二频率信号进行极值提取,将提取出的极值点按照预设格式保存,得到第一关键帧,进而编码第一关键帧,生成第四码流,In this embodiment, for the low-frequency signal corresponding to the main tactile signal, that is, the second frequency signal, time domain content analysis can be performed, and the local extreme value extraction algorithm is used to extract the extreme value of the second frequency signal, and the extracted extreme value points are saved in a preset format to obtain the first key frame, and then the first key frame is encoded to generate a fourth bit stream.
对于次触觉信号对应的低频信号即第四频率信号,对第四频率信号与第二频率信号进行差值运算,将运算结果的非零部分确定为第二关键帧,进而编码第二关键帧,生成第五码流,For the low-frequency signal corresponding to the secondary tactile signal, that is, the fourth frequency signal, a difference operation is performed on the fourth frequency signal and the second frequency signal, and the non-zero part of the operation result is determined as the second key frame, and then the second key frame is encoded to generate a fifth bit stream.
本实施例中,可以基于第二频率信号和第一关键帧确定第一信号残差,上述第一信号残差为低频信号残差,进而基于第一频率信号和第一信号残差确定第二码流。可以基于第四频率信号和第二关键帧确定第二信号残差,上述第二信号残差为低频信号残差,进而基于第三频率信号和第二信号残差确定第三码流。具体的确定第二码流和第三码流的实施方式,请参阅后续实施例。In this embodiment, the first signal residual can be determined based on the second frequency signal and the first key frame, and the first signal residual is a low-frequency signal residual, and then the second code stream is determined based on the first frequency signal and the first signal residual. The second signal residual can be determined based on the fourth frequency signal and the second key frame, and the second signal residual is a low-frequency signal residual, and then the third code stream is determined based on the third frequency signal and the second signal residual. For specific implementation methods for determining the second code stream and the third code stream, please refer to the subsequent embodiments.
在得到第二码流、第三码流、第四码流和第五码流之后,对上述第二码流、第三码流、第四码流和第五码流进行混码,生成目标码流。可选地,在得到第二码流、第三码流、第四码流和第五码流之后,可以通过算数编码器对第二码流、第三码流、第四码流和第五码流进行无损压缩,得到目标码流。After obtaining the second code stream, the third code stream, the fourth code stream and the fifth code stream, the second code stream, the third code stream, the fourth code stream and the fifth code stream are mixed to generate a target code stream. Optionally, after obtaining the second code stream, the third code stream, the fourth code stream and the fifth code stream, the second code stream, the third code stream, the fourth code stream and the fifth code stream can be losslessly compressed by an arithmetic encoder to obtain a target code stream.
本申请实施例中,编码第二频率信号对应的第一关键帧、第四频率信号对应的第二关键帧、以及第一频率信号和第三频率信号,生成目标码流,以此通过编码多点触觉信号的方式实现触觉信号编码,提高了触觉信号编码的编码效率。In an embodiment of the present application, the first key frame corresponding to the second frequency signal, the second key frame corresponding to the fourth frequency signal, and the first frequency signal and the third frequency signal are encoded to generate a target code stream, thereby realizing tactile signal encoding by encoding multi-point tactile signals, thereby improving the encoding efficiency of tactile signal encoding.
可选地,所述编码所述第一频率信号、所述第二频率信号、所述第三频率信号和所述第四频率信号,生成目标码流包括:Optionally, encoding the first frequency signal, the second frequency signal, the third frequency signal, and the fourth frequency signal to generate a target bitstream includes:
所述编码端编码所述第二频率信号对应的第一关键帧,生成第四码流;The encoding end encodes the first key frame corresponding to the second frequency signal to generate a fourth bit stream;
所述编码端编码所述第四频率信号对应的第二关键帧,生成第五码流;The encoding end encodes the second key frame corresponding to the fourth frequency signal to generate a fifth bit stream;
所述编码端基于所述第一频率信号和第一信号残差确定第二码流,基于所述第三频率信号和第二信号残差确定第三码流;The encoding end determines a second code stream based on the first frequency signal and the first signal residual, and determines a third code stream based on the third frequency signal and the second signal residual;
根据所述第二码流、所述第三码流、所述第四码流和所述第五码流,生成目标码流。 A target code stream is generated according to the second code stream, the third code stream, the fourth code stream and the fifth code stream.
本实施例中,可以编码第二频率信号对应的第一关键帧,生成第四码流。具体的如何生成第四码流的技术方案,请参阅后续实施例。编码第四频率信号对应的第二关键帧,生成第五码流。具体的如何生成第五码流的技术方案,请参阅后续实施例。In this embodiment, the first key frame corresponding to the second frequency signal can be encoded to generate a fourth code stream. For a specific technical solution on how to generate the fourth code stream, please refer to the subsequent embodiments. The second key frame corresponding to the fourth frequency signal is encoded to generate a fifth code stream. For a specific technical solution on how to generate the fifth code stream, please refer to the subsequent embodiments.
本实施例中,可以基于第二频率信号和第一关键帧确定第一信号残差,上述第一信号残差为低频信号残差,进而基于第一频率信号和第一信号残差确定第二码流。可以基于第四频率信号和第二关键帧确定第二信号残差,上述第二信号残差为低频信号残差,进而基于第三频率信号和第二信号残差确定第三码流。具体的确定第二码流和第三码流的实施方式,请参阅后续实施例。In this embodiment, the first signal residual can be determined based on the second frequency signal and the first key frame, and the first signal residual is a low-frequency signal residual, and then the second code stream is determined based on the first frequency signal and the first signal residual. The second signal residual can be determined based on the fourth frequency signal and the second key frame, and the second signal residual is a low-frequency signal residual, and then the third code stream is determined based on the third frequency signal and the second signal residual. For specific implementation methods for determining the second code stream and the third code stream, please refer to the subsequent embodiments.
在得到第二码流、第三码流、第四码流和第五码流之后,对上述第二码流、第三码流、第四码流和第五码流进行混码,生成目标码流。可选地,在得到第二码流、第三码流、第四码流和第五码流之后,可以通过算数编码器对第二码流、第三码流、第四码流和第五码流进行无损压缩,得到目标码流。After obtaining the second code stream, the third code stream, the fourth code stream and the fifth code stream, the second code stream, the third code stream, the fourth code stream and the fifth code stream are mixed to generate a target code stream. Optionally, after obtaining the second code stream, the third code stream, the fourth code stream and the fifth code stream, the second code stream, the third code stream, the fourth code stream and the fifth code stream can be losslessly compressed by an arithmetic encoder to obtain a target code stream.
本申请实施例中,编码第二频率信号对应的第一关键帧、第四频率信号对应的第二关键帧、以及第一频率信号和第三频率信号,生成目标码流,以此通过编码多点触觉信号的方式实现触觉信号编码,提高了触觉信号编码的编码效率。In an embodiment of the present application, the first key frame corresponding to the second frequency signal, the second key frame corresponding to the fourth frequency signal, and the first frequency signal and the third frequency signal are encoded to generate a target code stream, thereby realizing tactile signal encoding by encoding multi-point tactile signals, thereby improving the encoding efficiency of tactile signal encoding.
可选地,所述编码所述第二频率信号对应的第一关键帧,生成第四码流包括:Optionally, encoding the first key frame corresponding to the second frequency signal to generate a fourth bitstream includes:
所述编码端在所述第二频率信号对应的主触觉信号为最大主触觉信号的情况下,提取所述第二频率信号对应的第一关键帧,并编码所述第一关键帧生成所述第四码流;The encoding end extracts a first key frame corresponding to the second frequency signal, and encodes the first key frame to generate the fourth bit stream when the main tactile signal corresponding to the second frequency signal is the maximum main tactile signal;
所述编码端在所述第二频率信号对应的主触觉信号不为最大主触觉信号的情况下,对所述第二频率信号与第一目标信号进行差值运算获得所述第二频率信号对应的第一关键帧,并编码所述第一关键帧生成所述第四码流。When the main tactile signal corresponding to the second frequency signal is not the maximum main tactile signal, the encoding end performs a difference operation on the second frequency signal and the first target signal to obtain a first key frame corresponding to the second frequency signal, and encodes the first key frame to generate the fourth bit stream.
如上所述,第二频率信号为主触觉信号对应的低频信号。在N大于1的情况下,区块组对应的N个主触觉信号按照功率从大到小的顺序排序,应理解,上述排序是每个主触觉信号对应的编码顺序的排序。 As described above, the second frequency signal is a low frequency signal corresponding to the main tactile signal. When N is greater than 1, the N main tactile signals corresponding to the block group are sorted in descending order of power. It should be understood that the above sorting is the sorting of the coding order corresponding to each main tactile signal.
一种可选地实施方式为,在第二频率信号对应的主触觉信号为最大主触觉信号的情况下,对该第二频率信号进行时域内容分析,并采用局部极值提取算法对第二频率信号进行极值提取,将提取出的极值点按照预设格式保存,得到第一关键帧,进而编码第一关键帧,生成第四码流。其中,上述最大主触觉信号为N个主触觉信号中功率最大的主触觉信号,即最大主触觉信号为N个主触觉信号中排序最前的主触觉信号。An optional implementation is that, when the main tactile signal corresponding to the second frequency signal is the maximum main tactile signal, the second frequency signal is subjected to time domain content analysis, and the second frequency signal is subjected to extreme value extraction using a local extreme value extraction algorithm, and the extracted extreme value points are saved in a preset format to obtain a first key frame, and then the first key frame is encoded to generate a fourth bit stream. The maximum main tactile signal is the main tactile signal with the largest power among the N main tactile signals, that is, the maximum main tactile signal is the main tactile signal with the highest order among the N main tactile signals.
另一种可选地实施方式为,在第二频率信号对应的主触觉信号不为最大主触觉信号的情况下,对第二频率信号与第一目标信号进行差值运算,将运算结果确定为第一关键帧,进而编码第一关键帧,生成第四码流。其中,第一目标信号为目标主触觉信号对应的低频信号,目标主触觉信号为N个主触觉信号中排序在第二频率信号对应的主触觉信号前一位的主触觉信号。Another optional implementation is that, when the main tactile signal corresponding to the second frequency signal is not the maximum main tactile signal, a difference operation is performed on the second frequency signal and the first target signal, and the operation result is determined as the first key frame, and then the first key frame is encoded to generate a fourth bit stream. The first target signal is a low-frequency signal corresponding to the target main tactile signal, and the target main tactile signal is a main tactile signal that is ranked before the main tactile signal corresponding to the second frequency signal among the N main tactile signals.
可选地,所述编码所述第四频率信号对应的第二关键帧,生成第五码流包括:Optionally, encoding the second key frame corresponding to the fourth frequency signal to generate a fifth bitstream includes:
所述编码端对所述第四频率信号与所述第二频率信号进行差值运算获得所述第四频率信号对应的第二关键帧,并编码所述第二关键帧,生成所述第五码流;或者,The encoding end performs a difference operation on the fourth frequency signal and the second frequency signal to obtain a second key frame corresponding to the fourth frequency signal, and encodes the second key frame to generate the fifth bit stream; or,
所述编码端提取所述第四频率信号对应的第二关键帧,并编码所述第二关键帧,生成所述第五码流。The encoding end extracts a second key frame corresponding to the fourth frequency signal, and encodes the second key frame to generate the fifth bit stream.
一种可选地实施方式为,对第四频率信号与第二频率信号进行差值运算,将运算结果的非零部分确定为第二关键帧,进而编码第二关键帧,生成第五码流。An optional implementation is to perform a difference operation on the fourth frequency signal and the second frequency signal, determine a non-zero part of the operation result as a second key frame, and then encode the second key frame to generate a fifth bit stream.
另一种可选地实施方式为,对第四频率信号进行时域内容分析,并采用局部极值提取算法对第四频率信号进行极值提取,将提取出的极值点按照预设格式保存,得到第二关键帧,进而编码第二关键帧,生成第五码流。Another optional implementation is to perform time domain content analysis on the fourth frequency signal, and use a local extreme value extraction algorithm to extract extreme values of the fourth frequency signal, save the extracted extreme value points in a preset format, obtain a second key frame, and then encode the second key frame to generate a fifth code stream.
可选地,所述基于所述第一频率信号和第一信号残差确定第二码流包括:Optionally, determining the second code stream based on the first frequency signal and the first signal residual includes:
所述编码端对所述第一关键帧进行插值处理,获得第二目标信号;The encoding end performs interpolation processing on the first key frame to obtain a second target signal;
所述编码端根据所述第二频率信号和所述第二目标信号,确定第一信号残差;The encoding end determines a first signal residual according to the second frequency signal and the second target signal;
所述编码端根据所述第一频率信号和所述第一信号残差,确定第三目标 信号;The encoding end determines a third target according to the first frequency signal and the first signal residual Signal;
所述编码端对所述第三目标信号进行小波变换,得到第一小波系数;The encoding end performs wavelet transform on the third target signal to obtain first wavelet coefficients;
所述编码端编码量化处理后的所述第一小波系数,生成所述第二码流。The encoding end encodes the first wavelet coefficients after quantization processing to generate the second code stream.
本实施例中,可以对第一关键帧进行插值处理,获得第二目标信号,上述第二目标信号为低频信号,进而根据第二频率信号和第二目标信号,确定第一信号残差。可选地,上述第一信号残差为第二频率信号减去第二目标信号的差值结果,或者,上述第一信号残差为第二目标信号减去第二频率信号的差值结果。In this embodiment, the first key frame can be interpolated to obtain a second target signal, the second target signal being a low-frequency signal, and then the first signal residual is determined based on the second frequency signal and the second target signal. Optionally, the first signal residual is the difference between the second frequency signal and the second target signal, or the first signal residual is the difference between the second target signal and the second frequency signal.
在得到第一信号残差之后,将第一频率信号与第一信号残差相加,确定第三目标信号,上述第三目标信号为高频信号;对第三目标信号进行分块处理,得到第三目标信号对应的至少一个信号块,可选地,设定信号块的块长度为512,若第三目标信号对应的信号块的块长度不足512,则可以对该信号块进行补0操作,将该信号块的块长度补齐至512。After obtaining the first signal residual, add the first frequency signal to the first signal residual to determine the third target signal, where the third target signal is a high-frequency signal; perform block processing on the third target signal to obtain at least one signal block corresponding to the third target signal. Optionally, set the block length of the signal block to 512. If the block length of the signal block corresponding to the third target signal is less than 512, the signal block can be padded with 0s to pad the block length of the signal block to 512.
对第三目标信号对应的每个信号块进行小波变换,得到第一小波系数;对第一小波系数执行量化操作,并对量化处理后的第一小波系数进行编码,生成第二码流。Perform wavelet transform on each signal block corresponding to the third target signal to obtain first wavelet coefficients; perform quantization on the first wavelet coefficients, and encode the quantized first wavelet coefficients to generate a second code stream.
其中,上述对第一小波系数执行的量化操作可以是,将信号块输入心理感知模型,获取该信号块对应的能量值和信号掩码比,利用上述能量值和信号掩码比对第一小波系数进行量化。The quantization operation performed on the first wavelet coefficients may be to input the signal block into the psychological perception model, obtain the energy value and signal mask ratio corresponding to the signal block, and quantize the first wavelet coefficients using the energy value and signal mask ratio.
其中,可以使用多级树集合分裂编码(Set Partitioning in Hierarchical Trees,SPIHT)算法对量化处理后的所述第一小波系数进行编码。Among them, the first wavelet coefficients after quantization processing can be encoded using the Set Partitioning in Hierarchical Trees (SPIHT) algorithm.
可选地,所述基于所述第三频率信号和第二信号残差确定第三码流包括:Optionally, determining a third code stream based on the third frequency signal and the second signal residual includes:
所述编码端对所述第二关键帧进行插值处理,获得第四目标信号;The encoding end performs interpolation processing on the second key frame to obtain a fourth target signal;
所述编码端根据所述第四频率信号和所述第四目标信号,确定第二信号残差;The encoding end determines a second signal residual according to the fourth frequency signal and the fourth target signal;
所述编码端根据所述第三频率信号和所述第二信号残差,确定第五目标信号;The encoding end determines a fifth target signal according to the third frequency signal and the second signal residual;
所述编码端对所述第五目标信号进行小波变换,得到第二小波系数;The encoding end performs wavelet transform on the fifth target signal to obtain second wavelet coefficients;
所述编码端编码量化处理后的所述第二小波系数,生成所述第三码流。 The encoding end encodes the second wavelet coefficients after quantization processing to generate the third code stream.
本实施例中,可以对第二关键帧进行插值处理,获得第四目标信号,上述第四目标信号为低频信号,进而根据第四频率信号和第四目标信号,确定第二信号残差。可选地,上述第二信号残差为第四频率信号减去第四目标信号的差值结果,或者,上述第二信号残差为第四目标信号减去第四频率信号的差值结果。In this embodiment, the second key frame may be interpolated to obtain a fourth target signal, the fourth target signal being a low-frequency signal, and then the second signal residual may be determined based on the fourth frequency signal and the fourth target signal. Optionally, the second signal residual is the difference between the fourth frequency signal and the fourth target signal, or the second signal residual is the difference between the fourth target signal and the fourth frequency signal.
在得到第二信号残差之后,将第三频率信号与第二信号残差相加,确定第五目标信号,上述第五目标信号为高频信号;对第五目标信号进行分块处理,得到第五目标信号对应的至少一个信号块,可选地,设定信号块的块长度为512,若第五目标信号对应的信号块的块长度不足512,则可以对该信号块进行补0操作,将该信号块的块长度补齐至512。After obtaining the second signal residual, add the third frequency signal to the second signal residual to determine the fifth target signal, where the fifth target signal is a high-frequency signal; perform block processing on the fifth target signal to obtain at least one signal block corresponding to the fifth target signal. Optionally, set the block length of the signal block to 512. If the block length of the signal block corresponding to the fifth target signal is less than 512, the signal block can be padded with 0s to pad the block length of the signal block to 512.
对第五目标信号对应的每个信号块进行小波变换,得到第二小波系数;对第二小波系数执行量化操作,并对量化处理后的第二小波系数进行编码,生成第三码流。Perform wavelet transform on each signal block corresponding to the fifth target signal to obtain second wavelet coefficients; perform quantization on the second wavelet coefficients, and encode the quantized second wavelet coefficients to generate a third code stream.
其中,上述对第二小波系数执行的量化操作可以是,将信号块输入心理感知模型,获取该信号块对应的能量值和信号掩码比,利用上述能量值和信号掩码比对第二小波系数进行量化。The quantization operation performed on the second wavelet coefficients may be to input the signal block into the psychological perception model, obtain the energy value and signal mask ratio corresponding to the signal block, and quantize the second wavelet coefficients using the energy value and signal mask ratio.
其中,可以使用SPIHT算法对量化处理后的所述第二小波系数进行编码。The SPIHT algorithm may be used to encode the second wavelet coefficients after quantization.
下面结合附图,通过一些实施例及其应用场景对本申请实施例提供的应用于解码端的触觉信号解码方法进行详细地说明。The tactile signal decoding method applied to the decoding end provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through some embodiments and their application scenarios.
请参阅图2,图2是本申请实施例提供的触觉信号解码方法的流程图。本实施例提供的触觉信号解码方法包括以下步骤:Please refer to FIG. 2 , which is a flow chart of a tactile signal decoding method provided in an embodiment of the present application. The tactile signal decoding method provided in this embodiment includes the following steps:
S201,解码端获取目标码流。S201, the decoding end obtains the target bit stream.
S202,所述解码端基于所述目标码流,确定第一频率信号、第二频率信号、第三频率信号和第四频率信号。S202: The decoding end determines a first frequency signal, a second frequency signal, a third frequency signal, and a fourth frequency signal based on the target bit stream.
需要说明的是,上述所述第一频率信号的频率大于第一阈值,第二频率信号的频率小于或等于第一阈值,第三频率信号的频率大于第二阈值,第四频率信号的频率小于或等于第二阈值。It should be noted that the frequency of the first frequency signal is greater than the first threshold, the frequency of the second frequency signal is less than or equal to the first threshold, the frequency of the third frequency signal is greater than the second threshold, and the frequency of the fourth frequency signal is less than or equal to the second threshold.
S203,所述解码端基于所述第一频率信号和所述第二频率信号确定主触觉信号,基于所述第三频率信号和所述第四频率信号确定所述主触觉信号相 关联的次触觉信号。S203, the decoding end determines a main tactile signal based on the first frequency signal and the second frequency signal, and determines a phase of the main tactile signal based on the third frequency signal and the fourth frequency signal. Associated subtactile signals.
本申请实施例中,解码端解码目标码流,确定第一频率信号、第二频率信号、第三频率信号和第四频率信号,进而基于上述第一频率信号和第二频率信号确定主触觉信号,基于第三频率信号和第四频率信号确定主触觉信号相关联的次触觉信号,使用与编码端对触觉信号进行编码的方式对应的解码方式对目标码流进行解码,得到触觉信号。In an embodiment of the present application, a decoding end decodes a target code stream, determines a first frequency signal, a second frequency signal, a third frequency signal, and a fourth frequency signal, and then determines a primary tactile signal based on the first frequency signal and the second frequency signal, determines a secondary tactile signal associated with the primary tactile signal based on the third frequency signal and the fourth frequency signal, and decodes the target code stream using a decoding method corresponding to the method in which the encoding end encodes the tactile signal to obtain a tactile signal.
可选地,所述目标码流包括第一码流、第二码流和第三码流,基于所述目标码流,确定第一频率信号、第二频率信号、第三频率信号和第四频率信号包括:Optionally, the target code stream includes a first code stream, a second code stream, and a third code stream, and based on the target code stream, determining the first frequency signal, the second frequency signal, the third frequency signal, and the fourth frequency signal includes:
所述解码端对解码所述第一码流得到的第一关键帧进行插值处理获取第二频率信号,对解码所述第一码流得到的第二关键帧进行插值处理获取第四频率信号;The decoding end performs interpolation processing on the first key frame obtained by decoding the first code stream to obtain a second frequency signal, and performs interpolation processing on the second key frame obtained by decoding the first code stream to obtain a fourth frequency signal;
所述解码端解码所述第二码流,确定第一频率信号;The decoding end decodes the second code stream to determine a first frequency signal;
所述解码端解码所述第三码流,确定第三频率信号。The decoding end decodes the third code stream to determine a third frequency signal.
本实施例中,解码端解码第一码流,得到第一关键帧,进而对第一关键帧进行插值处理,获取第二频率信号。In this embodiment, the decoding end decodes the first code stream to obtain a first key frame, and then performs interpolation processing on the first key frame to obtain a second frequency signal.
具体的如何解码第二码流确定第一频率信号,以及解码第三码流确定第三频率信号的技术方案,请参阅后续实施例。For specific technical solutions on how to decode the second code stream to determine the first frequency signal, and decode the third code stream to determine the third frequency signal, please refer to the subsequent embodiments.
可选地,所述目标码流包括第二码流、第三码流、第四码流和第五码流,基于所述目标码流,确定第一频率信号、第二频率信号、第三频率信号和第四频率信号包括:Optionally, the target code stream includes a second code stream, a third code stream, a fourth code stream and a fifth code stream, and based on the target code stream, determining the first frequency signal, the second frequency signal, the third frequency signal and the fourth frequency signal includes:
所述解码端对解码所述第四码流得到的第一关键帧进行插值处理,获取第二频率信号;The decoding end performs interpolation processing on the first key frame obtained by decoding the fourth bit stream to obtain a second frequency signal;
所述解码端基于解码所述第五码流得到的第二关键帧和所述第二频率信号,确定第四频率信号;The decoding end determines a fourth frequency signal based on a second key frame and the second frequency signal obtained by decoding the fifth bit stream;
所述解码端解码所述第二码流,确定第一频率信号;The decoding end decodes the second code stream to determine a first frequency signal;
所述解码端解码所述第三码流,确定第三频率信号。The decoding end decodes the third code stream to determine a third frequency signal.
本实施例中,解码端解码第四码流,得到第一关键帧,进而对第一关键帧进行插值处理,获取第二频率信号。解码端解码第五码流,得到第二关键 帧,将第二关键帧和第二频率信号相加,得到第四频率信号。In this embodiment, the decoding end decodes the fourth bit stream to obtain the first key frame, and then performs interpolation processing on the first key frame to obtain the second frequency signal. frame, adding the second key frame and the second frequency signal to obtain a fourth frequency signal.
可选地,所述目标码流包括第二码流、第三码流、第四码流和第五码流,基于所述目标码流,确定第一频率信号、第二频率信号、第三频率信号和第四频率信号包括:Optionally, the target code stream includes a second code stream, a third code stream, a fourth code stream and a fifth code stream, and based on the target code stream, determining the first frequency signal, the second frequency signal, the third frequency signal and the fourth frequency signal includes:
所述解码端基于解码所述第四码流得到的第一关键帧,确定第二频率信号;The decoding end determines a second frequency signal based on a first key frame obtained by decoding the fourth bit stream;
所述解码端基于解码所述第五码流得到的第二关键帧,确定第四频率信号;The decoding end determines a fourth frequency signal based on a second key frame obtained by decoding the fifth bit stream;
所述解码端解码所述第二码流,确定第一频率信号;The decoding end decodes the second code stream to determine a first frequency signal;
所述解码端解码所述第三码流,确定第三频率信号。The decoding end decodes the third code stream to determine a third frequency signal.
可选地,所述基于解码所述第四码流得到的第一关键帧,确定第二频率信号包括:Optionally, determining the second frequency signal based on the first key frame obtained by decoding the fourth bitstream includes:
所述解码端解码所述第四码流,得到第一关键帧;The decoding end decodes the fourth bit stream to obtain a first key frame;
所述解码端在所述第一关键帧对应的主触觉信号为最大主触觉信号的情况下,对所述第一关键帧进行插值处理获取第二频率信号;The decoding end performs interpolation processing on the first key frame to obtain a second frequency signal when the main tactile signal corresponding to the first key frame is the maximum main tactile signal;
所述解码端在N大于1,且所述第一关键帧对应的主触觉信号不为最大主触觉信号的情况下,基于所述第一关键帧和第一目标信号,确定第二频率信号。The decoding end determines a second frequency signal based on the first key frame and the first target signal when N is greater than 1 and the main tactile signal corresponding to the first key frame is not the maximum main tactile signal.
一种可选地实施方式为,在第一关键帧对应的主触觉信号为最大主触觉信号的情况下,对第一关键帧进行插值处理获取第二频率信号,其中,最大主触觉信号为N个主触觉信号中功率最大的主触觉信号,N为大于或等于1的正整数。An optional implementation is, when the main tactile signal corresponding to the first key frame is a maximum main tactile signal, interpolation processing is performed on the first key frame to obtain a second frequency signal, wherein the maximum main tactile signal is a main tactile signal with the largest power among N main tactile signals, and N is a positive integer greater than or equal to 1.
另一种可选地实施方式为,在第一关键帧对应的主触觉信号不为最大主触觉信号的情况下,将第一关键帧和第一目标信号相加,得到第二频率信号。其中,第一目标信号为目标主触觉信号对应的低频信号,目标主触觉信号为N个主触觉信号中排序在第一关键帧对应的主触觉信号前一位的主触觉信号,应理解,上述排序为主触觉信号对应的解码顺序的排序。Another optional implementation is that, when the main tactile signal corresponding to the first key frame is not the maximum main tactile signal, the first key frame and the first target signal are added to obtain a second frequency signal. The first target signal is a low-frequency signal corresponding to the target main tactile signal, and the target main tactile signal is a main tactile signal that is ranked before the main tactile signal corresponding to the first key frame among the N main tactile signals. It should be understood that the above ranking is the ranking of the decoding order corresponding to the main tactile signal.
可选地,所述基于解码所述第五码流得到的第二关键帧,确定第四频率信号包括: Optionally, determining the fourth frequency signal based on the second key frame obtained by decoding the fifth bitstream includes:
所述解码端基于所述第二关键帧和所述第二频率信号,确定第四频率信号;或者,The decoding end determines a fourth frequency signal based on the second key frame and the second frequency signal; or,
所述解码端对所述第二关键帧进行插值处理确定第四频率信号。The decoding end performs interpolation processing on the second key frame to determine a fourth frequency signal.
一种可选地实施方式为,将第二关键帧和第二频率信号相加,得到第四频率信号。An optional implementation is to add the second key frame and the second frequency signal to obtain a fourth frequency signal.
另一种可选地实施方式为,对第二关键帧进行插值处理确定第四频率信号。Another optional implementation is to perform interpolation processing on the second key frame to determine the fourth frequency signal.
可选地,所述解码所述第二码流,确定第一频率信号包括:Optionally, the decoding the second code stream to determine the first frequency signal includes:
所述解码端解码所述第二码流,获得第一小波系数;The decoding end decodes the second bit stream to obtain first wavelet coefficients;
所述解码端对反量化处理后的第一小波系数进行逆小波变换,获得第一频率信号。The decoding end performs inverse wavelet transform on the first wavelet coefficients after inverse quantization processing to obtain a first frequency signal.
可选地,上述解码方式可以是使用SPIHT算法对第二码流解码。Optionally, the above decoding method may be to use a SPIHT algorithm to decode the second code stream.
可选地,所述解码所述第三码流,确定第三频率信号包括:Optionally, the decoding the third code stream to determine the third frequency signal includes:
所述解码端解码所述第三码流,获得第二小波系数;The decoding end decodes the third bit stream to obtain second wavelet coefficients;
所述解码端对反量化处理后的第二小波系数进行逆小波变换,获得第三频率信号。The decoding end performs inverse wavelet transform on the second wavelet coefficients after the inverse quantization process to obtain a third frequency signal.
本实施例中,解码端使用与编码端对触觉信号进行编码的方式对应的解码方式对目标码流进行解码,得到触觉信号,在此不做重复阐述。In this embodiment, the decoding end decodes the target bit stream using a decoding method corresponding to the method in which the encoding end encodes the tactile signal to obtain the tactile signal, which will not be repeated here.
本申请实施例提供的触觉信号编码方法,执行主体可以为触觉信号编码装置。本申请实施例中以触觉信号编码装置应用于编码端执行触觉信号编码方法为例,说明本申请实施例提供的触觉信号编码装置。The tactile signal encoding method provided in the embodiment of the present application may be executed by a tactile signal encoding device. In the embodiment of the present application, the tactile signal encoding device is applied to an encoding end to execute the tactile signal encoding method as an example to illustrate the tactile signal encoding device provided in the embodiment of the present application.
如图3所示,本申请实施例还提供了一种触觉信号编码装置300,包括:As shown in FIG3 , the embodiment of the present application further provides a tactile signal encoding device 300, comprising:
获取模块301,用于获取目标对象的区块组对应的N个主触觉信号和每个主触觉信号相关联的次触觉信号;所述N个主触觉信号和每个主触觉信号相关联的次触觉信号基于所述区块组对应的多个触觉信号确定,N为大于或等于1的正整数;An acquisition module 301 is used to acquire N main tactile signals corresponding to a block group of a target object and a secondary tactile signal associated with each main tactile signal; the N main tactile signals and the secondary tactile signal associated with each main tactile signal are determined based on a plurality of tactile signals corresponding to the block group, where N is a positive integer greater than or equal to 1;
处理模块302,用于对所述N个主触觉信号和每个主触觉信号相关联的次触觉信号进行频带分解,获得每个主触觉信号对应的第一频率信号和第二频率信号,以及每个次触觉信号对应的第三频率信号和第四频率信号;所述 第一频率信号的频率大于第一阈值,所述第二频率信号的频率小于或等于第一阈值,所述第三频率信号的频率大于第二阈值,所述第四频率信号的频率小于或等于第二阈值;The processing module 302 is used to perform frequency band decomposition on the N main tactile signals and the secondary tactile signals associated with each main tactile signal to obtain a first frequency signal and a second frequency signal corresponding to each main tactile signal, and a third frequency signal and a fourth frequency signal corresponding to each secondary tactile signal; The frequency of the first frequency signal is greater than the first threshold, the frequency of the second frequency signal is less than or equal to the first threshold, the frequency of the third frequency signal is greater than the second threshold, and the frequency of the fourth frequency signal is less than or equal to the second threshold;
编码模块303,用于编码所述第一频率信号、所述第二频率信号、所述第三频率信号和所述第四频率信号,生成目标码流。The encoding module 303 is used to encode the first frequency signal, the second frequency signal, the third frequency signal and the fourth frequency signal to generate a target code stream.
可选地,所述编码模块303,具体用于:Optionally, the encoding module 303 is specifically configured to:
提取所述第二频率信号对应的第一关键帧和所述第四频率信号对应的第二关键帧;Extracting a first key frame corresponding to the second frequency signal and a second key frame corresponding to the fourth frequency signal;
编码所述第一关键帧和所述第二关键帧,生成第一码流;Encoding the first key frame and the second key frame to generate a first bitstream;
基于所述第一频率信号和第一信号残差确定第二码流,基于所述第三频率信号和第二信号残差确定第三码流;所述第一信号残差基于所述第二频率信号和所述第一关键帧确定,所述第二信号残差基于所述第四频率信号和所述第二关键帧确定;Determine a second code stream based on the first frequency signal and the first signal residual, and determine a third code stream based on the third frequency signal and the second signal residual; the first signal residual is determined based on the second frequency signal and the first key frame, and the second signal residual is determined based on the fourth frequency signal and the second key frame;
根据所述第一码流、所述第二码流和所述第三码流,生成目标码流。A target code stream is generated according to the first code stream, the second code stream and the third code stream.
可选地,所述编码模块303,还具体用于:Optionally, the encoding module 303 is further specifically configured to:
提取所述第二频率信号对应的第一关键帧,并编码所述第一关键帧,生成第四码流;extracting a first key frame corresponding to the second frequency signal, and encoding the first key frame to generate a fourth bit stream;
对所述第四频率信号与所述第二频率信号进行差值运算获得所述第四频率信号对应的第二关键帧,并编码所述第二关键帧,生成第五码流;performing a difference operation on the fourth frequency signal and the second frequency signal to obtain a second key frame corresponding to the fourth frequency signal, and encoding the second key frame to generate a fifth bit stream;
基于所述第一频率信号和第一信号残差确定第二码流,基于所述第三频率信号和第二信号残差确定第三码流;所述第一信号残差基于所述第二频率信号和所述第一关键帧确定,所述第二信号残差基于所述第四频率信号和所述第二关键帧确定;Determine a second code stream based on the first frequency signal and the first signal residual, and determine a third code stream based on the third frequency signal and the second signal residual; the first signal residual is determined based on the second frequency signal and the first key frame, and the second signal residual is determined based on the fourth frequency signal and the second key frame;
根据所述第二码流、所述第三码流、所述第四码流和所述第五码流,生成目标码流。A target code stream is generated according to the second code stream, the third code stream, the fourth code stream and the fifth code stream.
可选地,所述编码模块303,还具体用于:Optionally, the encoding module 303 is further specifically configured to:
编码所述第二频率信号对应的第一关键帧,生成第四码流;encoding a first key frame corresponding to the second frequency signal to generate a fourth bit stream;
编码所述第四频率信号对应的第二关键帧,生成第五码流;Encoding a second key frame corresponding to the fourth frequency signal to generate a fifth bit stream;
基于所述第一频率信号和第一信号残差确定第二码流,基于所述第三频 率信号和第二信号残差确定第三码流;所述第一信号残差基于所述第二频率信号和所述第一关键帧确定,所述第二信号残差基于所述第四频率信号和所述第二关键帧确定;The second code stream is determined based on the first frequency signal and the first signal residual, and the third frequency signal is determined based on the third frequency signal. The first signal residual is determined based on the second frequency signal and the first key frame, and the second signal residual is determined based on the fourth frequency signal and the second key frame;
根据所述第二码流、所述第三码流、所述第四码流和所述第五码流,生成目标码流。A target code stream is generated according to the second code stream, the third code stream, the fourth code stream and the fifth code stream.
可选地,在N大于1的情况下,所述N个主触觉信号按照功率从大到小的顺序排序,所述编码模块303,还具体用于:Optionally, when N is greater than 1, the N main tactile signals are sorted in descending order of power, and the encoding module 303 is further specifically configured to:
在所述第二频率信号对应的主触觉信号为最大主触觉信号的情况下,提取所述第二频率信号对应的第一关键帧,并编码所述第一关键帧生成所述第四码流;所述最大主触觉信号为所述N个主触觉信号中功率最大的主触觉信号;When the main tactile signal corresponding to the second frequency signal is a maximum main tactile signal, extracting a first key frame corresponding to the second frequency signal, and encoding the first key frame to generate the fourth bit stream; the maximum main tactile signal is a main tactile signal with the largest power among the N main tactile signals;
在所述第二频率信号对应的主触觉信号不为最大主触觉信号的情况下,对所述第二频率信号与第一目标信号进行差值运算获得所述第二频率信号对应的第一关键帧,并编码所述第一关键帧生成所述第四码流;所述第一目标信号为目标主触觉信号对应的低频信号,所述目标主触觉信号为所述N个主触觉信号中排序在所述第二频率信号对应的主触觉信号前一位的主触觉信号。When the main tactile signal corresponding to the second frequency signal is not the maximum main tactile signal, a difference operation is performed on the second frequency signal and the first target signal to obtain a first key frame corresponding to the second frequency signal, and the first key frame is encoded to generate the fourth code stream; the first target signal is a low-frequency signal corresponding to the target main tactile signal, and the target main tactile signal is a main tactile signal that is sorted before the main tactile signal corresponding to the second frequency signal among the N main tactile signals.
可选地,所述编码模块303,还具体用于:Optionally, the encoding module 303 is further specifically configured to:
对所述第四频率信号与所述第二频率信号进行差值运算获得所述第四频率信号对应的第二关键帧,并编码所述第二关键帧,生成所述第五码流;或者,performing a difference operation on the fourth frequency signal and the second frequency signal to obtain a second key frame corresponding to the fourth frequency signal, and encoding the second key frame to generate the fifth bit stream; or,
提取所述第四频率信号对应的第二关键帧,并编码所述第二关键帧,生成所述第五码流。A second key frame corresponding to the fourth frequency signal is extracted, and the second key frame is encoded to generate the fifth code stream.
可选地,所述编码模块303,还具体用于:Optionally, the encoding module 303 is further specifically configured to:
对所述第一关键帧进行插值处理,获得第二目标信号;Performing interpolation processing on the first key frame to obtain a second target signal;
根据所述第二频率信号和所述第二目标信号,确定第一信号残差;Determining a first signal residual according to the second frequency signal and the second target signal;
根据所述第一频率信号和所述第一信号残差,确定第三目标信号;Determining a third target signal according to the first frequency signal and the first signal residual;
对所述第三目标信号进行小波变换,得到第一小波系数;Performing wavelet transform on the third target signal to obtain first wavelet coefficients;
编码量化处理后的所述第一小波系数,生成所述第二码流。The first wavelet coefficients after quantization are encoded to generate the second code stream.
可选地,所述编码模块303,还具体用于: Optionally, the encoding module 303 is further specifically configured to:
对所述第二关键帧进行插值处理,获得第四目标信号;performing interpolation processing on the second key frame to obtain a fourth target signal;
根据所述第四频率信号和所述第四目标信号,确定第二信号残差;Determining a second signal residual according to the fourth frequency signal and the fourth target signal;
根据所述第三频率信号和所述第二信号残差,确定第五目标信号;Determining a fifth target signal according to the third frequency signal and the second signal residual;
对所述第五目标信号进行小波变换,得到第二小波系数;Performing wavelet transform on the fifth target signal to obtain second wavelet coefficients;
编码量化处理后的所述第二小波系数,生成所述第三码流。The second wavelet coefficients after quantization are encoded to generate the third code stream.
本申请实施例提供的触觉信号解码方法,执行主体可以为触觉信号解码装置。本申请实施例中以触觉信号解码装置应用于解码端执行触觉信号解码方法为例,说明本申请实施例提供的触觉信号解码装置。The tactile signal decoding method provided in the embodiment of the present application may be executed by a tactile signal decoding device. In the embodiment of the present application, the tactile signal decoding device is applied to a decoding end to execute the tactile signal decoding method as an example to illustrate the tactile signal decoding device provided in the embodiment of the present application.
如图4所示,本申请实施例还提供了一种触觉信号解码装置400,包括:As shown in FIG. 4 , the embodiment of the present application further provides a tactile signal decoding device 400, comprising:
获取模块401,用于获取目标码流;The acquisition module 401 is used to acquire the target bitstream;
第一确定模块402,用于基于所述目标码流,确定第一频率信号、第二频率信号、第三频率信号和第四频率信号;所述第一频率信号的频率大于第一阈值,所述第二频率信号的频率小于或等于第一阈值,所述第三频率信号的频率大于第二阈值,所述第四频率信号的频率小于或等于第二阈值;A first determination module 402 is used to determine a first frequency signal, a second frequency signal, a third frequency signal and a fourth frequency signal based on the target code stream; the frequency of the first frequency signal is greater than a first threshold, the frequency of the second frequency signal is less than or equal to the first threshold, the frequency of the third frequency signal is greater than a second threshold, and the frequency of the fourth frequency signal is less than or equal to the second threshold;
第二确定模块403,用于基于所述第一频率信号和所述第二频率信号确定主触觉信号,基于所述第三频率信号和所述第四频率信号确定所述主触觉信号相关联的次触觉信号。The second determining module 403 is configured to determine a primary tactile signal based on the first frequency signal and the second frequency signal, and determine a secondary tactile signal associated with the primary tactile signal based on the third frequency signal and the fourth frequency signal.
可选地,所述目标码流包括第一码流、第二码流和第三码流,所述第一确定模块402,具体用于:Optionally, the target code stream includes a first code stream, a second code stream and a third code stream, and the first determining module 402 is specifically configured to:
对解码所述第一码流得到的第一关键帧进行插值处理获取第二频率信号,对解码所述第一码流得到的第二关键帧进行插值处理获取第四频率信号;Performing interpolation processing on a first key frame obtained by decoding the first code stream to obtain a second frequency signal, and performing interpolation processing on a second key frame obtained by decoding the first code stream to obtain a fourth frequency signal;
解码所述第二码流,确定第一频率信号;Decoding the second code stream to determine a first frequency signal;
解码所述第三码流,确定第三频率信号。The third code stream is decoded to determine a third frequency signal.
可选地,所述目标码流包括第二码流、第三码流、第四码流和第五码流,所述第一确定模块402,还具体用于:Optionally, the target code stream includes a second code stream, a third code stream, a fourth code stream and a fifth code stream, and the first determining module 402 is further specifically configured to:
对解码所述第四码流得到的第一关键帧进行插值处理,获取第二频率信号;Performing interpolation processing on the first key frame obtained by decoding the fourth bit stream to obtain a second frequency signal;
基于解码所述第五码流得到的第二关键帧和所述第二频率信号,确定第四频率信号; Determine a fourth frequency signal based on a second key frame and the second frequency signal obtained by decoding the fifth bitstream;
解码所述第二码流,确定第一频率信号;Decoding the second code stream to determine a first frequency signal;
解码所述第三码流,确定第三频率信号。The third code stream is decoded to determine a third frequency signal.
可选地,所述目标码流包括第二码流、第三码流、第四码流和第五码流,所述第一确定模块402,还具体用于:Optionally, the target code stream includes a second code stream, a third code stream, a fourth code stream and a fifth code stream, and the first determining module 402 is further specifically configured to:
基于解码所述第四码流得到的第一关键帧,确定第二频率信号;Determining a second frequency signal based on a first key frame obtained by decoding the fourth bit stream;
基于解码所述第五码流得到的第二关键帧,确定第四频率信号;Determining a fourth frequency signal based on a second key frame obtained by decoding the fifth bit stream;
解码所述第二码流,确定第一频率信号;Decoding the second code stream to determine a first frequency signal;
解码所述第三码流,确定第三频率信号。The third code stream is decoded to determine a third frequency signal.
可选地,所述第一确定模块402,还具体用于:Optionally, the first determining module 402 is further specifically configured to:
解码所述第四码流,得到第一关键帧;Decoding the fourth bit stream to obtain a first key frame;
在所述第一关键帧对应的主触觉信号为最大主触觉信号的情况下,对所述第一关键帧进行插值处理获取第二频率信号;所述最大主触觉信号为N个主触觉信号中功率最大的主触觉信号,N为大于或等于1的正整数;When the main tactile signal corresponding to the first key frame is a maximum main tactile signal, interpolation processing is performed on the first key frame to obtain a second frequency signal; the maximum main tactile signal is a main tactile signal with the largest power among N main tactile signals, where N is a positive integer greater than or equal to 1;
在N大于1,且所述第一关键帧对应的主触觉信号不为最大主触觉信号的情况下,基于所述第一关键帧和第一目标信号,确定第二频率信号;所述第一目标信号为目标主触觉信号对应的低频信号,所述目标主触觉信号为所述N个主触觉信号中排序在所述第一关键帧对应的主触觉信号前一位的主触觉信号。When N is greater than 1 and the main tactile signal corresponding to the first key frame is not the maximum main tactile signal, a second frequency signal is determined based on the first key frame and the first target signal; the first target signal is a low-frequency signal corresponding to the target main tactile signal, and the target main tactile signal is a main tactile signal that is sorted before the main tactile signal corresponding to the first key frame among the N main tactile signals.
可选地,所述第一确定模块402,还具体用于:Optionally, the first determining module 402 is further specifically configured to:
基于所述第二关键帧和所述第二频率信号,确定第四频率信号;或者,determining a fourth frequency signal based on the second key frame and the second frequency signal; or,
对所述第二关键帧进行插值处理确定第四频率信号。An interpolation process is performed on the second key frame to determine a fourth frequency signal.
可选地,所述第一确定模块402,还具体用于:Optionally, the first determining module 402 is further specifically configured to:
解码所述第二码流,获得第一小波系数;Decoding the second code stream to obtain first wavelet coefficients;
对反量化处理后的第一小波系数进行逆小波变换,获得第一频率信号。An inverse wavelet transform is performed on the first wavelet coefficient after the inverse quantization process to obtain a first frequency signal.
可选地,所述第一确定模块402,还具体用于:Optionally, the first determining module 402 is further specifically configured to:
解码所述第三码流,获得第二小波系数;Decoding the third code stream to obtain second wavelet coefficients;
对反量化处理后的第二小波系数进行逆小波变换,获得第三频率信号。The inverse wavelet transform is performed on the second wavelet coefficients after the inverse quantization process to obtain a third frequency signal.
本申请实施例中,编码主触觉信号对应的第一频率信号和第二频率信号,以及次触觉信号对应的第三频率信号和第四频率信号,生成目标码流,以此 通过编码多点触觉信号的方式实现触觉信号编码,而不是逐一编码每个单点触觉信号实现触觉信号编码,提高了触觉信号编码的编码效率。In the embodiment of the present application, the first frequency signal and the second frequency signal corresponding to the main tactile signal, and the third frequency signal and the fourth frequency signal corresponding to the secondary tactile signal are encoded to generate a target code stream. The tactile signal encoding is realized by encoding multi-point tactile signals instead of encoding each single-point tactile signal one by one, thereby improving the encoding efficiency of the tactile signal encoding.
本申请实施例提供的应用于编码端的触觉信号编码装置能够实现图1的方法实施例实现的各个过程,并达到相同的技术效果,为避免重复,这里不再赘述。The tactile signal encoding device applied to the encoding end provided in the embodiment of the present application can implement each process implemented in the method embodiment of Figure 1 and achieve the same technical effect. To avoid repetition, it will not be repeated here.
本申请实施例提供的应用于解码端的触觉信号解码装置能够实现图2的方法实施例实现的各个过程,并达到相同的技术效果,为避免重复,这里不再赘述。The tactile signal decoding device applied to the decoding end provided in the embodiment of the present application can implement each process implemented by the method embodiment of FIG. 2 and achieve the same technical effect. To avoid repetition, it will not be described again here.
本申请实施例中的触觉信号编码装置和触觉信号解码装置可以是电子设备,例如具有操作系统的电子设备,也可以是电子设备中的部件、例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,终端可以包括但不限于上述所列举的终端的类型,其他设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)等,本申请实施例不作具体限定。The tactile signal encoding device and the tactile signal decoding device in the embodiments of the present application may be electronic devices, such as electronic devices with an operating system, or components in electronic devices, such as integrated circuits or chips. The electronic device may be a terminal, or may be other devices other than a terminal. Exemplarily, the terminal may include but is not limited to the types of terminals listed above, and other devices may be servers, network attached storage (NAS), etc., which are not specifically limited in the embodiments of the present application.
可选地,如图5所示,本申请实施例还提供一种通信设备500,包括处理器501和存储器502,存储器502上存储有可在所述处理器501上运行的程序或指令,例如,该通信设备500为终端时,该程序或指令被处理器501执行时实现以下操作:Optionally, as shown in FIG. 5 , an embodiment of the present application further provides a communication device 500, including a processor 501 and a memory 502, wherein the memory 502 stores a program or instruction that can be run on the processor 501. For example, when the communication device 500 is a terminal, the program or instruction is executed by the processor 501 to implement the following operations:
获取目标对象的区块组对应的N个主触觉信号和每个主触觉信号相关联的次触觉信号;Acquire N primary tactile signals corresponding to the block group of the target object and secondary tactile signals associated with each primary tactile signal;
对所述N个主触觉信号和每个主触觉信号相关联的次触觉信号进行频带分解,获得每个主触觉信号对应的第一频率信号和第二频率信号,以及每个次触觉信号对应的第三频率信号和第四频率信号;Performing frequency band decomposition on the N main tactile signals and the secondary tactile signals associated with each main tactile signal to obtain a first frequency signal and a second frequency signal corresponding to each main tactile signal, and a third frequency signal and a fourth frequency signal corresponding to each secondary tactile signal;
编码所述第一频率信号、所述第二频率信号、所述第三频率信号和所述第四频率信号,生成目标码流。The first frequency signal, the second frequency signal, the third frequency signal and the fourth frequency signal are encoded to generate a target code stream.
或者,处理器501用于执行以下操作:Alternatively, the processor 501 is configured to perform the following operations:
获取目标码流;Get the target code stream;
基于所述目标码流,确定第一频率信号、第二频率信号、第三频率信号和第四频率信号; Based on the target code stream, determining a first frequency signal, a second frequency signal, a third frequency signal and a fourth frequency signal;
基于所述第一频率信号和所述第二频率信号确定主触觉信号,基于所述第三频率信号和所述第四频率信号确定所述主触觉信号相关联的次触觉信号。A primary haptic signal is determined based on the first frequency signal and the second frequency signal, and a secondary haptic signal associated with the primary haptic signal is determined based on the third frequency signal and the fourth frequency signal.
该电子设备实施例与方法实施例对应,上述方法实施例的各个实施过程和实现方式均可适用于该电子设备实施例中,且能达到相同的技术效果。The electronic device embodiment corresponds to the method embodiment, and each implementation process and implementation method of the above method embodiment can be applied to the electronic device embodiment and can achieve the same technical effect.
本申请实施例还提供一种终端,具体地,图6为实现本申请实施例的一种终端的硬件结构示意图。The embodiment of the present application further provides a terminal. Specifically, FIG6 is a schematic diagram of the hardware structure of a terminal implementing the embodiment of the present application.
该终端600包括但不限于:射频单元601、网络模块602、音频输出单元603、输入单元604、传感器605、显示单元606、用户输入单元607、接口单元608、存储器609、以及处理器610等部件。The terminal 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, and a processor 610.
本领域技术人员可以理解,终端600还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器610逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图6中示出的终端结构并不构成对终端的限定,终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art will appreciate that the terminal 600 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 610 through a power management system, so as to implement functions such as managing charging, discharging, and power consumption management through the power management system. The terminal structure shown in FIG6 does not constitute a limitation on the terminal, and the terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently, which will not be described in detail here.
应理解的是,本申请实施例中,输入单元604可以包括图形处理器(Graphics Processing Unit,GPU)6041和麦克风6042,图形处理器6041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元606可包括显示面板6061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板6061。用户输入单元607包括触控面板6071以及其他输入设备6072中的至少一种。触控面板6071,也称为触摸屏。触控面板6071可包括触摸检测装置和触摸控制器两个部分。其他输入设备6072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that in the embodiment of the present application, the input unit 604 may include a graphics processing unit (GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 607 includes a touch panel 6071 and at least one of other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts: a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
本申请实施例中,射频单元601接收来自网络侧设备的下行数据后,可以传输给处理器610进行处理;射频单元601可以向网络侧设备发送上行数据。通常,射频单元601包括但不限于天线、放大器、收发信机、耦合器、低噪声放大器、双工器等。In the embodiment of the present application, after receiving downlink data from the network side device, the RF unit 601 can transmit the data to the processor 610 for processing; the RF unit 601 can send uplink data to the network side device. Generally, the RF unit 601 includes but is not limited to an antenna, an amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc.
存储器609可用于存储软件程序或指令以及各种数据。存储器609可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一 存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器609可以包括易失性存储器或非易失性存储器,或者,存储器609可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器609包括但不限于这些和任意其它适合类型的存储器。The memory 609 can be used to store software programs or instructions and various data. The memory 609 can mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area The storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 609 may include a volatile memory or a non-volatile memory, or the memory 609 may include both a volatile memory and 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 a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 609 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
处理器610可包括一个或多个处理单元;可选的,处理器610集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器610中。The processor 610 may include one or more processing units; optionally, the processor 610 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 610.
其中,处理器610用于执行以下操作:The processor 610 is configured to perform the following operations:
获取目标对象的区块组对应的N个主触觉信号和每个主触觉信号相关联的次触觉信号;Acquire N primary tactile signals corresponding to the block group of the target object and secondary tactile signals associated with each primary tactile signal;
对所述N个主触觉信号和每个主触觉信号相关联的次触觉信号进行频带分解,获得每个主触觉信号对应的第一频率信号和第二频率信号,以及每个次触觉信号对应的第三频率信号和第四频率信号;Performing frequency band decomposition on the N main tactile signals and the secondary tactile signals associated with each main tactile signal to obtain a first frequency signal and a second frequency signal corresponding to each main tactile signal, and a third frequency signal and a fourth frequency signal corresponding to each secondary tactile signal;
编码所述第一频率信号、所述第二频率信号、所述第三频率信号和所述第四频率信号,生成目标码流。The first frequency signal, the second frequency signal, the third frequency signal and the fourth frequency signal are encoded to generate a target code stream.
或者,处理器610用于执行以下操作:Alternatively, the processor 610 is configured to perform the following operations:
获取目标码流;Get the target code stream;
基于所述目标码流,确定第一频率信号、第二频率信号、第三频率信号 和第四频率信号;Based on the target code stream, determine the first frequency signal, the second frequency signal, and the third frequency signal and a fourth frequency signal;
基于所述第一频率信号和所述第二频率信号确定主触觉信号,基于所述第三频率信号和所述第四频率信号确定所述主触觉信号相关联的次触觉信号。A primary haptic signal is determined based on the first frequency signal and the second frequency signal, and a secondary haptic signal associated with the primary haptic signal is determined based on the third frequency signal and the fourth frequency signal.
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述触觉信号编码方法实施例的各个过程,或者实现上述触觉信号解码方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned tactile signal encoding method embodiment are implemented, or the various processes of the above-mentioned tactile signal decoding method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
其中,所述处理器为上述实施例中所述的终端中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。The processor is the processor in the terminal 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.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述触觉信号编码方法实施例的各个过程,或者实现上述触觉信号解码方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。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 method embodiment, or to implement the various processes of the above-mentioned tactile signal decoding method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片,系统芯片,芯片系统或片上系统芯片等。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.
本申请实施例另提供了一种计算机程序/程序产品,所述计算机程序/程序产品被存储在存储介质中,所述计算机程序/程序产品被至少一个处理器执行以实现上述触觉信号编码方法实施例的各个过程,或者实现上述触觉信号解码方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiments of the present application further provide a computer program/program product, which is stored in a storage medium, and is executed by at least one processor to implement the various processes of the above-mentioned tactile signal encoding method embodiment, or to implement the various processes of the above-mentioned tactile signal decoding method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
本申请实施例另提供了一种系统,所述系统包括编码端和解码端,所述编码端执行上述应用于编码端的触觉信号编码方法实施例的各个过程,所述解码端执行上述应用于解码端的触觉信号解码方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a system, which includes an encoding end and a decoding end. The encoding end executes the various processes of the above-mentioned embodiment of the tactile signal encoding method applied to the encoding end, and the decoding end executes the various processes of the above-mentioned embodiment of the tactile signal decoding method applied to the decoding end, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下, 由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including 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 more restrictions, An element defined by the sentence "comprising 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 noted 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 a reverse 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 be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。 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 the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims (34)

  1. 一种触觉信号编码方法,包括:A tactile signal encoding method, comprising:
    编码端获取目标对象的区块组对应的N个主触觉信号和每个主触觉信号相关联的次触觉信号;所述N个主触觉信号和每个主触觉信号相关联的次触觉信号基于所述区块组对应的多个触觉信号确定,N为大于或等于1的正整数;The encoder obtains N main tactile signals corresponding to the block group of the target object and a secondary tactile signal associated with each main tactile signal; the N main tactile signals and the secondary tactile signal associated with each main tactile signal are determined based on a plurality of tactile signals corresponding to the block group, where N is a positive integer greater than or equal to 1;
    所述编码端对所述N个主触觉信号和每个主触觉信号相关联的次触觉信号进行频带分解,获得每个主触觉信号对应的第一频率信号和第二频率信号,以及每个次触觉信号对应的第三频率信号和第四频率信号;所述第一频率信号的频率大于第一阈值,所述第二频率信号的频率小于或等于第一阈值,所述第三频率信号的频率大于第二阈值,所述第四频率信号的频率小于或等于第二阈值;The encoding end performs frequency band decomposition on the N main tactile signals and the secondary tactile signals associated with each main tactile signal to obtain a first frequency signal and a second frequency signal corresponding to each main tactile signal, and a third frequency signal and a fourth frequency signal corresponding to each secondary tactile signal; the frequency of the first frequency signal is greater than a first threshold, the frequency of the second frequency signal is less than or equal to the first threshold, the frequency of the third frequency signal is greater than a second threshold, and the frequency of the fourth frequency signal is less than or equal to the second threshold;
    所述编码端编码所述第一频率信号、所述第二频率信号、所述第三频率信号和所述第四频率信号,生成目标码流。The encoding end encodes the first frequency signal, the second frequency signal, the third frequency signal, and the fourth frequency signal to generate a target code stream.
  2. 根据权利要求1所述的方法,其中,所述编码所述第一频率信号、所述第二频率信号、所述第三频率信号和所述第四频率信号,生成目标码流包括:The method according to claim 1, wherein encoding the first frequency signal, the second frequency signal, the third frequency signal, and the fourth frequency signal to generate a target code stream comprises:
    所述编码端提取所述第二频率信号对应的第一关键帧和所述第四频率信号对应的第二关键帧;The encoding end extracts a first key frame corresponding to the second frequency signal and a second key frame corresponding to the fourth frequency signal;
    所述编码端编码所述第一关键帧和所述第二关键帧,生成第一码流;The encoding end encodes the first key frame and the second key frame to generate a first bitstream;
    所述编码端基于所述第一频率信号和第一信号残差确定第二码流,基于所述第三频率信号和第二信号残差确定第三码流;所述第一信号残差基于所述第二频率信号和所述第一关键帧确定,所述第二信号残差基于所述第四频率信号和所述第二关键帧确定;The encoding end determines a second code stream based on the first frequency signal and the first signal residual, and determines a third code stream based on the third frequency signal and the second signal residual; the first signal residual is determined based on the second frequency signal and the first key frame, and the second signal residual is determined based on the fourth frequency signal and the second key frame;
    所述编码端根据所述第一码流、所述第二码流和所述第三码流,生成目标码流。The encoding end generates a target bitstream according to the first bitstream, the second bitstream and the third bitstream.
  3. 根据权利要求1所述的方法,其中,所述编码所述第一频率信号、所述第二频率信号、所述第三频率信号和所述第四频率信号,生成目标码流包括:The method according to claim 1, wherein encoding the first frequency signal, the second frequency signal, the third frequency signal, and the fourth frequency signal to generate a target code stream comprises:
    所述编码端提取所述第二频率信号对应的第一关键帧,并编码所述第一 关键帧,生成第四码流;The encoding end extracts the first key frame corresponding to the second frequency signal and encodes the first Key frame, generate the fourth code stream;
    所述编码端对所述第四频率信号与所述第二频率信号进行差值运算获得所述第四频率信号对应的第二关键帧,并编码所述第二关键帧,生成第五码流;The encoding end performs a difference operation on the fourth frequency signal and the second frequency signal to obtain a second key frame corresponding to the fourth frequency signal, and encodes the second key frame to generate a fifth bit stream;
    所述编码端基于所述第一频率信号和第一信号残差确定第二码流,基于所述第三频率信号和第二信号残差确定第三码流;所述第一信号残差基于所述第二频率信号和所述第一关键帧确定,所述第二信号残差基于所述第四频率信号和所述第二关键帧确定;The encoding end determines a second code stream based on the first frequency signal and the first signal residual, and determines a third code stream based on the third frequency signal and the second signal residual; the first signal residual is determined based on the second frequency signal and the first key frame, and the second signal residual is determined based on the fourth frequency signal and the second key frame;
    根据所述第二码流、所述第三码流、所述第四码流和所述第五码流,生成目标码流。A target code stream is generated according to the second code stream, the third code stream, the fourth code stream and the fifth code stream.
  4. 根据权利要求1所述的方法,其中,所述编码所述第一频率信号、所述第二频率信号、所述第三频率信号和所述第四频率信号,生成目标码流包括:The method according to claim 1, wherein encoding the first frequency signal, the second frequency signal, the third frequency signal, and the fourth frequency signal to generate a target code stream comprises:
    所述编码端编码所述第二频率信号对应的第一关键帧,生成第四码流;The encoding end encodes the first key frame corresponding to the second frequency signal to generate a fourth bit stream;
    所述编码端编码所述第四频率信号对应的第二关键帧,生成第五码流;The encoding end encodes the second key frame corresponding to the fourth frequency signal to generate a fifth bit stream;
    所述编码端基于所述第一频率信号和第一信号残差确定第二码流,基于所述第三频率信号和第二信号残差确定第三码流;所述第一信号残差基于所述第二频率信号和所述第一关键帧确定,所述第二信号残差基于所述第四频率信号和所述第二关键帧确定;The encoding end determines a second code stream based on the first frequency signal and the first signal residual, and determines a third code stream based on the third frequency signal and the second signal residual; the first signal residual is determined based on the second frequency signal and the first key frame, and the second signal residual is determined based on the fourth frequency signal and the second key frame;
    根据所述第二码流、所述第三码流、所述第四码流和所述第五码流,生成目标码流。A target code stream is generated according to the second code stream, the third code stream, the fourth code stream and the fifth code stream.
  5. 根据权利要求4所述的方法,其中,在N大于1的情况下,所述N个主触觉信号按照功率从大到小的顺序排序,所述编码所述第二频率信号对应的第一关键帧,生成第四码流包括:The method according to claim 4, wherein, when N is greater than 1, the N main tactile signals are sorted in order of power from large to small, and the encoding of the first key frame corresponding to the second frequency signal to generate the fourth bit stream comprises:
    所述编码端在所述第二频率信号对应的主触觉信号为最大主触觉信号的情况下,提取所述第二频率信号对应的第一关键帧,并编码所述第一关键帧生成所述第四码流;所述最大主触觉信号为所述N个主触觉信号中功率最大的主触觉信号;The encoding end extracts a first key frame corresponding to the second frequency signal and encodes the first key frame to generate the fourth bit stream when the main tactile signal corresponding to the second frequency signal is a maximum main tactile signal; the maximum main tactile signal is a main tactile signal with the largest power among the N main tactile signals;
    所述编码端在所述第二频率信号对应的主触觉信号不为最大主触觉信号的情况下,对所述第二频率信号与第一目标信号进行差值运算获得所述第二 频率信号对应的第一关键帧,并编码所述第一关键帧生成所述第四码流;所述第一目标信号为目标主触觉信号对应的低频信号,所述目标主触觉信号为所述N个主触觉信号中排序在所述第二频率信号对应的主触觉信号前一位的主触觉信号。The encoding end performs a difference operation on the second frequency signal and the first target signal to obtain the second frequency signal when the main tactile signal corresponding to the second frequency signal is not the maximum main tactile signal. The first target signal is a low-frequency signal corresponding to a target main tactile signal, and the target main tactile signal is a main tactile signal that is sorted before the main tactile signal corresponding to the second frequency signal among the N main tactile signals.
  6. 根据权利要求4所述的方法,其中,所述编码所述第四频率信号对应的第二关键帧,生成第五码流包括:The method according to claim 4, wherein encoding the second key frame corresponding to the fourth frequency signal to generate the fifth bitstream comprises:
    所述编码端对所述第四频率信号与所述第二频率信号进行差值运算获得所述第四频率信号对应的第二关键帧,并编码所述第二关键帧,生成所述第五码流;或者,The encoding end performs a difference operation on the fourth frequency signal and the second frequency signal to obtain a second key frame corresponding to the fourth frequency signal, and encodes the second key frame to generate the fifth bit stream; or,
    所述编码端提取所述第四频率信号对应的第二关键帧,并编码所述第二关键帧,生成所述第五码流。The encoding end extracts a second key frame corresponding to the fourth frequency signal, and encodes the second key frame to generate the fifth code stream.
  7. 根据权利要求2-6中任一项所述的方法,其中,所述基于所述第一频率信号和第一信号残差确定第二码流包括:The method according to any one of claims 2 to 6, wherein determining the second code stream based on the first frequency signal and the first signal residual comprises:
    所述编码端对所述第一关键帧进行插值处理,获得第二目标信号;The encoding end performs interpolation processing on the first key frame to obtain a second target signal;
    所述编码端根据所述第二频率信号和所述第二目标信号,确定第一信号残差;The encoding end determines a first signal residual according to the second frequency signal and the second target signal;
    所述编码端根据所述第一频率信号和所述第一信号残差,确定第三目标信号;The encoding end determines a third target signal according to the first frequency signal and the first signal residual;
    所述编码端对所述第三目标信号进行小波变换,得到第一小波系数;The encoding end performs wavelet transform on the third target signal to obtain first wavelet coefficients;
    所述编码端编码量化处理后的所述第一小波系数,生成所述第二码流。The encoding end encodes the first wavelet coefficients after quantization processing to generate the second code stream.
  8. 根据权利要求2-6中任一项所述的方法,其中,所述基于所述第三频率信号和第二信号残差确定第三码流包括:The method according to any one of claims 2 to 6, wherein determining the third code stream based on the third frequency signal and the second signal residual comprises:
    所述编码端对所述第二关键帧进行插值处理,获得第四目标信号;The encoding end performs interpolation processing on the second key frame to obtain a fourth target signal;
    所述编码端根据所述第四频率信号和所述第四目标信号,确定第二信号残差;The encoding end determines a second signal residual according to the fourth frequency signal and the fourth target signal;
    所述编码端根据所述第三频率信号和所述第二信号残差,确定第五目标信号;The encoding end determines a fifth target signal according to the third frequency signal and the second signal residual;
    所述编码端对所述第五目标信号进行小波变换,得到第二小波系数;The encoding end performs wavelet transform on the fifth target signal to obtain second wavelet coefficients;
    所述编码端编码量化处理后的所述第二小波系数,生成所述第三码流。 The encoding end encodes the second wavelet coefficients after quantization processing to generate the third code stream.
  9. 一种触觉信号解码方法,包括:A tactile signal decoding method, comprising:
    解码端获取目标码流;The decoding end obtains the target bitstream;
    所述解码端基于所述目标码流,确定第一频率信号、第二频率信号、第三频率信号和第四频率信号;所述第一频率信号的频率大于第一阈值,所述第二频率信号的频率小于或等于第一阈值,所述第三频率信号的频率大于第二阈值,所述第四频率信号的频率小于或等于第二阈值;The decoding end determines, based on the target bitstream, a first frequency signal, a second frequency signal, a third frequency signal, and a fourth frequency signal; the frequency of the first frequency signal is greater than a first threshold, the frequency of the second frequency signal is less than or equal to the first threshold, the frequency of the third frequency signal is greater than a second threshold, and the frequency of the fourth frequency signal is less than or equal to the second threshold;
    所述解码端基于所述第一频率信号和所述第二频率信号确定主触觉信号,基于所述第三频率信号和所述第四频率信号确定所述主触觉信号相关联的次触觉信号。The decoding end determines a main tactile signal based on the first frequency signal and the second frequency signal, and determines a secondary tactile signal associated with the main tactile signal based on the third frequency signal and the fourth frequency signal.
  10. 根据权利要求9所述的方法,其中,所述目标码流包括第一码流、第二码流和第三码流,基于所述目标码流,确定第一频率信号、第二频率信号、第三频率信号和第四频率信号包括:The method according to claim 9, wherein the target code stream includes a first code stream, a second code stream, and a third code stream, and based on the target code stream, determining the first frequency signal, the second frequency signal, the third frequency signal, and the fourth frequency signal comprises:
    所述解码端对解码所述第一码流得到的第一关键帧进行插值处理获取第二频率信号,对解码所述第一码流得到的第二关键帧进行插值处理获取第四频率信号;The decoding end performs interpolation processing on the first key frame obtained by decoding the first code stream to obtain a second frequency signal, and performs interpolation processing on the second key frame obtained by decoding the first code stream to obtain a fourth frequency signal;
    所述解码端解码所述第二码流,确定第一频率信号;The decoding end decodes the second code stream to determine a first frequency signal;
    所述解码端解码所述第三码流,确定第三频率信号。The decoding end decodes the third code stream to determine a third frequency signal.
  11. 根据权利要求9所述的方法,其中,所述目标码流包括第二码流、第三码流、第四码流和第五码流,基于所述目标码流,确定第一频率信号、第二频率信号、第三频率信号和第四频率信号包括:The method according to claim 9, wherein the target code stream includes a second code stream, a third code stream, a fourth code stream, and a fifth code stream, and based on the target code stream, determining the first frequency signal, the second frequency signal, the third frequency signal, and the fourth frequency signal comprises:
    所述解码端对解码所述第四码流得到的第一关键帧进行插值处理,获取第二频率信号;The decoding end performs interpolation processing on the first key frame obtained by decoding the fourth bit stream to obtain a second frequency signal;
    所述解码端基于解码所述第五码流得到的第二关键帧和所述第二频率信号,确定第四频率信号;The decoding end determines a fourth frequency signal based on a second key frame and the second frequency signal obtained by decoding the fifth bit stream;
    所述解码端解码所述第二码流,确定第一频率信号;The decoding end decodes the second code stream to determine a first frequency signal;
    所述解码端解码所述第三码流,确定第三频率信号。The decoding end decodes the third code stream to determine a third frequency signal.
  12. 根据权利要求9所述的方法,其中,所述目标码流包括第二码流、第三码流、第四码流和第五码流,基于所述目标码流,确定第一频率信号、第二频率信号、第三频率信号和第四频率信号包括: The method according to claim 9, wherein the target code stream includes a second code stream, a third code stream, a fourth code stream, and a fifth code stream, and based on the target code stream, determining the first frequency signal, the second frequency signal, the third frequency signal, and the fourth frequency signal comprises:
    所述解码端基于解码所述第四码流得到的第一关键帧,确定第二频率信号;The decoding end determines a second frequency signal based on a first key frame obtained by decoding the fourth bit stream;
    所述解码端基于解码所述第五码流得到的第二关键帧,确定第四频率信号;The decoding end determines a fourth frequency signal based on a second key frame obtained by decoding the fifth bit stream;
    所述解码端解码所述第二码流,确定第一频率信号;The decoding end decodes the second code stream to determine a first frequency signal;
    所述解码端解码所述第三码流,确定第三频率信号。The decoding end decodes the third code stream to determine a third frequency signal.
  13. 根据权利要求12所述的方法,其中,所述基于解码所述第四码流得到的第一关键帧,确定第二频率信号包括:The method according to claim 12, wherein determining the second frequency signal based on the first key frame obtained by decoding the fourth bit stream comprises:
    所述解码端解码所述第四码流,得到第一关键帧;The decoding end decodes the fourth bit stream to obtain a first key frame;
    所述解码端在所述第一关键帧对应的主触觉信号为最大主触觉信号的情况下,对所述第一关键帧进行插值处理获取第二频率信号;所述最大主触觉信号为N个主触觉信号中功率最大的主触觉信号,N为大于或等于1的正整数;The decoding end performs interpolation processing on the first key frame to obtain a second frequency signal when the main tactile signal corresponding to the first key frame is a maximum main tactile signal; the maximum main tactile signal is a main tactile signal with the largest power among N main tactile signals, where N is a positive integer greater than or equal to 1;
    所述解码端在N大于1,且所述第一关键帧对应的主触觉信号不为最大主触觉信号的情况下,基于所述第一关键帧和第一目标信号,确定第二频率信号;所述第一目标信号为目标主触觉信号对应的低频信号,所述目标主触觉信号为所述N个主触觉信号中排序在所述第一关键帧对应的主触觉信号前一位的主触觉信号。The decoding end determines a second frequency signal based on the first key frame and the first target signal when N is greater than 1 and the main tactile signal corresponding to the first key frame is not the maximum main tactile signal; the first target signal is a low-frequency signal corresponding to the target main tactile signal, and the target main tactile signal is a main tactile signal that is sorted before the main tactile signal corresponding to the first key frame among the N main tactile signals.
  14. 根据权利要求12所述的方法,其中,所述基于解码所述第五码流得到的第二关键帧,确定第四频率信号包括:The method according to claim 12, wherein determining the fourth frequency signal based on the second key frame obtained by decoding the fifth bit stream comprises:
    所述解码端基于所述第二关键帧和所述第二频率信号,确定第四频率信号;或者,The decoding end determines a fourth frequency signal based on the second key frame and the second frequency signal; or,
    所述解码端对所述第二关键帧进行插值处理确定第四频率信号。The decoding end performs interpolation processing on the second key frame to determine a fourth frequency signal.
  15. 根据权利要求10-14中任一项所述的方法,其中,所述解码所述第二码流,确定第一频率信号包括:The method according to any one of claims 10 to 14, wherein the decoding of the second code stream and determining the first frequency signal comprises:
    所述解码端解码所述第二码流,获得第一小波系数;The decoding end decodes the second bit stream to obtain first wavelet coefficients;
    所述解码端对反量化处理后的第一小波系数进行逆小波变换,获得第一频率信号。The decoding end performs inverse wavelet transform on the first wavelet coefficients after inverse quantization processing to obtain a first frequency signal.
  16. 根据权利要求10-14中任一项所述的方法,其中,所述解码所述第三 码流,确定第三频率信号包括:The method according to any one of claims 10 to 14, wherein the decoding of the third The code stream determines that the third frequency signal includes:
    所述解码端解码所述第三码流,获得第二小波系数;The decoding end decodes the third bit stream to obtain second wavelet coefficients;
    所述解码端对反量化处理后的第二小波系数进行逆小波变换,获得第三频率信号。The decoding end performs inverse wavelet transform on the second wavelet coefficients after the inverse quantization process to obtain a third frequency signal.
  17. 一种触觉信号编码装置,应用于编码端,所述装置包括:A tactile signal encoding device, applied to an encoding end, comprising:
    获取模块,用于获取目标对象的区块组对应的N个主触觉信号和每个主触觉信号相关联的次触觉信号;所述N个主触觉信号和每个主触觉信号相关联的次触觉信号基于所述区块组对应的多个触觉信号确定,N为大于或等于1的正整数;an acquisition module, configured to acquire N main tactile signals corresponding to a block group of a target object and a secondary tactile signal associated with each main tactile signal; the N main tactile signals and the secondary tactile signal associated with each main tactile signal are determined based on a plurality of tactile signals corresponding to the block group, where N is a positive integer greater than or equal to 1;
    处理模块,用于对所述N个主触觉信号和每个主触觉信号相关联的次触觉信号进行频带分解,获得每个主触觉信号对应的第一频率信号和第二频率信号,以及每个次触觉信号对应的第三频率信号和第四频率信号;所述第一频率信号的频率大于第一阈值,所述第二频率信号的频率小于或等于第一阈值,所述第三频率信号的频率大于第二阈值,所述第四频率信号的频率小于或等于第二阈值;a processing module, configured to perform frequency band decomposition on the N main tactile signals and the secondary tactile signals associated with each main tactile signal, to obtain a first frequency signal and a second frequency signal corresponding to each main tactile signal, and a third frequency signal and a fourth frequency signal corresponding to each secondary tactile signal; the frequency of the first frequency signal is greater than a first threshold, the frequency of the second frequency signal is less than or equal to the first threshold, the frequency of the third frequency signal is greater than a second threshold, and the frequency of the fourth frequency signal is less than or equal to the second threshold;
    编码模块,用于编码所述第一频率信号、所述第二频率信号、所述第三频率信号和所述第四频率信号,生成目标码流。The encoding module is used to encode the first frequency signal, the second frequency signal, the third frequency signal and the fourth frequency signal to generate a target code stream.
  18. 根据权利要求17所述的装置,其中,所述编码模块,具体用于:The device according to claim 17, wherein the encoding module is specifically used to:
    提取所述第二频率信号对应的第一关键帧和所述第四频率信号对应的第二关键帧;Extracting a first key frame corresponding to the second frequency signal and a second key frame corresponding to the fourth frequency signal;
    编码所述第一关键帧和所述第二关键帧,生成第一码流;Encoding the first key frame and the second key frame to generate a first bitstream;
    基于所述第一频率信号和第一信号残差确定第二码流,基于所述第三频率信号和第二信号残差确定第三码流;所述第一信号残差基于所述第二频率信号和所述第一关键帧确定,所述第二信号残差基于所述第四频率信号和所述第二关键帧确定;Determine a second code stream based on the first frequency signal and the first signal residual, and determine a third code stream based on the third frequency signal and the second signal residual; the first signal residual is determined based on the second frequency signal and the first key frame, and the second signal residual is determined based on the fourth frequency signal and the second key frame;
    根据所述第一码流、所述第二码流和所述第三码流,生成目标码流。A target code stream is generated according to the first code stream, the second code stream and the third code stream.
  19. 根据权利要求17所述的装置,其中,所述编码模块,还具体用于:The apparatus according to claim 17, wherein the encoding module is further specifically configured to:
    提取所述第二频率信号对应的第一关键帧,并编码所述第一关键帧,生成第四码流; extracting a first key frame corresponding to the second frequency signal, and encoding the first key frame to generate a fourth bit stream;
    对所述第四频率信号与所述第二频率信号进行差值运算获得所述第四频率信号对应的第二关键帧,并编码所述第二关键帧,生成第五码流;performing a difference operation on the fourth frequency signal and the second frequency signal to obtain a second key frame corresponding to the fourth frequency signal, and encoding the second key frame to generate a fifth bit stream;
    基于所述第一频率信号和第一信号残差确定第二码流,基于所述第三频率信号和第二信号残差确定第三码流;所述第一信号残差基于所述第二频率信号和所述第一关键帧确定,所述第二信号残差基于所述第四频率信号和所述第二关键帧确定;Determine a second code stream based on the first frequency signal and the first signal residual, and determine a third code stream based on the third frequency signal and the second signal residual; the first signal residual is determined based on the second frequency signal and the first key frame, and the second signal residual is determined based on the fourth frequency signal and the second key frame;
    根据所述第二码流、所述第三码流、所述第四码流和所述第五码流,生成目标码流。A target code stream is generated according to the second code stream, the third code stream, the fourth code stream and the fifth code stream.
  20. 根据权利要求17所述的装置,其中,所述编码模块,还具体用于:The apparatus according to claim 17, wherein the encoding module is further specifically configured to:
    编码所述第二频率信号对应的第一关键帧,生成第四码流;encoding a first key frame corresponding to the second frequency signal to generate a fourth bit stream;
    编码所述第四频率信号对应的第二关键帧,生成第五码流;Encoding a second key frame corresponding to the fourth frequency signal to generate a fifth bit stream;
    基于所述第一频率信号和第一信号残差确定第二码流,基于所述第三频率信号和第二信号残差确定第三码流;所述第一信号残差基于所述第二频率信号和所述第一关键帧确定,所述第二信号残差基于所述第四频率信号和所述第二关键帧确定;Determine a second code stream based on the first frequency signal and the first signal residual, and determine a third code stream based on the third frequency signal and the second signal residual; the first signal residual is determined based on the second frequency signal and the first key frame, and the second signal residual is determined based on the fourth frequency signal and the second key frame;
    根据所述第二码流、所述第三码流、所述第四码流和所述第五码流,生成目标码流。A target code stream is generated according to the second code stream, the third code stream, the fourth code stream and the fifth code stream.
  21. 根据权利要求20所述的装置,其中,在N大于1的情况下,所述N个主触觉信号按照功率从大到小的顺序排序,所述编码模块,还具体用于:The device according to claim 20, wherein, when N is greater than 1, the N main tactile signals are sorted in order of power from large to small, and the encoding module is further specifically used to:
    在所述第二频率信号对应的主触觉信号为最大主触觉信号的情况下,提取所述第二频率信号对应的第一关键帧,并编码所述第一关键帧生成所述第四码流;所述最大主触觉信号为所述N个主触觉信号中功率最大的主触觉信号;When the main tactile signal corresponding to the second frequency signal is a maximum main tactile signal, extracting a first key frame corresponding to the second frequency signal, and encoding the first key frame to generate the fourth bit stream; the maximum main tactile signal is a main tactile signal with the largest power among the N main tactile signals;
    在所述第二频率信号对应的主触觉信号不为最大主触觉信号的情况下,对所述第二频率信号与第一目标信号进行差值运算获得所述第二频率信号对应的第一关键帧,并编码所述第一关键帧生成所述第四码流;所述第一目标信号为目标主触觉信号对应的低频信号,所述目标主触觉信号为所述N个主触觉信号中排序在所述第二频率信号对应的主触觉信号前一位的主触觉信号。When the main tactile signal corresponding to the second frequency signal is not the maximum main tactile signal, a difference operation is performed on the second frequency signal and the first target signal to obtain a first key frame corresponding to the second frequency signal, and the first key frame is encoded to generate the fourth code stream; the first target signal is a low-frequency signal corresponding to the target main tactile signal, and the target main tactile signal is a main tactile signal that is sorted before the main tactile signal corresponding to the second frequency signal among the N main tactile signals.
  22. 根据权利要求20所述的装置,其中,所述编码模块,还具体用于: The apparatus according to claim 20, wherein the encoding module is further specifically configured to:
    对所述第四频率信号与所述第二频率信号进行差值运算获得所述第四频率信号对应的第二关键帧,并编码所述第二关键帧,生成所述第五码流;或者,performing a difference operation on the fourth frequency signal and the second frequency signal to obtain a second key frame corresponding to the fourth frequency signal, and encoding the second key frame to generate the fifth bit stream; or,
    提取所述第四频率信号对应的第二关键帧,并编码所述第二关键帧,生成所述第五码流。A second key frame corresponding to the fourth frequency signal is extracted, and the second key frame is encoded to generate the fifth code stream.
  23. 根据权利要求18-22中任一项所述的装置,其中,所述编码模块,还具体用于:The device according to any one of claims 18 to 22, wherein the encoding module is further specifically used for:
    对所述第一关键帧进行插值处理,获得第二目标信号;Performing interpolation processing on the first key frame to obtain a second target signal;
    根据所述第二频率信号和所述第二目标信号,确定第一信号残差;Determining a first signal residual according to the second frequency signal and the second target signal;
    根据所述第一频率信号和所述第一信号残差,确定第三目标信号;Determining a third target signal according to the first frequency signal and the first signal residual;
    对所述第三目标信号进行小波变换,得到第一小波系数;Performing wavelet transform on the third target signal to obtain first wavelet coefficients;
    编码量化处理后的所述第一小波系数,生成所述第二码流。The first wavelet coefficients after quantization are encoded to generate the second code stream.
  24. 根据权利要求18-22中任一项所述的装置,其中,所述编码模块,还具体用于:The device according to any one of claims 18 to 22, wherein the encoding module is further specifically used for:
    对所述第二关键帧进行插值处理,获得第四目标信号;performing interpolation processing on the second key frame to obtain a fourth target signal;
    根据所述第四频率信号和所述第四目标信号,确定第二信号残差;Determining a second signal residual according to the fourth frequency signal and the fourth target signal;
    根据所述第三频率信号和所述第二信号残差,确定第五目标信号;Determining a fifth target signal according to the third frequency signal and the second signal residual;
    对所述第五目标信号进行小波变换,得到第二小波系数;Performing wavelet transform on the fifth target signal to obtain second wavelet coefficients;
    编码量化处理后的所述第二小波系数,生成所述第三码流。The second wavelet coefficients after quantization are encoded to generate the third code stream.
  25. 一种触觉信号解码装置,应用于解码端,所述装置包括:A tactile signal decoding device, applied to a decoding end, comprising:
    获取模块,用于获取目标码流;An acquisition module is used to acquire a target bitstream;
    第一确定模块,用于基于所述目标码流,确定第一频率信号、第二频率信号、第三频率信号和第四频率信号;所述第一频率信号的频率大于第一阈值,所述第二频率信号的频率小于或等于第一阈值,所述第三频率信号的频率大于第二阈值,所述第四频率信号的频率小于或等于第二阈值;A first determination module is used to determine a first frequency signal, a second frequency signal, a third frequency signal and a fourth frequency signal based on the target code stream; the frequency of the first frequency signal is greater than a first threshold, the frequency of the second frequency signal is less than or equal to the first threshold, the frequency of the third frequency signal is greater than a second threshold, and the frequency of the fourth frequency signal is less than or equal to the second threshold;
    第二确定模块,用于基于所述第一频率信号和所述第二频率信号确定主触觉信号,基于所述第三频率信号和所述第四频率信号确定所述主触觉信号相关联的次触觉信号。The second determination module is configured to determine a primary tactile signal based on the first frequency signal and the second frequency signal, and to determine a secondary tactile signal associated with the primary tactile signal based on the third frequency signal and the fourth frequency signal.
  26. 根据权利要求25所述的装置,其中,所述目标码流包括第一码流、第 二码流和第三码流,所述第一确定模块,具体用于:The device according to claim 25, wherein the target code stream comprises a first code stream, a second code stream, The second code stream and the third code stream, the first determining module is specifically used to:
    对解码所述第一码流得到的第一关键帧进行插值处理获取第二频率信号,对解码所述第一码流得到的第二关键帧进行插值处理获取第四频率信号;Performing interpolation processing on a first key frame obtained by decoding the first code stream to obtain a second frequency signal, and performing interpolation processing on a second key frame obtained by decoding the first code stream to obtain a fourth frequency signal;
    解码所述第二码流,确定第一频率信号;Decoding the second code stream to determine a first frequency signal;
    解码所述第三码流,确定第三频率信号。The third code stream is decoded to determine a third frequency signal.
  27. 根据权利要求25所述的装置,其中,所述目标码流包括第二码流、第三码流、第四码流和第五码流,所述第一确定模块,还具体用于:The apparatus according to claim 25, wherein the target code stream includes a second code stream, a third code stream, a fourth code stream, and a fifth code stream, and the first determining module is further specifically configured to:
    对解码所述第四码流得到的第一关键帧进行插值处理,获取第二频率信号;Performing interpolation processing on the first key frame obtained by decoding the fourth bit stream to obtain a second frequency signal;
    基于解码所述第五码流得到的第二关键帧和所述第二频率信号,确定第四频率信号;Determine a fourth frequency signal based on a second key frame and the second frequency signal obtained by decoding the fifth code stream;
    解码所述第二码流,确定第一频率信号;Decoding the second code stream to determine a first frequency signal;
    解码所述第三码流,确定第三频率信号。The third code stream is decoded to determine a third frequency signal.
  28. 根据权利要求25所述的装置,其中,所述目标码流包括第二码流、第三码流、第四码流和第五码流,所述第一确定模块,还具体用于:The apparatus according to claim 25, wherein the target code stream includes a second code stream, a third code stream, a fourth code stream, and a fifth code stream, and the first determining module is further specifically configured to:
    基于解码所述第四码流得到的第一关键帧,确定第二频率信号;Determining a second frequency signal based on a first key frame obtained by decoding the fourth bit stream;
    基于解码所述第五码流得到的第二关键帧,确定第四频率信号;Determining a fourth frequency signal based on a second key frame obtained by decoding the fifth bit stream;
    解码所述第二码流,确定第一频率信号;Decoding the second code stream to determine a first frequency signal;
    解码所述第三码流,确定第三频率信号。The third code stream is decoded to determine a third frequency signal.
  29. 根据权利要求28所述的装置,其中,所述第一确定模块,还具体用于:The apparatus according to claim 28, wherein the first determining module is further specifically configured to:
    解码所述第四码流,得到第一关键帧;Decoding the fourth bit stream to obtain a first key frame;
    在所述第一关键帧对应的主触觉信号为最大主触觉信号的情况下,对所述第一关键帧进行插值处理获取第二频率信号;所述最大主触觉信号为N个主触觉信号中功率最大的主触觉信号,N为大于或等于1的正整数;When the main tactile signal corresponding to the first key frame is a maximum main tactile signal, interpolation processing is performed on the first key frame to obtain a second frequency signal; the maximum main tactile signal is a main tactile signal with the largest power among N main tactile signals, where N is a positive integer greater than or equal to 1;
    在N大于1,且所述第一关键帧对应的主触觉信号不为最大主触觉信号的情况下,基于所述第一关键帧和第一目标信号,确定第二频率信号;所述第一目标信号为目标主触觉信号对应的低频信号,所述目标主触觉信号为所述N个主触觉信号中排序在所述第一关键帧对应的主触觉信号前一位的主触 觉信号。When N is greater than 1 and the main tactile signal corresponding to the first key frame is not the maximum main tactile signal, a second frequency signal is determined based on the first key frame and the first target signal; the first target signal is a low-frequency signal corresponding to the target main tactile signal, and the target main tactile signal is a main tactile signal that is ranked before the main tactile signal corresponding to the first key frame among the N main tactile signals. Feel the signal.
  30. 根据权利要求28所述的装置,其中,所述第一确定模块,还具体用于:The apparatus according to claim 28, wherein the first determining module is further specifically configured to:
    基于所述第二关键帧和所述第二频率信号,确定第四频率信号;或者,determining a fourth frequency signal based on the second key frame and the second frequency signal; or,
    对所述第二关键帧进行插值处理确定第四频率信号。An interpolation process is performed on the second key frame to determine a fourth frequency signal.
  31. 根据权利要求26-30中任一项所述的装置,其中,所述第一确定模块,还具体用于:The apparatus according to any one of claims 26 to 30, wherein the first determining module is further specifically configured to:
    解码所述第二码流,获得第一小波系数;Decoding the second code stream to obtain first wavelet coefficients;
    对反量化处理后的第一小波系数进行逆小波变换,获得第一频率信号。An inverse wavelet transform is performed on the first wavelet coefficient after the inverse quantization process to obtain a first frequency signal.
  32. 根据权利要求26-30中任一项所述的装置,其中,所述第一确定模块,还具体用于:The apparatus according to any one of claims 26 to 30, wherein the first determining module is further specifically configured to:
    解码所述第三码流,获得第二小波系数;Decoding the third code stream to obtain second wavelet coefficients;
    对反量化处理后的第二小波系数进行逆小波变换,获得第三频率信号。The inverse wavelet transform is performed on the second wavelet coefficients after the inverse quantization process to obtain a third frequency signal.
  33. 一种终端,包括处理器和存储器,其中,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-8中任一项所述的触觉信号编码方法的步骤,或者实现如权利要求9-16中任一项所述的触觉信号解码方法的步骤。A terminal comprises 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 method described in any one of claims 1 to 8 are implemented, or the steps of the tactile signal decoding method described in any one of claims 9 to 16 are implemented.
  34. 一种可读存储介质,所述可读存储介质上存储程序或指令,其中,所述程序或指令被处理器执行时实现如权利要求1-8中任一项所述的触觉信号编码方法的步骤,或者实现如权利要求9-16中任一项所述的触觉信号解码方法的步骤。 A readable storage medium storing a program or instruction, wherein when the program or instruction is executed by a processor, the program or instruction implements the steps of the tactile signal encoding method as described in any one of claims 1 to 8, or implements the steps of the tactile signal decoding method as described in any one of claims 9 to 16.
PCT/CN2023/128016 2022-11-08 2023-10-31 Tactile signal encoding method and apparatus, tactile signal decoding method and apparatus, and device WO2024099154A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211394128.1 2022-11-08
CN202211394128.1A CN118018745A (en) 2022-11-08 2022-11-08 Haptic signal encoding method, haptic signal decoding method, device and equipment

Publications (1)

Publication Number Publication Date
WO2024099154A1 true WO2024099154A1 (en) 2024-05-16

Family

ID=90958486

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/128016 WO2024099154A1 (en) 2022-11-08 2023-10-31 Tactile signal encoding method and apparatus, tactile signal decoding method and apparatus, and device

Country Status (2)

Country Link
CN (1) CN118018745A (en)
WO (1) WO2024099154A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111757127A (en) * 2019-03-29 2020-10-09 慕尼黑工业大学 Encoding/decoding apparatus and method for encoding/decoding vibrotactile signal
CN112534723A (en) * 2018-08-08 2021-03-19 索尼公司 Decoding device, decoding method, and program
CN114995638A (en) * 2022-05-12 2022-09-02 北京有竹居网络技术有限公司 Tactile signal generation method and device, readable medium and electronic equipment
CN115171709A (en) * 2022-09-05 2022-10-11 腾讯科技(深圳)有限公司 Voice coding method, voice decoding method, voice coding device, voice decoding device, computer equipment and storage medium
CN115209960A (en) * 2020-03-04 2022-10-18 索尼集团公司 Decoding device, decoding method, program, encoding device, and encoding method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112534723A (en) * 2018-08-08 2021-03-19 索尼公司 Decoding device, decoding method, and program
CN111757127A (en) * 2019-03-29 2020-10-09 慕尼黑工业大学 Encoding/decoding apparatus and method for encoding/decoding vibrotactile signal
CN115209960A (en) * 2020-03-04 2022-10-18 索尼集团公司 Decoding device, decoding method, program, encoding device, and encoding method
CN114995638A (en) * 2022-05-12 2022-09-02 北京有竹居网络技术有限公司 Tactile signal generation method and device, readable medium and electronic equipment
CN115171709A (en) * 2022-09-05 2022-10-11 腾讯科技(深圳)有限公司 Voice coding method, voice decoding method, voice coding device, voice decoding device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN118018745A (en) 2024-05-10

Similar Documents

Publication Publication Date Title
CN105144752B (en) The method and apparatus for representing to be compressed to higher order ambisonics and decompressing
CN110349081B (en) Image generation method and device, storage medium and electronic equipment
Tsai et al. An efficient ECG lossless compression system for embedded platforms with telemedicine applications
CN108271026A (en) The device and system of compression/de-compression, chip, electronic device
Ernawan et al. An efficient image compression technique using Tchebichef bit allocation
CN110349232B (en) Image generation method and device, storage medium and electronic equipment
US10140822B2 (en) Low bit rate parametric encoding and transport of haptic-tactile signals
CN109151477B (en) Image data encoding and decoding methods and devices
WO2020062998A1 (en) Image processing method, storage medium, and electronic device
CN1518706A (en) Apparauts and method for decoding and computing inverse discrete cosine transform using butterfly processor
CN108763350A (en) Text data processing method, device, storage medium and terminal
WO2024099154A1 (en) Tactile signal encoding method and apparatus, tactile signal decoding method and apparatus, and device
CN110941345A (en) Bidirectional interaction method and system based on brain signal controller
CN112422514B (en) Multimedia data transmission method and device, intelligent household equipment and storage medium
JP7341324B2 (en) Target user lock method and electronic device
Shaeri et al. A 64-channel neural signal processor/compressor based on Haar wavelet transform
WO2023046899A1 (en) Location-based haptic signal compression
CN113407031B (en) VR (virtual reality) interaction method, VR interaction system, mobile terminal and computer readable storage medium
CN116168717A (en) Voice separation method
WO2024099087A1 (en) Tactile signal encoding method, tactile signal decoding method, and related device
CN105359523A (en) Techniques for low power video compression and transmission
WO2024099100A1 (en) Haptic signal processing method, apparatus and device
KR101166529B1 (en) Apparatus of generating haptic rendering, method of encoding touch data, generating haptic rendering and recording medium thereof
WO2023098801A1 (en) Point cloud attribute encoding method, point cloud decoding method, and terminal
CN112437333B (en) Program playing method, device, terminal equipment and storage medium