DVR data management method and device, electronic equipment and computer readable storage medium

Based on the identity identity of the current login account, its data access permissions are determined, and the corresponding data set is saved to the cache area for management, which solves the problem of low data management security of the vehicle DVR system. , Improving the security and user experience of the system.

CN119358027AInactive Publication Date: 2025-01-24CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD

Patent Information

Application Number
CN202411606082.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-12
Publication Date
2025-01-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing on-board DVR systems have low security in data management, and they cannot access and manage data according to different access rights, and there is a risk of data leakage and misoperation.

Method used

By responding to the access request, determine its data access permissions according to the identity identity of the current login account, obtain the corresponding data set and save it to the cache area, in response to the corresponding data operation of the operation request Management.

Benefits of technology

The classification management of DVR data is realized, the access and operation authority of different users is limited, the problems of data leakage and misunderstanding are avoided, and the security and user experience of the vehicle DVR system is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119358027A_ABST
    Figure CN119358027A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of vehicles, and discloses a DVR data management method and device, electronic equipment and a computer readable storage medium, and the method comprises the steps: responding to an access request, and determining the data access authority of a current login account according to the identity label of the current login account; based on the data access permission, determining a data set corresponding to the current login account, and obtaining data in the data set and storing the data in a cache region; and in response to the operation request, performing corresponding data operation on the cache region according to the operation type specified by the operation request so as to output the operated cache region data. According to the embodiment of the invention, the data access permission of the current login account is determined according to the identity label of the current login account, so that access and operation of different users to the DVR data are limited, and the problems of data leakage and misoperation are avoided while classified management of the DVR data is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information technology, and in particular to a DVR data management method, device, electronic device and computer-readable storage medium. Background Art

[0002] With the widespread application of vehicle-mounted video surveillance systems, vehicle-mounted digital video recorders (DVRs) have become important safety equipment for buses, taxis and other means of transportation, which can provide functions such as video surveillance, image transmission and data storage.

[0003] However, the vehicle DVR system still has shortcomings in data management. For example, the vehicle DVR data management under the relevant technology is not sophisticated enough. When accessing data, the full amount of data is usually loaded from the media library, and the data cannot be accessed according to different access permissions. There are problems of data leakage and misoperation, which reduces the security of the vehicle DVR system. Summary of the invention

[0004] In view of the above problems, the present application provides a DVR data management method, device, electronic device and computer-readable storage medium to solve the problem of low security of vehicle-mounted DVR systems in the prior art.

[0005] According to one aspect of the present application, a DVR data management method is provided, the management method comprising: in response to an access request, determining the data access rights of the current login account according to the identity identifier of the current login account; based on the data access rights, determining the data set corresponding to the current login account, and obtaining the data in the data set and saving it to a cache area; wherein there is an inclusion relationship between data sets corresponding to different levels of data access rights; in response to an operation request, performing corresponding data operations on the cache area according to the operation type specified by the operation request to output the cache area data after the operation; wherein the operation type includes at least a query type and a modification type.

[0006] In an optional manner, the data access permission of the current login account is determined based on the identity identifier of the current login account, including: if the identity identifier of the current login account has an index relationship with the identity identifiers of other accounts, and the identity identifier of the current login account is a parent node in the index relationship, then the data access permission of the current login account is a first-level access permission; if the identity identifier of the current login account has an index relationship with the identity identifiers of other accounts, and the identity identifier of the current login account is a child node in the index relationship, then the data access permission of the current login account is a second-level access permission; if the identity identifier of the current login account has no index relationship with the identity identifiers of other accounts, then the data access permission of the current login account is a third-level access permission; wherein: the data set corresponding to the first-level access permission includes the data set corresponding to the second-level access permission, and the data set corresponding to the second-level access permission includes the data set corresponding to the third-level access permission.

[0007] In an optional manner, based on the data access rights, the data set corresponding to the current login account is determined, and the data in the data set is obtained and saved in a cache area, including: if the access request does not carry any associated information, all the data in the data set corresponding to the current login account is saved in the cache area; if the access request carries a target data type, the data belonging to the target data type in the data set corresponding to the current login account is saved in the cache area; if the access request carries a target date, the data in the data set corresponding to the current login account whose corresponding timestamp matches the target date is saved in the cache area.

[0008] In an optional manner, the management method further includes: if the data in the media library is updated, updating the data in the cache area based on the updated data in the media library.

[0009] In an optional manner, the operation request carries a target resource identifier; and according to the operation type specified by the operation request, a corresponding data operation is performed on the cache area to output the cache area data after the operation, including: if the operation type specified by the operation request is a query type, the target data in the cache area is output; wherein the target data is determined according to the target resource identifier; if the operation type specified by the operation request is an addition or update in the modification type, the target data is obtained from the media library based on the target resource identifier, the data in the cache area is modified, and the modified cache area data is output; if the operation type specified by the operation request is a deletion in the modification type, the target data in the cache area is deleted, and the deleted cache area data is output.

[0010] In an optional manner, the target data is obtained from the media library based on the target resource identifier, and the data in the cache area is modified, including: if the operation type specified by the operation request is an increase in the modification type, the target data is obtained from the media library based on the target resource identifier, added to the cache area, and the added cache area data is output; if the operation type specified by the operation request is an update in the modification type, the target data is obtained from the media library based on the target resource identifier, the data in the cache area is updated, and the updated cache area data is output.

[0011] In an optional manner, the management method further includes: if the data in the media library is updated, updating the data in the cache area based on the updated data in the media library.

[0012] In an optional manner, before responding to the access request, the management method also includes: classifying the multiple data according to the data types corresponding to each of the multiple data, and associating them with the identity identifiers of the corresponding accounts to generate data sets corresponding to each of the multiple accounts.

[0013] According to another aspect of the present application, a DVR data management device is provided, the management device comprising: a classification module, for determining, in response to an access request, the data access rights of the current login account according to the identity identifier of the current login account; an acquisition module, for determining, based on the data access rights, the data set corresponding to the current login account, and acquiring the data in the data set and saving it to a cache area; wherein an inclusion relationship exists between data sets corresponding to data access rights of different levels; an operation module, for performing corresponding data operations on the cache area according to the operation type specified by the operation request in response to an operation request, so as to output the cache area data after the operation; wherein the operation type includes at least a query type and a modification type.

[0014] According to one aspect of the present application, an electronic device is provided, comprising: a controller; and a memory for storing one or more programs, wherein when the one or more programs are executed by the controller, the above-mentioned management method is executed.

[0015] According to one aspect of the present application, a computer-readable storage medium is also provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the above-mentioned management method.

[0016] According to one aspect of the present application, a computer program product or computer program is also provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned management method.

[0017] In response to the access request, the embodiment of the present application determines the data access rights of the current login account according to the identity identifier of the current login account, thereby limiting the access and operation of the DVR data by different users, realizing the classification management of DVR data while avoiding the problems of data leakage and misoperation. Based on the data access rights, the data set corresponding to the current login account is determined, and the data in the data set is obtained and saved in the cache area. In response to the operation request, the corresponding data operation is performed on the cache area according to the operation type specified by the operation request to output the cache area data after the operation. In this way, in the case of data changes, there is no need to reload all the data into the cache area, but refresh the part of the data that has changed in the cache area, which can improve the data loading and processing speed, facilitate the real-time operation of the user, and improve the user experience.

[0018] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 It is a flowchart of a DVR data management method shown in an exemplary embodiment of the present application.

[0021] Figure 2 This is a schematic diagram of the relationship between the identity identifiers of multiple accounts provided by this application.

[0022] Figure 3 This is a schematic diagram of the inclusion relationship between data sets corresponding to different accounts provided by this application.

[0023] Figure 4It is a flowchart of another DVR data management method shown in an exemplary embodiment of the present application.

[0024] Figure 5 It is a schematic diagram of the application scenario of the application management method.

[0025] Figure 6 It is a structural diagram of a DVR data management device shown in an exemplary embodiment of the present application.

[0026] Figure 7 It is a structural diagram of a computer system of an electronic device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0027] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0028] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0029] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0030] The term "multiple" as used in this application refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0031] The degree of refinement of vehicle DVR data management under related technologies is low. When accessing data, the full amount of data is usually loaded from the media library. It is impossible to access and obtain data according to different access rights. There are problems of data leakage and misoperation, which reduces the security of the vehicle DVR system.

[0032] To this end, one aspect of the present application provides a DVR data management method. Figure 1 , Figure 1 1 is a flowchart of a DVR data management method shown in an exemplary embodiment of the present application. The management method at least includes S110 to S140, which are described in detail as follows:

[0033] S110: In response to the access request, determine the data access rights of the current login account according to the identity identifier of the current login account.

[0034] In an optional embodiment, it may be a passive access request that is automatically triggered after a user logs into an account. After the executing subject of this embodiment (this application) obtains the current login information, it automatically enters the access process for the data corresponding to the current login account, which is conducive to quickly responding to the user's subsequent data operation requests.

[0035] In another optional embodiment, the access request may also be an active access request triggered by a user, which is used to specifically access a certain type or item of data.

[0036] In this application, data access rights refer to rights for different accounts to access different ranges of data in the vehicle DVR media library. In some embodiments, a mapping relationship is established between the rights and the corresponding accounts, that is, different accounts have different data access rights.

[0037] S120: Based on the data access rights, determine the data set corresponding to the current login account, and obtain the data in the data set and save it in the cache area.

[0038] There is an inclusion relationship between data sets corresponding to different levels of data access permissions.

[0039] In this application, the data set corresponding to the high-level data access permission includes the data set corresponding to the low-level data access permission. Among them, the level of data access permission is a relative concept determined by relevant technical personnel in combination with actual scenarios. Generally, the higher the level of data access permission, the larger the range of accessible data.

[0040] Exemplarily, if the data access permission of the current login account is the lowest, the corresponding data set only includes data generated under the current login account; if the data access permission of the current login account is the highest, the corresponding data set also includes data generated under other lower-level accounts.

[0041] S130: In response to the operation request, according to the operation type specified by the operation request, a corresponding data operation is performed on the buffer area to output the buffer area data after the operation.

[0042] Among them, the operation type includes at least a query type and a modification type. In this application, the operation type may also include a sorting type, a compression type, an indexing type, etc. that are commonly used in practical applications, and this application does not impose any restrictions on this.

[0043] The operation request is actively proposed by the user, usually for querying or modifying certain data. After receiving the operation request, the corresponding data operation is performed on the cache area according to the specified operation type, and the data after the operation is output, thereby completing data management and page interaction.

[0044] This embodiment allocates different data access rights to different accounts, restricts different users' access to and operation of DVR data, implements DVR data classification management, avoids data leakage and misoperation, and improves the security of the DVR system. By saving the data set corresponding to the current login account to the cache area, receiving the user's operation request, and performing corresponding data operations on the cache area according to the corresponding operation type, the data loading and processing speed can be improved, and the user experience can be improved.

[0045] In another exemplary embodiment of the present application, based on the above Figure 1 The management method shown illustrates how to determine the data access rights of the current login account. The specific steps include S1101-S1103, which are described in detail as follows:

[0046] S1101: If the identity identifier of the current login account has an index relationship with the identity identifiers of other accounts, and the identity identifier of the current login account is the parent node in the index relationship, then the data access permission of the current login account is the first-level access permission.

[0047] In this application, the accounts of car DVR users are divided into three categories. The first category is the car owner account, the second category is the authorized account authorized by the car owner account, and the third category is the unauthorized visitor account. Among them, there is only one car owner account and one visitor account respectively, but there can be multiple authorized accounts.

[0048] In order to facilitate the management of authorized accounts by the car owner account, an index relationship will be established between the car owner account and the authorized accounts. The car owner account is the parent node of multiple authorized accounts, and correspondingly, each authorized account is the child node of the car owner account. The tourist account is a temporary account. In order to save the management overhead of the tourist account and to preserve the temporary nature of the tourist account, the tourist account is generally not associated with other accounts, but is independent of other accounts.

[0049] For example, Figure 2 As shown, Figure 2 This is a diagram showing the relationship between the identity identifiers of multiple accounts. If the identity identifier of the current login account is 10000417, Figure 2It can be seen that 10000417 has an index relationship with the identity identifiers of multiple other accounts, and 10000417 is the parent node in the index relationship. Therefore, it is determined that the data access permission of the current login account is the first-level access permission.

[0050] It is understandable that in actual applications, the car owner account should have the highest access rights, and 10000417 is the identity identifier of the car owner account.

[0051] S1102: If the identity identifier of the current login account has an index relationship with the identity identifiers of other accounts, and the identity identifier of the current login account is a child node in the index relationship, then the data access permission of the current login account is a secondary access permission.

[0052] For example, in combination Figure 2 As shown, if the identity identifier of the current login account is 10000519, it has an index relationship with 10000417, and 10000519 is a child node in the index relationship. Therefore, it is determined that the data access permission of the current login account is a secondary access permission.

[0053] In actual applications, the authorization account authorized by the car owner should have authority second only to the car owner, and 10000519 is the identity identifier of the authorized account.

[0054] Similarly, 10000518, 10000520, etc., which are similar to 10000519, are the identity identifiers of other authorized accounts.

[0055] S1103: If there is no index relationship between the identity identifier of the current login account and the identity identifiers of other accounts, the data access permission of the current login account is the third-level access permission.

[0056] For example, in combination Figure 2 As shown, if the identity identifier of the current login account is Guest, there is no index relationship with the identity identifiers of other accounts. Therefore, it is determined that the data access permission of the current login account is the third-level access permission.

[0057] In actual applications, unauthorized guest accounts have the lowest permissions, and Guest is the identity identifier of the guest account.

[0058] The data set corresponding to the first-level access permission includes the data set corresponding to the second-level access permission, and the data set corresponding to the second-level access permission includes the data set corresponding to the third-level access permission.

[0059] For example, see Figure 3 , Figure 3It is a schematic diagram of the inclusion relationship between the data sets corresponding to different accounts, where the data set accessible to the owner account includes data under the directory of the owner account itself, as well as data under all authorized account directories and visitor account directories; the data set accessible to the authorized account includes data under the directory of the authorized account itself and data under the directory of the visitor account, while the data set accessible to the visitor account only includes data under the directory of the visitor account itself.

[0060] In this application, the data access permissions of multiple authorized accounts are all second-level access permissions, and each account cannot access the data under the other account, thereby ensuring the data privacy and security of different authorized accounts.

[0061] This embodiment provides a method for determining the data access rights of the current login account based on the identity identifier of the current login account. By judging whether there is an index relationship between the identity identifiers of multiple accounts and the node positions in the index relationship, the data access rights are determined, thereby conveniently and quickly realizing differentiated management of different accounts and providing a basis for classified management of DVR data.

[0062] In another exemplary embodiment of the present application, based on the above Figure 1 The management method shown in the figure illustrates how to determine the data set corresponding to the current login account, and obtain the data in the data set and save it in the cache area. The specific steps include S1201-S1203, which are described in detail as follows:

[0063] S1201: If the access request does not carry any associated information, all data in the data set corresponding to the current login account are saved in the cache area.

[0064] If the access request does not carry any associated information, it indicates that the current access request is a passive access request automatically triggered after the user logs into the account. At this time, all data in the data set corresponding to the current login account is saved in the cache area.

[0065] Exemplarily, when a user logs into a vehicle owner account and does not actively request access to a certain category or item of data, all accessible data under the vehicle owner account will be automatically saved to the cache area, including the vehicle owner account, various authorized accounts, and data generated by the visitor account.

[0066] S1202: If the access request carries the target data type, the data belonging to the target data type in the data set corresponding to the current login account is saved in the cache area.

[0067] If the access request carries the target data type, it indicates that the current access request is an active access request triggered by the user, which is used to access a certain type of data in a targeted manner. At this time, the data belonging to the target data type in the data set corresponding to the current login account is saved in the cache area.

[0068] In this application, the vehicle-mounted DVR is taken as a driving recorder as an example, and the data types include: loop video, emergency video and picture.

[0069] Exemplarily, when a user logs in to authorized account 1 with the identity ID 10000518 and actively requests access to looping video data, the data belonging to the looping video type in the data set accessible under authorized account 1 is saved to the cache area, specifically including the looping video data generated by authorized account 1 and the visitor account.

[0070] An example access path is:

[0071] pathMap.put(10000518,"DVR root path / SeresDVR / RecordLoop / 10000518","DVR root path / SeresDVR / RecordLoop / Guest"])

[0072] Among them, RecordLoop represents the loop video.

[0073] S1203: If the access request carries a target date, the data corresponding to the timestamp that matches the target date in the data set corresponding to the current login account is saved in the cache area.

[0074] If the access request carries a target date, it indicates that the current access request is an active access request triggered by the user, which is used to access one or more data in a targeted manner. At this time, the data with the corresponding timestamp that meets the target date in the data set corresponding to the current login account is saved in the cache area.

[0075] Exemplarily, a user logs in to a guest account with the identity of Guest, and actively requests to access data with a date of 2012.12.21, and saves the data with a date of 2012.12.21 under the guest account to the cache area.

[0076] An example access path is:

[0077] pathMap.put(Guest,"DVR root path / SeresDVR / Guest / 2012.12.21"])

[0078] In an optional embodiment, the access request may carry both the target data type and the target date, or other applicable associated information for filtering data, which is not limited in the present application.

[0079] This embodiment provides a method for determining the data set corresponding to the current login account and obtaining the data in the data set and saving it to the cache area. The basic data set is determined through the data access rights of the current login account, and the associated information carried in the access request for filtering data is combined to determine the data that ultimately needs to be cached, thereby achieving secure and personalized management of DVR data.

[0080] This embodiment monitors the media library data and updates the data stored in the buffer area in real time, thereby improving the intelligence of the vehicle DVR data management and the user's access experience.

[0081] In another exemplary embodiment of the present application, based on the above Figure 1 The management method shown also explains how to perform corresponding data operations on the buffer area according to the operation type specified by the operation request to output the buffer area data after the operation, that is, S130 also includes S310-S330, which are described in detail as follows:

[0082] S310: If the operation type specified by the operation request is a query type, the target data in the buffer area is output.

[0083] The target data is determined according to the target resource identifier.

[0084] In the present application, the operation request actively proposed by the user carries a target resource identifier, which is used to represent the target data that needs to be operated. Since the data in the cache area is copied from the data in the media library, the same data in the media library and the cache area have the same resource identifier.

[0085] For example, the user submits an operation request with a URI of / images / pic.jpg and a flags value of 04, that is, a query operation is performed on a piece of image data, then the image data is directly called from the cache area to realize page display of the image data.

[0086] Among them, URI is the target resource identifier in this application, and its format is only an example. The same applies to the following, and this application does not limit this. Flags is used to represent the operation type. In this application, there are four states: 01, 02, 03, and 04, which represent add, delete, update, and query respectively.

[0087] S320: If the operation type specified by the operation request is addition or update in the modification type, the target data is obtained from the media library based on the target resource identifier, the data in the buffer area is modified, and the modified buffer area data is output.

[0088] For example, a user submits an operation request with a URI of / videos / movie.mp4 and flags of 01 or 03, i.e., to add or update a video data. First, a modification operation is performed on the target data located by the URI in the media library. Then, based on the modified target data in the media library, the target data located by the URI in the cache is modified, and the modified target data is output.

[0089] S330: If the operation type specified by the operation request is deletion in the modification type, the target data in the cache area is deleted, and the cache area data after deletion is output.

[0090] For example, the user makes an operation request with URI / videos / movie.mp4 and flags 02, that is, to delete a video data. Then, the target data located by the URI in the media library is deleted first, and then the target data located by the URI in the cache is deleted, and the cache data after deletion is output.

[0091] In another exemplary embodiment of the present application, based on the above Figure 1 The management method shown in the figure illustrates how to obtain target data from the media library based on the target resource identifier and modify the data in the cache area, that is, S320 includes S3201 to S3202, which are described in detail as follows:

[0092] S3201: If the operation type specified by the operation request is addition in the modification type, target data is obtained from the media library based on the target resource identifier and added to the cache area, and the added cache area data is output.

[0093] For example, the user makes an operation request with URI / videos / movie1.mp4 and flags 01, that is, to add a video data. First, the target data is generated at the corresponding position in the media library and a URI is assigned to it. Then, the target data is located and obtained through the URI, added to the cache area, and the added target data is output.

[0094] S3202: If the operation type specified by the operation request is update in the modification type, the target data is obtained from the media library based on the target resource identifier, the data in the cache is updated, and the updated cache data is output.

[0095] For example, a user submits an operation request with a URI of / videos / movie2.mp4 and flags of 03, i.e., an update operation is performed on a video data, for example, the type of the video data is changed to a picture type. Then, a corresponding update operation is performed on the target data located by the URI in the media library, and then based on the updated target data in the media library, the target data located by the URI in the cache is updated, and the updated target data is output.

[0096] This embodiment locates and operates the target data through the target resource identifier and the operation type, quickly responds to the operation request put forward by the user, and updates the page by refreshing the cache, which is beneficial to the real-time operation of the user and improves the convenience of data management.

[0097] In another exemplary embodiment of the present application, another DVR data management method is provided, which specifically includes: if the data in the media library is updated, then based on the updated data in the media library, the data in the cache area is updated.

[0098] In this application, in addition to receiving operation requests for DVR data actively proposed by users, the data in the media library will also be monitored. If the data in the vehicle DVR media library changes, the data object will be accurately located and the corresponding change operation will be synchronously updated to the cache area to achieve unified data management.

[0099] For example, when a user logs in to the car owner account to access all data, the car DVR works synchronously and may generate new pictures and save them in the media library. If it is detected that a new picture data is added to the media library, in order to ensure that the data accessed by the user is not missed, the picture data is saved in the cache area through the resource identifier of the new picture data.

[0100] The specific method for updating the data in the cache area based on the updated data in the media library is the same as the steps in responding to the user's operation request, please refer to the above description.

[0101] In another exemplary embodiment of the present application, another DVR data management method is provided, which specifically includes: classifying multiple data according to the data types corresponding to each of the multiple data, and associating them with the identity identifiers of the corresponding accounts to generate data sets corresponding to each of the multiple accounts.

[0102] Exemplarily, before responding to access requests and operation requests, the data generated under each account in the vehicle DVR is classified according to the data type, and associated with the identity identifier of the corresponding account, and persistently stored and managed in the form of key-value pairs, so that data sets can be determined for different accounts based on their corresponding data access permissions, thereby realizing personalized data management based on the account.

[0103] This embodiment specifically describes how to classify and manage DVR data according to different accounts, and assign different data access rights to different accounts to avoid data leakage and misoperation, thereby ensuring data security. The data is saved in the cache area, and when the user's operation request is received, the data in the cache area is updated and output in real time to quickly respond to the user's operation, thereby improving the convenience of data management and interactive experience.

[0104] See also Figure 4 , Figure 4 FIG. 1 is a flow chart of another DVR data management method according to an exemplary embodiment of the present application. The detailed description is as follows:

[0105] First, the identity of the login account is obtained, and the looping video, emergency video and picture in the data set corresponding to the current login account are accessed. In order to reduce unnecessary processes, during the access process, it is determined whether the various types of data in the current account directory have generated physical files. If not, an error message is directly prompted and data management is exited. If the physical file has been generated, all types of data are saved in the cache area, and then the cached data is operated according to the user's operation request to add data, delete data, update data or query data, and finally the cached data is output.

[0106] In another exemplary embodiment of the present application, the application scenarios of the above-mentioned multiple management methods are exemplarily described. Figure 5 , Figure 5 It is a schematic diagram of the application scenario of the management method of the present application, wherein the vehicle-mounted DVR 100, the vehicle 200 and the server 300 are connected by wireless communication, and the present application does not limit the connection method between them.

[0107] The user accesses or manages DVR data through the vehicle-mounted DVR, and the server 300 receives the access request and executes the management method shown in any of the above exemplary embodiments, which is described below as an exemplary embodiment:

[0108] The user logs in to the vehicle-mounted DVR 100 and requests to access the DVR data. The server 300 responds to the access request and determines the data access rights of the current login account according to the identity identifier corresponding to the current login account; the server 300 determines the data set corresponding to the current login account based on the data access rights, and obtains the data set and saves it in the cache area; the server 300 responds to the operation request raised by the user, and performs corresponding data operations on the cache area according to the operation type specified in the operation request, so as to output the cache area data after the operation.

[0109] The server 300 may Figure 5As shown, it is placed in the vehicle 200, and it can also be placed outside the vehicle 200. The relative positions between them are not limited in this application. The server 300 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, wherein multiple servers can form a blockchain, and the server is a node on the blockchain. The server 300 can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network) and big data and artificial intelligence platforms, and this is not limited here.

[0110] Another aspect of the present application also provides a DVR data management device, such as Figure 6 As shown, Figure 6 : is a schematic diagram of the structure of a management device shown in an exemplary embodiment of the present application. The management device includes:

[0111] A classification module 610, for determining data access rights of the current login account according to the identity identifier of the current login account in response to the access request;

[0112] The acquisition module 620 is used to determine the data set corresponding to the current login account based on the data access rights, and obtain the data in the data set and save it to the cache area; wherein there is an inclusion relationship between the data sets corresponding to different levels of data access rights;

[0113] The operation module 630 is used to respond to the operation request and perform corresponding data operations on the cache area according to the operation type specified by the operation request to output the cache area data after the operation; wherein the operation type includes at least a query type and a modification type.

[0114] In an optional manner, the classification module 610 further includes:

[0115] The first classification unit is used to determine that if the identity identifier of the current login account has an index relationship with the identity identifiers of other accounts, and the identity identifier of the current login account is the parent node in the index relationship, the data access permission of the current login account is the first-level access permission;

[0116] The second classification unit is used to determine that if the identity identifier of the current login account has an index relationship with the identity identifiers of other accounts, and the identity identifier of the current login account is a child node in the index relationship, the data access permission of the current login account is a secondary access permission;

[0117] The third classification unit is used to determine that the data access permission of the current login account is the third-level access permission if the identity identifier of the current login account does not have an index relationship with the identity identifiers of other accounts; wherein:

[0118] The data set corresponding to the first-level access permission includes the data set corresponding to the second-level access permission, and the data set corresponding to the second-level access permission includes the data set corresponding to the third-level access permission.

[0119] In an optional manner, the acquisition module 620 further includes:

[0120] A first acquisition unit, configured to save all data in a data set corresponding to a current login account to a cache area if the access request does not carry any associated information;

[0121] A second acquisition unit is used to save data belonging to the target data type in the data set corresponding to the current login account to a cache area if the access request carries the target data type;

[0122] The third acquisition unit is used to save the data with the corresponding timestamp matching the target date in the data set corresponding to the current login account to the cache area if the access request carries the target date.

[0123] In an optional manner, the operation request carries a target resource identifier, and the operation module 630 further includes:

[0124] A query operation unit, configured to output target data in the cache if the operation type specified by the operation request is a query type; wherein the target data is determined according to a target resource identifier;

[0125] A modification operation unit, configured to obtain target data from a media library based on a target resource identifier, modify the data in a buffer area, and output the modified buffer area data if the operation type specified by the operation request is addition or update in the modification type;

[0126] The deletion operation unit is used to delete the target data in the buffer area and output the deleted buffer area data if the operation type specified by the operation request is deletion in the modification type.

[0127] In an optional manner, the modification operation unit further includes:

[0128] The add operation section is used to obtain target data from the media library based on the target resource identifier and add it to the cache area, and output the added cache area data if the operation type specified by the operation request is the add in the modification type;

[0129] The update operation module is used to obtain target data from the media library based on the target resource identifier, update the data in the buffer area, and output the updated buffer area data if the operation type specified by the operation request is update in the modification type.

[0130] In an optional manner, the management device 600 further includes:

[0131] The monitoring module is used to update the data in the buffer area based on the updated data in the media library if the data in the media library is updated.

[0132] In an optional manner, the management device 600 further includes:

[0133] The storage module is used to classify multiple data according to the data types corresponding to the multiple data, and associate them with the identity identifiers of the corresponding accounts to generate data sets corresponding to the multiple accounts.

[0134] It should be noted that the management device provided in the above embodiment and the management method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs operations has been described in detail in the method embodiment and will not be repeated here.

[0135] Another aspect of the present application provides an electronic device, comprising: a controller; and a memory for storing one or more programs, which, when executed by the controller, executes the above-mentioned management method.

[0136] See also Figure 7 , Figure 7 1 is a schematic diagram of the structure of a computer system of an electronic device shown in an exemplary embodiment of the present application, which shows a schematic diagram of the structure of a computer system of an electronic device suitable for implementing an embodiment of the present application.

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

[0138] like Figure 7As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 702 or the program loaded from the storage part 708 to the random access memory (RAM) 703, such as executing the method in the above embodiment. In the RAM 703, various programs and data required for system operation are also stored. The CPU 701, ROM 702 and RAM 703 are connected to each other through a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0139] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed so that a computer program read therefrom is installed into the storage section 708 as needed.

[0140] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 709, and / or installed from a removable medium 711. When the computer program is executed by a central processing unit (CPU) 701, various functions defined in the system of the present application are executed.

[0141] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium can include a data signal propagated in a baseband or as a part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0142] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0143] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0144] Another aspect of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the management method as described above is implemented. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0145] Another aspect of the present application also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the management method provided in each of the above embodiments.

[0146] According to one aspect of an embodiment of the present application, a computer system is also provided, including a central processing unit (CPU), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage portion into a random access memory (RAM), such as executing the method in the above embodiment. In RAM, various programs and data required for system operation are also stored. CPU, ROM and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.

[0147] The following components are connected to the I / O interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.

[0148] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person skilled in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.

Claims

1. A DVR data management method, characterized in that: The management method comprises: In response to the access request, determining data access rights of the current login account according to the identity identifier of the current login account; Based on the data access rights, determine the data set corresponding to the current login account, and obtain the data in the data set and save it in the cache area; wherein there is an inclusion relationship between the data sets corresponding to different levels of data access rights; In response to the operation request, a corresponding data operation is performed on the cache area according to the operation type specified by the operation request to output the cache area data after the operation; wherein the operation type includes at least a query type and a modification type.

2. The management method according to claim 1, characterized in that: Determining the data access rights of the current login account according to the identity identifier of the current login account includes: If the identity identifier of the current login account has an index relationship with the identity identifiers of other accounts, and the identity identifier of the current login account is the parent node in the index relationship, then the data access permission of the current login account is the first-level access permission; If the identity identifier of the current login account has an index relationship with the identity identifiers of other accounts, and the identity identifier of the current login account is a child node in the index relationship, then the data access permission of the current login account is a secondary access permission; If the identity identifier of the current login account does not have an index relationship with the identity identifiers of other accounts, the data access permission of the current login account is level 3 access permission; where: The data set corresponding to the first-level access permission includes the data set corresponding to the second-level access permission, and the data set corresponding to the second-level access permission includes the data set corresponding to the third-level access permission.

3. The management method according to claim 1, characterized in that: The step of determining the data set corresponding to the current login account based on the data access permission, and obtaining the data in the data set and saving it in the cache area includes: If the access request does not carry any associated information, all data in the data set corresponding to the current login account are saved in the cache area; If the access request carries a target data type, then the data belonging to the target data type in the data set corresponding to the current login account is saved in the cache area; If the access request carries a target date, the data whose corresponding timestamp matches the target date in the data set corresponding to the current login account is saved in the cache area.

4. The management method according to any one of claims 1 to 3, characterized in that: The operation request carries a target resource identifier; The performing corresponding data operation on the buffer area according to the operation type specified by the operation request to output the buffer area data after the operation, including: If the operation type specified by the operation request is a query type, outputting the target data in the cache area; wherein the target data is determined according to the target resource identifier; If the operation type specified by the operation request is addition or update in the modification type, the target data is obtained from the media library based on the target resource identifier, the data in the buffer area is modified, and the modified buffer area data is output; If the operation type specified by the operation request is deletion in the modification type, the target data in the buffer area is deleted, and the buffer area data after deletion is output.

5. The management method according to claim 4, characterized in that: The acquiring the target data from the media library based on the target resource identifier and modifying the data in the buffer area includes: If the operation type specified by the operation request is addition in the modification type, then based on the target resource identifier, the target data is obtained from the media library and added to the buffer area, and the added buffer area data is output; If the operation type specified by the operation request is update in the modification type, the target data is obtained from the media library based on the target resource identifier, the data in the buffer area is updated, and the updated buffer area data is output.

6. The management method according to any one of claims 5, characterized in that: The management method also includes: If the data in the media library is updated, the data in the buffer area is updated based on the updated data in the media library.

7. The management method according to claim 1, characterized in that: Before responding to the access request, the management method further includes: The multiple data are classified according to the data types corresponding to each of the multiple data, and are associated with the identity identifiers of the corresponding accounts to generate data sets corresponding to each of the multiple accounts.

8. A DVR data management device, characterized in that: The management device comprises: A classification module, configured to determine data access rights of a current login account according to an identity identifier of the current login account in response to an access request; An acquisition module, used to determine the data set corresponding to the current login account based on the data access permission, and acquire the data in the data set and save it to a cache area; wherein there is an inclusion relationship between the data sets corresponding to different levels of data access permission; The operation module is used to respond to the operation request and perform corresponding data operation on the cache area according to the operation type specified by the operation request to output the cache area data after the operation; wherein the operation type includes at least a query type and a modification type.

9. An electronic device, characterized in that: include: Controller; A memory for storing one or more programs, which, when executed by the controller, enables the controller to implement the management method described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the management method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Apparatus and method for implementing safety recording TV program of DVR television

    CN101137024A

  • A data management method for an in-vehicle driving recorder and its in-vehicle unit

    CN114936360A

  • User authority management method and device, equipment and storage medium

    CN117319024A

  • Video networking management system

    CN201928306U

  • Automatic account management and device registration

    US10230564B1

Cited By

  • Data annotation management method and device, electronic equipment and storage medium

    CN119922203A