CN116916050A - Method and device for transmitting road monitoring image to terminal - Google Patents

Method and device for transmitting road monitoring image to terminal Download PDF

Info

Publication number
CN116916050A
CN116916050A CN202211641263.1A CN202211641263A CN116916050A CN 116916050 A CN116916050 A CN 116916050A CN 202211641263 A CN202211641263 A CN 202211641263A CN 116916050 A CN116916050 A CN 116916050A
Authority
CN
China
Prior art keywords
priority processing
terminal
image
data packet
low
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211641263.1A
Other languages
Chinese (zh)
Other versions
CN116916050B (en
Inventor
陈铭
刘微
范智鹏
邱泽国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Harbin University of Commerce
Original Assignee
Harbin University of Commerce
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Harbin University of Commerce filed Critical Harbin University of Commerce
Priority to CN202211641263.1A priority Critical patent/CN116916050B/en
Priority to CN202410217244.9A priority patent/CN118101974A/en
Publication of CN116916050A publication Critical patent/CN116916050A/en
Application granted granted Critical
Publication of CN116916050B publication Critical patent/CN116916050B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2183Cache memory
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/21805Source of audio or video content, e.g. local disk arrays enabling multiple viewpoints, e.g. using a plurality of cameras
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23106Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23113Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving housekeeping operations for stored content, e.g. prioritizing content for deletion because of storage space restrictions

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

The invention discloses a method for transmitting road monitoring images to a terminal, which comprises the following steps: dividing, by the server, the monitor image a into a high-priority processing image area a and a low-priority processing image area a based on the division rule; the server sends a data packet A to the terminal; after receiving the data packet A, the terminal stores the data packet A into a standby buffer of the terminal; judging whether a main buffer of the terminal is available or not by the terminal; if the main buffer of the terminal is judged to be unavailable, judging whether the image data of the subarea of the low-priority processing image area exists in the main buffer by the terminal; if judging that the image data of the subarea of the low-priority processing image area exists in the main buffer, deleting the data packet corresponding to the image data of the subarea of the low-priority processing image area in the main buffer by the terminal; and the terminal reads the data packet A in the standby buffer into the main buffer.

Description

Method and device for transmitting road monitoring image to terminal
Technical Field
The present invention relates to the field of image transmission technologies, and in particular, to a method and an apparatus for transmitting a road monitoring image to a terminal.
Background
With the development of electronic and intelligent road traffic law enforcement, it is now possible for law enforcement personnel to request a monitoring image on a handheld electronic device and display the requested monitoring image on the handheld electronic device. To ensure objective fairness of law enforcement results, law enforcement personnel typically request multiple frames of monitoring images from a server at one time. For example, law enforcement personnel typically request multiple angles of surveillance images captured by multiple surveillance cameras in order to determine a violation of a particular motor vehicle. However, in the actual operation process, a problem of the jam of the read monitoring image often occurs.
Disclosure of Invention
In order to achieve the above object, the present invention provides a method for transmitting a road monitoring image to a terminal, characterized in that the method comprises:
dividing, by the server, the monitor image a into a high-priority processing image area a and a low-priority processing image area a based on the division rule;
transmitting, by the server, a data packet a to the terminal, wherein the data packet a includes image data of a sub-region a of the high-priority processing image region a, a region number a, a sub-region number a, an image number a, and a high-priority processing indicator;
after receiving the data packet A, the terminal stores the data packet A into a standby buffer of the terminal;
judging whether a main buffer of the terminal is available or not by the terminal;
if the main buffer of the terminal is judged to be unavailable, judging whether the image data of the subarea of the low-priority processing image area exists in the main buffer by the terminal;
if judging that the image data of the subarea of the low-priority processing image area exists in the main buffer, deleting the data packet corresponding to the image data of the subarea of the low-priority processing image area in the main buffer by the terminal;
and the terminal reads the data packet A in the standby buffer into the main buffer.
In a preferred embodiment, the main buffer stores a data packet B, where the data packet B includes image data of a sub-region a of the low priority processing image region B, a region number B, a sub-region number B, an image number B, and a low priority processing indicator;
the method for judging whether the image data of the subarea of the low-priority processing image area exists in the main buffer by the terminal specifically comprises the following steps:
decoding, by the terminal, the data packet B;
determining, by the terminal, that the image data of the sub-region a of the low priority processing image region B is the image data of the sub-region of the low priority processing image region based on the low priority processing indicator included in the data packet B.
In a preferred embodiment, the method further comprises:
after the terminal deletes the data packet B in the main buffer, the terminal judges whether the user still needs to use the image data of the subarea A of the low-priority processing image area B in the data packet B;
if the terminal judges that the user also needs to use the image data of the subarea A of the low-priority processing image area B in the data packet B, the terminal sends an instruction for retransmitting the data packet B to the server, wherein the instruction for retransmitting the data packet B comprises an area number B, a subarea number B and an image number B;
after the server receives the instruction of resending the data packet B, resending the data packet B to the terminal by the server;
if the terminal determines that the user does not need to use the image data of the sub-area a of the low priority processing image area B in the data packet B, the terminal does not send an instruction to resend the data packet B to the server.
In a preferred embodiment, the low priority processing image region B is derived from a monitoring image B, wherein the monitoring image B is acquired by the monitoring camera a;
recording, by the terminal, the number of times that the user also needs to use the low priority processing of the image data of the sub-area a of the image area B within a predetermined period of time;
if the number of times that the user still needs to use the image data of the sub-region A of the low priority processing image region B within the predetermined period of time is greater than the threshold value A, a priority processing adjustment indicator A is sent to the server by the terminal, wherein the priority processing adjustment indicator A comprises a region number B and an image number B.
In a preferred embodiment, the method further comprises:
after the server receives the priority processing adjustment indicator a, determining, by the server, that the low priority processing image area B is from the monitoring image B collected by the monitoring camera a based on the image number B;
after the server receives the priority processing adjustment indicator a, an image area corresponding to the low priority processing image area B from the monitoring image acquired by the monitoring camera a is redefined as a high priority processing image area by the server.
In a preferred embodiment, the method further comprises:
after the server redefines the image area corresponding to the low priority processing image area B as a high priority processing image area, transmitting a data packet C to the terminal by the server, wherein the data packet C includes image data of a sub-area a of the high priority processing image area B, the area number B, the sub-area number B, the image number C, the judgment indicator, and the high priority processing indicator, and wherein the high priority processing image area B corresponds to the redefined high priority processing image area;
after the terminal receives the data packet C, the necessity of determining the image data of the sub-area a of the high priority processing image area B is prompted by the terminal based on the judgment indicator included in the data packet C.
In a preferred embodiment, the method further comprises:
if the user determines that the necessity of processing the image data of the sub-region A of the image region B with high priority is not necessary for more than the threshold value B within a preset time period, the terminal sends a priority processing adjustment indicator B to the server, wherein the priority processing adjustment indicator B comprises a region number B and an image number C;
after the server receives the priority processing adjustment indicator B, determining, by the server, that the high priority processing image area B is from the monitoring image C collected by the monitoring camera a based on the image number C;
after the server receives the priority processing adjustment indicator B, an image area corresponding to the high priority processing image area B from the monitoring image acquired by the monitoring camera a is redefined as a low priority processing image area by the server.
The present invention provides an apparatus for transmitting a road monitoring image to a terminal, characterized in that the apparatus comprises means for performing the following operations:
dividing, by the server, the monitor image a into a high-priority processing image area a and a low-priority processing image area a based on the division rule;
transmitting, by the server, a data packet a to the terminal, wherein the data packet a includes image data of a sub-region a of the high-priority processing image region a, a region number a, a sub-region number a, an image number a, and a high-priority processing indicator;
after receiving the data packet A, the terminal stores the data packet A into a standby buffer of the terminal;
judging whether a main buffer of the terminal is available or not by the terminal;
if the main buffer of the terminal is judged to be unavailable, judging whether the image data of the subarea of the low-priority processing image area exists in the main buffer by the terminal;
if judging that the image data of the subarea of the low-priority processing image area exists in the main buffer, deleting the data packet corresponding to the image data of the subarea of the low-priority processing image area in the main buffer by the terminal;
and the terminal reads the data packet A in the standby buffer into the main buffer.
In a preferred embodiment, the main buffer stores a data packet B, where the data packet B includes image data of a sub-region a of the low priority processing image region B, a region number B, a sub-region number B, an image number B, and a low priority processing indicator;
the method for judging whether the image data of the subarea of the low-priority processing image area exists in the main buffer by the terminal specifically comprises the following steps:
decoding, by the terminal, the data packet B;
determining, by the terminal, that the image data of the sub-region a of the low priority processing image region B is the image data of the sub-region of the low priority processing image region based on the low priority processing indicator included in the data packet B.
In a preferred embodiment, the apparatus further comprises means for:
after the terminal deletes the data packet B in the main buffer, the terminal judges whether the user still needs to use the image data of the subarea A of the low-priority processing image area B in the data packet B;
if the terminal judges that the user also needs to use the image data of the subarea A of the low-priority processing image area B in the data packet B, the terminal sends an instruction for retransmitting the data packet B to the server, wherein the instruction for retransmitting the data packet B comprises an area number B, a subarea number B and an image number B;
after the server receives the instruction of resending the data packet B, resending the data packet B to the terminal by the server;
if the terminal determines that the user does not need to use the image data of the sub-area a of the low priority processing image area B in the data packet B, the terminal does not send an instruction to resend the data packet B to the server.
Compared with the prior art, the invention has the advantages that the problem that the terminal can not continue to receive the data from the server because the buffer memory of the terminal is occupied by the data packet received previously frequently occurs in the prior art, at this time, the terminal will not receive the data packet sent by the server and send a retransmission instruction to the server, the server is required to retransmit the data packet rejected by the terminal previously, and the image reading is slow because the same data packet is retransmitted at least once. The method provided by the invention can solve or relieve the problem of buffer fullness on the premise of not greatly changing the current terminal hardware configuration.
Drawings
FIG. 1 is a method flow diagram of one embodiment of the present invention.
Fig. 2 is a schematic diagram of the present invention regarding the division of a monitoring image into high priority processing image areas and low priority processing image areas.
Fig. 3 is a schematic diagram of the present invention regarding the division of a high priority processing image area into a plurality of sub-areas.
Fig. 4 is a schematic illustration of the present invention regarding redefining a low priority processing image area as a high priority processing image area.
Detailed Description
The following detailed description of embodiments of the invention is, therefore, to be taken in conjunction with the accompanying drawings, and it is to be understood that the scope of the invention is not limited to the specific embodiments.
After retrieving and analyzing the background data of the server and law enforcement instrument (i.e., an example of a "terminal" in the present invention), it has been found through my investigation that there are various reasons for slow or stuck image reading speeds of the terminal, in which the slow image reading speed caused by the terminal buffer fullness is about 30%, i.e., about 30 out of the slow image reading speeds per 100 on average, is caused by the terminal buffer fullness. The mechanism of slow image reading speed due to terminal buffer fullness can be described simply as follows: only when the terminal cache is free, the terminal can receive data from the server; if the buffer memory of the terminal is full of the data packet received previously, the terminal cannot continue to receive data from the server, at this time, the terminal will not receive the data packet sent by the server and send a retransmission indication to the server, requiring the server to retransmit the data packet rejected previously by the terminal, which results in slow image reading because the same data packet is retransmitted at least once. One way to solve this problem is to choose a terminal with a larger cache, but to replace the new equipment on a large scale, on the premise that many existing terminals have not been damaged and aged, which results in a huge waste of resources. The invention aims to provide the technical scheme for solving the problem of buffer fullness on the premise of not greatly changing the current terminal hardware configuration.
Example 1
As shown in fig. 1, the method of the present invention comprises the steps of:
step 1: dividing, by the server, the monitor image a into a high-priority processing image area a and a low-priority processing image area a based on the division rule; in the present invention, the server needs to divide one frame of image into one or more high-priority processing image areas and one or more low-priority processing image areas, and when transmitting image data of each frame, first transmit the high-priority processing image areas to the terminal. In one example, the high priority processing image area and the low priority processing image area may be defined with reference to fig. 2, for example, in fig. 2, the image areas numbered 1-8 are all low priority processing image areas, and the image area numbered 9 is a high priority processing image area, and the principle of this division is that since most road monitoring cameras are fixed angle cameras, the monitoring images captured by these monitoring cameras can ensure that important information of the images always appear at fixed positions of the images, for example, the monitoring cameras can ensure that important information of the images (for example, vehicles of the objects of interest) always appear at the middle part of the images (that is, the area numbered 9 in fig. 2), and in the image areas numbered 1-8, generally only sky, ground, green belts, street lamps, other pedestrians or vehicles of the objects of non-interest are information, the image areas numbered 1-8 can be divided into low priority processing image areas, and the image areas numbered 9 are divided into high priority processing image areas. It will be appreciated by those skilled in the art that since the monitoring camera is a fixed angle camera, the servers will be partitioned in the manner described in fig. 2 as long as the images are from the monitoring camera. Furthermore, it should be appreciated that since different monitoring cameras have different angles, the corresponding division rules may be different for monitoring images from different monitoring cameras.
Step 2: transmitting, by the server, a data packet a to the terminal, wherein the data packet a includes image data of a sub-region a of the high-priority processing image region a, a region number a, a sub-region number a, an image number a, and a high-priority processing indicator; in one example, the sub-regions of the high priority processing image region may be defined with reference to fig. 3, and it will be appreciated by those skilled in the art that the size of the sub-regions is determined by the size of each data packet defined by the system, and that larger sub-regions may be partitioned if the system supports transmitting data packets of a large number of bits, and smaller sub-regions may be partitioned if the system supports transmitting only data packets of a small number of bits; in one example, the server performs a series of conventional image processing such as compression and encoding on the sub-region a of the high priority processing image region a, thereby generating encoded image data, which the present invention will refer to as "image data of the sub-region a of the high priority processing image region a". In the examples of fig. 2 and 3, the area number a is a value "9", the sub-area number a may be a natural number, for example, the image number a is an image serial number inside the server, for example, the server sequentially numbers the multi-frame image data received from the plurality of monitoring cameras (for example, sequentially numbers with the natural number), and according to the image number, the server can know from which monitoring camera a certain frame of monitoring image comes. It will be appreciated by those skilled in the art that the image in the low priority processing image region also needs to be divided into a plurality of sub-regions for transmission.
Step 3: after receiving the data packet A, the terminal stores the data packet A into a standby buffer of the terminal; in one example, the spare buffer may be a block of memory area divided by a logical partition from the original buffer of the terminal, and the method may ensure that the method of the present invention is implemented without increasing hardware cost. Although the division of the original buffer into the main buffer and the spare buffer may result in an increased probability of the buffer being used up (i.e. the buffer being full), the present invention is still able to increase the speed of reading the image since the method of the present invention allows to quickly display important information in the monitored image on the display of the terminal in case the buffer is full.
Step 4: judging whether a main buffer of the terminal is available or not by the terminal; in one example, the terminal determining whether the main buffer of the terminal is full is one example of the terminal determining whether the main buffer of the terminal is available;
step 5: if the main buffer of the terminal is judged to be unavailable, judging whether the image data of the subarea of the low-priority processing image area exists in the main buffer by the terminal; in one example, for example, the main buffer also buffers a plurality of image data of another frame of monitoring image, which is waiting for the process of decoding and compression;
step 6: if judging that the image data of the subarea of the low-priority processing image area exists in the main buffer, deleting the data packet corresponding to the image data of the subarea of the low-priority processing image area in the main buffer by the terminal;
step 7: and the terminal reads the data packet A in the standby buffer into the main buffer.
Example 2
In embodiment 2, a data packet B is stored in the main buffer, wherein the data packet B includes image data of a sub-region a of the low priority processing image region B, a region number B, a sub-region number B, an image number B, and a low priority processing indicator; the method for judging whether the image data of the subarea of the low-priority processing image area exists in the main buffer by the terminal specifically comprises the following steps: decoding, by the terminal, the data packet B; determining, by the terminal, that the image data of the sub-region a of the low priority processing image region B is the image data of the sub-region of the low priority processing image region based on the low priority processing indicator included in the data packet B.
In embodiment 2, the method further comprises:
after the terminal deletes the data packet B in the main buffer, the terminal judges whether the user still needs to use the image data of the subarea A of the low-priority processing image area B in the data packet B; in one example, the terminal has already presented to the user the image of the high priority processing image area of the one frame of monitoring image corresponding to the low priority processing image area B, but since the image data of a part of the low priority processing image area is deleted, the image of the part of the low priority processing image area may be presented as a mosaic or as a blurred picture resembling a background blurring effect, these presented images do not require support of actual data, the presented picture is entirely virtual; when the user looks back at the monitored image with the virtual image, if the user considers that the virtual image has the information required by the user, the user can select to instruct the terminal to continue providing the real image of the area, and at the moment, the terminal judges that the user still needs to use the image data of the subarea A of the low-priority processing image area B in the data packet B;
if the terminal judges that the user also needs to use the image data of the subarea A of the low-priority processing image area B in the data packet B, the terminal sends an instruction for retransmitting the data packet B to the server, wherein the instruction for retransmitting the data packet B comprises an area number B, a subarea number B and an image number B;
after the server receives the instruction of resending the data packet B, resending the data packet B to the terminal by the server;
if the terminal determines that the user does not need to use the image data of the sub-area a of the low priority processing image area B in the data packet B, the terminal does not send an instruction to resend the data packet B to the server. In one example, if the user does not review the frame of the monitored image in which the virtual image is present, or after the user review the frame of the monitored image in which the virtual image is present, the terminal is not instructed to continue to provide the real image of the virtual image area, it may be considered that the user does not need to use the low priority in the data packet B to process the image data of the sub-area a of the image area B.
Example 3
In embodiment 3, the low-priority processing image area B comes from a monitoring image B acquired by the monitoring camera a;
recording, by the terminal, the number of times that the user also needs to use the low priority processing of the image data of the sub-area a of the image area B within a predetermined period of time; in one example, the predetermined period of time may be, for example, 10 hours, 12 hours, or 24 hours;
if the number of times that the user still needs to use the image data of the sub-region A of the low priority processing image region B within the predetermined period of time is greater than the threshold value A, a priority processing adjustment indicator A is sent to the server by the terminal, wherein the priority processing adjustment indicator A comprises a region number B and an image number B. In one example, the threshold value may be set to 10 times, for example.
In embodiment 3, the method further comprises:
after the server receives the priority processing adjustment indicator a, determining, by the server, that the low priority processing image area B is from the monitoring image B collected by the monitoring camera a based on the image number B;
after the server receives the priority processing adjustment indicator a, an image area corresponding to the low priority processing image area B from the monitoring image acquired by the monitoring camera a is redefined as a high priority processing image area by the server. In one example, as shown in fig. 4, for example, the monitor image B corresponding to the low priority processing image area B is originally divided according to the left-hand block diagram of fig. 4, assuming that the low priority processing image area B is the low priority processing image area of No. 8, after the server receives the priority processing adjustment indicator a, the server redefines the image area of No. 8 as the high priority processing image area, the number of the image area is still 8 (as shown in the right-hand block diagram of fig. 4), and as previously described, the same division rule needs to be applied for all frame images from the same monitor camera a, so after redefining the image area of No. 8 as the high priority processing image area, the server still divides the monitor image according to the manner shown in the right-hand block diagram of fig. 4 for the subsequent monitor image from the monitor camera a.
The method further comprises the steps of:
after the server redefines the image area corresponding to the low priority processing image area B as a high priority processing image area, transmitting a data packet C to the terminal by the server, wherein the data packet C includes image data of a sub-area a of the high priority processing image area B, the area number B, the sub-area number B, the image number C, the judgment indicator, and the high priority processing indicator, and wherein the high priority processing image area B corresponds to the redefined high priority processing image area;
after the terminal receives the data packet C, the necessity of determining the image data of the sub-area a of the high priority processing image area B is prompted by the terminal based on the judgment indicator included in the data packet C. In one example, still referring to fig. 4, for example, in fig. 4, the server redefines the image area with the number 8 as the high priority processing image area, then when sending the image data from the monitoring camera a to the terminal, the terminal prompts an action for judging whether the image of the image area with the number 8 is a necessary image, for example, if the image in the image area with the number 8 does not include useful information at all, the user can select that the image in the image area with the number 8 is unnecessary, that is, the action of realizing the user's necessity of determining the image data of the sub-area a of the high priority processing image area B. It will be appreciated by those skilled in the art that the terminal first presents the image in the image area numbered 8 to the user entirely, and then the user determines whether the image in the entire image area numbered 8 has useful information at a time, by which operation the user also substantially determines the necessity of processing the image data of the sub-area a of the image area B with high priority.
If the user determines that the necessity of processing the image data of the sub-region A of the image region B with high priority is not necessary for more than the threshold value B within a preset time period, the terminal sends a priority processing adjustment indicator B to the server, wherein the priority processing adjustment indicator B comprises a region number B and an image number C;
after the server receives the priority processing adjustment indicator B, determining, by the server, that the high priority processing image area B is from the monitoring image C collected by the monitoring camera a based on the image number C;
after the server receives the priority processing adjustment indicator B, an image area corresponding to the high priority processing image area B from the monitoring image acquired by the monitoring camera a is redefined as a low priority processing image area by the server.
Example 4
The present invention provides an apparatus for transmitting a road monitoring image to a terminal, characterized in that the apparatus comprises means for performing the following operations: dividing, by the server, the monitor image a into a high-priority processing image area a and a low-priority processing image area a based on the division rule; transmitting, by the server, a data packet a to the terminal, wherein the data packet a includes image data of a sub-region a of the high-priority processing image region a, a region number a, a sub-region number a, an image number a, and a high-priority processing indicator; after receiving the data packet A, the terminal stores the data packet A into a standby buffer of the terminal; judging whether a main buffer of the terminal is available or not by the terminal; if the main buffer of the terminal is judged to be unavailable, judging whether the image data of the subarea of the low-priority processing image area exists in the main buffer by the terminal; if judging that the image data of the subarea of the low-priority processing image area exists in the main buffer, deleting the data packet corresponding to the image data of the subarea of the low-priority processing image area in the main buffer by the terminal; and the terminal reads the data packet A in the standby buffer into the main buffer.
In a preferred embodiment, the main buffer stores a data packet B, where the data packet B includes image data of a sub-region a of the low priority processing image region B, a region number B, a sub-region number B, an image number B, and a low priority processing indicator; the method for judging whether the image data of the subarea of the low-priority processing image area exists in the main buffer by the terminal specifically comprises the following steps: decoding, by the terminal, the data packet B; determining, by the terminal, that the image data of the sub-region a of the low priority processing image region B is the image data of the sub-region of the low priority processing image region based on the low priority processing indicator included in the data packet B.
In a preferred embodiment, the apparatus further comprises means for: after the terminal deletes the data packet B in the main buffer, the terminal judges whether the user still needs to use the image data of the subarea A of the low-priority processing image area B in the data packet B; if the terminal judges that the user also needs to use the image data of the subarea A of the low-priority processing image area B in the data packet B, the terminal sends an instruction for retransmitting the data packet B to the server, wherein the instruction for retransmitting the data packet B comprises an area number B, a subarea number B and an image number B; after the server receives the instruction of resending the data packet B, resending the data packet B to the terminal by the server; if the terminal determines that the user does not need to use the image data of the sub-area a of the low priority processing image area B in the data packet B, the terminal does not send an instruction to resend the data packet B to the server.
It is to be understood that the above-described embodiments of the present invention are merely illustrative of or explanation of the principles of the present invention and are in no way limiting of the invention. Accordingly, any modification, equivalent replacement, improvement, etc. made without departing from the spirit and scope of the present invention should be included in the scope of the present invention. Furthermore, the appended claims are intended to cover all such changes and modifications that fall within the scope and boundary of the appended claims, or equivalents of such scope and boundary.

Claims (10)

1. A method of transmitting a road monitoring image to a terminal, the method comprising:
dividing, by the server, the monitor image a into a high-priority processing image area a and a low-priority processing image area a based on the division rule;
transmitting a data packet A to a terminal by a server, wherein the data packet A comprises image data of a subarea A of a high-priority processing image area A, an area number A, a subarea number A, an image number A and a high-priority processing indicator;
after receiving the data packet A, storing the data packet A into a standby buffer of the terminal by the terminal;
judging whether a main buffer of the terminal is available or not by the terminal;
if the main buffer of the terminal is judged to be unavailable, judging whether the image data of the subarea of the low-priority processing image area exists in the main buffer by the terminal;
if judging that the image data of the subarea of the low-priority processing image area exists in the main buffer, deleting the data packet corresponding to the image data of the subarea of the low-priority processing image area in the main buffer by the terminal;
and reading the data packet A in the standby buffer into the main buffer by the terminal.
2. The method of claim 1, wherein the primary buffer has stored therein a data packet B, wherein the data packet B includes image data of a sub-region a of a low priority processing image region B, a region number B, a sub-region number B, an image number B, and a low priority processing indicator;
the method for judging whether the image data of the subarea of the low-priority processing image area exists in the main buffer by the terminal specifically comprises the following steps:
decoding, by a terminal, the data packet B;
determining, by a terminal, that the image data of the sub-region a of the low priority processing image region B is the image data of the sub-region of the low priority processing image region based on the low priority processing indicator included in the data packet B.
3. The method of claim 2, wherein the method further comprises:
after the terminal deletes the data packet B in the main buffer, the terminal judges whether the user still needs to use the image data of the subarea A of the low-priority processing image area B in the data packet B;
if the terminal judges that the user also needs to use the image data of the subarea A of the low-priority processing image area B in the data packet B, the terminal sends an instruction for retransmitting the data packet B to the server, wherein the instruction for retransmitting the data packet B comprises an area number B, a subarea number B and an image number B;
after the server receives the instruction of resending the data packet B, resending the data packet B to the terminal by the server;
if the terminal judges that the user does not need to use the image data of the sub-area A of the low priority processing image area B in the data packet B, the terminal does not send an instruction for retransmitting the data packet B to the server.
4. A method according to claim 3, wherein the low priority processing image region B is from a monitoring image B, wherein the monitoring image B is acquired by a monitoring camera a;
recording, by the terminal, the number of times that the user also needs to use the image data of the sub-region a of the low-priority processing image region B within a predetermined period of time;
and if the number of times that the user still needs to use the image data of the sub-region A of the low-priority processing image region B within the preset time period is larger than the threshold value A, sending a priority processing adjustment indicator A to the server by the terminal, wherein the priority processing adjustment indicator A comprises a region number B and an image number B.
5. The method of claim 4, wherein the method further comprises:
after the server receives the priority processing adjustment indicator a, determining, by the server, that the low priority processing image area B is from a monitoring image B acquired by the monitoring camera a based on the image number B;
after the server receives the priority processing adjustment indicator a, an image area corresponding to the low priority processing image area B from the monitoring image acquired by the monitoring camera a is redefined as a high priority processing image area by the server.
6. The method of claim 5, wherein the method further comprises:
after the server redefines the image area corresponding to the low priority processing image area B as a high priority processing image area, transmitting a data packet C to the terminal by the server, wherein the data packet C comprises image data of a sub-area a of the high priority processing image area B, an area number B, a sub-area number B, an image number C, a judgment indicator and a high priority processing indicator, wherein the high priority processing image area B corresponds to the redefined high priority processing image area;
after the terminal receives the data packet C, the terminal prompts the user to determine the necessity of processing the image data of the sub-area a of the image area B with high priority based on the judgment indicator included in the data packet C.
7. The method of claim 6, wherein the method further comprises:
if the user determines that the necessity of the image data of the sub-region A of the high-priority processing image region B is unnecessary for a time period greater than a threshold value B, transmitting a priority processing adjustment indicator B to the server by the terminal, wherein the priority processing adjustment indicator B comprises a region number B and an image number C;
after the server receives the priority processing adjustment indicator B, determining, by the server, that the high priority processing image area B is from a monitoring image C acquired by a monitoring camera a based on the image number C;
after the server receives the priority processing adjustment indicator B, an image area corresponding to the high priority processing image area B from the monitoring image acquired by the monitoring camera a is redefined as a low priority processing image area by the server.
8. An apparatus for transmitting a road monitoring image to a terminal, the apparatus comprising means for:
dividing, by the server, the monitor image a into a high-priority processing image area a and a low-priority processing image area a based on the division rule;
transmitting a data packet A to a terminal by a server, wherein the data packet A comprises image data of a subarea A of a high-priority processing image area A, an area number A, a subarea number A, an image number A and a high-priority processing indicator;
after receiving the data packet A, storing the data packet A into a standby buffer of the terminal by the terminal;
judging whether a main buffer of the terminal is available or not by the terminal;
if the main buffer of the terminal is judged to be unavailable, judging whether the image data of the subarea of the low-priority processing image area exists in the main buffer by the terminal;
if judging that the image data of the subarea of the low-priority processing image area exists in the main buffer, deleting the data packet corresponding to the image data of the subarea of the low-priority processing image area in the main buffer by the terminal;
and reading the data packet A in the standby buffer into the main buffer by the terminal.
9. The apparatus of claim 8, wherein the primary buffer has stored therein a data packet B, wherein the data packet B includes image data of a sub-region a of a low priority processing image region B, a region number B, a sub-region number B, an image number B, and a low priority processing indicator;
the method for judging whether the image data of the subarea of the low-priority processing image area exists in the main buffer by the terminal specifically comprises the following steps:
decoding, by a terminal, the data packet B;
determining, by a terminal, that the image data of the sub-region a of the low priority processing image region B is the image data of the sub-region of the low priority processing image region based on the low priority processing indicator included in the data packet B.
10. The apparatus of claim 9, wherein the apparatus further comprises means for:
after the terminal deletes the data packet B in the main buffer, the terminal judges whether the user still needs to use the image data of the subarea A of the low-priority processing image area B in the data packet B;
if the terminal judges that the user also needs to use the image data of the subarea A of the low-priority processing image area B in the data packet B, the terminal sends an instruction for retransmitting the data packet B to the server, wherein the instruction for retransmitting the data packet B comprises an area number B, a subarea number B and an image number B;
after the server receives the instruction of resending the data packet B, resending the data packet B to the terminal by the server;
if the terminal judges that the user does not need to use the image data of the sub-area A of the low priority processing image area B in the data packet B, the terminal does not send an instruction for retransmitting the data packet B to the server.
CN202211641263.1A 2022-12-20 2022-12-20 Method and device for transmitting road monitoring image to terminal Active CN116916050B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211641263.1A CN116916050B (en) 2022-12-20 2022-12-20 Method and device for transmitting road monitoring image to terminal
CN202410217244.9A CN118101974A (en) 2022-12-20 2022-12-20 Method and device for sending image to terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211641263.1A CN116916050B (en) 2022-12-20 2022-12-20 Method and device for transmitting road monitoring image to terminal

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202410217244.9A Division CN118101974A (en) 2022-12-20 2022-12-20 Method and device for sending image to terminal

Publications (2)

Publication Number Publication Date
CN116916050A true CN116916050A (en) 2023-10-20
CN116916050B CN116916050B (en) 2024-03-19

Family

ID=88360804

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202211641263.1A Active CN116916050B (en) 2022-12-20 2022-12-20 Method and device for transmitting road monitoring image to terminal
CN202410217244.9A Pending CN118101974A (en) 2022-12-20 2022-12-20 Method and device for sending image to terminal

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202410217244.9A Pending CN118101974A (en) 2022-12-20 2022-12-20 Method and device for sending image to terminal

Country Status (1)

Country Link
CN (2) CN116916050B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110173266A1 (en) * 2008-09-18 2011-07-14 Pioneer Corporation Image sharing controller, image sharing system, image sharing controlling method, its program, and recording medium recorded with the program
CN106101610A (en) * 2015-05-01 2016-11-09 株式会社理光 Image display system, messaging device and method for displaying image
CN110636257A (en) * 2019-08-28 2019-12-31 视联动力信息技术股份有限公司 Monitoring video processing method and device, electronic equipment and storage medium
CN112437280A (en) * 2020-11-23 2021-03-02 单昂 Intelligent monitoring security data processing management system based on big data analysis
CN112445727A (en) * 2020-11-27 2021-03-05 鹏城实验室 Edge cache replacement method and device based on viewport characteristics

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110173266A1 (en) * 2008-09-18 2011-07-14 Pioneer Corporation Image sharing controller, image sharing system, image sharing controlling method, its program, and recording medium recorded with the program
CN106101610A (en) * 2015-05-01 2016-11-09 株式会社理光 Image display system, messaging device and method for displaying image
CN110636257A (en) * 2019-08-28 2019-12-31 视联动力信息技术股份有限公司 Monitoring video processing method and device, electronic equipment and storage medium
CN112437280A (en) * 2020-11-23 2021-03-02 单昂 Intelligent monitoring security data processing management system based on big data analysis
CN112445727A (en) * 2020-11-27 2021-03-05 鹏城实验室 Edge cache replacement method and device based on viewport characteristics

Also Published As

Publication number Publication date
CN116916050B (en) 2024-03-19
CN118101974A (en) 2024-05-28

Similar Documents

Publication Publication Date Title
CN110572579A (en) image processing method and device and electronic equipment
CN107948605B (en) Method, device and equipment for storing vehicle-mounted monitoring video data and storage medium
CN109784487B (en) Deep learning network for event detection, training device and method of deep learning network
CN112468416B (en) Network flow mirroring method and device, computer equipment and storage medium
CN116916050B (en) Method and device for transmitting road monitoring image to terminal
CN114900515B (en) Train file returning method, train host, station and control center
EP3582503A1 (en) Method and device for transmitting video
WO2018032696A1 (en) Method and system for desktop screenshot control
CN113486856A (en) Driver irregular behavior detection method based on semantic segmentation and convolutional neural network
CN112347810B (en) Method and device for detecting moving target object and storage medium
CN113038261A (en) Video generation method, device, equipment, system and storage medium
CN111681423A (en) Method and device for realizing license plate information processing, computer storage medium and terminal
CN114710474B (en) Data stream processing and classifying method based on Internet of things
CN115225680A (en) Urban brain road maintenance system based on edge calculation
CN112885102B (en) Image shooting method, device, equipment and storage medium
JP2004289294A (en) Data processing system, data processor, and data processing method
CN113807125B (en) Emergency lane occupation detection method, device, computer equipment and storage medium
CN112837529B (en) Data processing method and system, acquisition device, processor and storage medium
CN112435475B (en) Traffic state detection method, device, equipment and storage medium
CN112836697A (en) Yoov 5-based vehicle type detection and quality estimation method
CN114708425A (en) Method and device for identifying vehicle parking violation and computer readable storage medium
CN114339330A (en) Network hard disk video recording writing method, device, electronic device and storage medium
CN112347996A (en) Scene state judgment method, device, equipment and storage medium
CN112367637A (en) Method and device for realizing early warning processing, computer storage medium and terminal
CN111708769A (en) Method, system, computer storage medium and terminal for realizing information processing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant