Transmission parameter adjusting method and device and computer equipment
By obtaining the total transmission bandwidth at the image receiver and combining it with personalized and general acquisition parameters, a baseline transmission bandwidth is determined. The transmission parameters are then adjusted according to the access status of the built-in switching chip, solving the problem of large fluctuations in transmission parameters and achieving stable and reliable information transmission.
Patent Information
- Application Number
- CN202511536762.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-23
- Publication Date
- 2026-01-23
AI Technical Summary
Existing methods for adjusting transmission parameters only adjust them based on real-time transmission conditions, resulting in large fluctuations in transmission parameters and reducing the reliability of information transmission.
By obtaining the total transmission bandwidth between the image receiver and each image acquisition terminal, and combining personalized and general acquisition parameters, the baseline transmission bandwidth of each image acquisition terminal is determined. The transmission parameters, including bandwidth and rate, are adjusted according to the access status of the built-in switching chip to achieve stable and reliable information transmission.
While ensuring the reliability of transmission bandwidth, it reduces frequent adjustments, improves the stability and reliability of information transmission, and adapts to the adjustment of transmission parameters in different access scenarios with built-in switching chips.
Smart Images

Figure CN121397274A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of image acquisition, and particularly relates to a transmission parameter adjustment method and device and a computer device. BACKGROUND
[0002] With the continuous development of the field of image acquisition, in the case that multiple image acquisition ends transmit information to the same data receiving end, in order to ensure the rationality of information transmission of each image acquisition end, the transmission parameters of the information transmission channel are generally dynamically adjusted according to the real-time information transmission situation in the information transmission channel corresponding to each image acquisition end.
[0003] However, using the existing transmission parameter adjustment method, the transmission parameters are adjusted only according to the real-time transmission situation, which may cause large real-time fluctuations and untimely transmission parameter adjustment, thereby reducing the reliability of information transmission. SUMMARY
[0004] Therefore, it is necessary to provide a transmission parameter adjustment method, device and computer device capable of improving the reliability of information transmission in view of the above technical problems.
[0005] In a first aspect, the present application provides a transmission parameter adjustment method applied to an image receiving end, comprising:
[0006] obtaining total transmission bandwidth of each image acquisition end in communication connection with the image receiving end;
[0007] allocating the total transmission bandwidth according to image acquisition configuration information of each image acquisition end in a current period to obtain a reference transmission bandwidth of each image acquisition end in the current period; wherein the image acquisition configuration information comprises individualized acquisition parameters and general acquisition parameters;
[0008] For each image acquisition end, adjusting the transmission parameters of the information transmission channel between the image acquisition end and the image receiving end according to the reference transmission bandwidth of the image acquisition end in the current period and the access situation of the built-in switching chip of the image receiving end.
[0009] In one of the embodiments, adjusting the transmission parameters of the information transmission channel between the image acquisition end and the image receiving end according to the reference transmission bandwidth of the image acquisition end in the current period and the access situation of the built-in switching chip of the image receiving end comprises:
[0010] determining a target transmission bandwidth of the image acquisition end according to the information transmission situation of the information transmission channel between the image acquisition end and the image receiving end and the reference transmission bandwidth of the image acquisition end in the current period;
[0011] According to the target transmission bandwidth and the built-in switch chip access situation of the image receiving end, the transmission parameters of the information transmission channel between the image acquisition end and the image receiving end are adjusted.
[0012] In one of the embodiments, according to the target transmission bandwidth and the built-in switch chip access situation of the image receiving end, the transmission parameters of the information transmission channel between the image acquisition end and the image receiving end are adjusted, including:
[0013] In the case of built-in switch chip access of the image receiving end being the POE access with built-in switch chip, according to the target transmission bandwidth, the transmission bandwidth of the information transmission channel between the image acquisition end and the image receiving end is adjusted;
[0014] In the case of built-in switch chip access being the POE access without built-in switch chip, an explicit congestion notification ECN signal adapted to the target transmission bandwidth is generated to adjust the information transmission rate of the information transmission channel between the image acquisition end and the image receiving end.
[0015] In one of the embodiments, according to the information transmission situation of the information transmission channel between the image acquisition end and the image receiving end and the reference transmission bandwidth of the image acquisition end in the current period, the target transmission bandwidth of the image acquisition end is determined, including:
[0016] From the reference transmission bandwidth of the current period and the actual transmission bandwidth of the last period of the current period, the global transmission bandwidth of the current period is selected;
[0017] According to the global transmission bandwidth and the information transmission situation of the information transmission channel between the image acquisition end and the image receiving end, the target transmission bandwidth of the image acquisition end is determined.
[0018] In one of the embodiments, from the reference transmission bandwidth of the current period and the actual transmission bandwidth of the last period of the current period, the global transmission bandwidth of the current period is selected, including:
[0019] The bandwidth difference between the actual transmission bandwidth of the last period of the current period and the reference transmission bandwidth of the image acquisition end in the current period is determined;
[0020] According to the ratio between the bandwidth difference and the reference transmission bandwidth, the bandwidth fluctuation of the current period is determined;
[0021] In the case that the bandwidth fluctuation is less than the fluctuation threshold, the actual transmission bandwidth of the last period of the current period is selected as the global transmission bandwidth of the current period;
[0022] In the case that the bandwidth fluctuation is greater than or equal to the fluctuation threshold, the reference transmission bandwidth of the current period is selected as the global transmission bandwidth of the current period.
[0023] In one embodiment, the total transmission bandwidth is allocated according to the image acquisition configuration information of each image acquisition terminal in the current period, to obtain the reference transmission bandwidth of each image acquisition terminal in the current period, including:
[0024] According to the image acquisition configuration information of each image acquisition terminal in the current period, the bandwidth quota of each image acquisition terminal is determined;
[0025] For each image acquisition terminal, the bandwidth weight of the image acquisition terminal is determined according to the bandwidth quota of the image acquisition terminal and the proportion of the total bandwidth quota of each image acquisition terminal;
[0026] The total transmission bandwidth is weighted according to the bandwidth weight of the image acquisition terminal, to obtain the reference transmission bandwidth of the image acquisition terminal in the current period.
[0027] In one embodiment, the personalized acquisition parameters include target acquisition items and trigger frequency of the target acquisition items, and the general acquisition parameters include screenshot frequency, screenshot size and trigger frequency of dynamic target detection;
[0028] According to the image acquisition configuration information of each image acquisition terminal in the current period, the bandwidth quota of each image acquisition terminal is determined, including:
[0029] For each image acquisition terminal, the first quota weight is used to weight the personalized acquisition parameters of the image acquisition terminal in the current period, to obtain the first bandwidth quota;
[0030] The second quota weight is used to weight the screenshot frequency and the screenshot size of the image acquisition terminal in the current period, to obtain the second bandwidth quota;
[0031] The third quota weight is used to weight the trigger frequency of the dynamic target detection of the image acquisition terminal in the current period, to obtain the third bandwidth quota; wherein the first quota weight is greater than the second bandwidth quota, and the second bandwidth quota is greater than the third quota weight;
[0032] The bandwidth quota of the image acquisition terminal is determined according to the sum of the first bandwidth quota, the second bandwidth quota and the third bandwidth quota.
[0033] In one embodiment, the method further includes:
[0034] For each image acquisition terminal, the information receiving threshold corresponding to the image acquisition terminal is adjusted according to the information transmission of the information transmission channel between the image acquisition terminal and the image receiving terminal, to adjust the information transmission rate of the information transmission channel between the image acquisition terminal and the image receiving terminal.
[0035] In a second aspect, the application further provides a transmission parameter adjustment device applied to an image receiving terminal, including:
[0036] a bandwidth acquisition module, configured to acquire total transmission bandwidth of each image collection terminal in communication connection with the image receiving terminal;
[0037] a bandwidth allocation module, configured to allocate the total transmission bandwidth according to image collection configuration information of each image collection terminal in the current time period, to obtain reference transmission bandwidth of each image collection terminal in the current time period; wherein the image collection configuration information comprises individualized collection parameters and general collection parameters;
[0038] a parameter adjustment module, configured to, for each image collection terminal, adjust transmission parameters of an information transmission channel between the image collection terminal and the image receiving terminal according to the reference transmission bandwidth of the image collection terminal in the current time period and built-in switch chip access of the image receiving terminal.
[0039] In a third aspect, the present application further provides a computer device, comprising a memory and a processor, the memory stores a computer program, and the processor realizes the following steps when executing the computer program:
[0040] acquiring total transmission bandwidth of each image collection terminal in communication connection with the image receiving terminal;
[0041] allocating the total transmission bandwidth according to image collection configuration information of each image collection terminal in the current time period, to obtain reference transmission bandwidth of each image collection terminal in the current time period; wherein the image collection configuration information comprises individualized collection parameters and general collection parameters;
[0042] for each image collection terminal, adjusting transmission parameters of an information transmission channel between the image collection terminal and the image receiving terminal according to the reference transmission bandwidth of the image collection terminal in the current time period and built-in switch chip access of the image receiving terminal.
[0043] In a fourth aspect, the present application further provides a computer readable storage medium, which stores a computer program, and the computer program realizes the following steps when executed by a processor:
[0044] acquiring total transmission bandwidth of each image collection terminal in communication connection with the image receiving terminal;
[0045] allocating the total transmission bandwidth according to image collection configuration information of each image collection terminal in the current time period, to obtain reference transmission bandwidth of each image collection terminal in the current time period; wherein the image collection configuration information comprises individualized collection parameters and general collection parameters;
[0046] for each image collection terminal, adjusting transmission parameters of an information transmission channel between the image collection terminal and the image receiving terminal according to the reference transmission bandwidth of the image collection terminal in the current time period and built-in switch chip access of the image receiving terminal.
[0047] In a fifth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the following steps:
[0048] obtaining a total transmission bandwidth of each image acquisition terminal in communication connection with the image receiving terminal;
[0049] allocating the total transmission bandwidth according to image acquisition configuration information of each image acquisition terminal in the current time period to obtain a reference transmission bandwidth of each image acquisition terminal in the current time period; wherein the image acquisition configuration information comprises individualized acquisition parameters and general acquisition parameters;
[0050] for each image acquisition terminal, adjusting a transmission parameter of an information transmission channel between the image acquisition terminal and the image receiving terminal according to the reference transmission bandwidth of the image acquisition terminal in the current time period and a built-in switch chip access condition of the image receiving terminal.
[0051] The transmission parameter adjustment method, device and computer equipment described above, by obtaining a total transmission bandwidth of each image acquisition terminal in communication connection with the image receiving terminal, and allocating the total transmission bandwidth according to individualized acquisition parameters and general acquisition parameters of each image acquisition terminal in the current time period to obtain a reference transmission bandwidth of each image acquisition terminal in the current time period; and then for each image acquisition terminal, adjusting a transmission parameter of an information transmission channel between the image acquisition terminal and the image receiving terminal according to the reference transmission bandwidth of the image acquisition terminal in the current time period and a built-in switch chip access condition of the image receiving terminal. Compared with the related art in which the transmission parameter is adjusted only according to real-time transmission conditions, the above method, on the one hand, introduces individualized acquisition parameters and general acquisition parameters, determines the reference transmission bandwidth of the current time period by combining the individualized acquisition parameters and the general acquisition parameters in the current time period, does not need to be adjusted frequently, and can ensure the stability of information transmission on the basis of ensuring the reliability of the transmission bandwidth in the current time period; on the other hand, according to the built-in switch chip access condition of the image receiving terminal, the transmission parameter that can be adjusted is selected, and the transmission parameter is adjusted in combination with the reference transmission bandwidth of the current time period, which can ensure the feasibility of the transmission parameter adjustment, thereby ensuring the transmission reliability of the information. BRIEF DESCRIPTION OF DRAWINGS
[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related art, the drawings needed to be used in the description of the embodiments of the present application or the related art will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other related drawings can also be obtained without creative labor.
[0053] Figure 1A flowchart of a transmission parameter adjustment method in an embodiment;
[0054] Figure 2 A flowchart of a transmission parameter adjustment method in an embodiment;
[0055] Figure 3 A flowchart of a target transmission bandwidth determination method in an embodiment;
[0056] Figure 4 A flowchart of a reference transmission bandwidth adjustment method in an embodiment;
[0057] Figure 5 A flowchart of a reference transmission bandwidth determination method in an embodiment;
[0058] Figure 6 A flowchart of a reference transmission bandwidth determination method in another embodiment;
[0059] Figure 7 A flowchart of a transmission parameter adjustment method in another embodiment;
[0060] Figure 8 A block diagram of a transmission parameter adjustment device in an embodiment;
[0061] Figure 9 An internal structure diagram of a computer device in an embodiment. DETAILED DESCRIPTION
[0062] In order to make the purposes, technical solutions and advantages of the present application clearer, further detailed description will be given below in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and should not be used to limit the present application.
[0063] With the continuous development of image acquisition field, in the case of multiple image acquisition ends transmitting information to the same data receiving end, in order to ensure the rationality of information transmission of each image acquisition end, the transmission parameters of the information transmission channel will generally be dynamically adjusted according to the real-time information transmission in the information transmission channel corresponding to each image acquisition end.
[0064] However, using the existing transmission parameter adjustment method, the transmission parameters are adjusted only according to the real-time transmission, which may cause large real-time fluctuations and untimely transmission parameter adjustment, which will reduce the reliability of information transmission.
[0065] Based on this, in an exemplary embodiment, a transmission parameter adjustment method is provided, which is applied to an image receiving end as an example for illustration, as shown in Figure 1 The specific steps include the following steps:
[0066] S101, acquire total transmission bandwidth of each image acquisition terminal in communication connection with the image receiving terminal.
[0067] The image acquisition terminal is a device with image acquisition function, for example, a camera. The image receiving terminal is a device receiving image information collected by each image acquisition terminal. The total transmission bandwidth is the total bandwidth provided by the image receiving terminal.
[0068] For example, in the embodiment of the application, the image receiving terminal can be a network video recorder (NVR), and the image acquisition terminal can be a front-end camera. The NVR realizes power over Ethernet (POE) access through a built-in switching chip. The POE access shares the bandwidth resources of the built-in switching chip by default. The POE access is a convergence scenario for the NVR built-in switching chip, that is, the code streams of the front-end cameras are converged to the NVR host through the uplink port of the built-in switching chip.
[0069] Optionally, the total transmission bandwidth of each image acquisition terminal in communication connection with the image receiving terminal can be directly acquired from the configuration information of the image receiving terminal. Alternatively, the total transmission bandwidth can be calculated according to the bandwidth of the information transmission channel of each image acquisition terminal in communication connection with the image receiving terminal.
[0070] S102, according to the image acquisition configuration information of each image acquisition terminal in the current time period, allocate the total transmission bandwidth to obtain the reference transmission bandwidth of each image acquisition terminal in the current time period.
[0071] The image acquisition configuration information is related configuration information when the image acquisition terminal collects images. Further, the image acquisition configuration information includes personalized acquisition parameters and general acquisition parameters. The personalized acquisition parameters are related parameters of the image acquisition rules configured by the user, which can be related parameters of the intelligent image detection rules configured by the user for each image acquisition terminal. For example, it can be used to collect vehicle collisions, crowd density exceeding expectations, and abnormal entry into non-public areas in the corresponding area; the general acquisition parameters are general configuration parameters for each image acquisition terminal. For example, it can be used to collect dynamic images in the corresponding area. The reference transmission bandwidth is the reference bandwidth when each image acquisition terminal transmits data.
[0072] The current time period is the bandwidth adjustment period in which the current time is located. Further, the length of the bandwidth adjustment period can be pre-configured by the user or determined by the person skilled in the art based on historical fluctuation information of the image acquisition situation, and the application does not limit this. It is worth noting that in order to avoid frequent adjustment of the transmission bandwidth, the bandwidth adjustment period can be appropriately extended.
[0073] Optionally, the bandwidth weight that each image acquisition terminal can allocate to can be determined according to the image acquisition configuration information of each image acquisition terminal in the current period. Then, the total transmission bandwidth can be allocated based on the bandwidth weight that each image acquisition terminal can allocate to, so as to determine the reference transmission bandwidth of each image acquisition terminal in the current period. It is worth noting that the calculated reference transmission bandwidth cannot be less than the preset minimum transmission bandwidth.
[0074] For example, the image acquisition configuration information of each image acquisition terminal in the current period in each dimension can be input into the trained first weight determination model at the same time, and the first weight determination model can output the bandwidth weight that each image acquisition terminal can allocate to according to the image acquisition configuration information and the model parameters. Alternatively, the bandwidth weight that each image acquisition terminal can allocate to can be determined according to the frequency of triggering of each image acquisition rule in the image acquisition configuration information of each image acquisition terminal in the current period.
[0075] It can be understood that, in order to ensure the reliability of the reference transmission bandwidth, the reference transmission bandwidth can also be determined in combination with the actual transmission bandwidth of a historical comparison period that has the same period characteristics as the current period. For example, in the case of the current period being May 1st, the historical comparison period can be April 1st.
[0076] Specifically, the total transmission bandwidth can be allocated according to the image acquisition configuration information of each image acquisition terminal in the current period, to obtain the initial transmission bandwidth of each image acquisition terminal in the current period. Then, the reference transmission bandwidth can be determined according to the bandwidth difference between the initial transmission bandwidth and the actual transmission bandwidth of the historical comparison period. It is worth noting that in the case of screening out multiple historical comparison periods at the same time, the historical comparison period closest to the current period can be selected for subsequent processing.
[0077] For example, the difference between the initial transmission bandwidth and the actual transmission bandwidth of the historical comparison period can be weighted with the initial transmission bandwidth to obtain the reference transmission bandwidth, by referring to the following formula (1).
[0078] (1)
[0079] Wherein, A p(i) is the initial transmission bandwidth of the i th image acquisition terminal; B p(i) is the actual transmission bandwidth of the historical comparison period of the i th image acquisition terminal; B p(i) is the reference transmission bandwidth of the i th image acquisition terminal; and is a preset weighting coefficient.
[0080] S103, for each image acquisition terminal, according to the reference transmission bandwidth of the image acquisition terminal in the current period and the built-in switch chip access situation of the image receiving terminal, adjusting the transmission parameter of the information transmission channel between the image acquisition terminal and the image receiving terminal.
[0081] The transmission parameter is a parameter related to the information transmission from the image acquisition terminal to the image receiving terminal. For example, the transmission parameter can be the transmission bandwidth and the information buffer parameter.
[0082] It can be understood that, in the case that the image receiving terminal has the built-in switch chip access, the bandwidth control of each image acquisition terminal can be realized by the flow management function of the built-in switch chip; in the case that the image receiving terminal does not have the built-in switch chip access, the bandwidth of each image acquisition terminal cannot be directly controlled.
[0083] Therefore, for each image acquisition terminal, a corresponding flow control mode can be selected based on the built-in switch chip access situation of the image receiving terminal; then, the flow control mode is used to adjust the transmission parameter of the image acquisition terminal based on the reference transmission bandwidth of the image acquisition terminal in the current period, so as to adjust the information transmission situation of the image acquisition terminal.
[0084] For example, for each image acquisition terminal, in the case that the image receiving terminal has the built-in switch chip access, the current transmission bandwidth of the image acquisition terminal can be adjusted according to the reference transmission bandwidth of the image acquisition terminal in the current period; in the case that the image receiving terminal does not have the built-in switch chip access, the information transmission amount that can be realized by the image acquisition terminal in the current period can be analyzed according to the reference transmission bandwidth of the image acquisition terminal in the current period, and then the information transmission situation of the image acquisition terminal is adjusted in combination with the information transmission amount.
[0085] In the transmission parameter adjustment method, the total transmission bandwidth of each image acquisition terminal in communication connection with the image receiving terminal is obtained, and the total transmission bandwidth is allocated according to the individualized acquisition parameter and the general acquisition parameter of each image acquisition terminal in the current period to obtain the reference transmission bandwidth of each image acquisition terminal in the current period. Then, for each image acquisition terminal, the transmission parameter of the information transmission channel between the image acquisition terminal and the image receiving terminal is adjusted according to the reference transmission bandwidth of the image acquisition terminal in the current period and the built-in switch chip access condition of the image receiving terminal. Compared with the related art, which only adjusts the transmission parameter according to the real-time transmission condition, the above method introduces the individualized acquisition parameter and the general acquisition parameter, determines the reference transmission bandwidth in the current period by combining the individualized acquisition parameter and the general acquisition parameter in the current period, does not need to be adjusted frequently, can ensure the stability of information transmission on the basis of ensuring the reliability of the transmission bandwidth in the current period, and can ensure the feasibility of transmission parameter adjustment and the transmission reliability of information.
[0086] On the basis of the above embodiment, in the embodiment of the present application, an optional way of adjusting the transmission parameter is provided, as shown in the following. Figure 2 The method comprises the following steps:
[0087] S201, determining the target transmission bandwidth of the image acquisition terminal according to the information transmission condition of the information transmission channel between the image acquisition terminal and the image receiving terminal and the reference transmission bandwidth of the image acquisition terminal in the current period.
[0088] The target transmission bandwidth is the transmission bandwidth adjusted on the basis of the information transmission condition of the reference transmission bandwidth. The information transmission condition is the transmission condition of the image information in the information transmission channel, which can include, but is not limited to, the average inter-prediction frame (P-frame) interval / size, the key frame (I-frame) transmission time, etc.
[0089] It can be understood that, since the interval of the bandwidth adjustment period is long, there may be slight information transmission fluctuation in the bandwidth adjustment period. In order to better adapt to the slight fluctuation, the group of pictures (GOP) period can be set in advance, and the reference transmission bandwidth of the current period is adjusted according to the information transmission condition of the information transmission channel in each GOP to obtain the target transmission bandwidth of the image acquisition terminal.
[0090] Optionally, for each GOP period in the current time period, the reference transmission bandwidth of the current time period can be adjusted according to the information transmission condition of the information transmission channel between the image acquisition end and the image receiving end in the GOP period, to obtain the target transmission bandwidth of the image acquisition end in the GOP period.
[0091] For example, for each GOP period of the image acquisition end in the current time period, the reference transmission bandwidth of the current time period can be adjusted according to the frame information (average P frame interval / size, I frame transmission time and GOP frame transmission information) in the adjacent previous GOP period of the GOP period, the frame transmission condition in the information transmission channel in the GOP period, the maximum I frame size and the maximum P frame size in the information transmission channel in the historical time period, to obtain the target transmission bandwidth of the image acquisition end in the GOP period.
[0092] In S202, the transmission parameter of the information transmission channel between the image acquisition end and the image receiving end is adjusted according to the target transmission bandwidth and the built-in switch chip access condition of the image receiving end.
[0093] Optionally, for each image acquisition end, a corresponding flow control mode can be selected based on the built-in switch chip access condition of the image receiving end; then, the transmission parameter of the image acquisition end is adjusted based on the target transmission bandwidth of the image acquisition end in each GOP period by using the flow control mode, so as to adjust the information transmission condition of the image acquisition end.
[0094] In the embodiments of the present application, the target transmission bandwidth is obtained by adjusting the reference transmission bandwidth of the current time period according to the information transmission condition, and the transmission parameter is adjusted according to the target transmission bandwidth and the built-in switch chip access condition, so as to ensure the reliability of the transmission parameter adjustment.
[0095] On the basis of the above-mentioned embodiments, in the embodiments of the present application, another optional mode of adjusting the transmission parameter is provided, which is, when the built-in switch chip access condition of the image receiving end is the POE access with the built-in switch chip, the transmission bandwidth of the information transmission channel between the image acquisition end and the image receiving end is adjusted according to the target transmission bandwidth; when the built-in switch chip access condition is the POE access without the built-in switch chip, the explicit congestion notification (ECN) signal is generated to adapt to the target transmission bandwidth, so as to adjust the information transmission rate of the information transmission channel between the image acquisition end and the image receiving end.
[0096] Optionally, in a case where it is determined that the POE access in the image receiving end has a built-in switching chip, it is proved that the transmission bandwidth of the information transmission channel can be directly adjusted in the current case, and therefore, the Quality of Service (QOS) weight of each information transmission channel in the switching chip can be set based on the target transmission bandwidth, so as to adjust the transmission bandwidth of the information transmission channel between the image acquisition end and the image receiving end.
[0097] In a case where it is determined that the POE access in the image receiving end does not have a built-in switching chip, it is proved that the transmission bandwidth of the information transmission channel cannot be adjusted in the current case, and at this time, whether the Explicit Congestion Notification (ECN) mechanism of the Transmission Control Protocol (TCP) is enabled in the image acquisition end can be acquired through a three-way handshake, and in a case where the ECN mechanism is enabled, the image receiving end generates an ECN signal adapted to the target transmission bandwidth, so that the image receiving end can simulate the case where the image acquisition end sends information acquisition congestion information, thereby adjusting the transmission rate of the information transmission channel between the image acquisition end and the image receiving end.
[0098] It is worth noting that the ECN mechanism originally needs the support of an intermediate switch, that is, the ECN packet is sent by the switch, and the device usually does not actively send. In a case where there is no built-in switch or the built-in switch does not support QOS configuration, the sending rate can be limited by actively sending the ECN packet by the image receiving end. Although this method cannot directly adjust the transmission bandwidth, it can adjust the information transmission of the image acquisition end by adjusting the information transmission rate.
[0099] In the embodiments of the present application, by providing two different built-in switching chip access conditions for adjusting the transmission parameters, the flexibility of the transmission parameter adjustment and the comprehensiveness of the adjustment scenario can be ensured.
[0100] On the basis of the above-mentioned embodiments, in the embodiments of the present application, an optional way of determining the target transmission bandwidth is provided, as shown in Figure 3 The method comprises the following steps:
[0101] S301, selecting the global transmission bandwidth of the current period from the reference transmission bandwidth of the current period and the actual transmission bandwidth of the last period of the current period.
[0102] The last period means the last bandwidth adjustment period adjacent to the current period. The actual transmission bandwidth means the actual transmission bandwidth of the information transmission channel in the last period. The global transmission bandwidth is based on the transmission bandwidth in the current period.
[0103] Optionally, for each image acquisition terminal, the global transmission bandwidth of the current period can be selected from the reference transmission bandwidth of the current period and the actual transmission bandwidth of the previous period of the current period according to fluctuation of the image acquisition terminal between the reference transmission bandwidth of the current period and the actual transmission bandwidth of the previous period of the current period.
[0104] For example, the actual transmission bandwidth of the previous period can be selected as the global transmission bandwidth of the current period when the fluctuation is small, and the reference transmission bandwidth of the current period can be selected as the global transmission bandwidth of the current period when the fluctuation is large.
[0105] S302, determining the target transmission bandwidth of the image acquisition terminal according to the global transmission bandwidth and information transmission of the information transmission channel between the image acquisition terminal and the image receiving terminal.
[0106] Optionally, for each GOP period in the current period, the global transmission bandwidth in the current period can be adjusted again according to the information transmission of the information transmission channel between the image acquisition terminal and the image receiving terminal in the GOP period, so as to obtain the target transmission bandwidth of the image acquisition terminal in the GOP period.
[0107] In the embodiment of the present application, the global transmission bandwidth of the current period is selected from the reference transmission bandwidth and the actual transmission bandwidth of the previous period, and then the global transmission bandwidth is adjusted according to the information transmission to obtain the target transmission bandwidth, which can ensure the accuracy of the target transmission bandwidth.
[0108] On the basis of the above-mentioned embodiment, in the embodiment of the present application, an optional way of adjusting the reference transmission bandwidth is provided, as shown in Figure 4 The method comprises the following steps:
[0109] S401, determining the bandwidth difference between the actual transmission bandwidth of the previous period of the current period and the reference transmission bandwidth of the image acquisition terminal in the current period.
[0110] The bandwidth difference is the difference between the actual transmission bandwidth of the previous period and the reference transmission bandwidth.
[0111] Optionally, the bandwidth difference between the actual transmission bandwidth and the reference transmission bandwidth can be calculated according to the actual transmission bandwidth of the previous period of the current period and the reference transmission bandwidth of the image acquisition terminal in the current period.
[0112] S402, determining the bandwidth fluctuation of the current period according to the ratio between the bandwidth difference and the reference transmission bandwidth.
[0113] The bandwidth fluctuation is a bandwidth fluctuation between the last time period and the current time period.
[0114] Optionally, the bandwidth fluctuation of the current time period can be determined according to a ratio of the bandwidth difference in the reference transmission bandwidth. For example, an absolute value of the ratio between the bandwidth difference and the reference transmission bandwidth and the actual transmission bandwidth of the last time period can be taken as the bandwidth fluctuation of the current time period.
[0115] For example, the bandwidth fluctuation of the current time period can be determined by referring to the following formula (2), and taking an absolute value of the ratio between the bandwidth difference between the reference transmission bandwidth and the actual transmission bandwidth of the last time period and the actual transmission bandwidth as the bandwidth fluctuation of the current time period.
[0116] (2)
[0117] B P(i) B aP(i) B P(i) Q
[0118] S403, determining whether the bandwidth fluctuation is less than a fluctuation threshold value, if yes, performing S404, and if no, performing S405.
[0119] The fluctuation threshold value is a numerical value for measuring the size of the bandwidth fluctuation.
[0120] It can be understood that the re-distribution of the transmission bandwidth has a great impact on the channel network transmission bandwidth, and therefore, in order to avoid frequent adjustment of the transmission bandwidth, a fluctuation threshold value can be preset, and the reference transmission bandwidth is not adjusted as much as possible within the fluctuation threshold value.
[0121] Optionally, the bandwidth fluctuation of the current time period can be compared with the fluctuation threshold value to determine whether the bandwidth fluctuation is less than the fluctuation threshold value. If yes, S404 is performed, and if no, S405 is performed.
[0122] S404, selecting the actual transmission bandwidth of the last time period of the current time period as the global transmission bandwidth of the current time period.
[0123] In the case where the bandwidth fluctuation is less than the fluctuation threshold value, the actual transmission bandwidth of the last time period can be directly used as the global transmission bandwidth of the current time period, i.e., the transmission bandwidth does not need to be adjusted.
[0124] S405, selecting the reference transmission bandwidth of the current time period as the global transmission bandwidth of the current time period.
[0125] In the case where the bandwidth fluctuation is greater than or equal to the fluctuation threshold value, the calculated reference transmission bandwidth of the current time period can be taken as the global transmission bandwidth of the current time period.
[0126] In the embodiment of the present application, the fluctuation threshold is introduced, and by selecting the global transmission bandwidth according to the size relationship between the bandwidth fluctuation and the fluctuation threshold, the transmission bandwidth can be adjusted frequently, and the reliability of information transmission is ensured on the basis of ensuring the reliability of the global transmission bandwidth.
[0127] On the basis of the above-mentioned embodiment, in the embodiment of the present application, an optional manner for determining the reference transmission bandwidth is provided, as shown in the following table: Figure 5 The specific steps include the following steps:
[0128] S501, determining the bandwidth quota of each image acquisition end according to the image acquisition configuration information of each image acquisition end in the current time period.
[0129] The so-called bandwidth quota is a numerical value representing the bandwidth allocation.
[0130] Optionally, the bandwidth quota of each image acquisition end can be determined based on the image acquisition configuration information of each image acquisition end in the current time period. For example, the image acquisition configuration information of each image acquisition end in the current time period can be input into a trained quota determination model at the same time, and the bandwidth quota of each image acquisition end can be determined by the quota determination model according to the image acquisition configuration information of each image acquisition end.
[0131] S502, for each image acquisition end, determining the bandwidth weight of the image acquisition end according to the proportion of the bandwidth quota of the image acquisition end in the total bandwidth quota of each image acquisition end.
[0132] The so-called total bandwidth quota is the total amount of the bandwidth quota of each image acquisition end. The so-called bandwidth weight is the proportion of the bandwidth allocation to the total transmission bandwidth.
[0133] Optionally, the total bandwidth quota can be calculated according to the bandwidth quota of each image acquisition end. Then, for each image acquisition end, the proportion of the bandwidth quota of the image acquisition end in the total bandwidth quota can be directly used as the bandwidth weight of the image acquisition end.
[0134] S503, performing weighted processing on the total transmission bandwidth according to the bandwidth weight of the image acquisition end to obtain the reference transmission bandwidth of the image acquisition end in the current time period.
[0135] Optionally, for each image acquisition end, the bandwidth weight of the image acquisition end can be used to perform weighted processing on the total transmission bandwidth to calculate the reference transmission bandwidth of the image acquisition end in the current time period. For example, the original transmission bandwidth can be obtained by performing weighted processing on the total transmission bandwidth according to the bandwidth weight of the image acquisition end; and then the sum of the original transmission bandwidth and a preset fixed bandwidth parameter is used as the reference transmission bandwidth of the image acquisition end.
[0136] For example, after calculating the bandwidth quota of each image collection end, the total transmission bandwidth can be weighted based on the proportion of the bandwidth quota in the total bandwidth quota, and then the reference transmission bandwidth can be determined according to the weighted processing result and the preset fixed bandwidth parameter, with reference to the following formula (3).
[0137] (3)
[0138] Wherein, B q(i) is the bandwidth quota of the i th image collection end, and there are n image collection ends in total; Btp is the total transmission bandwidth; a i is the fixed bandwidth parameter of the i th image collection end.
[0139] In the embodiments of the present application, the bandwidth quota of each image collection end is determined according to the image collection configuration information, and then the bandwidth weight of each image collection end is determined according to the bandwidth quota of each image collection end, and finally the total transmission bandwidth is weighted using the bandwidth weight to obtain the reference transmission bandwidth, which can ensure the reliability of the reference transmission bandwidth calculation.
[0140] On the basis of the above-mentioned embodiments, in the embodiments of the present application, the personalized collection parameters include target collection items and trigger frequencies of the target collection items, and the general collection parameters include screenshot frequencies, screenshot sizes and trigger frequencies of dynamic target detection. Based on this, another optional way of determining the reference transmission bandwidth is provided, as shown in Figure 6 The specific steps include the following steps:
[0141] S601, for each image collection end, the first quota weight is used to weight the personalized collection parameters of the image collection end in the current period to obtain the first bandwidth quota.
[0142] Wherein, the target collection item is constructed based on the personalized needs of the user under the image collection service. In the embodiments of the present application, the target collection item can be one or more. The trigger frequency of the target collection item is the frequency of triggering each target collection item. It is worth noting that for each image collection end, the more the number of target collection items in the image collection end, the more the user pays attention to the area monitored by the image collection end. In addition, the higher the trigger frequency of the target collection item, the more important the information collected by the image collection end, so the bandwidth quota of the image collection end can be determined in combination with the target collection item and the trigger frequency of the target collection item.
[0143] The first quota weight is a weight value for weighting the personalized acquisition parameter. The first bandwidth quota is a bandwidth quota corresponding to the personalized acquisition parameter. It is worth noting that for each image acquisition terminal, the more target acquisition items in the image acquisition terminal, the higher the triggering frequency, which proves that the image acquisition terminal has higher service value for the user, and thus the personalized acquisition parameter is more important than the general acquisition parameter.
[0144] Optionally, for each image acquisition terminal, a preset first quota weight can be used to weight the product of the number of target acquisition items of the image acquisition terminal in the current period and the triggering frequency of the target acquisition items, to obtain the first bandwidth quota.
[0145] S602, using a second quota weight to weight the screenshot frequency and screenshot size of the image acquisition terminal in the current period to obtain a second bandwidth quota.
[0146] The screenshot frequency is the frequency of the image acquisition terminal performing other picture acquisition operations in addition to the basic image acquisition operation. Further, the screenshot size is the size of the acquired picture. The second quota weight is a weight value for weighting the screenshot frequency and the screenshot size. The second bandwidth quota is a bandwidth quota corresponding to the screenshot frequency and the screenshot size.
[0147] It is worth noting that in actual application, in addition to collecting basic image information, the image acquisition terminal also has a general configuration of dynamic target detection and screenshot logic, that is, when the dynamic target detection is triggered, the regional image is acquired, and when the screenshot event is triggered / arrives at the screenshot period, the regional image is acquired. At this time, the image acquisition terminal needs to transmit the collected basic image information and the additionally acquired regional image (i.e., the regional image acquired when the dynamic target detection is triggered / the regional image obtained through the screenshot operation). Therefore, the bandwidth quota of the image acquisition terminal can be determined in combination with the screenshot frequency, the screenshot size, and the triggering frequency of the dynamic target detection. The dynamic target detection is an operation of image acquisition on a dynamic target in a detection region.
[0148] Optionally, for each image acquisition terminal, a preset second quota weight can be used to weight the product of the screenshot frequency and the screenshot size of the image acquisition terminal in the current period, to obtain the second bandwidth quota.
[0149] S603, using a third quota weight to weight the triggering frequency of the dynamic target detection of the image acquisition terminal in the current period to obtain a third bandwidth quota.
[0150] The third quota weight is a weight value for weighting the triggering frequency of the dynamic target detection. The third bandwidth quota is a bandwidth quota corresponding to the triggering frequency of the dynamic target detection.
[0151] It is worth noting that in actual application, the importance of the target collection item and the triggering frequency of the target collection item is greater than that of the dynamic target detection. In the dynamic target detection, the importance of the screenshot frequency and the screenshot size is greater than that of the triggering frequency of the dynamic target detection. Therefore, the first quota weight is greater than the second bandwidth quota, and the second bandwidth quota is greater than the third quota weight.
[0152] Optionally, for each image collection terminal, a preset third quota weight can be used to directly weight the triggering frequency of the dynamic target detection of the image collection terminal in the current time period, to obtain the third bandwidth quota.
[0153] In S604, the bandwidth quota of the image collection terminal is determined according to the sum of the first bandwidth quota, the second bandwidth quota and the third bandwidth quota.
[0154] Optionally, the sum of the first bandwidth quota, the second bandwidth quota and the third bandwidth quota can be directly used as the bandwidth quota of the image collection terminal, by referring to the following formula (4).
[0155] (4)
[0156] Wherein, B q(i) is the bandwidth quota of the i th image collection terminal; W1 is the first quota weight; W2 is the second quota weight; W3 is the third quota weight; W1> W2> W3. Ircnt(i) is the number of target collection items configured for the i th image collection terminal (i.e., the number of image collection rules configured by the user); Fsmrt(i) is the triggering frequency of the target collection item of the i th image collection terminal (i.e., the actual triggering frequency of the image collection rule); Fcap(i) is the screenshot frequency of the i th image collection terminal; Scap(i) is the screenshot size of the i th image collection terminal; Fmot(i) is the triggering frequency of the dynamic target detection of the i th image collection terminal.
[0157] In the embodiments of the present application, the bandwidth quota of the image collection terminal is obtained by weighting the personalized collection parameters and the general collection parameters respectively, so that the rationality of the bandwidth quota determination can be ensured.
[0158] To further ensure the flexibility of information transmission, on the basis of the above embodiments, in the embodiments of the present application, another optional way of adjusting the transmission parameters is provided, specifically, for each image acquisition end, the information receiving threshold corresponding to the image acquisition end is adjusted according to the information transmission situation of the information transmission channel between the image acquisition end and the image receiving end, so as to adjust the information transmission rate of the information transmission channel between the image acquisition end and the image receiving end.
[0159] Wherein, the so-called information receiving threshold is a value for measuring whether the amount of data received in the socket socket receiving buffer area of the image receiving end can trigger a fast reply acknowledgement ACK message to the data acquisition end. For example, it can be the low water level line RCVLOAT threshold of the receiving buffer area in the image receiving end.
[0160] In the embodiments of the present application, in the case that the amount of data received in the image receiving end is less than the RCVLOAT threshold, the image receiving end will try to increase the response frequency of sending ACK message to the image acquisition end, and when the amount of data received exceeds the RCVLOAT threshold, the image receiving end will enter the normal ACK signal response mechanism. The ACK message contains the size of the amount of data that can continue to be sent, and the image acquisition end can adjust the sending rate according to the received ACK message, such as increasing the sending window and congestion window size of the image acquisition end to increase the sending rate. For the image receiving end, when the RCVLOAT threshold is increased, the business process can be avoided to wake up when there is a small amount of data cache, the cache heat of the central processing unit (CPU) is improved to improve the receiving copy efficiency, and when the collected image changes dramatically, the code stream data can be sent to the image receiving end in time, so as to realize more flexible bandwidth fine tuning in this way.
[0161] Based on this, after the overall adjustment of the transmission bandwidth, the information receiving threshold can also be adjusted to finely adjust the information transmission rate. Specifically, the information receiving threshold corresponding to the image acquisition end can be adjusted in combination with the information transmission situation of the information transmission channel between the image acquisition end and the image receiving end.
[0162] For example, for each image acquisition end, the information transmission situation of the information transmission channel between the image acquisition end and the image receiving end can be input into the threshold adjustment model trained, and the threshold adjustment model outputs the threshold adjustment target according to the information transmission situation; then, the information receiving threshold at the current moment is adjusted to the threshold adjustment target, so as to adjust the information transmission rate of the information transmission channel between the image acquisition end and the image receiving end.
[0163] In the embodiment of the present application, by adjusting the information receiving threshold corresponding to the image acquisition end according to the information transmission condition, the information transmission rate between the image acquisition end and the image receiving end can be adjusted without adjusting the transmission bandwidth, thereby ensuring the reliability of information transmission.
[0164] Figure 7 For another flowchart of the transmission parameter adjustment method in the embodiment, on the basis of the above embodiment, the present embodiment provides an optional example of the transmission parameter adjustment method. In combination with Figure 7 , the specific implementation process is as follows:
[0165] S701, obtain the total transmission bandwidth of each image acquisition end in communication connection with the image receiving end.
[0166] S702, determine the bandwidth quota of each image acquisition end according to the image acquisition configuration information of each image acquisition end in the current period.
[0167] Optionally, for each image acquisition end, the first quota weight is used to perform weighted processing on the individualized acquisition parameters of the image acquisition end in the current period, to obtain a first bandwidth quota; the second quota weight is used to perform weighted processing on the screenshot frequency and screenshot size of the image acquisition end in the current period, to obtain a second bandwidth quota; the third quota weight is used to perform weighted processing on the trigger frequency of the dynamic target detection of the image acquisition end in the current period, to obtain a third bandwidth quota; wherein the first quota weight is greater than the second bandwidth quota, and the second bandwidth quota is greater than the third quota weight; the bandwidth quota of the image acquisition end is determined according to the sum of the first bandwidth quota, the second bandwidth quota and the third bandwidth quota.
[0168] S703, for each image acquisition end, determine the bandwidth weight of the image acquisition end according to the proportion of the bandwidth quota of the image acquisition end in the total bandwidth quota of each image acquisition end, and perform weighted processing on the total transmission bandwidth according to the bandwidth weight of the image acquisition end, to obtain the reference transmission bandwidth of the image acquisition end in the current period.
[0169] S704, for each image acquisition end, select the global transmission bandwidth of the current period from the reference transmission bandwidth of the current period and the actual transmission bandwidth of the last period of the current period, and determine the target transmission bandwidth of the image acquisition end according to the global transmission bandwidth and the information transmission condition of the information transmission channel between the image acquisition end and the image receiving end.
[0170] Optionally, a bandwidth difference between the actual transmission bandwidth of the previous time period of the current time period and the reference transmission bandwidth of the image acquisition end in the current time period is determined; a bandwidth fluctuation of the current time period is determined according to a ratio between the bandwidth difference and the reference transmission bandwidth; in a case where the bandwidth fluctuation is less than a fluctuation threshold, the actual transmission bandwidth of the previous time period of the current time period is selected as the global transmission bandwidth of the current time period; in a case where the bandwidth fluctuation is greater than or equal to the fluctuation threshold, the reference transmission bandwidth of the current time period is selected as the global transmission bandwidth of the current time period.
[0171] S705, it is judged whether there is a POE access with a built-in switching chip in the image receiving end. If yes, S706 is executed; if no, S707 is executed.
[0172] S706, the transmission bandwidth of the information transmission channel between the image acquisition end and the image receiving end is adjusted according to the target transmission bandwidth. Then S708 is executed.
[0173] S707, an ECN signal adapted to the target transmission bandwidth is generated to adjust the information transmission rate of the information transmission channel between the image acquisition end and the image receiving end.
[0174] S708, for each image acquisition end, the information receiving threshold corresponding to the image acquisition end is adjusted according to the information transmission between the image acquisition end and the image receiving end, so as to adjust the information transmission rate of the information transmission channel between the image acquisition end and the image receiving end.
[0175] The specific process of S701-S708 can be referred to the description of the method embodiments, and the implementation principle and technical effects are similar, which will not be described here.
[0176] It should be understood that, although each step in the flowchart involved in each embodiment as described above is displayed in sequence according to the arrow, these steps are not necessarily executed in sequence according to the arrow. Unless otherwise stated herein, the execution of these steps has no strict sequence limitation, and these steps can be executed in other orders. Moreover, at least part of the steps in the flowchart involved in each embodiment as described above can include multiple steps or stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence of these steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least part of other steps or steps or stages in other steps.
[0177] Based on the same inventive concept, the embodiments of the present application further provide a transmission parameter adjustment apparatus for implementing the transmission parameter adjustment method described above. The apparatus provides a solution to the implementation scheme as described in the above method, and therefore the specific limitations in one or more transmission parameter adjustment apparatus embodiments provided below can refer to the limitations of the transmission parameter adjustment method described above, which will not be described here again.
[0178] In an exemplary embodiment, as shown in Figure 8 a transmission parameter adjustment apparatus 1 is provided, comprising a bandwidth acquisition module 10, a bandwidth allocation module 20 and a parameter adjustment module 30, wherein:
[0179] The bandwidth acquisition module 10 is configured to acquire the total transmission bandwidth of each image acquisition end in communication connection with the image receiving end;
[0180] The bandwidth allocation module 20 is configured to allocate the total transmission bandwidth according to the image acquisition configuration information of each image acquisition end in the current period to obtain the reference transmission bandwidth of each image acquisition end in the current period; wherein the image acquisition configuration information includes individualized acquisition parameters and general acquisition parameters;
[0181] The parameter adjustment module 30 is configured to, for each image acquisition end, adjust the transmission parameters of the information transmission channel between the image acquisition end and the image receiving end according to the reference transmission bandwidth of the image acquisition end in the current period and the built-in switch chip access condition of the image receiving end.
[0182] In an exemplary embodiment, the parameter adjustment module 30 comprises:
[0183] The first adjustment unit is configured to determine the target transmission bandwidth of the image acquisition end according to the information transmission condition of the information transmission channel between the image acquisition end and the image receiving end and the reference transmission bandwidth of the image acquisition end in the current period;
[0184] The second adjustment unit is configured to adjust the transmission parameters of the information transmission channel between the image acquisition end and the image receiving end according to the target transmission bandwidth and the built-in switch chip access condition of the image receiving end.
[0185] In an exemplary embodiment, the second adjustment unit is specifically configured to:
[0186] In the case of built-in switching chip access at the image receiving end, in the case of POE access with a built-in switching chip, the transmission bandwidth of the information transmission channel between the image acquisition end and the image receiving end is adjusted according to the target transmission bandwidth; in the case of POE access without a built-in switching chip, an explicit congestion notification ECN signal is generated to adapt to the target transmission bandwidth, so as to adjust the information transmission rate of the information transmission channel between the image acquisition end and the image receiving end.
[0187] In an exemplary embodiment, the first adjusting unit is specifically configured to:
[0188] From the reference transmission bandwidth of the current period and the actual transmission bandwidth of the last period of the current period, the global transmission bandwidth of the current period is selected; and the target transmission bandwidth of the image acquisition end is determined according to the global transmission bandwidth and the information transmission condition of the information transmission channel between the image acquisition end and the image receiving end.
[0189] In an exemplary embodiment, the first adjusting unit is further configured to:
[0190] The bandwidth difference between the actual transmission bandwidth of the last period of the current period and the reference transmission bandwidth of the image acquisition end in the current period is determined; the bandwidth fluctuation of the current period is determined according to the ratio between the bandwidth difference and the reference transmission bandwidth; in the case that the bandwidth fluctuation is less than the fluctuation threshold, the actual transmission bandwidth of the last period of the current period is selected as the global transmission bandwidth of the current period; in the case that the bandwidth fluctuation is greater than or equal to the fluctuation threshold, the reference transmission bandwidth of the current period is selected as the global transmission bandwidth of the current period.
[0191] In an exemplary embodiment, the bandwidth allocation module 20 comprises:
[0192] The first allocation unit is configured to determine the bandwidth quota of each image acquisition end according to the image acquisition configuration information of each image acquisition end in the current period;
[0193] The second allocation unit is configured to determine, for each image acquisition end, the bandwidth weight of the image acquisition end according to the proportion of the bandwidth quota of the image acquisition end in the total bandwidth quota of each image acquisition end;
[0194] The third allocation unit is configured to perform weighted processing on the total transmission bandwidth according to the bandwidth weight of the image acquisition end to obtain the reference transmission bandwidth of the image acquisition end in the current period.
[0195] In an exemplary embodiment, the personalized acquisition parameters include a target acquisition item and a trigger frequency of the target acquisition item, and the general acquisition parameters include a screenshot frequency, a screenshot size, and a trigger frequency of dynamic target detection; and the first allocation unit is specifically configured to:
[0196] For each image acquisition end, a first quota weight is used to weight the personalized acquisition parameters of the image acquisition end in the current period to obtain a first bandwidth quota; a second quota weight is used to weight the screenshot frequency and screenshot size of the image acquisition end in the current period to obtain a second bandwidth quota; a third quota weight is used to weight the trigger frequency of dynamic target detection of the image acquisition end in the current period to obtain a third bandwidth quota; wherein the first quota weight is greater than the second bandwidth quota, and the second bandwidth quota is greater than the third quota weight; the sum of the first bandwidth quota, the second bandwidth quota and the third bandwidth quota is used to determine the bandwidth quota of the image acquisition end.
[0197] In an exemplary embodiment, the transmission parameter adjustment apparatus 1 further comprises a threshold adjustment module, wherein the threshold adjustment module is specifically configured to:
[0198] For each image acquisition end, the information receiving threshold corresponding to the image acquisition end is adjusted according to the information transmission situation of the information transmission channel between the image acquisition end and the image receiving end, so as to adjust the information transmission rate of the information transmission channel between the image acquisition end and the image receiving end.
[0199] The above-mentioned various modules in the transmission parameter adjustment apparatus can be realized by software, hardware and combinations thereof in whole or in part. The above-mentioned various modules can be embedded in or independent of the processor in the computer device in hardware form, or can be stored in the memory in the computer device in software form, so as to be called and executed by the processor to perform the operations corresponding to the above-mentioned various modules.
[0200] In an exemplary embodiment, a computer device is provided, which can be a server, and the internal structure diagram thereof can be as shown in Figure 9 The computer device comprises a processor, a memory, an input / output interface (I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device comprises a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store image data. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals through network connection. The computer program is executed by the processor to implement a transmission parameter adjustment method.
[0201] Those skilled in the art can understand that,Figure 9 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0202] In an embodiment, a computer device is also provided, including a memory and a processor, the memory storing a computer program, and the processor implementing the steps in the above method embodiments when executing the computer program. In an embodiment, a computer readable storage medium is provided, storing a computer program, and the computer program implementing the steps in the above method embodiments when executed by a processor.
[0203] In an embodiment, a computer program product is provided, including a computer program, and the computer program implementing the steps in the above method embodiments when executed by a processor.
[0204] It should be noted that the data (including but not limited to collected image data, etc.) involved in the present application are all data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data need to comply with relevant regulations.
[0205] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when executed, can include the processes of the above-mentioned embodiment methods. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. The non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. The volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration but not limitation, the RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., without being limited thereto.
[0206] The technical features of the above embodiments can be combined in any manner. To make the description concise, not all possible combinations of the technical features in the above embodiments are described, but as long as the combinations of the technical features do not exist contradictions, they should be considered as the scope of the present application.
[0207] The above-described embodiments are merely illustrative of several embodiments of the present application, and the description is relatively specific and detailed, but should not be understood as a limitation on the scope of the patent. It should be noted that for those skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are all within the scope of the present application. Therefore, the scope of protection of the present application should be subject to the appended claims.
Claims
1. A method of adjusting transmission parameters, characterized by, The method is applied to an image receiving end, and comprises the following steps: obtaining total transmission bandwidth of each image acquisition end connected to the image receiving end; allocating the total transmission bandwidth according to image acquisition configuration information of each image acquisition end in a current time period to obtain reference transmission bandwidth of each image acquisition end in the current time period, wherein the image acquisition configuration information comprises individualized acquisition parameters and general acquisition parameters; for each image acquisition end, adjusting transmission parameters of an information transmission channel between the image acquisition end and the image receiving end according to the reference transmission bandwidth of the image acquisition end in the current time period and built-in switch chip access of the image receiving end.
2. The method of claim 1, wherein, The adjusting of the transmission parameters of the information transmission channel between the image acquisition end and the image receiving end according to the reference transmission bandwidth of the image acquisition end in the current time period and the built-in switch chip access of the image receiving end comprises: determining target transmission bandwidth of the image acquisition end according to information transmission of the information transmission channel between the image acquisition end and the image receiving end and the reference transmission bandwidth of the image acquisition end in the current time period; adjusting the transmission parameters of the information transmission channel between the image acquisition end and the image receiving end according to the target transmission bandwidth and the built-in switch chip access of the image receiving end.
3. The method of claim 2, wherein, The adjusting of the transmission parameters of the information transmission channel between the image acquisition end and the image receiving end according to the target transmission bandwidth and the built-in switch chip access of the image receiving end comprises: in a case that the built-in switch chip access of the image receiving end is power over Ethernet (POE) access with a built-in switch chip, adjusting transmission bandwidth of the information transmission channel between the image acquisition end and the image receiving end according to the target transmission bandwidth; in a case that the built-in switch chip access of the image receiving end is POE access without a built-in switch chip, generating an explicit congestion notification (ECN) signal adapted to the target transmission bandwidth to adjust information transmission rate of the information transmission channel between the image acquisition end and the image receiving end.
4. The method of claim 2, wherein, The determining of the target transmission bandwidth of the image acquisition end according to information transmission of the information transmission channel between the image acquisition end and the image receiving end and the reference transmission bandwidth of the image acquisition end in the current time period comprises: selecting global transmission bandwidth of the current time period from the reference transmission bandwidth of the current time period and actual transmission bandwidth of a previous time period of the current time period; determining the target transmission bandwidth of the image acquisition end according to the global transmission bandwidth and information transmission of the information transmission channel between the image acquisition end and the image receiving end.
5. The method of claim 4, wherein, The selecting of the global transmission bandwidth of the current time period from the reference transmission bandwidth of the current time period and the actual transmission bandwidth of the previous time period of the current time period comprises: determining bandwidth difference between the actual transmission bandwidth of the previous time period of the current time period and the reference transmission bandwidth of the image acquisition end in the current time period; determine a bandwidth fluctuation of the current time period according to a ratio between the bandwidth difference and the reference transmission bandwidth; in a case where the bandwidth fluctuation is less than a fluctuation threshold, select an actual transmission bandwidth of a last time period of the current time period as a global transmission bandwidth of the current time period; in a case where the bandwidth fluctuation is greater than or equal to the fluctuation threshold, select the reference transmission bandwidth of the current time period as the global transmission bandwidth of the current time period.
6. The method of claim 1, wherein, the bandwidth allocation according to the image acquisition configuration information of each of the image acquisition terminals in the current time period includes: determining a bandwidth quota of each of the image acquisition terminals according to the image acquisition configuration information of each of the image acquisition terminals in the current time period; for each of the image acquisition terminals, determining a bandwidth weight of the image acquisition terminal according to a proportion of the bandwidth quota of the image acquisition terminal in total bandwidth quotas of the image acquisition terminals; weighting the total transmission bandwidth according to the bandwidth weight of the image acquisition terminal to obtain the reference transmission bandwidth of the image acquisition terminal in the current time period.
7. The method of claim 6, wherein, the personalized acquisition parameters include a target acquisition item and a trigger frequency of the target acquisition item, and the general acquisition parameters include a screenshot frequency, a screenshot size, and a trigger frequency of dynamic target detection; the bandwidth allocation according to the image acquisition configuration information of each of the image acquisition terminals in the current time period includes: for each of the image acquisition terminals, weighting the personalized acquisition parameters of the image acquisition terminal in the current time period by using a first quota weight to obtain a first bandwidth quota; weighting the screenshot frequency and the screenshot size of the image acquisition terminal in the current time period by using a second quota weight to obtain a second bandwidth quota; weighting the trigger frequency of dynamic target detection of the image acquisition terminal in the current time period by using a third quota weight to obtain a third bandwidth quota; the first quota weight is greater than the second bandwidth quota, and the second bandwidth quota is greater than the third quota weight; determining the bandwidth quota of the image acquisition terminal according to a sum of the first bandwidth quota, the second bandwidth quota, and the third bandwidth quota.
8. The method according to any one of claims 1-7, characterized in that, the method further includes: for each of the image acquisition terminals, adjusting an information receiving threshold corresponding to the image acquisition terminal according to an information transmission condition of an information transmission channel between the image acquisition terminal and the image receiving terminal, to adjust an information transmission rate of the information transmission channel between the image acquisition terminal and the image receiving terminal.
9. A transmission parameter adjustment apparatus characterized by comprising: applied to an image receiving terminal, the device includes: a bandwidth obtaining module configured to obtain a total transmission bandwidth of each image acquisition terminal in communication connection with the image receiving terminal; a bandwidth allocation module configured to allocate the total transmission bandwidth according to image acquisition configuration information of each of the image acquisition terminals in a current time period to obtain a reference transmission bandwidth of each of the image acquisition terminals in the current time period; the image acquisition configuration information includes personalized acquisition parameters and general acquisition parameters. A parameter adjustment module is configured to adjust the transmission parameter of the information transmission channel between the image acquisition terminal and the image receiving terminal according to the reference transmission bandwidth of the image acquisition terminal in the current time period and the built-in switch chip access condition of the image receiving terminal. 10.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is configured to perform the method according to any one of claims 1-8 when the computer program is executed by the processor. The processor, when executing the computer program, implements the steps of the method in any one of claims 1 to 8.