Video data interaction method and system
Patent Information
- Application Number
- CN202511012220.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-22
- Publication Date
- 2025-09-19
Smart Images

Figure CN120676173A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data interaction technology, and more specifically, to a video data interaction method and system. Background Art
[0002] In the field of smart transportation and urban management, traffic video surveillance systems generally have problems such as multi-system data silos. Currently, video resources from departments such as public security, transportation, and urban management are scattered across their own independent platforms. When multiple surveillance videos of a certain location need to be retrieved, it is often necessary to log in to multiple system platforms to retrieve video data separately, which is cumbersome and time-consuming. This application provides a video data interaction method and system that combines the internal and external systems of multiple departments to provide users with video interaction functions, simplify user operation processes, improve video retrieval efficiency, and achieve secure sharing of traffic video resources. Summary of the Invention
[0003] The purpose of this application is to provide a video data interaction method and system to simplify the user operation process during data interaction and improve the efficiency of video retrieval, so as to realize the safe sharing of traffic video resources.
[0004] A first aspect of an embodiment of the present application provides a video data interaction method, including: In response to receiving a video interaction request from a user, determining a target interaction video based on the video interaction request; the video interaction request is generated by the user through interaction with an electronic map; the electronic map is linked to traffic video data of multiple locations, the traffic video data being sourced from multiple internal systems or external systems; Determining whether to retrieve the target interactive video based on the privacy level of the target interactive video and the interactive permission corresponding to the video interaction request; If it is determined to retrieve the target interactive video, a video interaction strategy is determined based on the privacy level of the target interactive video, and the target interactive video is retrieved based on the video interaction strategy; if it is determined not to retrieve the target interactive video, a security prompt message is generated.
[0005] A second aspect of the embodiments of the present application provides a video data interaction system, including: a data interaction request module, configured to, in response to receiving a video interaction request from a user, determine a target interaction video based on the video interaction request; the video interaction request is generated by the user through interaction with an electronic map; the electronic map is linked to traffic video data of multiple locations, the traffic video data being sourced from multiple internal systems or external systems; A video security protection module, configured to determine whether to retrieve the target interactive video based on the privacy level of the target interactive video and the interactive authority corresponding to the video interaction request; The video data retrieval module is used to determine a video interaction strategy based on the privacy level of the target interactive video if it is determined to retrieve the target interactive video, and retrieve the target interactive video based on the video interaction strategy; if it is determined not to retrieve the target interactive video, generate a security prompt message.
[0006] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of the above-mentioned video data interaction method when executing the computer program.
[0007] According to a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned video data interaction method are implemented.
[0008] The beneficial effects of the video data interaction method and system provided by the embodiment of the present application are: users generate video interaction requests by interacting with electronic maps, without the need for complicated operating steps. Compared with traditional methods, the process of obtaining video data is simplified, allowing users to initiate video interaction needs more conveniently. Whether to retrieve is determined based on the privacy level and interaction permissions of the target interactive video, and the video interaction strategy is determined based on the privacy level for retrieval. This targeted processing method effectively improves the efficiency of video retrieval. The embodiment of the present application fully considers the privacy level of the video and the user's interaction permissions. For videos that do not meet the retrieval conditions, a safety prompt message is generated to prevent the video data from being illegally obtained and abused. While simplifying operations and improving efficiency, it realizes the safe sharing of traffic video resources and provides reliable protection for data interaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0010] Figure 1 A flowchart of a video data interaction method provided in one embodiment of the present application; Figure 2 A structural block diagram of a video data interaction system provided in one embodiment of the present application; Figure 3 A schematic block diagram of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0011] In the following description, specific details such as specific system structures and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obscuring the description of the present application with unnecessary detail.
[0012] In order to make the purpose, technical solutions and advantages of this application clearer, specific embodiments will be described below with reference to the accompanying drawings.
[0013] Please refer to Figure 1 , Figure 1 This is a flow chart of a video data interaction method provided in one embodiment of the present application. The method may be executed by an electronic device. Specifically, the method may include S101 to S103.
[0014] S101: In response to receiving a video interaction request from a user, determining a target interaction video based on the video interaction request; the video interaction request is generated by the user through interaction with an electronic map; the electronic map is linked to traffic video data of multiple locations, and the traffic video data comes from multiple internal systems or external systems.
[0015] In this embodiment, determining the target interactive video based on the video interaction request specifically includes: determining the target area on the electronic map based on the video interaction request; obtaining candidate video points within the target area based on the target area; in response to receiving a video point selection instruction from the user, determining the target video point from the candidate video points based on the video point selection instruction; in response to receiving a video time selection instruction from the user, determining the target video time period based on the video time selection instruction; and determining the target interactive video based on the target video point and the target video time period.
[0016] In this embodiment, a video interaction request refers to a request generated by a user interacting with an electronic map to obtain specific video data. The video interaction request may specifically include the spatial range and user information specified by the user on the electronic map. An electronic map is a digital map platform that integrates geographic spatial information with the ability to link traffic video resources. The electronic map serves as both a user interface and a centralized repository for traffic video data. In addition to displaying geographic information like conventional electronic maps, the electronic map also marks traffic surveillance cameras at various locations (i.e., "video data points"). The electronic map establishes links with the data source systems for this video data (e.g., internal or external systems such as public security, transportation, and community systems).
[0017] For example, key elements of an electronic map include: geospatial layers, video point markers, interactive interfaces, and data linkage capabilities. Video point markers are icons that mark surveillance cameras at corresponding locations on the map, along with basic information (such as the point name and system type). The interactive interface allows users to select target areas or points through clicks, selections, zooming, and other operations, translating user spatial selections into recognizable video call commands. Data linkage capabilities mean that the electronic map's backend can connect to multiple video systems, enabling rapid location and linkage of corresponding video data resources based on user actions on the map.
[0018] In practical applications, such as electronic maps at a traffic control center, cameras can be marked with icons of different colors. For example, blue represents public surveillance by the Transportation Bureau, red represents dedicated surveillance by the Public Security Bureau, and green represents community surveillance. When a user clicks a red icon (corresponding to public security surveillance at an intersection), the electronic map displays the available video time periods for that location and guides the user to further select a time range. This allows the user to identify associated video resources through map operations and subsequently generate a request process. This embodiment solves the problem of isolated video data systems, allowing users to connect to dispersed video resources through intuitive spatial operations, streamlining the interaction process.
[0019] In this embodiment, the target area is the spatial range of the video to be viewed, defined by the user on an electronic map. The target area can be a point, line, or surface. Candidate video points include all available camera locations within the target area and serve as the initial screening of video sources. Parameters corresponding to candidate video points may include camera installation location, system affiliation (public security / traffic / community), coverage direction (eastbound lane / southbound sidewalk), and function type (real-time monitoring / traffic violation capture). The video point selection command is triggered by the user selecting a specific camera from the displayed candidate video points. For example, clicking a yellow camera icon on the electronic map can trigger the generation of a video point selection command.
[0020] In this embodiment, the video time selection instruction is triggered by a user inputting specific time information. The target video point refers to the camera installation location corresponding to the target interactive video. The target video time period refers to the time range of video recording. The target interactive video refers to the video that the user will retrieve, i.e., the specific video segment determined by the target video point and target video time period. At this point, the target interactive video has not yet been retrieved. The electronic map only contains relevant descriptive information about the video data (such as information about the video capture device and the system to which the video data belongs), and does not store the video source file.
[0021] In this embodiment, users can first define a general area based on their needs using an electronic map. This embodiment then filters cameras within the user-selected target area for selection, allowing the user to select specific cameras and time periods, ultimately locating the target interactive video. This step-by-step selection method ensures accuracy while simplifying operation, making it particularly suitable for the actual needs of traffic scenarios.
[0022] For example, a staff member handling a rear-end collision at an intersection needs to retrieve relevant video. The staff member can select the area around intersection XX on an electronic map as the target area. The electronic map in this embodiment automatically displays five candidate cameras within the target area: two Public Security Skynet cameras, two cameras at the traffic checkpoint, and one camera at the community entrance. The staff member observes the camera coverage and finds that one of the cameras, located at the northbound traffic checkpoint at the intersection, can capture the accident vehicle's trajectory. The staff member clicks the icon for that camera. Based on the staff member's click, this embodiment triggers the generation of a video point selection instruction. The video point selection instruction includes the selected camera number (i.e., the target video point). The user can then enter time information, for example, selecting 8:10 to 8:30 as the target time period. Based on the user-entered time information, this embodiment generates a video time selection instruction. The video time selection instruction includes the specific time information (i.e., the target video time period).
[0023] This embodiment locates the corresponding target interactive video based on the target video point and target video time period, making it easier for the staff to review the accident process video. The entire process does not require switching between multiple monitoring platforms / systems. Users can intuitively operate through the electronic map and quickly locate key videos, improving video interaction efficiency.
[0024] S102: Determine whether to retrieve the target interactive video based on the privacy level of the target interactive video and the interactive authority corresponding to the video interaction request.
[0025] In this embodiment, the target interactive video privacy level may include privacy level 1, privacy level 2, and privacy level 3. Privacy level 3 has a higher degree of privacy than privacy level 2, which in turn has a higher degree of privacy than privacy level 1. The interaction permissions corresponding to the video interaction request include the user's authorized access scope, and related parameters may include user role, permission level, and verification method.
[0026] In this embodiment, videos with a privacy level of 1 (e.g., public area surveillance) do not require interactive permissions and can be accessed by any user. Videos with a privacy level of 2 (e.g., residential surveillance) require user permissions that include two types of access rights (e.g., property management roles). Videos with a privacy level of 3 (e.g., incident footage) require user permissions that include three types of access rights (e.g., police roles and special authorizations). This embodiment determines whether access is permitted based on the principle that if interactive permissions override the privacy level, access is permitted; otherwise, access is denied. This ensures that sensitive videos are not unauthorized access while also ensuring that legitimate users can access them.
[0027] For example, citizens can view the traffic video of the main road (privacy level 1) and directly access it without permission; property management can view the community surveillance (privacy level 2). This embodiment verifies the community property management's permission and allows access after verification; ordinary users can view the community surveillance (privacy level 2) and be denied due to insufficient permission, and are prompted to obtain authorization from the property management; police officers can access accident videos (privacy level 3). This embodiment verifies the police officer's identity and whether he has the authorization to handle the case, and allows access after verification.
[0028] In this embodiment, the method for determining the privacy level of the target interactive video specifically includes: obtaining the target video point, target video time period and target video source system corresponding to the target interactive video; and determining the privacy level of the target interactive video based on the target video point and target video source system.
[0029] In this embodiment, the privacy level of the target interactive video is determined based on the target video point and the target video source system, specifically including: determining the sensitivity level of the target video point based on the sensitive area table; determining the security and confidentiality level of the target video source system based on the system security and confidentiality level mapping table; determining the privacy level of the target interactive video based on the sensitivity level of the target video point and the security and confidentiality level of the target video source system.
[0030] In this embodiment, the privacy level of the target interactive video is determined based on the sensitivity level of the target video point and the security and confidentiality level of the target video source system, specifically including: if the sensitivity level of the target video point is a high sensitivity level, and the security and confidentiality level of the target video source system is a level 2 security and confidentiality level, then the privacy level of the target interactive video is determined to be a third-level privacy level.
[0031] If the sensitivity level of the target video point is a low sensitivity level, or the security and confidentiality level of the target video source system is a first-level security and confidentiality level, the privacy level of the target interactive video is determined to be a second-level privacy level.
[0032] If the sensitivity level of the target video point is a low sensitivity level and the security confidentiality level of the target video source system is a first-level security confidentiality level, the privacy level of the target interactive video is determined to be a first-class privacy level.
[0033] In this embodiment, the target video source system refers to the management system to which the target interactive video belongs. This system can include confidential public security systems, public transportation systems, or private community systems. Different video source systems correspond to different system security and confidentiality levels. The sensitive area table is a pre-set regional classification database used to record the sensitivity of different geographic locations. Parameters may include area type (e.g., school / commercial area / private community), geographic coordinate range, and sensitivity level. For example, the sensitivity level of a target video point may include high sensitivity and low sensitivity. The sensitivity level of a target video point is determined based on the sensitivity of the area to which the point belongs.
[0034] The system security and confidentiality level mapping table is a preset system classification rule base, primarily categorized by the security standards of the source system. Specifically, the system type (such as public security, transportation, and community systems), department, and corresponding security and confidentiality level can be included in the system security and confidentiality mapping table. For example, the target video source system's security and confidentiality level can include level 1 and level 2, with level 1 having a lower level of confidentiality than level 2. The target video source system's security and confidentiality level is the level corresponding to that source system in the system security and confidentiality level mapping table.
[0035] In this embodiment, the privacy level of video data is determined by combining the region to which the video belongs and the system from which the video data originates. Specifically, this embodiment uses a sensitive area table as a basis to determine the sensitivity of the target video point. The closer to a highly sensitive area (such as a school or private area), the higher the sensitivity level. This embodiment also uses a system security and confidentiality level mapping table as a basis to determine the security and confidentiality level of the target video's source system. These two factors combine to form a tiered approach to determining the privacy level of the target interactive video.
[0036] For example, if the target video point is the gate of a middle school, this embodiment queries the sensitive area table to confirm that the point belongs to the high sensitivity level; the target video source system is a confidential public security system, and this embodiment queries the system security and confidentiality level mapping table to determine that the system belongs to the first-level confidentiality level. The two are combined to determine that the privacy level of the target interactive video is the third-level privacy level.
[0037] For example, if the target video point is inside a certain community, this embodiment queries the sensitive area table to determine that the video point belongs to the high sensitivity level; if the source system is a community private system, this embodiment queries the system security and confidentiality level mapping table to determine that the system belongs to the second-level confidentiality level, then the privacy level of the target interactive video is determined to be the second-level privacy level.
[0038] If the target video point is a main road in a business district, this embodiment queries the sensitive area table to determine that the video point belongs to a low sensitivity level; if the source system is a public transportation system, this embodiment queries the system security and confidentiality level mapping table to determine that the system belongs to a second-level confidentiality level, and then determines that the privacy level of the target interactive video is a Class I privacy level.
[0039] S103: If it is determined to retrieve the target interactive video, a video interaction strategy is determined based on the privacy level of the target interactive video, and the target interactive video is retrieved based on the video interaction strategy; if it is determined not to retrieve the target interactive video, a security prompt message is generated.
[0040] In this embodiment, the video interaction policy is a set of video access rules based on the privacy level. Specifically, the video interaction policy may include transmission methods, verification requirements, and access locations. Security prompts are feedback messages when permissions are insufficient or access conditions are not met. Security prompts may include rejection reasons and solutions, such as "Privacy level does not match. Please choose whether to apply for temporary permissions."
[0041] In this embodiment, the formulation of video interaction strategies adheres to the principle that privacy level determines protection strength. Low-privacy-level videos prioritize retrieval efficiency, specifically by simplifying the verification process and retrieval through local cache. High-privacy-level videos prioritize security, specifically by adopting methods such as encrypted transmission and multiple permission verification. This prevents both excessive protection from affecting normal use and insufficient protection from leaks. When permissions do not match privacy levels, clear security prompts guide user actions, such as requesting temporary permissions, to balance security and user experience.
[0042] For example, if a main road in a commercial district is monitored at a low-sensitivity video point and a traffic system with a confidentiality level of one, the video interaction strategy is determined to be plaintext transmission, local caching, and no verification. When the user clicks the map icon, the cached real-time image is played directly without any additional operation.
[0043] The monitoring at the entrance of the residential area corresponds to a low-sensitivity video point and a first-level confidentiality level community system. The video interaction strategy is determined to be real-time pull of the corresponding video from the community system, and account and password verification is performed. The video retrieval process uses HTTPS encrypted transmission. If the user's authority is insufficient, this embodiment will prompt "Community property authorization account is required, do you want to apply for temporary access." After the verification is passed, the video is retrieved and played. The monitoring at the entrance of the railway station corresponds to a high-sensitivity video point and a first-level confidentiality level public security system. The video interaction strategy is determined to be double encryption, real-time pull, face verification and UKey verification. If the user only passes the face verification, it will prompt to insert the police UKey to complete the secondary verification; if there is no match at all, it will prompt insufficient authority and contact the administrator to apply for special authorization.
[0044] From the above, it can be concluded that users can generate video interaction requests by interacting with electronic maps without complicated operation steps. Compared with traditional methods, the process of obtaining video data is simplified, allowing users to initiate video interaction needs more conveniently. Whether to retrieve is determined based on the privacy level and interaction permissions of the target interactive video, and the video interaction strategy is determined based on the privacy level for retrieval. This targeted processing method effectively improves the efficiency of video retrieval. The embodiment of the present application fully considers the privacy level of the video and the user's interaction permissions. For videos that do not meet the retrieval conditions, a safety prompt message is generated to prevent the video data from being illegally obtained and abused. While simplifying operations and improving efficiency, it realizes the safe sharing of traffic video resources and provides reliable protection for data interaction.
[0045] In one embodiment of the present application, determining whether to retrieve the target interactive video based on the privacy level of the target interactive video and the interaction permission corresponding to the video interaction request includes: if the privacy level of the target interactive video is a class one privacy level, determining to retrieve the target interactive video; If the privacy level of the target interactive video is Class II privacy level or Class III privacy level, the interactive permission corresponding to the video interaction request is verified; if the verification passes, the target interactive video is determined to be retrieved; if the verification fails, the target interactive video is determined not to be retrieved.
[0046] In this embodiment, privacy level 1 refers to publicly accessible videos, such as panoramic views of public areas in shopping districts and main roads. These videos pose no privacy risks. Privacy level 2 refers to semi-sensitive videos, such as entrances and exits of residential communities and secondary roads. These videos require basic permission verification. Privacy level 3 refers to highly sensitive videos, such as confidential areas and key accident scenes, which require strict permission verification.
[0047] This embodiment achieves a balance between efficiency and security through hierarchical management. Category 1 private videos, as they pose no risk, can be accessed directly, eliminating the need for verification and improving access efficiency for public videos. Category 2 and 3 private videos, both of which involve privacy and security concerns, require verification of user permissions, such as account roles and special authorizations, to ensure that only authorized users have access and prevent unauthorized disclosure.
[0048] For example, a citizen can view real-time traffic on a main road (privacy level 1). This embodiment directly retrieves cached video and transmits it in plain text, without verification. A property management company can access surveillance footage at a residential entrance (privacy level 2). This embodiment automatically encrypts the transmitted video and allows the company to view it after entering their employee ID for verification. External users are denied access and prompted, "Community authorization required." Traffic police investigate core accident video (privacy level 3). This embodiment requires dual verification, both for police identity verification and case authorization, before encrypted retrieval. Attempting to access the video by a regular user will receive a prompt, "Insufficient permissions. Contact police for temporary authorization."
[0049] This embodiment adapts the interaction strategy according to the privacy level to provide targeted protection for sensitive videos and efficient retrieval of public videos, ensuring both secure sharing and improved data interaction efficiency. At the same time, clear prompts when retrieval is not required reduce user operational obstacles, achieving an overall balance between security and convenience and optimizing the full-process experience of video interaction.
[0050] In one embodiment of the present application, a video interaction strategy is determined based on the privacy level of the target interactive video, including: if the privacy level of the target interactive video is a Class I privacy level, the video interaction strategy is determined to be direct retrieval and unencrypted transmission; if the privacy level of the target interactive video is a Class II privacy level, the video interaction strategy is determined to be direct retrieval and encrypted transmission; if the privacy level of the target interactive video is a Class III privacy level, the video interaction strategy is determined to be retrieval after identity authentication and encrypted transmission; identity authentication refers to verifying the identity of the user.
[0051] In this embodiment, direct access refers to the process of directly retrieving and displaying the video without requiring verification. Unencrypted transmission refers to the transmission of the video in plain text, which is suitable for content that poses no privacy risk. Encrypted transmission refers to the use of encryption protocols to protect the video content during the access process. Identity verification refers to the operation of confirming the legitimacy of the user. Relevant parameters may include verification methods such as account and password verification, failed facial recognition verification, and hardware key verification.
[0052] In this embodiment, videos at the first privacy level, which pose no privacy risks, can be accessed directly without encryption, improving data interaction efficiency. Videos at the second privacy level have a degree of privacy and retain the convenience of direct access, but use encrypted transmission to prevent data leakage. Videos at the third privacy level are highly sensitive and require additional authentication in addition to encrypted transmission. This dual protection ensures that only legitimate users can access them. This embodiment matches the privacy level of the video with the degree of protection of the interaction strategy, avoiding over-protection that impacts the user experience and preventing under-protection that leads to leakage.
[0053] For example, a driver can view real-time traffic video on a main road (privacy level 1). After the user clicks the corresponding icon on the map, this embodiment directly retrieves the video from the local cache and plays it. Property management can view surveillance footage of a residential complex's public areas (privacy level 2). This video can be retrieved directly without verification, but the video is encrypted via HTTPS transmission. Even if the transmission is intercepted, the content cannot be parsed, protecting the owner's privacy. When police officers retrieve core accident video (privacy level 3), this embodiment first prompts them to enter their police account and password for identity verification. The video is retrieved only after verification is passed, and the transmission process is encrypted to ensure that the video is only viewed by authorized police officers, preventing evidence leakage.
[0054] This embodiment matches interaction strategies according to privacy levels, allowing public videos to be retrieved efficiently without adding redundant processes. Semi-sensitive videos are both convenient and prevent transmission leakage. High-sensitive videos rely on double protection to build a solid security line, avoiding both excessive protection that reduces efficiency and insufficient protection that causes privacy leakage. Overall, it takes into account both efficiency and security, and optimizes the entire video interaction process.
[0055] In one embodiment of the present application, the video data interaction method also includes: in response to receiving a cache update instruction, calculating the video retrieval frequency of all video data linked in the electronic map within a first time period, and obtaining all traffic accident data in the electronic map within a second time period; selecting first cache data from all video data based on the video retrieval frequency; determining the accident location and accident time based on the traffic accident data, and using the video data corresponding to the accident location and accident time as second cache data; retrieving the first cache data and the second cache data, storing the first cache data in the first-level cache area, and storing the second cache data in the second-level cache area.
[0056] In this embodiment, the target interactive video is retrieved based on the video interaction strategy, specifically including: if the video interaction strategy is direct retrieval and unencrypted transmission, the target interactive video is matched with the video data in the first-level cache area; if the matching video data is identical, the matched video data is retrieved from the first-level cache area; if the matching video data is not identical, the target interactive video is directly retrieved from the data source system corresponding to the target interactive video, and the data transmission process of retrieving the target interactive video adopts unencrypted transmission; If the video interaction strategy is direct retrieval and encrypted transmission, the target interactive video is matched with the video data in the first-level cache area. If the same video data is obtained by matching, the matched video data is retrieved from the first-level cache area; if the same video data is not obtained by matching, the target interactive video is matched with the video data in the second-level cache area. If the same video data is obtained by matching, the matched video data is retrieved from the second-level cache area; if the same video data is not obtained by matching, the target interactive video is directly retrieved from the data source system corresponding to the target interactive video, and the data transmission process of retrieving the target interactive video adopts encrypted transmission.
[0057] In this embodiment, calling the target interactive video based on the video interaction strategy also includes: if the video interaction strategy is calling after identity authentication and encrypted transmission, then matching the target interactive video with the video data in the secondary cache area, if the same video data is obtained by matching, then calling the matched video data from the secondary cache area; if the same video data is not matched, then matching the target interactive video with the video data in the primary cache area, if the same video data is obtained by matching, then calling the matched video data from the primary cache area; if the same video data is not matched, then sending an authentication request to the data source system corresponding to the target interactive video, if a request verification result of successful identity authentication and an encryption key are received from the data source system, then calling the target interactive video based on the encryption key; if a request verification result of failed identity authentication is received from the data source system, then the target interactive video is not called; the data source system is an external system connected to the internal system.
[0058] In this embodiment, the first-level cache area refers to the local space used to temporarily store frequently accessed video data (such videos fall under privacy levels 1, 2, or 3). The second-level cache area refers to the local space used to temporarily store real-time traffic accident-related video data (such videos fall under privacy levels 2 or 3). Given the time-sensitive nature of traffic accident handling and the high probability and frequency of video retrieval during an accident, temporary storage avoids repeated requests to external systems, significantly shortening retrieval time and improving response speed.
[0059] Video retrieval frequency refers to the number of times a video is accessed by users within a certain period of time, reflecting the popularity of the video. The first time period is a preset period for statistical data retrieval frequency, such as the last seven days, used to filter videos that are frequently accessed over a long period of time. Traffic accident data refers to key information recorded in the accident, which may include the accident location, time, and type. The second time period is a preset time range associated with traffic accidents, such as the last 24 hours, to ensure that the latest accident-related videos are cached. The first cached data refers to frequently accessed videos. Such videos can be cached, allowing users to prioritize retrieval from the cache when retrieving videos to improve efficiency. The second cached data refers to videos corresponding to the latest accident location and time, which are cached in advance for quick retrieval. Different strategies correspond to different cache query priorities. For example, for Category II private videos, the first-level cache area can be queried first, followed by the second-level cache area; for Category III private videos, the second-level cache area can be queried first, followed by the first-level cache area. In this way, this embodiment can ensure efficient retrieval of target interactive videos.
[0060] This embodiment achieves efficient video retrieval through hierarchical caching and policy adaptation. Specifically, this embodiment uses the first-level cache area to store long-term, frequently accessed videos, reducing repeated video retrieval requests to external systems. This embodiment also uses the second-level cache area to store the latest accident-related videos, preserving them in advance based on timeliness requirements, thereby shortening emergency response time when subsequent users retrieve videos.
[0061] The query order design of this embodiment is based on the actual usage scenarios and requirements of videos with different privacy levels, which improves efficiency and ensures accuracy. The high-frequency videos stored in the first-level cache area include videos with privacy levels of 1, 2, and 3, while the traffic accident-related video data stored in the second-level cache area is mostly videos with privacy levels of 2 or 3. Therefore, for videos with privacy levels of 1, the first-level cache area is searched first, and then the second-level cache area is searched for videos with privacy levels of 2. For videos with privacy levels of 2, the first-level cache area is searched first, and then the second-level cache area is searched. For videos with privacy levels of 3, the second-level cache area is searched first, and then the first-level cache area is searched.
[0062] The priority query order design of this embodiment can improve the query hit rate and query efficiency. At the same time, this embodiment can efficiently utilize cache resources, reduce external system calls, and quickly respond to the needs of different scenarios. It not only improves the retrieval efficiency but also ensures the query accuracy, and is suitable for the use of videos with multiple privacy levels.
[0063] For example, a citizen is viewing real-time customer flow in a downtown shopping district (a privacy-level video). Assume the video has been accessed an average of three times per day over the past seven days and is cached in the Level 1 cache. This embodiment prioritizes the Level 1 cache and retrieves the video directly from the cache, transmitting it unencrypted.
[0064] The property management checks the surveillance footage at the gate of the residential complex (video with the second level of privacy). In this embodiment, the first level cache area is checked, but no video is found. Then the second level cache area is checked, but no video is found. Finally, the present embodiment requests the community system to retrieve the video, which is retrieved and played after encrypted transmission, thus ensuring privacy without redundant checks.
[0065] Traffic police are handling a rear-end collision at an intersection that occurred three hours ago (video with a privacy level of three). Assuming the last 24 hours of accident data has triggered caching, the video of the intersection and surrounding areas has been retrieved and stored in the secondary cache after authentication and encryption. This embodiment first checks the secondary cache and can retrieve the accident footage directly from the secondary cache, quickly obtaining it without waiting for a response from the external system.
[0066] If the videos of the three privacy levels are not found in the second-level cache, this embodiment checks the first-level cache area. If no query is found, this embodiment then sends a verification request to the public security system. After the police complete the face recognition verification and hardware key verification, the encryption key is used to retrieve the video from the public security system, and the entire process is encrypted to ensure security.
[0067] This embodiment achieves efficient video retrieval while balancing privacy and security through hierarchical caching and policy adaptation. The first-level cache stores long-term, high-frequency videos, and the second-level cache stores the latest accident videos, reducing repeated requests from external systems, shortening emergency response time, and improving retrieval efficiency. This embodiment matches query order according to privacy level and interaction strategy, which can improve cache hit rate and optimize resource utilization. The encrypted transmission and identity authentication of this embodiment ensure the security of three types of high-privacy videos, adapt to the needs of multiple scenarios, and quickly respond to retrieval requests while taking into account the security and accurate retrieval of videos with different privacy levels.
[0068] Corresponding to the video data interaction method of the above embodiment, Figure 2 This is a structural block diagram of a video data interaction system provided by an embodiment of the present application. For ease of explanation, only the parts related to the embodiment of the present application are shown. Figure 2 The video data interaction system 20 includes: a data interaction request module 21, a video security protection module 22 and a video data retrieval module 23.
[0069] The data interaction request module 21 is configured to respond to a video interaction request received from a user and determine a target interaction video based on the video interaction request; the video interaction request is generated by the user through interaction with an electronic map; the electronic map is linked to traffic video data of multiple locations, and the traffic video data is sourced from multiple internal systems or external systems; The video security protection module 22 is used to determine whether to retrieve the target interactive video based on the privacy level of the target interactive video and the interactive permission corresponding to the video interactive request; The video data retrieval module 23 is used to determine a video interaction strategy based on the privacy level of the target interactive video if it is determined to retrieve the target interactive video, and retrieve the target interactive video based on the video interaction strategy; if it is determined not to retrieve the target interactive video, generate a security prompt message.
[0070] In one embodiment of the present application, the data interaction request module 21 is specifically used to determine a target area on an electronic map based on a video interaction request; obtain candidate video points within the target area based on the target area; in response to receiving a video point selection instruction from a user, determine a target video point from the candidate video points based on the video point selection instruction; in response to receiving a video time selection instruction from a user, determine a target video time period based on the video time selection instruction; and determine a target interaction video based on the target video point and the target video time period.
[0071] In one embodiment of the present application, a method for determining the privacy level of a target interactive video includes: obtaining a target video point, a target video time period, and a target video source system corresponding to the target interactive video; and determining the privacy level of the target interactive video based on the target video point and the target video source system.
[0072] In one embodiment of the present application, the video security protection module 22 is specifically configured to determine to retrieve the target interactive video if the privacy level of the target interactive video is a Class I privacy level; If the privacy level of the target interactive video is Class II privacy level or Class III privacy level, the interactive permission corresponding to the video interaction request is verified; if the verification passes, the target interactive video is determined to be retrieved; if the verification fails, the target interactive video is determined not to be retrieved.
[0073] In one embodiment of the present application, the video data retrieval module 23 is specifically used to determine the video interaction strategy as direct retrieval and unencrypted transmission if the privacy level of the target interactive video is a Class I privacy level; if the privacy level of the target interactive video is a Class II privacy level, then the video interaction strategy is determined to be direct retrieval and encrypted transmission; if the privacy level of the target interactive video is a Class III privacy level, then the video interaction strategy is determined to be retrieval and encrypted transmission after identity authentication; identity authentication refers to verifying the identity of the user.
[0074] In one embodiment of the present application, the video data interaction system 20 also includes: a cache module, which is used to calculate the video retrieval frequency of all video data linked in the electronic map within a first time period in response to receiving a cache update instruction, and obtain all traffic accident data in the electronic map within a second time period; select first cache data from all video data based on the video retrieval frequency; determine the accident location and accident time based on the traffic accident data, and use the video data corresponding to the accident location and accident time as second cache data; retrieve the first cache data and the second cache data, and store the first cache data and the second cache data in the data cache area.
[0075] In one embodiment of the present application, the video data retrieval module 23 is further configured to, if the video interaction strategy is direct retrieval and unencrypted transmission, match the target interactive video with the video data in the first-level cache area; if the matching video data is identical, retrieve the matched video data from the first-level cache area; if the matching video data is not identical, directly retrieve the target interactive video from the data source system corresponding to the target interactive video, and the data transmission process for retrieving the target interactive video adopts unencrypted transmission; If the video interaction strategy is direct retrieval and encrypted transmission, the target interactive video is matched with the video data in the first-level cache area. If the same video data is obtained by matching, the matched video data is retrieved from the first-level cache area; if the same video data is not obtained by matching, the target interactive video is matched with the video data in the second-level cache area. If the same video data is obtained by matching, the matched video data is retrieved from the second-level cache area; if the same video data is not obtained by matching, the target interactive video is directly retrieved from the data source system corresponding to the target interactive video, and the data transmission process of retrieving the target interactive video adopts encrypted transmission.
[0076] See also Figure 3 , Figure 3 This is a schematic block diagram of an electronic device provided in one embodiment of the present application. Figure 3 The electronic device 300 in the embodiment shown may include: one or more processors 301, one or more input devices 302, one or more output devices 303, and one or more memories 304. The processors 301, input devices 302, output devices 303, and memories 304 communicate with each other via a communication bus 305. The memory 304 is used to store computer programs, which include program instructions. The processor 301 is used to execute the program instructions stored in the memory 304. The processor 301 is configured to call the program instructions to execute the functions of the modules in the above-mentioned system embodiments, such as Figure 2 The functions of the data interaction request module 21, the video security protection module 22 and the video data retrieval module 23 are shown.
[0077] It should be understood that in the embodiment of the present application, the processor 301 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0078] The input device 302 may include a touchpad, a fingerprint collection sensor (for collecting user fingerprint information and fingerprint direction information), a microphone, etc. The output device 303 may include a display (LCD, etc.), a speaker, etc.
[0079] The memory 304 may include a read-only memory and a random access memory, and provides instructions and data to the processor 301. A portion of the memory 304 may also include a non-volatile random access memory. For example, the memory 304 may also store information of video data.
[0080] In a specific implementation, the processor 301, input device 302, and output device 303 described in the embodiment of the present application can execute the implementation method described in the embodiment of the video data interaction method provided in the embodiment of the present application, and can also execute the implementation method of the electronic device 300 described in the embodiment of the present application, which will not be repeated here.
[0081] In another embodiment of the present application, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program. The computer program includes program instructions. When the program instructions are executed by a processor, all or part of the process of the method in the above embodiment is implemented. The computer program can also be used to instruct related hardware to complete the process. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of each of the above method embodiments are implemented. The computer program includes computer program code, which can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium.
[0082] The computer-readable storage medium can be an internal storage unit of the electronic device in any of the aforementioned embodiments, such as a hard disk or memory of the electronic device. The computer-readable storage medium can also be an external storage device of the electronic device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory card, etc. Furthermore, the computer-readable storage medium can include both an internal storage unit of the electronic device and an external storage device. The computer-readable storage medium is used to store computer programs and other programs and data required by the electronic device. The computer-readable storage medium can also be used to temporarily store data that has been output or is about to be output.
[0083] Those skilled in the art will appreciate that the modules / units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0084] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the electronic devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0085] In the several embodiments provided in this application, it should be understood that the disclosed electronic devices and methods can be implemented in other ways. For example, the system embodiments described above are merely schematic. For example, the division of modules / units is only a logical function division. In actual implementation, there may be other division methods, such as multiple modules, units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces or modules / units, or it can be an electrical, mechanical or other form of connection.
[0086] Modules / units described as separate components may or may not be physically separate, and components displayed as modules / units may or may not be physical modules / units, that is, they may be located in one place or distributed across multiple network modules / units. Some or all of the modules / units may be selected according to actual needs to achieve the purpose of the embodiments of the present application.
[0087] In addition, the functional modules / units in the various embodiments of the present application may be integrated into a single processing module / unit, or each module / unit may exist physically separately, or two or more modules / units may be integrated into a single module / unit. The aforementioned integrated modules / units may be implemented in the form of hardware or software functional modules / units.
[0088] The above are only specific embodiments of the present application, but the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and such modifications or substitutions should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A video data interaction method, characterized in that: include: In response to receiving a video interaction request from a user, determining a target interaction video based on the video interaction request; The video interaction request is generated by the user through interaction with the electronic map; The electronic map is linked to traffic video data of multiple locations, and the traffic video data is derived from multiple internal systems or external systems; Determining whether to retrieve the target interactive video based on the privacy level of the target interactive video and the interactive permission corresponding to the video interaction request; If it is determined to retrieve the target interactive video, determining a video interaction strategy based on the privacy level of the target interactive video, and retrieving the target interactive video based on the video interaction strategy; If it is determined not to retrieve the target interactive video, a safety prompt message is generated.
2. The video data interaction method according to claim 1, wherein: The determining a target interactive video based on the video interaction request includes: determining a target area on an electronic map based on the video interaction request; Acquire candidate video points within the target area based on the target area; In response to receiving a video point selection instruction from a user, determining a target video point from the candidate video points based on the video point selection instruction; In response to receiving a video time selection instruction from a user, determining a target video time period based on the video time selection instruction; A target interactive video is determined based on the target video location and the target video time period.
3. The video data interaction method according to claim 1, wherein: The method for determining the privacy level of the target interactive video includes: Obtaining the target video point and target video source system corresponding to the target interactive video; The privacy level of the target interactive video is determined based on the target video point and the target video source system.
4. The video data interaction method according to claim 1, wherein: The determining whether to retrieve the target interactive video based on the privacy level of the target interactive video and the interactive permission corresponding to the video interaction request includes: If the privacy level of the target interactive video is a privacy level of Class A, determining to retrieve the target interactive video; If the privacy level of the target interactive video is Class II privacy level or Class III privacy level, the interactive permission corresponding to the video interaction request is verified; if the verification passes, the target interactive video is determined to be retrieved; if the verification fails, the target interactive video is determined not to be retrieved.
5. The video data interaction method according to claim 1, wherein: The determining of the video interaction strategy based on the privacy level of the target interactive video includes: If the privacy level of the target interactive video is a privacy level of Class 1, determining the video interaction strategy as direct access and unencrypted transmission; If the privacy level of the target interactive video is the second privacy level, determining the video interaction strategy as direct access and encrypted transmission; If the privacy level of the target interactive video is the third privacy level, the video interaction strategy is determined to be retrieval and encrypted transmission after identity authentication; the identity authentication refers to verifying the identity of the user.
6. The video data interaction method according to claim 1, wherein: Also includes: In response to receiving the cache update instruction, calculating the video retrieval frequency of all video data linked to the electronic map within a first time period, and obtaining all traffic accident data in the electronic map within a second time period; Selecting first cached data from all video data based on the video retrieval frequency; determining the accident location and the accident time based on the traffic accident data, and using the video data corresponding to the accident location and the accident time as the second cache data; The first cache data and the second cache data are retrieved, the first cache data is stored in the first-level cache area, and the second cache data is stored in the second-level cache area.
7. The video data interaction method according to claim 6, wherein: The retrieving the target interactive video based on the video interaction strategy includes: If the video interaction strategy is direct retrieval and unencrypted transmission, the target interactive video is matched with the video data in the first-level cache area; if the matching video data is identical, the matched video data is retrieved from the first-level cache area; if the matching video data is not identical, the target interactive video is directly retrieved from the data source system corresponding to the target interactive video, and the data transmission process of retrieving the target interactive video adopts unencrypted transmission; If the video interaction strategy is direct retrieval and encrypted transmission, the target interactive video is matched with the video data in the first-level cache area. If the same video data is obtained by matching, the matched video data is retrieved from the first-level cache area; if the same video data is not obtained by matching, the target interactive video is matched with the video data in the second-level cache area. If the same video data is obtained by matching, the matched video data is retrieved from the second-level cache area; if the same video data is not obtained by matching, the target interactive video is directly retrieved from the data source system corresponding to the target interactive video, and the data transmission process of retrieving the target interactive video adopts encrypted transmission.
8. A video data interaction system, characterized in that: include: a data interaction request module, configured to, in response to receiving a video interaction request from a user, determine a target interaction video based on the video interaction request; The video interaction request is generated by the user through interaction with an electronic map; the electronic map is linked to traffic video data of multiple locations, and the traffic video data is derived from multiple internal systems or external systems; A video security protection module, configured to determine whether to retrieve the target interactive video based on the privacy level of the target interactive video and the interactive authority corresponding to the video interaction request; A video data retrieving module, configured to, if it is determined to retrieve the target interactive video, determine a video interaction strategy based on the privacy level of the target interactive video, and retrieve the target interactive video based on the video interaction strategy; If it is determined not to retrieve the target interactive video, a safety prompt message is generated.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.