Video data transmission method and device, storage medium and electronic equipment

By dividing video frames into data packets with sequence identification and adjusting power, combined with the reply message mechanism, the problem of low video data efficiency in Wi-Fi network transmission is solved, and more efficient video data transmission is achieved.

CN119325016AActive Publication Date: 2025-01-17ZHEJIANG DAHUA TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411366465.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2025-01-17
Estimated Expiration
2044-09-27

AI Technical Summary

Technical Problem

In the prior art, Wi-Fi networks are prone to network congestion, packet loss and low data transmission efficiency when transmitting video data, and no reasonable configuration and transmission strategy are carried out, resulting in low video data transmission efficiency.

Method used

The video frames collected by the image acquisition device are divided into data packets, and the transmission sequence is indicated by sequence identification, the transmission and reception power is adjusted, and the data flow is managed using reply messages to ensure the playback order of video frames and the dynamic adjustment of the network environment.

Benefits of technology

It improves the reliability and efficiency of video data transmission, reduces unnecessary retransmission, and improves the overall transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119325016A_ABST
    Figure CN119325016A_ABST
Patent Text Reader

Abstract

The invention discloses a video data transmission method and device, a storage medium and electronic equipment. The method comprises the following steps: respectively dividing each video frame in a group of video frames acquired by image acquisition equipment into a group of data messages; increasing the sending power, reducing the receiving power, and sequentially sending a first group of data messages corresponding to the first video frame to the monitoring platform according to the sequence identifier; in response to the fact that the first data message is sent, the receiving power is improved, and the sending power is reduced; and under the condition that a first response message corresponding to the first group of data messages is received, the sending power is improved, the receiving power is reduced, and a second group of data messages corresponding to the second video frame are sequentially sent to the monitoring platform according to the sequence identifier. The technical problem of low transmission efficiency of the video data is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular to a method and device for transmitting video data, a storage medium, and an electronic device. Background Art

[0002] Currently, video data is mainly transmitted through WiFi networks. Due to the limited transmission bandwidth of Wi-Fi networks and the influence of the wireless frequency band on the environment, interference and bit errors are prone to occur. Therefore, video transmission usually adopts the UDP protocol, which dynamically slices, encodes and transmits video streams in packets to avoid pauses, freezes and frame skipping during video playback.

[0003] However, in the related art, when using a Wi-Fi network to transmit video data, network congestion, packet loss and low data transmission efficiency are prone to occur. In addition, the Wi-Fi network is not properly configured in the related art, nor is a reasonable transmission strategy adopted, resulting in a technical problem of low transmission efficiency of video data.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a method and device for transmitting video data, a storage medium, and an electronic device, so as to at least solve the technical problem of low transmission efficiency of video data.

[0006] According to one aspect of an embodiment of the present application, a method for transmitting video data is provided, comprising: dividing each video frame in a group of video frames captured by an image acquisition device into a group of data packets, wherein each of the data packets includes a sequence identifier, and the sequence identifier is used to indicate the video frame to which the data packet belongs and the sending order; increasing the sending power, reducing the receiving power, and sending a first group of data packets corresponding to the first video frame to a monitoring platform in sequence according to the sequence identifier, wherein the first group of data packets includes a first data packet indicated by the sequence identifier as the last data packet sent in the first group of data packets; in response to the first data packet having been sent, increasing the receiving power and reducing the sending power; upon receiving a first reply packet corresponding to the first group of data packets, increasing the sending power, reducing the receiving power, and sending a second group of data packets corresponding to the second video frame to the monitoring platform in sequence according to the sequence identifier, wherein the first reply packet is used to indicate the packet in the first group of data packets that has been received by the monitoring platform, and the playback order of the second video frame is after the first video frame.

[0007] According to another aspect of an embodiment of the present application, a video data transmission device is also provided, including: a division module, used to divide each video frame in a group of video frames collected by an image acquisition device into a group of data packets, wherein each of the data packets includes a sequence identifier, and the sequence identifier is used to indicate the video frame to which the data packet belongs and the sending order; a first adjustment module, used to increase the sending power, reduce the receiving power, and send a first group of data packets corresponding to the first video frame to a monitoring platform in sequence according to the sequence identifier, wherein the first group of data packets includes the first data packet indicated by the sequence identifier as the last data packet sent in the first group of data packets; a second adjustment module, used to increase the receiving power and reduce the sending power in response to the first data packet having been sent; a transmission module, used to increase the sending power and reduce the receiving power when a first response packet corresponding to the first group of data packets is received, and send a second group of data packets corresponding to the second video frame to the monitoring platform in sequence according to the sequence identifier, wherein the first response packet is used to indicate the packets in the first group of data packets that have been received by the monitoring platform, and the playback order of the second video frame is after the first video frame.

[0008] Optionally, the device is also used to: upon receiving a first response message corresponding to the first group of data messages, increase the transmission power and reduce the receiving power, and after sending a second group of data messages corresponding to the second video frame to the monitoring platform in sequence according to the sequence identifier, in response to the second data message having been sent, increase the receiving power and reduce the transmission power, wherein the second data message indicates that the sequence identifier indicates that it is the last data message sent in the second group of data messages; upon receiving the second response message, increase the transmission power and reduce the receiving power, and send a third group of data messages corresponding to the third video frame to the monitoring platform in sequence according to the sequence identifier.

[0009] Optionally, the device is used to increase the sending power, reduce the receiving power, and send the second group of data packets corresponding to the second video frame to the monitoring platform in sequence according to the sequence identifier when a first reply message corresponding to the first group of data packets is received in the following manner: when the first reply message is received, determine the lost messages in the first group of data packets that are not received by the monitoring platform according to the first reply message; increase the sending power, reduce the receiving power, and send the lost messages to the monitoring platform; when the sending of the lost messages is completed, send the second group of data packets to the monitoring platform in sequence according to the sequence identifier.

[0010] Optionally, the device is also used to: obtain frame rate configuration information pre-set for the image acquisition device; transmit the frame rate configuration information to the monitoring platform so that the monitoring platform synchronizes the frame rate configuration information, wherein the monitoring platform is used to determine the frame interval duration according to the frame rate configuration information, and determine the first response message based on the frame interval duration and whether the monitoring platform receives the first data message, and the frame interval duration is used to indicate the interval for the image acquisition device to send video frames to the monitoring platform.

[0011] According to one aspect of an embodiment of the present application, a method for transmitting video data is provided, comprising: determining a frame interval duration according to frame rate configuration information pre-set for an image acquisition device, wherein the frame interval duration is used to represent an interval at which the image acquisition device sends video frames to a monitoring platform; in response to the monitoring platform receiving a first data packet in a first group of data packets corresponding to a first video frame, determining a first moment at which the first data packet is received, wherein the first video frame represents a video frame in a group of video frames acquired by the image acquisition device, each video frame in the group of video frames is respectively divided into a group of data packets for transmission, and each of the data packets includes a sequence identifier, and the sequence identifier is used to indicate the video frame to which the data packet belongs. and a sending order, the first data message represents the data message indicated by the sequence identifier as being the first data message sent in the first group of data messages; whenever the monitoring platform receives other data messages in the first group of data messages except the first data message, it determines the second moment when each of the other data messages is received; when the interval between the second moment and the first moment is less than or equal to the frame interval, and the other data messages include the first data message indicated by the sequence identifier as being the last data message sent in the first group of data messages, a first reply message is generated, and the first reply message is sent to the image acquisition device, wherein the first reply message is used to indicate the messages in the first group of data messages that have been received by the monitoring platform.

[0012] According to another aspect of an embodiment of the present application, a video data transmission device is also provided, including: a first determination module, used to determine the frame interval duration according to the frame rate configuration information pre-set for the image acquisition device, wherein the frame interval duration is used to represent the interval at which the image acquisition device sends video frames to a monitoring platform; a second determination module, used to determine the first moment of receiving the first data packet in response to the monitoring platform receiving the first data packet in the first group of data packets corresponding to the first video frame, wherein the first video frame represents a video frame in a group of video frames acquired by the image acquisition device, each video frame in the group of video frames is respectively divided into a group of data packets for sending, and each of the data packets includes a sequence identifier, and the sequence identifier is used to indicate the video to which the data packet belongs. Frame and sending order, the first data message represents the data message indicated by the sequence identifier as the first data message sent in the first group of data messages; a third determination module, used for determining the second moment of receiving each of the other data messages whenever the monitoring platform receives other data messages in the first group of data messages except the first data message; a transmission module, used for generating a first response message and sending the first response message to the image acquisition device when the interval between the second moment and the first moment is less than or equal to the frame interval, and the other data messages include the first data message indicated by the sequence identifier as the last data message sent in the first group of data messages. The first response message is used to indicate the message in the first group of data messages that has been received by the monitoring platform.

[0013] Optionally, the device is also used for: whenever the monitoring platform receives other data packets in the first group of data packets except the first data packet, after determining the second moment when each of the other data packets is received, if the interval duration between the second moment and the first moment is greater than the frame interval duration, generating the first response message and sending the first response message to the image acquisition device, wherein the first response message is also used to indicate that there are messages in the first group of data packets that have not been received by the monitoring platform.

[0014] Optionally, the device is used to generate a first reply message in the following manner when the interval between the second moment and the first moment is less than or equal to the frame interval, and the other data messages include the first data message indicated by the sequence identifier as the last data message sent in the first group of data messages: when the interval between the second moment and the first moment is less than or equal to the frame interval, and the other data messages include the first data message, determine the fourth group of data messages received by the monitoring platform; determine whether there is a lost message according to the sequence identifier corresponding to the fourth group of data messages, wherein the lost message represents a data message in the first group of data messages that has not been received by the monitoring platform; if there is a lost message, generate the first reply message based on the sequence identifier corresponding to the lost message, wherein the first reply message is also used to indicate a message that needs to be resent by the image acquisition device; if there is no lost message, generate the first reply message, wherein the first reply message is also used to indicate that the first group of reply messages has been sent.

[0015] Optionally, the device is used to determine whether there is a lost message according to the sequence identifier corresponding to the fourth group of data messages in the following manner: assemble the fourth group of data messages according to the sequence identifier corresponding to the fourth group of data messages; determine whether there is a lost message during the assembling process; if there is a lost message, determine the lost sequence identifier corresponding to the lost message, and add the lost sequence identifier to the first response message; if there is no lost message, generate the first video frame.

[0016] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned video data transmission method when running.

[0017] According to another aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above video data transmission method.

[0018] According to another aspect of the embodiments of the present application, there is further provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the video data transmission method through the computer program.

[0019] In an embodiment of the present application, each video frame in a group of video frames captured by an image acquisition device is divided into a group of data packets, wherein each data packet includes a sequence identifier, and the sequence identifier is used to indicate the video frame to which the data packet belongs and the sending order; the sending power is increased, the receiving power is reduced, and a first group of data packets corresponding to the first video frame are sent to the monitoring platform in sequence according to the sequence identifier, wherein the first group of data packets includes a first data packet indicated by the sequence identifier as the last data packet sent in the first group of data packets; in response to the first data packet having been sent, the receiving power is increased, and the sending power is reduced; and when a first response packet corresponding to the first group of data packets is received, the sending power is increased. The sending power is increased, the receiving power is reduced, and the second group of data packets corresponding to the second video frame are sent to the monitoring platform in sequence according to the sequence identifier, wherein the first response message is used to indicate the message in the first group of data messages that has been received by the monitoring platform, and the playback order of the second video frame is located after the first video frame, thereby ensuring the reliability and transmission quality of the video data transmission process, and at the same time, taking into account the dynamic adjustment of the network environment, thereby effectively improving the transmission efficiency of the video data, through the mechanism of sequence identification and response message, the data flow can be effectively managed, and unnecessary retransmission can be reduced, thereby improving the overall transmission efficiency, and then solving the technical problem of low transmission efficiency of video data. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0021] Figure 1 is a schematic diagram of an application environment of an optional video data transmission method according to an embodiment of the present application;

[0022] Figure 2 is a flowchart of an optional video data transmission method according to an embodiment of the present application;

[0023] Figure 3 is a schematic diagram of an optional video data transmission method according to an embodiment of the present application;

[0024] Figure 4 is a schematic diagram of another optional video data transmission method according to an embodiment of the present application;

[0025] Figure 5 is a schematic diagram of another optional video data transmission method according to an embodiment of the present application;

[0026] Figure 6 is a schematic diagram of another optional video data transmission method according to an embodiment of the present application;

[0027] Figure 7 is a schematic structural diagram of an optional video data transmission device according to an embodiment of the present application;

[0028] Figure 8 is a schematic structural diagram of an optional video data transmission product according to an embodiment of the present application;

[0029] Fig. 9 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0030] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0032] The present application is described below in conjunction with embodiments:

[0033] According to one aspect of an embodiment of the present application, a method for transmitting video data is provided. Optionally, in this embodiment, the method for transmitting video data can be applied to Figure 1 In the hardware environment composed of the server 101 and the terminal device 103 shown in FIG. Figure 1As shown, the server 101 is connected to the terminal 103 via a network, and can be used to provide services for the terminal device or an application 107 installed on the terminal device. The application can be a video application, an instant messaging application, a browser application, an educational application, a game application, etc. A database 105 may be set up on the server or independently of the server to provide data storage services for the server 101, for example, a game data storage server. The above-mentioned network may include, but is not limited to, a wired network and a wireless network, wherein the wired network includes, a local area network, a metropolitan area network and a wide area network; the wireless network includes, Bluetooth, WIFI and other networks that implement wireless communication; the terminal device 103 may be a terminal configured with an application, and may include, but is not limited to, at least one of the following: a mobile phone (such as an Android phone, an iOS phone, etc.), a laptop computer, a tablet computer, a PDA, a MID (Mobile Internet Devices), a PAD, a desktop computer, a smart TV, an intelligent voice interaction device, a smart home appliance, a vehicle-mounted terminal, an aircraft, a virtual reality (VR) terminal, an augmented reality (AR) terminal, a mixed reality (MR) terminal and other computer devices; the above-mentioned server may be a single server, a server cluster consisting of multiple servers, or a cloud server.

[0034] Combination Figure 1 As shown, the above-mentioned video data transmission method can be executed by an electronic device, which can be a terminal device or a server. The above-mentioned video data transmission method can be implemented by the terminal device or the server respectively, or by the terminal device and the server together.

[0035] The above is only an example and is not specifically limited in this embodiment.

[0036] Optionally, as an optional implementation, as Figure 2 As shown, the above-mentioned video data transmission method includes:

[0037] S202, dividing each video frame in a group of video frames acquired by the image acquisition device into a group of data packets, wherein each data packet includes a sequence identifier, and the sequence identifier is used to indicate the video frame to which the data packet belongs and the sending order;

[0038] Optionally, in an embodiment of the present application, the above-mentioned image acquisition device may include but is not limited to smart phones, computers, notebooks, smart wearable devices, cameras, etc. The above-mentioned data message can be understood as a data packet containing video frame information that can be transmitted in the network, and the above-mentioned sequence identifier refers to a number or code used to identify the position of the data message in the video frame sequence.

[0039] It should be noted that the above-mentioned sequence identifier can be used to determine the internal order of the data packet in a group of video frames, and which data frame the data packet belongs to. For example, the order of the data packet is expressed as 1.3, indicating that the data packet is the third data packet in the first video frame in the above-mentioned group of video frames.

[0040] For example, Figure 3 FIG. 1 is a schematic diagram of an optional method for transmitting video data according to an embodiment of the present application. The above set of video frames may include but are not limited to being transmitted via a WiFi network. The schematic diagram of Wi-Fi transmission of streaming media data is as follows: Figure 3 shown.

[0041] S204, increasing the transmission power, reducing the receiving power, and sending a first group of data packets corresponding to the first video frame to the monitoring platform in sequence according to the sequence identifier, wherein the first group of data packets includes a first data packet indicated by the sequence identifier as being sent last in the first group of data packets;

[0042] S206, in response to the first data message being sent, increasing the receiving power and reducing the sending power;

[0043] Optionally, in an embodiment of the present application, the above-mentioned sending power can be understood as the power level used by the image acquisition device when sending the first video frame, which is usually measured in milliwatts (mW) or decibel milliwatts (dBm). The above-mentioned receiving power refers to the power level used by the monitoring platform when receiving the first video frame. The above-mentioned monitoring platform can be understood as a system or service that receives and processes these data messages, which can be a server, a cloud service or a local monitoring system.

[0044] It should be noted that Figure 4 is a schematic diagram of another optional video data transmission method according to an embodiment of the present application, such as Figure 4 As shown, when using a WiFi network to transmit data messages, its receiving power and transmitting power can both represent the power of the WiFi network card, and can also include the forwarding power of the WiFi router, etc. This application does not impose any limitation on this.

[0045] For example, the signal strength is increased at the image acquisition device to ensure that data packets can be transmitted more efficiently, while the power may be reduced at the monitoring platform to save energy or reduce interference. The sequence identifier is used to ensure that the data packets are sent to the monitoring platform in the correct order.

[0046] For example, the image acquisition device has a video frame to send, and its corresponding first set of data messages is as follows:

[0047] Data message 1: contains the header information of the video frame and a part of the video data, and has a sequence identifier 1, indicating that this is the first data message in the group;

[0048] Data message 2: contains another part of the video frame data and has a sequence identifier 2, indicating that this is the second data message in the group;

[0049] The first data packet: contains the last part of the video frame data and carries a sequence identifier 3, indicating that this is the last one of the group of data packets.

[0050] It should be noted that the above-mentioned sequence identifier is not limited to the use of digital representation, but can also be characters, etc. For example, in the above example: data message 1 carries sequence identifier a, indicating that this is the first data message in the group; data message 2 carries sequence identifier b, indicating that this is the second data message in the group; the first data message carries sequence identifier c, indicating that this is the last data message in the group.

[0051] Further, after the first data message is successfully sent, the receiving power is increased to receive a response or confirmation from the monitoring platform, and at the same time, the sending power is reduced to save energy or prepare to receive data.

[0052] Specifically, it includes but is not limited to the case where the image acquisition device determines that only the last data packet (the first data packet) in the current video frame has not been sent. At this time, by setting the sequence identifier of the first data packet and sending it to the monitoring platform, the receiving power of the monitoring platform can be increased accordingly, and the sending power of the image acquisition device after sending the first data packet can be reduced.

[0053] S208, when receiving the first response message corresponding to the first group of data messages, increase the sending power and reduce the receiving power, and send the second group of data messages corresponding to the second video frame to the monitoring platform in sequence according to the sequence identifier, wherein the first response message is used to indicate the message in the first group of data messages that has been received by the monitoring platform, and the playback order of the second video frame is after the first video frame.

[0054] Optionally, in an embodiment of the present application, the first response message can be used to confirm that the monitoring platform has successfully received the signal of the first group of data messages, and the second group of data messages can be some messages in the first group of data messages that have not been received by the monitoring platform, or can be data messages in the second video frame newly captured by the image acquisition device, that is, on the monitoring platform, the second video frame should not be played until the first video frame is finished playing.

[0055] Exemplarily, after receiving the first set of data packets, the monitoring platform will send a response packet to the image acquisition device to confirm that the data has been successfully received. After receiving the first response packet, the image acquisition device will increase the transmission power to ensure that subsequent data packets can be more reliably transmitted to the monitoring platform. At the same time, it will reduce the receiving power of the monitoring platform, save energy, and reduce interference.

[0056] In an exemplary embodiment, taking a camera as an image acquisition device as an example, Figure 4 As shown:

[0057] S401, the business layer first configures the frame rate configuration information of the video to the reliable transport layer based on UDP through the interface, encodes the video acquisition data into a video frame format, and calls the interface to send the encoded video frame to the reliable transport layer based on UDP;

[0058] S402, the reliable transport layer based on UDP first transmits the frame rate and other related information to the monitoring side of the other end through signaling, and slices the received service layer video frame according to the MTU size, and the video frame is divided into multiple data packets (the above-mentioned first group of data packets); the communication protocol information (sequence number, identifier, etc.) is carried in the header of each packet, and the last packet of the video frame carries the frame data end identifier (the above-mentioned sequence identifier); finally, the message encoded by the communication protocol is sent to the Wi-Fi driver module for transmission;

[0059] S403, after the camera Wi-Fi network card receives the sending command and data based on the UDP reliable transport layer, it reduces the receiving antenna power of the Wi-Fi module and increases the sending antenna power to increase the coverage of the Wi-Fi and improve the transmission quality, and then sends the message to the router through the Wi-Fi network card. When the last message of a video frame is sent, because all the messages of a video frame have been sent, the receiving antenna power of the Wi-Fi module can be increased and the sending antenna power can be reduced to prepare for better reception of the response message;

[0060] S404: The monitoring side receives the segmented video frame message, and decides whether to reply to the response message (the first response message) according to the message identification information, the frame rate configuration and the RTT information, and sorts and frames the video frame messages at the same time, and notifies the service layer to read after assembling a complete video frame;

[0061] S405, when assembling the reply message, carry information such as whether the packet is lost in the message. If a message is lost, the sequence number of the lost message needs to be carried in the reply message;

[0062] S406, after receiving the notification from the reliable transport layer based on UDP, the business layer knows that a complete video frame has been received. At this time, the business layer can read the data and decode and play it or store it for backup;

[0063] S407, after receiving the response message of the video frame message, the camera releases the video frame slice buffer space, and if the response message contains packet loss message report information, the message corresponding to the sequence number is retransmitted.

[0064] Through the embodiment of the present application, each video frame in a group of video frames captured by an image acquisition device is divided into a group of data packets, wherein each data packet includes a sequence identifier, and the sequence identifier is used to indicate the video frame to which the data packet belongs and the sending order; the sending power is increased, the receiving power is reduced, and the first group of data packets corresponding to the first video frame are sent to the monitoring platform in sequence according to the sequence identifier, wherein the first group of data packets includes a first data packet indicated by the sequence identifier as the last data packet sent in the first group of data packets; in response to the first data packet having been sent, the receiving power is increased, and the sending power is reduced; when a first response packet corresponding to the first group of data packets is received, the sending power is increased. The sending power is increased, the receiving power is reduced, and the second group of data packets corresponding to the second video frame are sent to the monitoring platform in sequence according to the sequence identifier, wherein the first response message is used to indicate the message in the first group of data messages that has been received by the monitoring platform, and the playback order of the second video frame is located after the first video frame, thereby ensuring the reliability and transmission quality of the video data transmission process, and at the same time, taking into account the dynamic adjustment of the network environment, thereby effectively improving the transmission efficiency of the video data, through the mechanism of sequence identification and response message, the data flow can be effectively managed, and unnecessary retransmission can be reduced, thereby improving the overall transmission efficiency, and then solving the technical problem of low transmission efficiency of video data.

[0065] As an optional scheme, when the first reply message corresponding to the first group of data messages is received, the above-mentioned transmission power is increased, the above-mentioned receiving power is reduced, and the second group of data messages corresponding to the second video frame are sent to the monitoring platform in sequence according to the above-mentioned sequence identifier. The above-mentioned method also includes: in response to the second data message having been sent, the above-mentioned receiving power is increased, and the above-mentioned transmission power is reduced, wherein the above-mentioned second data message indicates that the above-mentioned sequence identifier indicates that it is the last data message sent in the above-mentioned second group of data messages; when the above-mentioned second reply message is received, the above-mentioned transmission power is increased, the above-mentioned receiving power is reduced, and the third group of data messages corresponding to the third video frame are sent to the monitoring platform in sequence according to the above-mentioned sequence identifier.

[0066] Optionally, in an embodiment of the present application, the second response message can be used to confirm that the monitoring platform has successfully received the signal of the second group of data messages, the third video frame is a video frame to be transmitted after the second video frame, and the third group of data messages can be understood as a data packet containing the third video frame information that can be transmitted in the network.

[0067] In an exemplary embodiment, Figure 5 FIG. 1 is a schematic diagram of another optional video data transmission method according to an embodiment of the present application. The processing flow of the image acquisition device sending a data message is as follows: Figure 5 As shown:

[0068] S502, sending a schedule;

[0069] S504, before sending the third group of data packets corresponding to the third video frame, first check whether there is a lost packet carrying a notification in the second response packet, if yes, execute S506, otherwise execute S508;

[0070] S506, obtaining the lost message;

[0071] S508, if there is no missing packet of the second video frame, obtain the data packet of the third video frame from the cache;

[0072] S510, prepare to send a message, adjust the Wi-Fi driver module, increase the power of the transmitting antenna, and reduce the power of the receiving antenna to obtain a better communication physical layer transmission channel;

[0073] S512, sending the data message obtained from the cache through the Wi-Fi network card driver;

[0074] S514, after all the messages are sent out, the sending module will basically receive a response message of the current video frame message before sending the next video frame message, so it is necessary to adjust the Wi-Fi driver module to reduce the power of the sending antenna and increase the power of the receiving antenna to prepare for receiving the response message;

[0075] S516, end.

[0076] Through the embodiments of the present application, based on the half-duplex characteristics of the Wi-Fi network and combined with the video frame rate characteristics, the transmission response timing is calculated according to the video frame rate characteristics to avoid conflicts between the video frame data transmission message and the response message transmission under the Wi-Fi half-duplex communication mechanism, thereby improving the transmission efficiency of the video data.

[0077] As an optional scheme, when the first response message corresponding to the first group of data messages is received, the above-mentioned transmission power is increased, the above-mentioned receiving power is decreased, and the second group of data messages corresponding to the second video frame are sent to the monitoring platform in sequence according to the above-mentioned sequence identifier, including: when the above-mentioned first response message is received, the lost messages in the above-mentioned first group of data messages that have not been received by the above-mentioned monitoring platform are determined according to the above-mentioned first response message; the above-mentioned transmission power is increased, the above-mentioned receiving power is decreased, and the above-mentioned lost messages are sent to the above-mentioned monitoring platform; when the sending of the above-mentioned lost messages is completed, the above-mentioned second group of data messages are sent to the monitoring platform in sequence according to the above-mentioned sequence identifier.

[0078] Optionally, in an embodiment of the present application, the above-mentioned lost message refers to the data message in the above-mentioned first group of data messages that failed to successfully reach the monitoring platform due to various reasons (such as signal interference, network congestion, hardware failure, etc.).

[0079] Exemplarily, lost messages can be understood as data messages that fail to successfully reach the monitoring platform during transmission, data messages that the monitoring platform does not confirm receipt of in the response message, that is, data messages that need to be resent to ensure data integrity and reliability.

[0080] In an exemplary embodiment, if certain data packets are not confirmed in the first response message of the monitoring platform, then these packets are considered to be lost, namely the above-mentioned lost packets. After the lost packets are determined, the transmission power can be adjusted to increase the signal strength, while the receiving power can be reduced to reduce interference. The network driver module corresponding to the image acquisition device (such as a WiFi network card, etc.) resends those lost packets that have not been confirmed to be received. After the lost packets are successfully retransmitted, the image acquisition device will continue to send subsequent data packets in sequence, thereby achieving the technical effect of ensuring the integrity and correctness of the received data packets.

[0081] As an optional scheme, the above method also includes: obtaining frame rate configuration information pre-set for the above image acquisition device; transmitting the above frame rate configuration information to the above monitoring platform so that the above monitoring platform synchronizes the above frame rate configuration information, wherein the above monitoring platform is used to determine the frame interval duration according to the above frame rate configuration information, and determine the above first response message based on the above frame interval duration and whether the above monitoring platform receives the above first data message, and the above frame interval duration is used to indicate the interval of the above image acquisition device sending video frames to the monitoring platform.

[0082] Optionally, in the embodiment of the present application, the frame rate configuration information can be understood as the number of frames that the image acquisition device can capture per second when capturing video, that is, the frame rate (Frames Per Second, FPS) of the video, and the frame rate configuration information can be a numerical value, indicating the maximum or preset frame rate that the image acquisition device can achieve under specific conditions, and the frame interval duration refers to the time interval between two consecutive video frames. If the frame rate is 30FPS, then the frame interval duration is 1 / 30 second, or approximately 33.33 milliseconds.

[0083] In yet another exemplary embodiment, Figure 6 is a schematic diagram of another optional video data transmission method according to an embodiment of the present application. The processing flow of the monitoring platform receiving the second set of data packets is as follows Figure 6 As shown:

[0084] S602, the monitoring platform receives the data message and processes it;

[0085] S604, sort and reorganize the messages (solve the disorder problem), and then cache and combine the messages;

[0086] S606, according to the video frame rate F, calculate the frame interval time length T1 = 1000 / F (ms), for example, if the video frame rate is 25, then the interval time length T1 between frames is 40ms;

[0087] S608, calculating the difference T2 between the currently received message and the first message of the current message video frame;

[0088] S610, whether T2 is greater than T1, if so, execute S614, otherwise execute S612;

[0089] S612, when T2 is less than T1, it means that it is still within a frame interval and there is no need to respond immediately. At this time, it is determined whether the data message carries a frame end mark, that is, whether it is the last data message (the first data message mentioned above). If so, execute S614, otherwise execute S6,0;

[0090] S614, when T2 is greater than T1, it means that a frame of data message has not been sent completely within a frame interval, and a response message needs to be assembled to respond to the data;

[0091] S616, after sending the response message, determine whether it can be assembled into a complete video frame, if so, execute S618, otherwise, execute S620;

[0092] S618, notifying the service layer to receive the complete video frame;

[0093] S620, end.

[0094] Through the embodiments of the present application, it is ensured that the monitoring platform can accurately synchronize the video stream and make appropriate responses when necessary.

[0095] As an optional scheme, a frame interval duration is determined according to frame rate configuration information pre-set for an image acquisition device, wherein the frame interval duration is used to represent an interval at which the image acquisition device sends video frames to a monitoring platform; in response to the monitoring platform receiving a first data packet in a first group of data packets corresponding to a first video frame, a first moment of receiving the first data packet is determined, wherein the first video frame represents a video frame in a group of video frames acquired by the image acquisition device, each video frame in the group of video frames is respectively divided into a group of data packets for transmission, each of the data packets includes a sequence identifier, the sequence identifier is used to indicate the video frame to which the data packet belongs and the transmission order, and the first The data message represents the data message indicated by the sequence identifier as the first data message sent in the first group of data messages; whenever the monitoring platform receives other data messages in the first group of data messages except the first data message, it determines the second moment when each of the other data messages is received; when the interval between the second moment and the first moment is less than or equal to the frame interval, and the other data messages include the first data message indicated by the sequence identifier as the last data message sent in the first group of data messages, a first reply message is generated and the first reply message is sent to the image acquisition device, wherein the first reply message is used to indicate the messages in the first group of data messages that have been received by the monitoring platform.

[0096] In an exemplary embodiment, it is assumed that the image acquisition device is configured to have 30 frames per second (30fps), which means that the interval between each frame is 1 / 30 seconds, or about 33.33 milliseconds. Then, the image acquisition device starts to capture video and divides each frame of video into multiple data packets according to the preset frame rate. For example, a frame of video is divided into 5 data packets, each of which contains a sequence identifier, such as 1 / 5, 2 / 5, 3 / 5, 4 / 5, 5 / 5, and the monitoring platform starts to receive data packets from the image acquisition device. The first data packet received is the data packet with the sequence identifier 1 / 5. The monitoring platform records the time when this data packet is received, which is called the first moment.

[0097] Furthermore, the monitoring platform continues to receive the remaining data packets. Whenever a new data packet is received, the monitoring platform records the receiving time, which is called the second moment, and checks the received data packet.

[0098] It should be noted that if the interval from the first moment to the second moment is less than or equal to 33.33 milliseconds, and the received data packet is the last data packet sent in the first group of data packets (for example, 5 / 5), the monitoring platform generates a response message, which indicates to the image acquisition device that the monitoring platform has successfully received this group of data packets.

[0099] Exemplarily, a response message is sent back to the image acquisition device to confirm that the monitoring platform has received a complete frame of data, so that the image acquisition device knows that it can continue to send the next frame of data messages, or perform other operations, such as retransmitting lost data messages.

[0100] Through the embodiments of the present application, the process of data transmission and synchronization between the image acquisition device and the monitoring platform in the video monitoring system is realized, which ensures the continuity and synchronization of the video data, and also allows the monitoring platform to manage and adjust problems that may arise during the data transmission process.

[0101] It is understandable that in the specific implementation of this application, related data such as user information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0102] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0103] According to another aspect of the embodiment of the present application, a video data transmission device for implementing the above-mentioned video data transmission method is also provided. Figure 7 As shown, the device comprises:

[0104] A division module 702 is used to divide each video frame in a group of video frames collected by the image acquisition device into a group of data packets, wherein each of the data packets includes a sequence identifier, and the sequence identifier is used to indicate the video frame to which the data packet belongs and the sending order;

[0105] A first adjustment module 704 is used to increase the transmission power, reduce the receiving power, and send the first group of data packets corresponding to the first video frame to the monitoring platform in sequence according to the sequence identifier, wherein the first group of data packets includes the first data packet indicated by the sequence identifier as the last data packet sent in the first group of data packets;

[0106] A second adjustment module 706, configured to increase the receiving power and reduce the transmitting power in response to the first data message being sent;

[0107] The transmission module 708 is used to increase the transmission power and reduce the receiving power when receiving the first response message corresponding to the first group of data messages, and send the second group of data messages corresponding to the second video frame to the monitoring platform in sequence according to the sequence identifier, wherein the first response message is used to indicate the message in the first group of data messages that has been received by the monitoring platform, and the playback order of the second video frame is after the first video frame.

[0108] Optionally, the device is also used to: upon receiving a first response message corresponding to the first group of data messages, increase the transmission power and reduce the receiving power, and after sending a second group of data messages corresponding to the second video frame to the monitoring platform in sequence according to the sequence identifier, in response to the second data message having been sent, increase the receiving power and reduce the transmission power, wherein the second data message indicates that the sequence identifier indicates that it is the last data message sent in the second group of data messages; upon receiving the second response message, increase the transmission power and reduce the receiving power, and send a third group of data messages corresponding to the third video frame to the monitoring platform in sequence according to the sequence identifier.

[0109] Optionally, the device is used to increase the sending power, reduce the receiving power, and send the second group of data packets corresponding to the second video frame to the monitoring platform in sequence according to the sequence identifier when a first reply message corresponding to the first group of data packets is received in the following manner: when the first reply message is received, determine the lost messages in the first group of data packets that are not received by the monitoring platform according to the first reply message; increase the sending power, reduce the receiving power, and send the lost messages to the monitoring platform; when the sending of the lost messages is completed, send the second group of data packets to the monitoring platform in sequence according to the sequence identifier.

[0110] Optionally, the device is also used to: obtain frame rate configuration information pre-set for the image acquisition device; transmit the frame rate configuration information to the monitoring platform so that the monitoring platform synchronizes the frame rate configuration information, wherein the monitoring platform is used to determine the frame interval duration according to the frame rate configuration information, and determine the first response message based on the frame interval duration and whether the monitoring platform receives the first data message, and the frame interval duration is used to indicate the interval for the image acquisition device to send video frames to the monitoring platform.

[0111] According to another aspect of an embodiment of the present application, a video data transmission device is also provided, including: a first determination module, used to determine the frame interval duration according to the frame rate configuration information pre-set for the image acquisition device, wherein the frame interval duration is used to represent the interval at which the image acquisition device sends video frames to a monitoring platform; a second determination module, used to determine the first moment of receiving the first data packet in response to the monitoring platform receiving the first data packet in the first group of data packets corresponding to the first video frame, wherein the first video frame represents a video frame in a group of video frames acquired by the image acquisition device, each video frame in the group of video frames is respectively divided into a group of data packets for sending, and each of the data packets includes a sequence identifier, and the sequence identifier is used to indicate the video to which the data packet belongs. Frame and sending order, the first data message represents the data message indicated by the sequence identifier as the first data message sent in the first group of data messages; a third determination module, used for determining the second moment of receiving each of the other data messages whenever the monitoring platform receives other data messages in the first group of data messages except the first data message; a transmission module, used for generating a first response message and sending the first response message to the image acquisition device when the interval between the second moment and the first moment is less than or equal to the frame interval, and the other data messages include the first data message indicated by the sequence identifier as the last data message sent in the first group of data messages. The first response message is used to indicate the message in the first group of data messages that has been received by the monitoring platform.

[0112] Optionally, the device is also used for: whenever the monitoring platform receives other data packets in the first group of data packets except the first data packet, after determining the second moment when each of the other data packets is received, if the interval duration between the second moment and the first moment is greater than the frame interval duration, generating the first response message and sending the first response message to the image acquisition device, wherein the first response message is also used to indicate that there are messages in the first group of data packets that have not been received by the monitoring platform.

[0113] Optionally, the device is used to generate a first reply message in the following manner when the interval between the second moment and the first moment is less than or equal to the frame interval, and the other data messages include the first data message indicated by the sequence identifier as the last data message sent in the first group of data messages: when the interval between the second moment and the first moment is less than or equal to the frame interval, and the other data messages include the first data message, determine the fourth group of data messages received by the monitoring platform; determine whether there is a lost message according to the sequence identifier corresponding to the fourth group of data messages, wherein the lost message represents a data message in the first group of data messages that has not been received by the monitoring platform; if there is a lost message, generate the first reply message based on the sequence identifier corresponding to the lost message, wherein the first reply message is also used to indicate a message that needs to be resent by the image acquisition device; if there is no lost message, generate the first reply message, wherein the first reply message is also used to indicate that the first group of reply messages has been sent.

[0114] Optionally, the device is used to determine whether there is a lost message according to the sequence identifier corresponding to the fourth group of data messages in the following manner: assemble the fourth group of data messages according to the sequence identifier corresponding to the fourth group of data messages; determine whether there is a lost message during the assembling process; if there is a lost message, determine the lost sequence identifier corresponding to the lost message, and add the lost sequence identifier to the first response message; if there is no lost message, generate the first video frame.

[0115] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0116] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0117] According to one aspect of the present application, a computer program product is provided. The computer program product includes a computer program.

[0118] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0119] Figure 8 The structure block diagram of a computer system for implementing an electronic device according to an embodiment of the present application is schematically shown.

[0120] It should be noted that Figure 8 The computer system 800 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0121] like Figure 8 As shown, the computer system 800 includes a central processing unit 801 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 802 (ROM) or the program loaded from the storage part 808 to the random access memory 803 (RAM). Various programs and data required for system operation are also stored in the random access memory 803. The central processing unit 801, the read-only memory 802 and the random access memory 803 are connected to each other through a bus 804. The input / output interface 805 (Input / Output interface, i.e., I / O interface) is also connected to the bus 804.

[0122] The following components are connected to the input / output interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a local area network card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the input / output interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed so that a computer program read therefrom is installed into the storage section 808 as needed.

[0123] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processor 801, various functions defined in the system of the present application are executed.

[0124] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processor 801, various functions provided by the embodiment of the present application are performed.

[0125] According to another aspect of the embodiment of the present application, an electronic device for implementing the above-mentioned video data transmission method is also provided. The electronic device may be Figure 1 The terminal device or server shown in the figure. This embodiment is described by taking the electronic device as a terminal device as an example. Fig. 9 As shown, the electronic device includes a memory 902 and a processor 904. The memory 902 stores a computer program, and the processor 904 is configured to execute the steps in any of the above method embodiments through the computer program.

[0126] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

[0127] Optionally, in this embodiment, the above-mentioned processor can be configured to execute the methods in each embodiment of the present application through a computer program.

[0128] Alternatively, a person skilled in the art may understand that: Fig. 9 The structure shown is for illustration only. Fig. 9 The structure of the electronic device is not limited. Fig. 9 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig. 9 Different configurations are shown.

[0129] Among them, the memory 902 can be used to store software programs and modules, such as the program instructions / modules corresponding to the video data transmission method and device in the embodiment of the present application. The processor 904 executes various functional applications and data processing by running the software programs and modules stored in the memory 902, that is, realizing the above-mentioned video data transmission method. The memory 902 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 902 may further include a memory remotely located relative to the processor 904, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 902 can be specifically, but not limited to, used to store information such as video frames. As an example, such as Fig. 9 As shown, the memory 902 may include, but is not limited to, the division module 602, the first adjustment module 604, the second adjustment module 606, and the transmission module 608 in the video data transmission device. In addition, other module units in the video data transmission device may also be included but are not limited to, which will not be repeated in this example.

[0130] Optionally, the transmission device 906 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 906 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 906 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0131] In addition, the electronic device further includes: a display 908 for displaying the video frame; and a connection bus 910 for connecting various module components in the electronic device.

[0132] In other embodiments, the terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. The nodes may form a peer-to-peer network, and any form of computing device, such as a server, terminal or other electronic device, may become a node in the blockchain system by joining the peer-to-peer network.

[0133] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the video data transmission method provided in various optional implementations of the above-mentioned video data transmission.

[0134] Optionally, in this embodiment, the above-mentioned computer-readable storage medium can be configured to store data for executing the methods in various embodiments of the present application.

[0135] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0136] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0137] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for one or more electronic devices to execute all or part of the steps of the methods described in each embodiment of the present application.

[0138] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0139] In the several embodiments provided in the present application, it should be understood that the disclosed application can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0140] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0141] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0142] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for transmitting video data, characterized in that: include: Divide each video frame in a group of video frames captured by the image acquisition device into a group of data packets, wherein each of the data packets includes a sequence identifier, and the sequence identifier is used to indicate the video frame to which the data packet belongs and the sending order; Increasing the transmission power, reducing the receiving power, and sending the first group of data packets corresponding to the first video frame to the monitoring platform in sequence according to the sequence identifier, wherein the first group of data packets includes the first data packet indicated by the sequence identifier as the last data packet sent in the first group of data packets; In response to the first data message being sent, increasing the receiving power and reducing the transmitting power; When the first response message corresponding to the first group of data messages is received, the sending power is increased, the receiving power is reduced, and the second group of data messages corresponding to the second video frame are sent to the monitoring platform in sequence according to the sequence identifier, wherein the first response message is used to indicate the messages in the first group of data messages that have been received by the monitoring platform, and the playback order of the second video frame is after the first video frame.

2. The method according to claim 1, characterized in that In the case of receiving the first response message corresponding to the first group of data messages, increasing the transmission power, reducing the receiving power, and sending the second group of data messages corresponding to the second video frame to the monitoring platform in sequence according to the sequence identifier, the method further includes: In response to a second data message being sent, increasing the receiving power and reducing the sending power, wherein the second data message indicates that the sequence identifier indicates that it is a data message sent last in the second group of data messages; When the second response message is received, the sending power is increased, the receiving power is reduced, and the third group of data messages corresponding to the third video frame are sent to the monitoring platform in sequence according to the sequence identifier.

3. The method according to claim 1, characterized in that The method of increasing the transmission power, reducing the reception power, and sending the second group of data packets corresponding to the second video frame to the monitoring platform in sequence according to the sequence identifier when receiving the first response packet corresponding to the first group of data packets comprises: In case of receiving the first response message, determining the lost messages in the first group of data messages that are not received by the monitoring platform according to the first response message; Increasing the transmission power, reducing the receiving power, and sending the lost message to the monitoring platform; When the sending of the lost message is completed, the second group of data messages are sent to the monitoring platform in sequence according to the sequence identifier.

4. The method according to claim 1, characterized in that The method further comprises: Acquire frame rate configuration information preset for the image acquisition device; The frame rate configuration information is transmitted to the monitoring platform so that the monitoring platform synchronizes the frame rate configuration information, wherein the monitoring platform is used to determine the frame interval duration according to the frame rate configuration information, and determine the first response message based on the frame interval duration and whether the monitoring platform receives the first data message, and the frame interval duration is used to indicate the interval at which the image acquisition device sends video frames to the monitoring platform.

5. A method for transmitting video data, characterized in that: include: Determine the frame interval duration according to the frame rate configuration information preset for the image acquisition device, wherein the frame interval duration is used to represent the interval at which the image acquisition device sends video frames to the monitoring platform; In response to the monitoring platform receiving a first data packet in a first group of data packets corresponding to a first video frame, determining a first moment of receiving the first data packet, wherein the first video frame represents a video frame in a group of video frames acquired by the image acquisition device, each video frame in the group of video frames is respectively divided into a group of data packets for transmission, each of the data packets comprises a sequence identifier, the sequence identifier is used to indicate the video frame to which the data packet belongs and the transmission order, and the first data packet represents the data packet indicated by the sequence identifier as being first transmitted in the first group of data packets; Whenever the monitoring platform receives other data packets in the first group of data packets except the first data packet, determine a second time when each of the other data packets is received; When the interval duration between the second moment and the first moment is less than or equal to the frame interval duration, and the other data packets include the first data packet indicated by the sequence identifier as being the last data packet sent in the first group of data packets, a first reply message is generated and the first reply message is sent to the image acquisition device, wherein the first reply message is used to indicate the messages in the first group of data packets that have been received by the monitoring platform.

6. The method according to claim 5, characterized in that Whenever the monitoring platform receives other data packets in the first group of data packets except the first data packet, after determining the second time at which each of the other data packets is received, the method further includes: When the interval duration between the second moment and the first moment is greater than the frame interval duration, the first response message is generated and sent to the image acquisition device, wherein the first response message is also used to indicate that there are messages in the first group of data messages that have not been received by the monitoring platform.

7. The method according to claim 5, characterized in that The generating of a first response message when the interval duration between the second moment and the first moment is less than or equal to the frame interval duration, and the other data messages include the first data message indicated by the sequence identifier as the last data message sent in the first group of data messages, comprises: When the interval between the second moment and the first moment is less than or equal to the frame interval, and the other data packets include the first data packet, determining that the monitoring platform has received a fourth group of data packets; Determining whether there is a lost message according to the sequence identifier corresponding to the fourth group of data messages, wherein the lost message represents a data message in the first group of data messages that is not received by the monitoring platform; In the case where the lost message exists, generating the first response message based on the sequence identifier corresponding to the lost message, wherein the first response message is also used to indicate the message that needs to be resent by the image acquisition device; In the case that the lost message does not exist, the first response message is generated, wherein the first response message is also used to indicate that the first group of response messages has been completed.

8. The method according to claim 7, characterized in that The determining whether there is a lost message according to the sequence identifier corresponding to the fourth group of data messages includes: Assembling the fourth group of data messages according to the sequence identifier corresponding to the fourth group of data messages; Determining whether the lost message exists during the assembling process; In the case where the lost message exists, determining a lost sequence identifier corresponding to the lost message, and adding the lost sequence identifier to the first response message; In the absence of the lost message, the first video frame is generated.

9. A video data transmission device, characterized in that: include: A division module, used to divide each video frame in a group of video frames collected by the image acquisition device into a group of data packets, wherein each of the data packets includes a sequence identifier, and the sequence identifier is used to indicate the video frame to which the data packet belongs and the sending order; A first adjustment module is used to increase the transmission power, reduce the receiving power, and send a first group of data packets corresponding to the first video frame to the monitoring platform in sequence according to the sequence identifier, wherein the first group of data packets includes the first data packet indicated by the sequence identifier as the last data packet sent in the first group of data packets; a second adjustment module, configured to increase the receiving power and reduce the transmitting power in response to the first data message being sent; A transmission module is used to increase the transmission power and reduce the receiving power when a first response message corresponding to the first group of data messages is received, and to send a second group of data messages corresponding to a second video frame to the monitoring platform in sequence according to the sequence identifier, wherein the first response message is used to indicate the message in the first group of data messages that has been received by the monitoring platform, and the playback order of the second video frame is after the first video frame.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein the computer program can be executed by an electronic device to perform the method described in any one of claims 1 to 4 or 5 to 8.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 4 or 5 to 8 are implemented.

12. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method described in any one of claims 1 to 4 or 5 to 8 through the computer program.

Citation Information

Patent Citations

  • Real-time video data transmission method and electronic equipment

    CN105450969A

  • Communication method and apparatus for Ad Hoc network

    CN106888500A

  • System and method for power control

    CN107113749A

  • Data sending method, communication device and computer storage medium

    CN114499803A

  • Video data transmission method and apparatus

    US20230224525A1