System and method of processing masking region
11399142 · 2022-07-26
Assignee
Inventors
Cpc classification
H04N5/2621
ELECTRICITY
H04N19/174
ELECTRICITY
H04N19/46
ELECTRICITY
H04N19/132
ELECTRICITY
G06V10/25
PHYSICS
H04N19/66
ELECTRICITY
G06V10/50
PHYSICS
H04N5/272
ELECTRICITY
International classification
H04N5/262
ELECTRICITY
H04N5/272
ELECTRICITY
Abstract
A system for processing a masking region includes a transmitter configured to detect an object region, on which masking is to be performed, from an input image through a camera, convert the detected object region into a block region to perform masking, and encode and transmit an input image on which the masking is completed and a receiver configured to decode an image transmitted from the transmitted to extract a frame therefrom, detect a masked block region by units of extracted frames, and unmask the detected block region to restore the masked image to an original image.
Claims
1. A system for processing a masking region, the system comprising: a transmitter configured to detect an object region, on which masking is to be performed, from an input image through a camera, convert the detected object region into a block region to perform masking, and encode and transmit the input image on which the masking is completed; and a receiver configured to decode an image transmitted from the transmitter to extract a frame therefrom, detect a masked block region by units of extracted frames, and unmask the detected block region to restore the masked image to an original image; wherein the receiver divides the frame of the image into blocks each having a predetermined size and calculates a histogram from a divided block to detect a masked block region; and wherein the receiver calculates a standard deviation of the histogram in the divided block, and when the calculated standard deviation is equal to or less than a predetermined threshold value, the receiver labels the divided block as a masked block.
2. The system of claim 1, wherein the transmitter detects the object region, expressed as coordinate information, from the input image through the camera.
3. The system of claim 2, wherein the coordinate information comprises a start x coordinate of the object region, a start y coordinate of the object region, a width of the object region, and a height of the object region.
4. The system of claim 2, wherein the transmitter divides the frame of the input image into blocks each having a predetermined size and converts the object region expressed as the coordinate information into the block region.
5. The system of claim 4, wherein the transmitter checks whether the detected object region is included in the block region, and when it is checked that the detected object region is included in the block region, the transmitter labels the object region as a block on which masking is to be performed.
6. The system of claim 1, wherein the receiver binarizes the transmitted image to convert the transmitted image into a binary image.
7. A method of setting a masking region in a transmitter, the method comprising: detecting an object region, on which masking is to be performed, from an input image through a camera; converting the detected object region into a block region; performing masking on a converted block region; and encoding and transmitting the input image on which the masking is completed; wherein the converting of the detected object region into the block region comprises: dividing a frame of the input image into blocks each having a predetermined size; converting the object region expressed as coordinate information into the block region; checking whether the detected object region is included in the block region; and when it is checked that the detected object region is included in the block region, labeling the object region as a block on which masking is to be performed; and wherein the checking whether the detected object region is included in the block region includes applying equation B.sub.i, j, where wherein the checking whether the detected object region is included in the block region includes applying equation B.sub.i, j, where
8. The method of claim 7, wherein the detecting of the object region comprises detecting the object region, expressed as the coordinate information, from the image.
9. The method of claim 8, wherein the coordinate information comprises a start x coordinate of the object region, a start y coordinate of the object region, a width of the object region, and a height of the object region.
10. A method of detecting a masking region in a receiver, the method comprising: decoding an image transmitted from a transmitter to extract a frame therefrom; detecting a masked block region by units of extracted frames; and unmasking the detected block region to restore the masked image to an original image; wherein the detecting of the masked block region comprises dividing the frame of the image into blocks each having a predetermined size; and calculating a histogram from a divided block to detect the masked block region; and wherein the calculating of the histogram comprises: calculating a standard deviation of the histogram in the divided block; and when the calculated standard deviation is equal to or less than a predetermined threshold value, labeling the divided block as a masked block.
11. The method of claim 10, wherein the decoding of the image comprises binarizing the transmitted image to convert the transmitted image into a binary image.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
DETAILED DESCRIPTION OF EMBODIMENTS
(13) Hereinafter, embodiments of the present invention will be described in detail to be easily embodied by those skilled in the art with reference to the accompanying drawings. The present invention may, however, be embodied in many different forms and should not be construed as being limited to the embodiments set forth herein. The present invention may, however, be embodied in many different forms and should not be construed as being limited to the embodiments set forth herein. In the accompanying drawings, a portion irrelevant to a description of the present invention will be omitted for clarity. Like reference numerals refer to like elements throughout.
(14) In this disclosure below, when it is described that one comprises (or includes or has) some elements, it should be understood that it may comprise (or include or has) only those elements, or it may comprise (or include or have) other elements as well as those elements if there is no specific limitation.
(15) The present invention relates to a system 100 and method of processing a masking region.
(16) Indiscreet photographing and image leakage, which use smartphones, vehicle black boxes, or drones personalized along with closed-circuit television (CCTV) provided for social safety, cause invasion of privacy and an side effect of an image.
(17) In order to solve such a problem, privacy masking technology has been developed, and an ex-post masking service is applied for actual crime investigation.
(18) In an embodiment of the present invention, in providing privacy masking technology, privacy region information may be included in a moving image, or in extracting masking region information included in a moving image so as to restore an original image of a masked image, block-based technology may be applied, thereby enabling a transmitter 110 and a receiver 120 to share the masking region information without additional information.
(19) Hereinafter, the masking region processing system 100 according to an embodiment of the present invention will be described with reference to
(20)
(21) The masking region processing system 100 according to an embodiment of the present invention may include the transmitter 110 and the receiver 120.
(22) The transmitter 110 may detect an object region, on which masking is to be performed, from an input image through a camera 10 and may convert the detected object region into a block region to perform masking. Also, the transmitter 110 may encode an input image on which the masking is completed and may transmit an encoded image to the receiver 120.
(23) The receiver 120 may decode the image transmitted from the transmitter 110 to extract a frame, detect a masked block region by units of extracted frames, and unmask the detected block region to restore the masked image to an original image.
(24) Referring to
(25) The communication module 210 may transmit and receive data between the camera 10, the transmitter 110, and the receiver 120. The communication module 210 may include a wired communication module and a wireless communication module. The wired communication module may be implemented as a power cable communication device, a phone wire communication device, cable home (MoCA), Ethernet, IEEE1294, an integrated cable home network, or an RS-485 control device. Also, the wireless communication module may be implemented as wireless local area network (WLAN), Bluetooth, high data rate (HDR) wireless personal area network (WPAN) (HDR WPAN), ultra-wideband (UWB), ZigBee, impulse radio, 60 GHz WPAN, binary-code division multiple access (binary-CDMA), wireless universal serial bus (USB) technology, or wireless high definition media interface (HDMI).
(26) The memory 220 may store a program for setting and transmitting a masking region and a program for detecting a masking region, and the processor 230 may execute the programs stored in the memory 220.
(27) For example, the memory 220 may include NAND flash memory such as a compact flash (CF) card, a secure digital (SD) card, a memory stick, a solid state drive (SSD), and a micro-SD card, a magnetic computer memory device such as a hard disk driver (HDD), and optical disk drive such as CD-ROM and DVD-ROM.
(28) In the masking region processing system 100 according to an embodiment of the present invention, each of the transmitter 110 and the receiver 120 may be configured as an independent server computer and may be operated. In this case, each of the transmitter 110 and the receiver 120 may include the communication module 210, the memory 220, and the processor 230 described above.
(29) On the other hand, the masking region processing system 100 may be implemented as a type where a program for setting and transmitting a masking region in the transmitter 110 and a program for detecting a masking region in the receiver 120 are installed in one server computer and are operated mutually.
(30) For reference, the elements according to an embodiment of the present invention illustrated in
(31) However, “elements” are not meanings limited to software or hardware, and each element may be configured to reside in an addressable storage medium and configured to execute on one or more processors.
(32) Thus, an element may include, by way of example, components, such as software components, object-oriented software components, class components and task components, processes, functions, attributes, procedures, subroutines, segments of program code, drivers, firmware, microcode, circuitry, data, databases, data structures, tables, arrays, and variables.
(33) The functionality provided for in the components and modules may be combined into fewer components and modules or further separated into additional components and modules.
(34) Hereinafter, a masking region setting method performed in the transmitter 110 and a masking region detecting method performed in the receiver 120, according to an embodiment of the present invention, will be described with reference to
(35)
(36) The masking region setting method according to an embodiment of the present invention may first detect an object region from an input image through the camera 10 on the basis of object detection technology in step S110.
(37) For example, a step of detecting an object region on which masking is to be performed may be a process of detecting an object region, expressed as coordinate information, from the input image through the camera 10.
(38) In this case, the object region detected from the input image may be expressed as coordinate information such as (x, y, width, height). Here, x may denote a start x coordinate of the object region, y may denote a start y coordinate of the object region, width may denote a width of the object region, and height may denote height information about the object region.
(39) Subsequently, the transmitter 110 may convert the object region, expressed as the coordinate information, into a block region in step S120 and may perform masking on a converted block region in step S130.
(40) To describe in detail steps S110 to S130 with reference to
(41) Subsequently, the transmitter 110 may divide the frame of the input image into blocks each having a predetermined size in step S230. For example, the predetermined size may be 64×64 pixels or 32×32 pixels.
(42) Subsequently, the transmitter 110 may convert the object region expressed as the coordinate information into a block region on the basis of the following Equation (1) in step S40.
(43)
(44) In Equation (1), B.sub.i,j may denote a block, disposed i.sup.th on the x axis and j.sup.th on the y axis, of the input image, and B.sub.i,j(x,y) may denote (x,y) coordinates included in B.sub.i,j.
(45) Also, O.sub.k may denote an object which is detected k.sup.th in the input image, and O.sub.k(x,y) may denote (x,y) coordinates included in O.sub.k.
(46) Subsequently, the transmitter 110 may check whether the detected object region is included in the block region in step S250, and when the detected object region is included in the block region, the transmitter 110 may label the object region as a block on which masking is to be performed in step S260.
(47) That is, when O.sub.k(x,y) is included in B.sub.i,j(x,y), B.sub.i,j may be 1 and may be labeled as a masking block, and otherwise, Bi,j may be 0 and may not correspond to a masking block.
(48) An embodiment of a process illustrated in
(49)
(50) As in
(51)
(52) In coordinate information-based masking Pin
(53) On the other hand, the block-based masking P8 illustrated in
(54) Referring again to
(55)
(56) As the transmitter 110 encodes and transmits an input image on which masking is completed, the receiver 120 may decode an image transmitted from the transmitter 110 to extract a frame from the image in step S310.
(57) Subsequently, the receiver 110 may detect a block region on which masking has been performed by units of extracted frames in step S320 and may unmask the detected block region to restore a masked image to an original image in step S330.
(58) Specifically, as
(59) Moreover, the receiver 120 may calculate a histogram from a divided block and may check whether the divided block is a masked block, based on the following Equation (2). That is, the receiver 120 may calculate a standard deviation of the histogram in step S440, and compares the calculated standard deviation with a predetermined threshold value in step S450.
(60) As the results, when the calculated standard deviation is equal to or less than a predetermined threshold value, the receiver 120 may label the divided block as a masked block in step S460.
(61)
(62) In Equation (2), B.sub.i,j may denote a block, disposed i.sup.th on the x axis and j.sup.th on the y axis, of the input image, and h.sub.i,j(B.sub.i,j) may denote a histogram of B.sub.i,j. Also, σ(h.sub.i,j(B.sub.i,j) may denote a standard deviation of h.sub.i,j(B.sub.i,j).
(63) When a value of the calculated standard deviation is equal to or less than the predetermined threshold value, B.sub.i,j may be 1 and may be labeled as a masking block, and otherwise, B.sub.i,j may be 0 and may not correspond to a masking block. In this case, the predetermined threshold value may be statistically calculated based on a feature of the input image.
(64)
(65)
(66) First, when a masked block is binarized and a binarized block. When a histogram of the binarized block after masking is calculated, the histogram may have the characteristic of histogram equalization as in
(67) Comparing with a histogram which is a binarization result of a non-masked block in
(68) In an embodiment of the present invention, a masking region may be detected based on a standard deviation feature of a histogram.
(69) As described above, according to the embodiments of the present invention, in a case which provides an image privacy masking service for restoring an original image, privacy region information may be additionally generated, managed, or stored, and thus, the transmitter and the receiver may not perform an undesired synchronization process, thereby providing an efficient service in terms of economy and technology.
(70) In description given above, steps S110 to S460 may be further divided into additional steps or may be combined as fewer steps, based on an implementation embodiment of the present invention. Also, some steps may be omitted depending on the case, and a sequence of steps may be changed. Furthermore, despite other omitted description, description given above with reference to
(71) The method according to the embodiments of the present invention may be implemented in the form of a storage medium that includes computer executable instructions, such as program modules, being executed by a computer. Computer-readable media may be any available media that may be accessed by the computer and includes both volatile and nonvolatile media, removable and non-removable media. In addition, the computer-readable media may include computer storage media and communication media. Computer storage media includes both the volatile and non-volatile, removable and non-removable media implemented as any method or technology for storage of information such as computer readable instructions, data structures, program modules, or other data. The medium of communication is a typically computer-readable instruction, and other data in a modulated data signal such as data structures, or program modules, or other transport mechanism and includes any information delivery media.
(72) The method and system according to the embodiments of the present invention have been described in association with a specific embodiment, but their elements, some operations, or all operations may be implemented by using a computer system having general-use hardware architecture.
(73) The foregoing description of the present invention is for illustrative purposes, those with ordinary skill in the technical field of the present invention pertains in other specific forms without changing the technical idea or essential features of the present invention that may be modified to be able to understand. Therefore, the embodiments described above, exemplary in all respects and must understand that it is not limited. For example, each component may be distributed and carried out has been described as a monolithic and describes the components that are to be equally distributed in combined form, may be carried out.
(74) A number of exemplary embodiments have been described above. Nevertheless, it will be understood that various modifications may be made. For example, suitable results may be achieved if the described techniques are performed in a different order and/or if components in a described system, architecture, device, or circuit are combined in a different manner and/or replaced or supplemented by other components or their equivalents. Accordingly, other implementations are within the scope of the following claims.