Information processing system and program
By dividing processing into smaller units and using lightweight models, the method addresses memory constraints in IoT devices, allowing efficient execution of multiple tasks despite limited memory capacity.
Patent Information
- Application Number
- JP2024085677
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-05-27
AI Technical Summary
Existing methods fail to execute various tasks efficiently when memory capacity is limited, particularly in general-purpose IoT devices with small nonvolatile memory.
Implementing a method that divides processing into smaller units and executes them sequentially, using lightweight object detection models and repeatedly releasing memory after each process to manage memory efficiently.
Enables execution of diverse tasks even with limited memory by reducing memory usage through sequential and divided processing, ensuring continuous operation of IoT devices.
Smart Images

Figure 0007569957000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing system and a program. [Background technology]
[0002] Techniques have been proposed to reduce memory consumption when executing tasks. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2023-123074 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, the above-mentioned conventional techniques do not necessarily realize a highly versatile method capable of executing various tasks even when memory capacity is small.
[0005] An object of the present invention is to provide an information processing system and a program that can realize a highly versatile method for executing various tasks even when memory capacity is small. [Means for solving the problem]
[0006] An information processing system of one embodiment of the present invention includes a processor that executes a specific process for estimating a state of a monitored object based on an image captured of the monitored object, and a memory in which instructions and data used in executing the specific process are stored, and the processor performs sequential processing in which the specific process is divided into a plurality of processing units and each divided process is individually executed, by freeing up the used area of the memory used in the previous divided process, and then executing the current divided process using the free area of the memory after freeing.
[0007] Furthermore, one form of information processing system according to the present invention includes a processor that executes a specific process for estimating a state of a monitored object based on an image of the monitored object, and a memory in which instructions and data used in executing the specific process are stored, and the processor performs sequential processing in which the specific process is executed individually for each divided image obtained by dividing the captured image into a plurality of images, by freeing up the used area of the memory that was used in the previous specific process, and then executing the current specific process using the free area of the memory after freeing up. Effect of the Invention
[0008] According to the present invention, a highly versatile method capable of executing various tasks even when memory capacity is small can be realized. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a diagram showing an example of the configuration of an information processing system according to an embodiment. [Diagram 2] FIG. 2 is a diagram showing an overview of information processing according to the present invention. [Diagram 3] FIG. 3 is a diagram illustrating an overall image of the first embodiment. [Figure 4] FIG. 4 is a diagram illustrating a procedure of information processing according to the first embodiment. [Diagram 5] FIG. 5 is a diagram illustrating an overall image of the second embodiment. [Figure 6] FIG. 6 is a diagram illustrating a procedure of information processing according to the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. In this specification and the drawings, components having substantially the same functional configurations are denoted by the same reference numerals, and redundant description will be omitted.
[0011] One or more embodiments (including examples, modifications, and application examples) described below can be implemented independently. Meanwhile, at least a part of the embodiments described below may be implemented in appropriate combination with at least a part of another embodiment. These embodiments may include novel features different from each other. Thus, these embodiments may contribute to solving different purposes or problems and may provide different effects.
[0012] (Embodiment) 1. Introduction Power for base stations is provided by generators. While the generators are running, it is impossible to know when the fuel for the generators will run out, and there is no choice but to go and refuel using manual calculations based on experience. As a result, when actually going to the site and checking the remaining fuel meter, there were cases where there was enough fuel remaining and no need to refuel, or conversely, the amount of fuel prepared was not enough.
[0013] Therefore, in order to remotely check the remaining fuel in a generator without purchasing expensive equipment, the inventors of the present invention installed a general-purpose IoT device (e.g., a smart camera) at a base station and implemented a program that calculates the remaining fuel from a captured image of the remaining fuel meter.
[0014] However, general-purpose IoT devices have a small non-volatile memory capacity (for example, about 1.5 MB), which means that there is an overwhelming lack of memory to execute tasks. For this reason, there has been a demand for a highly versatile method that can execute various tasks even when memory capacity is small.
[0015] In view of the above-mentioned problems, the present invention provides a program and system that can cause a processor to execute a specific process (task) for estimating the state of a monitored object based on an image obtained by photographing the monitored object, and that can individually and sequentially execute specific processes for each divided element into which an element is divided into specified units.
[0016] In the proposed technology of the present invention, since data is repeatedly read into and discarded from memory while specific processes are executed individually and sequentially, memory utilization rate decreases each time a specific process ends. Therefore, the next specific process can be executed in a state where memory utilization rate has decreased, so each specific process can be executed even with a small memory capacity.
[0017] In the following embodiment, the monitoring target is described as "remaining fuel in a generator" and the state of the monitoring target is described as "numerical value of remaining fuel", but the monitoring target and the state of the monitoring target to which the proposed technology of the present invention can be applied are not limited to such examples. For example, the proposed technology of the present invention can be widely applied in use cases such as calculating the state of an object related to an object (e.g., predetermined parameters such as speed, temperature, humidity, etc.) from information of the object detected from a captured image. In other words, the proposed technology of the present invention is considered to be applicable for various purposes other than calculating the remaining fuel in a generator, and can be said to be a highly versatile method capable of executing various tasks even when memory capacity is small.
[0018] In addition, as will be described later, in the proposed technology of the present invention, the state of the monitored object is estimated from the result of image analysis of the captured image, and an object detection model is used for the image analysis. That is, the captured image is input to an object detection model (AI) to perform a process of detecting a specific object in the captured image.
[0019] The task of the object detection model is to simultaneously estimate the coordinates (localization) and type (classification) of objects contained in the input image, and then perform post-processing to output a list of the detection results, including bounding box information (e.g., the x-coordinate of the center of the box, the y-coordinate of the center of the box, the width of the box, and the height of the box) and a confidence score (probability) of the detection result. This task corresponds to the "specific processing for estimating the state of the monitored object."
[0020] 2. System Configuration An example of the configuration of a system 1 according to an embodiment is shown in Fig. 1. First, the terms used in Fig. 1 and the following description will be explained.
[0021] In the following embodiments, a signed processor (hereinafter simply referred to as a "processor") may be one arithmetic device or a combination of multiple arithmetic devices. Furthermore, a processor may be one type of arithmetic device or a combination of multiple types of arithmetic devices. Examples of arithmetic devices include a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), a GPGPU (General-Purpose computing on Graphics Processing Units), an APU (Accelerated Processing Unit), or a TPU (Tensor Processing Unit).
[0022] In the following embodiments, a signed RAM (Random Access Memory) is a memory in which information is temporarily stored and is used as a working memory by a processor.
[0023] In the following embodiments, the coded storage is one or more non-volatile storage devices that store various programs, various parameters, etc. Examples of non-volatile storage devices include flash memory (SSD (Solid State Drive)), magnetic disks (e.g., hard disks), and magnetic tapes.
[0024] For example, the various programs include a program (program according to the present invention) in which instructions are written to cause a processor to execute the above-mentioned specific processing (task) and an estimation processing for estimating the state of a monitored object (information processing according to the present invention), and are executed using the RAM as a working area. Therefore, the RAM has a memory area in which information necessary for the information processing according to the present invention is stored. Therefore, the RAM corresponds to the "memory" according to the present invention. The RAM may be a non-volatile RAM.
[0025] In the following embodiments, a communication I / F (Interface) with a code is an interface including a communication processor and an antenna. The communication I / F controls communication between multiple computers. An example of a communication standard applied to the communication I / F is a wireless communication standard including 5G (5th Generation Mobile Communication System), Wi-Fi (registered trademark), Bluetooth (registered trademark), etc.
[0026] 1, the system 1 includes a smart device 10 and a server device 30 (cloud). The smart device 10 is an example of an IoT device, and in this embodiment, is a smart camera equipped with an imaging function.
[0027] The smart device 10 includes a computer 12, a reception device 14, an output device 16, an imaging device 18, and a communication I / F 20. The computer 12 includes a processor 22, a RAM 24, and a storage 26. The processor 22, the RAM 24, and the storage 26 are connected to a bus 28. The reception device 14, the output device 16, and the imaging device 18 are also connected to the bus 28. The communication I / F 20 is connected to a network N. Examples of the network N include a wide area network (WAN) and / or a local area network (LAN). For example, the communication I / F 20 can transmit an estimation result of the state of the monitored object to a server device 30 via the network N.
[0028] The reception device 14 includes a touch panel 14A and a microphone 14B, and receives user input. The touch panel 14A detects contact with a pointer (e.g., a pen or a finger) to receive user input by the touch of the pointer. The microphone 14B detects the user's voice to receive user input by voice. For example, the communication I / F 20 can transmit data indicating the user input received by the touch panel 14A and the microphone 14B to the server device 30 via the network N.
[0029] The output device 16 includes a display 16A and a speaker 16B, and presents data to a user by outputting the data in a form of expression that the user can perceive (e.g., voice and / or text). The display 16A displays visual information such as text and images according to instructions from the processor 22. The speaker 16B outputs voice according to instructions from the processor 22.
[0030] The computer 12 includes at least a processor 22 and a RAM 24, and corresponds to the "information processing system" according to the present invention.
[0031] The imaging device 18 is a small digital camera equipped with an optical system including a lens, an aperture, and a shutter, and an imaging element such as a Complementary Metal-Oxide-Semiconductor (CMOS) image sensor or a Charge Coupled Device (CCD) image sensor.
[0032] 3. Overview of Information Processing According to the Present Invention Fig. 2 is a diagram showing an overview of information processing according to the present invention. Fig. 2 shows a communication base station BS and a generator GN that supplies power to the communication base station BS. The generator GT has a remaining fuel meter MT, and a smart device 10 is installed in a position where the remaining fuel meter MT can be photographed. The remaining fuel meter MT may be an analog meter having a needle that indicates the remaining fuel, or a digital meter that displays the remaining fuel on a screen.
[0033] The smart device 10 (specifically, the processor 22) performs information processing according to the present invention by executing a program in the RAM 24. For example, the smart device 10 performs information processing according to the present invention at a predetermined cycle (for example, at 15-minute intervals).
[0034] The information processing of the present invention may be a set of photographing by the imaging device 18, a detection process (inference) for detecting a specific object from the captured image using an object detection model read from the RAM 24, and an estimation process for estimating and calculating the value of remaining fuel from the detection results.
[0035] More specifically, the smart device 10 captures an image of the remaining fuel meter MT.
[0036] The smart device 10 executes a detection process in which the captured image is used as an input image for the object detection model, and the object detection model detects a predetermined object from the captured image. This process is a task of the object detection model, and corresponds to a specification process according to the present invention. The memory area of the RAM 24 is used for the specification process. For example, the memory area is used for the captured image, the object detection model, and image analysis using the object detection model.
[0037] However, since the smart device 10 is an inexpensive general-purpose IoT device, the memory capacity of the memory area is small. Therefore, when the specific process is simply executed, the memory capacity may be insufficient and the operation of the processor 22 may stop. Therefore, to avoid such a situation and to execute the specific process even when the memory capacity is small, the information processing according to the present invention is executed. Specifically, as shown in FIG. 2, the information processing is executed by the processor 22 to individually and sequentially execute the specific process for each divided element obtained by dividing an element into a predetermined unit.
[0038] The information processing according to the present invention is divided into two methods. One is a method in which a single detection process using a single high-performance object detection model capable of detecting various types of objects is divided into detection processes using a plurality of object detection models prepared according to the types of objects to be detected from a captured image, each of which is a lightweight object detection model capable of detecting only a specific type of object, and the divided processes are individually and sequentially executed, during which data is repeatedly read into the RAM 24 and discarded from the RAM 24. Hereinafter, such a method will be described as a first embodiment.
[0039] The other is a method in which a captured image is divided into a plurality of images, and a detection process for each divided image is performed individually and sequentially to detect a predetermined object from the divided images using an object detection model, and data is repeatedly read into the RAM 24 and discarded from the RAM 24. This method will be described below as a second embodiment.
[0040] (First embodiment) [1. Overall picture] Fig. 3 is a diagram for explaining an overall image of the first embodiment. Fig. 3 shows a scene in which information processing according to the first embodiment is performed in an estimation process in which a remaining fuel value is read from a captured image IM obtained by capturing an analog remaining fuel meter MT.
[0041] First, a description will be given of division according to the first embodiment. Fig. 3 shows an object detection model Mx as an example of one high-performance object detection model capable of detecting various types of objects.
[0042] The remaining fuel meter MT shown in FIG. 3 has a scale configuration including the character "empty" indicating the state of remaining fuel, the character "full" indicating the state of remaining fuel, and a "needle" indicating the scale between the character "empty" and the character "full." In the case of such a scale configuration, in order to read the remaining fuel value, it is necessary to infer the position of the character "empty," the position of the character "full," and the position of the object "needle" in the captured image IM using an object detection model Mx. More specifically, as shown in FIG. 3, it is necessary to infer the position of the bounding box surrounding "empty" (hereinafter abbreviated as "box position"), the position of the box surrounding "full," and the position of the box surrounding the "needle" using an object detection model Mx.
[0043] Here, it is considered to use a high-performance object detection model Mx capable of detecting three types of objects, for example, K0 to K2. As shown in Fig. 3, for example, the object type K0 is an object "pointer", the object type K1 is the character "empty", and the object type K2 is the character "full". Thus, when a captured image IM is input, the object detection model Mx outputs position information (center x coordinate, center y coordinate) of a box enclosing the object "pointer", position information (center x coordinate, center y coordinate) of a box enclosing the character "empty", and position information (center x coordinate, center y coordinate) of a box enclosing the character "full" as a detection result of detecting the three types of objects, K0 to K2.
[0044] However, in the smart device 10, the memory capacity of the memory area of the RAM 24 is small. Therefore, if the processor 22 attempts to use the highly functional object detection model Mx to infer three types of objects, K0 to K2, at once, the memory capacity may be insufficient, causing the processor 22 to stop operating.
[0045] Therefore, in the first embodiment, a detection process using one high-performance model called an object detection model Mx is divided into a plurality of different model units and divided into separate processes that are executed sequentially. Specifically, in the example of Fig. 3, an object detection model M0 capable of detecting only an object (pointer) of type K0, an object detection model M1 capable of detecting only an object (sky) of type K1, and an object detection model M2 capable of detecting only an object (full) of type K2 are used instead of the object detection model Mx.
[0046] Since object detection models M0, M1, and M2 are lightweight models specialized for detecting one type of object, the memory capacity required for each detection process is smaller than that required for object detection model Mx. Therefore, in the example of Fig. 3, processor 22 executes detection process by object detection model M0, detection process by object detection model M1, and detection process by object detection model M2 individually and sequentially.
[0047] 3, the detection process by the object detection model Mx is divided into units of a plurality of different object detection models My (object detection model M0, object detection model M1, object detection model M2) prepared for separately detecting three types of objects, K0 to K2. Therefore, the detection process by the object detection model M0, the detection process by the object detection model M1, and the detection process by the object detection model M2 can each be said to be a divided process obtained by dividing the detection process by the object detection model Mx.
[0048] From here, the flow of information processing according to the first embodiment will be described using the example of Fig. 3. Fig. 3 shows a scene in which a first detection process Y1, which is a first stage detection process using an object detection model M1, is performed, followed by a second detection process Y2, which is a second stage detection process using an object detection model M0, and finally a third detection process Y3, which is a third stage detection process using an object detection model M2. Note that the order in which the detection processes are performed among the object detection model M1, the object detection model M2, and the object detection model M3 is not limited.
[0049] According to the example of FIG. 3, the processor 22 first retrieves the object detection model M1 from the storage 26 and reads the object detection model M1 into the RAM 24. Then, the processor 22 reads the object detection model M1 from the RAM 24 and executes the first detection process Y1 using the object detection model M1 in the RAM 24. In this case, as shown in FIG. 3, the memory capacity utilization rate of the memory area of the RAM 24 increases. When the object detection model M1 outputs a detection result including the position information (center x coordinate, center y coordinate) of the box AR1 surrounding the character "sky", the processor 22 releases the memory area of the RAM 24 in response to the end of the first detection process Y1. Specifically, the processor 22 deletes the object detection model M1 from the RAM 24. As a result, as shown in FIG. 3, the memory capacity utilization rate of the memory area of the RAM 24 decreases.
[0050] In this manner, in a state where the memory capacity utilization rate is reduced, the processor 22 executes the next second detection process Y2. The processor 22 first retrieves the object detection model M2 from the storage 26 and loads the object detection model M2 into the RAM 24. Then, the processor 22 reads the object detection model M2 from the RAM 24 and executes the second detection process Y2 using the object detection model M2 in the RAM 24. In this case, as shown in FIG. 3, the memory capacity utilization rate of the memory area of the RAM 24 increases. When the object detection model M2 outputs a detection result including the position information (center x coordinate, center y coordinate) of the box AR0 enclosing the object "pointer", the processor 22 releases the memory area of the RAM 24 in response to the end of the second detection process Y2. Specifically, the processor 22 deletes the object detection model M2 from the RAM 24. As a result, as shown in FIG. 3, the memory capacity utilization rate of the memory area of the RAM 24 decreases.
[0051] In this way, with the memory capacity utilization rate down, the processor 22 executes the last third detection process Y3. First, the processor 22 retrieves the object detection model M3 from the storage 26 and reads the object detection model M3 into the RAM 24. Then, the processor 22 reads out the object detection model M3 from the RAM 24 and executes the third detection process Y3 using the object detection model M3 in the RAM 24. In this case, as shown in FIG. 3, the memory capacity utilization rate of the memory area of the RAM 24 increases. When the object detection model M3 outputs a detection result including the position information (center x coordinate, center y coordinate) of the box AR2 surrounding the character "full", the processor 22 releases the memory area of the RAM 24 in response to the end of the third detection process Y3. Specifically, the processor 22 deletes the object detection model M3 from the RAM 24. As a result, as shown in FIG. 3, the memory capacity utilization rate of the memory area of the RAM 24 decreases.
[0052] In this way, every time the processor 22 executes a splitting process, the processor 22 deletes the object detection model My used in the splitting process from the RAM 24 to release the used area, and repeats the sequential process the number of times equal to the number of splitting processes.
[0053] When all the splitting processes are completed, the processor 22 estimates the remaining fuel value based on the combination of the detection result by the object detection model M1, the detection result by the object detection model M0, and the detection result by the object detection model M2. Specifically, the processor 22 executes an estimation process of reading the scale indicated by the pointer of the remaining fuel meter MT based on the combination of the position information of the box AR1 surrounding the character "empty", the position information of the box AR0 surrounding the object "pointer", and the position information of the box AR2 surrounding the character "full".
[0054] The position information of the box AR1, the position information of the box AR0, and the position information of the box AR2 each include a center x coordinate and a center y coordinate. For example, the processor 22 can estimate and calculate the scale indicated by the pointer of the remaining fuel meter MT based on each center y coordinate.
[0055] 2. Processing Procedure 4 is a diagram for explaining the procedure of information processing according to the first embodiment. In FIG. 4, the procedure of information processing is explained based on the overall image of the first embodiment explained in FIG.
[0056] The imaging device 18 periodically captures an image of the monitoring target. The processor 22 then determines whether or not a captured image IM has been acquired by capturing an image of the monitoring target (step S401). While a captured image IM has not been acquired (step S401; No), the processor 22 waits until a captured image IM is acquired.
[0057] When the captured image IM is acquired (step S401; Yes), the processor 22 reads the captured image IM into the RAM 24 (step S402).
[0058] Processor 22 also determines whether or not all individual detection processes using a plurality of object detection models My prepared according to the types of objects to be detected have been completed for the number of object detection models My (step S403).
[0059] If all of the individual detection processes using each object detection model My have not been completed (step S403; No), the processor 22 retrieves one unused object detection model My that corresponds to the current processing stage n from the storage 26 and reads it into the RAM 24 (step S404).
[0060] In this state, the processor 22 executes the n-th detection process corresponding to the current processing stage n, using the object detection model My read out from the RAM 24 and the captured image IM (step S405).
[0061] The processor 22 determines whether the n-th detection process has been completed based on whether the object detection model My has output a detection result (step S406). If the object detection model My has not output a detection result and the n-th detection process has not been completed (step S406; No), the processor 22 waits until the n-th detection process is completed.
[0062] When the n-th detection process ends as a result of the object detection model My outputting the detection result (Step S406; Yes), the processor 22 stores the detection result by the object detection model My (Step S407).
[0063] Next, the processor 22 deletes the object detection model My used in the n-th detection process from the RAM 24 (step S408).
[0064] Processor 22 increments the number of the current processing stage n by one and moves to the next processing stage, thereby repeating step S403 and subsequent steps so as to execute detection processing using another unused object detection model My (step S409). The repetition of steps S403 to S409 is intended to execute detection processing for each object detection model My individually and sequentially.
[0065] When all of the individual detection processes using each object detection model My have been completed (step S403; Yes), the processor 22 estimates the state of the monitored object based on the combination of the detection results (box position information) for each object detection model My saved in step S407 (step S410).
[0066] Then, the communication I / F 20, under the control of the processor 22, uploads the estimation result obtained in step S410 to the cloud (server device 30) (step S411).
[0067] Second embodiment [1. Overall picture] Fig. 5 is a diagram for explaining an overall image of the second embodiment. Fig. 5 shows a scene in which information processing according to the second embodiment is performed in an estimation process in which the remaining fuel value is read from a captured image IM obtained by capturing an analog remaining fuel meter MT.
[0068] First, division according to the second embodiment will be described. If the original captured image IM obtained by the imaging device 18 is used as is, the image size (number of pixels) is large, and there is a problem that the smart device 10 cannot be equipped with the RAM 24 having a memory area that can satisfy this image size, or the memory area capacity of the RAM 24 is small and the captured image IM cannot be read as is.
[0069] For this reason, it is possible to reduce the image size by shrinking the original captured image IM. However, reducing the image size reduces the resolution, which causes another problem in that the detection accuracy of the object detection model decreases.
[0070] Therefore, in the second embodiment, a detection process for each divided image IMn obtained by dividing a captured image IM, which detects a predetermined object from the divided image IMn using an object detection model, is executed individually and sequentially. The divided image IMn has a smaller image size than the captured image IM, but is not a reduced image, so the resolution itself is maintained. For this reason, the second embodiment realizes a highly versatile method capable of executing various tasks even when memory capacity is small, from the perspective of dividing an image rather than dividing processing as in the first embodiment.
[0071] Furthermore, the detection process for each divided image IMn is executed individually and sequentially, during which the reading of the divided image IMn into the RAM 24 and the discarding of the divided image IMn from the RAM 24 are repeated.
[0072] Furthermore, the detection process for each divided image IMn may be performed individually and sequentially using multiple lightweight models for each captured image IM composed of divided images IMn, rather than using one highly functional object detection model Mx. The lightweight model here refers to a lightweight model specialized for detecting one type of object. For this reason, the information processing according to the second embodiment may be combined with the information processing according to the first embodiment. In this regard, the flow of the information processing according to the second embodiment will be described using the example of FIG. 5. The example shown in FIG. 3 will also be used as appropriate for the description.
[0073] As shown in Fig. 5, the processor 22 may obtain nine divided images IMn by dividing the captured image IM into nine parts. Fig. 5 shows divided images IM1, IM2, IM3, etc. (hereinafter referred to as "divided images IM1 to IM9") as examples of the nine divided images IMn. Note that the number of divisions of the captured image IM by the processor 22 is not limited to nine, but it is preferable to keep the number of divisions to a level that does not result in too many divisions of the detection target object according to the image division.
[0074] 5 also shows a scene in which a first detection process Y1, which is a first stage detection process using an object detection model M1, then a second detection process Y2, which is a second stage detection process using an object detection model M0, and finally a third detection process Y3, which is a third stage detection process using an object detection model M2, is performed. Specifically, in the information processing according to the second embodiment, the first detection process Y1, the second detection process Y2, and the third detection process Y3 are performed individually and sequentially for each captured image IM composed of divided images IMn.
[0075] In each of the first detection process Y1, the second detection process Y2, and the third detection process Y3, a process of detecting a target object from each of the divided images IM1 to IM9 is executed individually and sequentially.
[0076] A more specific description will be given using an example of the divided image IM1. The processor 22 retrieves the object detection model M1 from the storage 26 and reads the object detection model M1 into the RAM 24, and also reads into the RAM 24 the divided image IM1, which is one of the divided images IMn obtained by dividing the captured image IM into nine. The processor 22 then executes a detection process in the RAM 24 to cause the object detection model M1 to detect an object (sky) of type K1 from the divided image IM1. In this case, the memory capacity utilization rate of the memory area of the RAM 24 increases. When the object detection model M1 outputs a detection result including position information (center x coordinate, center y coordinate) of a box surrounding the character "sky" and the reliability (probability) of the existence of the character "sky" at that position, the processor 22 ends the current detection process and releases the memory area of the RAM 24. Specifically, the processor 22 deletes the divided image IM1 from the RAM 24. As a result, the memory capacity utilization rate of the memory area of the RAM 24 decreases.
[0077] The processor 22 also sequentially performs the above detection process performed on the divided image IM1 on each of the divided images IM2 to IM9, but sequentially deletes the divided image IMn used in the current detection process from the RAM 24 and moves to the next detection process. As a result, the processor 22 can obtain the detection result (position information and probability of the box) by the object detection model M1 for each of the divided images IM1 to IM9. For example, as shown in FIG. 5, the processor 22 can obtain a box indicating the position of the character "sky" for each of the divided images IM1 to IM9. Thus, the processor 22 extracts the detection result RE1 with the highest probability from the detection results associated with each of the divided images IM1 to IM9. According to the detection result RE1, the divided image IMn (divided image IM2 in the example of FIG. 5) that is most likely to contain the character "sky" is identified from among the divided images IM1 to IM9, so the processor 22 can use this divided image IMn to estimate the remaining fuel value. The above is a specific example of the first detection process Y1 executed for each captured image IM.
[0078] Therefore, when the first detection process Y1 ends, the processor 22 executes the second detection process Y2 in a state in which the memory capacity utilization rate is further reduced by deleting the object detection model M1 from the RAM 24. The second detection process Y2 differs in that the object detection model M0 is used, but otherwise the process proceeds in the same manner as the method described in the first detection process Y1. As a result of executing the second detection process Y2, the processor 22 can obtain the detection results (position information and probability of the box) by the object detection model M0 for each of the divided images IM1 to IM9. For example, as shown in FIG. 5, the processor 22 can obtain a box indicating the position of the object "pointer" for each of the divided images IM1 to IM9. Therefore, the processor 22 extracts the detection result RE2 with the highest probability from the detection results associated with each of the divided images IM1 to IM9. According to the detection result RE2, the divided image IMn (in the example of Figure 5, divided image IM5) that is most likely to contain the object "needle" is identified among the divided images IM1 to IM9, so the processor 22 can use this divided image IMn to estimate the value of the remaining fuel.
[0079] Furthermore, when the second detection process Y2 ends, the processor 22 executes the second detection process Y2 in a state in which the memory capacity utilization rate is further reduced by deleting the object detection model M3 from the RAM 24. The third detection process Y3 is different in that the object detection model M2 is used, but otherwise the process proceeds in the same manner as the method described in the first detection process Y1. As a result of executing the third detection process Y3, the processor 22 can obtain the detection results (position information and probability of the box) by the object detection model M2 for each of the divided images IM1 to IM9. For example, as shown in FIG. 5, the processor 22 can obtain a box indicating the position of the character "Full" for each of the divided images IM1 to IM9. Therefore, the processor 22 extracts the detection result RE3 with the highest probability from the detection results associated with each of the divided images IM1 to IM9. According to the detection result RE3, among the divided images IM1 to IM9, the divided image IMn (in the example of Figure 5, divided image IM8) is identified as the most likely one in which the character "full" is present, so the processor 22 can use this divided image IMn to estimate the value of the remaining fuel.
[0080] When all detection processes are completed, the processor 22 estimates the remaining fuel value based on a combination of the most probable detection result RE1 among the detection results for each divided image IMn by the object detection model M1, the most probable detection result RE2 among the detection results for each divided image IMn by the object detection model M0, and the most probable detection result RE3 among the detection results for each divided image IMn by the object detection model M2. In the example of Fig. 5, the processor 22 executes an estimation process to read the scale indicated by the needle of the remaining fuel meter MT based on a combination of position information of a box surrounding the character "empty" in the divided image IM2, position information of a box surrounding the object "needle" in the divided image IM5, and position information of a box surrounding the character "full" in the divided image IM8.
[0081] 2. Processing Procedure 6 is a diagram for explaining the procedure of information processing according to the second embodiment. In FIG. 6, the procedure of information processing is explained based on the overall image of the first embodiment explained in FIG.
[0082] The imaging device 18 periodically captures an image of the monitoring target. The processor 22 then determines whether or not a captured image IM has been acquired by capturing an image of the monitoring target (step S601). While a captured image IM has not been acquired (step S601; No), the processor 22 waits until a captured image IM is acquired.
[0083] When a captured image IM is acquired (step S601; Yes), the processor 22 divides the captured image IM into a predetermined number of divided images IMn (step S602).
[0084] Furthermore, the processor 22 retrieves one of the unused object detection models My, which are prepared according to the types of objects to be detected, from the storage 26 and reads it into the RAM 24 (step S603).
[0085] The processor 22 also determines whether or not the individual detection processes using the divided images IMn have all been completed for the number of divided images IMn (step S604). In other words, the processor 22 determines whether or not the detection process using one object detection model My has been completed for each captured image IM consisting of divided images IMn.
[0086] If all of the individual detection processes using each divided image IMn have not been completed (step S604; No), the processor 22 acquires one of the unused divided images IMn and reads it into the RAM 24 (step S605).
[0087] In this state, the processor 22 executes the current detection process using the object detection model My read out from the RAM 24 and the divided image IMn (step S606).
[0088] The processor 22 determines whether the current detection process is completed based on whether the object detection model My has output a detection result (step S607). If the object detection model My has not output a detection result and the detection process is not completed (step S607; No), the processor 22 waits until the current detection process is completed.
[0089] When the current detection process ends as a result of the object detection model My outputting the detection result (Step S607; Yes), the processor 22 stores the detection result by the object detection model My (Step S608).
[0090] Next, the processor 22 deletes the divided image IMn used in the current detection process from the RAM 24, and returns to step S604 (step S609). As a result, the processor 22 repeats steps S603 and after so that the detection process can be executed for another unused divided image IMn. The repetition of steps S604 to S609 is intended to execute the detection process for each divided image IMn individually and sequentially using one object detection model My.
[0091] When all of the individual detection processes using the divided images IMn have been completed (step S604; Yes), the processor 22 deletes the object detection model My used in the current detection process from the RAM 24 (step S610).
[0092] The processor 22 also determines whether or not all individual detection processes using the object detection models My prepared according to the types of objects to be detected have been completed for the number of object detection models My (step S611). In other words, the processor 22 determines whether or not all detection processes have been completed for each captured image IM composed of divided images IMn.
[0093] If all of the individual detection processes using each object detection model My have not been completed (step S611; No), the processor 22 returns the process to step S603.
[0094] On the other hand, when all individual detection processes using each object detection model My have been completed (step S611; Yes), the processor 22 extracts the detection result with the highest reliability from the detection results (box position information) for each object detection model My saved in step S608 (step S612).
[0095] Then, the processor 22 estimates the state of the monitored object based on the combination of the extracted detection results (step S613).
[0096] Then, the communication I / F 20, under the control of the processor 22, uploads the estimation result obtained in step S613 to the cloud (server device 30) (step S614).
[0097] (Other embodiments) In the second embodiment, the detection process for each divided image IMn is performed individually and sequentially using a plurality of lightweight models for each captured image IM composed of the divided images IMn. However, the detection process for each divided image IMn may be performed using one high-performance object detection model Mx.
[0098] (others) Furthermore, among the processes described in each of the above embodiments, all or part of the processes described as being performed automatically can be performed manually, or all or part of the processes described as being performed manually can be performed automatically by a known method. In addition, the information including the processing procedures, specific names, various data and parameters shown in the above documents and drawings can be changed arbitrarily unless otherwise specified. For example, the various information shown in each drawing is not limited to the illustrated information.
[0099] In addition, each component of each device shown in the figure is a functional concept, and does not necessarily have to be physically configured as shown in the figure. In other words, the specific form of distribution and integration of each device is not limited to that shown in the figure, and all or part of them can be functionally or physically distributed and integrated in any unit according to various loads, usage conditions, etc.
[0100] Furthermore, the above-described embodiments can be appropriately combined as long as the processing contents are not contradictory.
[0101] Although some of the embodiments of the present application have been described in detail above with reference to the drawings, these are merely examples, and the present invention can be implemented in other forms that incorporate various modifications and improvements based on the knowledge of those skilled in the art, including the aspects described in the present invention section. [Explanation of symbols]
[0102] 1 System 10. Smart Devices 12. Computers 18 Imaging device 22 processors 24 RAM 26 Storage
Claims
1. A processor that executes a specific process for estimating a state of a monitoring target based on a captured image of the monitoring target; a memory in which instructions and data used for executing the specific process are stored; the processor performs a sequential process of individually executing divided processes obtained by dividing the specific process into a plurality of processing units, by releasing a used area of the memory used in the previous divided process, and executing the current divided process using a free area of the memory after the release; The segmentation process is a process for detecting each of predetermined objects required for estimating the state of the monitoring target from the captured image, and is an individual process executed by a plurality of object detection models prepared for detecting each of the predetermined objects. Information processing system.
2. A processor that executes a specific process for estimating a state of a monitoring target based on a captured image of the monitoring target; a memory in which instructions and data used for executing the specific process are stored; The processor independently executes a series of processes in which the specific process is divided into a plurality of processing units and the divided processes are executed sequentially and individually, and in the series of processes, data used in the previous divided process is deleted from the memory to free up the memory capacity, data to be used in the current divided process is read from the memory, the current divided process is executed using the read data, and the data used in the current divided process is deleted from the memory to free up the memory capacity, thereby performing sequential processing until all the divided processes constituting the series of processes are executed. Information processing system.
3. the segmentation process is a process of detecting each of predetermined objects required for estimating a state of the monitoring target from the captured image, and is an individual process executed by a plurality of object detection models prepared for detecting each of the predetermined objects, The processor, performing the sequential processing of deleting from the memory the object detection models used in the previous division processing to release the used area of the memory, executing the current division processing using the free area of the memory after the release, and repeating the processing of deleting from the memory the object detection models used in the current division processing to release the used area of the memory a number of times equal to the number of division processing; 3. The information processing system according to claim 1 or 2.
4. The processor estimates a state of the monitored object based on a combination of the detection results for each of the object detection models. The information processing system according to claim 3 .
5. A processor that executes a specific process for estimating a state of a monitoring target based on a captured image of the monitoring target; a memory in which instructions and data used for executing the specific process are stored; the processor performs sequential processing of individually executing the specific processing for each divided image obtained by dividing the captured image into a plurality of images, by releasing a used area of the memory used in the previous specific processing, and executing the current specific processing using a free area of the memory after the release; The identification process for each of the divided images is a process of detecting each of predetermined objects necessary for estimating the state of the monitoring target from the divided images as the identification process, and is a process of performing a process using a plurality of object detection models prepared for detecting each of the predetermined objects for each of the divided images. Information processing system.
6. A processor that executes a specific process for estimating a state of a monitoring target based on an image of the monitoring target; a memory in which instructions and data used for executing the specific process are stored; The processor independently executes a series of processes in which the specific process is executed sequentially and individually for each divided image obtained by dividing the captured image into a plurality of images, and in the series of processes, the divided images used in the previous specific process are deleted from the memory to free up the memory capacity, the divided images to be used in the current specific process are read from the memory to execute the current specific process using the read divided images, and the divided images used in the current specific process are deleted from the memory to free up the memory capacity, thereby performing sequential processing until all of the specific processes constituting the series of processes are executed. Information processing system.
7. the identification process for each of the divided images is a process of detecting each of predetermined objects necessary for estimating a state of the monitoring target from the divided images as the identification process, and is a process of performing a process using a plurality of object detection models prepared for detecting each of the predetermined objects for each of the divided images; The processor, performing the sequential processing of deleting from the memory the divided images used in the previous specific processing to release the used area of the memory, executing the current specific processing using the free area of the memory after the release, and deleting from the memory the divided images used in the current specific processing to release the used area of the memory a number of times equal to the number of the divided images; 7. The information processing system according to claim 5 or 6.
8. The processor estimates a state of the monitoring target based on a combination of the detection results for each of the divided images. The information processing system according to claim 7.
9. The processor executes the identification process for each of the divided images using a plurality of the object detection models, and estimates a state of the monitored object based on a combination of detection results for each of the object detection models having a higher reliability among the detection results by the plurality of the object detection models. The information processing system according to claim 8.
10. A program executed by a processor that executes a specific process for estimating a state of a monitoring target based on a captured image of the monitoring target, having the processor execute a sequential process of individually executing divided processes obtained by dividing the specific process into a plurality of processing units, in which a used area of a memory in which instructions and data used in the execution of the specific process are stored, that was used in the previous divided process, is released, and the current divided process is executed using the free area of the memory after the release; The segmentation process is a process for detecting each of predetermined objects required for estimating the state of the monitoring target from the captured image, and is an individual process executed by a plurality of object detection models prepared for detecting each of the predetermined objects. program.
11. A program executed by a processor that executes a specific process for estimating a state of a monitoring target based on a captured image of the monitoring target, a process of executing the specific process individually for each divided image obtained by dividing the captured image into a plurality of images, the process being a sequential process in which a used area of a memory that stores instructions and data used in the execution of the specific process is released and the specific process is executed this time using a free area of the memory after the release; The identification process for each of the divided images is a process of detecting each of predetermined objects necessary for estimating the state of the monitoring target from the divided images as the identification process, and is a process of performing a process using a plurality of object detection models prepared for detecting each of the predetermined objects for each of the divided images. program.
12. A program executed by a processor that executes a specific process for estimating a state of a monitoring target based on an image of the monitoring target, comprising: A program for causing the processor to execute a series of sequential processes in which the specific process is divided into a plurality of processing units and the divided processes are executed sequentially and individually, and in the series of processes, in a memory in which instructions and data used in the execution of the specific process are stored, data used in the previous divided process is deleted from the memory to free up memory capacity, data to be used in the current divided process is read from the memory, the current divided process is executed using the read data, and the data used in the current divided process is deleted from the memory to free up memory capacity, and this process is repeated until all of the divided processes that make up the series of processes have been executed.
13. A program executed by a processor that executes a specific process for estimating a state of a monitoring target based on an image of the monitoring target, comprising: A program for causing the processor to execute a series of sequential processes in which the specific process is executed individually and sequentially for each divided image obtained by dividing the captured image into multiple images, and in the series of processes, in a memory in which instructions and data used for executing the specific process are stored, the divided images used in the previous specific process are deleted from the memory to free up memory capacity, the divided images to be used in the current specific process are read from the memory to execute the current specific process using the read divided images, and the divided images used in the current specific process are deleted from the memory to free up memory capacity, and this process is repeated until all of the specific processes constituting the series of processes have been executed.
Citation Information
Patent Citations
Memory managing method and data processor
JP2002351739A
Memory control method, graphic processor and information processor
JP2006092217A
Visual inspection method and visual inspection apparatus
JP2010127664A
Information processing system, and vehicle equipped the same
JP2023123074A
Congestion estimation program, congestion estimation method and information processing device
JP2023175561A
