Traffic data transmission method, traffic data transmission device, electronic equipment and storage medium

文档序号:1891368 发布日期:2021-11-26 浏览:28次 中文

阅读说明:本技术 交通数据传输方法、装置、电子设备和存储介质 (Traffic data transmission method, traffic data transmission device, electronic equipment and storage medium ) 是由 崔衡 汪金鹏 朱哲 韩翼 舒志平 于 2020-05-20 设计创作,主要内容包括:本申请实施例提供了一种交通数据传输方法、装置、电子设备和存储介质,道路摄像头设置有方向传感器,所述方法包括:依据所述方向传感器获取所述道路摄像头的方向信息;依据所述道路摄像头拍摄的交通视频数据,确定对应的编码视频流,并在所述编码视频流中添加所述方向信息;传输添加方向信息的编码视频流,以便根据所述方向信息确定所述道路摄像头拍摄的交通视频数据中目标对象的移动信息;能够更准确的进行分析。(The embodiment of the application provides a traffic data transmission method, a traffic data transmission device, electronic equipment and a storage medium, wherein a road camera is provided with a direction sensor, and the method comprises the following steps: acquiring direction information of the road camera according to the direction sensor; determining a corresponding coded video stream according to the traffic video data shot by the road camera, and adding the direction information in the coded video stream; transmitting the coded video stream added with the direction information so as to determine the movement information of the target object in the traffic video data shot by the road camera according to the direction information; the analysis can be performed more accurately.)

1. A traffic data transmission method, characterized in that a road camera is provided with a direction sensor, the method comprising:

acquiring direction information of the road camera according to the direction sensor;

determining a corresponding coded video stream according to the traffic video data shot by the road camera, and adding the direction information in the coded video stream;

and transmitting the coded video stream added with the direction information so as to determine the movement information of the target object in the traffic video data shot by the road camera according to the direction information.

2. The method of claim 1, wherein the road camera is connected to the pan-tilt head via a first serial port, the method further comprising:

receiving a direction adjusting instruction for the road camera;

and outputting the direction adjusting instruction to the cloud deck through the first serial port so as to adjust the shooting angle of the road camera through the cloud deck.

3. The method of claim 2, wherein the direction sensor is connected to the road camera via a second serial port, and the obtaining the direction information of the road camera according to the direction sensor comprises:

sensing the adjustment of the cloud platform to the road camera according to a direction sensor to obtain the direction information;

and receiving the direction information transmitted by the direction sensor through the second serial port.

4. The method of claim 1, wherein the obtaining the direction information of the road camera from the direction sensor comprises:

acquiring direction information of the road camera at regular time according to the direction sensor; or

And under the condition that the road camera rotates, acquiring direction information of the road camera after the road camera finishes rotating according to the direction sensor.

5. The method according to claim 1, wherein the determining a corresponding encoded video stream according to the traffic video data captured by the road camera and adding the direction information to the encoded video stream comprises:

compressing the traffic video data shot by the road camera to obtain corresponding compressed video data;

packaging the compressed video data to obtain a corresponding coded video stream;

acquiring direction information corresponding to the video data, and adding the direction information into the coded video stream;

and packaging the coded video stream added with the direction information to obtain the coded video stream corresponding to the direction information.

6. A traffic data transmission method, comprising:

receiving an encoded video stream transmitted by a road camera;

and determining traffic video data shot by the road camera and direction information of the traffic video data according to the coded video stream, wherein the road camera is provided with a direction sensor for sensing the direction information, and the direction information is used for determining the movement information of a target object in the traffic video data shot by the road camera.

7. The method of claim 6, wherein determining the traffic video data captured by the road camera and the direction information of the traffic video data according to the encoded video stream comprises:

acquiring direction information from the additional information of the encoded video stream;

and decapsulating the encoded video stream to obtain corresponding video data.

8. A data transmission method, characterized in that a camera is provided with a direction sensor, the method comprising:

acquiring direction information of the camera according to the direction sensor;

determining a corresponding coded video stream according to the video data shot by the camera, and adding the direction information in the coded video stream;

and transmitting the coded video stream added with the direction information so as to determine the shooting angle of the camera for shooting the video.

9. The method of claim 8, wherein the camera is connected to the pan/tilt head via a first serial port, the method further comprising:

receiving a direction adjustment instruction for the camera;

and outputting the direction adjusting instruction to the cloud deck through the first serial port so as to adjust the shooting angle of the camera through the cloud deck.

10. The method of claim 9, wherein the direction sensor is connected to the camera via a second serial port, and the obtaining the direction information of the camera according to the direction sensor comprises:

sensing the adjustment of the cloud platform to the camera according to a direction sensor to obtain the direction information;

and receiving the direction information transmitted by the direction sensor through the second serial port.

11. The method of claim 8, wherein the obtaining the orientation information of the camera according to the orientation sensor comprises:

acquiring direction information of the camera regularly according to the direction sensor; or

And under the condition that the camera rotates, acquiring direction information of the camera after the rotation according to the direction sensor.

12. The method according to claim 8, wherein the determining a corresponding encoded video stream according to the video data captured by the camera and adding the direction information to the encoded video stream comprises:

compressing the video data shot by the camera to obtain corresponding compressed video data;

packaging the compressed video data to obtain a corresponding coded video stream;

acquiring direction information corresponding to the video data, and adding the direction information into the coded video stream;

and packaging the coded video stream added with the direction information to obtain the coded video stream corresponding to the direction information.

13. The method of claim 12, wherein adding the direction information to the encoded video stream comprises:

and filtering the direction information, and adding the filtered direction information into the additional information corresponding to the coded video stream.

14. A method for data transmission, said method comprising:

receiving an encoded video stream transmitted by a camera;

and obtaining video data shot by the camera and direction information of the video data according to the coded video stream, wherein the camera is provided with a direction sensor for sensing the direction information.

15. The method according to claim 14, wherein said deriving the video data captured by the camera and the direction information of the video data according to the encoded video stream comprises:

acquiring direction information from the additional information of the encoded video stream;

and decapsulating the encoded video stream to obtain corresponding video data.

16. The method of claim 14, further comprising:

and analyzing the video data according to the direction information, and determining the movement information of the target object in the video data.

17. A traffic data transmission device, characterized in that a road camera is provided with a direction sensor, the device comprising:

the traffic direction information acquisition module is used for acquiring the direction information of the road camera according to the direction sensor;

the traffic data coding processing module is used for determining a corresponding coded video stream according to the traffic video data shot by the road camera and adding the direction information into the coded video stream;

and the traffic data transmission module is used for transmitting the coded video stream added with the direction information so as to determine the movement information of the target object in the traffic video data shot by the road camera according to the direction information.

18. A traffic data transmission device, comprising:

the traffic data receiving module is used for receiving the coded video stream transmitted by the road camera;

and the traffic data decoding module is used for determining the traffic video data shot by the road camera and the direction information of the traffic video data according to the coded video stream, wherein the road camera is provided with a direction sensor for sensing the direction information, and the direction information is used for determining the movement information of the target object in the traffic video data shot by the road camera.

19. A data transmission device, characterized in that a camera is provided with a direction sensor, the device comprising:

the direction information acquisition module is used for acquiring the direction information of the camera according to the direction sensor;

the coding processing module is used for determining a corresponding coding video stream according to the video data shot by the camera and adding the direction information in the coding video stream;

and the data transmission module is used for transmitting the coded video stream added with the direction information so as to determine the shooting angle of the video shot by the camera.

20. A data transmission apparatus, said apparatus comprising:

the data receiving module is used for receiving the coded video stream transmitted by the camera;

and the data decoding module is used for obtaining the video data shot by the camera and the direction information of the video data according to the coded video stream, wherein the camera is provided with a direction sensor to sense the direction information.

21. An electronic device, comprising: a processor; and

memory having stored thereon executable code which, when executed, causes the processor to perform the method of one or more of claims 1-5, 8-13.

22. One or more machine-readable media having executable code stored thereon that, when executed, causes a processor to perform the method of one or more of claims 1-5, 8-13.

23. An electronic device, comprising: a processor; and

memory having stored thereon executable code which, when executed, causes the processor to perform the method of one or more of claims 6-7, 14-16.

24. One or more machine-readable media having executable code stored thereon that, when executed, causes a processor to perform the method of one or more of claims 6-7, 14-16.

Technical Field

The present application relates to the field of computer technologies, and in particular, to a traffic data transmission method, a traffic data transmission device, an electronic device, and a storage medium.

Background

At present, on a highway, due to the fact that the driving speed of vehicles is very high, once collision occurs, consequences are hard to imagine, behaviors in the highway process, such as vehicles running backwards, throwing, pedestrians running on lanes and the like, need to be monitored, and otherwise, serious traffic accidents are caused.

For the camera, the camera is divided into a camera which can not rotate at an angle and a camera which can rotate at an angle. For a camera which can not rotate at an angle, an existing video content monitoring method is to analyze a moving track of a vehicle in a video and determine whether the vehicle drives in a wrong direction or not by combining an installation angle of the camera. For the camera with a rotatable angle, the angle of the camera is adjusted by sending a control command to a holder provided with the camera through a control platform. When monitoring the camera capable of rotating the angle, a control instruction sent to the holder needs to be acquired to determine the shooting angle of the camera, and the moving track of the vehicle in the video data is analyzed to determine whether the vehicle drives in the wrong direction or not.

However, the shooting angle of the camera is determined according to the control instruction sent to the pan-tilt, and due to the fact that transmission time exists between the camera and the control platform, video information is prone to being not corresponding to the shooting angle of the camera, and the problem of inaccurate analysis is prone to being caused.

Disclosure of Invention

The embodiment of the application provides a traffic data transmission method, so that waste of equipment resources is reduced.

Correspondingly, the embodiment of the application also provides a traffic data transmission device, electronic equipment and a storage medium, which are used for ensuring the realization and application of the system.

In order to solve the above problem, an embodiment of the present application discloses a traffic data transmission method, where a road camera is provided with a direction sensor, the method includes: acquiring direction information of the road camera according to the direction sensor; determining a corresponding coded video stream according to the traffic video data shot by the road camera, and adding the direction information in the coded video stream; and transmitting the coded video stream added with the direction information so as to determine the movement information of the target object in the traffic video data shot by the road camera according to the direction information.

In order to solve the above problem, an embodiment of the present application discloses a traffic data transmission method, including: receiving an encoded video stream transmitted by a road camera; and determining traffic video data shot by the road camera and direction information of the traffic video data according to the coded video stream, wherein the road camera is provided with a direction sensor for sensing the direction information, and the direction information is used for determining the movement information of a target object in the traffic video data shot by the road camera.

In order to solve the above problem, an embodiment of the present application discloses a data transmission method, in which a camera is provided with a direction sensor, and the method includes: acquiring direction information of the camera according to the direction sensor; determining a corresponding coded video stream according to the video data shot by the camera, and adding the direction information in the coded video stream; and transmitting the coded video stream added with the direction information so as to determine the shooting angle of the camera for shooting the video.

In order to solve the above problem, an embodiment of the present application discloses a data transmission method, where the method includes: receiving an encoded video stream transmitted by a camera; and obtaining video data shot by the camera and direction information of the video data according to the coded video stream, wherein the camera is provided with a direction sensor for sensing the direction information.

In order to solve the above problem, the embodiment of the application discloses a traffic data transmission device, the road camera is provided with direction sensor, the device includes: the traffic direction information acquisition module is used for acquiring the direction information of the road camera according to the direction sensor; the traffic data coding processing module is used for determining a corresponding coded video stream according to the video data shot by the road camera and adding the direction information into the coded video stream; and the traffic data transmission module is used for transmitting the coded video stream added with the direction information so as to determine the movement information of the target object in the traffic video data shot by the road camera according to the direction information.

In order to solve the above problem, an embodiment of the present application discloses a traffic data transmission device, including: the traffic data receiving module is used for receiving the coded video stream transmitted by the road camera; and the traffic data decoding module is used for determining the video data shot by the road camera and the direction information of the video data according to the coded video stream, wherein the road camera is provided with a direction sensor for sensing the direction information, and the direction information is used for determining the movement information of the target object in the traffic video data shot by the road camera.

In order to solve the above problem, the embodiment of the present application discloses a data transmission device, the camera is provided with direction sensor, the device includes: the direction information acquisition module is used for acquiring the direction information of the camera according to the direction sensor; the coding processing module is used for determining a corresponding coding video stream according to the video data shot by the camera and adding the direction information in the coding video stream; and the data transmission module is used for transmitting the coded video stream added with the direction information so as to determine the shooting angle of the video shot by the camera.

In order to solve the above problem, an embodiment of the present application discloses a data transmission device, where the device includes: the data receiving module is used for receiving the coded video stream transmitted by the camera; and the data decoding module is used for obtaining the video data shot by the camera and the direction information of the video data according to the coded video stream, wherein the camera is provided with a direction sensor to sense the direction information.

In order to solve the above problem, an embodiment of the present application discloses an electronic device, including: a processor; and a memory having executable code stored thereon, which when executed, causes the processor to perform the method as described in one or more of the above embodiments.

To address the above issues, embodiments of the present application disclose one or more machine-readable media having executable code stored thereon that, when executed, cause a processor to perform a method as described in one or more of the above embodiments.

Compared with the prior art, the embodiment of the application has the following advantages:

according to the embodiment of the application, the direction sensor can be arranged on the road camera, the rotation of the road camera is sensed through the direction sensor, and the direction information of the road camera is transmitted to the road camera through the direction sensor. The road camera determines a coded video stream according to the traffic video data, adds the direction information into the coded video stream, and then can transmit the coded video stream added with the direction information, so that the moving track of the target object in the video data shot by the road camera can be more accurately determined according to the coded video stream added with the direction information.

Drawings

Fig. 1 is a schematic structural diagram of a data transmission system according to an embodiment of the present application;

FIG. 2 is an image of video data according to one embodiment of the present application;

FIG. 3 is a flow chart of a data transmission method according to an embodiment of the present application;

fig. 4 is a schematic flow chart of a data transmission method according to another embodiment of the present application;

FIG. 5 is a schematic flow chart diagram illustrating a data transmission method according to yet another embodiment of the present application;

FIG. 6 is a flow chart illustrating a data transmission method according to yet another embodiment of the present application;

FIG. 7 is a flow chart illustrating a data transmission method according to yet another embodiment of the present application;

FIG. 8 is a schematic flow chart diagram of a data transmission method according to yet another embodiment of the present application;

FIG. 9 is a schematic flow chart diagram illustrating a data transmission method according to yet another embodiment of the present application;

FIG. 10 is a schematic diagram of a data transmission apparatus according to an embodiment of the present application;

fig. 11 is a schematic structural diagram of a data transmission device according to another embodiment of the present application;

fig. 12 is a schematic structural diagram of a data transmission apparatus according to still another embodiment of the present application;

fig. 13 is a schematic structural diagram of a data transmission apparatus according to still another embodiment of the present application;

FIG. 14 is a schematic diagram of an exemplary device according to an embodiment of the present application.

Detailed Description

In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.

The application provides a data transmission system, as shown in fig. 1, the data transmission system comprises an image acquisition device, a streaming media server and an application processing device, wherein the image acquisition device comprises a holder and a camera.

The image acquisition equipment can be applied to the fields of security systems, road monitoring systems, community monitoring systems, intelligent building systems, intelligent robots, aviation, aerospace, navigation and vehicle navigation. The video data shot by the camera can be road monitoring video, security monitoring video, community monitoring video, building monitoring video, video shot by the intelligent robot and driving video. The road monitoring system can include a high-speed traffic monitoring system and can also include common traffic scenes, such as motor vehicle monitoring scenes, non-motor vehicle monitoring scenes, pedestrian monitoring scenes, logistics vehicle monitoring scenes and other scenes in urban roads. For example, it is possible to monitor whether motor vehicles in urban roads are driving in the wrong direction, whether pedestrians are walking to the right, and whether pedestrians run red lights.

The tripod head is a supporting device for mounting and fixing the camera, and comprises a fixed tripod head and an electric tripod head, wherein the horizontal and pitching angles of the equipment can be adjusted to achieve the required working posture after the camera is mounted on the fixed tripod head, and then the adjustment mechanism can be locked to finish mounting; the electric holder can be understood as a motor device capable of adjusting the shooting angle of the camera, and the electric holder can adjust the shooting angle of the camera according to the instruction of the application processing equipment, so that the image acquisition equipment can scan and shoot in a larger range.

The streaming media server refers to a server for streaming media transmission, storage and management, and may be a server or a cluster formed by a plurality of servers, so as to be able to acquire data streams of acquired images, videos and the like from an image acquisition device such as a camera and transmit corresponding data streams according to the requirements of an application processing device.

The application processing device can perform required processing based on the streaming media data, such as playing video data such as surveillance video, performing processing based on technologies such as Artificial Intelligence (AI) calculation, computer vision, and the like, such as target recognition. The application processing device can be a server, and can also be an electronic device such as a mobile phone, a tablet computer, a computer and the like.

The image acquisition equipment is located at an acquisition end, the streaming media server is located at a server end, the application processing equipment can be located at an application end, the application processing end and the streaming media can be arranged at a service side, or located at one side of the image acquisition equipment, or arranged at a client side according to requirements, and the like, and the image acquisition equipment is specifically arranged according to the requirements.

Although the angle of the camera can be adjusted by the pan-tilt, the adjustment of the angle of the camera can also change the content in the shot video. In order to accurately analyze and display the pictures shot by the camera, the direction sensor is arranged for the camera, so that the direction information such as the rotation direction of the camera can be sensed through the direction sensor, the direction information and the video data shot by the camera are encoded into the encoded video stream, and the encoded video stream is transmitted to the streaming media server. Then, in the application processing of the coded video stream, the video data and the corresponding shooting direction information can be determined, so that the video data can be more accurately displayed, analyzed and the like based on the direction information. The present embodiment packs and transmits the video data and the corresponding direction information, so as to obtain a more accurate analysis result.

In the process of installing the image acquisition equipment, the camera is installed on the cloud platform, and the cloud platform and the camera can be connected through a first serial port. When the image acquisition equipment is collecting data, the angle of its camera is adjustable, can send the direction adjustment instruction and transmit for the camera, and the camera transmits the direction adjustment instruction for the cloud platform through first serial ports, and wherein the direction adjustment instruction can be sent by application processing equipment, like supervisory control equipment etc.. Specifically, the camera receives a direction adjustment instruction for the camera; the direction adjusting instruction is transmitted to the cloud platform through the first serial port, and the cloud platform responds to the direction adjusting instruction to adjust the shooting angle of the camera. The camera is connected with the cradle head through the first serial port, the direction adjusting instruction of the camera can be transmitted to the cradle head, and therefore the shooting angle of the camera, such as the horizontal angle and the pitch angle, can be adjusted by the cradle head, and the monitoring range of the camera is adjusted. The first serial port can be understood as a serial port, which can also be called a serial interface, a serial communication interface or a serial communication interface, and the serial port is an expansion interface adopting a serial communication mode.

The embodiment of the application sets a direction sensor in the camera, so that in step 102, the direction information of the camera is acquired according to the direction sensor.

The orientation sensor, which may also be referred to as an electronic compass, may be integrated on the main board of the image capturing device. The electronic compass can be divided into a plane electronic compass and a three-dimensional electronic compass according to the inclination angle compensation mode, and can also be divided into a magnetoresistive effect sensor, a hall effect sensor, a fluxgate sensor and the like according to the sensor type. In one example, the electronic compass can determine the shooting direction of the camera by measuring the earth's magnetic field. The electronic compass has the advantages of shake resistance, vibration resistance, high course precision, electronic compensation for an interference magnetic field, data link integration in a control loop and the like, and is widely applied to the fields of aviation, aerospace, robots, navigation, autonomous navigation of vehicles and the like.

The direction information can be understood as direction angle information of the shooting direction of the camera, such as data of direction angles and the like. The direction information may be acquired periodically or after the camera angle is adjusted. In some alternative embodiments, step 102 comprises: acquiring direction information of the camera regularly according to the direction sensor; or, under the condition that the camera rotates, acquiring direction information of the camera after the rotation according to the direction sensor. In one example, the interval duration may be preset in the image capturing device, and the image capturing device may acquire the direction information from the direction sensor at intervals of the interval duration. In some other examples, the image capture device transmits the direction adjustment command to the cradle head after receiving the direction adjustment command, and the cradle head adjusts the angle of the camera in response to the direction adjustment command, and then the direction sensor can sense the adjustment of the angle of the camera, so as to obtain the corresponding direction information and transmit the direction information back to the image capture device, such as the camera. By acquiring the direction information at fixed time or after the camera finishes rotating, more accurate direction information can be obtained.

After the shooting angle of the camera is adjusted by the holder, the direction sensor can sense and acquire the direction information of the camera. In still other embodiments, step 102 includes: sensing the adjustment of the cloud platform to the camera according to a direction sensor to obtain the direction information; and receiving the direction information transmitted by the direction sensor through the second serial port. After the shooting angle of the camera is adjusted by the holder, the direction angle of the direction sensor is changed, and the direction sensor can sense corresponding direction information at the moment, so that the direction information transmitted to the camera is regularly or sensed through the second serial port under the condition that the direction information is changed. The second serial port is also a serial port.

In this embodiment of the application, the video data collected by the lenses of some cameras may be high-definition video data, for example, the resolution may be higher than 1280 × 720. Therefore, before transmitting the video data shot by the camera, the camera needs to encode and compress the video data to reduce the bandwidth occupied by the transmission process, and certainly, the data collected by the non-high-definition camera can also be encoded and compressed, and the encoding processing can be unrelated to the resolution of the camera and is determined by combining with the specific application requirements. In step 104, according to the video data shot by the camera, a corresponding encoded video stream is determined, and the direction information is added to the encoded video stream. The image acquisition equipment can compress and encapsulate video data to obtain an encoded video stream, add the direction information to the encoded video stream, and then pack the encoded video stream added with the direction information to obtain the encoded video stream added with the direction information.

In some alternative embodiments, step 104 may include: compressing the video data shot by the camera to obtain corresponding compressed video data; packaging the compressed video data to obtain a corresponding coded video stream; acquiring direction information corresponding to the video data, and adding the direction information into the coded video stream; and packaging the coded video stream added with the direction information to obtain the coded video stream corresponding to the direction information.

Encoding a video stream may include: image data stream, image parameter information, additional information, and the like. The image data stream may be understood as a multimedia data stream composed of a plurality of continuous frames of image data, and the image data stream may be obtained by compressing and encapsulating video images in the video data. The image parameter information may record various parameters of the image data in the image data stream, such as various parameters of size, resolution, data amount, time stamp, and the like. The step of adding direction information to the encoded video stream may comprise: and compressing and packaging the video image frame to obtain a coded video stream. And then adding the direction information into the additional information of the coded video stream to complete the addition of the direction information. An exemplary compression algorithm may be shown in table 1, among others.

TABLE 1

The h.264 standard is a highly compressed digital Video codec standard proposed by Joint Video Team (Joint Video Team, JVT) jointly composed of a Telecommunication Union International Telecommunication Standardization Sector (Telecommunication Standardization Sector of the International Telecommunication Standardization Union, ITU-TVCEG) and a Moving Picture Experts Group (MPEG). The H.264 standard may also be referred to as H.264/AVC (advanced Video coding), or AVC/H.264, or H.264/MPEG-4AVC, or MPEG-4/H.264AVC.

In terms of content, the H264 standard mainly includes Access Unit identifiers (Access Unit identifiers), additional enhancement information (SEI), primary Coded Picture (primary Coded Picture), Redundant Coded Picture (Redundant Coded Picture), Instantaneous Decoding Refresh (IDR), Hypothetical Reference Decoder (HRD), Hypothetical Stream Scheduler (HSS), and so on. From the system architecture level, h.264 can be divided into two levels at the system framework level: video Coding Layer-VCL and Network Abstraction Layer-NAL. The VCL is responsible for representing the content of the valid video data and the NAL is responsible for formatting the data and providing header information to ensure that the data is suitable for transmission on various channels and storage media.

The h.265 standard is a new video coding standard established by ITU-TVCEG following h.264. The H.265 standard may also be referred to as the H.265-HEVC (high Efficiency Video coding), or the HEVC/H.265 standard. The h.265 standard surrounds the existing video coding standard h.264, retaining some of the original techniques, while some related techniques are improved.

The encoding architecture of h.265 is substantially similar to that of h.264, and the h.265 standard includes: in the h.265 coding scheme, the whole is divided into three basic units, namely, Coding Unit (CU), Prediction Unit (PU), and Transform Unit (TU). The h.265 standard provides more different tools to reduce the code rate than the h.264 standard, and the size of each Macroblock (MB) in h.264 is 16 × 16 pixels, which is fixed, in terms of the coding unit, while the coding unit of h.265 can be selected from the smallest 8 × 8 to the largest 64 × 64.

The direction information of the embodiment of the present application can be added to the additional information of the encoded video stream, for example, the additional information can be the additional enhancement information in the h.264 standard and the h.265 standard. The encoded video stream may be identified to determine whether the direction information already exists in the encoded video stream, and if not, the direction information is added to the encoded video stream. Taking the h.264 standard as an example, the encoded video stream may be identified, whether additional enhancement information already exists in the NAL of the encoded video stream is determined, and if not, the additional enhancement information including the direction information is inserted into the NAL of the encoded video stream; if so, no insert operation is performed.

In an alternative example, the step of adding the direction information to the encoded video stream comprises: and filtering the direction information, and adding the filtered direction information into the additional information corresponding to the coded video stream. The direction sensor may collect a plurality of directional information and analyze the plurality of directional information for filtering, for example, deleting higher and lower directional information from the plurality of directional information to obtain more accurate directional information, and adding the more accurate directional information to the additional information in the encoded video stream. In another example, the collected multiple direction information may be averaged to obtain the direction information, and added to the additional information of the encoded video stream, thereby improving the accuracy of the direction information.

After obtaining the encoded video stream with the added direction information, the image capturing apparatus may transmit the encoded video stream with the added direction information in step 106, so as to determine a shooting angle at which the camera shoots a video. Specifically, the camera may send the encoded video stream with the added direction information to the streaming media server, and subsequently, the streaming media server may send the encoded video stream with the added direction information to the application processing device for various required processing according to the requirement.

The transmitted data stream includes video code stream data, a control command, and the like, where the transmission of the video code stream may be performed according to a preset code stream transmission protocol, and the code stream transmission protocol may include a protocol shown in table 2.

TABLE 2

Among them, RTP provides an end-to-end transmission service with real-time characteristics for data, and solves parameters such as TCP bandwidth, timestamp, framing, etc., such as interactive video and audio or analog data under multicast or unicast network services. The RTP standard defines two subprotocols: a data transmission protocol and a control protocol. The data transmission protocol is used for transmitting data in real time, and the protocol provides information including: timestamp, sequence number, and payload format. According to the time stamp, data can be synchronized, packet loss and rearrangement sequence monitoring can be performed according to the sequence number, and corresponding format decoding can be performed on the data according to the load format. And a control protocol for quality of service feedback and synchronization of the media streams. The control protocol occupies a small bandwidth.

In order to combine one or more audio streams, video streams or other basic data streams into a single or multiple data streams in the data transmission process, so as to adapt to storage and transmission, the data streams need to be packaged and encoded again, and various time stamps, system control and other information need to be inserted into the code streams and then sent to a channel coding and modulator. This allows two data streams to be formed: transport stream and program stream, respectively, for different applications.

The control command may be understood as a control command for controlling an encoding format, a transmission rate, and a transmission port in video transmission, and the control command transmission may be transmitted according to a signaling transmission protocol, which may include a protocol shown in table 3.

TABLE 3

Among them, the real-time streaming Protocol defines how one-to-many applications efficiently transmit multimedia data over an Internet Protocol (IP) network. SIP is a text-based application-layer control protocol for creating, modifying, and releasing sessions for one or more participants. SIP is an IP voice session control protocol originated from the Internet, has the characteristics of flexibility, easy realization, convenient expansion and the like, solves the networking problem of equipment, and supports the mixed condition of the equipment in an internal network and an external network.

The GB/T28181 standard specifies the interconnection structure and communication protocol structure of information transmission, exchange and control, the basic requirements and safety requirements of transmission, exchange and control, and the technical requirements of control, transmission flow, protocol interface and the like in the urban monitoring alarm networking system. The GB/T28181 standard is developed based on SIP, and the standard is suitable for scheme design, system detection and acceptance of a safety precaution monitoring alarm networking system and equipment development and production related to the safety precaution monitoring alarm networking system, and other information systems can be adopted by reference. The ONVIF aims to promote the application of network videos in the security market through a global open interface standard, the interface standard enables network video products produced by different manufacturers to have interoperability, the networking problem of equipment is solved, and the condition that the equipment is mixed in an internal network and an external network is supported. The ONVIF standard defines a common protocol for information exchange between network video devices, including device search, real-time video, audio, metadata, and control information.

The application processing device may be various devices that perform video processing, such as a playing device, a monitoring device, and the like, and for processing the encoded video stream, the encoded video stream may be decoded first to obtain video data and direction information, where a manner of decoding the encoded video stream corresponds to a manner of compressing the encoded video stream, such as compression by using the h.264 standard, and the application processing device decodes the encoded video stream by using the h.264 standard, such as obtaining the direction information corresponding to the video data from the additional information by using an SEI decoder. The decoded video data may be video data in an RGB color mode (RGB) format or video data in a YUV format. The player of the application processing device may play the video data. The intelligent monitoring equipment of the application processing equipment can analyze and judge the video data according to the video data and the direction information.

The application processing equipment analyzes the video data and can analyze and process the video data in different fields by adopting corresponding algorithms. As an example, the camera may be applied in the field of road monitoring, the video data may be a road monitoring video, the direction information may be a shooting direction of the road monitoring camera, and the road monitoring video may be analyzed in a reverse direction, for example, the video data is analyzed according to the direction information to determine movement information of a target object in the video data. The target object may be a target vehicle, and the movement information may be a movement trajectory of the target vehicle. Whether the moving track of the target vehicle is the same as the road direction or not can be determined, namely whether the target vehicle drives in the wrong direction or not can be determined. Specifically, as shown in fig. 2, a road direction in the video data is determined based on the direction information, the road direction in the video data includes a road direction 1 and a road direction 2, and the moving direction of the target object on the road in the road direction 1 is the same as the road direction 1, so that it is determined that the target vehicle is not traveling in the wrong direction.

In another example, the camera may be applied to cell monitoring, and the analysis of the video data may be used to count the number of people coming in and going out, wherein the target object may be a person, and the mobile information may be information of people coming in and going out. The number of people entering a certain cell and the number of people leaving the cell are counted, so that the number of people existing in the cell can be determined. In another example, the camera may be applied to buildings such as buildings, and for some buildings, there may be an area in the building where people are prohibited from entering, and whether people enter the area is determined according to video data captured by the camera and direction information of the camera. After the camera is manually rotated, under the condition that a person enters the area, the video data can be analyzed by utilizing an original data analysis algorithm so as to send out an alarm prompt.

In this embodiment, the camera is provided with a direction sensor, senses the rotation of the camera through the direction sensor, transmits the direction information of the camera to the camera, and encodes the video data into an encoded video stream and adds the direction information into the encoded video stream. And then, the coded video stream added with the direction information is transmitted, and analysis processing can be performed according to the coded video stream added with the direction information, so that the shooting angle of the video shot by the camera can be more accurately determined.

The following describes in detail the process flow of packing the video data and the direction information by the image capturing device and analyzing the packed data by the application processing device with reference to fig. 3. The process of packing the video data and the direction information by the image acquisition equipment comprises the following steps:

step 302, compressing the video data to obtain compressed video data. Specifically, the video data may be divided into a plurality of video segments, and then the video segments are compressed to obtain compressed video data.

Step 304, the compressed video data is encapsulated to obtain an encoded video stream. The compressed video data is encapsulated into an encoded video stream.

Step 306, obtaining direction information from the direction sensor, and adding the direction information to the additional information of the encoded video stream.

And 308, packaging the coded video stream to obtain packaged data.

And step 310, transmitting the packed data to the application processing equipment according to the transmission protocol.

In this embodiment, the video data and the direction information are encapsulated into a coded video stream, and the coded video stream is transmitted to the application processing device, and the application processing device can obtain the video data and the direction information corresponding to the video information according to the coded video stream, so as to obtain a more accurate analysis result.

The analyzing and processing flow of the packed data by the application processing device can comprise the following steps:

step 312, extracting direction information from the additional information in the packed data. The packed data includes an encoded video stream, and the direction information is extracted from the additional information of the encoded video stream.

And step 314, decoding the packed data to obtain video data shot by the camera. And acquiring video data according to the image information and the image parameter information in the coded video stream.

And step 316, analyzing according to the video data and the corresponding direction information to obtain an analysis result. Various algorithms can be used to analyze the video data to obtain a plurality of analysis results. In this embodiment, the video data and the direction information are encapsulated into a coded video stream and transmitted to the application processing device, and the video data and the direction information obtained by the application processing device correspond to each other, so that a more accurate analysis result can be obtained.

On the basis of the foregoing embodiment, the present application further provides a data transmission method, where, on an application processing device side, the method includes: step 402, receiving an encoded video stream transmitted by a camera; and 404, obtaining video data shot by the camera and direction information of the video data according to the coded video stream, wherein the camera is provided with a direction sensor to sense the direction information.

The encoded video stream may include image information, image parameter information, additional information, and the like, and during the processing of the camera, the video data may be compressed and encapsulated into the image information and the image parameter information for transmission, and the direction information may be added to the additional information for transmission. Correspondingly, in an alternative example, the step of decoding the encoded video stream by the application processing device comprises: acquiring direction information from the additional information of the encoded video stream; and decapsulating the encoded video stream to obtain corresponding video data.

On one hand, the video data can be output to the player to be played, and on the other hand, the video data and the direction information can be output to the intelligent monitoring equipment to be subjected to data analysis, so that a corresponding analysis result is obtained. Specifically, in an optional example, the data analysis method further includes: and analyzing the video data according to the direction information, and determining the movement information of the target object in the video data. In one example, the camera may be a road surveillance camera, the video data may be a road surveillance video, and the target object may be a vehicle. And analyzing the moving track of the target object according to the video information, determining whether the moving track is the same as the road direction or not according to the direction information, and if the moving track is different from the road direction, obtaining the moving information of the target object, which is retrograde.

On the basis of the above embodiment, this embodiment further provides a data transmission method, where the camera is provided with a direction sensor, the camera is connected with the pan-tilt through a first serial port, and the direction sensor is connected with the camera through a second serial port, including the following steps:

step 502, receiving a direction adjustment instruction for the camera. The application processing apparatus sends a direction adjustment instruction to the camera.

And step 504, the camera outputs the direction adjusting instruction to the holder through the first serial port so as to adjust the shooting angle of the camera through the holder.

Step 506, sensing the adjustment of the camera by the cloud platform according to the direction sensor to obtain direction information.

And step 508, the camera receives the direction information transmitted by the direction sensor through the second serial port.

And step 510, compressing the video data shot by the camera to obtain corresponding compressed video data.

And step 512, packaging the compressed video data to obtain a corresponding coded video stream.

And 514, acquiring the direction information corresponding to the video data, filtering the direction information, and adding the filtered direction information into the additional information corresponding to the coded video stream.

And 516, packaging the coded video stream added with the direction information to obtain a coded video stream corresponding to the direction information.

And step 518, transmitting the coded video stream added with the direction information so as to determine the shooting angle of the camera for shooting the video.

In the embodiment of the application, the application processing equipment sends the direction adjustment instruction to the camera head, and after the camera head receives the direction adjustment instruction, the camera head transmits the direction adjustment instruction to the cloud platform through the first serial port, and the cloud platform responds to the shooting angle of the direction adjustment instruction adjustment camera head. The direction sensor senses the adjustment of the tripod head to the camera, determines the direction information, outputs the direction information to the camera through the second serial port, and the camera compresses and encapsulates the video data to obtain the coded video stream. The camera then adds the direction information to the additional information of the encoded video stream. The camera transmits the encoded video stream added with the direction information to the application processing equipment, and the application processing equipment can more accurately determine the shooting angle of the video shot by the camera according to the encoded video stream added with the direction information.

On the basis of the above embodiment, the present application further provides a traffic data transmission method, which may be executed by a road camera, and the road camera may be applied in a traffic monitoring scene, such as a high-speed traffic monitoring system and a common traffic scene. The road camera is provided with a direction sensor, and the method comprises the following steps:

and step 602, acquiring direction information of the road camera according to the direction sensor.

Step 604, determining a corresponding encoded video stream according to the traffic video data shot by the road camera, and adding the direction information to the encoded video stream.

And 606, transmitting the coded video stream added with the direction information so as to determine the movement information of the target object in the traffic video data shot by the road camera according to the direction information.

In this embodiment, the road camera is provided with a direction sensor, senses the rotation of the road camera through the direction sensor, and transmits the direction information of the road camera to the traffic camera, and the road camera encodes traffic video data into an encoded video stream and adds the direction information to the encoded video stream. And then transmitting the coded video stream added with the direction information, and determining the movement information of a target object in the traffic video data shot by the road camera according to the direction information, wherein the target object can be a motor vehicle, a non-motor vehicle, a pedestrian and the like on an expressway and a common traffic road. For example, the traffic video data can be analyzed according to the direction information, and whether a vehicle runs backwards or not and whether a pedestrian walks according to the traffic rules or not can be analyzed.

On the basis of the above embodiment, the present application further provides a traffic data transmission method, which may be performed by a road camera, where the road camera is provided with a direction sensor, the road camera is connected to a pan-tilt through a first serial port, and the direction sensor is connected to the road camera through a second serial port, and the method includes the following steps:

step 702, receiving a direction adjustment instruction for the road camera.

And 704, outputting the direction adjusting instruction to the holder through the first serial port so as to adjust the shooting angle of the road camera through the holder.

Step 706, sensing the adjustment of the road camera by the cloud platform according to a direction sensor to obtain the direction information.

Step 708, receiving the direction information transmitted by the direction sensor through the second serial port.

And 710, compressing the traffic video data shot by the road camera to obtain corresponding compressed video data.

Step 712, the compressed video data is encapsulated to obtain a corresponding encoded video stream.

And 714, acquiring direction information corresponding to the traffic video data, and adding the direction information to the coded video stream.

And 716, packing the encoded video stream added with the direction information to obtain an encoded video stream corresponding to the direction information.

Step 718, transmitting the encoded video stream added with the direction information so as to determine the movement information of the target object in the traffic video data shot by the road camera according to the direction information.

In the embodiment of the application, the application processing equipment sends the direction adjustment instruction to the road camera, and after the road camera receives the direction adjustment instruction, the direction adjustment instruction is transmitted to the cloud platform through the first serial ports, and the cloud platform responds to the direction adjustment instruction to adjust the shooting angle of the road camera. The direction sensor senses the adjustment of the tripod head to the road camera, determines direction information, outputs the direction information to the road camera through the second serial port, and the road camera compresses and encapsulates traffic video data to obtain a coded video stream. The road camera then adds the direction information to the additional information of the encoded video stream. The road camera transmits the encoded video stream added with the direction information to the application processing equipment, and the application processing equipment can more accurately determine the shooting angle of the road camera for shooting the video according to the encoded video stream added with the direction information so as to analyze the traffic video data.

Optionally, as an embodiment, the step of acquiring the direction information of the road camera according to the direction sensor includes: acquiring direction information of the road camera at regular time according to the direction sensor; or under the condition that the road camera rotates, acquiring direction information of the road camera after the road camera finishes rotating according to the direction sensor.

On the basis of the foregoing embodiments, the present application further provides a traffic data transmission method, which may be executed by an application terminal, and specifically, as shown in fig. 8, the method includes:

and step 802, receiving an encoded video stream transmitted by the road camera.

Step 804, determining traffic video data shot by the road camera and direction information of the traffic video data according to the encoded video stream, wherein the road camera is provided with a direction sensor to sense the direction information, and the direction information is used for determining the movement information of the target object in the traffic video data shot by the road camera.

In the embodiment of the application, the road camera is provided with the direction sensor, senses the direction information of the road camera through the direction sensor, and adds the direction information into the coded video stream. After receiving the encoded video stream, the application end can determine the traffic video data and the corresponding direction information according to the encoded video stream. The traffic video data can be analyzed by combining the direction information, and a more accurate analysis result can be obtained. For example, the traffic video data can be analyzed according to the direction information, and whether a vehicle runs backwards or not and whether a pedestrian walks according to the traffic rules or not can be analyzed.

On the basis of the foregoing embodiments, the present application further provides a traffic data transmission method, which may be executed by an application, and specifically, as shown in fig. 9, the method includes:

and step 902, receiving an encoded video stream transmitted by a road camera.

Step 904, obtaining direction information from the additional information of the encoded video stream.

And step 906, decapsulating the coded video stream to obtain corresponding traffic video data.

And 908, analyzing the traffic video data according to the direction information, and determining the movement information of the target object in the traffic video data.

In the embodiment of the application, the road camera is provided with the direction sensor, senses the direction information of the road camera through the direction sensor, and adds the direction information into the coded video stream. After receiving the encoded video stream, the application end can determine the traffic video data and the corresponding direction information according to the encoded video stream. And the traffic video data is analyzed by combining the direction information, so that a more accurate analysis result can be obtained.

It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the embodiments. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no particular act is required of the embodiments of the application.

On the basis of the foregoing embodiment, this embodiment further provides a data transmission device, where the camera is provided with a direction sensor, as shown in fig. 10, the data transmission device may specifically include the following modules:

a direction information obtaining module 1002, configured to obtain direction information of the camera according to the direction sensor;

the encoding processing module 1004 is configured to determine a corresponding encoded video stream according to the video data captured by the camera, and add the direction information to the encoded video stream;

and the data transmission module 1006 is used for transmitting the coded video stream added with the direction information so as to determine the shooting angle of the video shot by the camera.

To sum up, the camera sets up direction sensor, through the rotation of direction sensor perception camera to transmit the direction information of camera for the camera, the camera is the encoding video stream with video data code, and add direction information in the encoding video stream. And then transmitting the encoded video stream added with the direction information to the application processing equipment, wherein the application processing equipment can more accurately determine the shooting angle of the video shot by the camera according to the encoded video stream added with the direction information.

On the basis of the above embodiment, this embodiment also provides a data transmission device, and the camera is provided with direction sensor, the camera passes through first serial ports with the cloud platform and is connected, direction sensor with the camera passes through second serial ports and is connected, the device specifically can include following module:

the adjusting instruction receiving module is used for receiving an adjusting instruction of the direction of the camera;

and the adjustment instruction output module is used for outputting the direction adjustment instruction to the cloud deck through the first serial port so as to adjust the shooting angle of the camera through the cloud deck.

The direction information determining module is used for sensing the adjustment of the cloud platform to the camera according to a direction sensor to obtain the direction information;

and the direction information transmission module is used for receiving the direction information transmitted by the direction sensor through the second serial port.

The video data compression module is used for compressing the video data shot by the camera to obtain corresponding compressed video data;

the video data encapsulation module is used for encapsulating the compressed video data to obtain a corresponding coded video stream;

the direction information adding module is used for acquiring direction information corresponding to the video data, filtering the direction information and adding the filtered direction information into additional information corresponding to the coded video stream;

and the data packing and transmitting module is used for packing the coded video stream added with the direction information to obtain the coded video stream corresponding to the direction information.

And the packed data transmission module is used for transmitting the coded video stream added with the direction information so as to determine the shooting angle of the video shot by the camera.

In the embodiment of the application, the application processing equipment sends the direction adjustment instruction to the camera head, and after the camera head receives the direction adjustment instruction, the camera head transmits the direction adjustment instruction to the cloud platform through the first serial port, and the cloud platform responds to the shooting angle of the direction adjustment instruction adjustment camera head. The direction sensor senses the adjustment of the tripod head to the camera, determines the direction information, outputs the direction information to the camera through the second serial port, and the camera compresses and encapsulates the video data to obtain the coded video stream. The camera then adds the direction information to the additional information of the encoded video stream. The camera transmits the encoded video stream added with the direction information to the application processing equipment, and the application processing equipment can more accurately determine the shooting angle of the video shot by the camera according to the encoded video stream added with the direction information.

Optionally, as an embodiment, the direction information obtaining module is specifically configured to:

acquiring direction information of the camera regularly according to the direction sensor; or

And under the condition that the camera rotates, acquiring direction information of the camera after the rotation according to the direction sensor.

On the basis of the foregoing embodiments, this embodiment further provides a data transmission apparatus, as shown in fig. 11, the apparatus includes:

a data receiving module 1102, configured to receive an encoded video stream transmitted by a camera;

and a data decoding module 1104, configured to obtain, according to the encoded video stream, video data captured by the camera and direction information of the video data, where the camera is provided with a direction sensor to sense the direction information.

Optionally, as an embodiment, the data decoding module includes:

the direction information decoding submodule is used for acquiring direction information from the additional information of the coded video stream;

and the video data decoding submodule is used for decapsulating the coded video stream to obtain corresponding video data.

Optionally, as an embodiment, the apparatus further includes:

and the data analysis module is used for analyzing the video data according to the direction information and determining the movement information of the target object in the video data.

On the basis of the above embodiments, the present embodiment further provides a traffic data transmission device, in which the road camera is provided with a direction sensor, as shown in fig. 12, the device includes:

a traffic direction information obtaining module 1202, configured to obtain direction information of the road camera according to the direction sensor;

a traffic data encoding processing module 1204, configured to determine a corresponding encoded video stream according to traffic video data captured by the road camera, and add the direction information to the encoded video stream;

and the traffic data transmission module 1206 is used for transmitting the coded video stream added with the direction information so as to determine the movement information of the target object in the traffic video data shot by the road camera according to the direction information.

In this embodiment, the road camera is provided with a direction sensor, senses the rotation of the road camera through the direction sensor, and transmits the direction information of the road camera to the traffic camera, and the road camera encodes traffic video data into an encoded video stream and adds the direction information to the encoded video stream. And then transmitting the coded video stream added with the direction information, and determining the movement information of a target object in the traffic video data shot by the road camera according to the direction information, wherein the target object can be a motor vehicle, a non-motor vehicle, a pedestrian and the like on an expressway and a common traffic road. For example, the traffic video data can be analyzed according to the direction information, and whether a vehicle runs backwards or not and whether a pedestrian walks according to the traffic rules or not can be analyzed.

On the basis of the above embodiment, this embodiment still provides a traffic data transmission device, and the road camera is provided with direction sensor, the road camera passes through first serial ports with the cloud platform and is connected, direction sensor with the road camera passes through second serial ports and connects, the device includes:

and the traffic adjustment instruction receiving module is used for receiving a direction adjustment instruction of the road camera.

And the traffic adjustment instruction output module is used for outputting the direction adjustment instruction to the cloud deck through the first serial port so as to adjust the shooting angle of the road camera through the cloud deck.

And the traffic direction information determining module is used for sensing the adjustment of the cloud platform on the road camera according to a direction sensor to obtain the direction information.

And the traffic direction information transmission module is used for receiving the direction information transmitted by the direction sensor through the second serial port.

And the traffic video data compression module is used for compressing the traffic video data shot by the road camera to obtain corresponding compressed video data.

And the traffic video data packaging module is used for packaging the compressed video data to obtain a corresponding coded video stream.

And the traffic direction information adding module is used for acquiring the direction information corresponding to the traffic video data and adding the direction information into the coded video stream.

And the traffic data packing and transmitting module is used for packing the coded video stream added with the direction information to obtain the coded video stream corresponding to the direction information.

And the traffic packed data transmission module is used for transmitting the coded video stream added with the direction information so as to determine the movement information of the target object in the traffic video data shot by the road camera according to the direction information.

In the embodiment of the application, the application processing equipment sends the direction adjustment instruction to the road camera, and after the road camera receives the direction adjustment instruction, the direction adjustment instruction is transmitted to the cloud platform through the first serial ports, and the cloud platform responds to the direction adjustment instruction to adjust the shooting angle of the road camera. The direction sensor senses the adjustment of the tripod head to the road camera, determines direction information, outputs the direction information to the road camera through the second serial port, and the road camera compresses and encapsulates traffic video data to obtain a coded video stream. The road camera then adds the direction information to the additional information of the encoded video stream. The road camera transmits the encoded video stream added with the direction information to the application processing equipment, and the application processing equipment can more accurately determine the shooting angle of the road camera for shooting the video according to the encoded video stream added with the direction information so as to analyze the traffic video data.

Optionally, as an embodiment, the traffic direction information obtaining module is specifically configured to: acquiring direction information of the road camera at regular time according to the direction sensor; or under the condition that the road camera rotates, acquiring direction information of the road camera after the road camera finishes rotating according to the direction sensor.

On the basis of the above embodiment, the present embodiment further provides a traffic data transmission device, as shown in fig. 13, including:

a traffic data receiving module 1302, configured to receive an encoded video stream transmitted by a road camera;

and a traffic data decoding module 1304, configured to determine traffic video data captured by the road camera and direction information of the traffic video data according to the encoded video stream, where the road camera is provided with a direction sensor to sense the direction information, and the direction information is used to determine movement information of a target object in the traffic video data captured by the road camera.

In the embodiment of the application, the road camera is provided with the direction sensor, senses the direction information of the road camera through the direction sensor, and adds the direction information into the coded video stream. After receiving the encoded video stream, the application end can determine the traffic video data and the corresponding direction information according to the encoded video stream. The traffic video data can be analyzed by combining the direction information, and a more accurate analysis result can be obtained. For example, the traffic video data can be analyzed according to the direction information, and whether a vehicle runs backwards or not and whether a pedestrian walks according to the traffic rules or not can be analyzed.

On the basis of the above embodiment, the present embodiment further provides a traffic data transmission device, including:

and the traffic packed data receiving module is used for receiving the coded video stream transmitted by the road camera.

And the traffic direction information decoding module is used for acquiring direction information from the additional information of the coded video stream.

And the traffic video data decoding module is used for decapsulating the coded video stream to obtain corresponding traffic video data.

And the traffic data analysis module is used for analyzing the traffic video data according to the direction information and determining the movement information of the target object in the traffic video data.

In the embodiment of the application, the road camera is provided with the direction sensor, senses the direction information of the road camera through the direction sensor, and adds the direction information into the coded video stream. After receiving the encoded video stream, the application end can determine the traffic video data and the corresponding direction information according to the encoded video stream. And the traffic video data is analyzed by combining the direction information, so that a more accurate analysis result can be obtained.

The present application further provides a non-transitory, readable storage medium, where one or more modules (programs) are stored, and when the one or more modules are applied to a device, the device may execute instructions (instructions) of method steps in this application.

Embodiments of the present application provide one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause an electronic device to perform the methods as described in one or more of the above embodiments. In the embodiment of the application, the electronic device includes a server, a terminal device and other devices.

Embodiments of the present disclosure may be implemented as an apparatus, which may comprise a server (cluster), a terminal, etc., electronic device, using any suitable hardware, firmware, software, or any combination thereof, in a desired configuration. Fig. 14 schematically illustrates an example apparatus 1400 that can be used to implement various embodiments described herein.

For one embodiment, fig. 14 illustrates an exemplary apparatus 1400 having one or more processors 1402, a control module (chipset) 1404 coupled to at least one of the processor(s) 1402, a memory 1406 coupled to the control module 1404, a non-volatile memory (NVM)/storage 1408 coupled to the control module 1404, one or more input/output devices 1410 coupled to the control module 1404, and a network interface 1412 coupled to the control module 1404.

Processor 1402 may include one or more single-core or multi-core processors, and processor 1402 may include any combination of general-purpose or special-purpose processors (e.g., graphics processors, application processors, baseband processors, etc.). In some embodiments, the apparatus 1400 can be used as a server, a terminal, or other devices described in this embodiment.

In some embodiments, apparatus 1400 may include one or more computer-readable media (e.g., memory 1406 or NVM/storage 1408) having instructions 1414 and one or more processors 1402 in combination with the one or more computer-readable media and configured to execute instructions 1414 to implement modules to perform the actions described in this disclosure.

For one embodiment, the control module 1404 may include any suitable interface controller to provide any suitable interface to at least one of the processor(s) 1402 and/or any suitable device or component in communication with the control module 1404.

The control module 1404 may include a memory controller module to provide an interface to the memory 1406. The memory controller module may be a hardware module, a software module, and/or a firmware module.

The memory 1406 may be used, for example, to load and store data and/or instructions 1414 for the apparatus 1400. For one embodiment, memory 1406 may comprise any suitable volatile memory, such as suitable DRAM. In some embodiments, the memory 1406 may comprise double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).

For one embodiment, control module 1404 may include one or more input/output controllers to provide an interface to NVM/storage 1408 and input/output device(s) 1410.

For example, NVM/storage 1408 may be used to store data and/or instructions 1414. NVM/storage 1408 may include any suitable non-volatile memory (e.g., flash memory) and/or may include any suitable non-volatile storage device(s) (e.g., one or more Hard Disk Drives (HDDs), one or more Compact Disk (CD) drives, and/or one or more Digital Versatile Disk (DVD) drives).

NVM/storage 1408 may include storage resources on a data transfer as part of the device on which apparatus 1400 is installed, or it may be accessible by the device and may not necessarily be part of the device. For example, NVM/storage 1408 may be accessible over a network via input/output device(s) 1410.

Input/output device(s) 1410 may provide an interface for apparatus 1400 to communicate with any other suitable device, input/output devices 1410 may include communication components, audio components, sensor components, and so forth. Network interface 1412 may provide an interface for device 1400 to communicate over one or more networks, and device 1400 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and/or protocols, such as access to a communication standard-based wireless network, e.g., WiFi, 2G, 3G, 4G, 5G, etc., or a combination thereof.

For one embodiment, at least one of the processor(s) 1402 may be packaged together with logic for one or more controller(s) (e.g., memory controller module) of control module 1404. For one embodiment, at least one of the processor(s) 1402 may be packaged together with logic for one or more controller(s) of control module 1404 to form a System In Package (SiP). For one embodiment, at least one of the processor(s) 1402 may be integrated on the same die with logic for one or more controller(s) of the control module 1404. For one embodiment, at least one of the processor(s) 1402 may be integrated on the same die with logic for one or more controller(s) of control module 1404 to form a system on chip (SoC).

In various embodiments, the apparatus 1400 may be, but is not limited to being: a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet, a netbook, etc.), among other terminal devices. In various embodiments, the apparatus 1400 may have more or fewer components and/or different architectures. For example, in some embodiments, device 1400 includes one or more cameras, a keyboard, a Liquid Crystal Display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an Application Specific Integrated Circuit (ASIC), and speakers.

The detection device can adopt a main control chip as a processor or a control module, sensor data, position information and the like are stored in a memory or an NVM/storage device, a sensor group can be used as an input/output device, and a communication interface can comprise a network interface.

An embodiment of the present application further provides an electronic device, including: a processor; and a memory having executable code stored thereon that, when executed, causes the processor to perform a method as described in one or more of the embodiments of the application.

Embodiments of the present application also provide one or more machine-readable media having executable code stored thereon that, when executed, cause a processor to perform a method as described in one or more of the embodiments of the present application.

For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.

The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.

Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.

Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.

The traffic data transmission method, the traffic data transmission device, the electronic device, and the storage medium provided by the present application are described in detail above, and specific examples are applied herein to explain the principles and embodiments of the present application, and the descriptions of the above embodiments are only used to help understand the method and the core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

29页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种服务于低速无人物流车的特定场景库

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!