Image processing method and video processing device

JP2022075532A5Active Publication Date: 2024-10-18AXIS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2021166749
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2020-11-05
Filing Date
2021-10-11
Publication Date
2024-10-18
Estimated Expiration
2041-10-11

AI Technical Summary

Technical Problem

Existing image processing methods for privacy masking in video surveillance face challenges such as increased power consumption, reduced frame rates, and increased bandwidth requirements due to the processing time needed for masking moving objects.

Method used

A method that involves adding an empty frame to the end of the encoded image stream until the evaluation for privacy masking is complete, reducing the need for further processing and maintaining a consistent frame rate.

Benefits of technology

This approach reduces power consumption and bandwidth requirements while maintaining a consistent frame rate, improving the efficiency of image processing devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

To provide a method for reducing power consumption in privacy masking, and an image processing device.SOLUTION: The image processing device receives a stream of images emanating from an image sensor, evaluates the content of an image in the stream, forwards to a video encoder a part of the image stream, which part is antecedent the image being evaluated, and until the evaluation is complete, adds one or more empty frames at the end of an encoded image stream corresponding to the forwarded image stream.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to image processing. In particular, a method for video processing and an image processing apparatus are disclosed. A corresponding computer program and a computer program carrier are also disclosed.

Background Art

[0002] Public surveillance using imaging, especially video imaging, is common in many regions around the world. Areas that may require surveillance are, for example, banks, stores, and other areas where security is required such as schools and government facilities. Other areas that may require surveillance are processing, manufacturing, and distribution where video surveillance is mainly used to monitor processes.

[0003] However, there may be a need to prevent the identification of people from video surveillance.

[0004] Some image processing techniques have been disclosed that can recognize activities while avoiding the identification of people. For example, different types of "color blurring" such as edge detection / representation, edge enhancement, silhouette objects, and color changes or dilations are examples of such operations.

[0005] Image processing refers to any processing applied to an image. The processing can include the application of various effects, masks, filters, etc. to the image. In this way, the image can be sharpened, converted to grayscale, or changed in some way. Images are usually captured by video cameras, still cameras, etc.

[0006] As mentioned above, one way to avoid identifying individuals is to mask moving people and objects in real time. Masking in live and recorded video can be done by comparing a live camera view to a set background scene and applying dynamic masking to areas of change—basically people and objects that are moving. Color masking, also known as solid color masking or monochrome masking, is when an object is masked by a solid mask overlaid with a specific color, providing privacy protection while still allowing movement to be seen. Mosaic masking, also known as pixelation, pixelated privacy masking, or transparent pixelation masking, shows moving objects at a lower resolution, allowing for better distinction of shape by seeing the color of the object.

[0007] Figure 1 shows an exemplary digital camera 100. The digital camera 100 generates two image streams A and B, resulting in a first digital image 101A with privacy masking and a second digital image 101B without privacy masking. In the first digital image 100A, an individual's identity is masked, for example, by comparing a live camera view with a set background scene and applying dynamic masking to areas of change.

[0008] Masking live and recorded video makes it suitable for remote video surveillance or recording in areas where surveillance is problematic due to privacy rules and regulations. When video surveillance is primarily used to monitor processes, it is ideal for processing, manufacturing, and distribution. Other potential applications include retail, education, and government facilities.

[0009] While masking offers many advantages, the masking algorithm takes a considerable amount of time to complete, leading to a problem where applying masking to moving objects like humans reduces the effective frame rate. This is undesirable if other components of the video network system operate at higher frame rates, such as the full frame rate, i.e., the desired frame rate set by the user for a particular stream.

[0010] Another problem that arises is the increased power consumption of the video camera due to increased image processing, particularly processing related to the synchronization of masks with video images.

[0011] Furthermore, if information about the captured image is transmitted over the network, masking may result in an increase in the required bandwidth due to the increased information about the captured image.

[0012] summary To better understand the advantages of the embodiments described herein, alternative reference solutions are first described. When performing privacy masking, synchronization between the image frame and the mask is crucial. The terms image frame, video frame, and mere frame are used interchangeably below. Masking of people and objects can be done by defining pixels related to the person or object as "foreground pixels" with respect to a determined background scene, and masking as the foreground pixels move around the background. Masking may also be performed, for example, by floodfilling the contours of the person or object. Alignment between the mask and the person is important to ensure that no part of the person or object is revealed.

[0013] One way to synchronize a mask with video is to pause the video frame until the analysis related to masking the video frame is complete. For example, you can pause the video frame until the analysis related to a moving object is complete. Pausing the video frame means that new frames do not go through the process of synchronizing the video frame with the mask, meaning that the last synchronized frame is sent to the encoder multiple times. Once the mask analysis of the video frame is complete, it can be considered a synchronized frame.

[0014] If the encoder needs video frames before the analysis is complete (for example, to obtain a specific required video frame rate of 30 fps [frames / second]), a copy of a recently synchronized video frame that was previously successful may be sent to the encoder. However, this generates an undesirable extra system load that increases power consumption because the same frame is processed again. Furthermore, if the video is transmitted over a network, the added frames also require extra network resources because they increase the amount of data being transmitted over the network.

[0015] Alternatively, frames can be dropped, resulting in dropped video frames. Such frame drops can give the impression that the camera or video stream is broken, especially when the camera or objects in the scene are moving. For example, synchronization of video frames with a mask combined with frame drops can produce the following video frame pattern for the user: (frame 0) move left, (frame 1) move left, (frame 2) stop, (frame 3) move left in a double step, (frame 4) move left. The stop at frame 2 may be perceived by the user as the camera or video stream being broken. Furthermore, many video network system components prefer to receive frames at regular intervals. [Overview of the project] [Problems that the invention aims to solve]

[0016] Therefore, the objective of the embodiments described herein is to eliminate some of the aforementioned problems, or at least reduce their impact. Specifically, the objective is to reduce the power consumption of image processing equipment such as video cameras when privacy masking is applied. More specifically, the objective may be to reduce the power consumption of image processing equipment while maintaining a constant frame rate. A further objective is to reduce the bandwidth required to transmit a video, i.e., a stream of images, on a network with privacy masking applied. [Means for solving the problem]

[0017] In one embodiment, this objective is achieved by a method for controlling video processing. This method can be performed by an image processing device. A stream of images emitted from an image sensor is received. The content of the images in the stream is evaluated. A portion of the image stream preceding the image being evaluated is transferred to a video encoder. At least a first empty frame is appended to the end of the encoded image stream corresponding to the transferred image stream until the evaluation is complete.

[0018] In another embodiment, the objective is achieved by an image processing apparatus configured to perform the above method.

[0019] In a further embodiment, the above objective is achieved by a computer program and a computer program carrier corresponding to the above embodiment.

[0020] By adding at least one empty frame to the end of the encoded image stream, the image processing unit can save power because the added empty frame requires less image processing, or in some cases no further processing at all.

[0021] A further advantage of the embodiments of this specification is that the bandwidth required to transmit an image stream is reduced compared to other methods of transmitting privacy-masked video. This is because the amount of data required to represent an empty frame is considerably less than the amount of data required to represent a frame originating from a sensor, and also less than a copy of such a frame.

[0022] Yet another advantage of the embodiments of this specification is that an image processing apparatus can maintain a certain desired frame rate, which is beneficial for internal processes as well as for a receiver of the generated video stream.

[0023] In the figures, features appearing in some embodiments are indicated by dashed lines.

[0024] The various aspects of the embodiments disclosed in this specification will be readily understood from the following detailed description and the accompanying drawings, including their specific features and advantages.

Brief Description of the Drawings

[0025] [Figure 1] Digital images with privacy masking and digital images without privacy masking. [Figure 2a] Exemplary embodiments of an image capturing apparatus of this specification are shown. [Figure 2b] An embodiment of this specification is an exemplary schematic overview diagram. [Figure 3a] A schematic diagram showing an image processing apparatus and an exemplary embodiment of a video processing method in the image processing apparatus. [Figure 3b] A schematic diagram showing an image processing apparatus and an exemplary embodiment of a video processing method in the image processing apparatus. [Figure 3c] A schematic diagram showing an image processing apparatus and an exemplary embodiment of a video processing method in the image processing apparatus. [Figure 3d]This is a schematic diagram showing an exemplary embodiment of an image processing device and a video processing method in the image processing device. [Figure 3e] This is a schematic diagram showing an exemplary embodiment of an image processing device and a video processing method in the image processing device. [Figure 3f] This is a schematic diagram showing an exemplary embodiment of an image processing device and a video processing method in the image processing device. [Figure 4] This is a flowchart illustrating an embodiment of a video processing method in an image processing device. [Figure 5] This is a block diagram showing an embodiment of an image processing device. [Modes for carrying out the invention]

[0026] As mentioned above, there is an interesting example of how privacy masking can be applied to video, for example, in a way that allows people to count or queue anonymous image data.

[0027] Furthermore, as described above, an objective of the embodiments of this specification may be to reduce the power consumption of an image processing device such as a video camera during privacy masking. Yet another objective is to reduce the bandwidth required to transmit the video, i.e., image stream to which privacy masking is applied, over a network.

[0028] As will be further described below, embodiments of this specification enable reducing power consumption and performing privacy masking on video with reduced bandwidth requirements while maintaining a desired frame rate.

[0029] Embodiments of this specification can be implemented in one or more image processing devices. Figure 2a shows various exemplary image processing devices 210 that can perform image processing on digital images such as digital video images. The image processing devices may be image capturing devices 220, 230, 240, such as a video recorder, a surveillance camera 220, a digital camera, a smartphone 230 including an image sensor, or an automobile 240 including an image sensor.

[0030] Figure 2b shows an exemplary video network system 250, which includes a surveillance camera 220 capable of performing image processing on digital images 201, such as digital video images. The video network system 250 may also be referred to as the network 250 in this specification. An image processing device 210, for example, a wired or wireless device, can also acquire images from image acquisition devices 220, 230, 240, for example, via the video network system 250, etc. This is the case, for example, with the video server 260 in Figure 2b.

[0031] A video server is a computer-based device dedicated to video distribution. Video servers are used in many applications and often have additional functions and capabilities to meet the needs of specific applications. For example, video servers used in security, surveillance, and inspection applications are typically designed to capture video from one or more cameras and distribute the video over a computer network. In video production and broadcast applications, a video server may have the ability to record video, play back recorded video, and distribute many video streams simultaneously. In Figure 2b, the video server 260 is connected via the network 250 to an image acquisition device exemplified by a surveillance camera 220. The video server 260 may also be connected to a video storage device 270 for storing video images and / or to a monitor 280 for displaying video images.

[0032] This allows the image processing device 210 to process digital images. The image may be captured by the image processing device itself, or it may be received from another device that captured the image, or from memory such as a hard drive.

[0033] The embodiments described herein can be implemented in an imaging system. To better understand the embodiments described herein, such an imaging system will be described first.

[0034] Figure 3a is a schematic diagram of the imaging system 300, in this case a digital video camera. The imaging system projects the scene onto an image sensor 301. The image sensor 301 may be equipped with a Bayer filter so that different pixels receive radiation in a specific wavelength range in a known pattern. Typically, each pixel of the captured image is represented by one or more values ​​that represent the intensity of the captured light within a certain wavelength band. These values ​​are usually called color components or color channels. The term “image” can refer to an image frame or video frame containing information from the image sensor that captured the image.

[0035] After reading the signals from individual sensor pixels of the image sensor 301, different image processing operations such as demosaicing and color correction may be performed.

[0036] The resulting image is transferred to the image processing pipeline 302. In the image processing pipeline 302, further processing is performed on the image. Such further processing may include noise filtering (to remove spatial and / or temporal noise), distortion correction (e.g., to remove the effects of barrel distortion), global and / or local tone mapping (e.g., to enable imaging of scenes with a wide range of intensities), transformation (e.g., rotation), flat-field correction (e.g., to remove vignetting), and application of overlays (e.g., privacy masks, captions). The image processing pipeline 302 may also be associated with an analysis engine that performs object detection, recognition, alarms, etc.

[0037] The image processing pipeline 302 may include an image processing section 302a and a video post-processing section 302b. The image processing section 302a can, for example, apply noise filtering, distortion correction, global and / or local tone mapping, transformation, and flat-field correction, as described above. The video post-processing section 302b can, for example, perform image stabilization, crop a portion of the image, apply overlays, and include an analysis engine.

[0038] Following the image processing pipeline 302, the image is transferred to a video encoder 303, sometimes called an encoder 303, where the information within the image frame is encoded according to an encoding protocol in a known way such as H.264, and then transferred to a receiving client, video server 260, storage 270, etc., exemplified here with a monitor 280.

[0039] The video encoding process generates a number of values ​​that must be encoded to form a compressed bitstream. These values ​​are Quantization transformation coefficients and, Information that allows the decoder to recreate the prediction, Information regarding the structure of compressed data and the compression tools used during encoding, Information about the entire video sequence and It can include...

[0040] These values ​​and parameters (syntax elements) are converted into binary code using, for example, variable-length code and / or arithmetic code. Each of these encoding methods produces an efficient and compact binary representation of the information, also called an encoded bitstream. The encoded bitstream can then be stored and / or transmitted.

[0041] Here, exemplary methods for controlling video processing according to embodiments of this specification will be described with reference to the flowchart in Figure 4, and further to Figures 3a and 3b-3f. The methods for controlling video processing can be implemented, for example, in either the image processing apparatus shown in Figure 2a or Figure 2b. One or more of the following operations presented in Figure 4 may be performed in the following exemplary order. In other examples, the order may differ from that described below.

[0042] Operation 401 The image processing device 210 receives a stream of images 310 emitted from the image sensor 301. For example, in Figure 3a, the stream of images 310 contains six image frames. In chronological order, the image stream passes from the image sensor 301 through the image processing pipeline 302 and then to the encoder 303. The oldest frame is the frame furthest to the right. This relationship between frames and time also applies to Figures 3b-3f.

[0043] As described above and as shown in Figure 3a, the image processing pipeline 302 can receive a stream of images 310 emitted from the image sensor 301. Further processing is performed on the images in the image processing pipeline 302. Specifically, such further processing related to the embodiments herein may include, for example, applying a privacy mask to moving objects. The image processing pipeline 302 may also be associated with an analysis engine that performs object detection and recognition, particularly human / face detection, moving object detection, and background identification.

[0044] Operation 402 In Figure 3b, the image processing device 210 evaluates the content of image 311 in the stream 310. Image 311 may also be called an image frame 311, a video frame 311, or simply a frame 311. For example, the evaluation may include analysis related to masking or anonymizing image frame 311, such as determining what in image 311 should be displayed or covered. Such analysis and masking may be appropriate, for example, to ensure that a video complies with the European Union's General Data Protection Regulation (GDPR). In Figure 3b, the evaluation is performed by the evaluation module 304. There may be multiple evaluation modules, each performing a different evaluation on the evaluated image 311. These multiple evaluations may be performed at least partially in parallel.

[0045] As described later in operation 405, the completion of an evaluation may be used to control the insertion of empty frames into the stream of image 310, for example, when stopping the addition of empty frames. If there are multiple evaluations of image 311, the image processing device 210 can control the insertion of empty frames based on the completion of the last completed evaluation.

[0046] The synchronization module of the image processing device 210 can synchronize the display of image 311 with the evaluation process. For example, the synchronization module can obtain information on when the evaluation of image 311 is completed. Once the mask analysis of image frame 311 is complete, it can be considered a synchronized frame. A synchronized frame may mean that the mask and image frame 311 are synchronized by a timing relationship, such as a timestamp.

[0047] operation 403 While the analysis of image 311 is in progress, the image processing device 210 transfers portions 310a of the image stream 310 to the video encoder 303 in chronological order. The transferred portions 310a of the image stream 310 precede the image 311 being evaluated. This is also shown in Figure 3b. In Figure 3b, the transferred portions 310a of the image stream 310 include two image frames that precede the image 311 being evaluated. In this context, precedence means that these frames were captured in a time instance before the image 311 being evaluated was captured.

[0048] action 404 When encoder 303 receives the preceding portion 310a of the image stream 310, it begins encoding the information within the image frame of the preceding portion 310a according to an encoding protocol such as H.264. However, since the image 311 is evaluated over a specific finite time, if the evaluation takes longer than a certain time, the frame rate of the encoded image will decrease. For example, to obtain 30fps video from encoder 303, the encoder must receive a new frame every 33ms.

[0049] As described above in the overview, the above problem may be solved, for example, by sending a copy of the most recent and previously successfully synchronized video frame 331 to the encoder. However, this generates an undesirable extra system load that increases the power consumption of the image processing device 210 because the same frame is processed again.

[0050] According to embodiments of this specification, the above problem is solved by adding at least a first empty frame 320 to the end of the encoded image stream 330 corresponding to the transmitted image stream 310a until the evaluation is complete. This is shown in Figures 3c-e.

[0051] By adding at least a first empty frame 320 to the end of the encoded image stream 330, the image processing unit 210 saves power because the added empty frame 320 requires less image processing, and in some cases, no further image processing at all. The reduction in processing depends on where in the image processing pipeline 302 the function for synchronizing the video frame with the mask resides. For example, it is possible to remove all or part of the image processing pipeline 302, such as the video post-processing unit 302b, encoding, and part of the software processing of the encoded frame for streaming, and processing related to analysis applications performed on the processed image. Since the frame is known to be empty, there is no need to rerun the analysis application.

[0052] These added frames 320 can be inserted and discarded without affecting video quality, but without exhausting the performance of the image processing device 210, for example, by generating frame placeholders for the imaging system 300.

[0053] A further advantage of the embodiments herein is that the bandwidth required to transmit the encoded stream of image 330 is reduced compared to other methods of transmitting privacy-masked video. This is because the amount of data required to represent an empty frame 320 is considerably less than the amount of data required to represent a frame originating from the image sensor, or a copy of such a frame.

[0054] operation 405 To know when to add at least the first empty frame 320, the image processing device 210 can use signaling between different parts, such as between different software or hardware modules. For example, as described above in relation to operation 402, the synchronization module obtains information that the evaluation of image 311 is complete and then sends commands to start and / or stop adding the empty frame 320, which it sends to, for example, the append module or encoder 303.

[0055] For example, relating to Figure 3b, the synchronization module can obtain information from the evaluation module 304 indicating that the evaluation is complete. For example, in the case of multiple evaluations performed by multiple evaluation modules 304, the image processing device 210 can wait to send a command indicating the completion of the evaluation until all evaluations are complete. This is done, for example, to maintain synchronization between the mask and the original image.

[0056] Therefore, in some embodiments, the image processing device 210 transmits a command to add at least a first empty frame 320. The image processing device 210 may, for example, instruct an add-on module or any other software or hardware module to add at least a first empty frame 320.

[0057] In some embodiments, the image processing device 210 instructs the video encoder 303 to add at least a first blank frame 320. Figure 3d shows the addition of a blank image 320 by the encoder 303.

[0058] Commands may be transmitted until the evaluation of the image frame 311 is complete. For example, the image processing device 210 may transmit a first command to add at least a first empty frame 320, and then a further second command to add a further second empty frame 321 if it is necessary to add a new frame during evaluation. In general, multiple empty frames may be added. Figure 3e shows the addition of two empty frames, namely the first empty frame 320 and a further empty frame 321.

[0059] In some other embodiments, empty frames 320, 321 are added after an instruction to add at least a first empty frame 320 is received, for example, by an append module or encoder 303, and until a new instruction to stop adding empty frames is received. For example, both the first empty frame 320 and the additional empty frames 321 may be added based on only one instruction. The timing of adding empty frames may be predetermined.

[0060] Sending only the first instruction to initiate the addition of empty frames can be advantageous when many frames need to be added, as it reduces the number of instructions.

[0061] operation 406 As described above, while image 311 is being evaluated, for example, until the evaluation is complete, at least a first empty frame 320 is appended to the end of the encoded image stream 330 corresponding to the transmitted image stream 310a. The method for detecting and signaling the completion of the evaluation is described above in the descriptions of operations 402 and 405.

[0062] In some embodiments, the rate at which at least a first empty frame 320 is added to the end of the encoded image stream 330 follows a predetermined current image frame rate, such that the frame rate of the encoded image stream 330 remains constant. In other words, the rate at which empty frames 320 are injected into the encoded stream 330 can follow a set current image frame rate of the video, such that the rate of images leaving the encoder 303 remains constant. As described above, maintaining a certain desired frame rate may be beneficial to the internal processes of the image processing device 210, as well as to the receiver of the generated video stream.

[0063] In some embodiments, the previous frame is the most recently encoded frame 331, in other words, the immediately preceding frame 331, while in other embodiments, the previous frame is any previous frame, for example, the frame 333 before the immediately preceding frame.

[0064] The empty frame 320 may be a frame that has no encoding difference with respect to the previous frames 331, 333 of the encoded image stream 330. In some embodiments, the empty frame 320 may be a pre-calculated encoded frame. A pre-calculated encoded frame means that, instead of generating encoded frames using the encoder 303, the encoded frames are generated in advance by a software algorithm, for example, by encoding all empty frames 320 in the same way. Thus, the empty frame 320 can be a pre-calculated encoded frame that has no encoding difference with respect to the previous frames 331, 333 of the encoded image stream 330. For example, such a pre-calculated empty frame 320 may have one or more macroblocks indicating that there was no change with respect to the previous frames 331, 333. Such changes may relate to the image content of the previous frames 331, 333, such as pixel values.

[0065] In a further example, such a pre-calculated empty frame 320 may contain macroblocks, with only a single macroblock, such as the last macroblock, containing information indicating that there were no changes with respect to the previous frames 331, 333.

[0066] In some other embodiments, the empty frame 320 may include information indicating fixed motion relative to the previous frame. Such information may be based on calculated motion information, such as motion vectors calculated from a gyroscope.

[0067] In some embodiments, the empty frame 320 does not contain motion-compensated prediction information. Generally, the prediction information can be motion-compensated. Motion-compensated prediction information may include encoded motion vectors and prediction errors. Alternatively, in embodiments herein, the prediction information may indicate that there was no motion. This is sufficient information to recreate the prediction. Such prediction information may be included in encoded processing units, such as encoded macroblocks, for a normal frame. Thus, in some embodiments, the empty frame 320 does not contain encoded macroblocks. For example, in some embodiments, the macroblocks of the empty frame are not encoded by the encoder 303. Instead, the macroblocks may be pre-calculated, as described earlier.

[0068] Furthermore, in some embodiments, empty frames 320 do not contain encoded coefficients. Each encoded coefficient may be a weighted value relative to a standard basis pattern. When coupled in the decoder, the weighted basis pattern recreates blocks such as macroblocks of residual samples.

[0069] Alternatively, an empty frame may include a flag indicating that no macroblock was encoded. For example, the flag may be implemented as a metadata flag in the transport or container format, or as part of the codec metadata. Another implementation of the flag may use a quantization parameter (QP). Since the QP value is not required to decode empty frame 320, the QP value may be used as an identifier for empty frame 320, in other words, an empty frame marker. Thus, the identifier for empty frame 320 can correspond to a flag indicating that no macroblock was encoded. Empty frames can be easily identified by their identifier and, if necessary, deleted or discarded for other purposes. Therefore, on the client side, the flag provides a direct and low-cost means of indicating empty frame 320. In such a solution, the client does not need to parse the frame to find empty frame 320. For example, the normal QP value per slice in the slice header according to the H.264 / H.265 standard, or the base QP per frame, may be set to QP51. In the case of an empty frame, for example, a frame without encoded block residuals, the QP is not used by the decoder, and if QP51 is not used by encoder 303, it can be used as a "flag" to indicate an empty frame. The advantage of using the QP value is that no extra processing of the QP value is required, as it is already part of the video and is already ready to be used.

[0070] In some embodiments, video processing is not performed on empty frames 320; that is, video processing is not performed after the evaluation is complete.

[0071] In some embodiments, at least a first empty frame 320 at the end of the encoded image stream 330 is added after the encoder 303, and the empty frame 320 does not pass through the encoder 303. Figures 3c and 3e both illustrate the addition of an empty frame after the encoder 303. Figure 3c shows the addition of one empty frame 320 after the encoder 303, while Figure 3e shows the addition of two empty frames 320, 321 after the encoder 303. The advantage of adding the empty frame 320 after the encoder is that it can reduce power consumption compared to methods where the added frame needs to be encoded. Combinations of adding multiple empty frames 320, 321 inside and after the encoder 303 are also possible. For example, the first empty frame 320 can be added by the encoder 303, and the second empty frame 321 can be added after the encoder, and vice versa.

[0072] behavior 407 Once the evaluation of image 311 is complete, the image processing device 210 resumes transferring the stream of image 310 to the video encoder 303. This resumption includes transferring the evaluated image 311 to the video encoder 303.

[0073] Figure 3e shows the transfer of the evaluated image 311 to the encoder 303. In Figure 3f, image 311 has passed through the encoder 303 and been added to the encoded stream of the image, including the empty frame 320. Figures 3e and 3f further illustrate how further image evaluation may continue. In both Figures 3e and 3f, the empty frames 320 and 321 have already been added during the evaluation of image 311.

[0074] In Figures 3e and 3f, the buffer for masking analysis includes three buffer image frames, namely, a first buffer image frame 312, a second buffer image frame 313, and a third buffer image frame 314. To compensate for any added empty frames 320, 321, the next image for evaluation may be a subsequent image that follows sequentially after the evaluated image 311. In fact, the next image 313 for evaluation may depend on the number of empty frames 320, 321 added between the evaluated image 311 and the frame immediately preceding the evaluated image frame 311. In the case shown in Figure 3f, one empty frame is added, and therefore the image processing device 210 skips one image frame when it selects the next image for evaluation, namely the second buffer image frame 313. The skip is indicated by a crossover image frame, such as the next first buffer image frame 312 in Figure 3f. On the other hand, as shown in Figure 3e, if two frames 320 and 321 are added, the two images in the buffer, namely the first and second buffer image frames 312 and 313, may be skipped when selecting the next image frame for analysis, such as the third buffer image frame 314. When the next image is evaluated, a new empty frame is added in the same manner as described above.

[0075] In some embodiments, the next image for evaluation 313 is selected by skipping a number of frames corresponding to the number of added frames. The skipped frames may be dropped and not sent to the encoder.

[0076] The same procedure is possible even when multiple image frames are being evaluated in parallel, or at least partially in parallel.

[0077] The next image for evaluation depends on the number of added empty frames, thus maintaining the timing of the original stream of image 310, and therefore the video preserves its frame rate and remains unaffected. However, this method reduces the effective rate at which the image is updated.

[0078] Referring to Figure 5, schematic block diagrams of embodiments of the image processing apparatus 510 corresponding to the different image processing apparatuses in Figures 2a and 2b are shown. The image processing apparatus 510 is configured for video processing.

[0079] The image processing apparatus 510 may include a processing module 501, such as means for performing the methods described herein. These means can be implemented in the form of one or more hardware modules and / or one or more software modules.

[0080] The image processing device 510 may further include a memory 502. The memory may contain or store instructions, for example, in the form of a computer program 503, which may include computer-readable code units that, when executed on the image processing device 510, cause the image processing device 510 to perform a method of video processing.

[0081] According to some embodiments of this specification, the image processing apparatus 510, and / or processing module 501 comprises a processing circuit 504 as an exemplary hardware module, which may comprise one or more processors. Thus, the processing module 501 may be embodied in the form of the processing circuit 504, or "implemented thereby". Instructions may be executable by the processing circuit 504, causing the image processing apparatus 510 to operate to perform the method of Figure 4. As another example, instructions, when executed by the image processing apparatus 510, and / or processing circuit 504, can cause the image processing apparatus 510 to perform the method of Figure 4.

[0082] In view of the above, an image processing device 510 for video processing is provided as an example. Again, the memory 502 contains instructions that can be executed by the processing circuit 504, thereby the image processing device 510 performs the following in the manner shown in Figure 4: The system receives the stream of images 310 emitted from the image sensor 301. Evaluate the content of image 311 in stream 310, In chronological order, the portion 310a of the image stream 310, which is the portion 310a preceding the image 311 to be evaluated, is transferred to the video encoder 303, and Until the evaluation is complete, add at least one empty frame 320 to the end of the encoded image stream 330 corresponding to the transferred image stream 310a. It is possible to operate in order to perform the action.

[0083] Figure 5 further shows a carrier 505, or program carrier, which comprises a computer program 503 as directly described above. The carrier 505 may be one of the following: an electronic signal, an optical signal, a radio signal, or a computer-readable medium.

[0084] The image processing apparatus 510 can further operate to perform the method according to the detailed embodiment described above in relation to Figure 4.

[0085] Furthermore, the processing module 501 includes an input / output unit 506. According to one embodiment, the input / output unit 506 may include an image sensor 301 configured to capture an image 200.

[0086] In some embodiments, the image processing apparatus 510 and / or processing module 501 may include, as examples of hardware modules, one or more of the following: a receiving module 510, an evaluation module 520, a transfer module 530, an appending module 540, a transmitting module 550, and a resume module 560. In other embodiments, one or more of the above-described exemplary hardware modules may be implemented as one or more software modules.

[0087] Therefore, the image processing device 510 is configured for video processing. Accordingly, according to the various embodiments described above, the image processing device 510, and / or the processing module 501, and / or the receiving module 510 are configured to receive a stream of images 310 emitted from the image sensor 301.

[0088] The image processing device 510, and / or processing module 501, and / or evaluation module 520 are configured to evaluate the contents of the image 311 in the stream 310.

[0089] The image processing device 510, and / or the processing module 501, and / or the transfer module 530 may be configured to transfer portions 310a of the image stream 310 that precede the image 311 to be evaluated to the video encoder 303 in chronological order.

[0090] The image processing device 510, and / or the processing module 501, and / or the projection module 540 may be configured to append at least a first empty frame 320 to the end of the encoded image stream 330 corresponding to the transferred image stream 310a until the evaluation is complete.

[0091] In some embodiments, video processing is not performed on at least the first empty frame 320.

[0092] The image processing device 510, and / or the processing module 501, and / or the transmission module 550 may be configured to send commands to add at least a first empty frame 320 until the evaluation is complete.

[0093] The image processing device 510, and / or processing module 501, and / or restart module 560 may be configured to restart the transfer of the image 310 stream to the video encoder 303. Restarting includes transferring the evaluated image 311 to the video encoder 303.

[0094] As used herein, the term “module” can refer to one or more functional modules, each of which may be implemented as one or more hardware modules and / or one or more software modules and / or a combined software / hardware module. In some examples, a module may represent a functional unit implemented as software and / or hardware.

[0095] As used herein, the terms “computer program carrier,” “program carrier,” or “carrier” can refer to one of the following: electronic signals, optical signals, radio signals, and computer-readable media. In some examples, a computer program carrier may exclude transient propagating signals such as electronic signals, optical signals, and / or radio signals. Thus, in these examples, a computer program carrier may be a non-transient carrier such as a non-transient computer-readable medium.

[0096] As used herein, the term “processing module” may refer to one or more hardware modules, one or more software modules, or a combination thereof. Such modules may be hardware, software, or hardware-software composite modules, and may include receiving means, evaluation means, transfer means, addition means, transmission means, restart means, etc., as disclosed herein. For example, the expression “means” may refer to modules corresponding to the modules listed above in relation to the drawings.

[0097] As used herein, the term “software module” may refer to a software application, a dynamic link library (DLL), a software component, a software object, an object based on the Component Object Model (COM), a software component, a software function, a software engine, an executable binary software file, and the like.

[0098] The terms "processing module" or "processing circuit" here may include, for example, one or more processors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), etc. A processing circuit, etc., may comprise one or more processor kernels.

[0099] As used herein, the expression “configured / to do” may mean that a processing circuit is configured, configured, or operates in such a way as to be configured to perform one or more operations described herein by software and / or hardware configurations.

[0100] As used herein, the term “action” can refer to an action, step, operation, response, reaction, activity, etc. Note that an action described herein may be divided into two or more applicable sub-actions. Furthermore, note that two or more of the actions described herein may be combined into a single action.

[0101] As used herein, the term "memory" may refer to hard disks, magnetic storage media, portable computer diskettes or disks, flash memory, random access memory (RAM), etc. Furthermore, the term "memory" may also refer to the internal register memory of a processor, etc.

[0102] As used herein, the term “computer-readable media” may include Universal Serial Bus (USB) memory, DVD discs, Blu-ray discs, software modules received as a stream of data, flash memory, hard drives, memory sticks, multimedia cards (MMC), and memory cards such as Secure Digital (SD) cards. One or more of the aforementioned examples of computer-readable media may be offered as one or more computer program products.

[0103] As used herein, the term “computer-readable code unit” may be the text of a computer program, part of or all of a binary file representing a computer program in a compiled format, or something in between.

[0104] As used herein, the terms “number” and / or “value” may be any kind of number, such as a binary number, a real number, an imaginary number, or a rational number. Furthermore, “number” and / or “value” may be one or more characters, such as a character or string of characters. “Number” and / or “value” may also be represented by a bit string, i.e., 0s and / or 1s.

[0105] As used herein, the phrase “in some embodiments” is used to indicate that the features of the embodiments described may be combined with any other embodiments disclosed herein.

[0106] While various embodiments have been described, many different changes and modifications will become apparent to those skilled in the art. Therefore, the embodiments described are not intended to limit the scope of this disclosure.

Claims

1. 1. A method for controlling video processing, the method comprising: Receiving (401) a stream of images (310) emanating from an image sensor (301); evaluating (402) content of an image (311) in the stream (310), the evaluating (402) content of the image (311) in the stream (310) comprising an analysis related to masking or anonymizing the image frames (311); transferring (403) a portion (310a) of the image stream (310) in chronological order to a video encoder (303) while the analysis of the image (311) is in progress, the portion (310a) preceding the image (311) being evaluated; A method comprising: adding (406) at least a first empty frame (320) to the end of an encoded image stream (330) corresponding to the transferred image stream (310a), wherein the at least a first empty frame (320) does not contain an encoded difference with respect to a previous frame (331, 333) of the encoded image stream (330).

2. The method of claim 1, wherein the rate at which one or more empty frames (320) are added to the end of the encoded image stream (330) follows a predetermined current image frame rate such that the frame rate of the encoded image stream (330) remains constant.

3. 3. The method of claim 1 or 2, wherein the at least a first empty frame (320) is a pre-computed encoded frame having no encoded difference with respect to a previous frame (331, 333) of the encoded image stream (330).

4. 4. The method of claim 3, wherein the at least a first empty frame (320) includes one or more macroblocks that indicate no change in image content of the previous frame (331, 333).

5. 5. The method of claim 4, wherein the previous frame (331, 333) is the most recently encoded frame (331).

6. The method of any one of claims 1 to 5, wherein said at least a first empty frame (320) does not contain any encoded macroblocks.

7. The method of claim 1, wherein the at least a first empty frame (320) includes a flag indicating that a macroblock has not been encoded.

8. The method of claim 7, wherein the flag indicating that a macroblock was not encoded is a quantization parameter (QP).

9. The method according to any one of the preceding claims, wherein no video processing is performed on said at least a first empty frame (320).

10. The method according to any one of claims 1 to 9, wherein appending (406) the at least a first empty frame (320) to the end of the encoded image stream (330) is performed after the encoder (303), such that the at least a first empty frame (320) does not pass through the encoder (303).

11. The method according to claim 1, further comprising: sending (405) an instruction to add the at least a first empty frame (320) until the evaluation is complete.

12. The method according to claim 1, further comprising: and resuming (407) forwarding the stream of images (310) to the video encoder (303), said resuming including forwarding the evaluated images (311) to the video encoder (303).

13. An image processing device (210) configured to perform a method according to any one of claims 1 to 12.

14. A computer program (503) comprising computer readable code units which, when executed on an image processing device (210), cause the image processing device (210) to perform a method according to any one of claims 1 to 12.

15. A carrier (505) containing the computer program of claim 14, the carrier (505) being one of an electronic signal, an optical signal, a radio signal, and a computer readable medium.