Image transmission control method, device and storage medium
Patent Information
- Application Number
- CN202611297634.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-25
- Publication Date
- 2026-10-27
AI Technical Summary
[0005]本申请的主要目的在于提供一种图像传输的控制方法、设备及存储介质,旨在解决停车场设备因网络质量不佳而中断与云端的数据传输时,会使车辆在闸机前滞留,影响车辆通行效率的技术问题
本申请通过在传输待传输图像时,持续检测网络质量指标,并在网络质量不符合要求时,切换至移动网络传输待传输图像,从而提高了图像传输的稳定性,以保障停车场车辆的通行效率。同时,当本地网络质量不达标时,本申请基于分块序列号区间生成位置标识,动态切换至移动网络后直接从未传输的首个图像分块恢复传输,提高网络切换速度的同时,使得云端能够即时接收并处理车辆识别图像的剩余关键分块,从而消除因重复传输或网络等待造成的通行指令延迟,显著提升道闸响应速度与车辆通行效率。
Smart Images

Figure CN122994231A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data transmission technology, and in particular to a control method, device and storage medium for image transmission. Background Technology
[0002] Intelligent parking lot management relies on efficient communication between equipment and the cloud to enable vehicles to pass through quickly.
[0003] In related technologies, parking equipment typically connects to a cloud server via a fixed local network (such as Wi-Fi or wired) to transmit images and control commands. When the local network quality is poor, these technologies usually continuously attempt to retransmit failed data packets or wait for the network to recover. In this situation, the parking equipment interrupts operations due to data transmission disruptions, causing vehicles to linger at the gates and affecting traffic flow efficiency.
[0004] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention
[0005] The main purpose of this application is to provide a control method, device and storage medium for image transmission, which aims to solve the technical problem that when parking equipment interrupts data transmission with the cloud due to poor network quality, vehicles will be stuck in front of the gate, affecting the efficiency of vehicle passage.
[0006] To achieve the above objectives, this application provides a method for controlling image transmission, the method comprising the following steps: Extract the feature information of the image to be transmitted, and match the feature information with pre-stored key feature information; Based on the matching results, determine the image retransmission strategy for the image transmission session of the image block; After the network switching process is triggered, the sequence number range of the image block to be transmitted is obtained from the image transmission session of the local network; Generate image block location identifiers corresponding to the sequence number range, and locate the starting transmission location identifier of the mobile communication network in the image block location identifiers; Based on the image continuation strategy and the starting transmission location identifier, the image transmission session is switched to the mobile communication network, and the image to be transmitted is resumed.
[0007] In one embodiment, after the step of resuming the transmission of the image to be transmitted based on the image continuation strategy and the starting transmission location identifier, the method further includes: Detect the target network quality indicators of the local network at the current moment; When the target network quality indicators meet the network quality standards, the network recovery time is recorded by a timer. When the network recovery time exceeds a preset time threshold, the target sequence number range of the target image block to be transmitted is obtained in the image transmission session; Generate the target image block location identifier corresponding to the target sequence number range, and locate the target transmission location identifier in the target image block location identifier; The image transmission session is switched to the local network, and the image to be transmitted is continued from the target image block corresponding to the target transmission location identifier.
[0008] In one embodiment, before the step of obtaining the sequence number range of the image block to be transmitted in the image transmission session of the local network after triggering the network switching process, the method further includes: Through the local network, network probe data packets are sent to the receiving end of the image to be transmitted based on a preset time interval; Receive the response information fed back by the receiving end; The network latency and packet loss rate of the local network are calculated based on the response information to obtain the network quality index. When the network quality indicators fail to meet the network quality standards, the network switching process is triggered.
[0009] In one embodiment, the step of determining the image continuation strategy for the image transmission session of the image block based on the matching result includes: Based on the matching result, determine whether the target feature information exists in the feature information; If the target feature information exists, the network quality judgment threshold in the network quality standard will be adjusted to the first judgment threshold; Alternatively, if the target feature information does not exist, the network quality judgment threshold in the network quality standard is adjusted to the second judgment threshold.
[0010] In one embodiment, the step of resuming the transmission of the image to be transmitted based on the image continuation strategy and the starting transmission location identifier includes: If, based on the matching result, it is determined that target feature information exists in the image to be transmitted, the target feature information is obtained; The target feature information is determined in the target image block in the image to be transmitted, and the target sequence number range corresponding to the target image block is determined; If the target sequence number range does not intersect with the sequence number range, the image transmission session of the image to be transmitted is terminated.
[0011] In one embodiment, the step of extracting feature information from the image to be transmitted and matching the feature information with pre-stored key feature information includes: Acquire the image to be transmitted; A downsampling operation is performed on the image to be transmitted to obtain a feature image of the image to be transmitted. The feature information is obtained by extracting the contour information from the feature image using an image segmentation algorithm; The feature information is matched with the key feature information, and the target feature information is determined to be present in the image to be transmitted based on the matching result.
[0012] In one embodiment, after the step of resuming the transmission of the image to be transmitted based on the image continuation strategy and the starting transmission location identifier, the method further includes: Detect the mobile network quality indicators of the mobile communication network at the current moment; When the mobile network quality index is lower than a preset index threshold, the feature extraction action of the image to be transmitted is performed to obtain image feature information; The image feature information is uploaded to the cloud server via the mobile communication network, and the image transmission session of the image to be transmitted is terminated.
[0013] In one embodiment, the step of generating image block location identifiers corresponding to the sequence number interval, and locating the starting transmission location identifier of the mobile communication network within the image block location identifiers, includes: The starting block index number of the image block to be transmitted is determined based on the minimum sequence number in the sequence number range. Based on the starting block index number and the predefined image block size, the byte offset of the image block to be transmitted is calculated to form the image block position identifier corresponding to the byte offset; The starting transmission location identifier is determined in the image block location identifier by aligning the byte offset with the boundary of the image block to be transmitted.
[0014] In addition, to achieve the above objectives, this application also provides an image transmission control device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the image transmission control method as described above.
[0015] In addition, to achieve the above objectives, this application also provides a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the image transmission control method described above.
[0016] One or more technical solutions proposed in this application have at least the following technical effects: This application improves the stability of image transmission by continuously monitoring network quality indicators during image transmission and switching to a mobile network when network quality fails to meet requirements, thereby ensuring the efficiency of vehicle passage in parking lots. Simultaneously, when local network quality is substandard, this application generates location identifiers based on block sequence number intervals and dynamically switches to the mobile network to directly resume transmission from the first untransmitted image block. This improves network switching speed and allows the cloud to instantly receive and process the remaining key blocks of the vehicle recognition image, eliminating passage command delays caused by repeated transmissions or network waiting, and significantly improving the gate's response speed and vehicle passage efficiency. Attached Figure Description
[0017] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a flowchart illustrating the first embodiment of the image transmission control method of this application; Figure 2 This is a flowchart illustrating the second embodiment of the image transmission control method of this application; Figure 3 This is a flowchart illustrating the third embodiment of the image transmission control method of this application; Figure 4 This is a flowchart illustrating the fourth embodiment of the image transmission control method of this application; Figure 5 This is a flowchart illustrating the fifth embodiment of the image transmission control method of this application; Figure 6 This is a schematic diagram of the structure of the image transmission control device in the hardware operating environment involved in the embodiments of this application.
[0020] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0021] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.
[0022] To better understand the above technical solutions, the following will provide a detailed explanation of the technical solutions in conjunction with the accompanying drawings and specific implementation methods.
[0023] The main solution of this application embodiment is as follows: extract the feature information of the image to be transmitted, match the feature information with pre-stored key feature information; determine the image continuation strategy of the image transmission session of the image block according to the matching result; after triggering the network switching process, obtain the sequence number range of the image block to be transmitted in the image transmission session of the local network; generate the image block location identifier corresponding to the sequence number range, and locate the starting transmission location identifier of the mobile communication network in the image block location identifier; based on the image continuation strategy and the starting transmission location identifier, switch the image transmission session to the mobile communication network and continue transmitting the image to be transmitted.
[0024] In existing technologies, parking equipment typically connects to a cloud server via a fixed local network (such as Wi-Fi or wired) to transmit images and control commands. When the local network quality is poor, these technologies usually continuously attempt to retransmit failed data packets or wait for the network to recover. In this situation, the parking equipment interrupts operations due to data transmission disruptions, causing vehicles to linger at the gates and affecting traffic flow efficiency.
[0025] This application improves the stability of image transmission by continuously monitoring network quality indicators during image transmission and switching to a mobile network when network quality fails to meet requirements, thereby ensuring the efficiency of vehicle passage in parking lots. Simultaneously, when local network quality is substandard, this application generates location identifiers based on block sequence number intervals and dynamically switches to the mobile network to directly resume transmission from the first untransmitted image block. This improves network switching speed and allows the cloud to instantly receive and process the remaining key blocks of the vehicle recognition image, eliminating passage command delays caused by repeated transmissions or network waiting, and significantly improving the gate's response speed and vehicle passage efficiency.
[0026] To better understand the above technical solutions, exemplary embodiments of this application will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of this application are shown in the drawings, it should be understood that this application can be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of this application and to fully convey the scope of this application to those skilled in the art.
[0027] It should be noted that the executing entity in this embodiment can be parking lot equipment, or a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device or image transmission control device capable of the above functions. This embodiment does not specifically limit it in this regard. The following uses parking lot equipment as an example to describe this embodiment and the following embodiments.
[0028] Based on this, embodiments of this application provide a method for controlling image transmission, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the image transmission control method of this application.
[0029] In this embodiment, the image transmission control method includes steps S10 to S40: Step S10: Extract the feature information of the image to be transmitted, and match the feature information with the pre-stored key feature information; In this embodiment, the parking lot equipment is equipped with a control module to ensure the normal operation and management of the parking lot equipment. The control module includes complete functional modules such as image recognition, equipment control, and cache management, which can realize the same equipment management functions as the cloud, so as to realize emergency functions in the event of network or cloud outage.
[0030] Specifically, the parking lot equipment acquires the image to be transmitted and extracts its visual features, such as the contour information of various parts of the image, using image processing algorithms. The control module matches this feature information with preset key feature information and determines whether target feature information exists based on a similarity measurement algorithm. If it exists, the network quality judgment threshold is adjusted to a stricter first judgment threshold; if it does not exist, it is adjusted to a relatively lenient second judgment threshold. Key feature information is used to identify whether the image to be processed contains feature information required for business processing. Target feature information refers to key feature information that may exist in the image to be transmitted, such as vehicle outlines, vehicle markings, and window shapes, used to determine whether a vehicle exists in the image, thereby determining whether there are vehicles waiting for the equipment to release them in the parking lot.
[0031] Step S20: Based on the matching results, determine the image continuation strategy for the image transmission session of the image segmentation; In this application, the image continuation strategy refers to the rules formulated based on the matching results of image feature information and network conditions, used to continue image transmission during the transmission process. These rules include transmission priority, transmission path selection, and the size of the transmitted data block. For example, parking lot equipment can use a rule engine to execute image continuation actions based on the transmission rules corresponding to the image continuation strategy.
[0032] For example, the parking equipment can adjust the judgment threshold used by the parking equipment to judge network quality based on whether the image feature information of the data to be transmitted contains target feature information. When target feature information exists, the judgment threshold is adjusted to the first judgment threshold, or when it does not exist, the judgment threshold is adjusted to the second judgment threshold.
[0033] Step S30: After triggering the network switching process, obtain the sequence number range of the image block to be transmitted in the image transmission session of the local network; In this embodiment, the local network typically refers to the network deployed within the parking lot, such as a Wi-Fi network or a wired LAN, used for connecting parking lot equipment such as turnstiles and cameras to the local server, or for direct communication with the cloud server. Network quality metrics are used to quantitatively evaluate network performance, including metrics data from different dimensions such as network latency and / or packet loss rate.
[0034] In one embodiment, the parking lot equipment can confirm the network quality indicators of the local network based on network probes or heartbeat detection. The parking lot equipment can send network probe data packets to the receiving end of the image to be transmitted via the local network at preset time intervals, and receive response information from the receiving end. Based on this response information, it calculates the network latency and packet loss rate of the local network to obtain the network quality indicators. When the network quality indicators do not meet the network quality standards, the parking lot equipment triggers the network switching process.
[0035] In this embodiment, after obtaining the network quality indicators of the local network, the parking lot equipment compares them with preset network quality standards. These network quality standards are pre-set benchmarks used to determine whether the network can meet the requirements for normal image transmission. They include maximum allowable values for indicators such as network latency and / or packet loss rate; for example, a network latency threshold of 200 milliseconds and a packet loss rate threshold of 10% are set.
[0036] It should be noted that the image block to be transmitted refers to the untransmitted image blocks among all the image blocks in the image to be transmitted. The sequence number range is a parameter used to identify the untransmitted portion of an image block. Each image block has a unique sequence number during transmission, and the sequence number range represents the start and end sequence numbers of a series of consecutive untransmitted image blocks.
[0037] Specifically, when the parking lot equipment determines that network quality indicators do not meet network quality standards, such as finding that network latency exceeds a set latency threshold and / or packet loss rate is higher than a packet loss rate threshold, it invokes the image transmission management module. This module searches for the transmission status record of the image to be transmitted in the local network's image transmission session records. By analyzing the sequence numbers of transmitted and untransmitted image blocks, it determines the sequence number range of the untransmitted image blocks.
[0038] As an optional implementation, the parking lot equipment stores preset network quality judgment thresholds for different dimensions based on network quality indicators. When any network quality indicator in any dimension exceeds the range of the network quality judgment threshold, the parking lot equipment triggers a network switching action.
[0039] For example, the network probe analyzes network quality indicators such as network latency, packet loss rate and / or bandwidth fluctuations in real time. When a degradation of the main link is detected, such as network latency > 200ms or packet loss rate > 10%, a switching command is immediately triggered and the 4G Packet Data Protocol (PDP) context is pre-activated.
[0040] Optionally, the network quality judgment threshold can be obtained based on the mapping management of historical image transmission data and vehicle waiting time in historical parking lot passage records, or based on time series analysis or deep learning training.
[0041] As another alternative implementation, the parking lot equipment can also perform weighted summation of network quality indicators of different dimensions to obtain a comprehensive network quality score, and compare the comprehensive score with the scoring threshold in the network quality standard. When the comprehensive score is higher than the scoring threshold, network switching is triggered.
[0042] Step S40: Generate the image block location identifier corresponding to the sequence number interval, and locate the starting transmission location identifier of the mobile communication network in the image block location identifier; In this embodiment, the image block location identifier is used to locate the image block in the data stream or storage location, and can be constructed based on information such as the sequence number of the image block and the byte offset of the image file. The start transmission location identifier is determined from the image block location identifiers corresponding to the sequence number range, and is used to indicate the starting point for transmitting image data in the mobile communication network. It can also typically be defined based on the byte offset or a specific block boundary.
[0043] As an optional implementation, the parking lot equipment determines the starting block index number of the image block to be transmitted based on the smallest sequence number in the sequence number range. Based on the starting block index number and a predefined image block size, it calculates the byte offset of the image block to be transmitted, forming an image block position identifier corresponding to the byte offset. The starting transmission position identifier is determined in the image block position identifier by aligning the byte offset with the boundary of the image block to be transmitted.
[0044] Specifically, after identifying the sequence number range of untransmitted image blocks, the parking lot equipment activates the data positioning module. This module first calculates the starting byte offset of the corresponding image block in the image data stream based on the smallest sequence number within the sequence number range and a predefined image block size. An image block location identifier is then constructed based on this byte offset. Furthermore, to adapt to the transmission requirements of mobile communication networks, the parking lot equipment uses a specific alignment algorithm to align the byte offset with the boundary of the image block, thus determining the starting transmission location identifier for the mobile communication network.
[0045] For example, if each image block size is 1024 bytes and the starting sequence number of the sequence number interval is 50, then the starting byte offset is (50-1)×1024=49152 bytes. Mobile communication networks require the transmission start position to be an integer multiple of 2048 bytes. Therefore, it is aligned to the nearest multiple of 2048 bytes. If 49152 itself is a multiple of 2048, it is used directly; otherwise, it is rounded up to the next multiple as the starting transmission position identifier.
[0046] As an alternative implementation, the parking equipment can also generate a location identifier table containing the mapping relationship between block sequence numbers and byte offsets based on the number of each image block within the sequence number range and its byte offset in the original image data. The next block of the last image block confirmed by the server is extracted from this location identifier table, and its corresponding byte offset is determined as the starting transmission location identifier of the mobile communication network.
[0047] Step S50: Based on the image continuation strategy and the starting transmission location identifier, switch the image transmission session to the mobile communication network and continue transmitting the image to be transmitted.
[0048] In this embodiment, after determining the starting transmission location identifier, the parking lot equipment first activates the mobile communication module, establishes a connection with the mobile operator's base station, and accesses the mobile communication network through authentication and authorization processes. Then, according to the transmission protocol requirements of the mobile communication network, the equipment repackages the image data, reads the image blocks to be transmitted from local storage or cache, and begins reading data from the position indicated by the starting transmission location identifier. For example, it starts reading from the image block at byte offset 51200. During data transmission, the equipment sends data packets to the cloud server through the mobile communication network's transmission control protocol (such as TCP / IP). Simultaneously, the equipment monitors the transmission status of the mobile communication network in real time, such as signal strength and network congestion, and dynamically adjusts the data transmission rate and retransmission strategy to ensure that the image data can be transmitted to the cloud server stably and efficiently. After receiving the retransmitted data, the cloud server correctly stitches the data together according to the location identifier of the image blocks to reconstruct the complete image.
[0049] In one example, the device connects to a 5G base station via its built-in 5G module to complete network registration and IP address acquisition. Based on the initial transmission location identifier, it reads the corresponding data block and subsequent untransmitted blocks from its local cache. The device prioritizes and fragments this data according to the 5G network's Quality of Service (QoS) requirements and sends it to the cloud server via the 5G network. Upon receiving the data, the cloud server inserts it into the correct positions of previously received image data blocks based on their location information, gradually piecing together a complete vehicle entry image for subsequent license plate recognition and other operations.
[0050] In another example, the data stream is redirected to the 4G physical layer via the Network Driver Interface Specification (NDIS), while the TCP session state (SEQ / ACK sequence number) is synchronized based on the MP-TCP (MultiPath TCP) protocol to ensure uninterrupted transport layer connections. Transmission continues from the offset of the last unacknowledged image fragment, with additional Cyclic Redundancy Check (CRC) checks to ensure data consistency, and dynamic QoS, such as keyframe priority or header compression, is enabled to adapt to 4G network characteristics.
[0051] This application improves the stability of image transmission by continuously monitoring network quality indicators during image transmission and switching to a mobile network when the network quality is unsatisfactory, thereby ensuring the efficiency of vehicle passage in parking lots. Simultaneously, when the local network quality is substandard, this application generates location identifiers based on block sequence number intervals and dynamically switches to the mobile network to directly resume transmission from the first untransmitted image block. This improves network switching speed and allows the cloud to instantly receive and process the remaining key blocks of the vehicle recognition image, eliminating passage command delays caused by repeated transmissions or network waiting, and significantly improving the gate response speed and vehicle passage efficiency.
[0052] Based on the same inventive concept, this application also provides a second embodiment, referring to... Figure 2 , Figure 2 This is a flowchart illustrating the second embodiment of the image transmission control method of this application.
[0053] In this embodiment, after switching the image transmission session to the mobile communication network as described in step S40, and continuing to transmit the image to be transmitted starting from the image block corresponding to the starting transmission location identifier, the method further includes steps S51 to S55: Step S51: Detect the target network quality index of the local network at the current moment; Step S52: When the target network quality index meets the network quality standard, record the network recovery time using a timer; Step S53: When the network recovery time exceeds a preset time threshold, in the image transmission session, obtain the target sequence number range of the target image block to be transmitted; Step S54: Generate the target image block location identifier corresponding to the target sequence number interval, and locate the target transmission location identifier in the target image block location identifier; Step S55: Switch the image transmission session to the local network, and continue transmitting the image to be transmitted, starting from the target image block corresponding to the target transmission location identifier.
[0054] In this embodiment, considering factors such as cost and communication speed, the parking lot equipment preferably transmits the image to be transmitted through the local network, and switches back to the local network to transmit the image after detecting that the local network quality has recovered. Meanwhile, to avoid frequent network switching due to network fluctuations affecting communication efficiency, the parking lot equipment is equipped with a fault-tolerance mechanism, which determines the stability of the local network by accumulating the duration of local network recovery.
[0055] Specifically, after switching the image transmission session to the mobile communication network, the parking lot equipment continuously monitors the current local network quality to obtain a target network quality index. The equipment compares the target network quality index with a network quality standard, and if the index meets the standard, it records the network recovery time using a timer. If the network quality index meets the standard during the timer, the accumulated recovery time is cleared. If the recovery time exceeds a preset threshold, the system switches back to the local network to transmit the image.
[0056] Furthermore, the parking lot equipment will locate the target transmission location identifier based on network switching, and continue transmitting the image to be transmitted starting from the target image block corresponding to the target transmission location identifier. This application embodiment improves the stability of network switching by dynamically monitoring the local network recovery status and reasonably setting the network recovery time threshold to ensure that the image transmission is switched back to the local network only after the local network has been stably restored.
[0057] Since the system described in Embodiment 2 of this application is a system used to implement the method of Embodiment 1 of this application, those skilled in the art can understand the specific structure and variations of the system based on the method described in Embodiment 1 of this application, and therefore will not be described again here. All systems used in the method of Embodiment 1 of this application fall within the scope of protection of this application.
[0058] Based on the same inventive concept, this application also provides a third embodiment, referring to... Figure 3 , Figure 3 This is a flowchart illustrating the third embodiment of the image transmission control method of this application.
[0059] In this embodiment, as described in step S30, determining the image continuation strategy for the image transmission session of the image block based on the matching result further includes steps S31 to S34: Step S31: Based on the matching result, determine whether target feature information exists in the feature information; Step S32: If the target feature information exists, adjust the network quality judgment threshold in the network quality standard to the first judgment threshold; Step S33: Alternatively, if the target feature information does not exist, adjust the network quality judgment threshold in the network quality standard to the second judgment threshold.
[0060] It should be noted that the first judgment threshold is a relatively strict network quality standard set for images containing key feature information. It specifies lower maximum allowable values for indicators such as network latency and packet loss rate, ensuring that key images can be transmitted under good network quality, thus guaranteeing the accuracy and timeliness of key information. The second judgment threshold is a relatively lenient network quality standard set for ordinary images that do not contain key feature information. It allows for higher maximum values for indicators such as network latency and packet loss rate, allowing ordinary images to be transmitted under slightly worse network conditions, thus allocating network resources more reasonably and improving overall transmission efficiency.
[0061] In one embodiment, the parking equipment acquires an image to be transmitted, performs a downsampling operation on the image to be transmitted to obtain a feature image of the image to be transmitted, and extracts contour information from the feature image using an image segmentation algorithm to obtain feature information. The parking equipment determines whether key feature information exists within the feature information.
[0062] This application embodiment ensures priority transmission of key images and rationally allocates network resources by conducting differentiated network quality assessment of images, thereby improving the efficiency and intelligence level of the intelligent parking management system.
[0063] Since the system described in Embodiment 3 of this application is a system used to implement the method of Embodiment 1 of this application, those skilled in the art can understand the specific structure and variations of the system based on the method described in Embodiment 1 of this application, and therefore will not be described again here. All systems used in the method of Embodiment 1 of this application fall within the scope of protection of this application.
[0064] Based on the same inventive concept, this application also provides a fourth embodiment, referring to... Figure 4 , Figure 4 This is a flowchart illustrating the fourth embodiment of the image transmission control method of this application.
[0065] In this embodiment, the image transmission control method further includes steps S41-S44: Step S41: If, based on the matching result, it is determined that target feature information exists in the image to be transmitted, the target feature information is obtained; Step S42: Determine the target image block in the image to be transmitted, and the target sequence number range corresponding to the target image block; Step S43: If the target sequence number range does not intersect with the sequence number range, terminate the image transmission session of the image to be transmitted.
[0066] In this embodiment, the parking equipment calculates the image block containing the target feature information based on its location in the image, such as pixel coordinate range, combined with an image segmentation strategy. The block sequence number is determined, and the target sequence number interval corresponding to the target image block is obtained based on the block's arrangement order in the image. A mathematical interval comparison algorithm is used to determine if two intervals overlap. If there is no overlap, the equipment sends a termination transmission command, closes the connection with the mobile communication network, releases related resources, and stops the image transmission session. Simultaneously, the termination reason is recorded in the log for subsequent data analysis and optimization.
[0067] In one embodiment, the parking lot equipment acquires an image to be transmitted, performs a downsampling operation on the image to be transmitted to obtain a feature image of the image to be transmitted, and extracts contour information from the feature image using an image segmentation algorithm to obtain feature information. By acquiring the feature information, the parking lot equipment determines whether the target feature information exists in the untransmitted image blocks, i.e., in the image to be transmitted.
[0068] For example, after acquiring the image to be transmitted, the image processing module is activated to extract features. The image is converted to grayscale to reduce data volume, and then edge detection algorithms such as the Sobel operator are used to extract image edges. The extracted edge contours, character positions, and license plate numbers are combined into a feature information data structure. The device obtains a key feature information database from local storage or the cloud, containing key feature templates such as license plate numbers of special vehicles and identification of vehicles of particular interest. The extracted feature information is compared with the key feature information database. For license plate numbers, the similarity with key license plate number templates is calculated, such as through edit distance or hash value comparison. For vehicle identification contours, the similarity of feature vectors is calculated, such as through Euclidean distance. A similarity threshold is set; if the similarity exceeds the threshold, it is determined to be target feature information.
[0069] This application embodiment avoids transmitting a large amount of useless non-critical image data when the network quality is poor, saves network resources, improves transmission efficiency, ensures that limited network bandwidth is used first to transmit image parts containing key features, further optimizes the image transmission strategy of parking equipment, enhances the system's adaptability and intelligence level in complex network environments, and ensures the efficient operation of parking services.
[0070] Since the system described in Embodiment 4 of this application is a system used to implement the method of Embodiment 1 of this application, those skilled in the art can understand the specific structure and variations of the system based on the method described in Embodiment 1 of this application, and therefore will not be described again here. All systems used in the method of Embodiment 1 of this application fall within the scope of protection of this application.
[0071] Based on the same inventive concept, this application also provides a fifth embodiment, referring to... Figure 5 , Figure 5 This is a flowchart illustrating the fifth embodiment of the image transmission control method of this application.
[0072] In this embodiment, the image transmission control method further includes steps S61-S63: Step S61: Detect the mobile network quality index of the mobile communication network at the current moment; Step S62: When the mobile network quality index is lower than the preset index threshold, perform the feature extraction action of the image to be transmitted to obtain image feature information; Step S63: Upload the image feature information to the cloud server through the mobile communication network, and terminate the image transmission session of the image to be transmitted.
[0073] In this embodiment, during image transmission by the parking lot equipment, to address the issue of deteriorating mobile communication network quality, the equipment activates a mobile communication network monitoring function. Through its built-in mobile communication module, such as a 4G / 5G module, it sends network probe data packets to the cloud server at preset time intervals. These data packets carry a specific mobile network identifier to distinguish them from local network transmissions. Upon receiving the packet, the cloud server provides a response. The equipment calculates network latency based on the sending and receiving timestamps, counts the number of packets for which no response was received to calculate the packet loss rate, and obtains the mobile network quality index.
[0074] As an alternative implementation method for obtaining image feature information, when the mobile network quality index is lower than a preset threshold, the parking equipment activates the feature extraction module to extract feature information such as license plate number, window shape, and vehicle outline in the image through a U-Net or YOLO (You Only Look Once) target detection algorithm.
[0075] For example, the parking lot equipment downsamples the image to be transmitted to reduce its resolution, and then applies an image segmentation algorithm to extract features such as contour information. The parking lot equipment downsamples the image to 640×360 pixels, uses Canny edge detection to extract vehicle contours and license plate area contours, and identifies the license plate number using Optical Character Recognition (OCR) to obtain image feature information. This image feature information is then sent to a cloud server via a mobile communication module.
[0076] Furthermore, the feature information is packaged into multiple data packets, each containing header information such as a sequence number and feature type. During transmission, the device monitors the network status in real time to ensure reliable data delivery. Simultaneously, a termination command is sent to close the image transmission session and release cached image data and related network connection resources. Upon receiving the feature information, the cloud server stores and performs preliminary processing based on the feature type for subsequent vehicle recognition or simple business logic judgments.
[0077] As another alternative implementation for obtaining image feature information, the parking equipment can also further extract image features from the feature image based on the recognition results used for identifying key feature information in the image to be transmitted, thereby obtaining image feature information.
[0078] For example, after acquiring the image to be processed, the parking lot equipment performs preliminary feature recognition and determines whether the image contains key feature information based on the recognition results to determine whether there is a vehicle waiting to pass. Further, based on the image recognition results, the parking lot equipment identifies the vehicle pixel area in the image to be transmitted, and further locates the license plate pixel area within the vehicle pixel area. It then extracts the license plate number using an OCR algorithm to obtain image feature information.
[0079] This application's embodiments, by extracting and uploading image feature information instead of complete image data when mobile communication network quality deteriorates, can retain critical information to the greatest extent possible under extremely poor network conditions, avoiding complete data loss due to network problems and providing basic data support for subsequent parking lot business processing. In practical applications, this effectively improves the system's robustness in harsh network environments, ensuring that parking lot equipment can provide useful information to the management system under various network conditions, guaranteeing the continuity of parking lot operations, and enhancing the reliability of the intelligent management system.
[0080] Since the system described in Embodiment 5 of this application is a system used to implement the method of Embodiment 1 of this application, those skilled in the art can understand the specific structure and variations of the system based on the method described in Embodiment 1 of this application, and therefore will not be described again here. All systems used in the method of Embodiment 1 of this application fall within the scope of protection of this application.
[0081] This application provides an image transmission control device, the device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the image transmission control method of the above embodiment 1.
[0082] The following is for reference. Figure 6 The diagram illustrates a structural schematic of a control device suitable for implementing image transmission in the embodiments of this application. The control device for image transmission in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 6 The image transmission control device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0083] like Figure 6 As shown, the image transmission control device may include a processing unit 1001 (e.g., a core processor, graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 1002 or a program loaded from storage device 1003 into random access memory (RAM) 1004. The random access memory 1004 also stores various programs and data required for the operation of the image transmission control device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the image transmission control device to communicate wirelessly or wiredly with other devices to exchange data. Although the figure shows image transmission control devices with various systems, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems can be implemented alternatively.
[0084] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0085] The image transmission control device provided in this application, employing the image transmission control method described in the above embodiments, can solve the technical problem of BBBB. Compared with the prior art, the beneficial effects of the image transmission control device provided in this application are the same as those of the image transmission control method described in the above embodiments, and other technical features of the image transmission control device are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0086] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0087] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0088] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the image transmission control method described in the above embodiments.
[0089] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, radio frequency (RF), etc., or any suitable combination thereof.
[0090] The aforementioned computer-readable storage medium may be included in the image transmission control device; or it may exist independently and not assembled into the image transmission control device.
[0091] The aforementioned computer-readable storage medium carries one or more programs. When these programs are executed by the image transmission control device, the image transmission control device causes the following: extracts feature information of the image to be transmitted and matches the feature information with pre-stored key feature information; determines the image continuation strategy for the image transmission session of the image block based on the matching result; after triggering a network switching process, obtains the sequence number range of the image block to be transmitted in the image transmission session of the local network; generates an image block location identifier corresponding to the sequence number range and locates the starting transmission location identifier of the mobile communication network in the image block location identifier; and switches the image transmission session to the mobile communication network based on the image continuation strategy and the starting transmission location identifier, and continues transmitting the image to be transmitted.
[0092] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0093] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation that may be implemented in systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0094] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0095] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described image transmission control method, and is capable of solving the technical problem of BBBB. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the image transmission control method provided in the above embodiments, and will not be repeated here.
[0096] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A control method for image transmission, characterized in that, The method includes the following steps: Extract the feature information of the image to be transmitted, and match the feature information with pre-stored key feature information; Based on the matching results, determine the image retransmission strategy for the image transmission session of the image block; After the network switching process is triggered, the sequence number range of the image block to be transmitted is obtained from the image transmission session of the local network; Generate image block location identifiers corresponding to the sequence number range, and locate the starting transmission location identifier of the mobile communication network in the image block location identifiers; Based on the image continuation strategy and the starting transmission location identifier, the image transmission session is switched to the mobile communication network, and the image to be transmitted is resumed.
2. The method as described in claim 1, characterized in that, After the step of resuming the transmission of the image to be transmitted based on the image continuation strategy and the starting transmission location identifier, the method further includes: Detect the target network quality indicators of the local network at the current moment; When the target network quality indicators meet the network quality standards, the network recovery time is recorded by a timer. When the network recovery time exceeds a preset time threshold, the target sequence number range of the target image block to be transmitted is obtained in the image transmission session; Generate the target image block location identifier corresponding to the target sequence number range, and locate the target transmission location identifier in the target image block location identifier; The image transmission session is switched to the local network, and the image to be transmitted is continued from the target image block corresponding to the target transmission location identifier.
3. The method as described in claim 1, characterized in that, Before the step of obtaining the sequence number range of the image block to be transmitted in the image transmission session of the local network after triggering the network switching process, the method further includes: Through the local network, network probe data packets are sent to the receiving end of the image to be transmitted based on a preset time interval; Receive the response information fed back by the receiving end; The network latency and packet loss rate of the local network are calculated based on the response information to obtain the network quality index. When the network quality indicators fail to meet the network quality standards, the network switching process is triggered.
4. The method as described in claim 3, characterized in that, The step of determining the image continuation strategy for the image transmission session of the image block based on the matching result includes: Based on the matching result, determine whether the target feature information exists in the feature information; If the target feature information exists, the network quality judgment threshold in the network quality standard will be adjusted to the first judgment threshold; Alternatively, if the target feature information does not exist, the network quality judgment threshold in the network quality standard is adjusted to the second judgment threshold.
5. The method as described in claim 1, characterized in that, The step of resuming the transmission of the image to be transmitted based on the image continuation strategy and the starting transmission location identifier includes: If, based on the matching result, it is determined that target feature information exists in the image to be transmitted, the target feature information is obtained; The target feature information is determined in the target image block in the image to be transmitted, and the target sequence number range corresponding to the target image block is determined; If the target sequence number range does not intersect with the sequence number range, the image transmission session of the image to be transmitted is terminated.
6. The method as described in claim 4 or 5, characterized in that, The step of extracting feature information from the image to be transmitted and matching the feature information with pre-stored key feature information includes: Acquire the image to be transmitted; A downsampling operation is performed on the image to be transmitted to obtain a feature image of the image to be transmitted. The feature information is obtained by extracting the contour information from the feature image using an image segmentation algorithm; The feature information is matched with the key feature information, and the target feature information is determined to be present in the image to be transmitted based on the matching result.
7. The method as described in claim 1, characterized in that, After the step of resuming the transmission of the image to be transmitted based on the image continuation strategy and the starting transmission location identifier, the method further includes: Detect the mobile network quality indicators of the mobile communication network at the current moment; When the mobile network quality index is lower than a preset index threshold, the feature extraction action of the image to be transmitted is performed to obtain image feature information; The image feature information is uploaded to the cloud server via the mobile communication network, and the image transmission session of the image to be transmitted is terminated.
8. The method as described in claim 1, characterized in that, The step of generating image block location identifiers corresponding to the sequence number interval, and locating the starting transmission location identifier of the mobile communication network within the image block location identifiers, includes: The starting block index number of the image block to be transmitted is determined based on the minimum sequence number in the sequence number range. Based on the starting block index number and the predefined image block size, the byte offset of the image block to be transmitted is calculated to form the image block position identifier corresponding to the byte offset; The starting transmission location identifier is determined in the image block location identifier by aligning the byte offset with the boundary of the image block to be transmitted.
9. A control device for image transmission, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the control method for image transmission as described in any one of claims 1 to 8.
10. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the image transmission control method as described in any one of claims 1 to 8.
