Abstract:
A method, an apparatus, and a system for migrating virtual machine backup information, which implement backup information migration after a virtual machine is migrated. The method includes: receiving, by a first backup server, a migration trigger message, where the migration trigger message carries pre-migration virtual-machine identification information and indication information of a second backup server; determining, by the first backup server, backup information of the virtual machine according to the pre-migration virtual-machine identification information; and sending, by the first backup server, the backup information to the second backup server. Therefore, the migrated virtual machine inherits backup information existing before the migration, such that the migrated virtual machine continues to be protected by backup data existing before the migration, and data of the virtual machine is backed up according to a backup policy existing before the migration.
Abstract:
A data backup method and apparatus, a data restoration method and apparatus, and a server are presented. The backup method includes the following steps of obtaining, by a backup server, an original differential bitmap of a first target volume; obtaining valid data in each fixed-length data block from the first target volume according to the original differential bitmap; saving a bitmap corresponding to a fixed-length data block including the valid data to a fixed-length volume bitmap file of the fixed-length data block according to the original differential bitmap; and saving the valid data in the fixed-length data block to a fixed-length volume file of the fixed-length data block. According to the foregoing solution, only valid data is transmitted, an amount of data transmitted between the production end and the server can be reduced, a transmission speed can be increased, and storage space can be saved.
Abstract:
Embodiments of the present invention provide a method and an apparatus for allocating a device-to-device (D2D) communication resource. The method for allocating a device-to-device D2D communication resource in the present invention comprises: receiving, by a first network device, a device-to-device D2D communication capability sent by a user device within coverage; sending, by the first network device according to the communication capability, a resource identifier to each user device within the coverage of the first network device in a D2D group, where the D2D group includes at least two user devices; and sending, by the first network device, a resource allocation message, where the resource allocation message carries D2D communication resource allocation information corresponding to the resource identifier.
Abstract:
Embodiments of the present invention provide frame type detection and frame size detection methods and apparatuses for a video stream. The video frame type detection method includes: obtaining a size of a current video frame; obtaining a change feature value of the current video frame; obtaining an I-frame threshold of the current video frame; and determining whether the previous first video frame is an I frame according to the change feature value of the current video frame and a change feature value of the previous first video frame, the I-frame threshold of the current video frame, and the size of the current video frame, the size of the previous first video frame, and a size of a previous second video frame. The present invention provides a complete and effective frame type detection method; in addition, impact of a video frame rate is fully considered.
Abstract:
Embodiments of the present invention disclose a shooting method, an apparatus, and a terminal. The method includes: after it is detected that a camera is started, instructing a display screen facing a shooting person to display a preview image; obtaining a preset lighting parameter; controlling a display screen facing a shot target to provide lighting by using the preset lighting parameter; and shooting an image according to a shooting instruction. In the embodiments of the present invention, a display screen may be used as an auxiliary light source, and the display screen is controlled to provide lighting by using a preset lighting parameter, so that the quality of an image shot by a camera in a low light condition is improved.
Abstract:
A target localization method includes a server that receives a localization request sent by a first electronic device, where the localization request includes a to-be-processed image; the server recognizes a target in the to-be-processed image; the server searches a pose estimation model library for a target pose estimation model corresponding to the target, where the pose estimation model library includes pose estimation models respectively corresponding to a plurality of objects; the server obtains a pose of the target based on the to-be-processed image and the target pose estimation model; and the server sends the pose of the target to the first electronic device.
Abstract:
An acoustic module includes a speaker mesh and a fastener. The speaker mesh includes a first end face and a second end face that are opposite to each other. The first end face is provided with an installation cavity that is recessed to the second end face. The second end face is provided with a plurality of sound holes that are connected to the installation cavity. The first end face is configured to abut against a housing of the electronic device. The fastener is fastened in the installation cavity, and the fastener is configured to be fastened to the electronic device. The acoustic module is of a structure in which the fastener is wrapped by the speaker mesh. The first end face of the speaker mesh abuts against the electronic device, and the fastener is hidden in the installation cavity of the speaker mesh.
Abstract:
A backup processing method and a server are provided. The method is applied to a backup system, and the backup system includes a plurality of backup servers. The method includes: dividing, by a master backup server in the plurality of backup servers, a backup task into a plurality of child backup tasks; allocating, by the master backup server, each child backup task to each of the plurality of backup servers; and sending, by the master backup server, the plurality of child backup tasks to respective corresponding backup servers. According to this method, a data backup rate can be improved.
Abstract:
In a data backup method, after data backup is triggered, a backup server sends a change information obtaining request to a file server to request change information of data on the file server. The backup server receives a data change record returned by a file server, wherein the data change record comprises identification information of a changed data block. The backup server then obtains data according to the data change record, backs up the obtained data, and establishes a data mapping relationship for the current backup. When data of a backup needs to be obtained, data of a corresponding data block is found in the backup storage device according to the data mapping relationship.
Abstract:
A video processing method includes: receiving a video stream from a camera component; converting the video stream into at least one first data packet, where the at least one first data packet is independently encoded or decoded; and storing a first data packet obtained in a first reporting cycle as a first video clip.