CN-116155885-B - Service separation platform and service separation device based on video service
Abstract
The application provides a service separation platform based on video service and a service separation device. The intelligent service layer is used for sending task instructions to the intelligent service layer, sending data requests to the video service layer according to the task instructions, the video service layer is used for sending data to be processed to the intelligent service layer based on the data requests, the intelligent service layer is used for processing the data to be processed according to an intelligent algorithm designated by the task instructions, generating algorithm results and sending the algorithm results to the video service layer, and the video service layer is used for completing drawing operation on the algorithm results according to drawing instructions of the application layer and returning drawing results of the algorithm results to the application layer. Through the mode, the service separation platform decouples common functions such as video data management and capture and the like from services, the level is more clear, the code maintenance amount is less, the function expansion is easier to carry out, the new platform is built more quickly and efficiently, the code multiplexing rate between the platforms is higher, and the integration of service resources of a finished product line is facilitated.
Inventors
- SONG ZHONGHAO
- YU XIANG
- HUANG PENG
- CEN XIN
- WANG RUONAN
Assignees
- 浙江大华技术股份有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20221230
Claims (9)
- 1. A service separation platform based on video services, the service separation platform comprising: the application layer is used for sending task instructions to the intelligent service layer; the intelligent service layer is used for sending a data request to the video service layer according to the task instruction; the video service layer is used for sending data to be processed to the intelligent service layer based on the data request; The intelligent service layer is used for processing the data to be processed according to an intelligent algorithm specified by the task instruction, generating an algorithm result and sending the algorithm result to the video service layer; the video service layer is used for completing the image capture operation on the algorithm result according to the image capture instruction of the application layer and returning the image capture result of the algorithm result to the application layer; The video service layer comprises a service and interaction layer and a data and capture management layer; The service and interaction layer is used for providing a public video function of the video service layer and performing data interaction with the application layer, wherein the public video function comprises one or more video functions of shielding detection, virtual focus detection, encoding, code stream packing and analog output; The data and capture management layer is used for carrying out data management and capture operation, wherein the data and capture management layer is used for encoding a first image from a video stream according to a capture frame number in the capture instruction, carrying out matting on the video stream by utilizing the algorithm result to obtain a matted video stream, and encoding a second image; the video service layer also comprises a platform packaging layer; The platform packaging layer is used for providing a unified transmission interface for the intelligent service layer; the video service layer also comprises a configuration management layer; The configuration management layer is used for providing configuration information for the service and interaction layer, the data and capture management layer and the platform packaging layer.
- 2. The service separation platform of claim 1, wherein, And the application layer is used for judging whether the image capture condition is met according to the algorithm result returned by the intelligent service layer and judging whether the image capture condition is met according to the algorithm result, and if so, sending an image capture instruction to the video service layer.
- 3. The service separation platform of claim 2, wherein, The video service layer is used for encoding the corresponding image according to the capture frame number in the capture instruction, superposing the algorithm result on the image and returning the image of the superposition algorithm result to the application layer.
- 4. The service separation platform of claim 3, wherein, The service and interaction layer is used for acquiring the capture instruction from the application layer and sending the capture instruction to the data and capture management layer.
- 5. The service separation platform of claim 4, wherein, The configuration information comprises configuration information of acquisition resolution, coding format, coding resolution and/or dynamic detection resolution of the platform packaging layer, configuration information of interface enabling configuration and capability set configuration of the service and interaction layer, and configuration information of coding schemes of the data and capture management layer, circulation quantity of video stream data in a queue, cache quantity of images and/or cache quantity of video stream data in the queue.
- 6. The service separation platform of claim 3, wherein, The service and interaction layer is used for providing the public video function of the video service layer.
- 7. The service separation platform of claim 1, wherein, The service separation platform further comprises a display layer; The display layer is used for receiving the capture result of the algorithm result of the application layer, wherein the application layer adjusts the image parameters and/or the image format of the capture result of the algorithm result.
- 8. The service separation platform of claim 7, wherein, The display layer is used for sending setting information of the working mode to the application layer; the application layer is used for sending a task instruction to the intelligent service layer according to the setting information of the working mode, the task instruction comprises a working mode of a capture function, and the working mode comprises real-time capture or non-real-time capture.
- 9. A service separation device, characterized in that the service separation device is equipped with the service separation platform according to any one of claims 1 to 8, through which service processing is performed on video/images.
Description
Service separation platform and service separation device based on video service Technical Field The present application relates to the field of video processing technologies, and in particular, to a service separation platform and a service separation device based on video services. Background With the continuous development of deep learning technology, more and more artificial intelligence algorithms are deployed in mobile terminals, embedded terminals and other devices, and make an important contribution to realizing digital and intelligent industry upgrading in various industries. With the popularization of intelligent network cameras, the tasks of video data analysis and processing are continuously advanced, and the requirements on the front-end processing capacity of the network cameras are higher and higher. In many scenarios, the video data information is very complex, which is a great challenge for real-time analysis and processing of video data, so how to implement a more efficient and safe video service module in intelligent service is a problem facing the industry. The complete business solution usually needs the support of multiple intelligent algorithms, the input and output of the various algorithms are mutually dependent, and the finally obtained intelligent algorithm result provides a data base for upper-layer application development. In the current service solution, the scheduling of the video data and the intelligent algorithms are coupled together, each intelligent algorithm manages the video data, one algorithm is easy to be used, and the other algorithm releases the data, so that the problem of algorithm data access errors is caused. Secondly, if the intelligent algorithms are copied when video data is used, a large amount of equipment memory is occupied, so that memory waste is caused, and the memory use efficiency is reduced. Disclosure of Invention The application provides a service separation platform based on video service and a service separation device. The application provides a service separation platform based on video service, which comprises: the application layer is used for sending task instructions to the intelligent service layer; the intelligent service layer is used for sending a data request to the video service layer according to the task instruction; the video service layer is used for sending data to be processed to the intelligent service layer based on the data request; The intelligent service layer is used for processing the data to be processed according to an intelligent algorithm specified by the task instruction, generating an algorithm result and sending the algorithm result to the video service layer; The video service layer is used for completing the image capture operation on the algorithm result according to the image capture instruction of the application layer and returning the image capture result of the algorithm result to the application layer. And the application layer is used for judging whether the image capture condition is met according to the algorithm result returned by the intelligent service layer and judging whether the image capture condition is met according to the algorithm result, and if so, sending an image capture instruction to the video service layer. The video service layer is used for encoding corresponding images according to the capture frame numbers in the capture instructions, superposing the algorithm results on the images and returning the images with the superposed algorithm results to the application layer. The video service layer comprises a service and interaction layer and a data and capture management layer; The service and interaction layer is used for acquiring the capture instruction from the application layer and sending the capture instruction to the data and capture management layer; The data and capture management layer is used for encoding a first image from a video stream according to the capture frame number in the capture instruction, carrying out image matting on the video stream by utilizing the algorithm result to obtain a matted video stream and encoding a second image, superposing the second image on the first image, and calling a callback function of the application layer through the service and interaction layer to return a superposed image to the application layer. Wherein the video service layer further comprises a platform packaging layer; and the platform packaging layer is used for providing a unified transmission interface for the intelligent service layer. Wherein the video service layer further comprises a configuration management layer; The configuration management layer is used for providing configuration information for the platform packaging layer, the service and interaction layer and the data and capture management layer; The configuration information comprises configuration information of acquisition resolution, coding format, coding resolution and/or dynamic detection resolution of