Data transmission method, camera, and electronic equipment

By determining the location of the image and target data in the image frame, and using the data transmission method of the effective image area and the blanking area, the same image frame transmission of the target data and the image is realized, and the problem of increasing equipment costs in the prior art is solved. Save wiring costs.

CN114040141BActive Publication Date: 2024-12-03HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111305886.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2017-10-20
Publication Date
2024-12-03
Estimated Expiration
2037-10-20

AI Technical Summary

Technical Problem

In the monitoring system, when transmitting images and coaxial data, if target data is required, the prior art requires additional wiring, which increases the cost of equipment.

Method used

By determining the position of the image to be sent in the effective image area and the position of the target data in the blanking area in the image frame, it is sent as data of the same image frame, and the image is sent by the data transmission method of the effective image area, and blanking is adopted The data transmission method of the area sends the target data.

Benefits of technology

The same image frame transmission of the target data and the image is achieved without additional wiring, saving equipment costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114040141B_ABST
    Figure CN114040141B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a data transmission method, a camera, and an electronic device. The method includes: obtaining an image to be sent, obtaining target data to be sent, determining a first position of the image to be sent in the effective image area of ​​the image frame, and determining a second position of the target data in the blanking area of ​​the image frame, using the image to be sent and the target data as data of the same image frame, using the data sending method of the effective image area to send the image to be sent according to the first position, and using the data sending method of the blanking area to send the target data according to the second position; wherein the target data is data different from the image to be sent and the coaxial data, and the coaxial data is notification information exchanged between the data receiving end and the data sending end. By applying the solution provided by the embodiment of the present application, it is possible to send the target data and the image to be sent to the electronic device in the same image frame without the need for additional wiring, thereby saving equipment costs.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The application number of the original application is 201710985836.5, the application date is October 20, 2017, and the name of the invention is: Data transmission method and camera, electronic device. Technical Field

[0002] The present application relates to the technical field of signal transmission, and in particular to a data transmission method, a camera, and an electronic device. Background Art

[0003] In a monitoring system, an image acquisition device (such as a camera) can send the captured image to an electronic device, which can receive and store the image sent by the image acquisition device and then display the monitoring video. While sending the image, the image acquisition device can also send coaxial data to the electronic device. Coaxial data is the notification information when the devices interact. The image frames sent between devices can be as follows: Figure 1 As shown, the image frame includes an effective image area and a blanking area. When sending the image frame, the image is usually used as data in the effective image area, and the coaxial data is used as data in the blanking area.

[0004] In the related art, when transmitting the above image frames, coaxial cables or twisted pairs are usually used between devices for transmission. If target data other than images and coaxial data needs to be transmitted, additional wiring will be used between the devices. However, this method increases the cost of the equipment. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a data transmission method, a camera, and an electronic device, which can achieve the transmission of target data without the need for additional wiring. The specific technical solution is as follows.

[0006] The present application provides a data transmission method, the method comprising:

[0007] Acquire an image to be sent and acquire target data to be sent; wherein the target data is data different from the image to be sent and the coaxial data, and the coaxial data is notification information exchanged between a data receiving end and a data sending end;

[0008] Determine a first position of the image to be sent in an effective image area of ​​an image frame, and determine a second position of the target data in a blanking area of ​​the image frame;

[0009] The image to be sent and the target data are taken as data of the same image frame, and the image to be sent is sent according to the first position using the data sending method of the effective image area, and the target data is sent according to the second position using the data sending method of the blanking area.

[0010] Optionally, before sending the image to be sent and the target data, the method further includes:

[0011] Acquire the coaxial data to be sent, and determine the third position of the coaxial data in the blanking area of ​​the image frame;

[0012] The coaxial data is used as data of the image frame where the image to be sent and the target data are located, and the coaxial data is sent according to the third position using a data sending method in a blanking area.

[0013] Optionally, the step of acquiring the coaxial data to be sent includes:

[0014] Obtain coaxial data to be transmitted including data representing the second position.

[0015] Optionally, the data representing the second position is located before the second position in the blanking area of ​​the image frame.

[0016] Optionally, the target data includes a header identifier indicating a starting position of the target data, and a tail identifier indicating an ending position of the target data.

[0017] Optionally, the step of obtaining the target data to be sent includes:

[0018] Acquiring target data to be sent representing environmental information of an environment in which an image acquisition device of the image to be sent is located; and / or,

[0019] Acquiring target data of audio information collected by an image acquisition device representing the image to be sent; and / or,

[0020] Target data representing image information of an image to be transmitted is acquired.

[0021] Optionally, when the target data is data representing environmental information, the second position is a position in a blanking area after the effective image area;

[0022] When the target data is data representing audio information, the second position is a position in a blanking area before the effective image area;

[0023] When the target data is data representing image information, the second position is a position in a blanking area preceding the effective image area.

[0024] An embodiment of the present application provides another data transmission method, the method comprising:

[0025] receiving an image frame;

[0026] Determine a first position of an image in an effective image area of ​​the image frame, and determine a second position of target data in a blanking area of ​​the image frame; wherein the target data is data different from the image and the coaxial data, and the coaxial data is notification information exchanged between a data receiving end and a data sending end;

[0027] The image is acquired from the image frame according to the first position by adopting the data acquisition method of the effective image area, and the target data is acquired from the image frame according to the second position by adopting the data acquisition method of the blanking area.

[0028] Optionally, after receiving the image frame, the method further includes:

[0029] determining a third position of the on-axis data in the blanking region of the image frame;

[0030] The on-axis data is acquired from the image frame according to the third position by adopting the data acquisition method of the blanking area.

[0031] Optionally, the coaxial data is acquired before determining the second position of the target data in the blanking area of ​​the image frame;

[0032] The step of determining a second position of the target data in the blanking area of ​​the image frame comprises:

[0033] Data representing a second position of target data in a blanking area of ​​the image frame is acquired from the on-axis data.

[0034] Optionally, the step of determining a second position of the target data in the blanking area of ​​the image frame includes:

[0035] A header marker indicating the starting position of target data and a tail marker indicating the ending position of target data are determined from the blanking area of ​​the image frame, and the position between and including the header marker and the tail marker is used as the second position of the target data in the blanking area of ​​the image frame.

[0036] The embodiment of the present application provides a camera, comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0037] The processor is used to obtain an image to be sent, obtain target data to be sent, determine a first position of the image to be sent in an effective image area of ​​an image frame, and determine a second position of the target data in a blanking area of ​​the image frame, take the image to be sent and the target data as data of the same image frame, adopt a data sending method in the effective image area to send the image to be sent according to the first position, and adopt a data sending method in the blanking area to send the target data according to the second position; wherein the target data is data different from the image to be sent and the coaxial data, and the coaxial data is notification information exchanged between a data receiving end and a data sending end;

[0038] The memory is used to store the image to be sent and the target data acquired by the processor.

[0039] Optionally, the processor is also used to obtain the coaxial data to be sent before sending the image and target data to be sent, and determine a third position of the coaxial data in a blanking area of ​​an image frame; use the coaxial data as the data of the image frame where the image and target data to be sent are located, adopt the data sending method in the blanking area, and send the coaxial data according to the third position.

[0040] Optionally, the processor is specifically used to obtain coaxial data to be sent including data representing the second position.

[0041] Optionally, the data representing the second position is located before the second position in the blanking area of ​​the image frame.

[0042] Optionally, the target data includes a header identifier indicating a starting position of the target data, and a tail identifier indicating an ending position of the target data.

[0043] Optionally, the processor is specifically used to obtain target data of environmental information of the environment in which the image acquisition device to be sent is located, representing the image to be sent; and / or, to obtain target data of audio information captured by the image acquisition device to be sent, representing the image to be sent; and / or, to obtain target data of image information representing the image to be sent.

[0044] Optionally, when the target data is data representing environmental information, the second position is a position in a blanking area after the effective image area;

[0045] When the target data is data representing audio information, the second position is a position in a blanking area before the effective image area;

[0046] When the target data is data representing image information, the second position is a position in a blanking area preceding the effective image area.

[0047] An embodiment of the present application provides an electronic device, comprising: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;

[0048] The processor is used to receive an image frame, determine a first position of an image in an effective image area of ​​the image frame, and determine a second position of target data in a blanking area of ​​the image frame, acquire an image from the image frame according to the first position using a data acquisition method for the effective image area, and acquire target data from the image frame according to the second position using a data acquisition method for the blanking area; wherein the target data is data different from the image and the coaxial data, and the coaxial data is notification information exchanged between a data receiving end and a data sending end;

[0049] The memory is used to store the image and target data acquired by the processor.

[0050] Optionally, the processor is further used to determine a third position of the coaxial data in a blanking area of ​​the image frame after receiving the image frame, and acquire the coaxial data from the image frame according to the third position using a data acquisition method of the blanking area.

[0051] Optionally, the coaxial data is acquired before determining the second position of the target data in the blanking area of ​​the image frame; the memory is specifically used to acquire data representing the second position of the target data in the blanking area of ​​the image frame from the coaxial data.

[0052] Optionally, the memory is specifically used to determine a header marker indicating the starting position of target data and a tail marker indicating the ending position of the target data from the blanking area of ​​the image frame, and use the position between and including the header marker and the tail marker as the second position of the target data in the blanking area of ​​the image frame.

[0053] The embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, a data transmission method provided by the embodiment of the present application is implemented. The data transmission method includes:

[0054] Acquire an image to be sent and acquire target data to be sent; wherein the target data is data different from the image to be sent and the coaxial data, and the coaxial data is notification information exchanged between a data receiving end and a data sending end;

[0055] Determine a first position of the image to be sent in an effective image area of ​​an image frame, and determine a second position of the target data in a blanking area of ​​the image frame;

[0056] The image to be sent and the target data are taken as data of the same image frame, and the image to be sent is sent according to the first position using the data sending method of the effective image area, and the target data is sent according to the second position using the data sending method of the blanking area.

[0057] The embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, another data transmission method provided by the embodiment of the present application is implemented. The data transmission method includes:

[0058] receiving an image frame;

[0059] Determine a first position of an image in an effective image area of ​​the image frame, and determine a second position of target data in a blanking area of ​​the image frame; wherein the target data is data different from the image and the coaxial data, and the coaxial data is notification information exchanged between a data receiving end and a data sending end;

[0060] The image is acquired from the image frame according to the first position by adopting the data acquisition method of the effective image area, and the target data is acquired from the image frame according to the second position by adopting the data acquisition method of the blanking area.

[0061] The data transmission method and camera provided in the embodiment of the present application can determine the first position of the image to be sent in the effective image area of ​​the image frame and the second position of the target data in the blanking area of ​​the image frame after acquiring the image to be sent and the target data, and use the image to be sent and the target data as the data of the same image frame, adopt the data sending method of the effective image area, send the image to be sent according to the first position, and adopt the data sending method of the blanking area, send the target data according to the second position. The target data is data different from the image to be sent and the coaxial data. Therefore, the embodiment of the present application can realize the sending of the target data and the image to be sent to the electronic device in the same image frame without the need for additional wiring, which can save equipment costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0063] Figure 1 A structural schematic diagram of an image frame;

[0064] Figure 2 A flowchart of a data transmission method provided in an embodiment of the present application;

[0065] Figure 3a A schematic diagram of the structure of an image frame provided in an embodiment of the present application;

[0066] Figure 3b A schematic diagram of a transmission framework for image frames provided in an embodiment of the present application;

[0067] Figure 4 A flowchart of another data transmission method provided in an embodiment of the present application;

[0068] Figure 5 A schematic diagram of the structure of a camera provided in an embodiment of the present application;

[0069] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0070] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0071] In the related art, images and coaxial data can only be transmitted between devices through transmission media such as coaxial cables or twisted pairs. If data other than images and coaxial data needs to be transmitted, additional wiring is required.

[0072] In order to avoid additional wiring and realize the transmission of target data, the embodiment of the present application provides a data transmission method, a camera, and an electronic device. The present application is described in detail below through specific embodiments.

[0073] Figure 2 A flowchart of a data transmission method provided in an embodiment of the present application. This embodiment is applied to a data sending end, which can be a camera, a computer, a smart phone or other device with data processing capabilities. The method includes the following steps S201 to S203:

[0074] Step S201: Acquire the image to be sent and the target data to be sent.

[0075] Among them, the target data is data different from the image to be sent and the coaxial data. The coaxial data is the notification information exchanged between the data receiving end and the data sending end, and the coaxial data can also be called PTZ data. When the data sending end and the data receiving end are the video generating end and the video receiving end respectively, the coaxial data exchanged between the video generating end and the video receiving end can include the coaxial sending data sent by the video generating end to the video receiving end, and can also include the coaxial receiving data sent by the video receiving end to the video generating end. For example, when the video generating end is a camera and the video receiving end is a hard disk recorder (Digital Video Recorder, DVR), the coaxial data can include the shooting mode information sent by the camera to the DVR, the information ready for upgrading, etc., and can also include the handshake data between the camera and the DVR, and the handshake data can be used to send data indicating the device type, image resolution, etc. The coaxial data can also include the control information sent by the DVR to the camera, and the control information can include the control instructions for the camera, such as the image parameter adjustment instructions, the camera aperture adjustment instructions, the camera rotation adjustment instructions, the resolution switching instructions, the remote upgrade data instructions, etc. The coaxial data may also include information such as the position of the image to be sent in the image frame and the position of the target data in the image frame.

[0076] The image frame may include on-axis data or may not include on-axis data.

[0077] In this step, when obtaining the target data to be sent, at least one of the following methods may be included:

[0078] Method 1: acquiring target data representing environmental information of the environment in which the image acquisition device to be sent is located.

[0079] For example, in this embodiment, the target data may be temperature information, humidity information, air pressure information, noise information, negative ion concentration, etc. Correspondingly, the image acquisition device may integrate one or more of the temperature sensor, humidity sensor, air pressure sensor, noise sensor, negative ion sensor, etc.; the image acquisition device may also not integrate the above sensors, but be installed at the same location as the above sensors.

[0080] When the data sending end as the execution subject is not an image acquisition device, the data sending end may obtain target data acquired by a sensor inside the image acquisition device, or the data sending end may directly obtain target data sent by the sensor.

[0081] When the data sending end serving as the execution subject is an image acquisition device, the image acquisition device can directly acquire the target data sent by the sensor.

[0082] Method 2: acquiring target data of audio information collected by an image acquisition device representing the image to be sent.

[0083] The audio information collected by the image acquisition device may be audio information collected within a preset period of time. The preset period of time may be a continuous period of time or a plurality of discontinuous periods of time. The preset period of time may include the moment of acquiring the target data or may not include the moment of acquiring the target data. The duration of the preset period of time may be fixed or variable.

[0084] Method three, obtaining target data representing image information to be sent.

[0085] The above-mentioned image may be an image to be sent, or an image acquired before the image to be sent or an image acquired after the image to be sent. The image may be one or more. The image information may include a sub-image obtained from the image that meets the preset image features, or may include information used to describe the sub-image. For example, the sub-image may be used to represent a moving object in the image, or to represent an obscured object in the image, or an abnormal situation in the image (for example, the image is overexposed, blurred or distorted in color, etc.), or to represent a special scene in the image (for example, an object crosses a predetermined boundary, etc.). The object may include a human body, a vehicle, an animal, a building, etc. The information used to describe the sub-image may be the number of images corresponding to the sub-image, the image position corresponding to the sub-image, etc., or an image encoding format, a video encoding format, private information, etc. The image encoding format may include jpg, bmp, etc., and the video encoding format may include H264, H265, etc. Private information may be understood as any information that is not disclosed to the public, such as information on the use rights of the image acquisition device, etc.

[0086] In addition to the target data obtained in the above-mentioned ways, the target data to be sent may also be the target data of other data to be sent except the image to be sent and the coaxial data. This embodiment does not limit the specific information contained in the target data.

[0087] In this embodiment, the target data type may be an image type, a video type, or other types.

[0088] Step S202: determining a first position of the image to be sent in the effective image area of ​​the image frame, and determining a second position of the target data in the blanking area of ​​the image frame.

[0089] In this step, when determining the first position of the image to be sent in the effective image area of ​​the image frame, the first preset position can be determined as the first position of the image to be sent in the effective image area of ​​the image frame, and the preset position includes a start position and an end position. The first position of the image to be sent in the effective image area of ​​the image frame can also be determined based on the data volume of the image to be sent.

[0090] When determining the first position of the image to be sent in the effective image area of ​​the image frame according to the data volume of the image to be sent, the first position of the image to be sent in the effective image area of ​​the image frame can be specifically determined as: starting from the first preset initial position to the first end position; wherein the first end position is: the position obtained by adding the data volume of the image to be sent to the first preset initial position. The first preset initial position and the first end position are both located in the effective image area.

[0091] In this step, when determining the second position of the target data in the blanking area of ​​the image frame, the second preset position can be determined as the second position of the target data in the blanking area of ​​the image frame. Alternatively, the second position of the target data in the blanking area of ​​the image frame can be determined based on the data volume of the target data.

[0092] When determining the second position of the target data in the blanking area of ​​the image frame according to the data amount of the target data, specifically, the second position of the target data in the blanking area of ​​the image frame can be determined as: starting from the second preset initial position to the second end position; wherein the second end position is: the position obtained by adding the data amount of the target data to the second preset initial position. The second preset initial position and the second end position are both located in the blanking area.

[0093] The second position may be a fixed position in the blanking area of ​​the image frame, or may be a non-fixed position. The position of the coaxial data in the blanking area is a fixed position, so the second position of the target data in the blanking area may be a position other than the position of the coaxial data in the blanking area. For example, the second position may be a position of a partial area other than the position of the coaxial data in the blanking area, or may be a position of the entire area other than the position of the coaxial data in the blanking area, and this application does not make any specific limitation on this.

[0094] The blanking area includes a field blanking area and a line blanking area. The second position may be located in the field blanking area, or in the line blanking area, or partly in the field blanking area and partly in the line blanking area. In a specific implementation, the amount of data that can be stored in the field blanking area is greater than the amount of data that can be stored in the line blanking area, so the second position may be determined from the field blanking area to increase the amount of target data that can be stored.

[0095] In a specific implementation, the positions of the coaxial data and the target data can both be in the field blanking area. For example, it is known that the field blanking area of ​​a 1920*1080P image frame contains 36 lines. The amount of coaxial data is generally very small, at the byte level, and 2 to 4 lines of the field blanking area can be allocated to the coaxial data, and the remaining 32 lines can be allocated to the target data. Therefore, the amount of target data that can be stored in the blanking area is approximately at the level of several hundred bytes.

[0096] In order to increase the amount of data that can be stored in the blanking area, the specifications of the transmitted image frame can be increased, for example, from a 2-megapixel image frame to a 3-megapixel image frame.

[0097] When the second position is a fixed position, the data receiving end and the data sending end may pre-agree on the second position, so that the data receiving end may obtain the target data according to the agreed second position, thereby improving the accuracy of obtaining the target data.

[0098] When the second position is not fixed, the target data may include a header mark indicating the starting position of the target data and a tail mark indicating the ending position of the target data. In this way, when the data receiving end acquires the target data, the starting position of the target data can be determined according to the header mark, the ending position of the target data can be determined according to the tail mark, and the target data can be acquired from the blanking area according to the determined starting position of the target data and the ending position of the target data, so that the target data can be accurately acquired when the second position is not fixed. This embodiment has greater flexibility when sending the target data.

[0099] The head identifier may be a first preset bit string, the tail identifier may be a second preset bit string, the first preset number of bits of the target data may be the first preset bit string, and the last second preset number of bits of the target data may be the second preset bit string.

[0100] Step S203: The image to be sent and the target data are treated as data of the same image frame, and the image to be sent is sent according to the first position using the data sending method of the effective image area, and the target data is sent according to the second position using the data sending method of the blanking area.

[0101] In this embodiment, the image to be sent and the target data are sent to the back-end electronic device through the same image frame, and the image and the target data can be sent through the same cable.

[0102] The data transmission mode may include an analog signal transmission mode and a digital signal transmission mode. The data transmission mode of the effective image area may be an analog signal transmission mode or a digital signal transmission mode. The data transmission mode of the blanking area is a digital signal transmission mode.

[0103] In this step, the target data can be sent in the form of a digital signal or an analog signal. In a specific implementation, in order to make the accuracy of the transmitted target data higher, the target data can be sent in the form of a digital signal. The image to be sent can be sent in the form of an analog signal, which can make the transmitted image information richer.

[0104] When sending the above-mentioned image frame, the data in the image frame may be sent row by row in the form of a data stream, or the data in the image frame may be sent column by column in the form of a data stream.

[0105] When receiving the image frame sent by the data sending end, the data receiving end can parse the image frame according to the preset data storage rule to obtain the image and target data in the image frame.

[0106] As can be seen from the above, after acquiring the image to be sent and the target data, this embodiment can determine the first position of the image to be sent in the effective image area of ​​the image frame and the second position of the target data in the blanking area of ​​the image frame, and use the image to be sent and the target data as data of the same image frame, adopt the data sending method of the effective image area, send the image to be sent according to the first position, and adopt the data sending method of the blanking area to send the target data according to the second position. The target data is data different from the image to be sent and the coaxial data. Therefore, the embodiment of the present application can realize the sending of the target data and the image to be sent to the electronic device in the same image frame without the need for additional wiring, which can save equipment costs.

[0107] Among a large number of image frames sent by the data transmitting end to the data receiving end, the target data may be carried in all the image frames or in some of the image frames. When the target data is acquired, the image frame with the image to be sent in the effective image area and the target data in the blanking area may be sent to the data receiving end. When the target data is not acquired, the image frame with the image to be sent in the effective image area and the image without the target data in the blanking area may be sent to the data receiving end.

[0108] In another embodiment of the present application, Figure 2 In the illustrated embodiment, before sending the image to be sent and the target data, the method may further include the following steps 1 and 2:

[0109] Step 1: Acquire the coaxial data to be sent, and determine the third position of the coaxial data in the blanking area of ​​the image frame.

[0110] In this embodiment, the image frame includes the image to be sent, target data and coaxial data.

[0111] When determining the third position of the coaxial data in the blanking area of ​​the image frame, it may include: determining the third preset position as the third position of the coaxial data in the blanking area of ​​the image frame. For example, the position of the preset second to fourth lines in the blanking area may be determined as the third position. In another embodiment, the blanking area may also include the position of the coaxial data sent by the data receiving end to the data sending end, and the position may be a position in the blanking area different from the third position.

[0112] In the blanking area, the third position can be before or after the second position. Since the amount of data in the field blanking area is much larger than that in the line blanking area, the third position can be determined from the field blanking area.

[0113] This step 1 can be performed before step S202 or after step S202, and this application does not make any specific limitation on this.

[0114] When the second position is not a fixed position, the step of acquiring the coaxial data to be sent may include: acquiring the coaxial data to be sent including data representing the second position.

[0115] Since the third position of the coaxial data can be a fixed position, the data receiving end and the data sending end can pre-agree on the third position, so that when the data receiving end acquires the coaxial data, it can be acquired according to the agreed third position. After acquiring the coaxial data, the second position can be determined according to the data representing the second position included in the coaxial data, and the target data can be acquired from the second position, thereby improving the accuracy of acquiring the target data.

[0116] In this embodiment, the coaxial data may also include other data in addition to the data indicating the second position, which is not specifically limited in this application.

[0117] Step 2: Use the coaxial data as the data of the image frame where the image to be sent and the target data are located, adopt the data sending method in the blanking area, and send the coaxial data according to the third position.

[0118] In this step, the data transmission mode of the blanking area is a digital signal transmission mode, and the digital signal transmission mode of the blanking area can be adopted to send the coaxial data according to the third position.

[0119] As an example, Figure 3a A schematic diagram of the data corresponding to the effective image area and blanking area of ​​the frame image. The vertical line shadow area is the effective image area, and the blank area outside the vertical line shadow area is the blanking area. The blanking area above and below the effective image area is the field blanking area, and the blanking area on the left and right sides of the effective image area is the line blanking area. Figure 3a In the example shown, the storage location of the coaxial data is located in the upper field blanking area, and the storage location of the target data is located in the lower field blanking area.

[0120] As an example, Figure 3b A transmission architecture diagram for sending a frame image from a data transmitter to a data receiver, wherein a frame image includes an image, coaxial data and target data.

[0121] It can be seen that this embodiment can obtain coaxial data, and send the image to be sent, target data and coaxial data as data of the same image frame to the data receiving end, so that the data receiving end receives the image to be sent, target data and coaxial data through the same image frame, thereby improving data transmission efficiency.

[0122] In a specific implementation of the above embodiment, the position of the data representing the second position in the blanking area of ​​the image frame may be located before the second position.

[0123] Specifically, in this embodiment, the third position may be located before the second position, so that the data representing the second position can be ensured to be located before the second position in the blanking area of ​​the image frame.

[0124] If the data receiving end obtains the data carried by the image frame in a front-to-back data acquisition method, the data representing the second position is located before the second position in the blanking area of ​​the image frame. The data receiving end can first obtain the data representing the second position in the coaxial data, and then obtain the target data from the blanking area based on the data representing the second position, thereby improving the efficiency of obtaining the target data.

[0125] In another embodiment of the present application, Figure 2 In the illustrated embodiment, the target data may be multiple types of data, for example, data representing environmental information, data representing audio information, and data representing image information. The second position may be preset according to the relationship between the above types of data and the image.

[0126] Specifically, when the target data is data representing environmental information, the second position may be a position in a blanking area after the effective image area.

[0127] When the target data is data representing audio information, the second position is a position in a blanking area preceding an effective picture area.

[0128] When the target data is data representing image information, the second position is a position in a blanking area preceding an effective image area.

[0129] In this embodiment, it is considered that the data representing audio information and the data representing image information have a greater correlation with the image and are data that can be obtained before the image. This part of data can be located in the blanking area before the effective image area; it is considered that the data representing environmental information has a relatively small correlation with the image and are data that can be obtained after the image. This part of data can be located in the blanking area after the effective image area.

[0130] In this way, if the data receiving end obtains data from front to back when receiving the data carried by the image frame, the data that can be obtained before the image is obtained first, and the data can be processed after obtaining the data. For example, the target image is determined from the image based on the data so that the target image can be displayed as soon as possible for the user to view. The target image can be a stranger's head portrait, an image of a suspicious vehicle, etc.; or the image can be processed based on the data, for example, it is determined that there is an abnormality in the surveillance video, the user is prompted to pay attention to the surveillance video, or the data receiving end is enabled to turn on the recording function, etc.

[0131] The present application is described in detail below with reference to specific examples.

[0132] The data transmitting end is a camera, and the data receiving end is a hard disk video recorder (Digital Video Recorder, DVR). The camera can obtain three types of data: image data, target data, and coaxial data. The three types of data obtained can be stored in the cache in the form of digital signals. When the sending cycle of the image frame arrives, the corresponding data is obtained from the cache according to the determined first position, second position, and third position. The data transmitting end sends the data in the image frame line by line in the form of a data stream. When the first position is reached, that is, when the image to be sent needs to be sent, the image data in the form of a digital signal is read from the cache, and the image data is converted into an analog signal and sent to the DVR. When the second position is reached, that is, when the target data needs to be sent, the target data in the form of a digital signal is read from the cache, and the target data is sent to the DVR. When the third position is reached, that is, when the coaxial data needs to be sent, the coaxial data in the form of a digital signal is read from the cache, and the coaxial data is sent to the DVR. The front and rear positions of the above-mentioned first position, second position, and third position in the same image frame can include multiple situations, and this application does not specifically limit this.

[0133] In the related art, the image to be sent can be superimposed on the effective image area in the form of an analog signal, and the coaxial data can be superimposed on the blanking area in the form of a digital signal. The amount of coaxial data is very small, about the byte level (can be 6 to 24 bytes), so there are still a lot of idle blanking areas that can be used to store target data. In this embodiment, the target data can be stored in the idle blanking area.

[0134] In this embodiment, the image to be sent and the coaxial data still maintain the original transmission mode unchanged, and some unused blanking areas are used to fill the target data. The data sending end can agree with the data receiving end on the storage position of the target data in the image frame. Alternatively, the storage position of the target data in the image frame can be placed in the coaxial data. The data receiving end can easily parse the storage position from the coaxial data.

[0135] The data transmission method provided in this embodiment can make each image frame have corresponding target data, so the real-time and synchronization of data are better. This embodiment also does not limit the transmission material, which can be a coaxial cable, twisted pair or other materials, without the need for additional wiring, reducing equipment costs.

[0136] The application scenarios of this application are described in detail below with reference to specific examples.

[0137] A company installed an analog camera with motion detection function at the gate. When a moving object such as a person or vehicle passes through the area detected by the camera, the camera will generate corresponding information (i.e. target data), which includes: whether there is a moving object at the moment, the coordinates of the moving object in the image, etc.

[0138] The specific process is as follows. The built-in intelligent module of the camera can detect the currently moving macroblock. Specifically, the moving macroblocks can be numbered in an image divided into 16*16 equal parts with a total of 256 macroblocks. For example, the intelligent module can set the number value of the detected moving macroblock to 1 and the number value of the detected non-moving macroblock to 0. In other words, when the camera detects that a vehicle is passing by, it marks the macroblocks in which the vehicle is in a moving state in the current image frame. This information is placed in a fixed row in the blanking area in the form of target data. And add the following description to the coaxial data: the current camera is a camera with motion detection function, the current data contains motion detection data, and which row of the blanking area these data are placed in. After receiving the signal, the DVR parses the coaxial data by default. When the storage location of the target data is parsed, it searches for the target data in the blanking area. When the DVR parses that a moving object has passed in the current image frame, it will turn on the event recording function and store the video sent by the camera. Ultimately, when customers watch the recordings in their DVRs, they will be able to see all surveillance recordings when there were moving objects, without having to search through a large number of videos for videos with moving objects.

[0139] Figure 4 A flowchart of another data transmission method provided in an embodiment of the present application. The method is applied to a data receiving end, which may be a computer, a smart phone, or other electronic device with data processing capabilities. The method includes the following steps S401 to S403:

[0140] Step S401: receiving an image frame.

[0141] Specifically, receiving an image frame may be understood as receiving an image frame sent by a data transmitting end, and the image frame may be data received via a coaxial cable or a twisted pair cable.

[0142] Step S402: Determine a first position of an image in an effective image area of ​​an image frame, and determine a second position of target data in a blanking area of ​​the image frame.

[0143] The target data is data different from the image and the coaxial data, and the coaxial data is notification information exchanged between the data receiving end and the data sending end.

[0144] The coaxial data may also be referred to as PTZ data. When the data transmitting end and the data receiving end are respectively the video generating end and the video receiving end, the coaxial data exchanged between the video generating end and the video receiving end may include the coaxial transmitting data sent by the video generating end to the video receiving end, and may also include the coaxial receiving data sent by the video receiving end to the video generating end. The coaxial data may also include information such as the position of the image to be transmitted in the image frame and the position of the target data in the image frame.

[0145] The image frame may include on-axis data or may not include on-axis data.

[0146] In this step, when determining the first position of the image in the effective image area of ​​the image frame and determining the second position of the target data in the blanking area of ​​the image frame, the first position and / or the second position can be determined according to the agreed position. This method can improve the accuracy of obtaining the target data.

[0147] When the target data includes a header mark indicating a starting position of the target data and a tail mark indicating an ending position of the target data, determining the second position of the target data in the blanking area of ​​the image frame may further include:

[0148] A header mark indicating the starting position of the target data and a tail mark indicating the ending position of the target data are determined from the blanking area of ​​the image frame, and the position between and including the header mark and the tail mark is used as the second position of the target data in the blanking area of ​​the image frame. This method can accurately determine the position of the target data, and the position flexibility of the target data when it is sent is relatively large.

[0149] The head identifier may be a first preset bit string, the tail identifier may be a second preset bit string, the first preset number of bits of the target data may be the first preset bit string, and the last second preset number of bits of the target data may be the second preset bit string.

[0150] Step S403: adopting the data acquisition method of the effective image area to acquire the image from the image frame according to the first position, and adopting the data acquisition method of the blanking area to acquire the target data from the image frame according to the second position.

[0151] The data acquisition method of the effective image area can be an analog signal acquisition method or a digital signal acquisition method. The data acquisition method of the blanking area is a digital signal acquisition method.

[0152] It can be seen that after receiving the image frame, this embodiment can determine the first position of the image in the effective image area of ​​the image frame, and determine the second position of the target data in the blanking area of ​​the image frame, and adopt the data acquisition method of the corresponding area to acquire the image according to the first position and acquire the target data according to the second position. Therefore, this embodiment can achieve the acquisition of the image and the target data from the same image frame without additional wiring, thereby saving costs.

[0153] In another embodiment of the present application, Figure 4 After step S401 in the illustrated embodiment, that is, after receiving the image frame, the method may further include the following steps 1 and 2:

[0154] Step 1: Determine the third position of the on-axis data in the blanking area of ​​the image frame.

[0155] This step may specifically include: determining the third position of the coaxial data in the blanking area of ​​the image frame according to the agreed position. The agreed position may be a preset line in the blanking area, for example, the second to fourth lines in the blanking area.

[0156] The third position can be before the second position or after the second position. The third position can be before the first position or after the second position. The front position or the back position can be understood as when parsing the image frame from top to bottom, the top position is the front position and the bottom position is the back position. For example, Figure 3a When the data receiving end parses the image frame line by line from top to bottom, the upper line is positioned in front compared to the lower line.

[0157] Step 2: Using the data acquisition method of the blanking area, obtain the coaxial data from the image frame according to the third position.

[0158] Specifically, this step may be to obtain the coaxial data from the image frame according to the third position by using the digital signal acquisition form in the blanking area.

[0159] It can be seen that the image frame of this embodiment includes coaxial data. After receiving the image frame, the third position of the coaxial data in the blanking area of ​​the image frame can be determined, and the data acquisition method of the blanking area can be adopted to obtain the coaxial data from the image frame according to the third position. The image, target data and coaxial data can be received through the same image frame, thereby improving data transmission efficiency.

[0160] In another implementation of the above embodiment, the on-axis data is acquired before determining the second position of the target data in the blanking area of ​​the image frame; step S402, i.e., the step of determining the second position of the target data in the blanking area of ​​the image frame, may include:

[0161] Data representing a second position of the target data in the blanking area of ​​the image frame is acquired from the on-axis data.

[0162] In this embodiment, the position of the target data in the blanking area of ​​the image frame may not be a fixed position. Thus, for each image frame, the second position of the target data can be obtained from the coaxial data, thereby obtaining the target data based on the second position, thereby improving the accuracy of obtaining the target data.

[0163] After acquiring the target data, the target data may also be stored, so that the user can query the required data from the stored target data.

[0164] Figure 5 A schematic diagram of the structure of a camera provided in an embodiment of the present application. Figure 2 The camera includes: a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502 and the memory 503 communicate with each other via the communication bus 504;

[0165] The processor 501 is used to obtain an image to be sent, obtain target data to be sent, determine a first position of the image to be sent in an effective image area of ​​an image frame, and determine a second position of the target data in a blanking area of ​​the image frame, take the image to be sent and the target data as data of the same image frame, adopt a data sending method in the effective image area to send the image to be sent according to the first position, and adopt a data sending method in the blanking area to send the target data according to the second position; wherein the target data is data different from the image to be sent and the coaxial data, and the coaxial data is notification information exchanged between a data receiving end and a data sending end;

[0166] The memory 502 is used to store the image to be sent and the target data acquired by the processor 501. The memory may be a cache.

[0167] In another embodiment of the present application, Figure 5The processor 501 in the illustrated embodiment can also be used to obtain the coaxial data to be sent before sending the image and target data to be sent, and determine the third position of the coaxial data in the blanking area of ​​the image frame; use the coaxial data as the data of the image frame where the image and target data to be sent are located, adopt the data sending method in the blanking area, and send the coaxial data according to the third position.

[0168] In another embodiment of the present application, Figure 5 In the illustrated embodiment, the processor 501 may be specifically configured to obtain coaxial data to be sent including data indicating the second position.

[0169] In another embodiment of the present application, Figure 5 In the illustrated embodiment, the data representing the second position is located before the second position in the blanking area of ​​the image frame.

[0170] In another embodiment of the present application, Figure 5 In the illustrated embodiment, the target data includes a header mark indicating the starting position of the target data, and a tail mark indicating the ending position of the target data.

[0171] In another embodiment of the present application, Figure 5 In the illustrated embodiment, the processor 501 can be specifically used to obtain target data of environmental information of the environment in which the image acquisition device to be sent, which represents the image to be sent, is located; and / or, to obtain target data of audio information captured by the image acquisition device to be sent, which represents the image to be sent; and / or, to obtain target data of image information to be sent, which represents the image to be sent.

[0172] In another embodiment of the present application, Figure 5 In the illustrated embodiment, when the target data is data representing environmental information, the second position is a position in the blanking area after the effective image area; when the target data is data representing audio information, the second position is a position in the blanking area before the effective image area; when the target data is data representing image information, the second position is a position in the blanking area before the effective image area.

[0173] Since the above-mentioned camera embodiment is obtained based on the method embodiment and has the same technical effect as the method, the technical effect of the camera embodiment will not be described in detail here. As for the camera embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For relevant parts, see Figure 2 A partial description of the illustrated method embodiment will suffice.

[0174] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 4The electronic device includes: a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602 and the memory 603 communicate with each other via the communication bus 604;

[0175] The processor 601 is used to receive an image frame, determine a first position of an image in an effective image area of ​​the image frame, and determine a second position of target data in a blanking area of ​​the image frame, and acquire the image from the image frame according to the first position using a data acquisition method for the effective image area, and acquire the target data from the image frame according to the second position using a data acquisition method for the blanking area; wherein the target data is data different from the image and the coaxial data, and the coaxial data is notification information exchanged between a data receiving end and a data sending end;

[0176] The memory 602 is used to store the image and target data acquired by the processor 601 .

[0177] In another embodiment of the present application, Figure 6 The processor 601 in the illustrated embodiment can also be used to determine the third position of the coaxial data in the blanking area of ​​the image frame after receiving the image frame, and adopt the data acquisition method of the blanking area to acquire the coaxial data from the image frame according to the third position.

[0178] In another embodiment of the present application, Figure 6 In the illustrated embodiment, the coaxial data is acquired before determining the second position of the target data in the blanking area of ​​the image frame; the processor 601 can be specifically used to acquire data representing the second position of the target data in the blanking area of ​​the image frame from the coaxial data.

[0179] In another embodiment of the present application, Figure 6 In the illustrated embodiment, the memory can be specifically used to determine a header marker indicating the starting position of target data and a tail marker indicating the ending position of the target data from the blanking area of ​​the image frame, and use the position between and including the header marker and the tail marker as the second position of the target data in the blanking area of ​​the image frame.

[0180] In this embodiment, the electronic device may be a DVR device, which may specifically include: a digital-to-analog (AD) conversion module, a main chip, a display, an interface, and a hard disk. The main chip may include a digital signal processor (DSP) encoding module, a DSP decoding module, and a CPU. The hard disk may be a ROM memory. The electronic device may broadcast the image data in the received image frame over the Internet.

[0181] Since the above electronic device embodiment is obtained based on the method embodiment and has the same technical effect as the method, the technical effect of the electronic device embodiment is not described here. As for the electronic device embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, see Figure 4 A partial description of the illustrated method embodiment will suffice.

[0182] In the above-mentioned camera embodiment and electronic device embodiment, the communication bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0183] The communication interface is used for communication between the above devices and other devices.

[0184] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0185] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), an ARM (Advanced RISC Machines) processor, etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0186] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the data transmission method provided by the present application is implemented. The data transmission method includes:

[0187] Acquire an image to be sent and acquire target data to be sent; wherein the target data is data different from the image to be sent and the coaxial data, and the coaxial data is notification information exchanged between a data receiving end and a data sending end;

[0188] Determine a first position of the image to be sent in an effective image area of ​​an image frame, and determine a second position of the target data in a blanking area of ​​the image frame;

[0189] The image to be sent and the target data are taken as data of the same image frame, and the image to be sent is sent according to the first position using the data sending method of the effective image area, and the target data is sent according to the second position using the data sending method of the blanking area.

[0190] It can be seen that, after acquiring the image to be sent and the target data, this embodiment can use the image to be sent and the target data as data of the same image frame, send the image to be sent according to the determined first position, and send the target data according to the determined second position. Among them, the target data is data different from the image to be sent and the coaxial data. Therefore, the embodiment of the present application can realize the sending of the target data and the image to be sent to the electronic device in the same image frame without the need for additional wiring, which can save equipment costs.

[0191] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the data transmission method provided by the present application is implemented. The data transmission method includes:

[0192] receiving an image frame;

[0193] Determine a first position of an image in an effective image area of ​​the image frame, and determine a second position of target data in a blanking area of ​​the image frame; wherein the target data is data different from the image and the coaxial data, and the coaxial data is notification information exchanged between a data receiving end and a data sending end;

[0194] The image is acquired from the image frame according to the first position by adopting the data acquisition method of the effective image area, and the target data is acquired from the image frame according to the second position by adopting the data acquisition method of the blanking area.

[0195] It can be seen that after receiving the image frame, this embodiment can determine the first position of the image in the effective image area of ​​the image frame, and determine the second position of the target data in the blanking area of ​​the image frame, and adopt the data acquisition method of the corresponding area to acquire the image according to the first position and acquire the target data according to the second position. Therefore, this embodiment can achieve the acquisition of the image and the target data from the same image frame without additional wiring, thereby saving costs.

[0196] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants are intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or equipment including the elements.

[0197] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

[0198] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims

1. A data transmission method, It is characterized in that The method comprises: Acquire an image to be sent and acquire target data to be sent; wherein the target data is data different from the image to be sent and the coaxial data, and the coaxial data is notification information exchanged between a data receiving end and a data sending end; Determine a first position of the image to be sent in an effective image area of ​​an image frame, and determine a second position of the target data in a blanking area of ​​the image frame; The image to be sent and the target data are regarded as data of the same image frame, and the image to be sent is sent according to the first position by adopting the data sending method of the effective image area, and the target data is sent according to the second position by adopting the data sending method of the blanking area; The position of the data representing the second position in the blanking area of ​​the image frame is located before the second position; Wherein, the target data is data representing audio information; and / or, the target data is data representing image information; and / or, the target data is data representing environmental information; When the target data is data representing audio information, the second position is a position in a blanking area before the effective image area; When the target data is data representing image information, the second position is a position in a blanking area before the effective image area; When the target data is data representing environmental information, the second position is a position in a blanking area after the effective image area.

2. The method according to claim 1, It is characterized in that The method further comprises: Acquire the coaxial data to be sent, and determine the third position of the coaxial data in the blanking area of ​​the image frame; The coaxial data is used as data of the image frame where the image to be sent and the target data are located, and the coaxial data is sent according to the third position using a data sending method in a blanking area.

3. The method according to claim 2, It is characterized in that The step of acquiring the coaxial data to be sent includes: acquiring the coaxial data to be sent including data representing the second position.

4. The method according to claim 1, It is characterized in that The target data includes a header mark indicating a starting position of the target data and a tail mark indicating an ending position of the target data.

5. The method according to claim 1, It is characterized in that The obtaining of target data to be sent, wherein the target data is data representing audio information, comprises: obtaining target data to be sent representing audio information collected by an image acquisition device representing the image to be sent; and / or, The step of obtaining target data to be sent, wherein the target data is data representing image information, comprises: obtaining target data representing image information to be sent; and / or, Obtain target data to be sent, where the target data is data representing environmental information, including: Obtain target data to be sent, representing environmental information of an environment in which an image acquisition device of the image to be sent is located.

6. The method according to claim 1, It is characterized in that The data receiving end and the data sending end may pre-agree on the second position, so that the data receiving end may obtain the target data according to the agreed second position.

7. The method according to claim 2, It is characterized in that The third position is determined from the vertical blanking region.

8. The method according to any one of claims 1 to 7, It is characterized in that The second position is located in the line blanking region, or the second position is located in the field blanking region, or a part of the second position is in the field blanking region and the other part is in the line blanking region.

9. A data transmission method, It is characterized in that The method comprises: Determine a first position of an image in an effective image area of ​​an image frame, and determine a second position of target data in a blanking area of ​​the image frame; wherein the target data is data different from the image and the coaxial data, and the coaxial data is notification information exchanged between a data receiving end and a data sending end; Using a data acquisition method in an effective image area to acquire an image from the image frame according to the first position, and using a data acquisition method in a blanking area to acquire target data from the image frame according to the second position; The position of the data representing the second position in the blanking area of ​​the image frame is located before the second position; Wherein, the target data is data representing audio information; and / or, the target data is data representing image information; and / or, the target data is data representing environmental information; When the target data is data representing audio information, the second position is a position in a blanking area before the effective image area; When the target data is data representing image information, the second position is a position in a blanking area before the effective image area; When the target data is data representing environmental information, the second position is a position in a blanking area after the effective image area.

10. The method according to claim 9, It is characterized in that The method further comprises: determining a third position of the on-axis data in the blanking region of the image frame; The on-axis data is acquired from the image frame according to the third position by adopting the data acquisition method of the blanking area.

11. The method according to claim 9, It is characterized in that The step of determining a second position of the target data in the blanking area of ​​the image frame comprises: Data representing a second position of target data in a blanking area of ​​the image frame is acquired from the on-axis data.

12. The method according to claim 9, It is characterized in that The step of determining a second position of the target data in the blanking area of ​​the image frame comprises: A header marker indicating the starting position of target data and a tail marker indicating the ending position of target data are determined from the blanking area of ​​the image frame, and the position between and including the header marker and the tail marker is used as the second position of the target data in the blanking area of ​​the image frame.

13. The method according to claim 9, It is characterized in that The data receiving end and the data sending end may pre-agree on the second position, so that the data receiving end may obtain the target data according to the agreed second position.

14. The method according to claim 10, It is characterized in that The third position is determined from the vertical blanking region.

15. The method according to claim 9, It is characterized in that The second position is located in a line blanking region, or the second position is located in a field blanking region, or a part of the second position is located in the field blanking region and another part of the second position is located in the line blanking region.

16. A camera, It is characterized in that include: A processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; The processor is used to obtain an image to be sent, obtain target data to be sent, determine a first position of the image to be sent in an effective image area of ​​an image frame, and determine a second position of the target data in a blanking area of ​​the image frame, take the image to be sent and the target data as data of the same image frame, adopt a data sending method in the effective image area to send the image to be sent according to the first position, and adopt a data sending method in the blanking area to send the target data according to the second position; wherein the target data is data different from the image to be sent and the coaxial data, and the coaxial data is notification information exchanged between a data receiving end and a data sending end; the position of the data indicating the second position in the blanking area of ​​the image frame is located before the second position; The memory is used to store the image to be sent and the target data acquired by the processor; Wherein, the target data is data representing audio information; and / or, the target data is data representing image information; and / or, the target data is data representing environmental information; When the target data is data representing audio information, the second position is a position in a blanking area before the effective image area; When the target data is data representing image information, the second position is a position in a blanking area before the effective image area; When the target data is data representing environmental information, the second position is a position in a blanking area after the effective image area.

17. The camera according to claim 16, It is characterized in that The processor is also used to obtain the coaxial data to be sent, and determine the third position of the coaxial data in the blanking area of ​​the image frame; use the coaxial data as the data of the image frame where the image to be sent and the target data are located, adopt the data sending method of the blanking area, and send the coaxial data according to the third position.

18. The camera according to claim 17, It is characterized in that The processor is specifically configured to obtain coaxial data to be sent including data representing the second position.

19. The camera according to claim 16, It is characterized in that The target data includes a header mark indicating a starting position of the target data and a tail mark indicating an ending position of the target data.

20. The camera according to claim 16, It is characterized in that The obtaining of target data to be sent, wherein the target data is data representing audio information, comprises: obtaining target data to be sent representing audio information collected by an image acquisition device representing the image to be sent; and / or, The step of obtaining target data to be sent, wherein the target data is data representing image information, comprises: obtaining target data representing image information to be sent; and / or, Obtain target data to be sent, where the target data is data representing environmental information, including: Obtain target data to be sent, representing environmental information of an environment in which an image acquisition device of the image to be sent is located.

21. The camera according to claim 16, It is characterized in that The data receiving end and the data sending end may pre-agree on the second position, so that the data receiving end may obtain the target data according to the agreed second position.

22. The camera according to claim 17, It is characterized in that The third position is determined from the vertical blanking region.

23. A camera according to any one of claims 16 to 22, It is characterized in that The second position is located in the line blanking region, or the second position is located in the field blanking region, or a part of the second position is in the field blanking region and the other part is in the line blanking region.

24. An electronic device, It is characterized in that include: A processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; The processor is used to determine a first position of an image in an effective image area of ​​an image frame, and to determine a second position of target data in a blanking area of ​​the image frame, to acquire an image from the image frame according to the first position using a data acquisition method for the effective image area, and to acquire target data from the image frame according to the second position using a data acquisition method for the blanking area; wherein the target data is data different from the image and the coaxial data, and the coaxial data is notification information exchanged between a data receiving end and a data sending end; the position of the data indicating the second position in the blanking area of ​​the image frame is located before the second position; The memory is used to store the image and target data acquired by the processor; Wherein, the target data is data representing audio information; and / or, the target data is data representing image information; and / or, the target data is data representing environmental information; When the target data is data representing audio information, the second position is a position in a blanking area before the effective image area; When the target data is data representing image information, the second position is a position in a blanking area before the effective image area; When the target data is data representing environmental information, the second position is a position in a blanking area after the effective image area.

25. The electronic device according to claim 24, It is characterized in that The processor is further used to determine a third position of the coaxial data in the blanking area of ​​the image frame, and acquire the coaxial data from the image frame according to the third position using a data acquisition method in the blanking area.

26. The electronic device according to claim 24, It is characterized in that The memory is specifically used to obtain data representing a second position of the target data in the blanking area of ​​the image frame from the coaxial data.

27. The electronic device according to claim 24, It is characterized in that The memory is specifically used to determine a header identifier representing the starting position of target data and a tail identifier representing the ending position of target data from the blanking area of ​​the image frame, and to use the position between and including the header identifier and the tail identifier as the second position of the target data in the blanking area of ​​the image frame.

28. The electronic device according to claim 24, It is characterized in that The data receiving end and the data sending end may pre-agree on the second position, so that the data receiving end may obtain the target data according to the agreed second position.

29. The electronic device according to claim 25, It is characterized in that The third position is determined from the vertical blanking region.

30. The electronic device according to claim 24, It is characterized in that The second position is located in a line blanking region, or the second position is located in a field blanking region, or a part of the second position is located in the field blanking region and another part of the second position is located in the line blanking region.

31. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 8 are implemented, or when the computer program is executed by a processor, the method steps described in any one of claims 9 to 15 are implemented.