Cache system and cache method
The cache system for license plate reader processing results prioritizes storage based on elapsed time, downloads, abnormality, and route information, addressing the challenge of storing data likely to be accessed by users, thereby enhancing access speed and reducing server load.
Patent Information
- Application Number
- JP2023023095
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-17
- Publication Date
- 2024-08-29
- Estimated Expiration
- 2043-02-17
AI Technical Summary
Conventional cache systems struggle to effectively store processing results from license plate readers in cache memory due to their low likelihood of immediate access and potential for future access, making it difficult to prioritize storage based on user needs.
A cache system and method that includes a license plate reader, a processing result accumulation database, a cache database, and a priority calculation unit to determine the cache priority based on elapsed time, number of downloads, abnormality occurrence, and route information, ensuring that processing results likely to be accessed by users are stored preferentially.
The system efficiently stores processing results that are likely to be used by users in the cache database, reducing server load and improving access speed by prioritizing data based on user access patterns and characteristics.
Smart Images

Figure 2024117162000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a caching system and a caching method. [Background technology]
[0002] For example, at toll booths on toll roads, license plate readers are installed that obtain license plate information from images of vehicle license plates. The license plate information read by the license plate readers is transmitted to a higher-level device and is used, for example, to identify the route of each vehicle and collect tolls according to the route.
[0003] Furthermore, the image captured by the license plate reader and the processing results including the read license plate information are stored in the data server as confirmation data in cases such as when the toll collection process could not be carried out normally. The toll road operator (user) accesses the data server from his / her own terminal device via the network and performs post-processing while checking the downloaded processing results. Post-processing includes, for example, calculating and billing the toll at a later date for vehicles for which the toll collection process could not be carried out.
[0004] When a large amount of data is stored in a data server, it takes a long time for a user to search for and read the data he or she desires. For this reason, servers that provide data via a network have cache systems that respond quickly to data requests from users by temporarily storing data in a high-speed accessible storage area (cache memory) (see, for example, Patent Document 1). In particular, by prioritizing frequently accessed data in the cache memory, the load on the entire server can be reduced. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] JP 2015-228140 A Summary of the Invention [Problem to be solved by the invention]
[0006] However, since the results of the license plate reading device's processing are used for subsequent processing by the user (such as billing for tolls at a later date), they are unlikely to be accessed until a certain amount of time has passed (for example, until half a day to a day has passed) immediately after the reading process, and once they have been accessed (after subsequent processing has been completed), they are unlikely to be accessed again. For this reason, with conventional cache systems, it is difficult to store in the cache memory the processing results that are likely to be accessed by the user.
[0007] An object of the present disclosure is to provide a cache system and a cache method that can preferentially store in a cache database processing results that are likely to be used by a user among the processing results of a large number of license plate reading devices. [Means for solving the problem]
[0008] According to one aspect of the present disclosure, a cache system includes a license plate reading device that photographs a traveling vehicle, reads license plate information, and stores processing results including the photographed image and the read license plate information in a processing result accumulation database; a cache database that temporarily stores a portion of the multiple processing results; a priority calculation unit that calculates a cache priority by weighting so that the priority is higher according to the elapsed time for a certain period of time from when the image included in the processing result was photographed, and the priority is lower according to the elapsed time after the certain period of time has passed; a recording processing unit that stores in the cache database processing results that have not been stored in the cache database and whose cache priority is equal to or higher than a predetermined threshold; and a deletion processing unit that deletes from the cache database processing results that have been stored in the cache database and whose cache priority is lower than the threshold.
[0009] According to one aspect of the present disclosure, a caching method is a caching method using a cache system including a license plate reading device that photographs a traveling vehicle, reads license plate information, and stores processing results including the photographed image and the read license plate information in a processing result accumulation database, and a cache database that temporarily stores a portion of the processing results, and includes the steps of: calculating a cache priority by weighting so that the priority is higher according to the elapsed time for a certain period of time from when the image included in the processing result was photographed, and so that the priority is lower according to the elapsed time after the certain period of time has passed; storing in the cache database, among the processing results that have not been stored in the cache database, processing results whose cache priority is equal to or greater than a predetermined threshold; and deleting from the cache database, among the processing results that have been stored in the cache database, processing results whose cache priority is less than the threshold. Effect of the Invention
[0010] According to the above aspect, among the processing results of a large number of license plate readers, processing results that are likely to be used by the user can be preferentially stored in the cache database. [Brief description of the drawings]
[0011] [Figure 1] 1 is a diagram illustrating an overall configuration of a cache system according to an embodiment. [Diagram 2] FIG. 2 is a block diagram showing a functional configuration of a processing device according to an embodiment. [Diagram 3] FIG. 2 is a block diagram showing a functional configuration of a terminal device according to an embodiment. [Figure 4] FIG. 11 is a sequence diagram illustrating an example of a cache management process according to an embodiment. [Diagram 5] FIG. 13 is a diagram illustrating an example of a status table according to an embodiment. [Figure 6]10 is a flowchart illustrating an example of a recording process according to an embodiment. [Figure 7] FIG. 1 is a first diagram for explaining priorities according to an embodiment. [Figure 8] FIG. 2 is a second diagram for explaining the priority according to an embodiment. [Figure 9] FIG. 11 is a third diagram for explaining the priority according to an embodiment. [Figure 10] FIG. 4 is a fourth diagram for explaining priority according to an embodiment. [Figure 11] 11 is a flowchart illustrating an example of a deletion process according to an embodiment. [Figure 12] 11 is a flowchart illustrating an example of a cache area allocation process according to an embodiment. [Figure 13] FIG. 11 is a sequence diagram illustrating an example of a search process according to an embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] (Overall configuration of the cache system) FIG. 1 is a diagram showing an overall configuration of a cache system according to an embodiment. The cash system 1 according to this embodiment is a system for accumulating the processing results of a license plate reader 51 installed at a toll booth of a toll road, etc. Users of the cash system 1 are, for example, a business operator that operates the toll road, or a regulatory agency (such as the police) that tracks vehicles that violate the toll road regulations.
[0013] The roadside device 5 includes a license plate reader 51 and a sensor 52 .
[0014] The license plate reader 51 reads license plate information (place name, classification number, symbol, serial number, etc.) written on the vehicle license plate from an image captured of a vehicle traveling at a specific position on a road (toll gate lane).
[0015] If a toll booth has multiple lanes, one license plate reader 51 is installed for each lane. Each license plate reader 51 photographs vehicles traveling at a specific position on the lane in which it is installed, and reads the license plate information.
[0016] In another embodiment, one license plate reader 51 may be installed for multiple lanes. In this case, the license plate reader 51 photographs vehicles traveling at specific positions on each lane and reads license plate information.
[0017] The sensor 52 is a device for acquiring information (sensor information) about the vehicle other than the license plate information.
[0018] The sensor 52 is, for example, a vehicle detector that detects a vehicle traveling at a specific position on a road. The license plate reader 51 captures an image at the timing when the vehicle detector detects a vehicle, thereby obtaining an image in which the license plate is clearly captured, thereby improving the accuracy of reading the license plate.
[0019] As shown in FIG. 1, the cache system 1 includes a processing result storage database (DB) 2, a cache database (DB) 3, a processing device 4, and a terminal device 6.
[0020] The processing result storage DB2 is a database that collects and stores the processing results D1 from the license plate reading device 51. For example, the processing results D1 include images captured by the license plate reading device 51 and license plate information read by the license plate reading device 51.
[0021] The cache DB3 temporarily stores some of the processing results stored in the processing result storage DB2. The cache DB3 is a database with a smaller storage capacity than the processing result storage DB2. Therefore, the cache DB3 can perform search processing faster than the processing result storage DB2. "Temporarily" refers to a period shorter than the storage period of the processing result storage DB2.
[0022] The processing device 4 records and deletes the processing results in the cache DB 3. In this embodiment, the processing device 4 is a computer built into the cache DB 3.
[0023] The terminal device 6 is communicably connected to the cache DB 3 via a network N such as the Internet. The terminal device 6 acquires from the cache DB 3 the processing result D1 that matches a search condition designated by a user.
[0024] (Functional configuration of processing device) FIG. 2 is a block diagram illustrating a functional configuration of a processing device according to an embodiment. As shown in FIG. 2, the processing device 4 includes a processor 41, a memory 42, a storage 43, and a communication interface 44.
[0025] The memory 42 has a memory area necessary for the operation of the processor 41 .
[0026] The storage 43 is a so-called auxiliary storage device, and is, for example, a hard disk drive (HDD), a solid state drive (SSD), etc. The storage 43 stores data that each part of the processor 41 acquires, generates, and refers to during processing.
[0027] The communication interface 44 is an interface for transmitting and receiving various data, control signals, and the like between the processing result storage DB 2, the cache DB 3, and the terminal device 6.
[0028] The processor 41 operates according to a predetermined program to thereby fulfill the functions of a status updater 411, a priority calculator 412, a record processor 413, and a deletion processor 414.
[0029] The status update unit 411 updates the cache status of the processing result D1 recorded in the processing result accumulation DB 2. The cache status is information indicating whether the processing result D1 has been saved in the cache DB 3 or not.
[0030] The priority calculation unit 412 calculates the cache priority of the processing result D1. The higher the cache priority of the processing result D1, the more likely it is to be stored in the cache DB3. For example, the priority calculation unit 412 calculates the cache priority by weighting so that the priority changes according to the time elapsed since the image included in the processing result D1 was captured (for example, the capture date and time). Note that, in this embodiment, an example will be described in which "when the image was captured" is "the capture date and time (the capture date and the capture time)", but this is not limiting. In other embodiments, "when the image was captured" may represent a time period, such as the capture date, the capture time, or the capture month.
[0031] The record processing unit 413 stores in the cache DB3 the processing results D1 whose cache priority is equal to or higher than a predetermined threshold out of the processing results D1 not yet stored in the cache DB3.
[0032] The deletion processing unit 414 deletes from the cache DB3 the processing results D1 whose cache priority is less than the threshold value among the processing results D1 already stored in the cache DB3.
[0033] The predetermined program executed by the processor 41 is stored in a computer-readable recording medium. The computer-readable recording medium refers to a magnetic disk, a magneto-optical disk, a CD-ROM, a DVD-ROM, a semiconductor memory, etc. The computer program may be distributed to a computer via a communication line, and the computer that receives the program may execute the program. The program may be for realizing part of the above-mentioned functions. The program may be a so-called difference file (difference program) that can realize the above-mentioned functions in combination with a program already recorded in the computer system.
[0034] (Functional configuration of terminal device) FIG. 3 is a block diagram illustrating a functional configuration of a terminal device according to an embodiment. As shown in FIG. 3, the terminal device 6 includes a processor 61, a memory 62, a storage 63, an input / output interface 64, and a communication interface 65.
[0035] The memory 62 has a memory area necessary for the operation of the processor 61 .
[0036] The storage 63 is a so-called auxiliary storage device, such as a hard disk drive (HDD), a solid state drive (SSD), etc. The storage 63 stores data that each part of the processor 61 acquires, generates, and refers to during processing.
[0037] The input / output interface 64 is a connection interface for connecting to devices such as a display device 66 and an input device 67. The display device 66 is a monitor such as a liquid crystal display. The input device 67 is an input device such as a keyboard or a mouse. The display device 66 and the input device 67 may be integrated devices such as a touch panel.
[0038] The communication interface 65 is an interface for transmitting and receiving various data and control signals to and from the cache DB 3 .
[0039] The processor 61 operates according to a predetermined program to thereby fulfill the functions of a search request unit 611 and a processing result acquisition unit 612 .
[0040] The search request unit 611 requests the cache DB 3 to search for processing results D1 that match the search conditions. The search conditions are input and specified by the user via the input device 67.
[0041] The processing result acquisition unit 612 acquires the processing result D1 that matches the search conditions from the cache DB 3. The acquired processing result D1 is displayed on the display device 66 so that the user can confirm the contents.
[0042] The predetermined program executed by the processor 61 is stored in a computer-readable recording medium. The computer-readable recording medium refers to a magnetic disk, a magneto-optical disk, a CD-ROM, a DVD-ROM, a semiconductor memory, etc. The computer program may be distributed to a computer via a communication line, and the computer that receives the program may execute the program. The program may be for implementing part of the above-mentioned functions. The program may be a so-called difference file (difference program) that can realize the above-mentioned functions in combination with a program already recorded in the computer system.
[0043] (Regarding processing result accumulation processing) FIG. 4 is a sequence diagram illustrating an example of a cache management process according to an embodiment. As shown in FIG. 4, the cache system 1 performs a processing result accumulation process P1 and a cache update process P2.
[0044] The process result accumulation process P1 will be described. First, when a vehicle arrives at a toll gate, the license plate reader 51 of the roadside device 5 photographs the vehicle and reads and acquires license plate information from the photographed image (step S01). The process by which the license plate reader 51 reads license plate information is well known, so a detailed description will be omitted.
[0045] Furthermore, the roadside device 5 transmits the processing result D1 of the license plate reading device 51 to the processing result accumulation DB2 (step S02). The processing result D1 includes the image captured by the license plate reading device 51, the read license plate information, the image capture date and time, and the image capture location, etc. Furthermore, the processing result D1 may further include sensor information acquired by the sensor 52.
[0046] The processing result storage DB2 records the processing result D1 acquired from the roadside device 5 (the license plate reader 51) (step S03). In addition, the processing result storage DB2 notifies the processing device 4 that a new processing result D1 has been added (data update) (step S04).
[0047] For example, the processing device 4 has a status table T1 (FIG. 5) that records the statuses of all processing results D1 stored in the processing result storage DB 2. When the status update unit 411 of the processing device 4 receives a data update notification from the processing result storage DB 2, it adds the status of the newly added processing result D1 to the status table T1.
[0048] FIG. 5 is a diagram illustrating an example of a status table according to an embodiment. As shown in FIG. 5, the status table T1 records information such as the index of each processing result D1, the shooting date and time, the cache status, the number of searches, the number of downloads, error occurrence information, route information, and priority.
[0049] The index is a unique number that the processing result storage DB2 assigns to each processing result D1.
[0050] The shooting date and time is the shooting date and time of the image included in the processing result D1.
[0051] The cache status is information indicating whether the processing result D1 has not been saved or has already been saved in the cache DB 3. The cache status (initial value) of the processing result D1 added to the status table T1 in step S05 is "not saved."
[0052] The number of searches and the number of downloads indicate the number of times the processing result D1 was searched for by a user and the number of times the processing result D1 was actually downloaded from among the search results.
[0053] The abnormality occurrence information is information indicating whether or not there is an abnormality in reading the license plate information. For example, There are cases where some or all of the license plate information cannot be read (there is missing information) due to reasons such as a malfunction of the license plate reading device 51 or dirt on the license plate. In this case, the processing result accumulation DB2 notifies the processing device 4 of information indicating that an abnormality occurred during the reading process together with a data update notification. In response, the status update unit 411 of the processing device 4 also records "abnormality present" in the abnormality occurrence information column when adding this processing result D1 to the status table T1. If there is no notification of an abnormality, the status update unit 411 leaves the abnormality occurrence information column blank (or may record "no abnormality").
[0054] The route information is information indicating whether or not the vehicle has traveled a specific route. The specific route is, for example, a detour among multiple routes connecting point A and point B. The specific route is set in advance by the user and recorded in the processing result accumulation DB2. For example, the processing result accumulation DB2 extracts a processing result D1 of a certain vehicle (a processing result D1 having the same license plate information) from multiple processing results D1, and estimates the traveling route of this vehicle. In addition, when the estimated traveling route of the vehicle includes a specific route, the processing result accumulation DB2 notifies the processing device 4 of information indicating "traveled on a specific route" together with the indexes of these processing results D1. Since the traveling route of the vehicle is known after multiple processing results D1 related to this vehicle are accumulated, the processing result accumulation DB2 may separately notify the specific route after the data update notification (step S04 in FIG. 4). When the status update unit 411 of the processing device 4 receives this notification from the processing result accumulation DB2, it adds information of "traveled on a specific route" to the route information column of the status table T1.
[0055] The cache system 1 executes a processing result accumulation process P1 shown in FIG. 4 every time the license plate reader 51 performs a license plate reading process.
[0056] (About cache update processing) 4. The cache system 1 may also execute the cache update process P2 shown in Fig. 4 at a frequency of, for example, several times a day. The cache system 1 may also execute the cache update process P2 when instructed by a user via the terminal device 6.
[0057] In the cache update process P2, the processor 4 performs two processes: a record process S11 for saving a copy of the processing result D1 in the cache DB3, and a delete process S12 for deleting the processing result D1 already saved in the cache DB3.
[0058] (Recording Processing) FIG. 6 is a flowchart showing an example of a recording process according to an embodiment. First, the flow of the recording process S11 in which the processor 4 records a copy of the processing result D1 in the cache DB3 will be described in detail with reference to FIG.
[0059] The priority calculation unit 412 of the processing device 4 refers to the cache status in the status table T1 (FIG. 5) and determines whether the processing result D1 has not been saved in the cache DB3 (step S111). If the cache status is not "not saved" (step S111; NO), the priority calculation unit 412 ends the recording process for this processing result D1. On the other hand, if the cache status is "not saved" (step S111; YES), the priority calculation unit 412 calculates the cache priority of this processing result D1 (step S112).
[0060] For example, the user uses the processing result D1 for subsequent processing (such as billing for a toll at a later date). For this reason, the user's access tendency is as follows:
[0061] (1) A user cannot determine whether or not post-processing is necessary immediately after shooting. Therefore, it is highly likely that the user will not access the processing result D1 immediately after shooting, but will access the processing result D1 some time after shooting (half a day to a day or more). Furthermore, if the user does not access the processing result D1 for a certain period of time (for example, 20 days) or more, it is highly likely that the processing result D1 will not be used because it has been determined that post-processing is unnecessary. In other words, it is highly likely that the user will not access the processing result D1.
[0062] (2) When a user searches for or downloads a certain processing result D1, the user is likely to perform subsequent processing based on the processing result D1. In this case, the user is unlikely to search for or download the processing result D1 again after the search.
[0063] (3) When an abnormal process (e.g., a license plate reading failure) occurs, the user needs to check the process result D1 for confirmation and perform subsequent processing. Therefore, the user is likely to access the process result D1 in which an abnormal process has occurred.
[0064] (4) When a vehicle travels a specific route (for example, a roundabout route), the user may check whether the vehicle is behaving suspiciously. Therefore, the user is likely to access the processing result D1 to which information indicating that the vehicle traveled a specific route is attached.
[0065] Taking into account the user's access trends as described above, the priority calculation unit 412 calculates the cache priority of each processing result D1 by weighting according to the number of searches and downloads, the time elapsed since the shooting date and time, the presence or absence of abnormality information, and whether or not a specific route was driven.
[0066] FIG. 7 is a first diagram for explaining the priority according to an embodiment. FIG. 7 illustrates a transition F1 of the cache priority according to the elapsed time from the photographing date and time of the processing result D1. As shown in FIG. 7, the priority calculation unit 412 calculates the cache priority by weighting according to the elapsed time from the photographing date and time, taking into account the above-mentioned access tendency (1). Specifically, the priority calculation unit 412 predetermines a priority function (or a weight table) in which the cache priority is weighted so that the cache priority increases according to the elapsed time during a certain period (for example, 10 days) from the photographing date and time to time t1, and decreases according to the elapsed time after the certain period has passed. The priority calculation unit 412 calculates the cache priority of the processing result D1 based on the elapsed time from the photographing date and time of the processing result D1 and the priority function. In addition, at this time, the priority calculation unit 412 may adjust the priority function so that the cache priority exceeds a threshold value after a certain amount of time (for example, about half a day to a day) has elapsed from the photographing date and time.
[0067] FIG. 8 is a second diagram for explaining the priority according to an embodiment. FIG. 8 illustrates transitions F2 and F3 of cache priority according to the number of downloads of the processing result D1. As shown in FIG. 8, the priority calculation unit 412 calculates the cache priority by adding a weight according to the number of downloads in addition to the elapsed time from the shooting date and time, taking into account the above-mentioned access tendency (2). Specifically, the priority calculation unit 412 calculates the cache priority by adding a larger weight as the number of downloads decreases. For example, F2 illustrates the transition of the cache priority of the processing result D1a whose number of downloads is 0, and F3 illustrates the transition of the cache priority of the processing result D1b downloaded once immediately after shooting. It is considered that the user is unlikely to immediately re-access the processing result D1b downloaded once immediately after shooting. For this reason, the cache priority of this processing result D1b is adjusted by the weight so that it is lower than the cache priority of the processing result D1a, and the timing at which it exceeds the threshold value is also delayed.
[0068] FIG. 9 is a third diagram for explaining the priority according to an embodiment. Furthermore, the priority calculation unit 412 may further add a weighting according to the abnormality occurrence information or route information of the processing result D1 in addition to the time elapsed since the shooting date and time, taking into consideration the above-mentioned access tendency (3) or (4). Specifically, the priority calculation unit 412 calculates the cache priority by weighting the processing result D1 with "abnormality" more heavily than the processing result D1 with abnormality occurrence information with "no abnormality (blank)". Furthermore, the priority calculation unit 412 calculates the cache priority by weighting the processing result D1 with "traveling a specific route" more heavily than the processing result D1 with route information with "no traveling a specific route (blank)".
[0069] FIG. 9 illustrates transitions of cache priority F4 and F5 when weighting is performed according to route information. F4 illustrates transitions of cache priority of the processing result D1c in which the travel route is “no specific route travel”, and F5 illustrates transitions of cache priority of the processing result D1d in which the travel route is “specific route travel”. The processing result D1d in which “specific route travel” is performed is highly likely to be a target for confirmation by the user. Therefore, the weight is adjusted so that the processing result D1d in which “specific route travel” is performed has a higher cache priority than the processing result D1c in which “specific route travel is not performed” for the entire period. In addition, at this time, the priority calculation unit 412 may adjust the weight so that the cache priority exceeds the threshold value immediately after shooting in order to enable the user to immediately confirm the processing result D1d when “specific route travel” is detected. The priority calculation unit 412 also adjusts the weight in the same manner for the abnormality occurrence information.
[0070] FIG. 10 is a fourth diagram for explaining the priority according to an embodiment. In addition, the priority calculation unit 412 may calculate the cache priority by weighting the smaller the search count in addition to the number of downloads. FIG. 10 illustrates a transition F6 of the cache priority of the processing result D1e that has not been searched and downloaded, and a transition F7 of the cache priority of the processing result D1f that has been searched and downloaded. In the example of FIG. 10, the processing result D1f is searched once at elapsed time t11, and downloaded once at elapsed time t12. Therefore, the cache priority of the processing result D1f decreases at elapsed time t11, and then increases due to the weighting for the elapsed time, but decreases again at elapsed time t12. Also, the cache priority of the processing result D1f decreases to below the threshold earlier than the cache priority of the processing result D1e. That is, the timing of deleting the processing result D1f from the cache DB3 is earlier than that of the processing result D1e.
[0071] In this way, the priority calculation unit 412 varies the cache priority depending on the time elapsed since the capture time of the processing result D1 and the status.
[0072] Next, as shown in FIG. 6, the record processing unit 413 of the processing device 4 determines whether the cache priority of the processing result D1 is equal to or higher than a threshold (step S113).
[0073] If the cache priority is less than the threshold (step S113; NO), the recording processing unit 413 ends the recording process for this processing result D1. If the cache priority is equal to or greater than the threshold (step S113; YES), the recording processing unit 413 obtains a copy of this processing result D1 from the processing result accumulation DB2 and stores it in the cache DB3 (step S114). The recording processing unit 413 also updates the cache status of this processing result D1 in the status table T1 to "Saved" (step S115).
[0074] The processor 4 performs a series of recording processes S11 shown in Fig. 6 for all processing results D1 recorded in the status table T1. By performing the recording processes S11 at a certain frequency, the processor 4 adds processing results D1 with a high cache priority (i.e., processing results D1 that are likely to be accessed by a user) to the cache DB3.
[0075] (Deletion process) FIG. 11 is a flowchart illustrating an example of a deletion process according to an embodiment. Next, the flow of the deletion process S12 in which the processor 4 deletes the processing result D1 stored in the cache DB3 will be described in detail with reference to FIG.
[0076] The priority calculation unit 412 of the processing device 4 refers to the cache status in the status table T1 (FIG. 5) and determines whether the processing result D1 has been saved in the cache DB3 (step S121). If the cache status is not "saved" (step S121; NO), the priority calculation unit 412 ends the deletion process for this processing result D1. On the other hand, if the cache status is "saved" (step S121; YES), the priority calculation unit 412 calculates the cache priority of this processing result D1 (step S122). This process is the same as step S112 in FIG. 6.
[0077] Next, the deletion processor 414 of the processor 4 determines whether the cache priority of the processing result D1 is less than a threshold value (step S123).
[0078] If the cache priority is equal to or higher than the threshold (step S123; NO), the deletion processor 414 ends the deletion process for this processing result D1. If the cache priority is lower than the threshold (step S123; YES), the deletion processor 414 deletes this processing result D1 from the cache DB3 (step S124). The deletion processor 414 also updates the cache status of this processing result D1 in the status table T1 to "not saved (deleted)" (step S125).
[0079] The processor 4 performs a series of deletion processes S12 shown in Fig. 11 for all processing results D1 recorded in the status table T1. The processor 4 performs the deletion process S12 at a certain frequency to remove processing results D1 with low cache priority (i.e., processing results D1 that are unlikely to be accessed by the user) from the cache DB3.
[0080] (Cache area allocation process) FIG. 12 is a flowchart showing an example of a cache area allocation process according to an embodiment. When there are many processing results D1 with high cache priority, there is a possibility that the free space of the cache DB 3 will be insufficient. For this reason, the processor 4 periodically monitors the usage rate of the cache DB 3, and when the free space is insufficient, executes the cache area reservation process shown in FIG.
[0081] The record processing unit 413 of the processing device 4 judges whether the usage rate (%) of the cache DB3 is equal to or greater than a predetermined upper limit (step S201). The upper limit can be arbitrarily set by the user depending on the capacity of the cache DB3, the average data size of the processing result D1, etc.
[0082] If the usage rate is less than the upper limit (step S201; NO), the recording processing unit 413 ends the cache area allocation process. On the other hand, if the usage rate is equal to or greater than the upper limit (step S201; YES), the recording processing unit 413 stops the recording process S11 of the processing result D1 (step S202).
[0083] Furthermore, the deletion processor 414 of the processing device 4 deletes one of the processing results D1 stored in the cache DB3 that has the lowest cache priority (step S203). At this time, the deletion processor 414 deletes the one with the lowest cache priority, regardless of whether the cache priority is less than the threshold value.
[0084] Furthermore, the processor 4 determines whether the usage rate of the cache DB3 has fallen below the upper limit value due to the deletion of the processing result D1 (step S204). If the usage rate remains equal to or higher than the upper limit value (step S204; NO), the deletion processing unit 414 of the processor 4 executes step S203 again. On the other hand, if the usage rate falls below the upper limit value (step S204; YES), the recording processing unit 413 of the processor 4 resumes the recording process S11 (step S205) and ends the cache area allocation process.
[0085] In this way, the processor 4 quickly resolves the shortage of free space in the cache DB 3, and prevents the processing result D1 with high cache priority from becoming unable to be stored in the cache DB.
[0086] (Search processing) FIG. 13 is a sequence diagram illustrating an example of a search process according to an embodiment. Hereinafter, the flow of search processing in the cache system 1 according to this embodiment will be described with reference to FIG.
[0087] For example, an example of searching for a certain processing result D1 will be described. The user inputs search conditions for the processing result D1 through the input device 67 of the terminal device 6 and presses the "Search" button. Then, the search request unit 611 of the terminal device 6 acquires the search conditions input by the user (step S301) and transmits a search request to the cache DB 3 (step S302).
[0088] When the cache DB 3 receives a search request together with the search conditions from the terminal device 6, it searches the processing results D1 stored therein for processing results D1 that match the search conditions (step S303).The cache DB 3 also transmits the searched processing results D1 to the terminal device 6 as the cache search results (step S304).
[0089] The processing result acquisition unit 612 of the terminal device 6 displays the in-cache search results received from the cache DB 3 on the display device 66 (step S305). The user checks whether the in-cache search results include the desired processing result D1.
[0090] In parallel with searching for the processing results (step S303), the cache DB 3 transmits a search request together with the search conditions to the processing result storage DB 2 (step S306).
[0091] When the processing result accumulation DB2 receives a search request together with the search conditions from the cache DB3, it searches for processing results D1 that match the search conditions among the processing results D1 stored in itself (step S307). It also transmits the searched processing results D1 to the cache DB3 as the DB search results (step S308). At this time, the processing result accumulation DB2 may search only for processing results D1 whose cache status is "not saved."
[0092] The cache DB 3 temporarily stores the search results received from the processing result storage DB 2 (step S309).
[0093] If the user does not find the desired processing result D1 in the cache search results, the user presses the "Search Further" button, which causes the search request unit 611 of the terminal device 6 to send a search request to the cache DB 3 again (step S310).
[0094] When the cache DB 3 receives a re-search request from the terminal device 6, it transmits the in-DB search result received from the processing result storage DB 2 to the terminal device 6 (step S311).
[0095] The processing result acquisition unit 612 of the terminal device 6 displays the DB search results received from the cache DB 3 on the display device 66 (step S312). The user checks whether the DB search results include the desired processing result D1.
[0096] If the cache search result or DB search result contains the desired processing result D1, the user selects the processing result D1 and presses the "download" button. Then, the processing result acquisition unit 612 of the terminal device 6 stores the selected processing result D1 in the storage 63 of the terminal device 6 (step S313). In addition, information on the processing result D1 downloaded by the terminal device 6 is notified to the cache DB3 (processing device 4).
[0097] The status update unit 411 of the processing device 4 also increments the number of searches for the processing result D1 included in the cache search results and the DB search results by +1, and updates the status table T1. Furthermore, the status update unit 411 increments the number of downloads for the processing result D1 downloaded by the terminal device 6 by +1, and updates the status table T1.
[0098] If the cache search result or the DB search result does not include the desired processing result D1, the user changes the search conditions and presses the "Search" button again. Then, the cache system 1 re-executes the processes of steps S301 to S312.
[0099] In this way, the cache DB3 first searches for the processing results D1 stored therein and provides them to the user, thereby enabling the user to quickly be provided with the in-cache search results. In addition, since the cache DB3 stores the processing results D1 that are likely to be accessed by the user (high cache priority), it is possible to increase the likelihood that the in-cache search results contain the processing result D1 desired by the user. When the in-cache search results contain the desired processing result D1, the user can end the search process and quickly download this processing result D1.
[0100] Furthermore, the cache DB3 automatically requests the processing result storage DB2 to search for the processing result D1 in parallel with the process of searching for the processing result D1 stored in the cache DB3. The search process of the processing result storage DB2 takes longer than that of the cache DB3. However, since the search process in the processing result storage DB2 can be advanced while the user is checking the search results in the cache in this way, the time from when the user presses the "Search more" button until the search results in the DB are provided to the user can be shortened. In other words, the cache system 1 can provide the user with the desired processing result D1 at high speed.
[0101] (Action, effect) As described above, the cache system 1 of this embodiment comprises a processing result storage DB2 that collects and stores processing results D1 from the license plate reading device 51, a cache DB3 that temporarily stores some of the multiple processing results D1, a priority calculation unit 412 that calculates a cache priority by weighting so that the priority is higher according to the elapsed time for a certain period after the image included in the processing result D1 is captured and then lowered according to the elapsed time after the certain period has passed, a recording processing unit 413 that stores in the cache DB3, among the processing results D1 that have not been stored in the cache DB3, those processing results D1 whose cache priority is equal to or higher than a threshold, and a deletion processing unit 414 that deletes from the cache DB3, among the processing results D1 that have been stored in the cache DB3, those processing results D1 whose cache priority is less than the threshold.
[0102] As described above, the user uses the processing result D1 of the license plate reader 51 in the rear processing. At this time, it is often unclear whether the rear processing is necessary immediately after the image included in the processing result D1 is captured. Therefore, the processing result D1 has a characteristic that it is not accessed immediately after the image is captured, but may be accessed some time after the image is captured, and an image that has been captured for a long time is unlikely to be accessed. In consideration of such a characteristic of the processing result D1, the cache system 1 adjusts the cache priority so that the cache priority gradually becomes higher for a certain period after the image is captured, and gradually becomes lower after the certain period. This allows the cache system 1 to preferentially store the processing result D1 that is likely to be accessed by the user in the cache DB3.
[0103] The cache system 1 further includes a status update unit 411 that records the number of downloads of each of the processing results D1 in the status table T1. The priority calculation unit 412 further assigns a weight according to the number of downloads to calculate the cache priority.
[0104] When a user downloads the processing result D1, there is a high possibility that the user will use it in later processing. In other words, the processing result D1 has a characteristic that, after being downloaded once, it is unlikely to be accessed (used in later processing) again. In consideration of such a characteristic of the processing result D1, the cache system 1 adjusts the cache priority by weighting it according to the number of times it has been downloaded. This makes it easier for the cache system 1 to store in the cache DB3 only the processing results D1 that are likely to be used by the user.
[0105] Moreover, the status table T1 further includes abnormality occurrence information indicating the presence or absence of an abnormality in the processing result D1. The priority calculation unit 412 calculates the cache priority based on the abnormality occurrence information in the status table T1 by further weighting the processing result D1 with an abnormality so that the processing result D1 with an abnormality has a larger value than the processing result D1 without an abnormality.
[0106] When an abnormality occurs in the reading process, the user is likely to use the processing result D1 in subsequent processing. In other words, the processing result D1 in which a reading abnormality occurs has a characteristic that it is likely to be accessed by the user. In consideration of such a characteristic of the processing result D1, the cache system 1 adjusts the cache priority by weighting it according to the abnormality occurrence information. This makes it easier for the cache system 1 to store in the cache DB3 only the processing result D1 that is likely to be used by the user.
[0107] The status table T1 further includes route information indicating whether the vehicle's travel route estimated from the multiple processing results D1 includes a predetermined specific route. The priority calculation unit 412 calculates the cache priority based on the route information in the status table T1 by further adding a weighting adjusted so that the vehicle that has traveled the specific route has a larger value than the processing result D1 of the vehicle that has not traveled the specific route.
[0108] When the vehicle travels a specific route (for example, a roundabout route), the user is likely to use the processing result D1 in subsequent processing. In other words, the processing result D1 indicating that the travel route is special has the characteristic that it is likely to be accessed by the user. In consideration of such characteristics of the processing result D1, the cache system 1 adjusts the cache priority by weighting it according to the travel route. This makes it easier for the cache system 1 to store in the cache DB3 only the processing result D1 that is likely to be used by the user.
[0109] Furthermore, the recording processing unit 413 stops saving the processing result D1 (recording process S11) when the usage rate of the cache DB3 is equal to or greater than a preset upper limit value.
[0110] In this way, the cache system 1 can prevent problems such as a process result D1 with a high cache priority in the cache DB3 being overwritten by a process result D1 with a low cache priority when the free space in the cache DB3 is low.
[0111] Furthermore, when the usage rate of the cache DB3 is equal to or greater than a preset upper limit, the deletion processor 414 deletes the processing result D1 that has the lowest cache priority from among the processing results D1 that have been saved in the cache DB3.
[0112] By doing this, the cache system 1 can prevent a problem in which a processing result D1 having a higher cache priority than a processing result D1 already stored in the cache DB3 cannot be stored in the cache DB3 when there is little free space in the cache DB3.
[0113] As described above, the embodiments according to the present disclosure have been described, but the above-mentioned embodiments are presented as examples and are not intended to limit the scope of the invention. These embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the gist of the invention. These embodiments and their modifications are included in the scope of the invention and its equivalents described in the claims, as well as in the scope and gist of the invention.
[0114] For example, in the above embodiment, the processing device 4 is built into the cache DB 3, but the present invention is not limited to this. In other embodiments, the processing device 4 may be built into the processing result storage DB 2, or may be configured as hardware separate from the processing result storage DB 2 and the cache DB 3.
[0115] <Additional Notes> The cache system and the cache method described in the above-described embodiment can be understood, for example, as follows.
[0116] (1) According to the first aspect, the cache system 1 includes a license plate reading device 51 that photographs a traveling vehicle, reads license plate information, and stores a processing result D1 including the photographed image and the read license plate information in a processing result accumulation database 2; a cache database 3 that temporarily stores a portion of the multiple processing results D1; a priority calculation unit 412 that calculates a cache priority by weighting the priority so that the priority is higher according to the elapsed time for a certain period from when the image included in the processing result D1 was photographed, and so that the priority is lower according to the elapsed time after the certain period has passed; a recording processing unit 413 that stores in the cache database 3, among the processing results D1 that have not been stored in the cache database 3, processing results D1 having a cache priority equal to or higher than a predetermined threshold; and a deletion processing unit 414 that deletes from the cache database 3, processing results D1 having a cache priority lower than the threshold, among the processing results D1 that have been stored in the cache database 3.
[0117] As described above, the user uses the processing result D1 of the license plate reader 51 in the rear processing. At this time, it is often unclear whether the rear processing is necessary immediately after the image included in the processing result D1 is captured. Therefore, the processing result D1 has a characteristic that it is not accessed immediately after the image is captured, but may be accessed some time after the image is captured, and an image that has been captured for a long time is unlikely to be accessed. In consideration of such a characteristic of the processing result D1, the cache system 1 adjusts the cache priority so that the cache priority gradually becomes higher for a certain period after the image is captured, and gradually becomes lower after the certain period. This allows the cache system 1 to preferentially store the processing result D1 that is likely to be accessed by the user in the cache DB3.
[0118] (2) According to the second aspect, in the cache system 1 related to the first aspect, the priority calculation unit 412 refers to the number of downloads of each of the multiple processing results D1, and calculates the cache priority by further assigning a weight according to the number of downloads.
[0119] When a user downloads the processing result D1, there is a high possibility that the user will use it in later processing. In other words, the processing result D1 has a characteristic that, after being downloaded once, it is unlikely to be accessed (used in later processing) again. In consideration of such a characteristic of the processing result D1, the cache system 1 adjusts the cache priority by weighting it according to the number of times it has been downloaded. This makes it easier for the cache system 1 to store in the cache DB3 only the processing results D1 that are likely to be used by the user.
[0120] (3) According to the third aspect, in the cache system 1 relating to the first or second aspect, the priority calculation unit 412 refers to abnormality occurrence information indicating the presence or absence of an abnormality in the processing result D1, and calculates the cache priority by further assigning a weighting adjusted so that the processing result D1 with an abnormality has a larger value than the processing result D1 without an abnormality.
[0121] When an abnormality occurs in the reading process, the user is likely to use the processing result D1 in subsequent processing. In other words, the processing result D1 in which a reading abnormality occurs has a characteristic that it is likely to be accessed by the user. In consideration of such a characteristic of the processing result D1, the cache system 1 adjusts the cache priority by weighting it according to the abnormality occurrence information. This makes it easier for the cache system 1 to store in the cache DB3 only the processing result D1 that is likely to be used by the user.
[0122] (4) According to the fourth aspect, in the cache system 1 relating to any one of the first to third aspects, the priority calculation unit 412 refers to route information indicating whether or not the vehicle's driving route estimated from the multiple processing results D1 includes a predetermined specific route, and calculates the cache priority by further assigning a weighting adjusted so that the processing result D1 of a vehicle that has traveled the specific route has a larger value than the processing result D1 of a vehicle that has not traveled the specific route.
[0123] When the vehicle travels a specific route (for example, a roundabout route), the user is likely to use the processing result D1 in subsequent processing. In other words, the processing result D1 indicating that the travel route is special has the characteristic that it is likely to be accessed by the user. In consideration of such characteristics of the processing result D1, the cache system 1 adjusts the cache priority by weighting it according to the travel route. This makes it easier for the cache system 1 to store in the cache DB3 only the processing result D1 that is likely to be used by the user.
[0124] (5) According to the fifth aspect, in the cache system 1 relating to any one of the first to fourth aspects, the recording processing unit 413 stops storing the processing result D1 when the usage rate of the cache database 3 is equal to or greater than a preset upper limit value.
[0125] In this way, the cache system 1 can prevent problems such as a process result D1 with a high cache priority in the cache DB3 being overwritten by a process result D1 with a low cache priority when the free space in the cache DB3 is low.
[0126] (6) According to the sixth aspect, in the cache system 1 relating to any one of the first to seventh aspects, when the usage rate of the cache database 3 is equal to or greater than a preset upper limit value, the deletion processing unit 414 deletes the processing result D1 stored in the cache database 3 that has the lowest cache priority.
[0127] By doing this, the cache system 1 can prevent a problem in which a processing result D1 having a higher cache priority than a processing result D1 already stored in the cache DB3 cannot be stored in the cache DB3 when there is little free space in the cache DB3.
[0128] (7) According to a seventh aspect, a caching method is a caching method using a cache system 1 including a license plate reading device 51 that photographs a traveling vehicle, reads license plate information, and stores a processing result D1 including the photographed image and the read license plate information in a processing result accumulation database 2, and a cache database 3 that temporarily stores a portion of the multiple processing results D1, the caching method including the steps of: calculating a cache priority by weighting so that the priority is higher according to the elapsed time for a certain period from when the image included in the processing result D1 was photographed, and so that the priority is lower according to the elapsed time after the certain period has passed; storing in the cache database 3, among the processing results D1 not yet stored in the cache database 3, those having a cache priority equal to or higher than a predetermined threshold; and deleting from the cache database 3, among the processing results D1 stored in the cache database 3, those having a cache priority lower than the threshold. [Explanation of symbols]
[0129] 1. Cache System 2 Processing result storage database (DB) 3 Cache Database (DB) 4 Processing Equipment 41 Processors 411 Status Update Section 412 Priority calculation unit 413 Recording Processing Unit 414 Deletion processing unit 42 Memory 43 Storage 44 Communication Interface 5 Roadside equipment 51 License plate reader 52 Sensors 6 Terminal Equipment 61 processors 611 Search request section 612 Processing result acquisition unit 62 Memory 63 Storage 64 Input / Output Interface 65 Communication Interface 66 Display device 67 Input Devices T1 Status Table
Claims
1. a license plate reader that photographs a traveling vehicle, reads the license plate information, and stores the photographed image and the read license plate information in a processing result database; a cache database for temporarily storing a part of the processing results; a priority calculation unit that calculates a cache priority of the processing result by weighting the priority according to the elapsed time from when the image included in the processing result was captured so that the priority is high for a certain period of time and is low after the certain period of time has elapsed; a record processing unit that stores in the cache database, among the processing results that have not been stored in the cache database, a processing result whose cache priority is equal to or higher than a predetermined threshold; a deletion processing unit that deletes, from the cache database, a processing result whose cache priority is less than the threshold value among the processing results stored in the cache database; A cache system comprising:
2. the priority calculation unit refers to the number of downloads of each of the plurality of processing results, and further assigns a weight according to the number of downloads to calculate the cache priority.
2. The cache system of claim 1.
3. the priority calculation unit refers to abnormality occurrence information indicating the presence or absence of an abnormality in the processing result, and further assigns a weighting adjusted so that a processing result having an abnormality has a larger value than a processing result having no abnormality, thereby calculating the cache priority.
2. The cache system of claim 1.
4. the priority calculation unit refers to route information indicating whether or not a vehicle travel route estimated from the plurality of processing results includes a predetermined specific route, and further assigns a weighting adjusted so that a processing result of a vehicle that has traveled the specific route has a larger value than a processing result of a vehicle that has not traveled the specific route, thereby calculating the cache priority; 2. The cache system of claim 1.
5. the recording processing unit stops storing the processing results when the usage rate of the cache database is equal to or greater than a preset upper limit value; 2. The cache system of claim 1.
6. the deletion processing unit deletes the processing result having the lowest cache priority from among the processing results stored in the cache database when a usage rate of the cache database is equal to or greater than a preset upper limit value.
6. A cache system according to claim 1.
7. a license plate reader that photographs a traveling vehicle, reads the license plate information, and stores the photographed image and the read license plate information in a processing result database; a cache database for temporarily storing a part of the processing results; A cache method using a cache system comprising: calculating a cache priority of the processing result by weighting the priority according to the elapsed time from when the image included in the processing result was captured so that the priority is higher for a certain period of time, and is lower according to the elapsed time after the certain period of time has elapsed; storing in the cache database, among the processing results not yet stored in the cache database, a processing result having a cache priority equal to or higher than a predetermined threshold; deleting, from the cache database, a processing result whose cache priority is less than the threshold value among the processing results stored in the cache database; A cache method comprising:
Citation Information
Patent Citations
Information processing device, information processing system, information processing method, and program
JP2015228140A
Search support device, search support method and search support system
JP2019036872A
Systems and Methods for Surveillance and Traffic Monitoring (Claim Set II)
US20100245568A1
