WO2014056171A1 - Method, apparatus and system for implementing video occlusion - Google Patents

Method, apparatus and system for implementing video occlusion Download PDF

Info

Publication number
WO2014056171A1
WO2014056171A1 PCT/CN2012/082784 CN2012082784W WO2014056171A1 WO 2014056171 A1 WO2014056171 A1 WO 2014056171A1 CN 2012082784 W CN2012082784 W CN 2012082784W WO 2014056171 A1 WO2014056171 A1 WO 2014056171A1
Authority
WO
WIPO (PCT)
Prior art keywords
occlusion
video data
video
area
monitoring
Prior art date
Application number
PCT/CN2012/082784
Other languages
French (fr)
Chinese (zh)
Inventor
宋端陵
王峰
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP12872312.9A priority Critical patent/EP2741237B1/en
Priority to CN201280001926.1A priority patent/CN103890783B/en
Priority to PCT/CN2012/082784 priority patent/WO2014056171A1/en
Publication of WO2014056171A1 publication Critical patent/WO2014056171A1/en

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B13/00Burglar, theft or intruder alarms
    • G08B13/18Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength
    • G08B13/189Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength using passive radiation detection systems
    • G08B13/194Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength using passive radiation detection systems using image scanning and comparing systems
    • G08B13/196Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength using passive radiation detection systems using image scanning and comparing systems using television cameras
    • G08B13/19678User interface
    • G08B13/19686Interfaces masking personal details for privacy, e.g. blurring faces, vehicle license plates

Definitions

  • Embodiments of the present invention relate to the field of video surveillance, and more particularly, to a method, apparatus, and system for implementing video occlusion.
  • the image data of the occlusion portion of the video is encrypted, and the processed video is sent to the monitoring terminal, and the authorized user can decrypt the image data of the occlusion portion of the received video to see To the full video, the unprivileged user cannot see the image of the occluded part.
  • the terminal of the unprivileged user can also obtain the image data of the occlusion part if the abnormality is used. When some data is decrypted, the image data of the occlusion portion can be seen, thereby causing a security risk.
  • the embodiments of the present invention provide a method, an apparatus, and a system for implementing video occlusion, which are used to solve the security problem caused by transmitting image data of an occlusion portion to terminals of users with different rights in the prior art.
  • a method for implementing video occlusion comprising:
  • the monitoring platform receives the video request sent by the first monitoring terminal, where the video request includes the device identifier, and the video data of the monitoring front-end device identified by the device identifier includes the non-occlusion video data corresponding to the non-occlusion area and the occlusion video of the corresponding occlusion area.
  • the monitoring platform determines whether the user of the first monitoring terminal has the right to obtain the first occlusion video data in the occlusion video data, where the first occlusion video data corresponds to the first occlusion region, and the first occlusion region Include some or all of the occlusion regions; If the determination result is yes, acquiring the first occlusion video data and the non-occlusion video data, sending the first occlusion video data and the non-occlusion video data to the first monitoring terminal, so that the first monitoring terminal merges the playback station Decoding the first occlusion video data and the non-occlusion video data; or combining the acquired first occlusion video data and the non-occlusion video data to obtain combined video data, and transmitting the combined video data Giving the first monitoring terminal;
  • the non-occlusion video data is acquired and sent to the first monitoring terminal.
  • the receiving, by the first monitoring terminal, the video request includes:
  • the occlusion area setting request includes a device identifier of the monitoring front end device and description information of the occlusion area
  • the description information of the occlusion area is separated from the complete video data received from the monitoring front-end device by the occlusion video data and the non-occlusion video data.
  • the obtaining, before the acquiring the first occlusion video data and the non-occlusion video data includes:
  • the video request includes a viewing time
  • the acquiring the non-occlusion video data specifically includes: acquiring video data corresponding to the viewing time in the non-occlusion video file;
  • the acquiring the first occlusion video data specifically includes: acquiring one or more video files corresponding to the first occlusion region associated with the non-occlusion video file according to the association relationship, and acquiring corresponding to the first occlusion region Video data corresponding to the viewing time in one or more video files.
  • the establishing the association relationship between the occlusion video file and the non-occlusion video file includes: recording a non-occlusion recording index and an occlusion recording index, where the non-occlusion recording index includes a device identifier of the monitoring front end device, a video start and end time, The non-occlusion video data indication information and the identifier of the non-occlusion video file, the occlusion recording index includes an occlusion video data indication information and an identifier of the occlusion video file; and establishing the non-occlusion recording index and the occlusion recording index Relationship
  • the acquiring the non-occlusion video data includes: the device identifier of the monitoring front-end device included in the video request, the viewing time, and the non-occlusion video data indication information included in the non-occlusion recording index, and the monitoring front-end device And acquiring, by the identifier of the non-occlusion video file, the non-occlusion video file according to the identifier of the non-occlusion video file included in the non-occlusion recording index, and acquiring the corresponding information in the non-occlusion video file. Viewing time video data;
  • the acquiring the first occlusion video data specifically includes: acquiring an occlusion recording index associated with the non-occlusion recording index according to the association relationship, and acquiring, according to the identifier of the occlusion recording file included in the occlusion recording index, corresponding to the first Blocking one or more video files of the area; and acquiring video data corresponding to the viewing time in one or more video files corresponding to the first occlusion area.
  • the acquiring the first occlusion video data and the non-occlusion video data, and sending the first occlusion video data and the non-occlusion video data to the first monitoring terminal specifically:
  • the message includes a data type, and is used to indicate that the video data corresponding to the acquired address is occlusion video data;
  • a method for implementing video occlusion is provided, the method comprising:
  • the monitoring terminal sends a video request to the monitoring platform, where the video request includes a device identifier, and the video data of the monitoring front-end device identified by the device identifier includes non-occlusion video data corresponding to the non-occlusion area and occlusion video data corresponding to the occlusion area;
  • the first occlusion video data and the non-occlusion video sent by the monitoring platform when determining that the user of the monitoring terminal has the right to acquire the first occlusion video data in the occlusion video data Data, and combining the first occlusion video data and the non-occlusion video data, where the first occlusion video data corresponds to a first occlusion region, and the first occlusion region includes some or all regions in the occlusion region Or,
  • the method before the combining the first occlusion video data and the non-occlusion video data, the method further includes: receiving, by the monitoring platform, the first occlusion region Description;
  • the combining the first occlusion video data and the non-occlusion video data includes: if the first occlusion video data includes one channel of video data, decoding the first occlusion video data to obtain an occlusion video data frame, Decoding the non-occluded video data to obtain a non-occlusion video data frame, extracting pixel data in the occlusion video data frame, and adding the extracted pixel data to the same as the occlusion video data frame according to the description information of the first occlusion region a pixel region corresponding to the first occlusion region in a time stamped non-occlusion video data frame to generate a complete video frame, and playing the complete Video frame; or,
  • the first occlusion video data includes multiple video data, decoding each video data in the first occlusion video data to obtain an occlusion video data frame of each video data, and decoding the non-occlusion video data to obtain a non-occlusion video a data frame, extracting pixel data in an occlusion video data frame having the same time stamp of each video data, and adding the extracted pixel data to a non-occlusion video data frame having the same time stamp as the occlusion video data frame.
  • the pixel area corresponding to the first occlusion area generates a complete video frame and plays the complete video frame.
  • the monitoring front-end device receives the description information of the occlusion area sent by the monitoring platform;
  • the monitoring front-end device encodes the captured video image into non-occlusion video data corresponding to the non-occlusion area and occlusion video data corresponding to the occlusion area according to the description information of the occlusion area; the monitoring front-end device to the monitoring platform Transmitting the non-occlusion video data and the occlusion video data, so that the monitoring platform sends the non-occlusion video data to the monitoring terminal when determining that the user of the monitoring terminal has the right to acquire the first occlusion video data
  • the first occlusion video data, or the non-occlusion video data is sent to the monitoring terminal when the user of the monitoring terminal does not have the right to acquire the first occlusion video data, where the first occlusion video data corresponds to a first occlusion region, the first occlusion region including some or all of the occlusion regions.
  • the description encodes a video image corresponding to the occlusion region in a captured video image into a path when the occlusion region includes an area.
  • Video data ;
  • the video picture corresponding to the plurality of areas included in the occlusion area in the captured video picture is encoded as one channel of video data, or the occlusion area included in the captured video picture is included
  • the video pictures corresponding to the plurality of areas are respectively encoded as one channel of video data, or the corresponding areas of the occlusion area included in the captured video picture are corresponding to the same
  • the video picture of the privileged area is encoded as one channel of video data.
  • the encoding the captured video picture into the occlusion video data corresponding to the occlusion area according to the description information of the occlusion area, specifically: encoding the video picture corresponding to the occlusion area in the captured video picture directly into the occlusion Video data; or, the video picture corresponding to the non-occlusion area in the captured video picture is padded with the set pixel value and encoded to generate the occlusion video data;
  • a monitoring platform includes: a video request receiving unit, a determining unit, an obtaining unit, and a video data sending unit;
  • the video request receiving unit is configured to receive a video request sent by the first monitoring terminal, where the video request includes a device identifier, where the video data of the monitoring front-end device identified by the device identifier includes non-occlusion video data corresponding to the non-occlusion region. And occlusion video data corresponding to the occlusion area;
  • the determining unit is configured to determine whether the user of the first monitoring terminal has the right to obtain the first occlusion video data in the occlusion video data, where the first occlusion video data corresponds to the first occlusion region,
  • An occlusion region includes some or all of the occlusion regions;
  • the acquiring unit is configured to acquire non-occlusion video data, and configured to acquire first occlusion video data when the determination result of the determining unit is YES;
  • the video data sending unit is configured to: when the determining result of the determining unit is yes, send, to the first monitoring terminal, the first occlusion video data and the non-occlusion video data acquired by the acquiring unit, The first monitoring terminal merges and plays the first occlusion video data and the non-occlusion video data, or merges the first occlusion video data and the acquired by the acquiring unit.
  • the non-occluded video data is obtained, and the combined video data is sent to the first monitoring terminal; and when the determining result of the determining unit is no, the first The monitoring terminal sends the non-occlusion video data acquired by the acquiring unit.
  • the monitoring platform further includes: a setting request receiving unit, a description information sending unit, and a first video data receiving unit;
  • the setting request receiving unit is configured to receive an occlusion area setting request sent by the second monitoring terminal, where the occlusion area is set
  • the request includes the device identifier of the monitoring front-end device and the description information of the occlusion area;
  • the description information sending unit is configured to send, to the monitoring front-end device, description information of the occlusion area;
  • the first video data receiving a unit configured to receive the non-occlusion video data and the occlusion video data generated according to the description information of the occlusion area sent by the monitoring front-end device; or
  • the monitoring platform further includes: a setting request receiving unit, a second video data receiving unit, and a video data separating unit;
  • the setting request receiving unit is configured to receive an occlusion area setting request sent by the second monitoring terminal, where the occlusion area is set The request includes the device identifier of the monitoring front-end device and the description information of the occlusion region;
  • the second video data receiving unit is configured to receive the complete video data sent by the monitoring front-end device; the video data separating unit, And omitting the occlusion video data and the non-occlusion video data from the complete video data received by the second video data receiving unit.
  • the monitoring platform further includes: a storage unit and an association establishing unit;
  • the storage unit is configured to store the occlusion video data into an occlusion video file, and store the non-occlusion video data into a non-occlusion video file, where the occlusion video file includes one or more video files;
  • the association relationship establishing unit is configured to establish an association relationship between the occlusion video file and the non-occlusion video file;
  • the video request receiving unit is specifically configured to receive a video request that is sent by the first monitoring terminal, including a viewing time;
  • the acquiring unit is specifically configured to acquire video data corresponding to the viewing time in the non-occlusion video file, and is specifically used to establish, according to the association relationship establishing unit, when the determining result of the determining unit is yes Obtaining one or more video files corresponding to the first occlusion area associated with the non-occlusion video file, and acquiring a video corresponding to the viewing time in one or more video files corresponding to the first occlusion area data.
  • a fifth aspect provides a monitoring terminal, where the monitoring terminal includes: a video request sending unit, a video data receiving unit, and a playing unit;
  • the video request sending unit is configured to send a video request to the monitoring platform, where the video request includes a device identifier, where the video data of the monitoring front-end device identified by the device identifier includes non-occlusion video data corresponding to the non-occlusion region and corresponding occlusion Occlusion video data of the area;
  • the video data receiving unit is configured to receive, by the monitoring platform, the first occlusion video data that is sent when the user of the monitoring terminal has the right to acquire the first occlusion video data in the occlusion video data.
  • the non-occlusion video data, the first occlusion video data corresponds to a first occlusion area, and the first occlusion area includes part or all of the occlusion area;
  • the playing unit is configured to perform the video data receiving unit to receive the video data.
  • the playing unit is specifically configured to: decode the first occlusion video data to obtain an occlusion video data frame, and decode the non-occlusion video data to obtain a non-occlusion video data frame.
  • a sixth aspect provides a monitoring front-end device, where the monitoring front-end device includes: a description information receiving unit, a video data encoding unit, and a video data sending unit;
  • the description information receiving unit is configured to receive description information of an occlusion area sent by the monitoring platform, where the video data encoding unit is configured to view video data according to the description information of the occlusion area;
  • the video data sending unit is configured to send the non-occlusion video data and the occlusion video data to the monitoring platform, so that the monitoring platform determines that the user of the monitoring terminal has the right to obtain the first occlusion video data. Transmitting the non-occlusion video data and the first occlusion video data to the monitoring terminal, or sending the location to the monitoring terminal when determining that the user of the monitoring terminal does not have the right to acquire the first occlusion video data For the non-occlusion video data, the first occlusion video data corresponds to a first occlusion region, and the first occlusion region includes some or all of the occlusion regions.
  • the video data encoding unit is configured to: when the occlusion area includes an area, encode a video picture corresponding to the occlusion area in the captured video picture as one channel of video data according to the description information of the occlusion area; or When the occlusion area includes a plurality of areas, the video picture corresponding to the plurality of areas included in the occlusion area in the captured video picture is encoded as one channel of video data according to the description information of the occlusion area, or the video to be captured The video pictures corresponding to the plurality of areas included in the occlusion area in the picture are respectively encoded as one channel of video data, or The video picture of the area corresponding to the same privilege in the plurality of areas included in the occlusion area is encoded as one channel of video data; and is further configured to: occlude the captured video picture according to the description information of the occlusion area Video frame coding corresponding to the district city
  • a seventh aspect provides a video surveillance system, where the video surveillance system includes: a monitoring terminal and a monitoring platform;
  • the monitoring terminal is specifically the monitoring terminal according to the fifth aspect or the first possible implementation manner of the fifth aspect;
  • the monitoring platform is specifically the monitoring platform as described in the fourth aspect or the first or second possible implementation manner of the fourth aspect.
  • the video monitoring system further includes a monitoring front end device, where the monitoring front end device is specifically the first possible implementation manner of the sixth aspect or the sixth aspect.
  • the monitoring front-end device is specifically the first possible implementation manner of the sixth aspect or the sixth aspect.
  • the monitoring platform determines the authority of the user of the monitoring terminal, and according to the result of the determination, sends only the non-occluded video data to the monitoring terminal of the user who does not have the right to obtain the occlusion video data.
  • the monitoring terminal of the user who obtains part or all of the occlusion video data transmits the occlusion video data and the non-occlusion video data to be combined and played, or transmits the video data combining the occlusion video data and the non-occlusion video data, thereby solving the existing In the technology, the terminal of the user with different rights is sent the security data caused by the occlusion part of the image data.
  • FIG. 1 is a schematic structural diagram of a system according to an embodiment of the present invention.
  • FIG. 2 is a schematic flow chart of a method provided by Embodiment 1 of the present invention
  • 3 is a schematic flowchart of a method according to an alternative embodiment of the present invention
  • FIG. 4 is a schematic diagram of a scenario of an exemplary embodiment 1 of Embodiment 1 of the present invention
  • FIG. 5 is a schematic flowchart of a method according to an exemplary embodiment 1 of Embodiment 1 of the present invention.
  • FIG. 6 is a schematic flowchart of a terminal processing according to an exemplary embodiment 1 of the present invention
  • FIG. 7 is a schematic diagram of a scenario of an exemplary embodiment 2 of Embodiment 1 of the present invention.
  • FIG. 8 is a schematic flow chart of a method according to an exemplary embodiment 2 of Embodiment 1 of the present invention.
  • FIG. 9 is a schematic diagram of a process flow of a platform according to an exemplary embodiment 2 of the present invention.
  • FIG. 10 is a schematic diagram of a scenario of an exemplary embodiment 3 of Embodiment 1 of the present invention.
  • FIG. 11 is a schematic flow chart of a method according to an exemplary embodiment 3 of Embodiment 1 of the present invention.
  • FIG. 12 is a schematic structural diagram of a device for monitoring a monitoring platform according to Embodiment 2 of the present invention
  • FIG. 15 is a schematic structural diagram of a device for monitoring a terminal provided by Embodiment 3 of the present invention.
  • FIG. 16 is a schematic structural diagram of a device for monitoring a front-end device according to Embodiment 4 of the present invention
  • FIG. 17 is a schematic structural diagram of another device of a monitoring platform according to Embodiment 5 of the present invention
  • FIG. 19 is a schematic structural diagram of another apparatus provided by Embodiment 8 of the present invention
  • FIG. 20 is a schematic structural diagram of a system provided by Embodiment 8 of the present invention.
  • FIG. 1 is a schematic structural diagram of a video surveillance system according to an embodiment of the present invention.
  • the video surveillance system includes a monitoring front-end device (PU), a monitoring platform 120, and a monitoring terminal 130.
  • the monitoring front-end device 110 and monitoring Terminals 130 each communicate with monitoring platform 120 via transport network 140.
  • the transmission network 140 may be one of the Internet, the local area network, the wide area network, the storage area network, or the like.
  • the manner in which the monitoring platform 120 accesses the network may be a wired access mode.
  • the manner in which the monitoring front-end device 110 and the monitoring terminal 130 access the network may be a wired access mode or a wireless access mode, where the wired access mode includes access mode through a network cable or access mode through an optical fiber, and wireless access
  • the method includes WIFI (for example, IEEE 802. l la, IEEE 802. l ib, IEEE 802. l lg and/or IEEE 802. l ln ), GSM (EDGE), WCDMA, CDMA, TD-SCDMA, Bluetooth, LTE, etc.
  • WIFI for example, IEEE 802. l la, IEEE 802. l ib, IEEE 802. l lg and/or IEEE 802. l ln
  • GSM EDGE
  • WCDMA CDMA
  • TD-SCDMA
  • the monitoring front-end device 110 is configured to collect video data and send the collected video data to the monitoring platform through the transmission network.
  • the non-occlusion video data corresponding to the non-occlusion region may be generated according to the description information of the set occlusion region.
  • the occlusion video data corresponding to the occlusion area is transmitted to the monitoring platform separately.
  • the hardware configuration of the monitoring front-end device 110 can be any type of camera device, such as a network camera such as a ball machine, a gun machine, or a dome camera, and an analog camera and an encoder.
  • the monitoring platform 120 is configured to receive the occlusion video data and the non-occlusion video data sent by the monitoring front end device 110 or separate the complete video data received from the monitoring front end device 110 into occlusion video data and non-occlusion video data, and according to the monitoring terminal
  • the user's right of 130 sends the corresponding video data to the monitoring terminal.
  • the occlusion video data and the non-occlusion video data can be sent to the monitoring terminal for combined play, and the occlusion video can also be occluded.
  • the data and the non-occluded video data are combined and sent to the monitoring terminal for playback.
  • the monitoring terminal 130 is configured to receive video data sent by the monitoring platform. If the received video data includes non-occlusion video data and occlusion video data, the monitoring terminal 130 is further configured to combine the occlusion video data and the non-occlusion video data.
  • FIG. 2 is a schematic flowchart of a method for implementing video occlusion according to Embodiment 1 of the present invention.
  • Step 210 Receive a video request sent by the first monitoring terminal, where the video request includes a device identifier, where the video data of the monitoring front-end device identified by the device identifier includes non-occlusion video data corresponding to the non-occlusion area and occlusion of the corresponding occlusion area.
  • Video data ;
  • the occlusion video data and the non-occlusion video data may be specifically encoded in the H.264 format.
  • the device identifier is used to uniquely identify the monitoring front-end device, and specifically includes the monitoring
  • the identifier of the camera of the front-end device may also include the identifier of the cloud mirror of the monitoring front-end device.
  • Step 220 Determine whether the user of the first monitoring terminal has the right to obtain the first occlusion video data in the occlusion video data.
  • the first occlusion video data corresponds to a first occlusion region, and the first occlusion region includes some or all of the occlusion regions;
  • the occlusion area may specifically include one or more areas, and the area may specifically be a rectangle, a circle, a polygon, or the like. If an area is included, the occlusion video data corresponding to the occlusion area may specifically include one channel of video data; if multiple areas are included, the occlusion video data corresponding to the occlusion area may specifically include one channel of video data, and may also include multiple channels of video data, such as Each area included in the occlusion area corresponds to one channel of video data.
  • the description information of the occlusion area may be used to describe the occlusion area, where the description information of the occlusion area specifically includes the coordinates of the occlusion area.
  • the description information of the occlusion area may include at least three of the rectangles.
  • the coordinates of the vertices may also include only the coordinates of a vertex of the rectangle and the width and height of the rectangle, such as (X, y, w, h), where ⁇ is the top left vertex ordinate, y is the upper left vertex ordinate, w For width, h height.
  • the occlusion video data may be subjected to overall authority control, that is, the authority to access the occlusion video data is divided into two privilege levels, and if the privileged access and the privileged access are available, the user may directly determine whether the user has the privilege to access the occlusion video.
  • overall authority control that is, the authority to access the occlusion video data is divided into two privilege levels, and if the privileged access and the privileged access are available, the user may directly determine whether the user has the privilege to access the occlusion video.
  • the first occlusion video data is the occlusion video data
  • the first occlusion region is the occlusion region (ie, the entire region including the occlusion region); specifically, It is also possible to perform area-based authority control on the occlusion video data, and set respective rights for different areas, that is, video data corresponding to different areas may correspond to different rights, for example, the occlusion area includes three areas, area 1 and area. 2 Corresponding to the authority A, the area 3 corresponds to the authority B.
  • the occlusion area includes three areas, the area 1 corresponds to the authority A, the area 2 corresponds to the authority B, and the area 3 corresponds to the authority C, and it is necessary to determine whether the user has the right to access the specific area. Corresponding occlusion video data.
  • the authority determination may be performed according to the password, for example, if it is determined that the password used to acquire the first occlusion video data received from the first monitoring terminal is correct (ie, the user inputs the correct password) Code), then determine that the user has the right to obtain the first occlusion video data.
  • the user may perform the permission determination according to the user identifier of the user of the first monitoring terminal.
  • the authorized user identifier may be pre-configured. If the user identifier matches the authorized user identifier, determining that the user has acquired the first occlusion video.
  • the authority of the data may also be pre-configured. If the account type corresponding to the user identifier matches the authorized account type, it is determined that the user has the right to obtain the first occlusion video data.
  • the user identifier can be obtained by the user in the process of logging in through the monitoring terminal.
  • the video request received by the step 210 can carry the user identifier, and the user identifier carried in the video request can be obtained.
  • Step 230 Obtain first occlusion video data and non-occlusion video data, and send first occlusion video data and non-occlusion video data to the first monitoring terminal, so that the first monitoring terminal merges and plays the first occlusion video data and non- Blocking the video data; or, combining the first occlusion video data and the non-occlusion video data, and transmitting the combined video data to the first monitoring terminal;
  • the data type of the occlusion video data may be sent to the first monitoring terminal, so that the first monitoring terminal identifies the occlusion video data from the received video data, which may be specifically sent to the first
  • the data type is included in the acquisition address (such as a URL) of the monitoring terminal for acquiring the occlusion video data, and may be included in the message sent to the first monitoring terminal for carrying the acquired address.
  • the data type may also be sent during the process of establishing a media channel between the first monitoring terminal and the monitoring platform for transmitting the occlusion video data.
  • the method further includes: sending the description information of the first occlusion area to the first monitoring terminal, so that the first monitoring terminal is configured according to the first occlusion area
  • the description information is combined with the first occlusion video data and the non-occlusion video data received in step 230, and may be included in an acquisition address (such as a URL) sent to the first monitoring terminal for acquiring the occlusion video data.
  • the description information may be further included in the message for carrying the acquisition address sent to the first monitoring terminal, or may be sent in the process of establishing a media channel for transmitting occlusion video data.
  • Step 230B Acquire the non-occlusion video data and send the data to the first monitoring terminal.
  • the specific implementation of step 23 OA and step 230B is as follows:
  • the acquiring the first occlusion video data and the non-occlusion video data, and sending the first occlusion video data and the non-occlusion video data to the first monitoring terminal may include: generating the first occlusion video data.
  • the address (such as a URL, which is hereinafter referred to as the acquisition address 1) and the acquisition address of the non-occlusion video data (such as a URL, which is hereinafter referred to as the acquisition address 2) are sent to the first monitoring terminal, and the received first address is sent by the first monitoring terminal.
  • the media channel for transmitting the non-occlusion video data is established with the first monitoring terminal according to the obtaining address 2, the non-occlusion video data is obtained according to the obtaining address 2, and the non-occlusion video data is sent by using the media channel.
  • the first occlusion video data is sent by the body channel.
  • the acquisition address of the first occlusion video data includes an acquisition address of the multiplex video data, and is subsequently established.
  • the media channel includes a plurality of media channels for transmitting the plurality of video data.
  • the data type is carried in the acquiring address (such as a URL) sent to the first monitoring terminal, and the data type is used to indicate whether the video data that can be acquired according to the acquiring address is non-occlusion video data or occlusion video data.
  • a URL carrying a data type is as follows:
  • rtsp refers to the real-time streaming protocol, which is called real time streaming.
  • the description information of the occlusion area corresponding to the occlusion video data may be carried in the acquisition address of the occlusion video data.
  • An example of a URL format that carries a description of the data type and occlusion area is as follows:
  • Example of occlusion of video data URL 1: rtsp: ⁇ 192.7.90.55: 554/ipc00001?type occlusion & occlusion coordinates 1 (xl, yl, wl, hl) & occlusion coordinates 2 (x2, y2, w2, h2), in
  • the occlusion video data corresponds to two occlusion regions;
  • the monitoring platform may further send the description information of the data type and/or the occlusion area to the first monitoring terminal by using a message interaction manner, for example, when returning the URL to the first monitoring terminal, by using the message carrying the URL.
  • the message body of the XML structure includes description information of the data type and/or occlusion area, as follows:
  • the description of the data type and/or the occlusion area is carried by the customized structure in the RTSP ANNOUNCE message, as follows:
  • step 230A the acquiring the first occlusion video data and the non-occlusion video data, combining the first occlusion video data and the non-occlusion video data, and transmitting the combined video data to the first monitoring terminal, specifically: generating Obtaining an acquisition address (such as a URL) of the merged video data, and sending the result to the first monitoring terminal, receiving a request that is sent by the first monitoring terminal and including the acquiring address, and establishing, according to the acquiring address, the first monitoring terminal. a media channel for transmitting the merged video data, acquiring and combining the first occlusion video data and the non-occlusion video data, and transmitting, by using the media channel, the merged video data to the first monitoring terminal.
  • an acquisition address such as a URL
  • the step 230B may include: generating an acquisition address of the non-occlusion video data, and sending the acquisition address to the first monitoring terminal, receiving a request for the acquisition address sent by the first monitoring terminal, and establishing the usage with the first monitoring terminal according to the obtaining address. And sending, by the media channel, the non-occlusion video data according to the non-occlusion video data acquisition address, and transmitting the non-occlusion video data through the media channel.
  • Embodiment 1 of the present invention An alternative embodiment of Embodiment 1 of the present invention will be described below with reference to FIG.
  • the CU (C ient Uni t, client unit) in this embodiment is a client software installed on the monitoring terminal, and provides real-time video monitoring, video query playback, cloud mirror operation and the like for the monitoring personnel.
  • the monitoring platform includes SCU (Service Contro l Uni t, Service Control Unit) and MU (Media Uni t, Media Unit).
  • SCU and MU may be implemented in the same general server or dedicated server, or may be in separate Implemented in different general purpose servers or dedicated servers.
  • Step 302 The SCU determines whether the user of the CU has the right to obtain the first occlusion video data in the occlusion video data, where the first occlusion video data corresponds to the first occlusion region, and the first occlusion region includes the Blocking some or all of the area in the area;
  • step 302 is the same as step 220, and details are not described herein again.
  • steps 303A-312A are performed.
  • the first occlusion video data includes one channel of video data
  • steps 303B-308B are performed.
  • Steps 303A-306A The SCU requests the URL of the first occlusion video data and the URL of the non-occlusion video data to the MU, where the MU generates the URL of the first occlusion video data and the non-occlusion video data.
  • the URL is returned to the SCU.
  • Step 307A The SCU returns a URL of the first occlusion video data and a URL of the non-occlusion video data to the CU.
  • Step 308A-309A The CU requests the MU to acquire the first occlusion video data according to the URL of the first occlusion video data, and establishes, by the MU, a media channel for transmitting the first occlusion video data. Receiving, by the media channel, the first occlusion video data sent by the MU.
  • Steps 310A-311A The CU requests the MU to acquire the non-occlusion video data according to the URL of the non-occlusion video data, and establish a media channel for transmitting the non-occlusion video data with the MU, and pass the The media channel receives the non-occlusion video data sent by the MU.
  • Step 312A The CU merges and plays the first occlusion video data and the non-occlusion video data.
  • Step 303B-304B The SCU requests a URL of the non-occlusion video data from the MU, and the MU generates a URL of the non-occlusion video data and returns the URL to the SCU.
  • Step 305B The SCU returns a URL of the non-occlusion video data to the CU.
  • Step 306B-307B The CU requests the MU to acquire the non-occlusion video data according to the URL of the non-occlusion video data, and establishes, with the MU, a medium for transmitting the non-occlusion video data. a body channel, and receiving, by the media channel, the non-occlusion video data sent by the MU.
  • Step 308B The CU plays the non-occlusion video data.
  • the monitoring platform determines the authority of the user of the monitoring terminal, and according to the result of the determination, only sends the non-occluded video data to the monitoring terminal of the user who does not have the right to obtain the occlusion video data.
  • a monitoring terminal having permission to acquire part or all of the video data occluding the occlusion video data and the non-occlusion video data to be combined and played, or transmitting video data combining the occlusion video data and the non-occlusion video data, thereby solving the present
  • the terminals of users with different rights are all sent to the occlusion part of the image data to cause security risks.
  • the area-based authority control can also be implemented, that is, if the occlusion area includes multiple areas, the respective rights can be set for different areas, and then the user is sent according to the rights of the user to the monitoring terminal of the user.
  • the occlusion video data corresponding to some or all areas that the user has permission to obtain, thereby achieving more precise authority control.
  • the first embodiment of the present invention can be used for both real-time video surveillance scenarios and video viewing scenarios (such as video playback and video downloading).
  • the non-occlusion video data is obtained from the non-occlusion video file
  • the non-occlusion video data is read from the non-occlusion video file in step 230A, 230B, and the occlusion video data in step OA is specifically read from the occlusion video file. Take occlusion video data.
  • step 210 the following operations are performed before step 210:
  • Storing the occlusion video data into an occlusion video file storing the non-occlusion video data into a non-occlusion video file, the occlusion video file including one or more video files, and establishing the occlusion video file and the The relationship of non-occlusion video files.
  • the establishing the association relationship between the occlusion video file and the non-occlusion video file includes: recording a non-occlusion recording index and an occlusion recording index, where the non-occlusion recording index includes a device identifier of the monitoring front end device, a video start and end time, Non-occlusion video data indication information and the non-occlusion
  • the identifier of the video file (such as the storage address of the non-occlusion video file, specifically the absolute path of the non-occlusion video file), the non-occlusion video data indication information is used to indicate that the non-occlusion video index is unobstructed video
  • the occlusion recording index includes an occlusion video data indication information and an identifier of the occlusion video file (such as a storage address of the occlusion video file, specifically an absolute path of the occlusion video file), the occlusion
  • the video data indication information is used to indicate that the occlusion recording index is an index of the non-oc
  • the non-occlusion index and the occlusion index may each include non-independent index indication information, where the non-independent index indication information is used to indicate that the index has an associated index, for example, a non-independent index indication of the non-occlusion recording index.
  • the information is used to indicate that the non-occlusion recording index has an associated occlusion recording index; the non-occlusion recording index and/or the occlusion recording index may further include occlusion area description information or information for acquiring occlusion area description information (such as occlusion) The storage address of the area description information).
  • the establishing the association relationship between the non-occlusion recording index and the occlusion recording index may include: recording the identifier of the occlusion recording index (such as an index number) into the non-occlusion recording index, and further comprising recording the non-occlusion video
  • the identifier of the index (such as the index number) is recorded in the occlusion recording index, and may also be an association relationship between the identifier of the occlusion recording index and the identifier of the non-occlusion recording index.
  • an occlusion recording index may be separately established for each video data, and an association relationship between the non-occlusion recording index and each occlusion recording index is established, and the optimal relationship is established.
  • the description information of the occlusion area corresponding to the video file or the information for obtaining the description information of the occlusion area corresponding to the video file is recorded in each occlusion recording index.
  • the video request sent in step 210 may also include a viewing time.
  • the acquiring the non-occlusion video data is specifically: acquiring the video data corresponding to the viewing time in the non-occlusion video file, which may include: according to the monitoring front end device identifier, the viewing time, and the non-occlusion video data.
  • the instruction information acquires the non-occlusion video index, obtains the non-occlusion video file according to the identifier of the non-occlusion video file in the non-occlusion recording index, and obtains the non-occlusion video data corresponding to the viewing time from the non-occlusion video file; in step 23 OA And acquiring, by the occlusion video data, the one or more corresponding to the first occlusion area associated with the non-occlusion video file according to the association relationship between the occlusion video file and the non-occlusion video file.
  • the video file, and the video data corresponding to the viewing time in the one or more video files corresponding to the first occlusion area specifically: according to the association relationship between the non-occlusion recording index and the occlusion recording index (for example, according to the occlusion video in the non-occlusion recording index Obtaining an occlusion recording index associated with the non-occlusion recording index, and acquiring one or more video files corresponding to the first occlusion area according to the identifier of the occlusion recording file included in the occlusion recording index; Corresponding to the video data corresponding to the viewing time in one or more video files of the first occlusion area.
  • the occlusion associated with the non-occlusion recording index may be determined according to the non-independent index indication information in the non-occlusion recording index. Video indexing, thereby improving the efficiency of the monitoring platform to retrieve the occlusion video index.
  • the acquiring address for acquiring non-occlusion video data may be generated according to the non-occlusion recording index and sent to the first monitoring terminal, and receiving a request for the non-occlusion video data acquisition address sent by the monitoring terminal, and establishing, by the non-occlusion video data acquisition address, a media channel for transmitting the non-occlusion video data according to the non-occlusion video data acquisition address, according to the Obtaining the non-occluded video data by the non-occlusion video data acquisition address, and sending the non-occlusion video data through the media channel, for example, as shown in FIG.
  • the SCU of the monitoring platform acquires the video request after receiving the video request a non-occlusion recording index, requesting, by the MU, a URL for acquiring the non-occlusion video data corresponding to the non-occlusion recording index according to the non-occlusion recording index, and sending the URL to the CU, where the MU receives the request for the URL sent by the CU, according to the request And the CU establishes a media channel for sending the non-occlusion video data, and reads non-occlusion video data in the video file according to the URL and sends the data to the CU through the media channel.
  • the process of transmitting the occlusion video data after acquiring the occlusion recording index is similar to the process of sending the non-occlusion video data after acquiring the non-occlusion recording index, and will not be described again.
  • the method before sending the first occlusion video data, the method further includes: sending the description information of the first occlusion area to the first monitoring terminal, so that the first monitoring terminal is configured according to the first occlusion area And the occlusion area description information included in the occlusion recording index corresponding to the first occlusion video data is obtained by combining the first occlusion video data and the non-occlusion video data received in step 230A.
  • the description information of the first occlusion area may be carried in the message that is sent to the first monitoring terminal and that is the location of the first occlusion video data.
  • the method further includes: receiving an occlusion area setting request sent by the second monitoring terminal, where the occlusion area setting request includes the device identifier of the monitoring front-end device and description information of the occlusion area;
  • the description information of the occlusion area may be sent to the monitoring front-end device, and received by the monitoring front-end device according to the The non-occlusion video data generated by the description information of the occlusion region and the occlusion video data; and the occlusion may be separated from the complete video data received from the monitoring front-end device according to the description information of the occlusion region Video data and the non-occlusion video data.
  • the occlusion video data and the non-occlusion video data may be sent to the first monitoring terminal for combined play by the first monitoring terminal, or the occlusion video data and the non-occlusion may be The video data is combined and sent to the first monitoring terminal.
  • the first monitoring terminal and the second monitoring terminal may be the same monitoring terminal.
  • the entity that generates the non-occlusion video data and the occlusion video data may be a monitoring front-end device or a monitoring platform
  • the entity that combines the non-occlusion video data and the occlusion video data may be a monitoring platform or a monitoring terminal ( That is, the first monitoring terminal of the first embodiment of the present invention, according to the difference between the entities performing the generating operation and the merging operation, three exemplary embodiments of the first embodiment of the present invention are respectively described below.
  • Example Embodiment 1 As shown in FIG.
  • the monitoring front-end device generates non-occlusion video data and occlusion video data
  • the monitoring platform uses non-occlusion video data and occlusion video data that the user has permission to acquire (such as the first occlusion video of this embodiment).
  • the data is sent to the monitoring terminal (such as the first monitoring terminal in this embodiment), and the monitoring terminal combines the received video data.
  • Step 401 The interaction flowchart of the exemplary embodiment 1 of Embodiment 1 of the present invention will be described below with reference to FIG. Step 401:
  • the second monitoring terminal sends an occlusion area setting request to the monitoring platform, where the occlusion area setting request includes description information of the device identifier and the occlusion area.
  • the occlusion area may specifically include one or more areas, and the area may specifically be a rectangle, a circle, a polygon, or the like.
  • the description information of the occlusion area specifically includes coordinates of the occlusion area.
  • the description information of the occlusion area may include coordinates of at least three vertices of the rectangle, or may only include one of the rectangles.
  • the coordinates of the vertex and the width and height of the rectangle such as (X, y, w, h), where X is the abscissa of the upper left vertex, y is the ordinate of the upper left vertex, w is the width, and h is the height.
  • Step 402 The monitoring platform sends an occlusion area setting request to the monitoring front-end device identified by the device identifier, where the occlusion area setting request includes description information of the occlusion area.
  • Step 403 The monitoring front end device encodes the captured video picture to generate occlusion video data and non-occlusion video data.
  • the monitoring front end device encodes the captured video picture into non-occlusion video data corresponding to the non-occlusion area and occlusion video data corresponding to the occlusion area.
  • the video picture corresponding to the occlusion area may be encoded into one channel of video data, that is, the occlusion video data includes one channel of video data.
  • the video picture corresponding to the multiple areas included in the occlusion area may be encoded as one channel of video data, that is, the occlusion video data includes one channel of video data;
  • Each of the video regions corresponding to the plurality of regions is encoded as one channel of video data, that is, the occlusion video data includes multiple video data and each region corresponds to one channel of video data; and the plurality of regions included in the occlusion region may also be included.
  • the video picture corresponding to the same privilege is encoded as one video data, that is, the area corresponding to the same privilege corresponds to the same video data.
  • the occlusion area includes three areas, and area 1 and area 2 correspond to the same authority, and area 3 corresponds to another area.
  • the video picture corresponding to area 1 and area 1 is encoded as the same video data
  • the video picture corresponding to area 3 is encoded as another video data.
  • the video picture corresponding to the occlusion area may be directly encoded into the occlusion video pixel data; or the video picture corresponding to the non-occlusion area in the captured entire video picture may be padded with the set pixel value and then encoded. Generating the occlusion video data, that is, the non-occlusion video data.
  • the format of the encoding includes but is not limited to H.264, MPEG4, MJPEG, and the like.
  • the video picture corresponding to the non-occlusion area may be directly encoded into the non-occlusion video.
  • the set pixel value is padded and encoded to generate the non-occluded video data, and the set pixel value is preferably RGB (0, 0, 0).
  • the occlusion video data is completely coincident with the time stamp of the video frame corresponding to the same full video picture in the non-occlusion video data.
  • the description information of the occlusion area is sent by the monitoring platform to the monitoring front-end device, and optionally, the description information of the occlusion area may also be at the monitoring front end. Pre-set on the device.
  • Step 404 Send the generated occlusion video data and non-occlusion video data to the monitoring platform.
  • the monitoring front-end device may further send a data type of the occlusion video data to the monitoring platform, so that the monitoring platform receives the data.
  • the occlusion video data is identified in the obtained video data, and the data type may be included in an acquisition address (such as a URL) sent to the monitoring platform for acquiring the occlusion video data (the monitoring platform may utilize the acquisition)
  • the obtaining the occlusion video data from the monitoring front-end device, or including the data type in the message sent to the monitoring platform for carrying the acquiring address, or establishing the monitoring platform and the monitoring front-end device
  • the data type is sent during the process of transmitting a media channel that occludes video data.
  • Step 405 The first monitoring terminal sends a video request to the monitoring platform, where the video request includes a device identifier of the monitoring front-end device.
  • Step 406 Determine whether the user of the first monitoring terminal has the right to obtain the first occlusion video data in the occlusion video data, where the first occlusion video data corresponds to the first occlusion region, and the first occlusion region includes Part or all of the occlusion area;
  • steps 407B-408B are performed.
  • Step 407A The monitoring platform sends the description information of the first occlusion area to the first monitoring terminal.
  • Step 408A The monitoring platform sends the first occlusion video data and non-occlusion video data to the first monitoring terminal.
  • Step 409A The first monitoring terminal combines and plays the received first occlusion video data and non-occlusion video data.
  • the received first occlusion video data and non-occlusion video data are combined and played according to the description information of the first occlusion region.
  • the first occlusion video data includes one channel of video data
  • decoding the first occlusion video data to obtain an occlusion video data frame
  • decoding the non-occlusion video data to obtain a non-occlusion video data frame
  • extracting occlusion video data Pixel data in the frame, and adding the extracted pixel data to the pixel region corresponding to the first occlusion region in the non-occlusion video data frame having the same time stamp as the occlusion video data frame according to the description information of the first occlusion region To generate a complete video frame and play the full video frame.
  • the occlusion video data frame includes only pixel data of the video picture corresponding to the occlusion area
  • extracting The occlusion of the pixel data in the video data frame is specifically: extracting all the pixel data in the occlusion video data frame; if the video picture corresponding to the non-occlusion area in the entire video picture is filled with the set pixel value during encoding
  • the pixel data of the occlusion frequency picture and the padded pixel data are encoded, and the pixel data of the pixel area corresponding to the first occlusion area in the occlusion video data frame is extracted according to the description information of the first occlusion area.
  • the first occlusion video data includes multiple video data, decoding each video data in the first occlusion video data to obtain an occlusion video data frame of each video data, and decoding the non-occlusion video data to obtain a non-occlusion video a data frame, extracting pixel data in an occlusion video data frame having the same time stamp of each video data, and adding the extracted pixel data to a non-occlusion video data frame having the same time stamp as the occlusion video data frame
  • the pixel area corresponding to the first occlusion area generates a complete video frame and plays the complete video frame.
  • the non-occlusion video data and the first occlusion video data are transmitted to the first monitoring terminal by using an RTP protocol, and the first monitoring terminal receives the unoccluded video data stream encapsulated by the RTP protocol.
  • the first occlusion video data stream respectively parsing the non-occlusion video data code Flowing and occluding the video data code stream to obtain non-occlusion video data and first occlusion video data and respectively buffering in the decoder buffer, synchronizing the frame data according to the synchronization time stamp, that is, extracting the non-occlusion video data and the first occlusion video data respectively Frame data having the same time stamp, respectively decoding the extracted frame data of the non-occluded video data having the same time stamp and the frame data of the first occlusion video data to generate corresponding YUV data, and then according to the description of the first occlusion region Information synthesis of the first occlusion video data
  • a request for acquiring video data is sent to the monitoring front-end device after step 404.
  • the monitoring front-end device may be requested to obtain video data that the user of the first monitoring terminal has permission to obtain according to the determination result of step 406. For example, if the user only has the right to obtain non-occlusion video data, only the non-requesting non-request is performed.
  • Blocking the video data if the user has the right to obtain the non-occluded video data and the first occlusion video data, requesting to acquire the non-occlusion video data and the first occlusion video data, and the monitoring front-end device generates the requested video data after receiving the request. And return to the monitoring platform.
  • the method for generating the non-occlusion video data and the first occlusion video data by the monitoring front-end device is the same as step 403, and details are not described herein.
  • Step 407B The monitoring platform forwards the non-occluded video data to the first monitoring terminal;
  • Step 408B The first monitoring terminal plays the received non-occluded video data.
  • Example Embodiment 2 As shown in FIG. 7, the monitoring front-end device generates non-occlusion video data and occlusion video data, and the monitoring platform combines the non-occlusion video data and the occlusion video data (ie, the first occlusion video data) that the user has permission to acquire. Send to the monitoring terminal.
  • step 507A-510A is performed
  • step 506 If the answer of step 506 is no, steps 507B-508B are performed. Step 507A: Same as step 407A;
  • Step 508A The monitoring platform merges the non-occlusion video data and the first occlusion video data.
  • the first occlusion video data and the non-occlusion video data are merged according to the description information of the occlusion region received in step 401.
  • the first occlusion video data includes one channel of video data
  • decoding the first occlusion video data to obtain an occlusion video data frame
  • decoding the non-occlusion video data to obtain a non-occlusion video data frame
  • extracting the occlusion Pixel data in a video data frame adding the extracted pixel data to a pixel region corresponding to the occlusion region in a non-occlusion video data frame having the same time stamp as the occlusion video data frame, generating a complete video frame, and encoding the Complete video frame to get the combined video data.
  • the occlusion video data frame includes only the pixel data of the video picture corresponding to the occlusion area
  • the occlusion video is extracted.
  • the pixel data in the data frame is specifically: extracting all the pixel data in the occlusion video data frame; if the video picture corresponding to the non-occlusion area in the entire video picture is filled with the set pixel value and then encoding and generating at the time of encoding
  • the pixel data of the first occlusion video number and the padded pixel data extract pixel data of a pixel region corresponding to the first occlusion region in the occlusion video data frame.
  • the first occlusion video data includes multiple video data, decoding each video data in the first occlusion video data to obtain an occlusion video data frame of each video data, and decoding the non-occlusion video data to obtain a non-occlusion video a data frame, extracting pixel data in an occlusion video data frame having the same time stamp of each video data, and adding the extracted pixel data to a non-occlusion video data frame having the same time stamp as the occlusion video data frame.
  • the pixel area corresponding to the occlusion area generates a complete video frame, and encodes the complete video frame to obtain the combined video data.
  • the non-occlusion video data and the first occlusion video data are transmitted to the monitoring platform by using an RTP protocol, and the monitoring platform receives the non-occluded video data stream and the first occlusion encapsulated by the RTP protocol.
  • the processing after the video data stream is connected to the first monitoring terminal in step 409A.
  • the processing after receiving the stream is similar, except that the first monitoring terminal synthesizes the YUV data and then renders the playback, and the monitoring terminal synthesizes the YUV data to encode the synthesized YUV data to generate the combined video data.
  • Step 509A Send the combined video data to the first monitoring terminal.
  • Step 510A The first monitoring terminal directly decodes and plays the combined video data.
  • Example Embodiment 3 As shown in FIG. 10, the monitoring front-end device generates complete video data, and the monitoring platform separates the occlusion video data from the complete video data received from the monitoring front-end device. The video data is occluded, and the non-occlusion video data and the occlusion video data that the user has permission to acquire are respectively sent to the monitoring terminal, and the monitoring terminal combines the received occlusion video data and the non-occlusion video data.
  • the interaction flowchart of the exemplary embodiment 3 of the embodiment 1 of the present invention is described below with reference to FIG. Step 601: Same as step 401, no further description;
  • Step 602 The monitoring front-end device encodes the captured video picture to generate complete video data and sends the video data to the monitoring platform.
  • Step 603 The monitoring platform separates the occlusion video data corresponding to the occlusion area and the non-occlusion video data corresponding to the non-occlusion area from the complete video data according to the description information of the video occlusion area received in step 601;
  • the video picture corresponding to the occlusion area in the complete video data may be encoded into one channel of video data, that is, the occlusion video data includes one channel of video data.
  • the video picture corresponding to the multiple areas included in the occlusion area in the complete video data may be encoded as one channel of video data, that is, the occlusion video data includes one channel of video data;
  • the video pictures corresponding to the plurality of areas included in the occlusion area in the complete video data may be separately encoded into one video data, that is, the occlusion
  • the video data includes multiple video data, and each area corresponds to one video data.
  • the video picture of the area corresponding to the same right in the multiple areas included in the occlusion area may be encoded into one video data, that is, an area corresponding to the same authority.
  • the occlusion area includes three areas, area 1 and area 2 correspond to the same authority, and area 3 corresponds to another authority, and the video pictures corresponding to area 1 and area 2 are encoded as the same video data, area. 3 The corresponding video picture is encoded as another video data.
  • the video image corresponding to the occlusion area may be directly encoded into the occlusion video data, including: decoding the complete video data to obtain a complete video frame, and extracting a video corresponding to the occlusion area in the complete video frame.
  • the video data of the occlusion video data is generated by the pixel data of the picture; the video picture corresponding to the non-occlusion area in the entire video picture may be padded with the set pixel value to generate the occlusion video data, including: decoding
  • the complete video data is obtained as a complete video frame, and pixel data of the video picture corresponding to the pixel value range of the pixel corresponding to the pixel area of the non-occlusion area in the complete video frame and the filled pixel data.
  • the non-occlusion video data corresponding to the non-occlusion area is separated, and the video picture corresponding to the non-occlusion area is directly encoded into the non-occlusion video data, including: decoding the complete video data to obtain a complete video frame, and extracting the The video data of the video frame corresponding to the non-occlusion area in the complete video frame is used to generate the video frame of the non-occlusion video data.
  • the video image corresponding to the occlusion area in the entire video picture may be used.
  • And encoding the non-occlusion video data after the predetermined pixel value is filled including: decoding the complete video data to obtain a complete video frame, and setting a pixel value of a pixel of a pixel region corresponding to the occlusion region in the complete video frame to The determined pixel value; the set pixel value is preferably RGB (0, 0, 0).
  • the occlusion video data is completely coincident with the time stamp of the video frame corresponding to the same full video picture in the non-occlusion video data.
  • the format of the encoding includes but is not limited to H.264, MPEG4, MJPEG, and the like.
  • Steps 604-605 the same steps 405-406; If the answer of step 605 is yes, perform steps 606A-608A;
  • step 605 If the answer of step 605 is no, steps 606B-607B are performed.
  • Steps 606A-608A same steps 407A-409A;
  • Steps 606B-607B Same as step 407B_408B.
  • the foregoing method embodiments for the sake of brevity, they are all described as a series of combinations of actions, but those skilled in the art should understand that the present invention is not limited by the described order of actions, because according to the present invention, Some steps can be performed in other orders or at the same time.
  • the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention. According to Embodiment 1 of the present invention, Embodiment 2 of the present invention proposes a monitoring platform 500.
  • the monitoring platform includes: a video request receiving unit 501, a determining unit 502, an obtaining unit 503, and a video data sending unit 504;
  • the video request receiving unit 501 is configured to receive a video request sent by the first monitoring terminal, where the video request includes a device identifier, where the video data of the monitoring front-end device identified by the device identifier includes a non-occlusion video corresponding to the non-occlusion area.
  • the video data corresponds to the first occlusion area, and the first occlusion area includes part or all of the occlusion area;
  • the acquiring unit 503 is configured to acquire non-occlusion video data, and is used for determining by the determining unit 502. The result is that the first occlusion video data is obtained when yes;
  • the video data sending unit 504 is configured to: when the determining result of the determining unit 502 is YES, send the first occlusion video data and the non-occlusion obtained by the acquiring unit 503 to the first monitoring terminal.
  • Video data such that the first monitoring terminal merges the first occlusion video data and the non-occlusion video data, or merges the first occlusion obtained by the acquiring unit 503
  • the video data and the non-occlusion video data are combined to obtain the combined video data, and the combined video data is sent to the first monitoring terminal; and when the determination result of the determining unit 502 is negative, Transmitting the non-occlusion video data acquired by the obtaining unit 503 to the first monitoring terminal.
  • the monitoring platform further includes: a setting request receiving unit 505;
  • the setting request receiving unit 505 is configured to receive an occlusion area setting request sent by the second monitoring terminal, where the occlusion area setting request includes the device identifier of the monitoring front-end device and description information of the occlusion area;
  • the monitoring platform further includes: a description information sending unit 506 and a first video data receiving unit 507; the description information sending unit 506, configured to send a description of the occlusion area to the monitoring front-end device
  • the first video data receiving unit 507 is configured to receive the non-occlusion video data and the occlusion video data generated by the monitoring front-end device according to the description information of the occlusion region; or
  • the monitoring platform further includes: a second video data receiving unit 508 and a video data separating unit 509; the second video data receiving unit 508 is configured to receive the complete video data sent by the monitoring front-end device.
  • the video data separating unit 509 is configured to separate the occlusion video data and the non-occlusion video data from the complete video data received by the second video data receiving unit.
  • the monitoring platform further includes: a storage unit and an association relationship establishing unit; the storage unit is configured to store the occlusion video data into an occlusion video file, and store the non-occlusion video data into the non-occlusion video recording In the file, the occlusion video file includes one or more video files;
  • the association relationship establishing unit is configured to establish an association relationship between the occlusion video file and the non-occlusion video file;
  • the video request receiving unit 501 is specifically configured to receive a video request that includes a viewing time sent by the first monitoring terminal;
  • the acquiring unit 503 is specifically configured to acquire video data corresponding to the viewing time in the non-occlusion video file, and is further used to establish a unit according to the association relationship when the determining result of the determining unit 502 is YES.
  • association relationship establishing unit is specifically configured to: record a non-occlusion recording index and an occlusion recording index, where the non-occlusion recording index includes a device identifier of the monitoring front end device, a video start and end time, and an unoccluded video data indication information.
  • the identifier of the non-occlusion recording file includes: an occlusion video data indication information and an identifier of the occlusion video file; and establishing an association relationship between the non-occlusion recording index and the occlusion recording index;
  • the acquiring unit 503 is specifically configured to: according to the device identifier of the monitoring front-end device, the viewing time, and the non-occlusion video data indication information included in the non-occlusion recording index, the monitoring front end Obtaining the non-occlusion video file according to the identifier of the non-occlusion video file included in the non-occlusion recording index, and acquiring the non-occlusion video file.
  • the video data corresponding to the viewing time is specifically used to obtain the occlusion recording index associated with the non-occlusion recording index according to the association relationship when the determination result of the determining unit 502 is YES, according to the occlusion recording Obtaining, by the index, the identifier of the occlusion video file, the one or more video files corresponding to the first occlusion area; and acquiring a video corresponding to the viewing time in one or more video files corresponding to the first occlusion area data.
  • Embodiment 2 of the present invention can be used to implement the method described in Embodiment 1 above.
  • the video request receiving unit 501, the determining unit 502, the setting request receiving unit 505, and the description information sending unit 506 are located in the SCU of the monitoring platform, the acquiring unit 503, the video data sending unit 504, and the first video data receiving unit. 507.
  • the second video data receiving unit 508 and the video data separating unit 509 are located at the MU of the monitoring platform. According to Embodiment 2 of the present invention, after receiving the video request of the monitoring terminal, the monitoring platform determines the authority of the user of the monitoring terminal, and according to the result of the determination, sends only the non-occluded video data to the monitoring terminal of the user who does not have the right to obtain the occlusion video data.
  • a monitoring terminal having permission to acquire part or all of the video data occluding the occlusion video data and the non-occlusion video data to be combined and played, or transmitting video data combining the occlusion video data and the non-occlusion video data, thereby solving the present
  • the terminals of users with different rights are all sent to the occlusion part of the image data to cause security risks.
  • the area-based authority control can also be implemented, that is, if the occlusion area includes multiple areas, the respective rights can be set for different areas, and then the user is sent according to the rights of the user to the monitoring terminal of the user.
  • the occlusion video data corresponding to some or all areas that the user has permission to obtain, thereby achieving more precise authority control.
  • Embodiment 3 of the present invention proposes a monitoring terminal 600.
  • the monitoring terminal includes: a video request sending unit 601, a video data receiving unit 602, and a playing unit 603;
  • the video request sending unit 601 is configured to send a video request to the monitoring platform, where the video request includes a device identifier, where the video data of the monitoring front-end device identified by the device identifier includes non-occlusion video data corresponding to the non-occlusion region and corresponding Occlusion video data in the occlusion area;
  • the video data receiving unit 602 is configured to receive, by the monitoring platform, the first occlusion video data that is sent when the user of the monitoring terminal has the right to acquire the first occlusion video data in the occlusion video data.
  • the non-occlusion video data, the first occlusion video data corresponds to a first occlusion area, and the first occlusion area includes part or all of the occlusion area; and is further configured to receive the monitoring platform to determine The non-occlusion video data sent when the user of the monitoring terminal does not have the right to acquire the first occlusion video data in the occlusion video data;
  • the playing unit is configured to merge and play the video data receiving unit
  • the playing unit is specifically configured to: decode the first occlusion video data to obtain an occlusion video data frame, and decode the non-occlusion video data to obtain non-occlusion a video data frame, extracting pixel data in the occlusion video data frame, and adding the extracted pixel data to the non-occlusion video data frame having the same time stamp as the occlusion video data frame according to the description information of the first occlusion region a pixel area corresponding to the first occlusion area to generate a complete video frame, and play the complete video frame; or
  • the playing unit is specifically configured to: decode each video data in the first occlusion video data to obtain occlusion video data of each video data. a frame, decoding non-occlusion video data to obtain a non-occlusion video data frame, extracting pixel data in an occlusion video data frame having the same time stamp of each video data, and adding the extracted pixel data to the occlusion video data frame A pixel region corresponding to the first occlusion region in the non-occluded video data frame having the same time stamp generates a complete video frame and plays the complete video frame.
  • Embodiment 4 of the present invention proposes a monitoring front end device 700.
  • the monitoring front-end device includes: a description information receiving unit 701, a video data encoding unit 702, and a video data transmitting unit 703;
  • the description information receiving unit 701 is configured to receive description information of an occlusion area sent by the monitoring platform;
  • the video data encoding unit 702 is configured to capture video data according to the description information of the occlusion area
  • the video data sending unit 703 is configured to send the number of non-occlusion videos to the monitoring platform. And blocking the video data, so that the monitoring platform sends the non-occlusion video data and the first occlusion video to the monitoring terminal when determining that the user of the monitoring terminal has the right to acquire the first occlusion video data Data, or the non-occlusion video data is sent to the monitoring terminal when the user of the monitoring terminal does not have the right to obtain the first occlusion video data, where the first occlusion video data corresponds to the first occlusion area,
  • the first occlusion region includes some or all of the occlusion regions.
  • the video data encoding unit 702 is specifically configured to, when the occlusion area includes an area, encode a video picture corresponding to the occlusion area in the captured video picture as a video according to the description information of the occlusion area.
  • the occlusion area includes a plurality of areas, encoding a video picture corresponding to the plurality of areas included in the occlusion area of the captured video picture as one channel of video data according to the description information of the occlusion area, or
  • the video images corresponding to the plurality of regions included in the occlusion region in the captured video image are respectively encoded as one video data, or the regions corresponding to the same rights in the plurality of regions included in the occlusion region in the captured video image
  • the video picture is encoded as one channel of video data; specifically, it is further configured to: according to the occlusion region frequency data.
  • the fifth embodiment of the present invention provides a monitoring platform 1000, including: a processor 1010, a communication interface 1020, a memory 1030, and a bus 1040.
  • the processor 1010, the communication interface 1020, and the memory 1030 complete communication with each other through the bus 1040.
  • the communication interface 1020 is configured to communicate with the network element, such as the monitoring terminal and the monitoring front end device.
  • the processor 1010 is configured to execute the program 1032.
  • program 1032 can include program code, the program code including computer operating instructions.
  • the processor 1010 is a computer program for executing memory storage, and may be a central processing unit (CPU), which is a computer core unit.
  • CPU central processing unit
  • the memory 1030 is configured to store the program 1032.
  • Memory 1030 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
  • the program 1032 may specifically include: a video request receiving unit 1032-1, a determining unit 1032-2, an obtaining unit 1032-3, and a video data transmitting unit 1032-4;
  • the video request receiving unit 1032-1 is configured to receive a video request sent by the first monitoring terminal, where the video request includes a device identifier, where the video data of the monitoring front-end device identified by the device identifier includes a non-occlusion region Blocking video data and occlusion video data corresponding to the occlusion area; the determining unit 1032-2, configured to determine whether the user of the first monitoring terminal has the right to acquire the first occlusion video data in the occlusion video data, The first occlusion video data corresponds to the first occlusion area, and the first occlusion area includes part or all of the occlusion area; the acquiring unit 1032-3 is configured to acquire non-occlusion video data, and is used for Obtaining the first occlusion video data when the determination result of the determining unit 1032-2 is YES;
  • the video data sending unit 1032-4 is configured to send, when the determining result of the determining unit 1032-2 is YES, the first occlusion video acquired by the acquiring unit 1032-3 to the first monitoring terminal.
  • Data and the non-occlusion video data so that the first monitoring terminal merges the first occlusion video data and the non-occlusion video data, or merges the first occlusion video acquired by the acquiring unit 1032-3
  • Data and the non-occlusion video data are combined to obtain the combined video data, and the combined video data is sent to the first monitoring terminal; and is further used when the determining result of the determining unit 1032-2 is negative. And sending, to the first monitoring terminal, the non-occlusion video data acquired by the acquiring unit 1032-3.
  • the program further includes: a setting request receiving unit 1G32-5;
  • the setting request receiving unit 1032-5 is configured to receive an occlusion area setting request sent by the second monitoring terminal, where the occlusion area setting request includes the device identifier of the monitoring front-end device and description information of the occlusion area;
  • the monitoring platform further includes: a description information sending unit 1032-6 and a first video data receiving unit 1032-7; the description information sending unit 1032-6, configured to send a description of the occlusion area to the monitoring front-end device
  • the first video data receiving unit 1032-7 is configured to receive the non-occlusion video data and the occlusion video data generated by the monitoring front-end device according to the description information of the occlusion region; or
  • the monitoring platform further includes: a second video data receiving unit 1032-8 and a video data separating unit 1032-9; the second video data receiving unit 1032-8 is configured to receive the complete video data sent by the monitoring front end device
  • the video data separating unit 1032-9 is configured to separate the occlusion video data and the non-occlusion video data from the complete video data received by the second video data receiving unit.
  • the program further includes: a storage unit and an association establishing unit;
  • the storage unit is configured to store the occlusion video data into an occlusion video file, and store the non-occlusion video data into a non-occlusion video file, where the occlusion video file includes one or more video files;
  • the association relationship establishing unit is configured to establish an association relationship between the occlusion video file and the non-occlusion video file;
  • the video request receiving unit 1032-1 is specifically configured to receive a video request that includes a viewing time sent by the first monitoring terminal;
  • the obtaining unit 1032-3 is specifically configured to acquire video data corresponding to the viewing time in the non-occlusion video file, and is further used to: when the determining result of the determining unit 1032-2 is YES, according to the Obtaining, by the association relationship establishing unit, the one or more video files corresponding to the first occlusion area associated with the non-occlusion video file, and acquiring corresponding one or more video files corresponding to the first occlusion area The video data of the viewing time.
  • association relationship establishing unit is specifically configured to: record a non-occlusion recording index and an occlusion recording index, where the non-occlusion recording index includes a device identifier of the monitoring front end device, a video start and end time, and an unoccluded video data indication information.
  • the identifier of the non-occlusion recording file includes: an occlusion video data indication information and an identifier of the occlusion video file; and establishing an association relationship between the non-occlusion recording index and the occlusion recording index;
  • the obtaining unit 1032-3 is specifically configured to: according to the device identifier of the monitoring front-end device, the viewing time, and the non-occlusion video data indication information included in the non-occlusion recording index, And monitoring the non-occlusion video file according to the identifier of the non-occlusion video file included in the non-occlusion recording index, and acquiring the non-occlusion video file, and acquiring the non-occlusion video file according to the identifier of the non-occlusion video file included in the non-occlusion recording index.
  • the video data corresponding to the viewing time in the video file is specifically used to acquire the occlusion recording index associated with the non-occlusion recording index according to the association relationship when the determination result of the determining unit 1032-2 is YES, according to Acquiring the identifier of the occlusion video file included in the occlusion recording index to acquire one or more video files corresponding to the first occlusion region; and acquiring corresponding ones of the one or more video files corresponding to the first occlusion region View video data for time.
  • each unit in the program 1032 refers to the corresponding unit in Embodiment 1 of the present invention, and details are not described herein.
  • Embodiment 5 of the present invention can be used to implement the method described in Embodiment 1 above.
  • the monitoring platform determines the authority of the user of the monitoring terminal, and according to the result of the determination, sends only the non-occluded video data to the monitoring terminal of the user who does not have the right to obtain the occlusion video data.
  • a monitoring terminal having permission to acquire part or all of the video data occluding the occlusion video data and the non-occlusion video data to be combined and played, or transmitting video data combining the occlusion video data and the non-occlusion video data, thereby solving the present
  • the terminals of users with different rights are all sent to the occlusion part of the image data to cause security risks.
  • the area-based authority control can also be implemented, that is, if the occlusion area includes multiple areas, the respective rights can be set for different areas, and then the user is sent according to the rights of the user to the monitoring terminal of the user.
  • Embodiment 6 of the present invention provides a monitoring terminal 2000, including: a processor (proces sor) 2010, a communication interface (Communication) 2020, a memory 2030, and a bus 2040.
  • the processor 2010, the communication interface 2020, and the memory 2030 complete communication with each other through the bus 2040.
  • the communication interface 2020 is configured to communicate with the network element, such as communicating with the monitoring platform.
  • the processor 2010 is configured to execute the program 2032.
  • program 2032 can include program code, the program code including computer operating instructions.
  • the processor 2010 is a computer program for executing memory storage, and may be a central processing unit (CPU, centra l proces s ing uni t ), which is a computer core unit.
  • CPU central processing unit
  • centra l proces s ing uni t which is a computer core unit.
  • the memory 2030 is configured to store the program 2032.
  • Memory 2030 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
  • the program 2032 may specifically include: a video request sending unit 2032-1, a video data receiving unit 2032-2, and a playing unit 2032-3;
  • the video request sending unit is configured to send a video request to the monitoring platform, where the video request includes a device identifier, where the video data of the monitoring front-end device identified by the device identifier includes non-occlusion video data corresponding to the non-occlusion region and corresponding occlusion Occlusion video data of the area;
  • the video data receiving unit 2032-2 is configured to receive, when the monitoring platform determines that the user of the monitoring terminal has the right to acquire the first occlusion video data in the occlusion video data, Transmitting the first occlusion video data and the non-occlusion video data, where the first occlusion video data corresponds to a first occlusion region, and the first occlusion region includes part or all of the occlusion region; Receiving, by the monitoring platform, the non-occlusion video data sent when the user of the monitoring terminal does not have the right to acquire the first occlusion video data in the occlusion video data;
  • the playing unit is configured to merge and play the first occlusion video data and the non-occlusion video data received by the video data receiving unit 2032-2, or is used to play the video data receiving unit 2032-2.
  • the non-occlusion video data is configured to merge and play the first occlusion video data and the non-occlusion video data received by the video data receiving unit 2032-2, or is used to play the video data receiving unit 2032-2.
  • the non-occlusion video data is configured to merge and play the first occlusion video data and the non-occlusion video data received by the video data receiving unit 2032-2, or is used to play the video data receiving unit 2032-2.
  • the non-occlusion video data is configured to merge and play the first occlusion video data and the non-occlusion video data received by the video data receiving unit 2032-2, or is used to play the video data receiving unit 2032-2.
  • the non-occlusion video data is configured to merge and play the first occlusion video data and the non-o
  • the playing unit is specifically configured to: decode the first occlusion video data to obtain an occlusion video data frame, and decode the non-occlusion video data to obtain non-occlusion a video data frame, extracting pixel data in the occlusion video data frame, and adding the extracted pixel data to the non-occlusion video data frame having the same time stamp as the occlusion video data frame according to the description information of the first occlusion region a pixel area corresponding to the first occlusion area to generate a complete video frame, and play the complete video frame; or
  • the playing unit is specifically configured to: decode each video data in the first occlusion video data to obtain occlusion video data of each video data. a frame, decoding non-occlusion video data to obtain a non-occlusion video data frame, extracting pixel data in an occlusion video data frame having the same time stamp of each video data, and adding the extracted pixel data to the occlusion video data frame A pixel region corresponding to the first occlusion region in the non-occluded video data frame having the same time stamp generates a complete video frame and plays the complete video frame.
  • each unit in the program 2032 refers to the corresponding unit in Embodiment 3 of the present invention, and details are not described herein.
  • Embodiment 7 of the present invention provides a monitoring front-end device 3000, including: a processor 3010, a communications interface 3020, a memory 3030, and a bus 3040.
  • the processor 3010, the communication interface 3020, and the memory 3030 complete communication with each other via the bus 3040.
  • the communication interface 3020 is configured to communicate with the network element, such as to communicate with the monitoring platform.
  • the processor 3010 is configured to execute the program 3032.
  • program 3032 can include program code, the program code including computer operating instructions.
  • the processor 3010 is a computer program for executing memory storage, and may be a central processing unit (CPU), which is a computer core unit.
  • CPU central processing unit
  • the memory 3030 is configured to store the program 3032.
  • Memory 3030 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
  • the program 3032 may specifically include: a description information receiving unit 3032-1, a video data encoding unit 3032-2, and a video data transmitting unit 3032-3;
  • the description information receiving unit 3032-1 is configured to receive description information of an occlusion area sent by the monitoring platform;
  • the video data encoding unit 3032-2 is configured to block video data according to the description information of the occlusion area
  • the video data sending unit 3032-3 is configured to send the non-occlusion video data and the occlusion video data to the monitoring platform, so that the monitoring platform determines that the user of the monitoring terminal has acquired the first occlusion video.
  • Sending the non-occlusion video data and the first occlusion video data to the monitoring terminal when the authority of the data, or to the monitoring when determining that the user of the monitoring terminal does not have the right to acquire the first occlusion video data Transmitting, by the terminal, the non-occlusion video data,
  • the first occlusion video data corresponds to a first occlusion region, and the first occlusion region includes some or all of the occlusion regions.
  • the video data encoding unit 3032-2 is configured to: when the occlusion area includes an area, encode a video picture corresponding to the occlusion area in the captured video picture according to the description information of the occlusion area as a video data of one channel; or, when the occlusion region includes a plurality of regions, encoding, according to the description information of the occlusion region, a video image corresponding to multiple regions included in the occlusion region of the captured video image into one video data, Alternatively, the video images corresponding to the plurality of regions included in the occlusion region in the captured video image are respectively encoded as one-way video data, or the corresponding regions in the plurality of regions included in the occlusion region in the captured video image The video picture of the area is encoded as one channel of video data; and specifically for, according to the occlusion area frequency data.
  • each unit in the program 3032 refers to the corresponding unit in Embodiment 4 of the present invention, and details are not described herein.
  • Embodiment 8 of the present invention proposes a video monitoring system 4000.
  • the video monitoring system includes: a monitoring terminal 4010 and a monitoring platform 4020.
  • the monitoring terminal 4010 is specifically a monitoring terminal as described in Embodiment 3 or 6.
  • the monitoring platform 4020 is specifically the monitoring platform as described in Embodiment 2 or 5.
  • the video surveillance system may further include a monitoring front end device 4030, specifically a monitoring front end device as described in Embodiment 4 or 7.
  • the video surveillance system described in Embodiment 8 of the present invention can be used to implement the method described in Embodiment 1 above.
  • the monitoring platform determines the monitoring end after receiving the video request of the monitoring terminal. According to the judgment result, only the non-occlusion video data is sent to the monitoring terminal of the user who does not have the authority to acquire the occlusion video data, and the occlusion video data is sent to the monitoring terminal of the user who has the authority to acquire part or all of the occlusion video data.
  • the non-occlusion video data is combined to play, or the video data combining the occlusion video data and the non-occlusion video data is transmitted, thereby solving the problem that the image data of the occlusion portion is sent to the terminals of the users with different rights in the prior art. Security risks.
  • the area-based authority control can also be implemented, that is, if the occlusion area includes multiple areas, the respective rights can be set for different areas, and then the user is sent according to the rights of the user to the monitoring terminal of the user.
  • the occlusion video data corresponding to some or all areas that the user has permission to obtain, thereby achieving more precise authority control.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the components displayed for the unit may or may not be physical units, ie may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM, Random Acces s Memory), a magnetic disk, or an optical disk, and the like, which can store program codes. medium.

Abstract

Disclosed are a method, an apparatus and a system for implementing video occlusion. The method comprises: a monitoring platform receiving video requests from monitoring terminals, and determining permission of users of the monitoring terminals; according to a determination result, sending only non-occluded video data to monitoring terminals of users without permission to obtain occluded video data; and sending the occluded video data and the non-occluded video data to monitoring terminals of users with permission to obtain part of or all the occluded video data so that the occluded video data and the non-occluded video data are played in a combined way, or sending video data that combines the occluded video data and the non-occluded video data, solving a security risk problem in prior art caused by sending image data of an occluded part to terminals of users with different permission.

Description

一种实现视频遮挡的方法、 装置和系统 技术领域  Method, device and system for realizing video occlusion
本发明实施例涉及视频监控领域, 并且更具体地, 涉及一种实现视频遮 挡的方法、 装置和系统。  Embodiments of the present invention relate to the field of video surveillance, and more particularly, to a method, apparatus, and system for implementing video occlusion.
背景技术 Background technique
在视频监控领域, 存在保护个人隐私的需求, 需要将摄像头拍摄的部分 区域的视频图像进行遮挡处理, 使得普通用户看到的视频画面不包含遮挡部 分的图像, 遮挡部分的图像只有高级权限用户才能查看。  In the field of video surveillance, there is a need to protect personal privacy. The video image of a part of the area captured by the camera needs to be occluded, so that the video picture seen by the ordinary user does not include the image of the occlusion part, and the image of the occlusion part can only be used by the advanced authority user. View.
在现有技术中, 对视频中遮挡部分的图像数据进行加密处理, 并将处理 后的视频发送给监控终端, 有权限的用户可以对收到的视频中的遮挡部分的 图像数据进行解密从而看到完整视频, 无权限的用户则无法看到遮挡部分的 图像, 但是, 在该现有技术中, 无权限的用户的终端同样可以获取到遮挡部 分的图像数据, 如果釆用非正常手段对该部分数据进行解密, 则可以看到遮 挡部分的图像数据, 从而造成安全隐患。  In the prior art, the image data of the occlusion portion of the video is encrypted, and the processed video is sent to the monitoring terminal, and the authorized user can decrypt the image data of the occlusion portion of the received video to see To the full video, the unprivileged user cannot see the image of the occluded part. However, in this prior art, the terminal of the unprivileged user can also obtain the image data of the occlusion part if the abnormality is used. When some data is decrypted, the image data of the occlusion portion can be seen, thereby causing a security risk.
发明内容 本发明实施例提供一种实现视频遮挡的方法、 装置和系统, 用于解决现 有技术中向不同权限的用户的终端均发送遮挡部分的图像数据所导致的安全 隐患问题。 SUMMARY OF THE INVENTION The embodiments of the present invention provide a method, an apparatus, and a system for implementing video occlusion, which are used to solve the security problem caused by transmitting image data of an occlusion portion to terminals of users with different rights in the prior art.
第一方面, 提供了一种实现视频遮挡的方法, 所述方法包括:  In a first aspect, a method for implementing video occlusion is provided, the method comprising:
监控平台接收第一监控终端发送的视频请求, 所述视频请求包括设备标 识, 所述设备标识所标识的监控前端设备的视频数据包括对应非遮挡区域的 非遮挡视频数据和对应遮挡区域的遮挡视频数据;  The monitoring platform receives the video request sent by the first monitoring terminal, where the video request includes the device identifier, and the video data of the monitoring front-end device identified by the device identifier includes the non-occlusion video data corresponding to the non-occlusion area and the occlusion video of the corresponding occlusion area. Data
所述监控平台判断所述第一监控终端的用户是否具有获取所述遮挡视频 数据中的第一遮挡视频数据的权限, 所述第一遮挡视频数据对应第一遮挡区 域, 所述第一遮挡区域包括所述遮挡区域中的部分或全部区域; 如果判断结果为是, 获取第一遮挡视频数据和非遮挡视频数据, 向所述 第一监控终端发送所述第一遮挡视频数据和所述非遮挡视频数据, 以使得第 一监控终端合并播放所述第一遮挡视频数据和所述非遮挡视频数据; 或者, 合并获取的所述第一遮挡视频数据和所述非遮挡视频数据得到合并后的视频 数据, 并将所述合并后的视频数据发送给所述第一监控终端; The monitoring platform determines whether the user of the first monitoring terminal has the right to obtain the first occlusion video data in the occlusion video data, where the first occlusion video data corresponds to the first occlusion region, and the first occlusion region Include some or all of the occlusion regions; If the determination result is yes, acquiring the first occlusion video data and the non-occlusion video data, sending the first occlusion video data and the non-occlusion video data to the first monitoring terminal, so that the first monitoring terminal merges the playback station Decoding the first occlusion video data and the non-occlusion video data; or combining the acquired first occlusion video data and the non-occlusion video data to obtain combined video data, and transmitting the combined video data Giving the first monitoring terminal;
如果判断结果为否, 获取所述非遮挡视频数据并发送给所述第一监控终 端。  If the judgment result is no, the non-occlusion video data is acquired and sent to the first monitoring terminal.
在第一方面的第一种可能的实现方式中, 所述接收第一监控终端发送的 视频请求之前包括:  In a first possible implementation manner of the first aspect, the receiving, by the first monitoring terminal, the video request includes:
接收第二监控终端发送的遮挡区域设置请求, 所述遮挡区域设置请求包 括所述监控前端设备的设备标识和所述遮挡区域的描述信息;  Receiving an occlusion area setting request sent by the second monitoring terminal, where the occlusion area setting request includes a device identifier of the monitoring front end device and description information of the occlusion area;
向所述监控前端设备发送所述遮挡区域的描述信息, 并接收所述监控前 端设备发送的根据所述遮挡区域的描述信息生成的所述非遮挡视频数据和所 述遮挡视频数据; 或者, 根据所述遮挡区域的描述信息, 从接收自监控前端 设备的完整视频数据中, 分离出所述遮挡视频数据和所述非遮挡视频数据。  Transmitting the description information of the occlusion area to the monitoring front-end device, and receiving the non-occlusion video data and the occlusion video data generated by the monitoring front-end device according to the description information of the occlusion area; or The description information of the occlusion area is separated from the complete video data received from the monitoring front-end device by the occlusion video data and the non-occlusion video data.
在第一方面的第二种可能的实现方式中, 所述获取第一遮挡视频数据和 非遮挡视频数据之前包括:  In a second possible implementation manner of the first aspect, the obtaining, before the acquiring the first occlusion video data and the non-occlusion video data, includes:
将所述遮挡视频数据存储到遮挡录像文件中, 将所述非遮挡视频数据存 储到非遮挡录像文件中, 所述遮挡录像文件包括一或多个录像文件, 并建立 所述遮挡录像文件和所述非遮挡录像文件的关联关系;  Storing the occlusion video data into an occlusion video file, storing the non-occlusion video data into a non-occlusion video file, the occlusion video file including one or more video files, and establishing the occlusion video file and the Declaring the association relationship of non-occlusion video files;
所述视频请求包括查看时间;  The video request includes a viewing time;
所述获取非遮挡视频数据具体包括: 获取所述非遮挡录像文件中对应所 述查看时间的视频数据;  The acquiring the non-occlusion video data specifically includes: acquiring video data corresponding to the viewing time in the non-occlusion video file;
所述获取第一遮挡视频数据具体包括: 根据所述关联关系获取所述非遮 挡录像文件关联的对应所述第一遮挡区域的一或多个录像文件, 并获取对应 所述第一遮挡区域的一或多个录像文件中对应所述查看时间的视频数据。  The acquiring the first occlusion video data specifically includes: acquiring one or more video files corresponding to the first occlusion region associated with the non-occlusion video file according to the association relationship, and acquiring corresponding to the first occlusion region Video data corresponding to the viewing time in one or more video files.
结合第一方面的第二种可能的实现方式 ,在第三种可能的实现方式中, 所述建立所述遮挡录像文件和非遮挡录像文件的关联关系, 具体包括: 记录非遮挡录像索引和遮挡录像索引, 所述非遮挡录像索引包括所述监 控前端设备的设备标识、 录像起止时间、 非遮挡视频数据指示信息和所述非 遮挡录像文件的标识, 所述遮挡录像索引包含遮挡视频数据指示信息和所述 遮挡录像文件的标识; 并建立所述非遮挡录像索引和所述遮挡录像索引的关 联关系; In conjunction with the second possible implementation of the first aspect, in a third possible implementation, The establishing the association relationship between the occlusion video file and the non-occlusion video file includes: recording a non-occlusion recording index and an occlusion recording index, where the non-occlusion recording index includes a device identifier of the monitoring front end device, a video start and end time, The non-occlusion video data indication information and the identifier of the non-occlusion video file, the occlusion recording index includes an occlusion video data indication information and an identifier of the occlusion video file; and establishing the non-occlusion recording index and the occlusion recording index Relationship
所述获取非遮挡视频数据具体包括: 根据所述视频请求包括的所述监控 前端设备的设备标识、 查看时间和所述非遮挡录像索引包括的非遮挡视频数 据指示信息、 所述监控前端设备的设备标识、 录像起止时间匹配出所述非遮 挡录像索引, 根据所述非遮挡录像索引包括的所述非遮挡录像文件的标识获 取所述非遮挡录像文件, 并获取所述非遮挡录像文件中对应所述查看时间的 视频数据;  The acquiring the non-occlusion video data includes: the device identifier of the monitoring front-end device included in the video request, the viewing time, and the non-occlusion video data indication information included in the non-occlusion recording index, and the monitoring front-end device And acquiring, by the identifier of the non-occlusion video file, the non-occlusion video file according to the identifier of the non-occlusion video file included in the non-occlusion recording index, and acquiring the corresponding information in the non-occlusion video file. Viewing time video data;
所述获取第一遮挡视频数据具体包括: 根据所述关联关系获取所述非遮 挡录像索引关联的遮挡录像索引, 根据所述遮挡录像索引包括的所述遮挡录 像文件的标识获取对应所述第一遮挡区域的一或多个录像文件; 并获取对应 所述第一遮挡区域的一或多个录像文件中对应所述查看时间的视频数据。  The acquiring the first occlusion video data specifically includes: acquiring an occlusion recording index associated with the non-occlusion recording index according to the association relationship, and acquiring, according to the identifier of the occlusion recording file included in the occlusion recording index, corresponding to the first Blocking one or more video files of the area; and acquiring video data corresponding to the viewing time in one or more video files corresponding to the first occlusion area.
在第一方面的第四种可能的实现方式中, 所述获取第一遮挡视频数据和 非遮挡视频数据, 向所述第一监控终端发送第一遮挡视频数据和非遮挡视频 数据, 具体包括:  In a fourth possible implementation manner of the first aspect, the acquiring the first occlusion video data and the non-occlusion video data, and sending the first occlusion video data and the non-occlusion video data to the first monitoring terminal, specifically:
生成所述非遮挡视频数据的获取地址和所述第一遮挡视频数据的获取地 址并发送给所述第一监控终端, 所述遮挡视频数据的获取地址中或携带所述 遮挡视频数据的获取地址的消息中包括数据类型, 用于指示所述获取地址对 应的视频数据为遮挡视频数据;  Generating an acquisition address of the non-occlusion video data and an acquisition address of the first occlusion video data, and sending the acquisition address to the first monitoring terminal, the acquisition address of the occlusion video data or the acquisition address of the occlusion video data The message includes a data type, and is used to indicate that the video data corresponding to the acquired address is occlusion video data;
接收所述第一监控终端发送的包含所述非遮挡视频数据的获取地址的请 求, 根据所述非遮挡视频数据的获取地址与所述第一监控终端建立用于发送 所述非遮挡视频数据的媒体通道, 根据所述非遮挡视频数据的获取地址获取 所述非遮挡视频数据并通过所述媒体通道发送所述非遮挡视频数据; 接收所述第一监控终端发送的包含所述第一遮挡视频数据的获取地址的 请求, 根据所述第一遮挡视频数据的获取地址与所述第一监控终端建立用于 发送所述第一遮挡视频数据的媒体通道, 根据所述第一遮挡视频数据的获取 地址获取所述第一遮挡视频数据并通过所述媒体通道发送所述第一遮挡视频 数据。 第二方面, 提供了一种实现视频遮挡的方法, 所述方法包括: Receiving, by the first monitoring terminal, a request that includes the acquiring address of the non-occluded video data, establishing, according to the acquiring address of the non-occlusion video data, the first monitoring terminal, for sending the non-occlusion video data a media channel, acquiring the non-occlusion video data according to the acquired address of the non-occlusion video data, and transmitting the non-occlusion video data by using the media channel; Receiving, by the first monitoring terminal, a request that includes the acquiring address of the first occlusion video data, establishing, according to the acquiring address of the first occlusion video data, the first monitoring terminal, for sending the first occlusion a media channel of the video data, acquiring the first occlusion video data according to the acquired address of the first occlusion video data, and transmitting the first occlusion video data by using the media channel. In a second aspect, a method for implementing video occlusion is provided, the method comprising:
监控终端向监控平台发送视频请求, 所述视频请求包括设备标识, 所述 设备标识所标识的监控前端设备的视频数据包括对应非遮挡区域的非遮挡视 频数据和对应遮挡区域的遮挡视频数据;  The monitoring terminal sends a video request to the monitoring platform, where the video request includes a device identifier, and the video data of the monitoring front-end device identified by the device identifier includes non-occlusion video data corresponding to the non-occlusion area and occlusion video data corresponding to the occlusion area;
所述监控终端接收所述监控平台在判断出所述监控终端的用户具有获取 所述遮挡视频数据中的第一遮挡视频数据的权限时发送的所述第一遮挡视频 数据和所述非遮挡视频数据, 并合并播放所述第一遮挡视频数据和所述非遮 挡视频数据, 所述第一遮挡视频数据对应第一遮挡区域, 所述第一遮挡区域 包括所述遮挡区域中的部分或全部区域; 或者,  Receiving, by the monitoring terminal, the first occlusion video data and the non-occlusion video sent by the monitoring platform when determining that the user of the monitoring terminal has the right to acquire the first occlusion video data in the occlusion video data Data, and combining the first occlusion video data and the non-occlusion video data, where the first occlusion video data corresponds to a first occlusion region, and the first occlusion region includes some or all regions in the occlusion region Or,
所述监控终端接收所述监控平台在判断出所述监控终端的用户不具有获 取所述遮挡视频数据中的所述第一遮挡视频数据的权限时发送的所述非遮挡 视频数据, 并播放所述非遮挡视频数据。  Receiving, by the monitoring terminal, the non-occlusion video data sent by the monitoring platform when determining that the user of the monitoring terminal does not have the right to acquire the first occlusion video data in the occlusion video data, and playing the Non-occlusion video data.
在第二方面的第一种可能的实现方式中, 所述合并播放所述第一遮挡视 频数据和所述非遮挡视频数据之前还包括, 接收所述监控平台发送的所述第 一遮挡区域的描述信息;  In a first possible implementation manner of the second aspect, before the combining the first occlusion video data and the non-occlusion video data, the method further includes: receiving, by the monitoring platform, the first occlusion region Description;
所述合并播放所述第一遮挡视频数据和所述非遮挡视频数据, 具体包括: 如果所述第一遮挡视频数据包括一路视频数据, 解码所述第一遮挡视频 数据得出遮挡视频数据帧, 解码所述非遮挡视频数据得出非遮挡视频数据帧, 提取遮挡视频数据帧中的像素数据, 并根据第一遮挡区域的描述信息将提取 的像素数据添加到与所述遮挡视频数据帧具有相同时间戳的非遮挡视频数据 帧中所述第一遮挡区域对应的像素区域以生成完整视频帧, 并播放所述完整 视频帧; 或者, The combining the first occlusion video data and the non-occlusion video data includes: if the first occlusion video data includes one channel of video data, decoding the first occlusion video data to obtain an occlusion video data frame, Decoding the non-occluded video data to obtain a non-occlusion video data frame, extracting pixel data in the occlusion video data frame, and adding the extracted pixel data to the same as the occlusion video data frame according to the description information of the first occlusion region a pixel region corresponding to the first occlusion region in a time stamped non-occlusion video data frame to generate a complete video frame, and playing the complete Video frame; or,
如果所述第一遮挡视频数据包括多路视频数据, 解码所述第一遮挡视频 数据中的每一路视频数据得出每一路视频数据的遮挡视频数据帧, 解码非遮 挡视频数据得出非遮挡视频数据帧, 提取各路视频数据的具有相同时间戳的 遮挡视频数据帧中的像素数据, 并将提取的像素数据添加到与所述遮挡视频 数据帧具有相同时间戳的非遮挡视频数据帧中该第一遮挡区域对应的像素区 域生成完整视频帧, 并播放所述完整视频帧。 第三方面, 提供了一种实现视频遮挡的方法, 所述方法包括:  If the first occlusion video data includes multiple video data, decoding each video data in the first occlusion video data to obtain an occlusion video data frame of each video data, and decoding the non-occlusion video data to obtain a non-occlusion video a data frame, extracting pixel data in an occlusion video data frame having the same time stamp of each video data, and adding the extracted pixel data to a non-occlusion video data frame having the same time stamp as the occlusion video data frame The pixel area corresponding to the first occlusion area generates a complete video frame and plays the complete video frame. In a third aspect, a method for implementing video occlusion is provided, the method comprising:
监控前端设备接收监控平台发送的遮挡区域的描述信息;  The monitoring front-end device receives the description information of the occlusion area sent by the monitoring platform;
所述监控前端设备根据所述遮挡区域的描述信息将拍摄的视频画面编码 为对应非遮挡区域的非遮挡视频数据和对应所述遮挡区域的遮挡视频数据; 所述监控前端设备向所述监控平台发送所述非遮挡视频数据和所述遮挡 视频数据, 以使得所述监控平台在判断出监控终端的用户具有获取第一遮挡 视频数据的权限时向所述监控终端发送所述非遮挡视频数据以及所述第一遮 挡视频数据, 或者在判断出所述监控终端的用户不具有获取第一遮挡视频数 据的权限时向所述监控终端发送所述非遮挡视频数据, 所述第一遮挡视频数 据对应第一遮挡区域, 所述第一遮挡区域包括所述遮挡区域中的部分或全部 区域。  The monitoring front-end device encodes the captured video image into non-occlusion video data corresponding to the non-occlusion area and occlusion video data corresponding to the occlusion area according to the description information of the occlusion area; the monitoring front-end device to the monitoring platform Transmitting the non-occlusion video data and the occlusion video data, so that the monitoring platform sends the non-occlusion video data to the monitoring terminal when determining that the user of the monitoring terminal has the right to acquire the first occlusion video data The first occlusion video data, or the non-occlusion video data is sent to the monitoring terminal when the user of the monitoring terminal does not have the right to acquire the first occlusion video data, where the first occlusion video data corresponds to a first occlusion region, the first occlusion region including some or all of the occlusion regions.
在第三方面的第一种可能的实现方式中, 所述根据所述遮挡区域的描述 当所述遮挡区域包括一个区域时, 将拍摄的视频画面中所述遮挡区域对 应的视频画面编码为一路视频数据;  In a first possible implementation manner of the third aspect, the description, according to the description of the occlusion region, encodes a video image corresponding to the occlusion region in a captured video image into a path when the occlusion region includes an area. Video data;
当所述遮挡区域包括多个区域时, 将拍摄的视频画面中所述遮挡区域包 括的多个区域对应的视频画面编码为一路视频数据, 或者, 将拍摄的视频画 面中所述遮挡区域包括的多个区域各自对应的视频画面分别编码为一路视频 数据, 或者, 将拍摄的视频画面中所述遮挡区域包括的多个区域中对应相同 权限的区域的视频画面编码为一路视频数据。 When the occlusion area includes a plurality of areas, the video picture corresponding to the plurality of areas included in the occlusion area in the captured video picture is encoded as one channel of video data, or the occlusion area included in the captured video picture is included The video pictures corresponding to the plurality of areas are respectively encoded as one channel of video data, or the corresponding areas of the occlusion area included in the captured video picture are corresponding to the same The video picture of the privileged area is encoded as one channel of video data.
在第三方面的第二种可能的实现方式中,  In a second possible implementation of the third aspect,
所述根据所述遮挡区域的描述信息将拍摄的视频画面编码为对应所述遮 挡区域的遮挡视频数据, 具体包括: 将拍摄的视频画面中所述遮挡区域对应 的视频画面直接编码为所述遮挡视频数据; 或者, 将拍摄的视频画面中的非 遮挡区域对应的视频画面釆用设定的像素值填充后编码生成所述遮挡视频数 据;  The encoding the captured video picture into the occlusion video data corresponding to the occlusion area according to the description information of the occlusion area, specifically: encoding the video picture corresponding to the occlusion area in the captured video picture directly into the occlusion Video data; or, the video picture corresponding to the non-occlusion area in the captured video picture is padded with the set pixel value and encoded to generate the occlusion video data;
所述根据所述遮挡区域的描述信息将拍摄的视频画面编码为对应非遮挡 区域的非遮挡视频数据, 具体包括: 将拍摄的视频画面中的非遮挡区域对应 的视频画面直接编码为所述非遮挡视频数据, 或者, 将拍摄的视频画面中的 所述遮挡区域对应的视频画面釆用设定的像素值填充后编码生成所述非遮挡 视频数据。 第四方面, 提供了一种监控平台, 所述监控平台包括: 视频请求接收单 元、 判断单元、 获取单元、 视频数据发送单元;  The encoding the captured video picture into the non-occlusion video data corresponding to the non-occlusion area according to the description information of the occlusion area, specifically: encoding the video picture corresponding to the non-occlusion area in the captured video picture directly into the non-occlusion The video data is occluded, or the video frame corresponding to the occlusion area in the captured video picture is padded with the set pixel value and encoded to generate the non-occlusion video data. In a fourth aspect, a monitoring platform is provided, where the monitoring platform includes: a video request receiving unit, a determining unit, an obtaining unit, and a video data sending unit;
所述视频请求接收单元, 用于接收第一监控终端发送的视频请求, 所述 视频请求包括设备标识, 所述设备标识所标识的监控前端设备的视频数据包 括对应非遮挡区域的非遮挡视频数据和对应遮挡区域的遮挡视频数据;  The video request receiving unit is configured to receive a video request sent by the first monitoring terminal, where the video request includes a device identifier, where the video data of the monitoring front-end device identified by the device identifier includes non-occlusion video data corresponding to the non-occlusion region. And occlusion video data corresponding to the occlusion area;
所述判断单元, 用于判断所述第一监控终端的用户是否具有获取所述遮 挡视频数据中的第一遮挡视频数据的权限, 所述第一遮挡视频数据对应第一 遮挡区域, 所述第一遮挡区域包括所述遮挡区域中的部分或全部区域;  The determining unit is configured to determine whether the user of the first monitoring terminal has the right to obtain the first occlusion video data in the occlusion video data, where the first occlusion video data corresponds to the first occlusion region, An occlusion region includes some or all of the occlusion regions;
所述获取单元, 用于获取非遮挡视频数据, 并用于在所述判断单元的判 断结果为是时获取第一遮挡视频数据;  The acquiring unit is configured to acquire non-occlusion video data, and configured to acquire first occlusion video data when the determination result of the determining unit is YES;
所述视频数据发送单元, 用于在所述判断单元的判断结果为是时, 向所 述第一监控终端发送所述获取单元获取的所述第一遮挡视频数据和所述非遮 挡视频数据, 以使得第一监控终端合并播放所述第一遮挡视频数据和所述非 遮挡视频数据, 或者, 合并所述获取单元获取的所述第一遮挡视频数据和所 述非遮挡视频数据得到合并后的视频数据, 并将所述合并后的视频数据发送 给所述第一监控终端; 还用于在所述判断单元的判断结果为否时, 向所述第 一监控终端发送所述获取单元获取的所述非遮挡视频数据。 The video data sending unit is configured to: when the determining result of the determining unit is yes, send, to the first monitoring terminal, the first occlusion video data and the non-occlusion video data acquired by the acquiring unit, The first monitoring terminal merges and plays the first occlusion video data and the non-occlusion video data, or merges the first occlusion video data and the acquired by the acquiring unit. The non-occluded video data is obtained, and the combined video data is sent to the first monitoring terminal; and when the determining result of the determining unit is no, the first The monitoring terminal sends the non-occlusion video data acquired by the acquiring unit.
在第四方面的第一种可能的实现方式中,  In a first possible implementation of the fourth aspect,
所述监控平台还包括: 设置请求接收单元、 描述信息发送单元和第一视 频数据接收单元; 所述设置请求接收单元, 用于接收第二监控终端发送的遮 挡区域设置请求, 所述遮挡区域设置请求包括所述监控前端设备的设备标识 和所述遮挡区域的描述信息; 所述描述信息发送单元, 用于向所述监控前端 设备发送所述遮挡区域的描述信息; 所述第一视频数据接收单元, 用于接收 所述监控前端设备发送的根据所述遮挡区域的描述信息生成的所述非遮挡视 频数据和所述遮挡视频数据; 或者,  The monitoring platform further includes: a setting request receiving unit, a description information sending unit, and a first video data receiving unit; the setting request receiving unit is configured to receive an occlusion area setting request sent by the second monitoring terminal, where the occlusion area is set The request includes the device identifier of the monitoring front-end device and the description information of the occlusion area; the description information sending unit is configured to send, to the monitoring front-end device, description information of the occlusion area; the first video data receiving a unit, configured to receive the non-occlusion video data and the occlusion video data generated according to the description information of the occlusion area sent by the monitoring front-end device; or
所述监控平台还包括: 设置请求接收单元、 第二视频数据接收单元和视 频数据分离单元; 所述设置请求接收单元, 用于接收第二监控终端发送的遮 挡区域设置请求, 所述遮挡区域设置请求包括所述监控前端设备的设备标识 和所述遮挡区域的描述信息; 所述第二视频数据接收单元, 用于接收所述监 控前端设备发送的完整视频数据中; 所述视频数据分离单元, 用于从所述第 二视频数据接收单元接收的所述完整视频数据中分离出所述遮挡视频数据和 所述非遮挡视频数据。  The monitoring platform further includes: a setting request receiving unit, a second video data receiving unit, and a video data separating unit; the setting request receiving unit is configured to receive an occlusion area setting request sent by the second monitoring terminal, where the occlusion area is set The request includes the device identifier of the monitoring front-end device and the description information of the occlusion region; the second video data receiving unit is configured to receive the complete video data sent by the monitoring front-end device; the video data separating unit, And omitting the occlusion video data and the non-occlusion video data from the complete video data received by the second video data receiving unit.
在第四方面的第二种可能的实现方式中, 所述监控平台还包括: 存储单 元和关联关系建立单元;  In a second possible implementation manner of the fourth aspect, the monitoring platform further includes: a storage unit and an association establishing unit;
所述存储单元, 用于将所述遮挡视频数据存储到遮挡录像文件中, 将所 述非遮挡视频数据存储到非遮挡录像文件中, 所述遮挡录像文件包括一或多 个录像文件;  The storage unit is configured to store the occlusion video data into an occlusion video file, and store the non-occlusion video data into a non-occlusion video file, where the occlusion video file includes one or more video files;
所述关联关系建立单元, 用于建立所述遮挡录像文件和所述非遮挡录像 文件的关联关系;  The association relationship establishing unit is configured to establish an association relationship between the occlusion video file and the non-occlusion video file;
所述视频请求接收单元, 具体用于接收第一监控终端发送的包括查看时 间的视频请求; 所述获取单元, 具体用于获取所述非遮挡录像文件中对应所述查看时间 的视频数据, 具体还用于在所述判断单元的判断结果为是时, 根据所述关联 关系建立单元建立的关联关系获取所述非遮挡录像文件关联的对应所述第一 遮挡区域的一或多个录像文件, 并获取对应所述第一遮挡区域的一或多个录 像文件中对应所述查看时间的视频数据。 第五方面, 提供了一种监控终端, 所述监控终端包括: 视频请求发送单 元、 视频数据接收单元和播放单元; The video request receiving unit is specifically configured to receive a video request that is sent by the first monitoring terminal, including a viewing time; The acquiring unit is specifically configured to acquire video data corresponding to the viewing time in the non-occlusion video file, and is specifically used to establish, according to the association relationship establishing unit, when the determining result of the determining unit is yes Obtaining one or more video files corresponding to the first occlusion area associated with the non-occlusion video file, and acquiring a video corresponding to the viewing time in one or more video files corresponding to the first occlusion area data. A fifth aspect provides a monitoring terminal, where the monitoring terminal includes: a video request sending unit, a video data receiving unit, and a playing unit;
所述视频请求发送单元, 用于向监控平台发送视频请求, 所述视频请求 包括设备标识, 所述设备标识所标识的监控前端设备的视频数据包括对应非 遮挡区域的非遮挡视频数据和对应遮挡区域的遮挡视频数据;  The video request sending unit is configured to send a video request to the monitoring platform, where the video request includes a device identifier, where the video data of the monitoring front-end device identified by the device identifier includes non-occlusion video data corresponding to the non-occlusion region and corresponding occlusion Occlusion video data of the area;
所述视频数据接收单元, 用于接收所述监控平台在判断出所述监控终端 的用户具有获取所述遮挡视频数据中的第一遮挡视频数据的权限时发送的所 述第一遮挡视频数据和所述非遮挡视频数据, 所述第一遮挡视频数据对应第 一遮挡区域, 所述第一遮挡区域包括所述遮挡区域中的部分或全部区域; 还 用于接收所述监控平台在判断出所述监控终端的用户不具有获取所述遮挡视 频数据中的所述第一遮挡视频数据的权限时发送的所述非遮挡视频数据; 所述播放单元, 用于合并播放所述视频数据接收单元接收的所述第一遮 挡视频数据和所述非遮挡视频数据, 或者用于播放所述视频数据接收单元接 收的所述非遮挡视频数据。  The video data receiving unit is configured to receive, by the monitoring platform, the first occlusion video data that is sent when the user of the monitoring terminal has the right to acquire the first occlusion video data in the occlusion video data. The non-occlusion video data, the first occlusion video data corresponds to a first occlusion area, and the first occlusion area includes part or all of the occlusion area; The non-occlusion video data sent when the user of the monitoring terminal does not have the right to acquire the first occlusion video data in the occlusion video data; the playing unit is configured to perform the video data receiving unit to receive the video data. The first occlusion video data and the non-occlusion video data, or for playing the non-occlusion video data received by the video data receiving unit.
在第五方面的第一种可能的实现方式中,  In a first possible implementation of the fifth aspect,
如果所述第一遮挡视频数据包括一路视频数据, 所述播放单元具体用于, 解码所述第一遮挡视频数据得出遮挡视频数据帧, 解码所述非遮挡视频数据 得出非遮挡视频数据帧, 提取遮挡视频数据帧中的像素数据, 并根据第一遮 挡区域的描述信息将提取的像素数据添加到与所述遮挡视频数据帧具有相同 时间戳的非遮挡视频数据帧中所述第一遮挡区域对应的像素区域以生成完整 视频帧, 并播放所述完整视频帧; 或者, 如果所述第一遮挡视频数据包括多路视频数据, 所述播放单元具体用于, 解码所述第一遮挡视频数据中的每一路视频数据得出每一路视频数据的遮挡 视频数据帧, 解码非遮挡视频数据得出非遮挡视频数据帧, 提取各路视频数 据的具有相同时间戳的遮挡视频数据帧中的像素数据, 并将提取的像素数据 添加到与所述遮挡视频数据帧具有相同时间戳的非遮挡视频数据帧中该第一 遮挡区域对应的像素区域生成完整视频帧, 并播放所述完整视频帧。 第六方面, 提供了一种监控前端设备, 所述监控前端设备包括: 描述信 息接收单元、 视频数据编码单元和视频数据发送单元; If the first occlusion video data includes one channel of video data, the playing unit is specifically configured to: decode the first occlusion video data to obtain an occlusion video data frame, and decode the non-occlusion video data to obtain a non-occlusion video data frame. Extracting pixel data in the occlusion video data frame, and adding the extracted pixel data to the first occlusion in the non-occlusion video data frame having the same time stamp as the occlusion video data frame according to the description information of the first occlusion region a pixel area corresponding to the area to generate a complete video frame, and play the complete video frame; or If the first occlusion video data includes multiple video data, the playing unit is specifically configured to: decode each video data in the first occlusion video data to obtain an occlusion video data frame of each video data, and decode the non-decoding video data frame. Blocking the video data to obtain a non-occlusion video data frame, extracting pixel data in the occlusion video data frame having the same time stamp of each video data, and adding the extracted pixel data to the same time stamp as the occlusion video data frame The pixel region corresponding to the first occlusion region in the non-occluded video data frame generates a complete video frame and plays the complete video frame. A sixth aspect provides a monitoring front-end device, where the monitoring front-end device includes: a description information receiving unit, a video data encoding unit, and a video data sending unit;
所述描述信息接收单元, 用于接收监控平台发送的遮挡区域的描述信息; 所述视频数据编码单元, 用于根据所述遮挡区域的描述信息将拍摄的视 视频数据;  The description information receiving unit is configured to receive description information of an occlusion area sent by the monitoring platform, where the video data encoding unit is configured to view video data according to the description information of the occlusion area;
所述视频数据发送单元, 用于向所述监控平台发送所述非遮挡视频数据 和所述遮挡视频数据, 以使得所述监控平台在判断出监控终端的用户具有获 取第一遮挡视频数据的权限时向所述监控终端发送所述非遮挡视频数据以及 所述第一遮挡视频数据, 或者在判断出所述监控终端的用户不具有获取第一 遮挡视频数据的权限时向所述监控终端发送所述非遮挡视频数据, 所述第一 遮挡视频数据对应第一遮挡区域, 所述第一遮挡区域包括所述遮挡区域中的 部分或全部区域。  The video data sending unit is configured to send the non-occlusion video data and the occlusion video data to the monitoring platform, so that the monitoring platform determines that the user of the monitoring terminal has the right to obtain the first occlusion video data. Transmitting the non-occlusion video data and the first occlusion video data to the monitoring terminal, or sending the location to the monitoring terminal when determining that the user of the monitoring terminal does not have the right to acquire the first occlusion video data For the non-occlusion video data, the first occlusion video data corresponds to a first occlusion region, and the first occlusion region includes some or all of the occlusion regions.
在第六方面的第一种可能的实现方式中,  In a first possible implementation of the sixth aspect,
所述视频数据编码单元具体用于, 当所述遮挡区域包括一个区域时, 根 据所述遮挡区域的描述信息将拍摄的视频画面中所述遮挡区域对应的视频画 面编码为一路视频数据; 或者, 当所述遮挡区域包括多个区域时, 根据所述 遮挡区域的描述信息将拍摄的视频画面中所述遮挡区域包括的多个区域对应 的视频画面编码为一路视频数据, 或者, 将拍摄的视频画面中所述遮挡区域 包括的多个区域各自对应的视频画面分别编码为一路视频数据, 或者, 将拍 摄的视频画面中所述遮挡区域包括的多个区域中对应相同权限的区域的视频 画面编码为一路视频数据; 具体还用于, 根据所述遮挡区域的描述信息将拍 摄的视频画面中非遮挡区城对应的视频画面编码 The video data encoding unit is configured to: when the occlusion area includes an area, encode a video picture corresponding to the occlusion area in the captured video picture as one channel of video data according to the description information of the occlusion area; or When the occlusion area includes a plurality of areas, the video picture corresponding to the plurality of areas included in the occlusion area in the captured video picture is encoded as one channel of video data according to the description information of the occlusion area, or the video to be captured The video pictures corresponding to the plurality of areas included in the occlusion area in the picture are respectively encoded as one channel of video data, or The video picture of the area corresponding to the same privilege in the plurality of areas included in the occlusion area is encoded as one channel of video data; and is further configured to: occlude the captured video picture according to the description information of the occlusion area Video frame coding corresponding to the district city
第七方面, 提供了一种视频监控系统, 所述视频监控系统包括: 监控终 端和监控平台; A seventh aspect provides a video surveillance system, where the video surveillance system includes: a monitoring terminal and a monitoring platform;
所述监控终端, 具体为如第五方面或第五方面的第一种可能的实现方式 所述的监控终端;  The monitoring terminal is specifically the monitoring terminal according to the fifth aspect or the first possible implementation manner of the fifth aspect;
所述监控平台, 具体为如第四方面或第四方面的第一或第二种可能的实 现方式所述的监控平台。  The monitoring platform is specifically the monitoring platform as described in the fourth aspect or the first or second possible implementation manner of the fourth aspect.
在第七方面的第一种可能的实现方式中, 所述视频监控系统还包括监控 前端设备; 所述监控前端设备, 具体为如第六方面或第六方面的第一种可能 的实现方式所述的监控前端设备。  In a first possible implementation manner of the seventh aspect, the video monitoring system further includes a monitoring front end device, where the monitoring front end device is specifically the first possible implementation manner of the sixth aspect or the sixth aspect. The monitoring front-end device.
根据本发明实施例, 监控平台接收监控终端的视频请求后判断该监控终 端的用户的权限, 根据判断的结果, 向没有权限获取遮挡视频数据的用户的 监控终端仅发送非遮挡视频数据, 向有权限获取部分或全部遮挡视频数据的 用户的监控终端, 发送遮挡视频数据和非遮挡视频数据使其合并播放, 或发 送将遮挡视频数据和非遮挡视频数据合并后的视频数据, 从而解决了现有技 术中向不同权限的用户的终端均发送遮挡部分的图像数据所导致的安全隐患 问题。  According to the embodiment of the present invention, after receiving the video request of the monitoring terminal, the monitoring platform determines the authority of the user of the monitoring terminal, and according to the result of the determination, sends only the non-occluded video data to the monitoring terminal of the user who does not have the right to obtain the occlusion video data. The monitoring terminal of the user who obtains part or all of the occlusion video data, transmits the occlusion video data and the non-occlusion video data to be combined and played, or transmits the video data combining the occlusion video data and the non-occlusion video data, thereby solving the existing In the technology, the terminal of the user with different rights is sent the security data caused by the occlusion part of the image data.
附图说明 为了更清楚地说明本发明实施例的技术方案, 下面将对实施例或现有技 术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图 仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造 性劳动的前提下, 还可以根据这些附图获得其他的附图。 BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only the present drawings. Some embodiments of the invention may be obtained by those of ordinary skill in the art from the drawings without departing from the scope of the invention.
图 1是本发明实施例的系统架构示意图;  1 is a schematic structural diagram of a system according to an embodiment of the present invention;
图 2是本发明实施例 1提供的方法流程示意图; 图 3是本发明实施例 1提供的一种可选实施方式的方法流程示意图; 图 4是本发明实施例 1的示例实施方式 1的场景示意图; 2 is a schematic flow chart of a method provided by Embodiment 1 of the present invention; 3 is a schematic flowchart of a method according to an alternative embodiment of the present invention; FIG. 4 is a schematic diagram of a scenario of an exemplary embodiment 1 of Embodiment 1 of the present invention;
图 5是本发明实施例 1的示例实施方式 1的方法流程示意图;  FIG. 5 is a schematic flowchart of a method according to an exemplary embodiment 1 of Embodiment 1 of the present invention; FIG.
图 6是本发明实施例 1的示例实施方式 1的终端处理流程示意图; 图 7是本发明实施例 1的示例实施方式 2的场景示意图;  6 is a schematic flowchart of a terminal processing according to an exemplary embodiment 1 of the present invention; FIG. 7 is a schematic diagram of a scenario of an exemplary embodiment 2 of Embodiment 1 of the present invention;
图 8是本发明实施例 1的示例实施方式 2的方法流程示意图;  8 is a schematic flow chart of a method according to an exemplary embodiment 2 of Embodiment 1 of the present invention;
图 9是本发明实施例 1的示例实施方式 2的平台处理流程示意图; 图 10是本发明实施例 1的示例实施方式 3的场景示意图;  9 is a schematic diagram of a process flow of a platform according to an exemplary embodiment 2 of the present invention; FIG. 10 is a schematic diagram of a scenario of an exemplary embodiment 3 of Embodiment 1 of the present invention;
图 11是本发明实施例 1的示例实施方式 3的方法流程示意图;  11 is a schematic flow chart of a method according to an exemplary embodiment 3 of Embodiment 1 of the present invention;
图 12-图 14是本发明实施例 2提供的监控平台的装置结构示意图; 图 15是本发明实施例 3提供的监控终端的装置结构示意图;  12 is a schematic structural diagram of a device for monitoring a monitoring platform according to Embodiment 2 of the present invention; FIG. 15 is a schematic structural diagram of a device for monitoring a terminal provided by Embodiment 3 of the present invention;
图 16是本发明实施例 4提供的监控前端设备的装置结构示意图; 图 17是本发明实施例 5提供的监控平台的另一种装置结构示意图; 图 18是本发明实施例 6提供的监控终端的另一种装置结构示意图; 图 19是本发明实施例 7提供的监控前端设备的另一种装置结构示意图; 图 20-21是本发明实施例 8提供的系统结构示意图。  FIG. 16 is a schematic structural diagram of a device for monitoring a front-end device according to Embodiment 4 of the present invention; FIG. 17 is a schematic structural diagram of another device of a monitoring platform according to Embodiment 5 of the present invention; FIG. 19 is a schematic structural diagram of another apparatus provided by Embodiment 8 of the present invention; FIG. 20 is a schematic structural diagram of a system provided by Embodiment 8 of the present invention.
具体实施方式 detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是 全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创 造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without making creative labor are within the scope of the present invention.
图 1 为本发明实施例提供的视频监控系统架构示意图, 该视频监控系统 包括监控前端设备 ( PU, Per iphera l Uni t ) 110、 监控平台 120、 监控终端 130, 其中, 监控前端设备 110、 监控终端 130均通过传输网络 140与监控平 台 120通信。  FIG. 1 is a schematic structural diagram of a video surveillance system according to an embodiment of the present invention. The video surveillance system includes a monitoring front-end device (PU), a monitoring platform 120, and a monitoring terminal 130. The monitoring front-end device 110 and monitoring Terminals 130 each communicate with monitoring platform 120 via transport network 140.
所述传输网络 140, 具体可以是互联网、 局域网、 广域网、 存储局域网等 中的一种或其组合, 监控平台 120接入网络的方式具体可以是有线接入方式, 监控前端设备 110、监控终端 130接入网络的方式具体可以是有线接入方式或 无线接入方式, 其中, 有线接入方式包括通过网线的接入方式或通过光纤的 接入方式, 无线接入方式包括 WIFI (例如 IEEE 802. l la、 IEEE 802. l ib, IEEE 802. l lg和 /或 IEEE 802. l ln ) 、 GSM (EDGE) , WCDMA, CDMA, TD- SCDMA、 蓝牙、 LTE等接入方式。 The transmission network 140 may be one of the Internet, the local area network, the wide area network, the storage area network, or the like. The manner in which the monitoring platform 120 accesses the network may be a wired access mode. The manner in which the monitoring front-end device 110 and the monitoring terminal 130 access the network may be a wired access mode or a wireless access mode, where the wired access mode includes access mode through a network cable or access mode through an optical fiber, and wireless access The method includes WIFI (for example, IEEE 802. l la, IEEE 802. l ib, IEEE 802. l lg and/or IEEE 802. l ln ), GSM (EDGE), WCDMA, CDMA, TD-SCDMA, Bluetooth, LTE, etc. Into the way.
所述监控前端设备 110,用于釆集视频数据并将釆集的视频数据通过传输 网络发送至监控平台, 优选地, 可以根据设置的遮挡区域的描述信息生成对 应非遮挡区域的非遮挡视频数据和对应遮挡区域的遮挡视频数据并分别传输 给监控平台。 该监控前端设备 110 的硬件表现形态可以是所有类型的摄像机 设备, 如球机、 枪机、 半球机等网络摄像机, 又如模拟摄像机和编码器。  The monitoring front-end device 110 is configured to collect video data and send the collected video data to the monitoring platform through the transmission network. Preferably, the non-occlusion video data corresponding to the non-occlusion region may be generated according to the description information of the set occlusion region. The occlusion video data corresponding to the occlusion area is transmitted to the monitoring platform separately. The hardware configuration of the monitoring front-end device 110 can be any type of camera device, such as a network camera such as a ball machine, a gun machine, or a dome camera, and an analog camera and an encoder.
所述监控平台 120,用于接收监控前端设备 110发送的遮挡视频数据和非 遮挡视频数据或将接收自监控前端设备 110 的完整视频数据分离为遮挡视频 数据和非遮挡视频数据, 并根据监控终端 130 的用户的权限将相应的视频数 据发送给该监控终端, 对于有获取遮挡视频数据的权限的用户, 可以将遮挡 视频数据和非遮挡视频数据发送给该监控终端合并播放, 还可以将遮挡视频 数据和非遮挡视频数据合并后发送给该监控终端播放。  The monitoring platform 120 is configured to receive the occlusion video data and the non-occlusion video data sent by the monitoring front end device 110 or separate the complete video data received from the monitoring front end device 110 into occlusion video data and non-occlusion video data, and according to the monitoring terminal The user's right of 130 sends the corresponding video data to the monitoring terminal. For the user who has the right to obtain the occlusion video data, the occlusion video data and the non-occlusion video data can be sent to the monitoring terminal for combined play, and the occlusion video can also be occluded. The data and the non-occluded video data are combined and sent to the monitoring terminal for playback.
所述监控终端 130, 用于接收监控平台发送的视频数据, 如果接收的视频 数据包括非遮挡视频数据和遮挡视频数据, 还用于将遮挡视频数据和非遮挡 视频数据合并播放。 图 2是本发明实施例 1提供的实现视频遮挡的方法流程示意图。  The monitoring terminal 130 is configured to receive video data sent by the monitoring platform. If the received video data includes non-occlusion video data and occlusion video data, the monitoring terminal 130 is further configured to combine the occlusion video data and the non-occlusion video data. FIG. 2 is a schematic flowchart of a method for implementing video occlusion according to Embodiment 1 of the present invention.
步骤 210: 接收第一监控终端发送的视频请求, 所述视频请求包括设备标 识, 所述设备标识所标识的监控前端设备的视频数据包括对应非遮挡区域的 非遮挡视频数据和对应遮挡区域的遮挡视频数据;  Step 210: Receive a video request sent by the first monitoring terminal, where the video request includes a device identifier, where the video data of the monitoring front-end device identified by the device identifier includes non-occlusion video data corresponding to the non-occlusion area and occlusion of the corresponding occlusion area. Video data;
所述遮挡视频数据和非遮挡视频数据具体可以釆用 H. 264格式编码。 所述设备标识用于唯一标识所述监控前端设备, 具体可以包括所述监控 前端设备的摄像机的标识, 也可以包括所述监控前端设备的云镜的标识; 步骤 220:判断所述第一监控终端的用户是否具有获取所述遮挡视频数据 中的第一遮挡视频数据的权限, 所述第一遮挡视频数据对应第一遮挡区域, 所述第一遮挡区域包括所述遮挡区域中的部分或全部区域; The occlusion video data and the non-occlusion video data may be specifically encoded in the H.264 format. The device identifier is used to uniquely identify the monitoring front-end device, and specifically includes the monitoring The identifier of the camera of the front-end device may also include the identifier of the cloud mirror of the monitoring front-end device. Step 220: Determine whether the user of the first monitoring terminal has the right to obtain the first occlusion video data in the occlusion video data. The first occlusion video data corresponds to a first occlusion region, and the first occlusion region includes some or all of the occlusion regions;
所述遮挡区域, 具体可以包括一个或多个区域, 所述区域具体可以是矩 形、 圓形、 多边形等。 如果包括一个区域, 对应该遮挡区域的遮挡视频数据 具体可以包括一路视频数据; 如果包括多个区域, 对应该遮挡区域的遮挡视 频数据具体可以包括一路视频数据, 也可以包括多路视频数据, 如, 该遮挡 区域包括的每个区域均对应一路视频数据。  The occlusion area may specifically include one or more areas, and the area may specifically be a rectangle, a circle, a polygon, or the like. If an area is included, the occlusion video data corresponding to the occlusion area may specifically include one channel of video data; if multiple areas are included, the occlusion video data corresponding to the occlusion area may specifically include one channel of video data, and may also include multiple channels of video data, such as Each area included in the occlusion area corresponds to one channel of video data.
具体可以釆用遮挡区域的描述信息来描述遮挡区域, 所述遮挡区域的描 述信息具体包括遮挡区域的坐标, 例如在遮挡区域包括矩形时, 该遮挡区域 的描述信息可以包括该矩形的至少三个顶点的坐标, 也可以仅包括矩形的一 个顶点的坐标和该矩形的宽度和高度, 如(X , y , w, h ) , 其中, χ为左上顶 点横坐标, y为左上顶点纵坐标, w为宽度, h高度。  Specifically, the description information of the occlusion area may be used to describe the occlusion area, where the description information of the occlusion area specifically includes the coordinates of the occlusion area. For example, when the occlusion area includes a rectangle, the description information of the occlusion area may include at least three of the rectangles. The coordinates of the vertices may also include only the coordinates of a vertex of the rectangle and the width and height of the rectangle, such as (X, y, w, h), where χ is the top left vertex ordinate, y is the upper left vertex ordinate, w For width, h height.
具体地, 可以对该遮挡视频数据进行整体的权限控制, 即, 将访问该遮 挡视频数据的权限分成两个权限等级, 有权限访问和无权限访问, 则可以直 接判断用户是否有权限访问遮挡视频数据, 釆用该实现方式, 所述第一遮挡 视频数据即为所述遮挡视频数据, 所述第一遮挡区域即为所述遮挡区域(即 包括所述遮挡区域的全部区域) ; 具体地, 还可以对遮挡视频数据进行基于 区域的权限控制, 针对不同的区域设置各自的权限, 即不同的区域对应的视 频数据可以对应不同的权限, 如, 该遮挡区域包括 3个区域, 区域 1和区域 2 对应权限 A , 区域 3对应权限 B , 又如, 该遮挡区域包括 3个区域, 区域 1对 应权限 A , 区域 2对应权限 B , 区域 3对应权限 C , 则需要判断用户是否有权 限访问具体区域对应的遮挡视频数据。  Specifically, the occlusion video data may be subjected to overall authority control, that is, the authority to access the occlusion video data is divided into two privilege levels, and if the privileged access and the privileged access are available, the user may directly determine whether the user has the privilege to access the occlusion video. Data, in the implementation manner, the first occlusion video data is the occlusion video data, and the first occlusion region is the occlusion region (ie, the entire region including the occlusion region); specifically, It is also possible to perform area-based authority control on the occlusion video data, and set respective rights for different areas, that is, video data corresponding to different areas may correspond to different rights, for example, the occlusion area includes three areas, area 1 and area. 2 Corresponding to the authority A, the area 3 corresponds to the authority B. For example, the occlusion area includes three areas, the area 1 corresponds to the authority A, the area 2 corresponds to the authority B, and the area 3 corresponds to the authority C, and it is necessary to determine whether the user has the right to access the specific area. Corresponding occlusion video data.
具体地, 可以根据密码进行权限判断, 如, 如果判断出接收自第一监控 终端的用于获取第一遮挡视频数据的密码是正确的 (即用户输入了正确的密 码) , 则确定该用户具有获取第一遮挡视频数据的权限。 Specifically, the authority determination may be performed according to the password, for example, if it is determined that the password used to acquire the first occlusion video data received from the first monitoring terminal is correct (ie, the user inputs the correct password) Code), then determine that the user has the right to obtain the first occlusion video data.
具体地, 还可以根据第一监控终端的用户的用户标识进行权限判断, 如, 可以预先配置授权用户标识, 如果该用户标识与授权用户标识相匹配, 则确 定该用户具有获取该第一遮挡视频数据的权限; 还可以预先配置授权账户类 型, 如果该用户标识所对应的账户类型与授权账户类型相匹配, 则确定该用 户具有获取该第一遮挡视频数据的权限。 可选地, 可以在用户通过该监控终 端登录的过程中获取该用户标识, 另外, 步骤 210接收的视频请求可以携带 用户标识, 则可以获取该视频请求中携带的用户标识。  Specifically, the user may perform the permission determination according to the user identifier of the user of the first monitoring terminal. For example, the authorized user identifier may be pre-configured. If the user identifier matches the authorized user identifier, determining that the user has acquired the first occlusion video. The authority of the data may also be pre-configured. If the account type corresponding to the user identifier matches the authorized account type, it is determined that the user has the right to obtain the first occlusion video data. Optionally, the user identifier can be obtained by the user in the process of logging in through the monitoring terminal. In addition, the video request received by the step 210 can carry the user identifier, and the user identifier carried in the video request can be obtained.
如果判断结果为是,执行步骤 230Α; 如果判断结果为否,执行步骤 230Β。 步骤 230Α: 获取第一遮挡视频数据和非遮挡视频数据, 向所述第一监控 终端发送第一遮挡视频数据和非遮挡视频数据, 以使得第一监控终端合并播 放该第一遮挡视频数据和非遮挡视频数据; 或者, 合并第一遮挡视频数据和 非遮挡视频数据, 并将合并后的视频数据发送给第一监控终端;  If the result of the determination is yes, step 230 is performed; if the result of the determination is no, step 230 is performed. Step 230: Obtain first occlusion video data and non-occlusion video data, and send first occlusion video data and non-occlusion video data to the first monitoring terminal, so that the first monitoring terminal merges and plays the first occlusion video data and non- Blocking the video data; or, combining the first occlusion video data and the non-occlusion video data, and transmitting the combined video data to the first monitoring terminal;
优选地, 还可以向所述第一监控终端发送遮挡视频数据的数据类型, 以 使得所述第一监控终端从收到的视频数据中识别出遮挡视频数据, 具体可以 是在发送给所述第一监控终端的用于获取该遮挡视频数据的获取地址 (如 URL ) 中包括该数据类型, 还可以是在发送给所述第一监控终端的用于携带该 获取地址的消息中包括该数据类型, 还可以是在建立第一监控终端和监控平 台之间的用于传输遮挡视频数据的媒体通道的过程中发送该数据类型。  Preferably, the data type of the occlusion video data may be sent to the first monitoring terminal, so that the first monitoring terminal identifies the occlusion video data from the received video data, which may be specifically sent to the first The data type is included in the acquisition address (such as a URL) of the monitoring terminal for acquiring the occlusion video data, and may be included in the message sent to the first monitoring terminal for carrying the acquired address. The data type may also be sent during the process of establishing a media channel between the first monitoring terminal and the monitoring platform for transmitting the occlusion video data.
优选地, 在发送第一遮挡视频数据之前还可以包括, 将所述第一遮挡区 域的描述信息发送给所述第一监控终端, 以使得所述第一监控终端根据所述 第一遮挡区域的描述信息将步骤 230Α中接收的第一遮挡视频数据和非遮挡视 频数据合并播放, 具体可以是在发送给所述第一监控终端的用于获取该遮挡 视频数据的获取地址(如 URL )中包括该描述信息, 还可以是在发送给所述第 一监控终端的用于携带该获取地址的消息中包括该描述信息, 还可以是在建 立用于传输遮挡视频数据的媒体通道的过程中发送该描述信息。 步骤 230B: 获取所述非遮挡视频数据并发送给所述第一监控终端。 可选地 , 步骤 23 OA和步骤 230B的具体实现如下: Preferably, before the sending of the first occlusion video data, the method further includes: sending the description information of the first occlusion area to the first monitoring terminal, so that the first monitoring terminal is configured according to the first occlusion area The description information is combined with the first occlusion video data and the non-occlusion video data received in step 230, and may be included in an acquisition address (such as a URL) sent to the first monitoring terminal for acquiring the occlusion video data. The description information may be further included in the message for carrying the acquisition address sent to the first monitoring terminal, or may be sent in the process of establishing a media channel for transmitting occlusion video data. Description. Step 230B: Acquire the non-occlusion video data and send the data to the first monitoring terminal. Optionally, the specific implementation of step 23 OA and step 230B is as follows:
在步骤 230A中, 所述获取第一遮挡视频数据和非遮挡视频数据, 向所述 第一监控终端发送第一遮挡视频数据和非遮挡视频数据, 具体可以包括: 生 成第一遮挡视频数据的获取地址(如 URL, 后续简称为获取地址 1 )和非遮挡 视频数据的获取地址(如 URL, 后续简称为获取地址 2)并发送给第一监控终 端, 接收第一监控终端发送的包含获取地址 2 的请求, 根据所述获取地址 2 与所述第一监控终端建立用于发送所述非遮挡视频数据的媒体通道, 根据获 取地址 2 获取所述非遮挡视频数据并通过所述媒体通道发送所述非遮挡视频 数据; 同时, 接收第一监控终端发送的包含获取地址 1 的请求, 根据获取地 址 1 与所述第一监控终端建立用于发送所述第一遮挡视频数据的媒体通道, 根据所述第一遮挡视频数据获取地址获取所述第一遮挡视频数据并通过所述 媒体通道发送所述第一遮挡视频数据, 具体地, 如果所述第一遮挡视频数据 包括多路视频数据, 则所述第一遮挡视频数据的获取地址包括多路视频数据 的获取地址, 后续建立的媒体通道包括用于传输该多路视频数据的多个媒体 通道。  In the step 230A, the acquiring the first occlusion video data and the non-occlusion video data, and sending the first occlusion video data and the non-occlusion video data to the first monitoring terminal may include: generating the first occlusion video data. The address (such as a URL, which is hereinafter referred to as the acquisition address 1) and the acquisition address of the non-occlusion video data (such as a URL, which is hereinafter referred to as the acquisition address 2) are sent to the first monitoring terminal, and the received first address is sent by the first monitoring terminal. a request, the media channel for transmitting the non-occlusion video data is established with the first monitoring terminal according to the obtaining address 2, the non-occlusion video data is obtained according to the obtaining address 2, and the non-occlusion video data is sent by using the media channel. Receiving a request for acquiring the address 1 sent by the first monitoring terminal, and establishing, by the first monitoring terminal, a media channel for transmitting the first occlusion video data according to the obtaining address 1 according to the Obtaining the first occlusion video data by the first occlusion video data acquisition address and passing the medium The first occlusion video data is sent by the body channel. Specifically, if the first occlusion video data includes multiple video data, the acquisition address of the first occlusion video data includes an acquisition address of the multiplex video data, and is subsequently established. The media channel includes a plurality of media channels for transmitting the plurality of video data.
优选地, 在向第一监控终端发送的获取地址(如 URL) 中携带数据类型, 该数据类型用于表示根据该获取地址可以获取的视频数据是非遮挡视频数据 还是遮挡视频数据。 携带数据类型的 URL (统一资源定位符, Universal Resource Locator )格式示例如下:  Preferably, the data type is carried in the acquiring address (such as a URL) sent to the first monitoring terminal, and the data type is used to indicate whether the video data that can be acquired according to the acquiring address is non-occlusion video data or occlusion video data. An example of a URL carrying a data type (Universal Resource Locator) is as follows:
非遮挡视频数据的 URL示例: rtsp:〃192.7.90.55: 554/ipc00001?type= 非遮挡;  Example of a URL for non-occlusion video data: rtsp: 〃192.7.90.55: 554/ipc00001?type= non-occlusion;
遮挡视频数据的 URL示例: rtsp:〃192.7.90.55: 554/ipc00001?type=it 挡。  Example of a URL that occludes video data: rtsp: 〃192.7.90.55: 554/ipc00001?type=it Block.
其中 rtsp 指的是实时流传输协议, 全称为 real time streaming protocols Where rtsp refers to the real-time streaming protocol, which is called real time streaming. Protocol
优选地, 还可以在遮挡视频数据的获取地址中携带该遮挡视频数据对应 的遮挡区域的描述信息 (如遮挡区域的坐标) 。 携带数据类型和遮挡区域的 描述信息的 URL格式示例如下:  Preferably, the description information of the occlusion area corresponding to the occlusion video data (such as the coordinates of the occlusion area) may be carried in the acquisition address of the occlusion video data. An example of a URL format that carries a description of the data type and occlusion area is as follows:
遮挡视频数据的 URL示例 1: rtsp:〃192.7.90.55: 554/ipc00001?type= 遮挡&遮挡坐标 1 (xl,yl,wl,hl) &遮挡坐标 2(x2,y2,w2,h2) , 在该示例中, 该 遮挡视频数据对应两个遮挡区域;  Example of occlusion of video data URL 1: rtsp: 〃192.7.90.55: 554/ipc00001?type= occlusion & occlusion coordinates 1 (xl, yl, wl, hl) & occlusion coordinates 2 (x2, y2, w2, h2), in In this example, the occlusion video data corresponds to two occlusion regions;
遮挡视频数据的 URL示例 2: rtsp:〃192.7.90.55: 554/ipc00001?type= 遮挡&遮挡坐标 1 (xl, yl, wl, hi) , 在该示例中, 该遮挡视频数据对应一个遮挡 区域。  Example of occlusion of video data URL 2: rtsp: 〃192.7.90.55: 554/ipc00001?type= occlusion & occlusion coordinates 1 (xl, yl, wl, hi) , in this example, the occlusion video data corresponds to an occlusion area.
可选地, 监控平台还可以通过消息交互方式将数据类型和 /或遮挡区域的 描述信息发送给第一监控终端, 如, 在向第一监控终端返回 URL 的时候, 通 过携带该 URL的消息中的 XML结构的消息体包括该数据类型和 /或遮挡区域的 描述信息, 如下所示:  Optionally, the monitoring platform may further send the description information of the data type and/or the occlusion area to the first monitoring terminal by using a message interaction manner, for example, when returning the URL to the first monitoring terminal, by using the message carrying the URL. The message body of the XML structure includes description information of the data type and/or occlusion area, as follows:
<url> rtsp:〃192.7.90.55: 554/ipc00001?type=遮挡 </ur 1>  <url> rtsp:〃192.7.90.55: 554/ipc00001?type=Occlusion </ur 1>
<coordinate>  <coordinate>
<value> (xl, yl, wl, hi) </value>  <value> (xl, yl, wl, hi) </value>
<value> (x2, y2, w2, h2) </value>  <value> (x2, y2, w2, h2) </value>
<coordinate>  <coordinate>
另外, 还可以在建立第一监控终端和监控平台之间的媒体通道的过程中 通过 RTSP ANNOUNCE消息中自定义的结构体携带数据类型和 /或遮挡区域的描 述信息, 示例如下:  In addition, in the process of establishing a media channel between the first monitoring terminal and the monitoring platform, the description of the data type and/or the occlusion area is carried by the customized structure in the RTSP ANNOUNCE message, as follows:
S->C: ANNOUNCE rtsp: //192.7.90.55: 554/ipc00001 RTSP/1.0  S->C: ANNOUNCE rtsp: //192.7.90.55: 554/ipc00001 RTSP/1.0
CSeq: 312  CSeq: 312
Date: 23 Jan 1997 15: 35: 06 GMT  Date: 23 Jan 1997 15: 35: 06 GMT
Session: 47112344 ur l type: KeepOutUr l 〃表明此媒体流属于遮挡视频数据 Session: 47112344 Ur l type: KeepOutUr l 〃 indicates that this media stream belongs to occlusion video data
ur lcoordina te: xl=100, yl=100, wl=200, hl=200; x2=100, y2=100, w2=200 , h2=200;  Ur lcoordina te: xl=100, yl=100, wl=200, hl=200; x2=100, y2=100, w2=200, h2=200;
在步骤 230A中, 所述获取第一遮挡视频数据和非遮挡视频数据, 合并第 一遮挡视频数据和非遮挡视频数据, 并将合并后的视频数据发送给第一监控 终端, 具体包括: 生成用于获取合并后的视频数据的获取地址(如 URL )并发 送给第一监控终端, 接收第一监控终端发送的包含所述获取地址的请求, 根 据所述获取地址与所述第一监控终端建立用于发送合并后的视频数据的媒体 通道, 获取并合并第一遮挡视频数据和非遮挡视频数据, 通过所述媒体通道 向所述第一监控终端发送所述合并后的视频数据。  In step 230A, the acquiring the first occlusion video data and the non-occlusion video data, combining the first occlusion video data and the non-occlusion video data, and transmitting the combined video data to the first monitoring terminal, specifically: generating Obtaining an acquisition address (such as a URL) of the merged video data, and sending the result to the first monitoring terminal, receiving a request that is sent by the first monitoring terminal and including the acquiring address, and establishing, according to the acquiring address, the first monitoring terminal. a media channel for transmitting the merged video data, acquiring and combining the first occlusion video data and the non-occlusion video data, and transmitting, by using the media channel, the merged video data to the first monitoring terminal.
步骤 230B可以包括: 生成非遮挡视频数据的获取地址并发送给第一监控 终端, 接收第一监控终端发送的包含所述获取地址的请求, 根据所述获取地 址与所述第一监控终端建立用于发送所述非遮挡视频数据的媒体通道, 根据 所述非遮挡视频数据获取地址获取所述非遮挡视频数据并通过所述媒体通道 发送所述非遮挡视频数据。  The step 230B may include: generating an acquisition address of the non-occlusion video data, and sending the acquisition address to the first monitoring terminal, receiving a request for the acquisition address sent by the first monitoring terminal, and establishing the usage with the first monitoring terminal according to the obtaining address. And sending, by the media channel, the non-occlusion video data according to the non-occlusion video data acquisition address, and transmitting the non-occlusion video data through the media channel.
下面结合图 3说明本发明实施例 1的一种可选实施方式。  An alternative embodiment of Embodiment 1 of the present invention will be described below with reference to FIG.
本实施方式中的 CU ( C l ient Uni t , 客户端单元) , 是安装在监控终端上 的客户端软件, 为监控人员提供实时视频监控、 录像查询回放、 云镜操作等 功能。  The CU (C ient Uni t, client unit) in this embodiment is a client software installed on the monitoring terminal, and provides real-time video monitoring, video query playback, cloud mirror operation and the like for the monitoring personnel.
监控平台包括 SCU (Service Contro l Uni t , 业务控制单元)和 MU (Media Uni t , 媒体单元), 在实际应用中, SCU和 MU可能在同一台通用服务器或专用 服务器中实现, 也可能分别在不同的通用服务器或专用服务器中实现。 步骤 301 : CU向监控平台的 SCU发送视频请求, 所述视频请求包括设备 标识, 用于请求获取所述设备标识所标识的监控前端设备的视频数据, 所述 视频数据包括对应非遮挡区域的非遮挡视频数据和对应遮挡区域的遮挡视频 数据。 The monitoring platform includes SCU (Service Contro l Uni t, Service Control Unit) and MU (Media Uni t, Media Unit). In practical applications, SCU and MU may be implemented in the same general server or dedicated server, or may be in separate Implemented in different general purpose servers or dedicated servers. Step 301: The CU sends a video request to the SCU of the monitoring platform, where the video request includes a device identifier, and is used to request to acquire video data of the monitoring front-end device identified by the device identifier, where the video data includes a non-occlusion region. Occlusion video data and occlusion video for corresponding occlusion areas Data.
步骤 302: 所述 SCU判断 CU的用户是否具有获取所述遮挡视频数据中的 第一遮挡视频数据的权限, 所述第一遮挡视频数据对应第一遮挡区域, 所述 第一遮挡区域包括所述遮挡区域中的部分或全部区域;  Step 302: The SCU determines whether the user of the CU has the right to obtain the first occlusion video data in the occlusion video data, where the first occlusion video data corresponds to the first occlusion region, and the first occlusion region includes the Blocking some or all of the area in the area;
步骤 302的具体实现同步骤 220, 不再赘述。  The specific implementation of step 302 is the same as step 220, and details are not described herein again.
如果判断结果为是, 执行步骤 303A-312A,在本实施方式中, 假定所述第 一遮挡视频数据包括一路视频数据;  If the determination result is yes, steps 303A-312A are performed. In this embodiment, it is assumed that the first occlusion video data includes one channel of video data;
如果判断结果为否, 执行步骤 303B-308B。  If the result of the determination is no, steps 303B-308B are performed.
步骤 303A-306A: 所述 SCU向 MU请求所述第一遮挡视频数据的 URL和所 述非遮挡视频数据的 URL, 所述 MU生成所述第一遮挡视频数据的 URL和所述 非遮挡视频数据的 URL并返回给所述 SCU。  Steps 303A-306A: The SCU requests the URL of the first occlusion video data and the URL of the non-occlusion video data to the MU, where the MU generates the URL of the first occlusion video data and the non-occlusion video data. The URL is returned to the SCU.
步骤 307A:所述 SCU向所述 CU返回所述第一遮挡视频数据的 URL和所述 非遮挡视频数据的 URL。  Step 307A: The SCU returns a URL of the first occlusion video data and a URL of the non-occlusion video data to the CU.
步骤 308A-309A:所述 CU根据所述第一遮挡视频数据的 URL向所述 MU请 求获取所述第一遮挡视频数据, 与所述 MU建立用于传输所述第一遮挡视频数 据的媒体通道, 并通过所述媒体通道接收所述 MU发送的所述第一遮挡视频数 据。  Step 308A-309A: The CU requests the MU to acquire the first occlusion video data according to the URL of the first occlusion video data, and establishes, by the MU, a media channel for transmitting the first occlusion video data. Receiving, by the media channel, the first occlusion video data sent by the MU.
步骤 310A-311A:所述 CU根据所述非遮挡视频数据的 URL向所述 MU请求 获取所述非遮挡视频数据, 与所述 MU建立用于传输所述非遮挡视频数据的媒 体通道, 并通过所述媒体通道接收所述 MU发送的所述非遮挡视频数据。  Steps 310A-311A: The CU requests the MU to acquire the non-occlusion video data according to the URL of the non-occlusion video data, and establish a media channel for transmitting the non-occlusion video data with the MU, and pass the The media channel receives the non-occlusion video data sent by the MU.
步骤 312A: CU合并播放该第一遮挡视频数据和非遮挡视频数据。  Step 312A: The CU merges and plays the first occlusion video data and the non-occlusion video data.
步骤 303B-304B: 所述 SCU向 MU请求所述非遮挡视频数据的 URL , 所述 MU生成所述非遮挡视频数据的 URL并返回给所述 SCU。  Step 303B-304B: The SCU requests a URL of the non-occlusion video data from the MU, and the MU generates a URL of the non-occlusion video data and returns the URL to the SCU.
步骤 305B: 所述 SCU向所述 CU返回所述非遮挡视频数据的 URL。  Step 305B: The SCU returns a URL of the non-occlusion video data to the CU.
步骤 306B-307B:所述 CU根据所述非遮挡视频数据的 URL向所述 MU请求 获取所述非遮挡视频数据, 与所述 MU建立用于传输所述非遮挡视频数据的媒 体通道, 并通过所述媒体通道接收所述 MU发送的所述非遮挡视频数据。 步骤 308B: CU播放所述非遮挡视频数据。 根据本发明实施例 1 ,监控平台接收监控终端的视频请求后判断该监控终 端的用户的权限, 根据判断的结果, 向没有权限获取遮挡视频数据的用户的 监控终端仅发送非遮挡视频数据, 向有权限获取部分或全部遮挡视频数据的 用户的监控终端, 发送遮挡视频数据和非遮挡视频数据使其合并播放, 或发 送将遮挡视频数据和非遮挡视频数据合并后的视频数据, 从而解决了现有技 术中向不同权限的用户的终端均发送遮挡部分的图像数据所导致的安全隐患 问题。 Step 306B-307B: The CU requests the MU to acquire the non-occlusion video data according to the URL of the non-occlusion video data, and establishes, with the MU, a medium for transmitting the non-occlusion video data. a body channel, and receiving, by the media channel, the non-occlusion video data sent by the MU. Step 308B: The CU plays the non-occlusion video data. According to the first embodiment of the present invention, after receiving the video request of the monitoring terminal, the monitoring platform determines the authority of the user of the monitoring terminal, and according to the result of the determination, only sends the non-occluded video data to the monitoring terminal of the user who does not have the right to obtain the occlusion video data. A monitoring terminal having permission to acquire part or all of the video data occluding the occlusion video data and the non-occlusion video data to be combined and played, or transmitting video data combining the occlusion video data and the non-occlusion video data, thereby solving the present In the technology, the terminals of users with different rights are all sent to the occlusion part of the image data to cause security risks.
另外, 根据本发明实施例 1 , 还可以实现基于区域的权限控制, 即, 如果 遮挡区域包括多个区域, 可以针对不同的区域设置各自的权限, 进而根据用 户的权限向用户的监控终端发送该用户有权限获取的部分或全部区域对应的 遮挡视频数据, 从而实现更精准的权限控制。 需要说明的是, 本发明实施例 1 既可以用于实时视频监控场景, 也可以 用于录像查看场景 (如录像回放、 录像下载) 。 如果用于录像查看场景, 步 骤 230A、 230B中的获取非遮挡视频数据具体为从非遮挡录像文件中读取非遮 挡视频数据, 步骤 23 OA中的获取遮挡视频数据具体为从遮挡录像文件中读取 遮挡视频数据。  In addition, according to the embodiment 1 of the present invention, the area-based authority control can also be implemented, that is, if the occlusion area includes multiple areas, the respective rights can be set for different areas, and then the user is sent according to the rights of the user to the monitoring terminal of the user. The occlusion video data corresponding to some or all areas that the user has permission to obtain, thereby achieving more precise authority control. It should be noted that the first embodiment of the present invention can be used for both real-time video surveillance scenarios and video viewing scenarios (such as video playback and video downloading). If the non-occlusion video data is obtained from the non-occlusion video file, the non-occlusion video data is read from the non-occlusion video file in step 230A, 230B, and the occlusion video data in step OA is specifically read from the occlusion video file. Take occlusion video data.
相应地, 在步骤 210之前执行如下操作:  Accordingly, the following operations are performed before step 210:
将所述遮挡视频数据存储到遮挡录像文件中, 将所述非遮挡视频数据存 储到非遮挡录像文件中, 所述遮挡录像文件包括一或多个录像文件, 并建立 所述遮挡录像文件和所述非遮挡录像文件的关联关系。  Storing the occlusion video data into an occlusion video file, storing the non-occlusion video data into a non-occlusion video file, the occlusion video file including one or more video files, and establishing the occlusion video file and the The relationship of non-occlusion video files.
所述建立所述遮挡录像文件和非遮挡录像文件的关联关系, 具体包括: 记录非遮挡录像索引和遮挡录像索引, 所述非遮挡录像索引包括所述监控前 端设备的设备标识、 录像起止时间、 非遮挡视频数据指示信息和所述非遮挡 录像文件的标识 (如所述非遮挡录像文件的存储地址, 具体可以是所述非遮 挡录像文件的绝对路径) , 所述非遮挡视频数据指示信息用于表明该非遮挡 录像索引为非遮挡录像文件的索引; 所述遮挡录像索引包含遮挡视频数据指 示信息和所述遮挡录像文件的标识 (如所述遮挡录像文件的存储地址, 具体 可以是所述遮挡录像文件的绝对路径) , 所述遮挡视频数据指示信息用于表 明该遮挡录像索引为非遮挡录像文件的索引; 并建立所述非遮挡录像索引和 所述遮挡录像索引的关联关系。 优选地, 所述非遮挡录像索引和遮挡录像索 引均可以包含非独立索引指示信息, 所述非独立索引指示信息用于表明该索 引有关联的索引, 如, 非遮挡录像索引的非独立索引指示信息用于表明该非 遮挡录像索引有关联的遮挡录像索引; 所述非遮挡录像索引和 /或所述遮挡录 像索引还可以包含遮挡区域描述信息或用于获取遮挡区域描述信息的信息 (如遮挡区域描述信息的存储地址) 。 所述建立非遮挡录像索引和遮挡录像 索引的关联关系, 具体可以包括将所述遮挡录像索引的标识 (如索引号)记 录到所述非遮挡录像索引中, 还可以包括将所述非遮挡录像索引的标识 (如 索引号)记录到所述遮挡录像索引中, 另外还可以是记录遮挡录像索引的标 识和非遮挡录像索引的标识的关联关系。 需要说明的是, 如果所述遮挡视频 数据包括多路视频数据, 则可以针对每路视频数据分别建立一条遮挡录像索 引, 并建立所述非遮挡录像索引和每条遮挡录像索引的关联关系, 优选地, 在每条遮挡录像索引中记录该录像文件对应的遮挡区域的描述信息或用于获 取该录像文件对应的遮挡区域的描述信息的信息。 The establishing the association relationship between the occlusion video file and the non-occlusion video file includes: recording a non-occlusion recording index and an occlusion recording index, where the non-occlusion recording index includes a device identifier of the monitoring front end device, a video start and end time, Non-occlusion video data indication information and the non-occlusion The identifier of the video file (such as the storage address of the non-occlusion video file, specifically the absolute path of the non-occlusion video file), the non-occlusion video data indication information is used to indicate that the non-occlusion video index is unobstructed video The occlusion recording index includes an occlusion video data indication information and an identifier of the occlusion video file (such as a storage address of the occlusion video file, specifically an absolute path of the occlusion video file), the occlusion The video data indication information is used to indicate that the occlusion recording index is an index of the non-occlusion recording file; and establish an association relationship between the non-occlusion recording index and the occlusion recording index. Preferably, the non-occlusion index and the occlusion index may each include non-independent index indication information, where the non-independent index indication information is used to indicate that the index has an associated index, for example, a non-independent index indication of the non-occlusion recording index. The information is used to indicate that the non-occlusion recording index has an associated occlusion recording index; the non-occlusion recording index and/or the occlusion recording index may further include occlusion area description information or information for acquiring occlusion area description information (such as occlusion) The storage address of the area description information). The establishing the association relationship between the non-occlusion recording index and the occlusion recording index may include: recording the identifier of the occlusion recording index (such as an index number) into the non-occlusion recording index, and further comprising recording the non-occlusion video The identifier of the index (such as the index number) is recorded in the occlusion recording index, and may also be an association relationship between the identifier of the occlusion recording index and the identifier of the non-occlusion recording index. It should be noted that, if the occlusion video data includes multiple video data, an occlusion recording index may be separately established for each video data, and an association relationship between the non-occlusion recording index and each occlusion recording index is established, and the optimal relationship is established. The description information of the occlusion area corresponding to the video file or the information for obtaining the description information of the occlusion area corresponding to the video file is recorded in each occlusion recording index.
非遮挡录像索引和遮挡录像索引的示例如表 1所示。
Figure imgf000022_0001
Figure imgf000022_0002
An example of a non-occlusion recording index and an occlusion recording index is shown in Table 1.
Figure imgf000022_0001
Figure imgf000022_0002
表 1  Table 1
相应地, 如果用于录像查看场景, 步骤 210发送的视频请求还可以包括 查看时间。 在步骤 230A和 230B中, 所述获取非遮挡视频数据具体为获取所 述非遮挡录像文件中对应所述查看时间的视频数据, 具体可以包括: 根据监 控前端设备标识、 查看时间和非遮挡视频数据指示信息获取非遮挡录像索引, 根据非遮挡录像索引中的所述非遮挡录像文件的标识获取非遮挡录像文件, 从非遮挡录像文件中获取对应该查看时间的非遮挡视频数据;在步骤 23 OA中, 所述获取遮挡视频数据, 具体为, 根据所述所述遮挡录像文件和所述非遮挡 录像文件的关联关系获取所述非遮挡录像文件关联的对应所述第一遮挡区域 的一或多个录像文件, 并获取对应所述第一遮挡区域的一或多个录像文件中 对应所述查看时间的视频数据, 具体包括: 根据所述非遮挡录像索引和所述 遮挡录像索引的关联关系 (如, 根据所述非遮挡录像索引中的所述遮挡录像 索引的标识)获取所述非遮挡录像索引关联的遮挡录像索引, 根据所述遮挡 录像索引包括的所述遮挡录像文件的标识获取对应所述第一遮挡区域的一或 多个录像文件; 并获取对应所述第一遮挡区域的一或多个录像文件中对应所 述查看时间的视频数据。 优选地, 在根据所述关联关系获取所述非遮挡录像 索引关联的遮挡录像索引之前还可以, 先根据所述非遮挡录像索引中的非独 立索引指示信息确定该非遮挡录像索引有关联的遮挡录像索引, 从而提高监 控平台检索遮挡录像索引的效率。  Accordingly, if used to record a scene, the video request sent in step 210 may also include a viewing time. In the steps 230A and 230B, the acquiring the non-occlusion video data is specifically: acquiring the video data corresponding to the viewing time in the non-occlusion video file, which may include: according to the monitoring front end device identifier, the viewing time, and the non-occlusion video data. The instruction information acquires the non-occlusion video index, obtains the non-occlusion video file according to the identifier of the non-occlusion video file in the non-occlusion recording index, and obtains the non-occlusion video data corresponding to the viewing time from the non-occlusion video file; in step 23 OA And acquiring, by the occlusion video data, the one or more corresponding to the first occlusion area associated with the non-occlusion video file according to the association relationship between the occlusion video file and the non-occlusion video file. The video file, and the video data corresponding to the viewing time in the one or more video files corresponding to the first occlusion area, specifically: according to the association relationship between the non-occlusion recording index and the occlusion recording index ( For example, according to the occlusion video in the non-occlusion recording index Obtaining an occlusion recording index associated with the non-occlusion recording index, and acquiring one or more video files corresponding to the first occlusion area according to the identifier of the occlusion recording file included in the occlusion recording index; Corresponding to the video data corresponding to the viewing time in one or more video files of the first occlusion area. Preferably, before the occlusion recording index associated with the non-occlusion recording index is obtained according to the association relationship, the occlusion associated with the non-occlusion recording index may be determined according to the non-independent index indication information in the non-occlusion recording index. Video indexing, thereby improving the efficiency of the monitoring platform to retrieve the occlusion video index.
具体地, 在获取到所述非遮挡录像索引后, 可以根据所述非遮挡录像索 引生成用于获取非遮挡视频数据的获取地址并发送给第一监控终端, 接收第 一监控终端发送的包含所述非遮挡视频数据获取地址的请求, 根据所述非遮 挡视频数据获取地址与所述第一监控终端建立用于发送所述非遮挡视频数据 的媒体通道, 根据所述非遮挡视频数据获取地址获取所述非遮挡视频数据并 通过所述媒体通道发送所述非遮挡视频数据, 如, 如图 3 所示, 所述监控平 台的 SCU接收所述视频请求后获取所述非遮挡录像索引, 根据所述非遮挡录 像索引向 MU请求用于获取所述非遮挡录像索引对应的非遮挡视频数据的 URL 并发送给 CU , MU接收 CU发送的包含所述 URL的请求, 根据所述 URL与 CU建 立用于发送所述非遮挡视频数据的媒体通道, 根据所述 URL读取所述录像文 件中的非遮挡视频数据并通过所述媒体通道发送给 CU。 获取遮挡录像索引后 发送遮挡视频数据的过程与获取非遮挡录像索引后发送非遮挡视频数据的过 程类似, 不再赘述。 优选地, 在发送第一遮挡视频数据之前还可以包括, 将所述第一遮挡区 域的描述信息并发送给所述第一监控终端, 以使得所述第一监控终端根据所 述第一遮挡区域的描述信息将步骤 230A中接收的第一遮挡视频数据和非遮挡 视频数据合并播放, 具体可以包括, 获取非遮挡录像索引或该第一遮挡视频 数据对应的遮挡录像索引中包含的遮挡区域描述信息, 或根据该非遮挡录像 索引或该遮挡录像索引中包含的用于获取第一遮挡区域描述信息的信息获取 该第一遮挡区域的描述信息, 并将获取的该第一遮挡区域的描述信息发送给 第一监控终端。 具体地, 可以在发送给第一监控终端的携带第一遮挡视频数 据的获取地址的消息中携带该第一遮挡区域的描述信息。 优选地, 在步骤 2 30A之前还包括, 接收第二监控终端发送的遮挡区域设 置请求, 所述遮挡区域设置请求包括所述监控前端设备的设备标识和所述遮 挡区域的描述信息; 接收所述遮挡区域设置请求后, 可以向所述监控前端设 备发送所述遮挡区域的描述信息, 并接收所述监控前端设备发送的根据所述 遮挡区域的描述信息生成的所述非遮挡视频数据和所述遮挡视频数据; 还可 以根据所述遮挡区域的描述信息, 从接收自所述监控前端设备的完整视频数 据中, 分离出所述遮挡视频数据和所述非遮挡视频数据。 另外, 如步骤 230A 所述, 可以将所述遮挡视频数据和所述非遮挡视频数据发送给第一监控终端 由第一监控终端合并播放, 也可以是将所述遮挡视频数据和所述非遮挡视频 数据合并后发送给第一监控终端。 Specifically, after acquiring the non-occlusion video index, the acquiring address for acquiring non-occlusion video data may be generated according to the non-occlusion recording index and sent to the first monitoring terminal, and receiving a request for the non-occlusion video data acquisition address sent by the monitoring terminal, and establishing, by the non-occlusion video data acquisition address, a media channel for transmitting the non-occlusion video data according to the non-occlusion video data acquisition address, according to the Obtaining the non-occluded video data by the non-occlusion video data acquisition address, and sending the non-occlusion video data through the media channel, for example, as shown in FIG. 3, the SCU of the monitoring platform acquires the video request after receiving the video request a non-occlusion recording index, requesting, by the MU, a URL for acquiring the non-occlusion video data corresponding to the non-occlusion recording index according to the non-occlusion recording index, and sending the URL to the CU, where the MU receives the request for the URL sent by the CU, according to the request And the CU establishes a media channel for sending the non-occlusion video data, and reads non-occlusion video data in the video file according to the URL and sends the data to the CU through the media channel. The process of transmitting the occlusion video data after acquiring the occlusion recording index is similar to the process of sending the non-occlusion video data after acquiring the non-occlusion recording index, and will not be described again. Preferably, before sending the first occlusion video data, the method further includes: sending the description information of the first occlusion area to the first monitoring terminal, so that the first monitoring terminal is configured according to the first occlusion area And the occlusion area description information included in the occlusion recording index corresponding to the first occlusion video data is obtained by combining the first occlusion video data and the non-occlusion video data received in step 230A. Or obtaining the description information of the first occlusion area according to the non-occlusion recording index or the information for acquiring the first occlusion area description information included in the occlusion recording index, and sending the obtained description information of the first occlusion area Give the first monitoring terminal. Specifically, the description information of the first occlusion area may be carried in the message that is sent to the first monitoring terminal and that is the location of the first occlusion video data. Preferably, before step 2 30A, the method further includes: receiving an occlusion area setting request sent by the second monitoring terminal, where the occlusion area setting request includes the device identifier of the monitoring front-end device and description information of the occlusion area; After the occlusion area setting request, the description information of the occlusion area may be sent to the monitoring front-end device, and received by the monitoring front-end device according to the The non-occlusion video data generated by the description information of the occlusion region and the occlusion video data; and the occlusion may be separated from the complete video data received from the monitoring front-end device according to the description information of the occlusion region Video data and the non-occlusion video data. In addition, as described in step 230A, the occlusion video data and the non-occlusion video data may be sent to the first monitoring terminal for combined play by the first monitoring terminal, or the occlusion video data and the non-occlusion may be The video data is combined and sent to the first monitoring terminal.
需要说明的是, 第一监控终端和第二监控终端可以是同一个监控终端。 综上, 生成所述非遮挡视频数据和所述遮挡视频数据的实体可以是监控 前端设备或监控平台, 合并所述非遮挡视频数据和所述遮挡视频数据的实体 可以是监控平台或监控终端 (即本发明实施例 1 的第一监控终端) , 根据执 行生成操作和合并操作的实体的不同, 下面分别介绍本发明实施例 1 的三种 示例实施方式。 示例实施方式 1 : 如图 4所示,监控前端设备生成非遮挡视频数据和遮挡 视频数据,监控平台将非遮挡视频数据和用户有权限获取的遮挡视频数据 (如 本实施例的第一遮挡视频数据)分别发送给监控终端 (如本实施例的第一监 控终端) , 监控终端将接收的视频数据合并播放。  It should be noted that the first monitoring terminal and the second monitoring terminal may be the same monitoring terminal. In summary, the entity that generates the non-occlusion video data and the occlusion video data may be a monitoring front-end device or a monitoring platform, and the entity that combines the non-occlusion video data and the occlusion video data may be a monitoring platform or a monitoring terminal ( That is, the first monitoring terminal of the first embodiment of the present invention, according to the difference between the entities performing the generating operation and the merging operation, three exemplary embodiments of the first embodiment of the present invention are respectively described below. Example Embodiment 1: As shown in FIG. 4, the monitoring front-end device generates non-occlusion video data and occlusion video data, and the monitoring platform uses non-occlusion video data and occlusion video data that the user has permission to acquire (such as the first occlusion video of this embodiment). The data is sent to the monitoring terminal (such as the first monitoring terminal in this embodiment), and the monitoring terminal combines the received video data.
下面结合图 5介绍本发明实施例 1的示例实施方式 1的交互流程图。 步骤 401 : 第二监控终端向监控平台发送遮挡区域设置请求, 所述遮挡区 域设置请求包括设备标识和遮挡区域的描述信息。  The interaction flowchart of the exemplary embodiment 1 of Embodiment 1 of the present invention will be described below with reference to FIG. Step 401: The second monitoring terminal sends an occlusion area setting request to the monitoring platform, where the occlusion area setting request includes description information of the device identifier and the occlusion area.
所述遮挡区域, 具体可以包括一个或多个区域, 所述区域具体可以是矩 形、 圓形、 多边形等。 优选地, 所述遮挡区域的描述信息具体包括遮挡区域 的坐标, 例如在遮挡区域包括矩形时, 该遮挡区域的描述信息可以包括该矩 形的至少三个顶点的坐标, 也可以仅包括矩形的一个顶点的坐标和该矩形的 宽度和高度, 如(X , y , w , h ) , 其中, X为左上顶点横坐标, y为左上顶点 纵坐标, w为宽度, h高度。 步骤 402:监控平台向所述设备标识所标识的监控前端设备发送遮挡区域 设置请求, 所述遮挡区域设置请求包括所述遮挡区域的描述信息。 The occlusion area may specifically include one or more areas, and the area may specifically be a rectangle, a circle, a polygon, or the like. Preferably, the description information of the occlusion area specifically includes coordinates of the occlusion area. For example, when the occlusion area includes a rectangle, the description information of the occlusion area may include coordinates of at least three vertices of the rectangle, or may only include one of the rectangles. The coordinates of the vertex and the width and height of the rectangle, such as (X, y, w, h), where X is the abscissa of the upper left vertex, y is the ordinate of the upper left vertex, w is the width, and h is the height. Step 402: The monitoring platform sends an occlusion area setting request to the monitoring front-end device identified by the device identifier, where the occlusion area setting request includes description information of the occlusion area.
步骤 403:监控前端设备将拍摄的视频画面编码生成遮挡视频数据和非遮 挡视频数据;  Step 403: The monitoring front end device encodes the captured video picture to generate occlusion video data and non-occlusion video data.
具体地, 监控前端设备将拍摄的视频画面编码为对应非遮挡区域的非遮 挡视频数据和对应所述遮挡区域的遮挡视频数据。  Specifically, the monitoring front end device encodes the captured video picture into non-occlusion video data corresponding to the non-occlusion area and occlusion video data corresponding to the occlusion area.
如果所述遮挡区域包括一个区域, 可以将所述遮挡区域对应的视频画面 编码为一路视频数据, 即, 所述遮挡视频数据包括一路视频数据。  If the occlusion area includes an area, the video picture corresponding to the occlusion area may be encoded into one channel of video data, that is, the occlusion video data includes one channel of video data.
如果所述遮挡区域包括多个区域, 可以将所述遮挡区域包括的多个区域 对应的视频画面编码为一路视频数据, 即, 所述遮挡视频数据包括一路视频 数据; 也可以将所述遮挡区域包括的多个区域各自对应的视频画面分别编码 为一路视频数据, 即所述遮挡视频数据包括多路视频数据且每个区域对应一 路视频数据; 也可以将所述遮挡区域包括的多个区域中对应相同权限的区域 的视频画面编码为一路视频数据, 即对应相同权限的区域对应同一路视频数 据, 如, 该遮挡区域包括 3个区域, 区域 1和区域 2对应相同的权限, 区域 3 对应另一权限, 则区域 1和区域 1对应的视频画面编码为同一路视频数据, 区域 3对应的视频画面编码为另一路视频数据。  If the occlusion area includes a plurality of areas, the video picture corresponding to the multiple areas included in the occlusion area may be encoded as one channel of video data, that is, the occlusion video data includes one channel of video data; Each of the video regions corresponding to the plurality of regions is encoded as one channel of video data, that is, the occlusion video data includes multiple video data and each region corresponds to one channel of video data; and the plurality of regions included in the occlusion region may also be included. The video picture corresponding to the same privilege is encoded as one video data, that is, the area corresponding to the same privilege corresponds to the same video data. For example, the occlusion area includes three areas, and area 1 and area 2 correspond to the same authority, and area 3 corresponds to another area. For a permission, the video picture corresponding to area 1 and area 1 is encoded as the same video data, and the video picture corresponding to area 3 is encoded as another video data.
具体地, 可以将所述遮挡区域对应的视频画面直接编码为所述遮挡视频 像素数据; 也可以将拍摄的整个视频画面中的非遮挡区域对应的视频画面釆 用设定的像素值填充后编码生成所述遮挡视频数据, 即所述非遮挡视频数据 据。  Specifically, the video picture corresponding to the occlusion area may be directly encoded into the occlusion video pixel data; or the video picture corresponding to the non-occlusion area in the captured entire video picture may be padded with the set pixel value and then encoded. Generating the occlusion video data, that is, the non-occlusion video data.
编码的格式包括但不限于 H. 264、 MPEG4、 MJPEG等。  The format of the encoding includes but is not limited to H.264, MPEG4, MJPEG, and the like.
具体地, 可以将非遮挡区域对应的视频画面直接编码为所述非遮挡视频 设定的像素值填充后编码生成所述非遮挡视频数据, 所述设定的像素值优选 为 RGB (0, 0 , 0)。 Specifically, the video picture corresponding to the non-occlusion area may be directly encoded into the non-occlusion video. The set pixel value is padded and encoded to generate the non-occluded video data, and the set pixel value is preferably RGB (0, 0, 0).
在编码时, 将所述遮挡视频数据与所述非遮挡视频数据中对应同一完整 视频画面的视频帧的时间戳保持完全一致。  At the time of encoding, the occlusion video data is completely coincident with the time stamp of the video frame corresponding to the same full video picture in the non-occlusion video data.
需要说明的是, 在示例实施方式 1 中, 所述遮挡区域的描述信息是监控 平台发送给所述监控前端设备的, 可选地, 所述遮挡区域的描述信息还可以 是在所述监控前端设备上预先设置的。  It should be noted that, in the first embodiment, the description information of the occlusion area is sent by the monitoring platform to the monitoring front-end device, and optionally, the description information of the occlusion area may also be at the monitoring front end. Pre-set on the device.
步骤 404 : 将生成的遮挡视频数据和非遮挡视频数据发送给所述监控平 台 - 优选地, 监控前端设备还可以向所述监控平台发送遮挡视频数据的数据 类型, 以使得所述监控平台从收到的视频数据中识别出遮挡视频数据, 具体 可以是在发送给所述监控平台的用于获取该遮挡视频数据的获取地址 (如 URL ) 中包括该数据类型 (所述监控平台可以利用该获取地址向所述监控前端 设备获取该遮挡视频数据) , 还可以是在发送给所述监控平台的用于携带该 获取地址的消息中包括该数据类型, 还可以是在建立监控平台和监控前端设 备之间的用于传输遮挡视频数据的媒体通道的过程中发送该数据类型。  Step 404: Send the generated occlusion video data and non-occlusion video data to the monitoring platform. Preferably, the monitoring front-end device may further send a data type of the occlusion video data to the monitoring platform, so that the monitoring platform receives the data. The occlusion video data is identified in the obtained video data, and the data type may be included in an acquisition address (such as a URL) sent to the monitoring platform for acquiring the occlusion video data (the monitoring platform may utilize the acquisition) The obtaining the occlusion video data from the monitoring front-end device, or including the data type in the message sent to the monitoring platform for carrying the acquiring address, or establishing the monitoring platform and the monitoring front-end device The data type is sent during the process of transmitting a media channel that occludes video data.
步骤 405: 第一监控终端向监控平台发送视频请求, 所述视频请求包括所 述监控前端设备的设备标识;  Step 405: The first monitoring terminal sends a video request to the monitoring platform, where the video request includes a device identifier of the monitoring front-end device.
步骤 406:判断所述第一监控终端的用户是否具有获取所述遮挡视频数据 中的第一遮挡视频数据的权限, 所述第一遮挡视频数据对应第一遮挡区域, 所述第一遮挡区域包括所述遮挡区域中的部分或全部区域;  Step 406: Determine whether the user of the first monitoring terminal has the right to obtain the first occlusion video data in the occlusion video data, where the first occlusion video data corresponds to the first occlusion region, and the first occlusion region includes Part or all of the occlusion area;
如果判断结果为是, 执行步骤 407A-409A;  If the result of the determination is yes, go to steps 407A-409A;
如果判断结果为否, 执行步骤 407B-408B。  If the result of the determination is no, steps 407B-408B are performed.
步骤 407A:监控平台向第一监控终端发送所述第一遮挡区域的描述信息; 步骤 408A: 所述监控平台将所述第一遮挡视频数据和非遮挡视频数据发 送给所述第一监控终端; 步骤 409A: 所述第一监控终端合并播放接收的第一遮挡视频数据和非遮 挡视频数据。 Step 407A: The monitoring platform sends the description information of the first occlusion area to the first monitoring terminal. Step 408A: The monitoring platform sends the first occlusion video data and non-occlusion video data to the first monitoring terminal. Step 409A: The first monitoring terminal combines and plays the received first occlusion video data and non-occlusion video data.
优选地, 根据所述第一遮挡区域的描述信息合并播放接收的第一遮挡视 频数据和非遮挡视频数据。  Preferably, the received first occlusion video data and non-occlusion video data are combined and played according to the description information of the first occlusion region.
具体地, 如果所述第一遮挡视频数据包括一路视频数据, 解码所述第一 遮挡视频数据得出遮挡视频数据帧, 解码所述非遮挡视频数据得出非遮挡视 频数据帧, 提取遮挡视频数据帧中的像素数据, 并根据第一遮挡区域的描述 信息将提取的像素数据添加到与所述遮挡视频数据帧具有相同时间戳的非遮 挡视频数据帧中所述第一遮挡区域对应的像素区域以生成完整视频帧, 并播 放所述完整视频帧。 如果在编码时是将所述第一遮挡区域对应的视频画面直 接编码为所述第一遮挡视频数据, 即所述遮挡视频数据帧仅包括所述遮挡区 域对应的视频画面的像素数据, 则提取遮挡视频数据帧中的像素数据具体为, 提取所述遮挡视频数据帧中的所有像素数据; 如果在编码时将整个视频画面 中的非遮挡区域对应的视频画面釆用设定的像素值填充后编码生成所述遮挡 频画面的像素数据和填充的像素数据, 则根据所述第一遮挡区域的描述信息 提取遮挡视频数据帧中第一遮挡区域对应的像素区域的像素数据。  Specifically, if the first occlusion video data includes one channel of video data, decoding the first occlusion video data to obtain an occlusion video data frame, decoding the non-occlusion video data to obtain a non-occlusion video data frame, and extracting occlusion video data. Pixel data in the frame, and adding the extracted pixel data to the pixel region corresponding to the first occlusion region in the non-occlusion video data frame having the same time stamp as the occlusion video data frame according to the description information of the first occlusion region To generate a complete video frame and play the full video frame. If the video picture corresponding to the first occlusion area is directly encoded into the first occlusion video data, that is, the occlusion video data frame includes only pixel data of the video picture corresponding to the occlusion area, extracting The occlusion of the pixel data in the video data frame is specifically: extracting all the pixel data in the occlusion video data frame; if the video picture corresponding to the non-occlusion area in the entire video picture is filled with the set pixel value during encoding The pixel data of the occlusion frequency picture and the padded pixel data are encoded, and the pixel data of the pixel area corresponding to the first occlusion area in the occlusion video data frame is extracted according to the description information of the first occlusion area.
如果所述第一遮挡视频数据包括多路视频数据, 解码所述第一遮挡视频 数据中的每一路视频数据得出每一路视频数据的遮挡视频数据帧, 解码非遮 挡视频数据得出非遮挡视频数据帧, 提取各路视频数据的具有相同时间戳的 遮挡视频数据帧中的像素数据, 并将提取的像素数据添加到与所述遮挡视频 数据帧具有相同时间戳的非遮挡视频数据帧中该第一遮挡区域对应的像素区 域生成完整视频帧, 并播放所述完整视频帧。  If the first occlusion video data includes multiple video data, decoding each video data in the first occlusion video data to obtain an occlusion video data frame of each video data, and decoding the non-occlusion video data to obtain a non-occlusion video a data frame, extracting pixel data in an occlusion video data frame having the same time stamp of each video data, and adding the extracted pixel data to a non-occlusion video data frame having the same time stamp as the occlusion video data frame The pixel area corresponding to the first occlusion area generates a complete video frame and plays the complete video frame.
具体地, 如图 6 所示, 所述非遮挡视频数据和所述第一遮挡视频数据均 通过 RTP协议传输至第一监控终端, 第一监控终端接收通过 RTP协议封装的 非遮挡视频数据码流和第一遮挡视频数据码流, 分别解析非遮挡视频数据码 流和遮挡视频数据码流得出非遮挡视频数据和第一遮挡视频数据并分别緩存 在解码器緩冲区, 根据同步时间戳同步帧数据, 即分别提取非遮挡视频数据 和第一遮挡视频数据中具有相同时间戳的帧数据, 分别解码提取出的具有相 同时间戳的非遮挡视频数据的帧数据和第一遮挡视频数据的帧数据以生成对 应的 YUV数据, 然后根据第一遮挡区域的描述信息合成第一遮挡视频数据的Specifically, as shown in FIG. 6, the non-occlusion video data and the first occlusion video data are transmitted to the first monitoring terminal by using an RTP protocol, and the first monitoring terminal receives the unoccluded video data stream encapsulated by the RTP protocol. And the first occlusion video data stream, respectively parsing the non-occlusion video data code Flowing and occluding the video data code stream to obtain non-occlusion video data and first occlusion video data and respectively buffering in the decoder buffer, synchronizing the frame data according to the synchronization time stamp, that is, extracting the non-occlusion video data and the first occlusion video data respectively Frame data having the same time stamp, respectively decoding the extracted frame data of the non-occluded video data having the same time stamp and the frame data of the first occlusion video data to generate corresponding YUV data, and then according to the description of the first occlusion region Information synthesis of the first occlusion video data
YUV数据和非遮挡视频数据的 YUV数据, 并将合成的 YUV数据渲染播放。 YUV data and YUV data of non-occluded video data, and the synthesized YUV data is rendered and played.
需要说明的是, 如果在步骤 404之前并没有开始接收所述监控前端设备 发送的遮挡视频数据和非遮挡视频数据, 则在步骤 404之后向所述监控前端 设备发送用于获取视频数据的请求, 具体地, 可以根据步骤 406 的判断结果 向所述监控前端设备请求获取所述第一监控终端的用户有权限获取的视频数 据, 如, 如果用户仅有权限获取非遮挡视频数据, 则仅请求非遮挡视频数据, 如果用户有权限获取非遮挡视频数据和第一遮挡视频数据, 则请求获取非遮 挡视频数据和第一遮挡视频数据, 所述监控前端设备接收到所述请求后生成 请求的视频数据并返回给该监控平台。 所述监控前端设备生成非遮挡视频数 据和第一遮挡视频数据的方法同步骤 403 , 不再赘述。  It should be noted that, if the occlusion video data and the non-occlusion video data sent by the monitoring front-end device are not started before step 404, a request for acquiring video data is sent to the monitoring front-end device after step 404. Specifically, the monitoring front-end device may be requested to obtain video data that the user of the first monitoring terminal has permission to obtain according to the determination result of step 406. For example, if the user only has the right to obtain non-occlusion video data, only the non-requesting non-request is performed. Blocking the video data, if the user has the right to obtain the non-occluded video data and the first occlusion video data, requesting to acquire the non-occlusion video data and the first occlusion video data, and the monitoring front-end device generates the requested video data after receiving the request. And return to the monitoring platform. The method for generating the non-occlusion video data and the first occlusion video data by the monitoring front-end device is the same as step 403, and details are not described herein.
步骤 407B: 所述监控平台将所述非遮挡视频数据转发给所述第一监控终 端;  Step 407B: The monitoring platform forwards the non-occluded video data to the first monitoring terminal;
步骤 408B: 所述第一监控终端播放接收的非遮挡视频数据。 示例实施方式 2: 如图 7所示,监控前端设备生成非遮挡视频数据和遮挡 视频数据,监控平台将非遮挡视频数据和用户有权限获取的遮挡视频数据(即 第一遮挡视频数据)合并后发送给监控终端。  Step 408B: The first monitoring terminal plays the received non-occluded video data. Example Embodiment 2: As shown in FIG. 7, the monitoring front-end device generates non-occlusion video data and occlusion video data, and the monitoring platform combines the non-occlusion video data and the occlusion video data (ie, the first occlusion video data) that the user has permission to acquire. Send to the monitoring terminal.
下面结合图 8介绍本发明实施例 1的示例实施方式 2的交互流程图。 步骤 501-506 : 同步骤 401-406 , 不再赞述;  The interaction flowchart of the exemplary embodiment 2 of the embodiment 1 of the present invention will be described below with reference to FIG. Steps 501-506: Same as steps 401-406, no longer mentioned;
如果步骤 506的判断结果为是, 执行步骤 507A-510A;  If the answer of step 506 is yes, step 507A-510A is performed;
如果步骤 506的判断结果为否, 执行步骤 507B-508B。 步骤 507A: 同步骤 407A; If the answer of step 506 is no, steps 507B-508B are performed. Step 507A: Same as step 407A;
步骤 508A: 监控平台合并所述非遮挡视频数据和第一遮挡视频数据; 优选地, 根据步骤 401 接收的所述遮挡区域的描述信息合并所述第一遮 挡视频数据和非遮挡视频数据。  Step 508A: The monitoring platform merges the non-occlusion video data and the first occlusion video data. Preferably, the first occlusion video data and the non-occlusion video data are merged according to the description information of the occlusion region received in step 401.
具体地, 如果所述第一遮挡视频数据包括一路视频数据, 解码所述第一 遮挡视频数据得出遮挡视频数据帧, 解码所述非遮挡视频数据得出非遮挡视 频数据帧, 提取所述遮挡视频数据帧中的像素数据, 将提取的像素数据添加 到与所述遮挡视频数据帧具有相同时间戳的非遮挡视频数据帧中所述遮挡区 域对应的像素区域生成完整视频帧, 并编码所述完整视频帧以得到合并后的 视频数据。 如果在编码时是将所述遮挡区域对应的视频画面直接编码为所述 第一遮挡视频数据, 即所述遮挡视频数据帧仅包括所述遮挡区域对应的视频 画面的像素数据, 则提取遮挡视频数据帧中的像素数据具体为, 提取所述遮 挡视频数据帧中的所有像素数据; 如果在编码时将整个视频画面中的非遮挡 区域对应的视频画面釆用设定的像素值填充后编码生成所述第一遮挡视频数 的像素数据和填充的像素数据, 则提取遮挡视频数据帧中第一遮挡区域对应 的像素区域的像素数据。  Specifically, if the first occlusion video data includes one channel of video data, decoding the first occlusion video data to obtain an occlusion video data frame, decoding the non-occlusion video data to obtain a non-occlusion video data frame, and extracting the occlusion Pixel data in a video data frame, adding the extracted pixel data to a pixel region corresponding to the occlusion region in a non-occlusion video data frame having the same time stamp as the occlusion video data frame, generating a complete video frame, and encoding the Complete video frame to get the combined video data. If the video image corresponding to the occlusion area is directly encoded into the first occlusion video data, that is, the occlusion video data frame includes only the pixel data of the video picture corresponding to the occlusion area, the occlusion video is extracted. The pixel data in the data frame is specifically: extracting all the pixel data in the occlusion video data frame; if the video picture corresponding to the non-occlusion area in the entire video picture is filled with the set pixel value and then encoding and generating at the time of encoding The pixel data of the first occlusion video number and the padded pixel data extract pixel data of a pixel region corresponding to the first occlusion region in the occlusion video data frame.
如果所述第一遮挡视频数据包括多路视频数据, 解码所述第一遮挡视频 数据中的每一路视频数据得出每一路视频数据的遮挡视频数据帧, 解码非遮 挡视频数据得出非遮挡视频数据帧, 提取各路视频数据的具有相同时间戳的 遮挡视频数据帧中的像素数据, 并将提取的像素数据添加到与所述遮挡视频 数据帧具有相同时间戳的非遮挡视频数据帧中该遮挡区域对应的像素区域生 成完整视频帧, 并编码所述完整视频帧以得到合并后的视频数据。  If the first occlusion video data includes multiple video data, decoding each video data in the first occlusion video data to obtain an occlusion video data frame of each video data, and decoding the non-occlusion video data to obtain a non-occlusion video a data frame, extracting pixel data in an occlusion video data frame having the same time stamp of each video data, and adding the extracted pixel data to a non-occlusion video data frame having the same time stamp as the occlusion video data frame The pixel area corresponding to the occlusion area generates a complete video frame, and encodes the complete video frame to obtain the combined video data.
具体地, 如图 9 所示, 所述非遮挡视频数据和所述第一遮挡视频数据均 通过 RTP协议传输至监控平台, 监控平台接收通过 RTP协议封装的非遮挡视 频数据码流和第一遮挡视频数据码流后的处理与步骤 409A中第一监控终端接 收码流后的处理类似, 不同仅在于, 第一监控终端合成 YUV数据后渲染播放, 而监控终端合成 YUV数据后对合成的 YUV数据进行编码以生成合并后的视频 数据。 Specifically, as shown in FIG. 9, the non-occlusion video data and the first occlusion video data are transmitted to the monitoring platform by using an RTP protocol, and the monitoring platform receives the non-occluded video data stream and the first occlusion encapsulated by the RTP protocol. The processing after the video data stream is connected to the first monitoring terminal in step 409A. The processing after receiving the stream is similar, except that the first monitoring terminal synthesizes the YUV data and then renders the playback, and the monitoring terminal synthesizes the YUV data to encode the synthesized YUV data to generate the combined video data.
步骤 509A: 将所述合并后的视频数据发送给第一监控终端。  Step 509A: Send the combined video data to the first monitoring terminal.
步骤 510A: 所述第一监控终端直接解码播放所述合并后的视频数据。 步骤 507B-508B, 同步骤 507B-508Bo 示例实施方式 3: 如图 10所示, 监控前端设备生成完整视频数据, 监控 平台从接收自监控前端设备的完整视频数据中分离出遮挡视频数据和非遮挡 视频数据, 将非遮挡视频数据和用户有权限获取的遮挡视频数据分别发送给 监控终端, 监控终端将接收的遮挡视频数据和非遮挡视频数据合并播放。 下面结合图 11介绍本发明实施例 1的示例实施方式 3的交互流程图。 步骤 601 : 同步骤 401 , 不再赘述; Step 510A: The first monitoring terminal directly decodes and plays the combined video data. Steps 507B-508B, the same steps 507B-508B o Example Embodiment 3: As shown in FIG. 10, the monitoring front-end device generates complete video data, and the monitoring platform separates the occlusion video data from the complete video data received from the monitoring front-end device. The video data is occluded, and the non-occlusion video data and the occlusion video data that the user has permission to acquire are respectively sent to the monitoring terminal, and the monitoring terminal combines the received occlusion video data and the non-occlusion video data. The interaction flowchart of the exemplary embodiment 3 of the embodiment 1 of the present invention is described below with reference to FIG. Step 601: Same as step 401, no further description;
步骤 602:监控前端设备将拍摄的视频画面编码生成完整视频数据并发送 给监控平台;  Step 602: The monitoring front-end device encodes the captured video picture to generate complete video data and sends the video data to the monitoring platform.
步骤 603: 监控平台根据步骤 601接收的视频遮挡区域的描述信息, 从所 述完整视频数据中, 分离出对应遮挡区域的遮挡视频数据和对应非遮挡区域 的非遮挡视频数据;  Step 603: The monitoring platform separates the occlusion video data corresponding to the occlusion area and the non-occlusion video data corresponding to the non-occlusion area from the complete video data according to the description information of the video occlusion area received in step 601;
如果所述遮挡区域包括一个区域, 可以将所述完整视频数据中的所述遮 挡区域对应的视频画面编码为一路视频数据, 即, 所述遮挡视频数据包括一 路视频数据。  If the occlusion area includes an area, the video picture corresponding to the occlusion area in the complete video data may be encoded into one channel of video data, that is, the occlusion video data includes one channel of video data.
如果所述遮挡区域包括多个区域, 可以将所述完整视频数据中的所述遮 挡区域包括的多个区域对应的视频画面编码为一路视频数据, 即, 所述遮挡 视频数据包括一路视频数据; 也可以将所述完整视频数据中的所述遮挡区域 包括的多个区域各自对应的视频画面分别编码为一路视频数据, 即所述遮挡 视频数据包括多路视频数据且每个区域对应一路视频数据; 也可以将所述遮 挡区域包括的多个区域中对应相同权限的区域的视频画面编码为一路视频数 据, 即对应相同权限的区域对应同一路视频数据, 如, 该遮挡区域包括 3 个 区域, 区域 1和区域 2对应相同的权限, 区域 3对应另一权限, 则区域 1和 区域 2对应的视频画面编码为同一路视频数据, 区域 3对应的视频画面编码 为另一路视频数据。 If the occlusion video area includes a plurality of areas, the video picture corresponding to the multiple areas included in the occlusion area in the complete video data may be encoded as one channel of video data, that is, the occlusion video data includes one channel of video data; The video pictures corresponding to the plurality of areas included in the occlusion area in the complete video data may be separately encoded into one video data, that is, the occlusion The video data includes multiple video data, and each area corresponds to one video data. The video picture of the area corresponding to the same right in the multiple areas included in the occlusion area may be encoded into one video data, that is, an area corresponding to the same authority. For the same video data, for example, the occlusion area includes three areas, area 1 and area 2 correspond to the same authority, and area 3 corresponds to another authority, and the video pictures corresponding to area 1 and area 2 are encoded as the same video data, area. 3 The corresponding video picture is encoded as another video data.
具体地, 可以将所述遮挡区域对应的视频画面直接编码为所述遮挡视频 数据, 包括, 解码所述完整视频数据得出完整视频帧, 提取所述完整视频帧 中所述遮挡区域对应的视频画面的像素数据生成所述遮挡视频数据的视频 帧; 也可以将整个视频画面中的非遮挡区域对应的视频画面釆用设定的像素 值填充后编码生成所述遮挡视频数据, 包括, 解码所述完整视频数据得出完 整视频帧, 将所述完整视频帧中对应非遮挡区域的像素区域的像素的像素值 域对应的视频画面的像素数据和填充的像素数据。  Specifically, the video image corresponding to the occlusion area may be directly encoded into the occlusion video data, including: decoding the complete video data to obtain a complete video frame, and extracting a video corresponding to the occlusion area in the complete video frame. The video data of the occlusion video data is generated by the pixel data of the picture; the video picture corresponding to the non-occlusion area in the entire video picture may be padded with the set pixel value to generate the occlusion video data, including: decoding The complete video data is obtained as a complete video frame, and pixel data of the video picture corresponding to the pixel value range of the pixel corresponding to the pixel area of the non-occlusion area in the complete video frame and the filled pixel data.
分离出对应非遮挡区域的非遮挡视频数据, 具体可以为, 将非遮挡区域 对应的视频画面直接编码为所述非遮挡视频数据, 包括, 解码所述完整视频 数据得出完整视频帧, 提取所述完整视频帧中所述非遮挡区域对应的视频画 面的像素数据生成所述非遮挡视频数据的视频帧; 具体还可以为, 将整个视 频画面中的所述遮挡区域对应的视频画面釆用设定的像素值填充后编码生成 所述非遮挡视频数据, 包括, 解码所述完整视频数据得出完整视频帧, 将所 述完整视频帧中对应遮挡区域的像素区域的像素的像素值设置为设定的像素 值; 所述设定的像素值优选为 RGB (0, 0 , 0)。  The non-occlusion video data corresponding to the non-occlusion area is separated, and the video picture corresponding to the non-occlusion area is directly encoded into the non-occlusion video data, including: decoding the complete video data to obtain a complete video frame, and extracting the The video data of the video frame corresponding to the non-occlusion area in the complete video frame is used to generate the video frame of the non-occlusion video data. Specifically, the video image corresponding to the occlusion area in the entire video picture may be used. And encoding the non-occlusion video data after the predetermined pixel value is filled, including: decoding the complete video data to obtain a complete video frame, and setting a pixel value of a pixel of a pixel region corresponding to the occlusion region in the complete video frame to The determined pixel value; the set pixel value is preferably RGB (0, 0, 0).
在编码时, 将所述遮挡视频数据与所述非遮挡视频数据中对应同一完整 视频画面的视频帧的时间戳保持完全一致。  At the time of encoding, the occlusion video data is completely coincident with the time stamp of the video frame corresponding to the same full video picture in the non-occlusion video data.
编码的格式包括但不限于 H. 264、 MPEG4、 MJPEG等。  The format of the encoding includes but is not limited to H.264, MPEG4, MJPEG, and the like.
步骤 604- 605 : 同步骤 405- 406 ; 如果步骤 605的判断结果为是, 执行步骤 606A-608A; Steps 604-605: the same steps 405-406; If the answer of step 605 is yes, perform steps 606A-608A;
如果步骤 605的判断结果为否, 执行步骤 606B-607B。  If the answer of step 605 is no, steps 606B-607B are performed.
步骤 606A-608A: 同步骤 407A-409A;  Steps 606A-608A: same steps 407A-409A;
步骤 606B-607B: 同步骤 407B_408B。 对于前述的各方法实施例, 为了简单描述, 故将其都表述为一系列的动 作组合, 但是本领域技术人员应该知悉, 本发明并不受所描述的动作顺序的 限制, 因为依据本发明, 某些步骤可以釆用其他顺序或者同时进行。 其次, 本领域技术人员也应该知悉, 说明书中所描述的实施例均属于优选实施例, 所涉及的动作和模块并不一定是本发明所必须的。 根据本发明实施例 1 , 本发明实施例 2提出了一种监控平台 500。  Steps 606B-607B: Same as step 407B_408B. For the foregoing method embodiments, for the sake of brevity, they are all described as a series of combinations of actions, but those skilled in the art should understand that the present invention is not limited by the described order of actions, because according to the present invention, Some steps can be performed in other orders or at the same time. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention. According to Embodiment 1 of the present invention, Embodiment 2 of the present invention proposes a monitoring platform 500.
如图 12所示,所述监控平台包括:视频请求接收单元 501、判断单元 502、 获取单元 503、 视频数据发送单元 504 ;  As shown in FIG. 12, the monitoring platform includes: a video request receiving unit 501, a determining unit 502, an obtaining unit 503, and a video data sending unit 504;
所述视频请求接收单元 501 , 用于接收第一监控终端发送的视频请求, 所 述视频请求包括设备标识, 所述设备标识所标识的监控前端设备的视频数据 包括对应非遮挡区域的非遮挡视频数据和对应遮挡区域的遮挡视频数据; 所述判断单元 502 ,用于判断所述第一监控终端的用户是否具有获取所述 遮挡视频数据中的第一遮挡视频数据的权限, 所述第一遮挡视频数据对应第 一遮挡区域, 所述第一遮挡区域包括所述遮挡区域中的部分或全部区域; 所述获取单元 503 , 用于获取非遮挡视频数据, 并用于在所述判断单元 502的判断结果为是时获取第一遮挡视频数据;  The video request receiving unit 501 is configured to receive a video request sent by the first monitoring terminal, where the video request includes a device identifier, where the video data of the monitoring front-end device identified by the device identifier includes a non-occlusion video corresponding to the non-occlusion area. The data and the occlusion video data corresponding to the occlusion area; the determining unit 502, configured to determine whether the user of the first monitoring terminal has the right to acquire the first occlusion video data in the occlusion video data, the first occlusion The video data corresponds to the first occlusion area, and the first occlusion area includes part or all of the occlusion area; the acquiring unit 503 is configured to acquire non-occlusion video data, and is used for determining by the determining unit 502. The result is that the first occlusion video data is obtained when yes;
所述视频数据发送单元 504 ,用于在所述判断单元 502的判断结果为是时, 向所述第一监控终端发送所述获取单元 503 获取的所述第一遮挡视频数据和 所述非遮挡视频数据, 以使得第一监控终端合并播放所述第一遮挡视频数据 和所述非遮挡视频数据, 或者, 合并所述获取单元 503 获取的所述第一遮挡 视频数据和所述非遮挡视频数据得到合并后的视频数据, 并将所述合并后的 视频数据发送给所述第一监控终端; 还用于在所述判断单元 502 的判断结果 为否时, 向所述第一监控终端发送所述获取单元 503 获取的所述非遮挡视频 数据。 The video data sending unit 504 is configured to: when the determining result of the determining unit 502 is YES, send the first occlusion video data and the non-occlusion obtained by the acquiring unit 503 to the first monitoring terminal. Video data, such that the first monitoring terminal merges the first occlusion video data and the non-occlusion video data, or merges the first occlusion obtained by the acquiring unit 503 The video data and the non-occlusion video data are combined to obtain the combined video data, and the combined video data is sent to the first monitoring terminal; and when the determination result of the determining unit 502 is negative, Transmitting the non-occlusion video data acquired by the obtaining unit 503 to the first monitoring terminal.
可选地, 所述监控平台还包括: 设置请求接收单元 505;  Optionally, the monitoring platform further includes: a setting request receiving unit 505;
所述设置请求接收单元 505 ,用于接收第二监控终端发送的遮挡区域设置 请求, 所述遮挡区域设置请求包括所述监控前端设备的设备标识和所述遮挡 区域的描述信息;  The setting request receiving unit 505 is configured to receive an occlusion area setting request sent by the second monitoring terminal, where the occlusion area setting request includes the device identifier of the monitoring front-end device and description information of the occlusion area;
如图 13所示, 所述监控平台进一步包括: 描述信息发送单元 506和第一 视频数据接收单元 507; 所述描述信息发送单元 506 , 用于向所述监控前端设 备发送所述遮挡区域的描述信息; 所述第一视频数据接收单元 507 , 用于接收 所述监控前端设备发送的根据所述遮挡区域的描述信息生成的所述非遮挡视 频数据和所述遮挡视频数据; 或者,  As shown in FIG. 13, the monitoring platform further includes: a description information sending unit 506 and a first video data receiving unit 507; the description information sending unit 506, configured to send a description of the occlusion area to the monitoring front-end device The first video data receiving unit 507 is configured to receive the non-occlusion video data and the occlusion video data generated by the monitoring front-end device according to the description information of the occlusion region; or
如图 14所示, 所述监控平台进一步包括: 第二视频数据接收单元 508和 视频数据分离单元 509; 所述第二视频数据接收单元 508 , 用于接收所述监控 前端设备发送的完整视频数据中; 所述视频数据分离单元 509 , 用于从所述第 二视频数据接收单元接收的所述完整视频数据中分离出所述遮挡视频数据和 所述非遮挡视频数据。  As shown in FIG. 14, the monitoring platform further includes: a second video data receiving unit 508 and a video data separating unit 509; the second video data receiving unit 508 is configured to receive the complete video data sent by the monitoring front-end device. The video data separating unit 509 is configured to separate the occlusion video data and the non-occlusion video data from the complete video data received by the second video data receiving unit.
优选地, 所述监控平台还包括: 存储单元和关联关系建立单元; 所述存储单元, 用于将所述遮挡视频数据存储到遮挡录像文件中, 将所 述非遮挡视频数据存储到非遮挡录像文件中, 所述遮挡录像文件包括一或多 个录像文件;  Preferably, the monitoring platform further includes: a storage unit and an association relationship establishing unit; the storage unit is configured to store the occlusion video data into an occlusion video file, and store the non-occlusion video data into the non-occlusion video recording In the file, the occlusion video file includes one or more video files;
所述关联关系建立单元, 用于建立所述遮挡录像文件和所述非遮挡录像 文件的关联关系;  The association relationship establishing unit is configured to establish an association relationship between the occlusion video file and the non-occlusion video file;
所述视频请求接收单元 501 ,具体用于接收第一监控终端发送的包括查看 时间的视频请求; 所述获取单元 503 ,具体用于获取所述非遮挡录像文件中对应所述查看时 间的视频数据, 具体还用于在所述判断单元 502 的判断结果为是时, 根据所 述关联关系建立单元建立的关联关系获取所述非遮挡录像文件关联的对应所 述第一遮挡区域的一或多个录像文件, 并获取对应所述第一遮挡区域的一或 多个录像文件中对应所述查看时间的视频数据。 The video request receiving unit 501 is specifically configured to receive a video request that includes a viewing time sent by the first monitoring terminal; The acquiring unit 503 is specifically configured to acquire video data corresponding to the viewing time in the non-occlusion video file, and is further used to establish a unit according to the association relationship when the determining result of the determining unit 502 is YES. Obtaining, by the established association relationship, the one or more video files corresponding to the first occlusion area associated with the non-occlusion video file, and acquiring the corresponding viewing time in one or more video files corresponding to the first occlusion area Video data.
进一步地, 所述关联关系建立单元具体用于, 记录非遮挡录像索引和遮 挡录像索引, 所述非遮挡录像索引包括所述监控前端设备的设备标识、 录像 起止时间、 非遮挡视频数据指示信息和所述非遮挡录像文件的标识, 所述遮 挡录像索引包含遮挡视频数据指示信息和所述遮挡录像文件的标识; 并建立 所述非遮挡录像索引和所述遮挡录像索引的关联关系;  Further, the association relationship establishing unit is specifically configured to: record a non-occlusion recording index and an occlusion recording index, where the non-occlusion recording index includes a device identifier of the monitoring front end device, a video start and end time, and an unoccluded video data indication information. The identifier of the non-occlusion recording file includes: an occlusion video data indication information and an identifier of the occlusion video file; and establishing an association relationship between the non-occlusion recording index and the occlusion recording index;
相应地, 所述获取单元 503 具体用于, 根据所述视频请求包括的所述监 控前端设备的设备标识、 查看时间和所述非遮挡录像索引包括的非遮挡视频 数据指示信息、 所述监控前端设备的设备标识、 录像起止时间匹配出所述非 遮挡录像索引, 根据所述非遮挡录像索引包括的所述非遮挡录像文件的标识 获取所述非遮挡录像文件, 并获取所述非遮挡录像文件中对应所述查看时间 的视频数据; 具体还用于在所述判断单元 502 的判断结果为是时, 根据所述 关联关系获取所述非遮挡录像索引关联的遮挡录像索引, 根据所述遮挡录像 索引包括的所述遮挡录像文件的标识获取对应所述第一遮挡区域的一或多个 录像文件; 并获取对应所述第一遮挡区域的一或多个录像文件中对应所述查 看时间的视频数据。  Correspondingly, the acquiring unit 503 is specifically configured to: according to the device identifier of the monitoring front-end device, the viewing time, and the non-occlusion video data indication information included in the non-occlusion recording index, the monitoring front end Obtaining the non-occlusion video file according to the identifier of the non-occlusion video file included in the non-occlusion recording index, and acquiring the non-occlusion video file. The video data corresponding to the viewing time is specifically used to obtain the occlusion recording index associated with the non-occlusion recording index according to the association relationship when the determination result of the determining unit 502 is YES, according to the occlusion recording Obtaining, by the index, the identifier of the occlusion video file, the one or more video files corresponding to the first occlusion area; and acquiring a video corresponding to the viewing time in one or more video files corresponding to the first occlusion area data.
本发明实施例 2 中描述的功能单元可以用来实施上述实施例 1所述的方 法。  The functional unit described in Embodiment 2 of the present invention can be used to implement the method described in Embodiment 1 above.
优选地, 所述视频请求接收单元 501、 判断单元 502、 设置请求接收单元 505、 描述信息发送单元 506位于监控平台的 SCU, 所述获取单元 503、 视频 数据发送单元 504、 第一视频数据接收单元 507、 第二视频数据接收单元 508、 视频数据分离单元 509位于监控平台的 MU。 根据本发明实施例 2 ,监控平台接收监控终端的视频请求后判断该监控终 端的用户的权限, 根据判断的结果, 向没有权限获取遮挡视频数据的用户的 监控终端仅发送非遮挡视频数据, 向有权限获取部分或全部遮挡视频数据的 用户的监控终端, 发送遮挡视频数据和非遮挡视频数据使其合并播放, 或发 送将遮挡视频数据和非遮挡视频数据合并后的视频数据, 从而解决了现有技 术中向不同权限的用户的终端均发送遮挡部分的图像数据所导致的安全隐患 问题。 Preferably, the video request receiving unit 501, the determining unit 502, the setting request receiving unit 505, and the description information sending unit 506 are located in the SCU of the monitoring platform, the acquiring unit 503, the video data sending unit 504, and the first video data receiving unit. 507. The second video data receiving unit 508 and the video data separating unit 509 are located at the MU of the monitoring platform. According to Embodiment 2 of the present invention, after receiving the video request of the monitoring terminal, the monitoring platform determines the authority of the user of the monitoring terminal, and according to the result of the determination, sends only the non-occluded video data to the monitoring terminal of the user who does not have the right to obtain the occlusion video data. A monitoring terminal having permission to acquire part or all of the video data occluding the occlusion video data and the non-occlusion video data to be combined and played, or transmitting video data combining the occlusion video data and the non-occlusion video data, thereby solving the present In the technology, the terminals of users with different rights are all sent to the occlusion part of the image data to cause security risks.
另外, 根据本发明实施例 2 , 还可以实现基于区域的权限控制, 即, 如果 遮挡区域包括多个区域, 可以针对不同的区域设置各自的权限, 进而根据用 户的权限向用户的监控终端发送该用户有权限获取的部分或全部区域对应的 遮挡视频数据, 从而实现更精准的权限控制。 根据本发明实施例 1 , 本发明实施例 3提出了一种监控终端 600。  In addition, according to the embodiment 2 of the present invention, the area-based authority control can also be implemented, that is, if the occlusion area includes multiple areas, the respective rights can be set for different areas, and then the user is sent according to the rights of the user to the monitoring terminal of the user. The occlusion video data corresponding to some or all areas that the user has permission to obtain, thereby achieving more precise authority control. According to Embodiment 1 of the present invention, Embodiment 3 of the present invention proposes a monitoring terminal 600.
如图 15所示, 所述监控终端包括: 视频请求发送单元 601、 视频数据接 收单元 602和播放单元 603;  As shown in FIG. 15, the monitoring terminal includes: a video request sending unit 601, a video data receiving unit 602, and a playing unit 603;
所述视频请求发送单元 601 , 用于向监控平台发送视频请求, 所述视频请 求包括设备标识, 所述设备标识所标识的监控前端设备的视频数据包括对应 非遮挡区域的非遮挡视频数据和对应遮挡区域的遮挡视频数据;  The video request sending unit 601 is configured to send a video request to the monitoring platform, where the video request includes a device identifier, where the video data of the monitoring front-end device identified by the device identifier includes non-occlusion video data corresponding to the non-occlusion region and corresponding Occlusion video data in the occlusion area;
所述视频数据接收单元 602 ,用于接收所述监控平台在判断出所述监控终 端的用户具有获取所述遮挡视频数据中的第一遮挡视频数据的权限时发送的 所述第一遮挡视频数据和所述非遮挡视频数据, 所述第一遮挡视频数据对应 第一遮挡区域, 所述第一遮挡区域包括所述遮挡区域中的部分或全部区域; 还用于接收所述监控平台在判断出所述监控终端的用户不具有获取所述遮挡 视频数据中的所述第一遮挡视频数据的权限时发送的所述非遮挡视频数据; 所述播放单元, 用于合并播放所述视频数据接收单元 602接收的所述第 一遮挡视频数据和所述非遮挡视频数据, 或者用于播放所述视频数据接收单 元 602接收的所述非遮挡视频数据。 The video data receiving unit 602 is configured to receive, by the monitoring platform, the first occlusion video data that is sent when the user of the monitoring terminal has the right to acquire the first occlusion video data in the occlusion video data. And the non-occlusion video data, the first occlusion video data corresponds to a first occlusion area, and the first occlusion area includes part or all of the occlusion area; and is further configured to receive the monitoring platform to determine The non-occlusion video data sent when the user of the monitoring terminal does not have the right to acquire the first occlusion video data in the occlusion video data; the playing unit is configured to merge and play the video data receiving unit The first occlusion video data and the non-occlusion video data received by the 602, or used to play the video data receiving list The non-occluded video data received by element 602.
优选地, 如果所述第一遮挡视频数据包括一路视频数据, 所述播放单元 具体用于, 解码所述第一遮挡视频数据得出遮挡视频数据帧, 解码所述非遮 挡视频数据得出非遮挡视频数据帧, 提取遮挡视频数据帧中的像素数据, 并 根据第一遮挡区域的描述信息将提取的像素数据添加到与所述遮挡视频数据 帧具有相同时间戳的非遮挡视频数据帧中所述第一遮挡区域对应的像素区域 以生成完整视频帧, 并播放所述完整视频帧; 或者,  Preferably, if the first occlusion video data includes one channel of video data, the playing unit is specifically configured to: decode the first occlusion video data to obtain an occlusion video data frame, and decode the non-occlusion video data to obtain non-occlusion a video data frame, extracting pixel data in the occlusion video data frame, and adding the extracted pixel data to the non-occlusion video data frame having the same time stamp as the occlusion video data frame according to the description information of the first occlusion region a pixel area corresponding to the first occlusion area to generate a complete video frame, and play the complete video frame; or
可选地, 如果所述第一遮挡视频数据包括多路视频数据, 所述播放单元 具体用于, 解码所述第一遮挡视频数据中的每一路视频数据得出每一路视频 数据的遮挡视频数据帧, 解码非遮挡视频数据得出非遮挡视频数据帧, 提取 各路视频数据的具有相同时间戳的遮挡视频数据帧中的像素数据, 并将提取 的像素数据添加到与所述遮挡视频数据帧具有相同时间戳的非遮挡视频数据 帧中该第一遮挡区域对应的像素区域生成完整视频帧, 并播放所述完整视频 帧。  Optionally, if the first occlusion video data includes multiple video data, the playing unit is specifically configured to: decode each video data in the first occlusion video data to obtain occlusion video data of each video data. a frame, decoding non-occlusion video data to obtain a non-occlusion video data frame, extracting pixel data in an occlusion video data frame having the same time stamp of each video data, and adding the extracted pixel data to the occlusion video data frame A pixel region corresponding to the first occlusion region in the non-occluded video data frame having the same time stamp generates a complete video frame and plays the complete video frame.
本发明实施例 3中描述的功能单元可以用来实施上述实施例 1所述的方 法。 根据本发明实施例 1 , 本发明实施例 4提出了一种监控前端设备 700。 如图 16所示, 所述监控前端设备包括: 描述信息接收单元 701、 视频数 据编码单元 702和视频数据发送单元 703;  The functional unit described in Embodiment 3 of the present invention can be used to implement the method described in Embodiment 1 above. According to Embodiment 1 of the present invention, Embodiment 4 of the present invention proposes a monitoring front end device 700. As shown in FIG. 16, the monitoring front-end device includes: a description information receiving unit 701, a video data encoding unit 702, and a video data transmitting unit 703;
所述描述信息接收单元 701 ,用于接收监控平台发送的遮挡区域的描述信 息;  The description information receiving unit 701 is configured to receive description information of an occlusion area sent by the monitoring platform;
所述视频数据编码单元 702 ,用于根据所述遮挡区域的描述信息将拍摄的 挡视频数据;  The video data encoding unit 702 is configured to capture video data according to the description information of the occlusion area;
所述视频数据发送单元 703 ,用于向所述监控平台发送所述非遮挡视频数 据和所述遮挡视频数据, 以使得所述监控平台在判断出监控终端的用户具有 获取第一遮挡视频数据的权限时向所述监控终端发送所述非遮挡视频数据以 及所述第一遮挡视频数据, 或者在判断出所述监控终端的用户不具有获取第 一遮挡视频数据的权限时向所述监控终端发送所述非遮挡视频数据, 所述第 一遮挡视频数据对应第一遮挡区域, 所述第一遮挡区域包括所述遮挡区域中 的部分或全部区域。 The video data sending unit 703 is configured to send the number of non-occlusion videos to the monitoring platform. And blocking the video data, so that the monitoring platform sends the non-occlusion video data and the first occlusion video to the monitoring terminal when determining that the user of the monitoring terminal has the right to acquire the first occlusion video data Data, or the non-occlusion video data is sent to the monitoring terminal when the user of the monitoring terminal does not have the right to obtain the first occlusion video data, where the first occlusion video data corresponds to the first occlusion area, The first occlusion region includes some or all of the occlusion regions.
优选地, 所述视频数据编码单元 702 具体用于, 当所述遮挡区域包括一 个区域时, 根据所述遮挡区域的描述信息将拍摄的视频画面中所述遮挡区域 对应的视频画面编码为一路视频数据; 或者, 当所述遮挡区域包括多个区域 时, 根据所述遮挡区域的描述信息将拍摄的视频画面中所述遮挡区域包括的 多个区域对应的视频画面编码为一路视频数据, 或者, 将拍摄的视频画面中 所述遮挡区域包括的多个区域各自对应的视频画面分别编码为一路视频数 据, 或者, 将拍摄的视频画面中所述遮挡区域包括的多个区域中对应相同权 限的区域的视频画面编码为一路视频数据; 具体还用于, 根据所述遮挡区域 频数据。  Preferably, the video data encoding unit 702 is specifically configured to, when the occlusion area includes an area, encode a video picture corresponding to the occlusion area in the captured video picture as a video according to the description information of the occlusion area. Data; or, when the occlusion area includes a plurality of areas, encoding a video picture corresponding to the plurality of areas included in the occlusion area of the captured video picture as one channel of video data according to the description information of the occlusion area, or The video images corresponding to the plurality of regions included in the occlusion region in the captured video image are respectively encoded as one video data, or the regions corresponding to the same rights in the plurality of regions included in the occlusion region in the captured video image The video picture is encoded as one channel of video data; specifically, it is further configured to: according to the occlusion region frequency data.
本发明实施例 4 中描述的功能单元可以用来实施上述实施例 1所述的方 法。 如图 17所示, 本发明实施例 5提供了一种监控平台 1000, 包括: 处理器 (proces sor) 1010, 通信接口 (Communica t ions Interface) 1020, 存储器(memory) 1030, 总线 1040。  The functional unit described in Embodiment 4 of the present invention can be used to implement the method described in Embodiment 1 above. As shown in FIG. 17, the fifth embodiment of the present invention provides a monitoring platform 1000, including: a processor 1010, a communication interface 1020, a memory 1030, and a bus 1040.
处理器 1010 , 通信接口 1020 , 存储器 1030通过总线 1040完成相互间的 通信。  The processor 1010, the communication interface 1020, and the memory 1030 complete communication with each other through the bus 1040.
通信接口 1020, 用于与网元通信, 如与监控终端、 监控前端设备通信。 处理器 1010 , 用于执行程序 1032。 具体地, 程序 1032可以包括程序代码, 所述程序代码包括计算机操作指 令。 The communication interface 1020 is configured to communicate with the network element, such as the monitoring terminal and the monitoring front end device. The processor 1010 is configured to execute the program 1032. In particular, program 1032 can include program code, the program code including computer operating instructions.
处理器 1010, 用于执行存储器存储的计算机程序, 具体可以是一个中央 处理器(CPU, central processing unit ), 是计算机核心单元。  The processor 1010 is a computer program for executing memory storage, and may be a central processing unit (CPU), which is a computer core unit.
存储器 1030, 用于存放程序 1032。 存储器 1030可能包含高速 RAM存储 器, 也可能还包括非易失性存储器 (non- volatile memory ), 例如至少一个 磁盘存储器。  The memory 1030 is configured to store the program 1032. Memory 1030 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
程序 1032具体可以包括: 视频请求接收单元 1032-1、 判断单元 1032-2、 获取单元 1032-3、 视频数据发送单元 1032-4;  The program 1032 may specifically include: a video request receiving unit 1032-1, a determining unit 1032-2, an obtaining unit 1032-3, and a video data transmitting unit 1032-4;
所述视频请求接收单元 1032-1,用于接收第一监控终端发送的视频请求, 所述视频请求包括设备标识, 所述设备标识所标识的监控前端设备的视频数 据包括对应非遮挡区域的非遮挡视频数据和对应遮挡区域的遮挡视频数据; 所述判断单元 1032-2, 用于判断所述第一监控终端的用户是否具有获取 所述遮挡视频数据中的第一遮挡视频数据的权限, 所述第一遮挡视频数据对 应第一遮挡区域, 所述第一遮挡区域包括所述遮挡区域中的部分或全部区域; 所述获取单元 1032-3, 用于获取非遮挡视频数据, 并用于在所述判断单 元 1032-2的判断结果为是时获取第一遮挡视频数据;  The video request receiving unit 1032-1 is configured to receive a video request sent by the first monitoring terminal, where the video request includes a device identifier, where the video data of the monitoring front-end device identified by the device identifier includes a non-occlusion region Blocking video data and occlusion video data corresponding to the occlusion area; the determining unit 1032-2, configured to determine whether the user of the first monitoring terminal has the right to acquire the first occlusion video data in the occlusion video data, The first occlusion video data corresponds to the first occlusion area, and the first occlusion area includes part or all of the occlusion area; the acquiring unit 1032-3 is configured to acquire non-occlusion video data, and is used for Obtaining the first occlusion video data when the determination result of the determining unit 1032-2 is YES;
所述视频数据发送单元 1032-4,用于在所述判断单元 1032-2的判断结果 为是时, 向所述第一监控终端发送所述获取单元 1032-3获取的所述第一遮挡 视频数据和所述非遮挡视频数据, 以使得第一监控终端合并播放所述第一遮 挡视频数据和所述非遮挡视频数据, 或者, 合并所述获取单元 1032-3获取的 所述第一遮挡视频数据和所述非遮挡视频数据得到合并后的视频数据, 并将 所述合并后的视频数据发送给所述第一监控终端; 还用于在所述判断单元 1032-2的判断结果为否时,向所述第一监控终端发送所述获取单元 1032-3获 取的所述非遮挡视频数据。  The video data sending unit 1032-4 is configured to send, when the determining result of the determining unit 1032-2 is YES, the first occlusion video acquired by the acquiring unit 1032-3 to the first monitoring terminal. Data and the non-occlusion video data, so that the first monitoring terminal merges the first occlusion video data and the non-occlusion video data, or merges the first occlusion video acquired by the acquiring unit 1032-3 Data and the non-occlusion video data are combined to obtain the combined video data, and the combined video data is sent to the first monitoring terminal; and is further used when the determining result of the determining unit 1032-2 is negative. And sending, to the first monitoring terminal, the non-occlusion video data acquired by the acquiring unit 1032-3.
可选地, 所述程序还包括: 设置请求接收单元 1G32-5; 所述设置请求接收单元 1032-5 , 用于接收第二监控终端发送的遮挡区域 设置请求, 所述遮挡区域设置请求包括所述监控前端设备的设备标识和所述 遮挡区域的描述信息; Optionally, the program further includes: a setting request receiving unit 1G32-5; The setting request receiving unit 1032-5 is configured to receive an occlusion area setting request sent by the second monitoring terminal, where the occlusion area setting request includes the device identifier of the monitoring front-end device and description information of the occlusion area;
所述监控平台进一步包括: 描述信息发送单元 1032-6和第一视频数据接 收单元 1032-7; 所述描述信息发送单元 1032-6 , 用于向所述监控前端设备发 送所述遮挡区域的描述信息; 所述第一视频数据接收单元 1032-7 , 用于接收 所述监控前端设备发送的根据所述遮挡区域的描述信息生成的所述非遮挡视 频数据和所述遮挡视频数据; 或者,  The monitoring platform further includes: a description information sending unit 1032-6 and a first video data receiving unit 1032-7; the description information sending unit 1032-6, configured to send a description of the occlusion area to the monitoring front-end device The first video data receiving unit 1032-7 is configured to receive the non-occlusion video data and the occlusion video data generated by the monitoring front-end device according to the description information of the occlusion region; or
所述监控平台进一步包括: 第二视频数据接收单元 1032-8和视频数据分 离单元 1032-9; 所述第二视频数据接收单元 1032-8 , 用于接收所述监控前端 设备发送的完整视频数据中; 所述视频数据分离单元 1032-9 , 用于从所述第 二视频数据接收单元接收的所述完整视频数据中分离出所述遮挡视频数据和 所述非遮挡视频数据。  The monitoring platform further includes: a second video data receiving unit 1032-8 and a video data separating unit 1032-9; the second video data receiving unit 1032-8 is configured to receive the complete video data sent by the monitoring front end device The video data separating unit 1032-9 is configured to separate the occlusion video data and the non-occlusion video data from the complete video data received by the second video data receiving unit.
优选地, 所述程序还包括: 存储单元和关联关系建立单元;  Preferably, the program further includes: a storage unit and an association establishing unit;
所述存储单元, 用于将所述遮挡视频数据存储到遮挡录像文件中, 将所 述非遮挡视频数据存储到非遮挡录像文件中, 所述遮挡录像文件包括一或多 个录像文件;  The storage unit is configured to store the occlusion video data into an occlusion video file, and store the non-occlusion video data into a non-occlusion video file, where the occlusion video file includes one or more video files;
所述关联关系建立单元, 用于建立所述遮挡录像文件和所述非遮挡录像 文件的关联关系;  The association relationship establishing unit is configured to establish an association relationship between the occlusion video file and the non-occlusion video file;
所述视频请求接收单元 1032-1 , 具体用于接收第一监控终端发送的包括 查看时间的视频请求;  The video request receiving unit 1032-1 is specifically configured to receive a video request that includes a viewing time sent by the first monitoring terminal;
所述获取单元 1032-3 , 具体用于获取所述非遮挡录像文件中对应所述查 看时间的视频数据, 具体还用于在所述判断单元 1032-2的判断结果为是时, 根据所述关联关系建立单元建立的关联关系获取所述非遮挡录像文件关联的 对应所述第一遮挡区域的一或多个录像文件, 并获取对应所述第一遮挡区域 的一或多个录像文件中对应所述查看时间的视频数据。 进一步地, 所述关联关系建立单元具体用于, 记录非遮挡录像索引和遮 挡录像索引, 所述非遮挡录像索引包括所述监控前端设备的设备标识、 录像 起止时间、 非遮挡视频数据指示信息和所述非遮挡录像文件的标识, 所述遮 挡录像索引包含遮挡视频数据指示信息和所述遮挡录像文件的标识; 并建立 所述非遮挡录像索引和所述遮挡录像索引的关联关系; The obtaining unit 1032-3 is specifically configured to acquire video data corresponding to the viewing time in the non-occlusion video file, and is further used to: when the determining result of the determining unit 1032-2 is YES, according to the Obtaining, by the association relationship establishing unit, the one or more video files corresponding to the first occlusion area associated with the non-occlusion video file, and acquiring corresponding one or more video files corresponding to the first occlusion area The video data of the viewing time. Further, the association relationship establishing unit is specifically configured to: record a non-occlusion recording index and an occlusion recording index, where the non-occlusion recording index includes a device identifier of the monitoring front end device, a video start and end time, and an unoccluded video data indication information. The identifier of the non-occlusion recording file includes: an occlusion video data indication information and an identifier of the occlusion video file; and establishing an association relationship between the non-occlusion recording index and the occlusion recording index;
相应地, 所述获取单元 1032-3具体用于, 根据所述视频请求包括的所述 监控前端设备的设备标识、 查看时间和所述非遮挡录像索引包括的非遮挡视 频数据指示信息、 所述监控前端设备的设备标识、 录像起止时间匹配出所述 非遮挡录像索引, 根据所述非遮挡录像索引包括的所述非遮挡录像文件的标 识获取所述非遮挡录像文件, 并获取所述非遮挡录像文件中对应所述查看时 间的视频数据; 具体还用于在所述判断单元 1032-2的判断结果为是时, 根据 所述关联关系获取所述非遮挡录像索引关联的遮挡录像索引, 根据所述遮挡 录像索引包括的所述遮挡录像文件的标识获取对应所述第一遮挡区域的一或 多个录像文件; 并获取对应所述第一遮挡区域的一或多个录像文件中对应所 述查看时间的视频数据。  Correspondingly, the obtaining unit 1032-3 is specifically configured to: according to the device identifier of the monitoring front-end device, the viewing time, and the non-occlusion video data indication information included in the non-occlusion recording index, And monitoring the non-occlusion video file according to the identifier of the non-occlusion video file included in the non-occlusion recording index, and acquiring the non-occlusion video file, and acquiring the non-occlusion video file according to the identifier of the non-occlusion video file included in the non-occlusion recording index. The video data corresponding to the viewing time in the video file is specifically used to acquire the occlusion recording index associated with the non-occlusion recording index according to the association relationship when the determination result of the determining unit 1032-2 is YES, according to Acquiring the identifier of the occlusion video file included in the occlusion recording index to acquire one or more video files corresponding to the first occlusion region; and acquiring corresponding ones of the one or more video files corresponding to the first occlusion region View video data for time.
程序 1032中各单元的具体实现参见本发明实施例 1中的相应单元, 在此 不赘述。  For a specific implementation of each unit in the program 1032, refer to the corresponding unit in Embodiment 1 of the present invention, and details are not described herein.
本发明实施例 5 中描述的功能单元可以用来实施上述实施例 1所述的方 法。 根据本发明实施例 5 ,监控平台接收监控终端的视频请求后判断该监控终 端的用户的权限, 根据判断的结果, 向没有权限获取遮挡视频数据的用户的 监控终端仅发送非遮挡视频数据, 向有权限获取部分或全部遮挡视频数据的 用户的监控终端, 发送遮挡视频数据和非遮挡视频数据使其合并播放, 或发 送将遮挡视频数据和非遮挡视频数据合并后的视频数据, 从而解决了现有技 术中向不同权限的用户的终端均发送遮挡部分的图像数据所导致的安全隐患 问题。 另外, 根据本发明实施例 5 , 还可以实现基于区域的权限控制, 即, 如果 遮挡区域包括多个区域, 可以针对不同的区域设置各自的权限, 进而根据用 户的权限向用户的监控终端发送该用户有权限获取的部分或全部区域对应的 遮挡视频数据, 从而实现更精准的权限控制。 如图 18所示, 本发明实施例 6提供了一种监控终端 2000, 包括: 处理器 (proces sor) 2010, 通信接口 (Communica t ions Interface) 2020, 存储器(memory) 2030, 总线 2040。 The functional unit described in Embodiment 5 of the present invention can be used to implement the method described in Embodiment 1 above. According to Embodiment 5 of the present invention, after receiving the video request of the monitoring terminal, the monitoring platform determines the authority of the user of the monitoring terminal, and according to the result of the determination, sends only the non-occluded video data to the monitoring terminal of the user who does not have the right to obtain the occlusion video data. A monitoring terminal having permission to acquire part or all of the video data occluding the occlusion video data and the non-occlusion video data to be combined and played, or transmitting video data combining the occlusion video data and the non-occlusion video data, thereby solving the present In the technology, the terminals of users with different rights are all sent to the occlusion part of the image data to cause security risks. In addition, according to the embodiment 5 of the present invention, the area-based authority control can also be implemented, that is, if the occlusion area includes multiple areas, the respective rights can be set for different areas, and then the user is sent according to the rights of the user to the monitoring terminal of the user. The occlusion video data corresponding to some or all areas that the user has permission to obtain, thereby achieving more precise authority control. As shown in FIG. 18, Embodiment 6 of the present invention provides a monitoring terminal 2000, including: a processor (proces sor) 2010, a communication interface (Communication) 2020, a memory 2030, and a bus 2040.
处理器 2010 , 通信接口 2020 , 存储器 2030通过总线 2040完成相互间的 通信。  The processor 2010, the communication interface 2020, and the memory 2030 complete communication with each other through the bus 2040.
通信接口 2020, 用于与网元通信, 如与监控平台通信。  The communication interface 2020 is configured to communicate with the network element, such as communicating with the monitoring platform.
处理器 2010 , 用于执行程序 2032。  The processor 2010 is configured to execute the program 2032.
具体地, 程序 2032可以包括程序代码, 所述程序代码包括计算机操作指 令。  In particular, program 2032 can include program code, the program code including computer operating instructions.
处理器 2010, 用于执行存储器存储的计算机程序, 具体可以是一个中央 处理器(CPU, centra l proces s ing uni t ), 是计算机核心单元。  The processor 2010 is a computer program for executing memory storage, and may be a central processing unit (CPU, centra l proces s ing uni t ), which is a computer core unit.
存储器 2030 , 用于存放程序 2032。 存储器 2030可能包含高速 RAM存储 器, 也可能还包括非易失性存储器 (non- vola t i le memory ), 例如至少一个 磁盘存储器。  The memory 2030 is configured to store the program 2032. Memory 2030 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
程序 2032具体可以包括: 视频请求发送单元 2032-1、视频数据接收单元 2032-2和播放单元 2032-3;  The program 2032 may specifically include: a video request sending unit 2032-1, a video data receiving unit 2032-2, and a playing unit 2032-3;
所述视频请求发送单元, 用于向监控平台发送视频请求, 所述视频请求 包括设备标识, 所述设备标识所标识的监控前端设备的视频数据包括对应非 遮挡区域的非遮挡视频数据和对应遮挡区域的遮挡视频数据;  The video request sending unit is configured to send a video request to the monitoring platform, where the video request includes a device identifier, where the video data of the monitoring front-end device identified by the device identifier includes non-occlusion video data corresponding to the non-occlusion region and corresponding occlusion Occlusion video data of the area;
所述视频数据接收单元 2032-2 , 用于接收所述监控平台在判断出所述监 控终端的用户具有获取所述遮挡视频数据中的第一遮挡视频数据的权限时发 送的所述第一遮挡视频数据和所述非遮挡视频数据, 所述第一遮挡视频数据 对应第一遮挡区域, 所述第一遮挡区域包括所述遮挡区域中的部分或全部区 域; 还用于接收所述监控平台在判断出所述监控终端的用户不具有获取所述 遮挡视频数据中的所述第一遮挡视频数据的权限时发送的所述非遮挡视频数 据; The video data receiving unit 2032-2 is configured to receive, when the monitoring platform determines that the user of the monitoring terminal has the right to acquire the first occlusion video data in the occlusion video data, Transmitting the first occlusion video data and the non-occlusion video data, where the first occlusion video data corresponds to a first occlusion region, and the first occlusion region includes part or all of the occlusion region; Receiving, by the monitoring platform, the non-occlusion video data sent when the user of the monitoring terminal does not have the right to acquire the first occlusion video data in the occlusion video data;
所述播放单元, 用于合并播放所述视频数据接收单元 2032-2接收的所述 第一遮挡视频数据和所述非遮挡视频数据, 或者用于播放所述视频数据接收 单元 2032-2接收的所述非遮挡视频数据。  The playing unit is configured to merge and play the first occlusion video data and the non-occlusion video data received by the video data receiving unit 2032-2, or is used to play the video data receiving unit 2032-2. The non-occlusion video data.
优选地, 如果所述第一遮挡视频数据包括一路视频数据, 所述播放单元 具体用于, 解码所述第一遮挡视频数据得出遮挡视频数据帧, 解码所述非遮 挡视频数据得出非遮挡视频数据帧, 提取遮挡视频数据帧中的像素数据, 并 根据第一遮挡区域的描述信息将提取的像素数据添加到与所述遮挡视频数据 帧具有相同时间戳的非遮挡视频数据帧中所述第一遮挡区域对应的像素区域 以生成完整视频帧, 并播放所述完整视频帧; 或者,  Preferably, if the first occlusion video data includes one channel of video data, the playing unit is specifically configured to: decode the first occlusion video data to obtain an occlusion video data frame, and decode the non-occlusion video data to obtain non-occlusion a video data frame, extracting pixel data in the occlusion video data frame, and adding the extracted pixel data to the non-occlusion video data frame having the same time stamp as the occlusion video data frame according to the description information of the first occlusion region a pixel area corresponding to the first occlusion area to generate a complete video frame, and play the complete video frame; or
可选地, 如果所述第一遮挡视频数据包括多路视频数据, 所述播放单元 具体用于, 解码所述第一遮挡视频数据中的每一路视频数据得出每一路视频 数据的遮挡视频数据帧, 解码非遮挡视频数据得出非遮挡视频数据帧, 提取 各路视频数据的具有相同时间戳的遮挡视频数据帧中的像素数据, 并将提取 的像素数据添加到与所述遮挡视频数据帧具有相同时间戳的非遮挡视频数据 帧中该第一遮挡区域对应的像素区域生成完整视频帧, 并播放所述完整视频 帧。  Optionally, if the first occlusion video data includes multiple video data, the playing unit is specifically configured to: decode each video data in the first occlusion video data to obtain occlusion video data of each video data. a frame, decoding non-occlusion video data to obtain a non-occlusion video data frame, extracting pixel data in an occlusion video data frame having the same time stamp of each video data, and adding the extracted pixel data to the occlusion video data frame A pixel region corresponding to the first occlusion region in the non-occluded video data frame having the same time stamp generates a complete video frame and plays the complete video frame.
程序 2032中各单元的具体实现参见本发明实施例 3中的相应单元, 在此 不赘述。  For a specific implementation of each unit in the program 2032, refer to the corresponding unit in Embodiment 3 of the present invention, and details are not described herein.
本发明实施例 6 中描述的功能单元可以用来实施上述实施例 1所述的方 法。 如图 19所示, 本发明实施例 7提供了一种监控前端设备 3000, 包括: 处理器 (processor) 3010, 通信接口 (Communications Interface) 3020, 存储器(memory) 3030, 总线 3040。 The functional unit described in Embodiment 6 of the present invention can be used to implement the method described in Embodiment 1 above. As shown in FIG. 19, Embodiment 7 of the present invention provides a monitoring front-end device 3000, including: a processor 3010, a communications interface 3020, a memory 3030, and a bus 3040.
处理器 3010, 通信接口 3020, 存储器 3030通过总线 3040完成相互间的 通信。  The processor 3010, the communication interface 3020, and the memory 3030 complete communication with each other via the bus 3040.
通信接口 3020, 用于与网元通信, 如与监控平台通信。  The communication interface 3020 is configured to communicate with the network element, such as to communicate with the monitoring platform.
处理器 3010, 用于执行程序 3032。  The processor 3010 is configured to execute the program 3032.
具体地, 程序 3032可以包括程序代码, 所述程序代码包括计算机操作指 令。  In particular, program 3032 can include program code, the program code including computer operating instructions.
处理器 3010, 用于执行存储器存储的计算机程序, 具体可以是一个中央 处理器(CPU, central processing unit ), 是计算机核心单元。  The processor 3010 is a computer program for executing memory storage, and may be a central processing unit (CPU), which is a computer core unit.
存储器 3030, 用于存放程序 3032。 存储器 3030可能包含高速 RAM存储 器, 也可能还包括非易失性存储器 (non- volatile memory ), 例如至少一个 磁盘存储器。  The memory 3030 is configured to store the program 3032. Memory 3030 may include high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
程序 3032具体可以包括: 描述信息接收单元 3032-1、视频数据编码单元 3032-2和视频数据发送单元 3032-3;  The program 3032 may specifically include: a description information receiving unit 3032-1, a video data encoding unit 3032-2, and a video data transmitting unit 3032-3;
所述描述信息接收单元 3032-1, 用于接收监控平台发送的遮挡区域的描 述信息;  The description information receiving unit 3032-1 is configured to receive description information of an occlusion area sent by the monitoring platform;
所述视频数据编码单元 3032-2, 用于根据所述遮挡区域的描述信息将拍 的遮挡视频数据;  The video data encoding unit 3032-2 is configured to block video data according to the description information of the occlusion area;
所述视频数据发送单元 3032-3, 用于向所述监控平台发送所述非遮挡视 频数据和所述遮挡视频数据, 以使得所述监控平台在判断出监控终端的用户 具有获取第一遮挡视频数据的权限时向所述监控终端发送所述非遮挡视频数 据以及所述第一遮挡视频数据, 或者在判断出所述监控终端的用户不具有获 取第一遮挡视频数据的权限时向所述监控终端发送所述非遮挡视频数据, 所 述第一遮挡视频数据对应第一遮挡区域, 所述第一遮挡区域包括所述遮挡区 域中的部分或全部区域。 The video data sending unit 3032-3 is configured to send the non-occlusion video data and the occlusion video data to the monitoring platform, so that the monitoring platform determines that the user of the monitoring terminal has acquired the first occlusion video. Sending the non-occlusion video data and the first occlusion video data to the monitoring terminal when the authority of the data, or to the monitoring when determining that the user of the monitoring terminal does not have the right to acquire the first occlusion video data Transmitting, by the terminal, the non-occlusion video data, The first occlusion video data corresponds to a first occlusion region, and the first occlusion region includes some or all of the occlusion regions.
优选地, 所述视频数据编码单元 3032-2具体用于, 当所述遮挡区域包括 一个区域时, 根据所述遮挡区域的描述信息将拍摄的视频画面中所述遮挡区 域对应的视频画面编码为一路视频数据; 或者, 当所述遮挡区域包括多个区 域时, 根据所述遮挡区域的描述信息将拍摄的视频画面中所述遮挡区域包括 的多个区域对应的视频画面编码为一路视频数据, 或者, 将拍摄的视频画面 中所述遮挡区域包括的多个区域各自对应的视频画面分别编码为一路视频数 据, 或者, 将拍摄的视频画面中所述遮挡区域包括的多个区域中对应相同权 限的区域的视频画面编码为一路视频数据; 具体还用于, 根据所述遮挡区域 频数据。  Preferably, the video data encoding unit 3032-2 is configured to: when the occlusion area includes an area, encode a video picture corresponding to the occlusion area in the captured video picture according to the description information of the occlusion area as a video data of one channel; or, when the occlusion region includes a plurality of regions, encoding, according to the description information of the occlusion region, a video image corresponding to multiple regions included in the occlusion region of the captured video image into one video data, Alternatively, the video images corresponding to the plurality of regions included in the occlusion region in the captured video image are respectively encoded as one-way video data, or the corresponding regions in the plurality of regions included in the occlusion region in the captured video image The video picture of the area is encoded as one channel of video data; and specifically for, according to the occlusion area frequency data.
程序 3032中各单元的具体实现参见本发明实施例 4中的相应单元, 在此 不赘述。  For a specific implementation of each unit in the program 3032, refer to the corresponding unit in Embodiment 4 of the present invention, and details are not described herein.
本发明实施例 7 中描述的功能单元可以用来实施上述实施例 1所述的方 法。 根据本发明实施例 1至 7 ,本发明实施例 8提出了一种视频监控系统 4000。 如图 20所示, 所述视频监控系统包括: 监控终端 4010和监控平台 4020; 所述监控终端 4010, 具体为如实施例 3或 6所述的监控终端;  The functional unit described in Embodiment 7 of the present invention can be used to implement the method described in Embodiment 1 above. According to Embodiments 1 to 7 of the present invention, Embodiment 8 of the present invention proposes a video monitoring system 4000. As shown in FIG. 20, the video monitoring system includes: a monitoring terminal 4010 and a monitoring platform 4020. The monitoring terminal 4010 is specifically a monitoring terminal as described in Embodiment 3 or 6.
所述监控平台 4020, 具体为如实施例 2或 5所述的监控平台。  The monitoring platform 4020 is specifically the monitoring platform as described in Embodiment 2 or 5.
如图 21所示, 所述视频监控系统还可以包括监控前端设备 4030, 具体为 如实施例 4或 7所述的监控前端设备。  As shown in FIG. 21, the video surveillance system may further include a monitoring front end device 4030, specifically a monitoring front end device as described in Embodiment 4 or 7.
本发明实施例 8 中描述的视频监控系统可以用来实施上述实施例 1所述 的方法。 根据本发明实施例 8 ,监控平台接收监控终端的视频请求后判断该监控终 端的用户的权限, 根据判断的结果, 向没有权限获取遮挡视频数据的用户的 监控终端仅发送非遮挡视频数据, 向有权限获取部分或全部遮挡视频数据的 用户的监控终端, 发送遮挡视频数据和非遮挡视频数据使其合并播放, 或发 送将遮挡视频数据和非遮挡视频数据合并后的视频数据, 从而解决了现有技 术中向不同权限的用户的终端均发送遮挡部分的图像数据所导致的安全隐患 问题。 The video surveillance system described in Embodiment 8 of the present invention can be used to implement the method described in Embodiment 1 above. According to Embodiment 8 of the present invention, the monitoring platform determines the monitoring end after receiving the video request of the monitoring terminal. According to the judgment result, only the non-occlusion video data is sent to the monitoring terminal of the user who does not have the authority to acquire the occlusion video data, and the occlusion video data is sent to the monitoring terminal of the user who has the authority to acquire part or all of the occlusion video data. The non-occlusion video data is combined to play, or the video data combining the occlusion video data and the non-occlusion video data is transmitted, thereby solving the problem that the image data of the occlusion portion is sent to the terminals of the users with different rights in the prior art. Security risks.
另外, 根据本发明实施例 8 , 还可以实现基于区域的权限控制, 即, 如果 遮挡区域包括多个区域, 可以针对不同的区域设置各自的权限, 进而根据用 户的权限向用户的监控终端发送该用户有权限获取的部分或全部区域对应的 遮挡视频数据, 从而实现更精准的权限控制。 本领域普通技术人员可以意识到, 结合本文中所公开的实施例描述的各 示例的单元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结 合来实现。 这些功能究竟以硬件还是软件方式来执行, 取决于技术方案的特 定应用和设计约束条件。 专业技术人员可以对每个特定的应用来使用不同方 法来实现所描述的功能, 但是这种实现不应认为超出本发明的范围。  In addition, according to the embodiment 8 of the present invention, the area-based authority control can also be implemented, that is, if the occlusion area includes multiple areas, the respective rights can be set for different areas, and then the user is sent according to the rights of the user to the monitoring terminal of the user. The occlusion video data corresponding to some or all areas that the user has permission to obtain, thereby achieving more precise authority control. Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in a combination of electronic hardware or computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描 述的系统、 装置和单元的具体工作过程, 可以参考前述方法实施例中的对应 过程, 在此不再赘述。  A person skilled in the art can clearly understand that the specific working process of the system, the device and the unit described above can be referred to the corresponding process in the foregoing method embodiments for the convenience and brevity of the description, and details are not described herein again.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统、 装置和 方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示 意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可 以有另外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个 系统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间 的耦合或直接耦合或通信连接可以是通过一些接口, 装置或单元的间接耦合 或通信连接, 可以是电性, 机械或其它的形式。 为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或 者全部单元来实现本实施例方案的目的。 In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form. The components displayed for the unit may or may not be physical units, ie may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单 元中。  In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用 时, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明的 技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可 以以软件产品的形式体现出来, 该计算机软件产品存储在一个存储介质中, 包括若干指令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者 网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。 而前述的 存储介质包括: U盘、 移动硬盘、 只读存储器(ROM, Read-Only Memory ) 、 随机存取存储器 ( RAM, Random Acces s Memory ) 、 磁碟或者光盘等各种可以 存储程序代码的介质。  The functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM, Random Acces s Memory), a magnetic disk, or an optical disk, and the like, which can store program codes. medium.
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应所述以权利要求的保护范围为准。  The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权 利 要求 书 Claim
1. 一种实现视频遮挡的方法, 其特征在于, 所述方法包括: A method for implementing video occlusion, the method comprising:
监控平台接收第一监控终端发送的视频请求, 所述视频请求包括设备标识, 所述设备标识所标识的监控前端设备的视频数据包括对应非遮挡区域的非遮挡 视频数据和对应遮挡区域的遮挡视频数据;  The monitoring platform receives the video request sent by the first monitoring terminal, where the video request includes the device identifier, and the video data of the monitoring front-end device identified by the device identifier includes the non-occlusion video data corresponding to the non-occlusion area and the occlusion video of the corresponding occlusion area. Data
所述监控平台判断所述第一监控终端的用户是否具有获取所述遮挡视频数 据中的第一遮挡视频数据的权限, 所述第一遮挡视频数据对应第一遮挡区域, 所述第一遮挡区域包括所述遮挡区域中的部分或全部区域;  The monitoring platform determines whether the user of the first monitoring terminal has the right to obtain the first occlusion video data in the occlusion video data, where the first occlusion video data corresponds to the first occlusion region, and the first occlusion region Include some or all of the occlusion regions;
如果判断结果为是, 获取第一遮挡视频数据和非遮挡视频数据, 向所述第 一监控终端发送所述第一遮挡视频数据和所述非遮挡视频数据, 以使得第一监 控终端合并播放所述第一遮挡视频数据和所述非遮挡视频数据; 或者, 合并获 取的所述第一遮挡视频数据和所述非遮挡视频数据得到合并后的视频数据, 并 将所述合并后的视频数据发送给所述第一监控终端;  If the determination result is yes, acquiring the first occlusion video data and the non-occlusion video data, sending the first occlusion video data and the non-occlusion video data to the first monitoring terminal, so that the first monitoring terminal merges the playback station Decoding the first occlusion video data and the non-occlusion video data; or combining the acquired first occlusion video data and the non-occlusion video data to obtain combined video data, and transmitting the combined video data Giving the first monitoring terminal;
如果判断结果为否, 获取所述非遮挡视频数据并发送给所述第一监控终端。 If the judgment result is no, the non-occlusion video data is acquired and sent to the first monitoring terminal.
2.如权利要求 1所述的方法, 其特征在于, 2. The method of claim 1 wherein
所述接收第一监控终端发送的视频请求之前包括:  Before receiving the video request sent by the first monitoring terminal, the method includes:
接收第二监控终端发送的遮挡区域设置请求, 所述遮挡区域设置请求包括 所述监控前端设备的设备标识和所述遮挡区域的描述信息;  And receiving an occlusion area setting request sent by the second monitoring terminal, where the occlusion area setting request includes the device identifier of the monitoring front-end device and description information of the occlusion area;
向所述监控前端设备发送所述遮挡区域的描述信息, 并接收所述监控前端 设备发送的根据所述遮挡区域的描述信息生成的所述非遮挡视频数据和所述遮 挡视频数据; 或者, 根据所述遮挡区域的描述信息, 从接收自监控前端设备的 完整视频数据中, 分离出所述遮挡视频数据和所述非遮挡视频数据。  Transmitting the description information of the occlusion area to the monitoring front-end device, and receiving the non-occlusion video data and the occlusion video data generated by the monitoring front-end device according to the description information of the occlusion area; or The description information of the occlusion area is separated from the complete video data received from the monitoring front-end device by the occlusion video data and the non-occlusion video data.
3. 如权利要求 1所述的方法, 其特征在于,  3. The method of claim 1 wherein
所述获取第一遮挡视频数据和非遮挡视频数据之前包括:  Before the obtaining the first occlusion video data and the non-occlusion video data, the method includes:
将所述遮挡视频数据存储到遮挡录像文件中, 将所述非遮挡视频数据存储 到非遮挡录像文件中, 所述遮挡录像文件包括一或多个录像文件, 并建立所述 遮挡录像文件和所述非遮挡录像文件的关联关系; 所述视频请求包括查看时间; Storing the occlusion video data into an occlusion video file, storing the non-occlusion video data into a non-occlusion video file, the occlusion video file including one or more video files, and establishing the occlusion video file and the Declaring the association relationship of non-occlusion video files; The video request includes a viewing time;
所述获取非遮挡视频数据具体包括: 获取所述非遮挡录像文件中对应所述 查看时间的视频数据;  The acquiring the non-occlusion video data specifically includes: acquiring video data corresponding to the viewing time in the non-occlusion video file;
所述获取第一遮挡视频数据具体包括: 根据所述关联关系获取所述非遮挡 录像文件关联的对应所述第一遮挡区域的一或多个录像文件, 并获取对应所述 第一遮挡区域的一或多个录像文件中对应所述查看时间的视频数据。  The acquiring the first occlusion video data specifically includes: acquiring one or more video files corresponding to the first occlusion region associated with the non-occlusion video file according to the association relationship, and acquiring corresponding to the first occlusion region Video data corresponding to the viewing time in one or more video files.
4. 如权利要求 3所述的方法, 其特征在于,  4. The method of claim 3, wherein
所述建立所述遮挡录像文件和非遮挡录像文件的关联关系, 具体包括: 记录非遮挡录像索引和遮挡录像索引, 所述非遮挡录像索引包括所述监控 前端设备的设备标识、 录像起止时间、 非遮挡视频数据指示信息和所述非遮挡 录像文件的标识, 所述遮挡录像索引包含遮挡视频数据指示信息和所述遮挡录 像文件的标识; 并建立所述非遮挡录像索弓 I和所述遮挡录像索引的关联关系; 所述获取非遮挡视频数据具体包括: 根据所述视频请求包括的所述监控前 端设备的设备标识、 查看时间和所述非遮挡录像索引包括的非遮挡视频数据指 示信息、 所述监控前端设备的设备标识、 录像起止时间匹配出所述非遮挡录像 索引, 根据所述非遮挡录像索引包括的所述非遮挡录像文件的标识获取所述非 遮挡录像文件, 并获取所述非遮挡录像文件中对应所述查看时间的视频数据; 所述获取第一遮挡视频数据具体包括: 根据所述关联关系获取所述非遮挡 录像索引关联的遮挡录像索引, 根据所述遮挡录像索引包括的所述遮挡录像文 件的标识获取对应所述第一遮挡区域的一或多个录像文件; 并获取对应所述第 一遮挡区域的一或多个录像文件中对应所述查看时间的视频数据。  The establishing the association relationship between the occlusion video file and the non-occlusion video file includes: recording a non-occlusion recording index and an occlusion recording index, where the non-occlusion recording index includes a device identifier of the monitoring front end device, a video start and end time, Non-occlusion video data indication information and an identifier of the non-occlusion video file, the occlusion recording index includes an occlusion video data indication information and an identifier of the occlusion video file; and establishing the non-occlusion video cable and the occlusion The information about the non-occlusion video data includes: the device identifier of the monitoring front-end device included in the video request, the viewing time, and the non-occlusion video data indication information included in the non-occlusion recording index, Obtaining the non-occlusion video file according to the identifier of the non-occlusion video file included in the non-occlusion recording index, and acquiring the device identifier, the recording start and end time of the monitoring front end device, and the non-occlusion recording index. The corresponding view in the non-occlusion video file The obtaining of the first occlusion video data includes: acquiring the occlusion recording index associated with the non-occlusion recording index according to the association relationship, and acquiring according to the identifier of the occlusion recording file included in the occlusion recording index Corresponding to the one or more video files of the first occlusion area; and acquiring video data corresponding to the viewing time in one or more video files corresponding to the first occlusion area.
5.如权利要求 1所述的方法, 其特征在于,  5. The method of claim 1 wherein:
所述获取第一遮挡视频数据和非遮挡视频数据, 向所述第一监控终端发送 第一遮挡视频数据和非遮挡视频数据, 具体包括:  And the first occlusion video data and the non-occlusion video data are sent to the first monitoring terminal, where the method includes: acquiring the first occlusion video data and the non-occlusion video data, specifically:
生成所述非遮挡视频数据的获取地址和所述第一遮挡视频数据的获取地址 并发送给所述第一监控终端, 所述遮挡视频数据的获取地址中或携带所述遮挡 视频数据的获取地址的消息中包括数据类型, 用于指示所述获取地址对应的视 频数据为遮挡视频数据; 求, 根据所述非遮挡视频数据的获取地址与所述第一监控终端建立用于发送所 述非遮挡视频数据的媒体通道, 根据所述非遮挡视频数据的获取地址获取所述 非遮挡视频数据并通过所述媒体通道发送所述非遮挡视频数据; Generating an acquisition address of the non-occlusion video data and an acquisition address of the first occlusion video data, and sending the acquisition address to the first monitoring terminal, the acquisition address of the occlusion video data or the acquisition address of the occlusion video data The message includes a data type, and is used to indicate the view corresponding to the obtained address. The frequency data is occluded video data; and, according to the acquisition address of the non-occlusion video data, a media channel for transmitting the non-occlusion video data is established with the first monitoring terminal, according to the acquisition address of the non-occlusion video data. Obtaining the non-occlusion video data and transmitting the non-occlusion video data through the media channel;
接收所述第一监控终端发送的包含所述第一遮挡视频数据的获取地址的请 求, 根据所述第一遮挡视频数据的获取地址与所述第一监控终端建立用于发送 所述第一遮挡视频数据的媒体通道, 根据所述第一遮挡视频数据的获取地址获 取所述第一遮挡视频数据并通过所述媒体通道发送所述第一遮挡视频数据。  Receiving, by the first monitoring terminal, a request that includes the acquiring address of the first occlusion video data, establishing, according to the acquiring address of the first occlusion video data, the first monitoring terminal, for sending the first occlusion a media channel of the video data, acquiring the first occlusion video data according to the acquired address of the first occlusion video data, and transmitting the first occlusion video data by using the media channel.
6. 一种实现视频遮挡的方法, 其特征在于, 所述方法包括: A method for implementing video occlusion, the method comprising:
监控终端向监控平台发送视频请求, 所述视频请求包括设备标识, 所述设 备标识所标识的监控前端设备的视频数据包括对应非遮挡区域的非遮挡视频数 据和对应遮挡区域的遮挡视频数据;  The monitoring terminal sends a video request to the monitoring platform, where the video request includes a device identifier, and the video data of the monitoring front-end device identified by the device identifier includes non-occlusion video data corresponding to the non-occlusion area and occlusion video data corresponding to the occlusion area;
所述监控终端接收所述监控平台在判断出所述监控终端的用户具有获取所 述遮挡视频数据中的第一遮挡视频数据的权限时发送的所述第一遮挡视频数据 和所述非遮挡视频数据, 并合并播放所述第一遮挡视频数据和所述非遮挡视频 数据, 所述第一遮挡视频数据对应第一遮挡区域, 所述第一遮挡区域包括所述 遮挡区域中的部分或全部区域; 或者,  Receiving, by the monitoring terminal, the first occlusion video data and the non-occlusion video sent by the monitoring platform when determining that the user of the monitoring terminal has the right to acquire the first occlusion video data in the occlusion video data Data, and combining the first occlusion video data and the non-occlusion video data, where the first occlusion video data corresponds to a first occlusion region, and the first occlusion region includes some or all regions in the occlusion region Or,
所述监控终端接收所述监控平台在判断出所述监控终端的用户不具有获取 所述遮挡视频数据中的所述第一遮挡视频数据的权限时发送的所述非遮挡视频 数据, 并播放所述非遮挡视频数据。  Receiving, by the monitoring terminal, the non-occlusion video data sent by the monitoring platform when determining that the user of the monitoring terminal does not have the right to acquire the first occlusion video data in the occlusion video data, and playing the Non-occlusion video data.
7. 如权利要求 6所述的方法, 其特征在于,  7. The method of claim 6 wherein:
所述合并播放所述第一遮挡视频数据和所述非遮挡视频数据之前还包括, 接收所述监控平台发送的所述第一遮挡区域的描述信息;  Before the combining the first occlusion video data and the non-occlusion video data, the method further includes: receiving description information of the first occlusion region sent by the monitoring platform;
所述合并播放所述第一遮挡视频数据和所述非遮挡视频数据, 具体包括: 如果所述第一遮挡视频数据包括一路视频数据, 解码所述第一遮挡视频数 据得出遮挡视频数据帧, 解码所述非遮挡视频数据得出非遮挡视频数据帧, 提 取遮挡视频数据帧中的像素数据, 并根据第一遮挡区域的描述信息将提取的像 素数据添加到与所述遮挡视频数据帧具有相同时间戳的非遮挡视频数据帧中所 述第一遮挡区域对应的像素区域以生成完整视频帧, 并播放所述完整视频帧; 或者, The combining the first occlusion video data and the non-occlusion video data specifically includes: if the first occlusion video data includes one channel of video data, decoding the first occlusion video number Obtaining the occlusion video data frame, decoding the non-occlusion video data to obtain a non-occlusion video data frame, extracting pixel data in the occlusion video data frame, and adding the extracted pixel data to and according to the description information of the first occlusion region The occlusion video data frame has a pixel area corresponding to the first occlusion area in a non-occlusion video data frame of the same time stamp to generate a complete video frame, and plays the complete video frame; or
如果所述第一遮挡视频数据包括多路视频数据, 解码所述第一遮挡视频数 据中的每一路视频数据得出每一路视频数据的遮挡视频数据帧, 解码非遮挡视 频数据得出非遮挡视频数据帧, 提取各路视频数据的具有相同时间戳的遮挡视 频数据帧中的像素数据, 并将提取的像素数据添加到与所述遮挡视频数据帧具 有相同时间戳的非遮挡视频数据帧中该第一遮挡区域对应的像素区域生成完整 视频帧, 并播放所述完整视频帧。  If the first occlusion video data includes multiple video data, decoding each video data in the first occlusion video data to obtain an occlusion video data frame of each video data, and decoding the non-occlusion video data to obtain a non-occlusion video a data frame, extracting pixel data in an occlusion video data frame having the same time stamp of each video data, and adding the extracted pixel data to a non-occlusion video data frame having the same time stamp as the occlusion video data frame The pixel area corresponding to the first occlusion area generates a complete video frame and plays the complete video frame.
8. 一种实现视频遮挡的方法, 其特征在于, 所述方法包括: A method for implementing video occlusion, the method comprising:
监控前端设备接收监控平台发送的遮挡区域的描述信息;  The monitoring front-end device receives the description information of the occlusion area sent by the monitoring platform;
所述监控前端设备根据所述遮挡区域的描述信息将拍摄的视频画面编码为 对应非遮挡区域的非遮挡视频数据和对应所述遮挡区域的遮挡视频数据;  The monitoring front-end device encodes the captured video picture into non-occlusion video data corresponding to the non-occlusion area and occlusion video data corresponding to the occlusion area according to the description information of the occlusion area;
所述监控前端设备向所述监控平台发送所述非遮挡视频数据和所述遮挡视 频数据, 以使得所述监控平台在判断出监控终端的用户具有获取第一遮挡视频 数据的权限时向所述监控终端发送所述非遮挡视频数据以及所述第一遮挡视频 数据, 或者在判断出所述监控终端的用户不具有获取第一遮挡视频数据的权限 时向所述监控终端发送所述非遮挡视频数据, 所述第一遮挡视频数据对应第一 遮挡区域, 所述第一遮挡区域包括所述遮挡区域中的部分或全部区域。  The monitoring front-end device sends the non-occlusion video data and the occlusion video data to the monitoring platform, so that the monitoring platform determines, when determining that the user of the monitoring terminal has the right to acquire the first occlusion video data. The monitoring terminal sends the non-occlusion video data and the first occlusion video data, or sends the non-occlusion video to the monitoring terminal when it is determined that the user of the monitoring terminal does not have the right to acquire the first occlusion video data Data, the first occlusion video data corresponds to a first occlusion region, and the first occlusion region includes some or all of the occlusion regions.
9. 如权利要求 8所述的方法, 其特征在于,  9. The method of claim 8 wherein:
所述根据所述遮挡区域的描述信息将拍摄的视频画面编码为对应所述遮挡 区域的遮挡视频数据, 具体包括:  The encoding the captured video image into the occlusion video data corresponding to the occlusion region according to the description information of the occlusion region, specifically includes:
当所述遮挡区域包括一个区域时, 将拍摄的视频画面中所述遮挡区域对应 的视频画面编码为一路视频数据; 当所述遮挡区域包括多个区域时, 将拍摄的视频画面中所述遮挡区域包括 的多个区域对应的视频画面编码为一路视频数据, 或者, 将拍摄的视频画面中 所述遮挡区域包括的多个区域各自对应的视频画面分别编码为一路视频数据, 或者, 将拍摄的视频画面中所述遮挡区域包括的多个区域中对应相同权限的区 域的视频画面编码为一路视频数据。 When the occlusion area includes an area, the video picture corresponding to the occlusion area in the captured video picture is encoded as one channel of video data; When the occlusion area includes a plurality of areas, the video picture corresponding to the plurality of areas included in the occlusion area in the captured video picture is encoded as one channel of video data, or the occlusion area included in the captured video picture is included The video pictures corresponding to the plurality of areas are respectively coded as one channel of video data, or the video pictures of the areas corresponding to the same rights among the plurality of areas included in the occlusion area in the captured video picture are encoded as one channel of video data.
10. 如权利要求 8所述的方法, 其特征在于,  10. The method of claim 8 wherein:
所述根据所述遮挡区域的描述信息将拍摄的视频画面编码为对应所述遮挡 区域的遮挡视频数据, 具体包括: 将拍摄的视频画面中所述遮挡区域对应的视 频画面直接编码为所述遮挡视频数据; 或者, 将拍摄的视频画面中的非遮挡区 域对应的视频画面釆用设定的像素值填充后编码生成所述遮挡视频数据;  The encoding the captured video picture into the occlusion video data corresponding to the occlusion area according to the description information of the occlusion area, specifically: encoding the video picture corresponding to the occlusion area in the captured video picture directly into the occlusion Video data; or, the video picture corresponding to the non-occlusion area in the captured video picture is padded with the set pixel value and encoded to generate the occlusion video data;
所述根据所述遮挡区域的描述信息将拍摄的视频画面编码为对应非遮挡区 域的非遮挡视频数据, 具体包括: 将拍摄的视频画面中的非遮挡区域对应的视 频画面直接编码为所述非遮挡视频数据, 或者, 将拍摄的视频画面中的所述遮 挡区域对应的视频画面釆用设定的像素值填充后编码生成所述非遮挡视频数 据。  The encoding the captured video picture into the non-occlusion video data corresponding to the non-occlusion area according to the description information of the occlusion area, specifically: encoding the video picture corresponding to the non-occlusion area in the captured video picture directly into the non-occlusion The video data is occluded, or the video frame corresponding to the occlusion area in the captured video picture is padded with the set pixel value and encoded to generate the non-occlusion video data.
11. 一种监控平台, 其特征在于, 所述监控平台包括: 视频请求接收单元、 判断单元、 获取单元、 视频数据发送单元; A monitoring platform, comprising: a video request receiving unit, a determining unit, an obtaining unit, and a video data sending unit;
所述视频请求接收单元, 用于接收第一监控终端发送的视频请求, 所述视 频请求包括设备标识, 所述设备标识所标识的监控前端设备的视频数据包括对 应非遮挡区域的非遮挡视频数据和对应遮挡区域的遮挡视频数据;  The video request receiving unit is configured to receive a video request sent by the first monitoring terminal, where the video request includes a device identifier, where the video data of the monitoring front-end device identified by the device identifier includes non-occlusion video data corresponding to the non-occlusion region. And occlusion video data corresponding to the occlusion area;
所述判断单元, 用于判断所述第一监控终端的用户是否具有获取所述遮挡 视频数据中的第一遮挡视频数据的权限, 所述第一遮挡视频数据对应第一遮挡 区域, 所述第一遮挡区域包括所述遮挡区域中的部分或全部区域;  The determining unit is configured to determine whether the user of the first monitoring terminal has the right to obtain the first occlusion video data in the occlusion video data, where the first occlusion video data corresponds to the first occlusion region, An occlusion region includes some or all of the occlusion regions;
所述获取单元, 用于获取非遮挡视频数据, 并用于在所述判断单元的判断 结果为是时获取第一遮挡视频数据;  The acquiring unit is configured to acquire non-occlusion video data, and is configured to acquire first occlusion video data when the determining result of the determining unit is YES;
所述视频数据发送单元, 用于在所述判断单元的判断结果为是时, 向所述 第一监控终端发送所述获取单元获取的所述第一遮挡视频数据和所述非遮挡视 频数据, 以使得第一监控终端合并播放所述第一遮挡视频数据和所述非遮挡视 频数据, 或者, 合并所述获取单元获取的所述第一遮挡视频数据和所述非遮挡 视频数据得到合并后的视频数据, 并将所述合并后的视频数据发送给所述第一 监控终端; 还用于在所述判断单元的判断结果为否时, 向所述第一监控终端发 送所述获取单元获取的所述非遮挡视频数据。 The video data sending unit, configured to: when the determination result of the determining unit is yes, Transmitting, by the first monitoring terminal, the first occlusion video data and the non-occlusion video data acquired by the acquiring unit, so that the first monitoring terminal merges and plays the first occlusion video data and the non-occlusion video data, or Merging the first occlusion video data and the non-occlusion video data acquired by the acquiring unit to obtain the combined video data, and transmitting the combined video data to the first monitoring terminal; When the determination result of the determining unit is no, the non-occlusion video data acquired by the acquiring unit is sent to the first monitoring terminal.
12. 如权利要求 11所述的监控平台, 其特征在于,  12. The monitoring platform of claim 11 wherein:
所述监控平台还包括: 设置请求接收单元、 描述信息发送单元和第一视频 数据接收单元; 所述设置请求接收单元, 用于接收第二监控终端发送的遮挡区 域设置请求, 所述遮挡区域设置请求包括所述监控前端设备的设备标识和所述 遮挡区域的描述信息; 所述描述信息发送单元, 用于向所述监控前端设备发送 所述遮挡区域的描述信息; 所述第一视频数据接收单元, 用于接收所述监控前 端设备发送的根据所述遮挡区域的描述信息生成的所述非遮挡视频数据和所述 遮挡视频数据; 或者,  The monitoring platform further includes: a setting request receiving unit, a description information sending unit, and a first video data receiving unit; the setting request receiving unit is configured to receive an occlusion area setting request sent by the second monitoring terminal, where the occlusion area is set The request includes the device identifier of the monitoring front-end device and the description information of the occlusion area; the description information sending unit is configured to send, to the monitoring front-end device, description information of the occlusion area; the first video data receiving a unit, configured to receive the non-occlusion video data and the occlusion video data generated according to the description information of the occlusion area sent by the monitoring front-end device; or
所述监控平台还包括: 设置请求接收单元、 第二视频数据接收单元和视频 数据分离单元; 所述设置请求接收单元, 用于接收第二监控终端发送的遮挡区 域设置请求, 所述遮挡区域设置请求包括所述监控前端设备的设备标识和所述 遮挡区域的描述信息; 所述第二视频数据接收单元, 用于接收所述监控前端设 备发送的完整视频数据中; 所述视频数据分离单元, 用于从所述第二视频数据 接收单元接收的所述完整视频数据中分离出所述遮挡视频数据和所述非遮挡视 频数据。  The monitoring platform further includes: a setting request receiving unit, a second video data receiving unit, and a video data separating unit; the setting request receiving unit is configured to receive an occlusion area setting request sent by the second monitoring terminal, where the occlusion area is set The request includes the device identifier of the monitoring front-end device and the description information of the occlusion region; the second video data receiving unit is configured to receive the complete video data sent by the monitoring front-end device; the video data separating unit, And omitting the occlusion video data and the non-occlusion video data from the complete video data received by the second video data receiving unit.
13. 如权利要求 11所述的监控平台, 其特征在于, 所述监控平台还包括: 存储单元和关联关系建立单元;  The monitoring platform according to claim 11, wherein the monitoring platform further comprises: a storage unit and an association establishing unit;
所述存储单元, 用于将所述遮挡视频数据存储到遮挡录像文件中, 将所述 非遮挡视频数据存储到非遮挡录像文件中, 所述遮挡录像文件包括一或多个录 像文件;  The storage unit is configured to store the occlusion video data into an occlusion video file, and store the non-occlusion video data into a non-occlusion video file, where the occlusion video file includes one or more video files;
所述关联关系建立单元, 用于建立所述遮挡录像文件和所述非遮挡录像文 件的关联关系; The association relationship establishing unit is configured to establish the occlusion video file and the non-occlusion video file Relationship of pieces;
所述视频请求接收单元, 具体用于接收第一监控终端发送的包括查看时间 的视频请求;  The video request receiving unit is specifically configured to receive a video request that is sent by the first monitoring terminal, including a viewing time;
所述获取单元, 具体用于获取所述非遮挡录像文件中对应所述查看时间的 视频数据, 具体还用于在所述判断单元的判断结果为是时, 根据所述关联关系 建立单元建立的关联关系获取所述非遮挡录像文件关联的对应所述第一遮挡区 域的一或多个录像文件, 并获取对应所述第一遮挡区域的一或多个录像文件中 对应所述查看时间的视频数据。  The acquiring unit is specifically configured to acquire video data corresponding to the viewing time in the non-occlusion video file, and is specifically used to establish, according to the association relationship establishing unit, when the determining result of the determining unit is yes Obtaining one or more video files corresponding to the first occlusion area associated with the non-occlusion video file, and acquiring a video corresponding to the viewing time in one or more video files corresponding to the first occlusion area data.
14. 一种监控终端, 其特征在于, 所述监控终端包括: 视频请求发送单元、 视频数据接收单元和播放单元; A monitoring terminal, comprising: a video request sending unit, a video data receiving unit, and a playing unit;
所述视频请求发送单元, 用于向监控平台发送视频请求, 所述视频请求包 括设备标识, 所述设备标识所标识的监控前端设备的视频数据包括对应非遮挡 区域的非遮挡视频数据和对应遮挡区域的遮挡视频数据;  The video request sending unit is configured to send a video request to the monitoring platform, where the video request includes a device identifier, where the video data of the monitoring front-end device identified by the device identifier includes non-occlusion video data corresponding to the non-occlusion region and corresponding occlusion Occlusion video data of the area;
所述视频数据接收单元, 用于接收所述监控平台在判断出所述监控终端的 用户具有获取所述遮挡视频数据中的第一遮挡视频数据的权限时发送的所述第 一遮挡视频数据和所述非遮挡视频数据, 所述第一遮挡视频数据对应第一遮挡 区域, 所述第一遮挡区域包括所述遮挡区域中的部分或全部区域; 还用于接收 所述监控平台在判断出所述监控终端的用户不具有获取所述遮挡视频数据中的 所述第一遮挡视频数据的权限时发送的所述非遮挡视频数据;  The video data receiving unit is configured to receive, by the monitoring platform, the first occlusion video data that is sent when the user of the monitoring terminal has the right to acquire the first occlusion video data in the occlusion video data. The non-occlusion video data, the first occlusion video data corresponds to a first occlusion area, and the first occlusion area includes part or all of the occlusion area; The non-occlusion video data sent when the user of the monitoring terminal does not have the right to acquire the first occlusion video data in the occlusion video data;
所述播放单元, 用于合并播放所述视频数据接收单元接收的所述第一遮挡 视频数据和所述非遮挡视频数据, 或者用于播放所述视频数据接收单元接收的 所述非遮挡视频数据。  The playing unit is configured to merge and play the first occlusion video data and the non-occlusion video data received by the video data receiving unit, or to play the non-occlusion video data received by the video data receiving unit. .
15. 如权利要求 14所述的监控终端, 其特征在于,  15. The monitoring terminal of claim 14, wherein
如果所述第一遮挡视频数据包括一路视频数据, 所述播放单元具体用于, 解码所述第一遮挡视频数据得出遮挡视频数据帧, 解码所述非遮挡视频数据得 出非遮挡视频数据帧, 提取遮挡视频数据帧中的像素数据, 并根据第一遮挡区 域的描述信息将提取的像素数据添加到与所述遮挡视频数据帧具有相同时间戳 的非遮挡视频数据帧中所述第一遮挡区域对应的像素区域以生成完整视频帧, 并播放所述完整视频帧; 或者, If the first occlusion video data includes one channel of video data, the playing unit is specifically configured to: decode the first occlusion video data to obtain an occlusion video data frame, and decode the non-occlusion video data to obtain a non-occlusion video data frame. Extracting pixel data in the occlusion video data frame according to the first occlusion region The description information of the domain adds the extracted pixel data to a pixel region corresponding to the first occlusion region in the non-occlusion video data frame having the same time stamp as the occlusion video data frame to generate a complete video frame, and plays the complete Video frame; or,
如果所述第一遮挡视频数据包括多路视频数据, 所述播放单元具体用于, 解码所述第一遮挡视频数据中的每一路视频数据得出每一路视频数据的遮挡视 频数据帧, 解码非遮挡视频数据得出非遮挡视频数据帧, 提取各路视频数据的 具有相同时间戳的遮挡视频数据帧中的像素数据, 并将提取的像素数据添加到 与所述遮挡视频数据帧具有相同时间戳的非遮挡视频数据帧中该第一遮挡区域 对应的像素区域生成完整视频帧, 并播放所述完整视频帧。  If the first occlusion video data includes multiple video data, the playing unit is specifically configured to: decode each video data in the first occlusion video data to obtain an occlusion video data frame of each video data, and decode the non-decoding video data frame. Blocking the video data to obtain a non-occlusion video data frame, extracting pixel data in the occlusion video data frame having the same time stamp of each video data, and adding the extracted pixel data to the same time stamp as the occlusion video data frame The pixel region corresponding to the first occlusion region in the non-occluded video data frame generates a complete video frame and plays the complete video frame.
16. 一种监控前端设备, 其特征在于, 所述监控前端设备包括: 描述信息 接收单元、 视频数据编码单元和视频数据发送单元; A monitoring front-end device, wherein the monitoring front-end device comprises: a description information receiving unit, a video data encoding unit, and a video data transmitting unit;
所述描述信息接收单元, 用于接收监控平台发送的遮挡区域的描述信息; 所述视频数据编码单元, 用于根据所述遮挡区域的描述信息将拍摄的视频 画面编码为对应非遮挡区域的非遮挡视频数据和对应所述遮挡区域的遮挡视频 数据;  The description information receiving unit is configured to receive description information of an occlusion area sent by the monitoring platform, where the video data encoding unit is configured to encode the captured video picture into a non-occlusion area according to the description information of the occlusion area. Occluding video data and occlusion video data corresponding to the occlusion area;
所述视频数据发送单元, 用于向所述监控平台发送所述非遮挡视频数据和 所述遮挡视频数据, 以使得所述监控平台在判断出监控终端的用户具有获取第 一遮挡视频数据的权限时向所述监控终端发送所述非遮挡视频数据以及所述第 一遮挡视频数据, 或者在判断出所述监控终端的用户不具有获取第一遮挡视频 数据的权限时向所述监控终端发送所述非遮挡视频数据, 所述第一遮挡视频数 据对应第一遮挡区域, 所述第一遮挡区域包括所述遮挡区域中的部分或全部区 域。  The video data sending unit is configured to send the non-occlusion video data and the occlusion video data to the monitoring platform, so that the monitoring platform determines that the user of the monitoring terminal has the right to obtain the first occlusion video data. Transmitting the non-occlusion video data and the first occlusion video data to the monitoring terminal, or sending the location to the monitoring terminal when determining that the user of the monitoring terminal does not have the right to acquire the first occlusion video data For the non-occlusion video data, the first occlusion video data corresponds to a first occlusion region, and the first occlusion region includes some or all of the occlusion regions.
17. 如权利要求 16所述的监控前端设备, 其特征在于,  17. The monitoring front end device of claim 16 wherein:
所述视频数据编码单元具体用于, 当所述遮挡区域包括一个区域时, 根据 所述遮挡区域的描述信息将拍摄的视频画面中所述遮挡区域对应的视频画面编 码为一路视频数据; 或者, 当所述遮挡区域包括多个区域时, 根据所述遮挡区 域的描述信息将拍摄的视频画面中所述遮挡区域包括的多个区域对应的视频画 面编码为一路视频数据, 或者, 将拍摄的视频画面中所述遮挡区域包括的多个 区域各自对应的视频画面分别编码为一路视频数据, 或者, 将拍摄的视频画面 中所述遮挡区域包括的多个区域中对应相同权限的区域的视频画面编码为一路 视频数据; 具体还用于, 根据所述遮挡区域的描述信息将拍摄的视频画面中非 遮挡区域对应的视频画面编码为非遮挡视频数据。 The video data encoding unit is configured to: when the occlusion area includes an area, encode a video picture corresponding to the occlusion area in the captured video picture as one channel of video data according to the description information of the occlusion area; or When the occlusion area includes a plurality of areas, according to the occlusion area The description information of the domain encodes a video picture corresponding to the plurality of areas included in the occlusion area in the captured video picture as one video data, or a video corresponding to each of the multiple areas included in the occlusion area in the captured video picture The video image is encoded as one channel of video data, or the video image of the region corresponding to the same privilege in the plurality of regions included in the occlusion region of the captured video image is encoded as one channel of video data; specifically, according to the occlusion region The description information encodes the video picture corresponding to the non-occlusion area in the captured video picture as non-occlusion video data.
18. 一种视频监控系统, 其特征在于, 所述视频监控系统包括: 监控终端 和监控平台; 18. A video surveillance system, the video surveillance system comprising: a monitoring terminal and a monitoring platform;
所述监控终端, 具体为如权利要求 14或 15所述的监控终端;  The monitoring terminal is specifically the monitoring terminal according to claim 14 or 15;
所述监控平台, 具体为如权利要求 11-1 3任一所述的监控平台。  The monitoring platform is specifically the monitoring platform according to any one of claims 1 to 13.
19. 如权利要求 18所述的视频监控系统, 其特征在于, 所述视频监控系统 还包括监控前端设备;  19. The video surveillance system of claim 18, wherein the video surveillance system further comprises a monitoring front end device;
所述监控前端设备, 具体为如权利要求 16或 17所述的监控前端设备。  The monitoring front-end device is specifically the monitoring front-end device according to claim 16 or 17.
PCT/CN2012/082784 2012-10-11 2012-10-11 Method, apparatus and system for implementing video occlusion WO2014056171A1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP12872312.9A EP2741237B1 (en) 2012-10-11 2012-10-11 Method, apparatus and system for implementing video occlusion
CN201280001926.1A CN103890783B (en) 2012-10-11 2012-10-11 Method, apparatus and system for implementing video occlusion
PCT/CN2012/082784 WO2014056171A1 (en) 2012-10-11 2012-10-11 Method, apparatus and system for implementing video occlusion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/082784 WO2014056171A1 (en) 2012-10-11 2012-10-11 Method, apparatus and system for implementing video occlusion

Publications (1)

Publication Number Publication Date
WO2014056171A1 true WO2014056171A1 (en) 2014-04-17

Family

ID=50476881

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/082784 WO2014056171A1 (en) 2012-10-11 2012-10-11 Method, apparatus and system for implementing video occlusion

Country Status (3)

Country Link
EP (1) EP2741237B1 (en)
CN (1) CN103890783B (en)
WO (1) WO2014056171A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208340A (en) * 2015-09-24 2015-12-30 浙江宇视科技有限公司 Method and device for displaying video data
WO2018107729A1 (en) * 2016-12-16 2018-06-21 杭州海康威视数字技术股份有限公司 Method and apparatus for image display using privacy masking

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102051985B1 (en) * 2015-09-30 2019-12-04 애플 인크. Synchronization of Media Rendering in Heterogeneous Networking Environments
CN105866853B (en) * 2016-04-13 2019-01-01 同方威视技术股份有限公司 Safety check supervisor control and safety check monitoring terminal
CN106341664B (en) * 2016-09-29 2019-12-13 浙江宇视科技有限公司 data processing method and device
CN110324704A (en) * 2018-03-29 2019-10-11 优酷网络技术(北京)有限公司 Method for processing video frequency and device
CN109063499B (en) * 2018-07-27 2021-02-26 山东鲁能软件技术有限公司 Flexible configurable electronic file region authorization method and system
US11030212B2 (en) * 2018-09-06 2021-06-08 International Business Machines Corporation Redirecting query to view masked data via federation table
CN110958410A (en) * 2018-09-27 2020-04-03 北京嘀嘀无限科技发展有限公司 Video processing method and device and automobile data recorder
CN111614930B (en) * 2019-02-22 2022-11-25 浙江宇视科技有限公司 Video monitoring method, system, equipment and computer readable storage medium
CN113114548B (en) * 2020-07-07 2022-10-14 德能森智能科技(成都)有限公司 Terminal management method and system based on privacy management
CN112954458A (en) * 2021-01-20 2021-06-11 浙江大华技术股份有限公司 Video occlusion method, device, electronic device and storage medium
CN113014949B (en) * 2021-03-10 2022-05-06 读书郎教育科技有限公司 Student privacy protection system and method for smart classroom course playback
WO2023092066A1 (en) * 2021-11-18 2023-05-25 Parrot AI, Inc. System and method for documenting recorded events
CN114189660A (en) * 2021-12-24 2022-03-15 威艾特科技(深圳)有限公司 Monitoring method and system based on omnidirectional camera
CN114419720B (en) * 2022-03-30 2022-10-18 浙江大华技术股份有限公司 Image occlusion method and system and computer readable storage medium
WO2024050347A1 (en) * 2022-08-31 2024-03-07 SimpliSafe, Inc. Security device zones

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101710979A (en) * 2009-12-07 2010-05-19 北京中星微电子有限公司 Method for managing video monitoring system and central management server
CN102547212A (en) * 2011-12-13 2012-07-04 浙江元亨通信技术股份有限公司 Splicing method of multiple paths of video images

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6509926B1 (en) * 2000-02-17 2003-01-21 Sensormatic Electronics Corporation Surveillance apparatus for camera surveillance system
US20080117295A1 (en) * 2004-12-27 2008-05-22 Touradj Ebrahimi Efficient Scrambling Of Regions Of Interest In An Image Or Video To Preserve Privacy
JP4671133B2 (en) * 2007-02-09 2011-04-13 富士フイルム株式会社 Image processing device
CN101610396A (en) * 2008-06-16 2009-12-23 北京智安邦科技有限公司 Intellective video monitoring device module and system and method for supervising thereof with secret protection
US8576282B2 (en) * 2008-12-12 2013-11-05 Honeywell International Inc. Security system with operator-side privacy zones
CN101848378A (en) * 2010-06-07 2010-09-29 中兴通讯股份有限公司 Domestic video monitoring device, system and method
FR2972886B1 (en) * 2011-03-17 2013-03-15 Thales Sa METHOD OF COMPRESSING / DECOMPRESSING PARTIALLY MASKED VIDEO FLOWS, ENCODER AND DECODER USING THE METHOD

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101710979A (en) * 2009-12-07 2010-05-19 北京中星微电子有限公司 Method for managing video monitoring system and central management server
CN102547212A (en) * 2011-12-13 2012-07-04 浙江元亨通信技术股份有限公司 Splicing method of multiple paths of video images

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208340A (en) * 2015-09-24 2015-12-30 浙江宇视科技有限公司 Method and device for displaying video data
CN105208340B (en) * 2015-09-24 2019-10-18 浙江宇视科技有限公司 A kind of display methods and device of video data
WO2018107729A1 (en) * 2016-12-16 2018-06-21 杭州海康威视数字技术股份有限公司 Method and apparatus for image display using privacy masking
CN108206930A (en) * 2016-12-16 2018-06-26 杭州海康威视数字技术股份有限公司 The method and device for showing image is covered based on privacy
US11163897B2 (en) 2016-12-16 2021-11-02 Hangzhou Hikvision Digital Technology Co., Ltd. Method and apparatus for image display using privacy masking

Also Published As

Publication number Publication date
EP2741237A1 (en) 2014-06-11
EP2741237A4 (en) 2014-07-16
EP2741237B1 (en) 2017-08-09
CN103890783A (en) 2014-06-25
CN103890783B (en) 2017-02-22

Similar Documents

Publication Publication Date Title
WO2014056171A1 (en) Method, apparatus and system for implementing video occlusion
US10582201B2 (en) Most-interested region in an image
WO2018054375A1 (en) Live broadcast information processing method and device, and storage medium
US20210076098A1 (en) Virtual reality video playing method, terminal, and server
WO2017205794A1 (en) Methods and apparatus of viewport adaptive 360 degree video delivery
WO2014169828A1 (en) Method, device, and system for playing surveillance video
US20230045876A1 (en) Video Playing Method, Apparatus, and System, and Computer Storage Medium
JPWO2014057555A1 (en) Information processing apparatus, information processing system, information processing program, and moving image data transmission / reception method
WO2022111554A1 (en) View switching method and apparatus
CN104837043B (en) Multimedia information processing method and electronic equipment
JP2002330440A (en) Image transmission method, program for the image transmission method, recording medium for recording the program for the image transmission method, and image transmitter
EP2974321A2 (en) Resilience in the presence of missing media segments in dynamic adaptive streaming over http
WO2017092433A1 (en) Method and device for video real-time playback
CN106134187B (en) The method and apparatus negotiated for directional process
KR101584111B1 (en) A Method And Apparatus For Enhancing Quality Of Multimedia Service By Using Cloud Computing
CN110198458B (en) Processing method and device for encrypted audio and video data
JP2012137900A (en) Image output system, image output method and server device
Zeng et al. A new architecture of 8k vr fov video end-to-end technology
US20120281066A1 (en) Information processing device and information processing method
JP5940999B2 (en) VIDEO REPRODUCTION DEVICE, VIDEO DISTRIBUTION DEVICE, VIDEO REPRODUCTION METHOD, VIDEO DISTRIBUTION METHOD, AND PROGRAM
WO2022222533A1 (en) Video playing method, apparatus and system, and computer-readable storage medium
CN112291577B (en) Live video sending method and device, storage medium and electronic device
KR20200076529A (en) Indexing of tiles for region of interest in virtual reality video streaming
WO2022100742A1 (en) Video encoding and video playback method, apparatus and system
JP2018113568A (en) Transmission device, transmission method, and program

Legal Events

Date Code Title Description
REEP Request for entry into the european phase

Ref document number: 2012872312

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2012872312

Country of ref document: EP

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12872312

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE