CN114168342A - Video processing method and device, readable medium and electronic equipment - Google Patents

Video processing method and device, readable medium and electronic equipment Download PDF

Info

Publication number
CN114168342A
CN114168342A CN202111536739.0A CN202111536739A CN114168342A CN 114168342 A CN114168342 A CN 114168342A CN 202111536739 A CN202111536739 A CN 202111536739A CN 114168342 A CN114168342 A CN 114168342A
Authority
CN
China
Prior art keywords
thread
processing
processing result
image
video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111536739.0A
Other languages
Chinese (zh)
Inventor
胡园园
付俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Huazhong Tianqin Defense Technology Co ltd
Original Assignee
Wuhan Huazhong Tianqin Defense Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Huazhong Tianqin Defense Technology Co ltd filed Critical Wuhan Huazhong Tianqin Defense Technology Co ltd
Priority to CN202111536739.0A priority Critical patent/CN114168342A/en
Publication of CN114168342A publication Critical patent/CN114168342A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5017Task decomposition

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Image Processing (AREA)

Abstract

The invention provides a video processing method, a video processing device, a readable medium and electronic equipment. According to the technical scheme provided by the invention, at least two threads are adopted to carry out parallel processing on the input video image, so that the bottom multi-core resource can be fully utilized, the output frame frequency of the video image recognition result is improved, and the problems of unsmooth display and unsmooth display of the output result are solved.

Description

Video processing method and device, readable medium and electronic equipment
Technical Field
The invention relates to the technical field of image processing, in particular to a video processing method, a video processing device, a readable medium and electronic equipment.
Background
Currently, for a single-channel video, a serial method is generally adopted to process the single-channel video, and a result is output to a display screen. For example, when a video image is input into an Atlas board card to perform a target recognition task, the YOLOv3 algorithm deployed on Atlas usually adopts a mode of sequentially executing an algorithm flow, so that the processing frame frequency of target recognition is difficult to reach the frame frequency of video input (the video input frame frequency is generally not less than 30Hz), and the output result is not smoothly displayed.
Disclosure of Invention
The invention aims to provide a video processing method, a video processing device, a readable medium and electronic equipment, which are used for improving the output frame frequency of a video image recognition result and solving the problems of unsmooth display and unsmooth display of the output result.
In order to achieve the above object, an embodiment of the present invention provides a video processing method, where the method includes:
performing parallel processing on an input video image by adopting at least two threads to obtain a processing result of the video image;
wherein each thread is deployed with a functional module split according to the processing process of the video image.
Optionally, the at least two threads are three threads, and are denoted as a first thread, a second thread, and a third thread, and the step of performing parallel processing on the input video image by using the at least two threads to obtain the processing result of the video image includes:
starting the first thread, the second thread and the third thread to enable the first thread, the second thread and the third thread to run in parallel;
the first thread reads the video image according to frames and processes each read frame of image to obtain a first processing result of each frame of image;
the second thread processes each first processing result to obtain a second processing result of each frame of the image;
and the third thread processes each second processing result to obtain a third processing result of each frame of image, namely the processing result of the video image.
Optionally, the method further comprises:
the second thread receives each first processing result and stores the first processing result in a first processing result queue;
the step of processing each first processing result by the second thread includes: the second thread acquires each first processing result from the first processing result queue and processes each first processing result;
before the step of processing each of the first processing results by the second thread, the method further comprises: and the second thread finishes the second thread under the condition that the first processing result queue is judged to be empty and the first thread finishes.
Optionally, the method further comprises:
and the second thread waits for the first thread to transmit the first processing result under the condition that the first processing result queue is judged to be empty and the first thread is not finished.
Optionally, the method further comprises:
the third thread receives each second processing result and stores the second processing result in a second processing result queue;
the step of processing each second processing result by the third thread includes: the third thread acquires each second processing result from the second processing result queue and processes each second processing result;
before the step of processing each second processing result by the third thread, the method further includes: and the third thread finishes the third thread under the condition that the second processing result queue is judged to be empty and the second thread finishes.
Optionally, the method further comprises:
and the third thread waits for the second thread to transmit the second processing result under the condition that the second processing result queue is judged to be empty and the second thread is not finished.
Optionally, the first thread is deployed with a preprocessing function module, the second thread is deployed with an inference function module, and the third thread is deployed with a post-processing function module;
the step of processing each frame of read image by the first thread to obtain a first processing result of each frame of image comprises the following steps: the first thread carries out preprocessing including size scaling and color gamut conversion on each frame of image to obtain a first processing result of each frame of image;
the second thread processes each first processing result to obtain a second processing result of each frame of the image, and the step of obtaining the second processing result of each frame of the image comprises the following steps: the second thread carries out reasoning on each first processing result to obtain a second processing result of each frame of image;
the third thread processes each second processing result, and the step of obtaining a third processing result of each frame of the image includes: and the third thread performs post-processing including result coordinate conversion and non-maximum suppression on each second processing result to obtain a third processing result of each frame of image.
An embodiment of the present invention further provides a video processing apparatus, including:
the parallel processing module is used for carrying out parallel processing on the input video image by adopting at least two threads to obtain a processing result of the video image;
wherein each thread is deployed with a functional module split according to the processing process of the video image.
Embodiments of the present invention also provide a computer readable medium, on which a computer program is stored, which when executed by a processing apparatus, implements the steps of the above method.
An embodiment of the present invention further provides an electronic device, including:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to implement the steps of the above method.
By adopting the technical scheme, the input video images are processed in parallel by adopting at least two threads, so that the bottom multi-core resources can be fully utilized, the output frame frequency of the video image recognition result is improved, and the problems of unsmooth display and unsmooth blocking of the output result are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart of a video processing method according to an embodiment of the present invention.
Fig. 2 is a flowchart of another video processing method according to an embodiment of the present invention.
Fig. 3 is a block diagram of a video processing apparatus according to an embodiment of the present invention.
Fig. 4 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and the embodiments of the present invention are illustrative only and are not intended to limit the scope of the present invention.
It should be understood that the various steps recited in the method embodiments of the present invention may be performed in a different order and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the invention is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "an embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Other surgical electrical signals. The relevant definitions of the words will be provided in the description below.
It is noted that references to "a", "an", and "the" modifications in the present invention are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that reference to "one or more" unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present invention are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
After finding out the problem that the YOLOv3 algorithm deployed on Atlas handles video images and outputs a result display card in a mode of sequentially executing algorithm flows, the inventor proposes the following inventive concept in consideration of that Atlas is a domestic embedded platform with a multi-core ARM + AI core architecture: preprocessing, reasoning and post-processing in the YOLOv3 algorithm are divided into three modules in Atlas, the three modules are deployed in three threads, input video images are processed in parallel, bottom multi-core resources are fully utilized, the output frame frequency of video image recognition results is improved, the method can be expanded to the condition of multi-path video input, and can be expanded to embedded platforms of other multi-core architectures and other algorithms.
Based on this, the embodiment of the present invention provides a video processing method. Fig. 1 is a flow chart illustrating a video processing method according to an embodiment of the present invention. As shown in fig. 1, the method comprises the steps of:
and step S10, performing parallel processing on the input video image by adopting at least two threads to obtain the processing result of the video image.
Wherein each thread is deployed with a functional module split according to the processing process of the video image. For example, the processing of video images: in order to perform preprocessing, reasoning and post-processing on the video image by using the YOLOv3 algorithm, the at least two threads may be three threads, and the three threads are respectively provided with a preprocessing module, a reasoning module and a post-processing module.
By adopting the technical scheme, the input video images are processed in parallel by adopting at least two threads, so that the bottom multi-core resources can be fully utilized, the output frame frequency of the video image recognition result is improved, and the problems of unsmooth display and unsmooth blocking of the output result are solved.
As shown in fig. 2, optionally, the at least two threads are three threads, which are denoted as a first thread, a second thread and a third thread, and step S10 includes:
and step S11, starting the first thread, the second thread and the third thread, and enabling the first thread, the second thread and the third thread to run in parallel.
Step S12, the first thread reads the video image frame by frame, and processes each frame of the read image to obtain a first processing result of each frame of the image.
Step S13, the second thread processes each first processing result to obtain a second processing result of each frame of the image.
Step S14, the third thread processes each second processing result to obtain a third processing result of each frame of the image, that is, the processing result of the video image.
Assume that the processing time length of the first thread for each frame of image read is t1, the processing time length of the second thread for each first processing result is t2, and the processing time length of the third thread for each second processing result is t 3.
Then, with the prior art, the duration of the serial processing of the single-frame image is:
T1=t1+t2+t3
the resulting output interval duration of the video image serial processing is:
D1=t1+t2+t3
by adopting the scheme provided by the embodiment of the invention, the time length of the parallel processing of the single-frame image is as follows:
T2=t1+t2+t3+Δt
where Δ t represents the sum of the message passing time for the first thread to pass the first processing result to the second thread and for the second thread to pass the second processing result to the third thread, i.e. the time loss caused by message passing among the first thread, the second thread and the third thread, is generally much less than t1, t2 and t 3.
Because the first thread, the second thread and the third thread are processed in parallel, the time length of the output interval of the result of the video image parallel processing is as follows:
D2=max{t1,t2,t3}
compared with a video (sequential) serial processing method, the parallel processing method provided by the embodiment of the invention has the advantages that the time for processing a single-frame image only increases the time consumption for message transmission between threads, is far shorter than the processing time of each thread, can be ignored, the output interval time of the image recognition result is greatly reduced, and the fluency of output display is increased.
When more than one video image is input, the processing process of each video image is divided into three threads to be processed in parallel, under the condition that bottom hardware computing resources are abundant, the multi-path video processing time and the output interval time of the method provided by the embodiment of the invention are the same as the time consumed by a single-path video, and the processing time and the output interval time of the multi-path video processed in series are increased linearly.
Optionally, the method further comprises:
and under the condition that the first thread judges that no video image is input, ending the first thread.
By the technical scheme, the first thread is ended under the condition of no video image input, and the occupation of computing resources is avoided. On the contrary, if the first thread determines that a video image is input, the first thread performs step S12.
Optionally, the method further comprises:
the second thread receives each of the first processing results and stores in a first processing result queue.
Step S13 includes: and the second thread acquires each first processing result from the first processing result queue and processes each first processing result.
Prior to step S13, the method further comprises: and the second thread finishes the second thread under the condition that the first processing result queue is judged to be empty and the first thread finishes.
Optionally, the method further comprises: if the second thread determines that the first processing result queue is not empty, step S13 is executed.
Optionally, the method further comprises: and the second thread waits for the first thread to transmit the first processing result under the condition that the first processing result queue is judged to be empty and the first thread is not finished.
According to the technical scheme, a first processing result queue is arranged to buffer first processing results, the second thread judges whether the first processing result queue is empty before processing each time, and acquires each first processing result from the first processing result queue and processes each first processing result when judging that the first processing result queue is not empty; when the first processing result queue is judged to be empty, whether the first thread is finished or not is judged; if the first thread is not finished, the second thread waits for the first thread to transmit the first processing result; and if the first thread is finished, finishing the second thread.
Optionally, the method further comprises:
the third thread receives each second processing result and stores the second processing result in a second processing result queue;
step S14 includes: the third thread acquires each second processing result from the second processing result queue and processes each second processing result;
prior to step S14, the method further comprises: and the third thread finishes the third thread under the condition that the second processing result queue is judged to be empty and the second thread finishes.
Optionally, the method further comprises: if the third thread determines that the second processing result queue is not empty, step S14 is executed.
Optionally, the method further comprises:
and the third thread waits for the second thread to transmit the second processing result under the condition that the second processing result queue is judged to be empty and the second thread is not finished.
According to the technical scheme, a second processing result queue is arranged to buffer second processing results, the third thread judges whether the second processing result queue is empty before each processing, and acquires each second processing result from the second processing result queue and processes each second processing result when judging that the second processing result queue is not empty; when the second processing result queue is judged to be empty, whether the second thread is finished or not is judged; if the second thread is not finished, the third thread waits for the second thread to transmit the second processing result; and if the second thread is finished, finishing a third thread.
Optionally, in the above method, the first thread is deployed with a preprocessing function module, the second thread is deployed with an inference function module, and the third thread is deployed with a post-processing function module. Step S12 includes: and the first thread carries out preprocessing comprising size scaling and color gamut conversion on each frame of image to obtain a first processing result of each frame of image. Step S13 includes: and the second thread carries out reasoning on each first processing result to obtain a second processing result of each frame of image. Step S14 includes: and the third thread performs post-processing including result coordinate conversion and non-maximum suppression on each second processing result to obtain a third processing result of each frame of image.
The technical scheme can be based on an Atlas embedded platform containing multi-core arm, the YOLOv3 algorithm is adopted to process the video image, and the video image is divided into a preprocessing function module, an inference function module and a post-processing function module according to preprocessing, inference and post-processing in the YOLOv3 algorithm to be respectively deployed in a first thread, a second thread and a third thread.
Based on the above inventive concept, the embodiment of the present invention further provides a video processing apparatus. As shown in fig. 3, the video processing apparatus includes:
and the parallel processing module is used for carrying out parallel processing on the input video image by adopting at least two threads to obtain a processing result of the video image.
Wherein each thread is deployed with a functional module split according to the processing process of the video image.
By adopting the technical scheme, the input video images are processed in parallel by adopting at least two threads, so that the bottom multi-core resources can be fully utilized, the output frame frequency of the video image recognition result is improved, and the problems of unsmooth display and unsmooth blocking of the output result are solved.
Optionally, the at least two threads are three threads, which are denoted as a first thread, a second thread, and a third thread, and the parallel processing module includes:
and the starting submodule is used for starting the first thread, the second thread and the third thread to enable the first thread, the second thread and the third thread to run in parallel.
The first processing submodule is used for enabling the first thread to read the video image according to frames and process each read frame of image to obtain a first processing result of each frame of image;
the second processing submodule is used for enabling the second thread to process each first processing result to obtain a second processing result of each frame of image;
and the third processing submodule is used for enabling the third thread to process each second processing result to obtain a third processing result of each frame of image, and the processing result of the video image is obtained.
Optionally, the apparatus further comprises:
the first processing result queue cache module is used for enabling the first thread to receive each first processing result and store the first processing result in the first processing result queue;
a second processing sub-module, configured to enable the second thread to obtain each first processing result from the first processing result queue, and process each first processing result;
the device further comprises a first judgment sub-module, wherein the first judgment sub-module is used for enabling the second thread to end under the condition that the first processing result queue is judged to be empty and the first thread is ended.
Optionally, the first determining sub-module is further configured to enable the second thread to wait for the first thread to transfer the first processing result when it is determined that the first processing result queue is empty and the first thread is not finished.
Optionally, the apparatus further comprises:
and the second processing result queue buffer module is used for enabling the third thread to receive each second processing result and store the second processing result in a second processing result queue.
A third processing sub-module, configured to enable the third thread to obtain each second processing result from the second processing result queue, and process each second processing result;
the device further comprises a second judgment sub-module, which is used for enabling the third thread to end the third thread under the condition that the second processing result queue is judged to be empty and the second thread is ended.
Optionally, the second determining sub-module is further configured to enable the third thread to wait for the second thread to transfer the second processing result when it is determined that the second processing result queue is empty and the second thread is not finished.
Optionally, the first thread is deployed with a preprocessing function module, the second thread is deployed with an inference function module, and the third thread is deployed with a post-processing function module.
The first processing submodule is specifically configured to enable the first thread to perform preprocessing including size scaling and color gamut conversion on each frame of the image to obtain a first processing result of each frame of the image;
the second processing submodule is specifically configured to enable the second thread to perform inference on each first processing result to obtain a second processing result of each frame of the image;
the third processing submodule is specifically configured to enable the third thread to perform post-processing including result coordinate conversion and non-maximum suppression on each second processing result to obtain a third processing result of each frame of the image.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Based on the above inventive concept, embodiments of the present invention also provide a computer-readable storage medium on which a computer program is stored, which, when executed by a processor, implements the steps of the video processing method.
Based on the inventive concept, the embodiment of the invention also provides the electronic equipment. Fig. 4 is a block diagram illustrating an electronic device 700 according to an example embodiment. As shown in fig. 4, the electronic device 700 may include: a processor 701 and a memory 702. The electronic device 700 may also include one or more of a multimedia component 703, an input/output (I/O) interface 704, and a communication component 705.
The processor 701 is configured to control the overall operation of the electronic device 700, so as to complete all or part of the steps in the video processing method. The memory 702 is used to store various types of data to support operation at the electronic device 700, such as instructions for any application or method operating on the electronic device 700 and application-related data, such as contact data, transmitted and received messages, pictures, audio, video, and the like. The Memory 702 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk, or optical disk. The multimedia components 703 may include screen and audio components. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 702 or transmitted through the communication component 705. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 704 provides an interface between the processor 701 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 705 is used for wired or wireless communication between the electronic device 700 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, which is not limited herein. The corresponding communication component 705 may thus include: Wi-Fi module, Bluetooth module, NFC module, etc.
In an exemplary embodiment, the electronic Device 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the video Processing method described above.
In another exemplary embodiment, there is also provided a computer readable storage medium comprising program instructions which, when executed by a processor, implement the steps of the video processing method described above. For example, the computer readable storage medium may be the memory 702 described above comprising program instructions executable by the processor 701 of the electronic device 700 to perform the video processing method described above.
In another exemplary embodiment, a computer program product is also provided, which comprises a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-mentioned video processing method when executed by the programmable apparatus.
The preferred embodiments of the present invention have been described in detail with reference to the accompanying drawings, however, the present invention is not limited to the specific details of the above embodiments, and various simple modifications can be made to the technical solution of the present invention within the technical idea of the present invention, and these simple modifications are within the protective scope of the present invention.
It should be noted that the various technical features described in the above embodiments can be combined in any suitable manner without contradiction, and the invention is not described in any way for the possible combinations in order to avoid unnecessary repetition.
In addition, any combination of the various embodiments of the present invention is also possible, and the same should be considered as the disclosure of the present invention as long as it does not depart from the spirit of the present invention.

Claims (10)

1. A method of video processing, the method comprising:
performing parallel processing on an input video image by adopting at least two threads to obtain a processing result of the video image;
wherein each thread is deployed with a functional module split according to the processing process of the video image.
2. The video processing method according to claim 1, wherein the at least two threads are three threads, denoted as a first thread, a second thread and a third thread, and the step of processing the input video image in parallel by using the at least two threads to obtain the processing result of the video image comprises:
starting the first thread, the second thread and the third thread to enable the first thread, the second thread and the third thread to run in parallel;
the first thread reads the video image according to frames and processes each read frame of image to obtain a first processing result of each frame of image;
the second thread processes each first processing result to obtain a second processing result of each frame of the image;
and the third thread processes each second processing result to obtain a third processing result of each frame of image, namely the processing result of the video image.
3. The video processing method of claim 2, wherein the method further comprises:
the second thread receives each first processing result and stores the first processing result in a first processing result queue;
the step of processing each first processing result by the second thread includes: the second thread acquires each first processing result from the first processing result queue and processes each first processing result;
before the step of processing each of the first processing results by the second thread, the method further comprises: and the second thread finishes the second thread under the condition that the first processing result queue is judged to be empty and the first thread finishes.
4. The video processing method of claim 3, wherein the method further comprises:
and the second thread waits for the first thread to transmit the first processing result under the condition that the first processing result queue is judged to be empty and the first thread is not finished.
5. The video processing method of claim 2, wherein the method further comprises:
the third thread receives each second processing result and stores the second processing result in a second processing result queue;
the step of processing each second processing result by the third thread includes: the third thread acquires each second processing result from the second processing result queue and processes each second processing result;
before the step of processing each second processing result by the third thread, the method further includes: and the third thread finishes the third thread under the condition that the second processing result queue is judged to be empty and the second thread finishes.
6. The video processing method of claim 5, wherein the method further comprises:
and the third thread waits for the second thread to transmit the second processing result under the condition that the second processing result queue is judged to be empty and the second thread is not finished.
7. The video processing method according to claims 2-6, wherein the first thread is deployed with a pre-processing function module, the second thread is deployed with an inference function module, and the third thread is deployed with a post-processing function module;
the step of processing each frame of read image by the first thread to obtain a first processing result of each frame of image comprises the following steps: the first thread carries out preprocessing including size scaling and color gamut conversion on each frame of image to obtain a first processing result of each frame of image;
the second thread processes each first processing result to obtain a second processing result of each frame of the image, and the step of obtaining the second processing result of each frame of the image comprises the following steps: the second thread carries out reasoning on each first processing result to obtain a second processing result of each frame of image;
the third thread processes each second processing result, and the step of obtaining a third processing result of each frame of the image includes: and the third thread performs post-processing including result coordinate conversion and non-maximum suppression on each second processing result to obtain a third processing result of each frame of image.
8. A video processing apparatus, comprising:
the parallel processing module is used for carrying out parallel processing on the input video image by adopting at least two threads to obtain a processing result of the video image;
wherein each thread is deployed with a functional module split according to the processing process of the video image.
9. A computer-readable medium, on which a computer program is stored, characterized in that the program, when being executed by processing means, carries out the steps of the method of any one of claims 1 to 7.
10. An electronic device, comprising:
a storage device having a computer program stored thereon;
processing means for executing the computer program in the storage means to carry out the steps of the method according to any one of claims 1 to 7.
CN202111536739.0A 2021-12-15 2021-12-15 Video processing method and device, readable medium and electronic equipment Pending CN114168342A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111536739.0A CN114168342A (en) 2021-12-15 2021-12-15 Video processing method and device, readable medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111536739.0A CN114168342A (en) 2021-12-15 2021-12-15 Video processing method and device, readable medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN114168342A true CN114168342A (en) 2022-03-11

Family

ID=80486791

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111536739.0A Pending CN114168342A (en) 2021-12-15 2021-12-15 Video processing method and device, readable medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114168342A (en)

Similar Documents

Publication Publication Date Title
US10783364B2 (en) Method, apparatus and device for waking up voice interaction function based on gesture, and computer readable medium
CN113313064B (en) Character recognition method and device, readable medium and electronic equipment
US10810413B2 (en) Wakeup method, apparatus and device based on lip reading, and computer readable medium
US20220058772A1 (en) Image Processing Method and Device
US11514263B2 (en) Method and apparatus for processing image
CN110555334B (en) Face feature determination method and device, storage medium and electronic equipment
CN110059623B (en) Method and apparatus for generating information
KR20130102083A (en) Method and apparatus for providing hand detection
JP2022509191A (en) Video decoding control methods, devices, electronic devices and storage media
US11671678B2 (en) Method and device, equipment, and storage medium for data processing
CN112530205A (en) Airport parking apron airplane state detection method and device
CN112418389A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN112651248B (en) Scanning translation method and device, scanning pen and related products
US20200326770A1 (en) Sleep management method and device, and computer storage medium
CN115469816B (en) Method, device, equipment and storage medium for switching reading and writing of memory
CN114168342A (en) Video processing method and device, readable medium and electronic equipment
CN107729136B (en) Processing priority configuration method and device based on FPGA
CN113316022B (en) Video playing method, device, equipment, system and storage medium
CN114187169A (en) Method, device and equipment for generating video special effect package and storage medium
CN113436062A (en) Image style migration method and device, electronic equipment and storage medium
US10904536B2 (en) Frame processing method and device
CN111444022B (en) Data processing method, system and electronic equipment
CN117891377B (en) Display method and electronic equipment
KR20190106550A (en) Apparatus and method for providing service
CN112887758B (en) Video processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination