Video processing method and device, equipment, medium and vehicle

By receiving the camera parameters from the Android side on the system side, controlling the image acquisition device to obtain the video and add a watermark, the problem of high CPU usage during video recording on the Android platform is solved, and efficient resource utilization is achieved.

CN120640091APending Publication Date: 2025-09-12BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410282124.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-12
Publication Date
2025-09-12

Smart Images

  • Figure CN120640091A_ABST
    Figure CN120640091A_ABST
Patent Text Reader

Abstract

The invention relates to a video processing method and device, equipment, a medium and a vehicle. The video processing method comprises the following steps: receiving camera parameters sent by an Android side through a system side; controlling an image acquisition device to acquire a first target video through the system side according to the camera parameters; performing watermark adding processing on the first target video through the system side to obtain a second target video; and sending the second target video to the Android side through the system side. According to the embodiment of the invention, the resource occupancy rate of the Android side can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a video processing method, apparatus, device, medium, and vehicle. Background Art

[0002] In the vehicle computer of current vehicles, an Android application (Application, APP) is generally installed, and the video recording operation is performed through the Android APP.

[0003] In the related technology, the current digital video recorder (DVR) service of the 8155 model is designed based on the Android platform, and video encoding and decoding are all implemented on the Android side. Therefore, when recording videos through the Android APP, the central processing unit (CPU) occupancy is relatively high. Summary of the Invention

[0004] In order to solve the above technical problems, the present disclosure provides a video processing method, device, equipment, medium and vehicle.

[0005] In a first aspect, the present disclosure provides a video processing method, comprising:

[0006] Receive the camera parameters sent by the Android side through the system side;

[0007] Acquiring a first target video by controlling an image acquisition device according to the camera parameters on the system side;

[0008] Performing watermarking processing on the first target video by the system side to obtain a second target video;

[0009] The second target video is sent to the Android side through the system side.

[0010] In a second aspect, the present disclosure provides a video processing device, comprising:

[0011] Parameter receiving module, used to receive camera parameters sent by the Android side through the system side;

[0012] A video acquisition module, configured to control an image acquisition device according to the camera parameters on the system side to acquire a first target video;

[0013] a watermark adding module, configured to perform watermark adding processing on the first target video through the system side to obtain a second target video;

[0014] A video sending module is used to send the second target video to the Android side through the system side.

[0015] In a third aspect, the present disclosure provides a video processing device, comprising:

[0016] processor;

[0017] a memory for storing executable instructions;

[0018] The processor is used to read executable instructions from the memory and execute the executable instructions to implement the video processing method of the first aspect.

[0019] In a fourth aspect, the present disclosure provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor implements the video processing method of the first aspect.

[0020] In a fifth aspect, the present disclosure provides a vehicle comprising the above video processing device.

[0021] The technical solution provided by the embodiments of the present disclosure has the following advantages over the prior art:

[0022] The video processing method, apparatus, device, medium and vehicle of the embodiments of the present disclosure can receive camera parameters sent by the Android side through the system side, then control the image acquisition device according to the camera parameters through the system side to obtain a first target video, then perform watermarking processing on the first target video through the system side to obtain a second target video, and finally send the second target video to the Android side through the system side. Thus, the first target video is obtained and the watermarking processing is performed on the first target video through the system side, and the obtained second target video is sent to the Android side, that is, a series of processing of the target video is implemented through the system side, and the Android side only needs to receive the processed second target video, thereby reducing the resource occupancy rate of the Android side. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.

[0024] Figure 1 A flowchart of a video processing method provided by an embodiment of the present disclosure;

[0025] Figure 2 A flowchart of another video processing method provided by an embodiment of the present disclosure;

[0026] Figure 3 A schematic structural diagram of a video processing device provided in an embodiment of the present disclosure;

[0027] Figure 4 A schematic diagram of the structure of a video processing device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0029] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0030] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.

[0031] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0032] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0033] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0034] In order to solve the above problems, the present disclosure provides a video processing method, device, equipment, medium and vehicle. Figures 1 to 2 The video processing method provided by the embodiment of the present disclosure is described in detail.

[0035] Figure 1 A flow chart of a video processing method provided by an embodiment of the present disclosure is shown.

[0036] In the embodiment of the present disclosure, the video processing method may be executed by an electronic device. Specifically, the electronic device may include but is not limited to a mobile terminal such as a computer device, a mobile phone, an in-vehicle device, a vehicle controller, a tablet computer, a wearable device, etc.

[0037] like Figure 1 As shown, the video processing method may include the following steps.

[0038] S110. Receive camera parameters sent by the Android side through the system side.

[0039] In the embodiment of the present disclosure, the electronic device can receive the camera parameters sent by the Android side through the system side.

[0040] Optionally, the system side may be an embedded real-time operating system (Quick UNIX, QNX) side.

[0041] Optionally, the Android side may be an (Android) side.

[0042] Optionally, the camera parameters may be shooting parameters of the camera when taking photos or videos. For example, the camera parameters may include at least one of a camera ID (identity document), a camera format, a camera width and height, a bit rate, and an encoder format.

[0043] Specifically, the electronic device can receive the camera parameters sent by the Android side through the QNX side.

[0044] S120: Controlling an image acquisition device according to the camera parameters on the system side to acquire a first target video.

[0045] In the embodiment of the present disclosure, the electronic device can control the image acquisition device according to the camera parameters through the system side to obtain the first target video.

[0046] Optionally, the image acquisition device may be a device for acquiring images, videos, etc. For example, the image acquisition device may be a camera, a webcam, etc., which is not limited here.

[0047] Optionally, the first target video may be a video captured by an image capture device.

[0048] Specifically, after the electronic device receives the camera parameters through the system side, it can control the image acquisition device to obtain the first target video according to the camera parameters.

[0049] S130. Perform watermarking on the first target video through the system side to obtain a second target video.

[0050] In the embodiment of the present disclosure, the electronic device can perform watermarking processing on the first target video through the system side to obtain the second target video.

[0051] Optionally, the watermark adding process may be a process of adding a watermark to a video.

[0052] Optionally, the second target video may be a video with a watermark.

[0053] Specifically, after the electronic device obtains the first target video through the system side, it can perform watermarking processing on the first target video, that is, add a corresponding watermark to the first target video, such as adding a time watermark, a vehicle speed watermark, a vehicle light status watermark, etc., to obtain a second target video.

[0054] In the disclosed embodiment, the watermark added by the system to the first target video can be understood as a processing marker, that is, the watermark indicates that the video has been processed by the system and does not need to be processed again by the Android side. The watermark can be a time watermark as described above, etc. The specific form of the watermark is not limited in this disclosure.

[0055] S140: Send the second target video to the Android side through the system side.

[0056] In the embodiment of the present disclosure, the electronic device may send the second target video to the Android side through the system side.

[0057] Specifically, after the electronic device performs watermark adding processing on the system side to obtain the second target video, the second target video can be sent to the Android side.

[0058] In the embodiment of the present disclosure, after receiving the second target video with the watermark sent by the system side, the Android side no longer processes the second target video, thereby reducing the CPU occupancy of the Android side.

[0059] Therefore, in the embodiment of the present disclosure, the camera parameters sent by the Android side can be received by the system side, and then the image acquisition device can be controlled by the system side according to the camera parameters to obtain the first target video, and then the first target video is watermarked by the system side to obtain the second target video, and finally the second target video is sent to the Android side by the system side. Thus, the first target video is obtained and the watermark is added to the first target video by the system side, and the obtained second target video is sent to the Android side, that is, a series of processing of the target video is implemented by the system side, and the Android side only needs to receive the processed second target video, thereby reducing the resource occupancy rate of the Android side.

[0060] Optionally, before S110, the video processing method may further include: calling an interface of the image acquisition device through the Android side.

[0061] In the embodiment of the present disclosure, the electronic device can call the interface of the image acquisition device through the Android side.

[0062] Optionally, after calling the interface of the image acquisition device through the Android side, the video processing method may further include: assembling the camera parameters of the image acquisition device through the Android side, and sending the camera parameters to the system side.

[0063] In an embodiment of the present disclosure, the electronic device may assemble the camera parameters of the image acquisition device through the Android side and send the camera parameters to the system side.

[0064] Specifically, the electronic device can assemble the camera parameters of the image acquisition device through the Android side, that is, configure the acquisition parameters corresponding to the image acquisition device and package them to obtain the camera parameters, and then the Android side sends the obtained camera parameters to the system side through the Transmission Control Protocol (TCP).

[0065] Optionally, S120 may specifically include: adjusting, by the system side, parameters of the image acquisition device according to the camera parameters, and controlling the image acquisition device to acquire the first target video.

[0066] In the embodiment of the present disclosure, the electronic device can adjust the parameters of the image acquisition device according to the camera parameters through the system side, and control the image acquisition device to obtain the first target video.

[0067] Specifically, after the electronic device receives the camera parameters through the system side, it can adjust the parameters of the image acquisition device according to the camera parameters, that is, adjust the parameters of the image acquisition device for capturing video, and control the adjusted image acquisition device to obtain the first target video.

[0068] Optionally, after S130, the video processing method may further include: performing encoding processing on the second target video by the system side to obtain corresponding encoded data, where the encoded data is a video with a preset encoding format.

[0069] In the embodiment of the present disclosure, the electronic device may perform encoding processing on the second target video through the system side to obtain corresponding encoded data.

[0070] Optionally, the encoding process may be data encoding of the video.

[0071] Optionally, the coded data may be data obtained after coding, wherein the coded data may be a video having a preset coding format.

[0072] Optionally, the preset encoding format may be a pre-set format. For example, the preset encoding format may be an H265 format, an H264 format, etc., which is not limited here.

[0073] Specifically, after obtaining the second target video, the electronic device may perform encoding processing on the second target video through the system side to obtain corresponding encoded data, for example, encoded data having a preset encoding format H265.

[0074] Optionally, S140 may specifically include: sending the encoded data to the Android side through the system side.

[0075] In the embodiment of the present disclosure, the electronic device may send the encoded data to the Android side through the system side.

[0076] Specifically, after the electronic device obtains the encoded data through the system side, it can send the encoded data to the Android side, for example, using the TCP protocol to send the encoded data to the Android side.

[0077] Optionally, after S140, the video processing method may further include: saving and processing the encoded data through the Android side to obtain a corresponding final video, where the final video is a video with a preset video format.

[0078] In the disclosed embodiment, the electronic device may save and process the encoded data through the Android side to obtain the corresponding final video.

[0079] Optionally, the final video may be a video in a preset video format.

[0080] Optionally, the preset video format may be a pre-set video format, for example, the preset video format may be an MP4 format, an AVI format, etc., which is not limited here.

[0081] Specifically, after the electronic device receives the encoded data through the Android side, it can save and process the data to obtain the corresponding final video, for example, a video in MP4 format.

[0082] Figure 2 A flow chart of another video processing method provided by an embodiment of the present disclosure is shown.

[0083] like Figure 2As shown, for example, when the current vehicle is driving, the video of the driving process can generally be acquired through the camera of the driving recorder in the vehicle. When acquiring the video, the electronic device first calls to open the camera interface through the Android side (Android), then assembles the camera parameters of the camera, and sends the camera parameters to the system side (QNX) through the TCP protocol. The system side (QNX) adjusts the camera parameters according to the camera parameters, and controls the camera to acquire the first target video. Then, the system side adds a watermark to the first target video to obtain the second target video, and then encodes the second target video to obtain corresponding encoded data in H265 format. The electronic device sends the encoded data to the Android side (Android) through the system side (QNX) through the TCP protocol, and saves the received encoded data through the Android side (Android) to obtain the corresponding final video in MP4 format.

[0084] Figure 3 A schematic structural diagram of a video processing device provided by an embodiment of the present disclosure is shown.

[0085] In some embodiments of the present disclosure, Figure 3 The video processing device shown can be provided in an electronic device. Specifically, the electronic device can include but is not limited to a mobile terminal such as a computer device, a mobile phone, an in-vehicle device, a vehicle controller, a tablet computer, a wearable device, etc.

[0086] like Figure 3 As shown, the video processing device 300 may include a parameter receiving module 310 , a video acquiring module 320 , a watermark adding module 330 and a video sending module 340 .

[0087] The parameter receiving module 310 can be used to receive camera parameters sent by the Android side through the system side.

[0088] The video acquisition module 320 can be used to control the image acquisition device according to the camera parameters on the system side to acquire the first target video.

[0089] The watermark adding module 330 can be used to perform watermark adding processing on the first target video through the system side to obtain a second target video.

[0090] The video sending module 340 can be used to send the second target video to the Android side through the system side.

[0091] Therefore, in the embodiment of the present disclosure, the camera parameters sent by the Android side can be received by the system side, and then the image acquisition device can be controlled by the system side according to the camera parameters to obtain the first target video, and then the first target video is watermarked by the system side to obtain the second target video, and finally the second target video is sent to the Android side by the system side. Thus, the first target video is obtained and the watermark is added to the first target video by the system side, and the obtained second target video is sent to the Android side, that is, a series of processing of the target video is implemented by the system side, and the Android side only needs to receive the processed second target video, thereby reducing the resource occupancy rate of the Android side.

[0092] In some embodiments of the present disclosure, the video processing device 300 may further include an interface calling module.

[0093] The interface calling module can be used to call the interface of the image acquisition device through the Android side before receiving the camera parameters sent by the Android side through the system side.

[0094] In some embodiments of the present disclosure, the video processing apparatus 300 may further include a parameter assembly module.

[0095] The parameter assembly module can be used to assemble the camera parameters of the image acquisition device through the Android side after calling the interface of the image acquisition device through the Android side, and send the camera parameters to the system side.

[0096] In some embodiments of the present disclosure, the video acquisition module 320 may be specifically configured to adjust the parameters of the image acquisition device according to the camera parameters through the system side, and control the image acquisition device to acquire the first target video.

[0097] In some embodiments of the present disclosure, the video processing device 300 may further include a video encoding module.

[0098] The video encoding module can be used to, after the first target video is watermarked by the system side to obtain the second target video, encode the second target video by the system side to obtain corresponding encoded data, where the encoded data is a video with a preset encoding format.

[0099] In some embodiments of the present disclosure, the video sending module 340 may be specifically configured to send the encoded data to the Android side via the system side.

[0100] In some embodiments of the present disclosure, the video processing device 300 may further include a video saving module.

[0101] The video saving module can be used to save and process the encoded data through the Android side after the encoded data is sent to the Android side through the system side to obtain the corresponding final video, and the final video is a video with a preset video format.

[0102] It should be noted that Figure 3 The video processing apparatus 300 shown can perform Figures 1 to 2 The various steps in the method embodiment shown are implemented Figures 1 to 2 The various processes and effects in the illustrated method embodiment are not described in detail here.

[0103] Figure 4 A schematic structural diagram of a video processing device provided by an embodiment of the present disclosure is shown.

[0104] In some embodiments of the present disclosure, Figure 4 The video processing device shown can be an electronic device that the user wants to perform video processing on. Specifically, the electronic device can include but is not limited to mobile terminals such as mobile phones, vehicle-mounted devices, vehicle controllers, tablet computers, wearable devices, smart home devices, etc.

[0105] like Figure 4 As shown, the video processing device may include a processor 401 and a memory 402 storing computer program instructions.

[0106] Specifically, the processor 401 may include a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0107] Memory 402 may include a large-capacity memory for information or instructions. By way of example, and not limitation, memory 402 may include a hard disk drive (HDD), a floppy disk drive, flash memory, an optical disk, a magneto-optical disk, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 402 may include removable or non-removable (or fixed) media. Where appropriate, memory 402 may be internal or external to the integrated gateway device. In certain embodiments, memory 402 is non-volatile solid-state memory. In certain embodiments, memory 402 includes read-only memory (ROM). Where appropriate, the ROM may be mask-programmed ROM, programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable PROM (EEPROM), electrically alterable ROM (EAROM), or flash memory, or a combination of two or more of these.

[0108] The processor 401 reads and executes computer program instructions stored in the memory 402 to perform the steps of the video processing method provided in the embodiment of the present disclosure.

[0109] In one example, the video processing device may further include a transceiver 403 and a bus 404. Figure 4 As shown, the processor 401 , the memory 402 and the transceiver 403 are connected via a bus 404 and communicate with each other.

[0110] The bus 404 includes hardware, software, or both. By way of example and not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses, or a combination of two or more of these. Where appropriate, the bus 404 may include one or more buses. Although embodiments herein describe and illustrate a particular bus, this application contemplates any suitable bus or interconnect.

[0111] The embodiments of the present disclosure further provide a computer-readable storage medium, which may store a computer program. When the computer program is executed by a processor, the processor implements the video processing method provided by the embodiments of the present disclosure.

[0112] The above-mentioned storage medium may, for example, include a memory 402 of computer program instructions, and the above-mentioned instructions may be executed by the processor 401 of the video processing device to complete the video processing method provided by the embodiment of the present disclosure. Alternatively, the storage medium may be a non-transitory computer-readable storage medium, for example, a non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.

[0113] The embodiment of the present disclosure also provides a vehicle, which includes the video processing device as described above. It is understood that the vehicle may also include: a processor, a memory, and a computer program. The computer program is stored in the memory and is configured to be executed by the processor to implement the video processing method provided by the embodiment of the present disclosure. The processor and the memory are already in the Figure 4 The parts described in the illustrated embodiment are not repeated here.

[0114] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising" is intended to cover non-exclusive inclusion, so that a process, method, article or apparatus that includes a list of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article or apparatus.

[0115] The foregoing description is intended only to provide specific embodiments of the present disclosure, intended to enable those skilled in the art to understand and implement the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the embodiments described herein, but rather to be construed in the broadest manner consistent with the principles and novel features disclosed herein.

Claims

1. A video processing method, characterized in that: include: Receive the camera parameters sent by the Android side through the system side; Acquiring a first target video by controlling an image acquisition device according to the camera parameters on the system side; Performing watermarking processing on the first target video by the system side to obtain a second target video; The second target video is sent to the Android side through the system side.

2. The method according to claim 1, characterized in that Before receiving the camera parameters sent by the Android side through the system side, the method further includes: The interface of the image acquisition device is called through the Android side.

3. The method according to claim 2, characterized in that After calling the interface of the image acquisition device through the Android side, the method further includes: The camera parameters of the image acquisition device are assembled by the Android side, and the camera parameters are sent to the system side.

4. The method according to claim 1, wherein The step of controlling the image acquisition device according to the camera parameters by the system side to acquire the first target video includes: The system side adjusts the parameters of the image acquisition device according to the camera parameters, and controls the image acquisition device to obtain the first target video.

5. The method according to claim 1, wherein After the system side performs watermarking processing on the first target video to obtain a second target video, the method further includes: The system side performs encoding processing on the second target video to obtain corresponding encoded data, where the encoded data is a video with a preset encoding format.

6. The method according to claim 5, characterized in that The sending the second target video to the Android side through the system side includes: The encoded data is sent to the Android side through the system side.

7. The method according to claim 6, characterized in that After sending the encoded data to the Android side through the system side, the method further includes: The encoded data is saved and processed by the Android side to obtain a corresponding final video, which is a video with a preset video format.

8. A video processing device, characterized in that: include: Parameter receiving module, used to receive camera parameters sent by the Android side through the system side; A video acquisition module, configured to control an image acquisition device according to the camera parameters on the system side to acquire a first target video; a watermark adding module, configured to perform watermark adding processing on the first target video through the system side to obtain a second target video; A video sending module is used to send the second target video to the Android side through the system side.

9. A video processing device, characterized in that: include: processor; a memory for storing executable instructions; The processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the video processing method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that The storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the video processing method according to any one of claims 1 to 7.

11. A vehicle, characterized in that: The video processing apparatus according to claim 8 or the video processing device according to claim 9 or the computer-readable storage medium according to claim 10.