Abstract:
An image processing method includes a first device that receives request information from a second device The first device obtains location information of M key points in a to-be-transmitted image and determines a target display area in the to-be-transmitted image based on the request information and the location information of the M key points and the first device sends target display area information to the second device to enable the second device to process the to-be-transmitted image into a target display image based on the target display area information. The second device receives the target display area information, processes the transmitted image into the target display image based on the target display area information, and presents the target display image on a display area of the second device.
Abstract:
A method and an apparatus for managing a data transmission channel includes obtaining a delay of data transmitted on a first channel and a continuity parameter of the first channel, and a delay of data transmitted on a second channel and a continuity parameter of the second channel; detecting whether a fault event occurs on the first channel; and switching a working channel of a source provider edge (PE) and a sink PE to the second channel when the fault event occurs on the first channel.
Abstract:
A method and an apparatus for managing a data transmission channel includes obtaining a delay of data transmitted on a first channel and a continuity parameter of the first channel, and a delay of data transmitted on a second channel and a continuity parameter of the second channel; detecting whether a fault event occurs on the first channel; and switching a working channel of a source provider edge (PE) and a sink PE to the second channel when the fault event occurs on the first channel.
Abstract:
This application provides a data transmission method, a communications apparatus, a network device, a communications system, a storage medium, and a computer program product, to resolve a current problem that bandwidth waste is relatively severe when a service is carried based on a FlexE technology. In this application, a frame structure of a fine-granularity service frame is newly defined, so that service data can be transmitted in a time division multiplexing mode by using an Ethernet (ETH) interface.
Abstract:
The present invention relates to a method and an apparatus for generating an executable file of a multi-instance service. The method includes: performing compilation for a source file corresponding to a multi-instance service, to obtain a first-class object file, where the multi-instance service includes N instances, and N is a natural number greater than or equal to 2; performing an object copy of the first-class object file N−1 times, to obtain N−1 new first-class object files; and performing linking to the first-class object file and the N−1 new first-class object files, to generate an executable file. In the present invention, an executable file is generated by performing mirroring and linking processing for an object file obtained by compilation, thereby reducing a development cost and a maintenance cost of software source code.
Abstract:
A method and an apparatus for signal synchronization are disclosed. The method for signal synchronization includes: A self-synchronizing first terminal device broadcasts first synchronization information, determines whether the first terminal device and a second terminal device have implemented signal synchronization when receiving second synchronization information sent by the second terminal device, and determines, based on a determining result, whether to synchronize with the second terminal device. This reduces a probability of communication interruption caused by synchronization source switching by the first terminal device after the second terminal device performs synchronization by using the first terminal device as a synchronization source. The method for signal synchronization may be applied to scenarios such as the intelligent driving, intelligent connected vehicles, and internet of vehicles.
Abstract:
A semantic similarity evaluation method includes performing word vectorization processing separately on words in a first sentence and a word in a second sentence to obtain a first word vector and a second word vector; performing, in a preset word vector compression order, compression coding processing on the first word vector according to a first compression coding parameter to obtain a first statement vector; performing, in the preset word vector compression order, compression coding processing on the second word vector according to a second compression coding parameter to obtain a second statement vector; and determining a vector distance between the first statement vector and the second statement vector, and evaluating a semantic similarity between the first sentence and the second sentence according to the vector distance. The method is used to evaluate a semantic similarity.
Abstract:
The present invention relates to a method and an apparatus for generating an executable file of a multi-instance service. The method includes: performing compilation for a source file corresponding to a multi-instance service, to obtain a first-class object file, where the multi-instance service includes N instances, and N is a natural number greater than or equal to 2; performing an object copy of the first-class object file N−1 times, to obtain N−1 new first-class object files; and performing linking to the first-class object file and the N−1 new first-class object files, to generate an executable file. In the present invention, an executable file is generated by performing mirroring and linking processing for an object file obtained by compilation, thereby reducing a development cost and a maintenance cost of software source code.
Abstract:
A semantic similarity evaluation method includes performing word vectorization processing separately on words in a first sentence and a word in a second sentence to obtain a first word vector and a second word vector; performing, in a preset word vector compression order, compression coding processing on the first word vector according to a first compression coding parameter to obtain a first statement vector; performing, in the preset word vector compression order, compression coding processing on the second word vector according to a second compression coding parameter to obtain a second statement vector; and determining a vector distance between the first statement vector and the second statement vector, and evaluating a semantic similarity between the first sentence and the second sentence according to the vector distance. The method is used to evaluate a semantic similarity.