CN111314624A - Preview picture generation method, device, hard disk video recorder and storage medium - Google Patents

Preview picture generation method, device, hard disk video recorder and storage medium Download PDF

Info

Publication number
CN111314624A
CN111314624A CN201811510357.9A CN201811510357A CN111314624A CN 111314624 A CN111314624 A CN 111314624A CN 201811510357 A CN201811510357 A CN 201811510357A CN 111314624 A CN111314624 A CN 111314624A
Authority
CN
China
Prior art keywords
resolution
split screen
picture
preview
target
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.)
Granted
Application number
CN201811510357.9A
Other languages
Chinese (zh)
Other versions
CN111314624B (en
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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201811510357.9A priority Critical patent/CN111314624B/en
Publication of CN111314624A publication Critical patent/CN111314624A/en
Application granted granted Critical
Publication of CN111314624B publication Critical patent/CN111314624B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus

Abstract

The embodiment of the application provides a preview image generation method and device, a hard disk video recorder and a storage medium, wherein the method comprises the following steps: acquiring the equipment resolution of display equipment connected with an appointed output port, and acquiring split screen information of a preview picture to be output of the appointed output port, wherein the split screen information represents the split screen picture division condition in the preview picture; determining the target resolution of each split screen picture in the preview picture according to the equipment resolution and the split screen information, wherein the equipment resolution is positively correlated with the target resolution of each split screen picture; and generating an output code stream of the preview picture according to the target resolution of each split screen picture. In the preview image generation method in the embodiment of the application, the resolution of the preview image is determined according to the resolution of the device and the split screen information, so that the transmission bandwidth of the code stream can be reduced, the processing pressure of the hard disk video recorder is reduced, and the device performance consumed by previewing is greatly saved, thereby meeting the requirement of previewing simultaneously through multiple output ports and reducing the device cost.

Description

Preview picture generation method, device, hard disk video recorder and storage medium
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a preview screen generating method and apparatus, a hard disk video recorder, and a storage medium.
Background
The hard disk Recorder mainly includes a DVR (Digital Video Recorder), an NVR (Network Video Recorder), and the like. The hard disk video recorder can process and output the image collected by the image collecting device.
In the related art, an image capturing device, such as a network camera, outputs a captured image as a plurality of code streams with different resolutions. After receiving the code streams of the image acquisition devices, when outputting the synthesized picture, the hard disk video recorder determines which resolution ratio code streams form the synthesized picture according to the arrangement of the split screens in the synthesized picture. For example, as shown in fig. 1, when the hard disk recorder outputs 6 split screens of the composite picture, a main code stream preview with high resolution is adopted for the main picture, and a sub code stream preview with low resolution is adopted for the small pictures 1-5. Therefore, the transmission bandwidth is saved, and the processing pressure of the hard disk video recorder is reduced.
However, the inventor finds in research that in the actual image preview process, the resolution of the display device may be smaller than the resolution of the synthesized picture, and in this case, even if the resolution of the synthesized picture is high, the display effect cannot be effectively improved, and the code stream transmission bandwidth may be increased, and the processing pressure of the hard disk recorder may be increased.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for generating a preview picture, a hard disk video recorder, and a storage medium, so as to reduce a code stream transmission bandwidth and reduce a processing pressure of the hard disk video recorder. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a preview screen generating method, where the method includes:
acquiring the equipment resolution of display equipment connected with a specified output port, and acquiring split screen information of a preview picture to be output by the specified output port, wherein the split screen information represents the split screen picture division condition in the preview picture;
determining the target resolution of each split screen picture in the preview picture according to the equipment resolution and the split screen information, wherein the equipment resolution is positively correlated with the target resolution of each split screen picture;
and generating an output code stream of the preview picture according to the target resolution of each split screen picture.
Optionally, the determining, according to the device resolution and the split screen information, a target resolution of each split screen picture in the preview picture includes:
determining the initial resolution of each split screen picture in the preview picture according to the split screen information;
determining the initial resolution of the preview picture according to the initial resolution of each split screen picture;
judging the initial resolution of the preview picture and the size of the equipment resolution;
and when the initial resolution of the preview picture is greater than the equipment resolution, reducing the resolution of at least one split screen picture in each split screen picture to obtain the target resolution of each split screen picture.
Optionally, when the initial resolution of the preview picture is greater than the device resolution, reducing the resolution of at least one split screen picture in each split screen picture to obtain a target resolution of each split screen picture, including:
when the initial resolution of the preview picture is greater than the resolution of the equipment, selecting a specified resolution mode from preset resolution modes corresponding to the split screen information, wherein the resolution of the specified resolution mode is less than the initial resolution of the preview picture;
and taking the resolution of each split screen picture in the specified resolution mode as the target resolution of each split screen picture.
Optionally, the determining, according to the device resolution and the split screen information, a target resolution of each split screen picture in the preview picture includes:
determining a preset resolution mode corresponding to the preview picture according to the split screen information;
selecting a target resolution mode from the preset resolution modes according to the equipment resolution;
and taking the resolution of each split screen picture in the target resolution mode as the target resolution of each split screen picture.
Optionally, the selecting a target resolution mode from the preset resolution modes according to the device resolution includes:
and according to the resolution of the equipment, selecting a resolution mode corresponding to the preview picture with the resolution closest to the resolution of the equipment from the preset resolution modes to obtain a target resolution mode.
In a second aspect, an embodiment of the present application provides a preview screen generating apparatus, including:
the data acquisition module is used for acquiring the equipment resolution of display equipment connected with a specified output port and acquiring the split screen information of a preview picture to be output by the specified output port, wherein the split screen information represents the split screen picture division condition in the preview picture;
a resolution determination module, configured to determine a target resolution of each split screen image in the preview image according to the device resolution and the split screen information, where the device resolution is positively correlated with the target resolution of each split screen image;
and the code stream generating module is used for generating the output code stream of the preview picture according to the target resolution of each split screen picture.
Optionally, the resolution determining module includes:
a first initial resolution determining submodule, configured to determine an initial resolution of each split screen image in the preview image according to the split screen information;
the second initial resolution determining submodule is used for determining the initial resolution of the preview picture according to the initial resolution of each split screen picture;
the resolution judgment submodule is used for judging the initial resolution of the preview picture and the size of the resolution of the equipment;
and the first target resolution determination submodule is used for reducing the resolution of at least one split screen picture in each split screen picture to obtain the target resolution of each split screen picture when the initial resolution of the preview picture is greater than the equipment resolution.
Optionally, the target resolution determining sub-module includes:
a resolution mode selecting unit, configured to select a specified resolution mode from preset resolution modes corresponding to the split screen information when an initial resolution of the preview picture is greater than the device resolution, where a resolution of the specified resolution mode is smaller than the initial resolution of the preview picture;
and the split-screen resolution determining unit is used for taking the resolution of each split-screen picture in the specified resolution mode as the target resolution of each split-screen picture.
Optionally, the resolution determining module includes:
the resolution mode determining submodule is used for determining a preset resolution mode corresponding to the preview picture according to the split screen information;
the target mode determining submodule is used for selecting a target resolution mode from the preset resolution modes according to the equipment resolution;
and the second target resolution determination submodule is used for taking the resolution of each split screen picture in the target resolution mode as the target resolution of each split screen picture.
Optionally, the target mode determining sub-module is specifically configured to:
and according to the resolution of the equipment, selecting a resolution mode corresponding to the preview picture with the resolution closest to the resolution of the equipment from the preset resolution modes to obtain a target resolution mode.
In a third aspect, an embodiment of the present application provides a hard disk video recorder, including a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to implement the preview screen generating method according to any one of the first aspect described above when executing the program stored in the memory.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and the computer program, when executed by a processor, implements the preview screen generating method according to any of the first aspects.
The preview image generation method and device, the hard disk video recorder and the storage medium provided by the embodiment of the application acquire the equipment resolution of the display equipment connected with the specified output port and acquire the split screen information of the preview image to be output of the specified output port, wherein the split screen information represents the split condition of the split screen image in the preview image; determining the target resolution of each split screen picture in the preview picture according to the equipment resolution and the split screen information, wherein the equipment resolution is positively correlated with the target resolution of each split screen picture; and generating an output code stream of the preview picture according to the target resolution of each split screen picture. Meanwhile, the resolution ratio of the preview picture is determined according to the resolution ratio of the equipment and the split screen information, so that the transmission bandwidth of the code stream can be reduced, the processing pressure of the hard disk video recorder is reduced, and the equipment performance consumed by previewing is greatly saved, thereby meeting the requirement of previewing simultaneously through multiple output ports and reducing the equipment cost. Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a preview screen in an embodiment of the present application;
FIG. 2 is a schematic diagram of an ATM host connected display device according to an embodiment of the present application;
fig. 3 is a schematic diagram of a preview screen generating method according to an embodiment of the present application;
fig. 4 is another schematic diagram of a preview screen generating method according to an embodiment of the present application;
fig. 5 is a schematic diagram of a preview screen generating apparatus according to an embodiment of the present application;
fig. 6 is a schematic diagram of a hard disk recorder according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
First, terms in the embodiments of the present application are explained.
ATM (Automatic Teller Machine) host: the High Definition video recorder is a section based on coaxial High Definition transmission technology, be applied to bank teller machine's special hard disk video recorder, support HDTVI (High Definition Transport video interface, High Definition video transmission interface) High Definition and ordinary simulation camera hybrid access, support the net camera to insert simultaneously, this product breaks through ordinary simulation transmission restriction, realize 1080P High Definition simulation and insert, cooperation front end High Definition pinhole camera, provide simulation High Definition solution for the teller machine, both can the exclusive use, also can the networking constitutes security protection and guard against the system.
And (4) previewing a strategy: in order to save the performance of the device in encoding and decoding, different preview schemes are adopted under different preview split screen modes or different output ports.
LCD (Liquid Crystal Display): the form of the 7-inch liquid crystal touch screen on the ATM host belongs to ATM equipment with output port display.
IPC: IP (Internet Protocol ) Camera abbreviation, webcam.
Homologous output: the video sources output by the finger output ports are the same.
Non-homologous output: the video sources output by the finger output ports are different.
The ATM host sets different output ports for the client to select for use due to the actual client scene requirement, and provides four output ports of LCD, VGA (Video Graphics Array), HDMI (high definition Multimedia Interface), CVBS (Composite Video broadcast Signal or Composite Video broadcasting and Sync) by taking an X-series ATM host as an example, wherein VGA/HDMI belongs to homologous output, and LCD, VGA/HDMI and CVBS belong to three paths of nonhomologous output. The VGA/HDMI and CVBS outputs are provided with corresponding output interfaces by equipment, and a corresponding display is required to be externally connected to complete display; LCD output is taken by equipment itself, has embedded 7 liquid crystal touch-sensitive screens on the equipment front panel, makes things convenient for the customer to also can look over or control device under the condition that does not use other external displays. The device outlet resources are shown in figure 2. All output ports of the ATM host including LCD, VGA/HDMI and CVBS support previewing video source images according to different split screen modes, common split screen modes include 1 split screen, 4 split screen, 6 split screen, 8 split screen, 9 split screen, 16 split screen and the like, and due to performance limitation, equipment generally needs to adopt different previewing strategies under different split screens.
As shown in fig. 1, taking 6-split screen as an example, the output image mode is as follows: the 6 split screens comprise a main screen and 5 small screens, generally, in order to save decoding performance, the main screen is previewed by a main code stream generally, the small screens are previewed by sub-code streams, and compared with the 6 split screens which all adopt the main code stream previewing, about 2/3 of chip decoding performance is saved. Other split screen modes employ similar preview strategies.
However, the preview screen generating method only considers the influence of the split screen mode, and the split screen preview strategy is determined by different split screen modes. The following disadvantages exist: when the resolution of the equipment is low, even if the pictures adopt multi-path split screens and each split screen picture adopts a code stream with high resolution, the display effect is practically the same as that of a code stream with low resolution, and the performance of the equipment is wasted.
In view of this, an embodiment of the present application provides a preview screen generating method, and referring to fig. 3, the method includes:
s301, acquiring the device resolution of a display device connected with a specified output port, and acquiring the split screen information of a preview picture to be output by the specified output port, wherein the split screen information represents the split screen picture division condition in the preview picture.
The preview image generation method in the embodiment of the application can be executed by a hard disk video recorder, and specifically can be executed by an ATM host. The method comprises the steps that the hard disk video recorder obtains the equipment resolution of the display equipment connected with a specified output port, wherein the equipment resolution can be manually input, can also be actively obtained by the hard disk video recorder, and can also be actively reported by the display equipment. The hard disk video recorder can also acquire the split screen information of the preview picture to be output from the appointed output port. The split screen information represents the split screen image division conditions in the preview image, and comprises 1 split screen, 4 split screens, 6 split screens, 8 split screens, 9 split screens, 16 split screens and the like.
And S302, determining the target resolution of each split screen picture in the preview picture according to the equipment resolution and the split screen information, wherein the equipment resolution is positively correlated with the target resolution of each split screen picture.
And the hard disk video recorder determines the target resolution of each split screen picture in the preview picture according to the equipment resolution and the split screen information. The resolution of the preview picture is positively correlated with the resolution of the device, that is, when the resolution of the device is higher, the resolution of the preview picture is also higher.
Optionally, in step S302, determining a target resolution of each split screen image in the preview image according to the device resolution and the split screen information, where the determining includes:
s3021, determining an initial resolution of each of the split screens in the preview screen according to the split screen information.
The hard disk video recorder can determine the initial resolution of each split screen picture in the preview picture according to a method for determining the resolution of each split screen picture through the related split screen information. For example, taking 6 split screens as shown in fig. 1 as an example, the 6 split screens include a main screen and 5 small screens, the main screen uses a main code stream, and the small screens use sub-code streams. The main code stream refers to a code stream with high resolution transmitted by the image acquisition equipment, and the sub-code stream refers to a code stream with low resolution transmitted by the image acquisition equipment. The existing image collecting device outputs the collected image into a plurality of code streams with different resolutions, for example, the image collecting device outputs three code streams of the collected image data, including a resolution of a main code stream of 1080P, a resolution of a sub-code stream 1 of 720P, and a resolution of a sub-code stream 2 of 480P.
S3022, determining the initial resolution of the preview screen according to the initial resolution of each of the split screens.
S3023, the size of the initial resolution of the preview screen and the size of the device resolution are determined.
And comparing the initial resolution of the preview picture with the resolution of the equipment by the hard disk video recorder, and when the initial resolution of the preview picture is not more than the resolution of the equipment, directly taking the initial resolution of the split screen picture as the target resolution of the split screen picture aiming at each split screen picture in the preview picture.
S3024, when the initial resolution of the preview screen is greater than the device resolution, reducing the resolution of at least one of the split screens to obtain a target resolution of each of the split screens.
When the initial resolution of the preview picture is larger than the resolution of the equipment, the hard disk video recorder reduces the resolution of at least one split screen picture in each split screen picture so as to achieve the purpose of reducing the resolution of the preview picture. The hard disk video recorder can reduce the resolution of the split screen pictures according to actual requirements, for example, the resolution of each small picture is reduced under the condition that the resolution of the main picture is not changed; or to reduce the resolution of both the main picture and the small picture. Optionally, the resolution of the split screen images may be reduced one by one according to a preset priority order until the resolution of the preview image is not greater than the resolution of the device, or the resolution of the preview image is just greater than the resolution of the device. The fact that the resolution of the preview picture is just greater than the resolution of the equipment means that the resolution of the current preview picture is the equipment resolution, and after the resolution of any split screen picture in the current preview picture is reduced, the resolution of the preview picture is smaller than the equipment resolution. The preset priority order may be set according to actual situations, for example, the priority may be set to gradually increase from a small screen to a large screen, or the priority may be set according to the importance of the monitoring position of the split screen image from high to low, or may be set according to a priority order specified by another user.
And S303, generating an output code stream of the preview picture according to the target resolution of each split screen picture.
And the hard disk video recorder generates an output code stream of the preview picture according to the target resolution of each split screen picture. And the hard disk video recorder outputs the output code stream of the preview picture to the display equipment through the appointed output port.
In the embodiment of the application, the resolution of the preview picture is determined according to the resolution of the device and the split screen information, so that the transmission bandwidth of the code stream can be reduced, the processing pressure of the hard disk video recorder is reduced, the performance of the device consumed by previewing is greatly saved, the requirement of previewing in multiple output ports simultaneously is met, and the cost of the device is reduced.
Optionally, in a possible implementation manner, in step S3024, when the initial resolution of the preview screen is greater than the device resolution, the reducing the resolution of at least one split screen of the split screens to obtain the target resolution of each split screen includes:
step one, when the initial resolution of the preview picture is greater than the resolution of the equipment, selecting a specified resolution mode from preset resolution modes corresponding to the split screen information, wherein the resolution of the specified resolution mode is less than the initial resolution of the preview picture.
The preset resolution modes corresponding to the split screen information can be preset, and the resolution mode closest to the resolution of the equipment is selected from the preset resolution modes to serve as the specified resolution mode; or selecting a resolution mode closest to the resolution of the equipment from preset resolution modes not greater than the resolution of the equipment as a specified resolution mode; or selecting a resolution mode closest to the resolution of the device from preset resolution modes not less than the resolution of the device as the designated resolution mode.
And step two, taking the resolution of each split screen picture in the specified resolution mode as the target resolution of each split screen picture.
In a possible implementation manner of the embodiment of the present application, the hard disk video recorder may dynamically adjust the resolution of the preview picture according to the resolution of the device, and particularly, for a display with a fixed output resolution, such as an LCD, decoding performance may be greatly saved. Referring to fig. 4, taking N split screens as an example, after determining the resolution of the preview picture of the designated output port according to the split screen information, determining to start previewing of different code streams (1-3) according to the device resolution of the display device connected to the designated output port (for example, the output resolution of the LCD is fixed as a × b) and the position (large picture or small picture) of each split screen picture in the preview picture, where the resolution of the preview code stream 1 is the maximum, and the resolution of the preview code stream 3 is the minimum. Therefore, the original preview strategy determined only by the split screen mode is updated to the preview strategy dynamically adjusted by the split screen mode and the output port resolution, so that the defects of the original preview strategy are overcome, the display effect of code stream preview under different output port resolutions is optimized, and the decoding performance of a chip is greatly saved.
For example, when the resolution of the 7-inch touch LCD is fixed to a × b, the preview screen is divided into 4 frames, and the initial resolution of the preview screen determined according to the divided screen information is h × w, the output resolution of the LCD is a × b ═ h × w, and the output resolution is changed to the preview code stream 3 in the 4-frame division mode (the performance consumption is small), so that the decoding performance of about 3/4 is saved when the preview effect is not changed much.
In the embodiment of the application, the preview picture resolution is dynamically adjusted according to the resolution of the display device connected with the output port, so that the method of saving the performance of a chip is achieved, the advantages of the device with multiple output ports are particularly obvious, the device with multiple output ports often displays a black screen due to the limitation of the performance of the chip and the lack of preview resources of part of the output ports, and the preview requirement of the multiple output ports cannot be met; by adopting the preview strategy dynamically adjusted according to different output port resolutions, the equipment performance can be obviously saved, thereby meeting the requirement of simultaneously previewing multiple output ports and reducing the equipment cost.
Optionally, in step S302, determining a target resolution of each split screen image in the preview image according to the device resolution and the split screen information, where the determining includes:
step one, according to the split screen information, determining a preset resolution mode corresponding to the preview picture.
For example, resolution modes of the split screen modes are set in advance for 1 split screen mode, 4 split screen mode, 6 split screen mode, 8 split screen mode, 9 split screen mode and 16 split screen mode, wherein resolutions of different resolution modes of the same split screen information are different. And selecting a preset resolution mode corresponding to the preview picture from preset resolution modes of various types according to the split screen information by the hard disk video recorder. For example, if the split-screen information represents 4 split screens, a resolution mode of 4 split screens is selected as the preset resolution mode corresponding to the preview picture.
And step two, selecting a target resolution mode from the preset resolution modes according to the equipment resolution.
The hard disk video recorder can select a resolution mode closest to the resolution of the equipment from preset resolution modes not larger than the resolution of the equipment as a target resolution mode according to the resolution of the equipment; or selecting a resolution mode closest to the resolution of the device from preset resolution modes not less than the resolution of the device as a target resolution mode.
Optionally, the selecting a target resolution mode from the preset resolution modes according to the device resolution includes:
and according to the equipment resolution, selecting a resolution mode corresponding to the preview picture with the resolution closest to the equipment resolution from the preset resolution modes to obtain a target resolution mode.
In the embodiment of the application, a resolution mode closest to the resolution and the equipment resolution is selected as a target resolution mode, and both the chip analysis performance and the equipment display effect are taken into consideration.
And step three, taking the resolution of each split screen picture in the target resolution mode as the target resolution of each split screen picture.
And for each split screen picture, the hard disk video recorder takes the resolution of the split screen picture in the target resolution mode as the target resolution of the split screen picture, and simultaneously determines the resolution of the preview picture according to the equipment resolution and the split screen information, so that the equipment performance consumed by previewing can be greatly saved, the requirement of previewing multiple output ports simultaneously is met, and the equipment cost is reduced.
An embodiment of the present application further provides a preview screen generating apparatus, and referring to fig. 5, the apparatus includes:
the data acquisition module 501 is configured to acquire a device resolution of a display device connected to a specified output port, and acquire split screen information of a preview picture to be output at the specified output port, where the split screen information represents a division condition of the split screen picture in the preview picture;
a resolution determining module 502, configured to determine a target resolution of each split screen image in the preview image according to the device resolution and the split screen information, where the device resolution is positively correlated with the target resolution of each split screen image;
a code stream generating module 503, configured to generate an output code stream of the preview screen according to the target resolution of each split screen.
Optionally, the resolution determining module 502 includes:
a first initial resolution determining submodule, configured to determine an initial resolution of each split screen picture in the preview picture according to the split screen information;
a second initial resolution determining submodule, configured to determine an initial resolution of the preview picture according to an initial resolution of each of the split screens;
a resolution judgment submodule for judging the initial resolution of the preview picture and the size of the resolution of the device;
and the first target resolution determining submodule is used for reducing the resolution of at least one split screen picture in each split screen picture to obtain the target resolution of each split screen picture when the initial resolution of the preview picture is greater than the equipment resolution.
Optionally, the target resolution determining sub-module includes:
a resolution mode selecting unit, configured to select a specified resolution mode from a preset resolution mode corresponding to the split screen information when an initial resolution of the preview picture is greater than a resolution of the device, where a resolution of the specified resolution mode is smaller than the initial resolution of the preview picture;
and a split-screen resolution determining unit, configured to use the resolution of each split-screen picture in the specified resolution mode as a target resolution of each split-screen picture.
Optionally, the resolution determining module 502 includes:
a resolution mode determining submodule, configured to determine a preset resolution mode corresponding to the preview picture according to the split screen information;
a target mode determining submodule, configured to select a target resolution mode from the preset resolution modes according to the device resolution;
and a second target resolution determination submodule configured to use the resolution of each of the split screens in the target resolution mode as a target resolution of each of the split screens.
Optionally, the target mode determining submodule is specifically configured to:
and according to the equipment resolution, selecting a resolution mode corresponding to the preview picture with the resolution closest to the equipment resolution from the preset resolution modes to obtain a target resolution mode.
The embodiment of the present application further provides a hard disk video recorder, as shown in fig. 6, including a processor 601 and a memory 602;
the memory 602 is used for storing computer programs;
the processor 601 is configured to implement the following steps when executing the program stored in the memory 602:
acquiring the equipment resolution of display equipment connected with a specified output port, and acquiring split screen information of a preview picture to be output by the specified output port, wherein the split screen information represents the split screen picture division condition in the preview picture;
determining a target resolution of each split screen image in the preview image according to the equipment resolution and the split screen information, wherein the equipment resolution is positively correlated with the target resolution of each split screen image;
and generating an output code stream of the preview picture according to the target resolution of each split screen picture.
Alternatively, the processor 601 may be configured to implement any one of the preview screen generating methods described above when executing the program stored in the memory 602. Specifically, the hard disk video recorder in the embodiment of the present application may be an ATM host.
Optionally, the hard disk video recorder further includes: a communication interface and a communication bus, wherein the processor 601, the communication interface and the memory 602 complete communication with each other through the communication bus.
The communication bus mentioned in the hard disk recorder 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 illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the hard disk video recorder and other equipment.
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 memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the following steps:
acquiring position information and view field information of a target camera in a target monitoring scene;
acquiring the equipment resolution of display equipment connected with a specified output port, and acquiring split screen information of a preview picture to be output by the specified output port, wherein the split screen information represents the split screen picture division condition in the preview picture;
determining a target resolution of each split screen image in the preview image according to the equipment resolution and the split screen information, wherein the equipment resolution is positively correlated with the target resolution of each split screen image;
and generating an output code stream of the preview picture according to the target resolution of each split screen picture.
Optionally, the computer program, when executed by a processor, may further implement any of the above-described preview screen generating methods.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiments of the apparatus, the hard disk recorder and the storage medium, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (12)

1. A preview screen generating method, the method comprising:
acquiring the equipment resolution of display equipment connected with a specified output port, and acquiring split screen information of a preview picture to be output by the specified output port, wherein the split screen information represents the split screen picture division condition in the preview picture;
determining the target resolution of each split screen picture in the preview picture according to the equipment resolution and the split screen information, wherein the equipment resolution is positively correlated with the target resolution of each split screen picture;
and generating an output code stream of the preview picture according to the target resolution of each split screen picture.
2. The method of claim 1, wherein the determining the target resolution of each split screen picture in the preview pictures according to the device resolution and the split screen information comprises:
determining the initial resolution of each split screen picture in the preview picture according to the split screen information;
determining the initial resolution of the preview picture according to the initial resolution of each split screen picture;
judging the initial resolution of the preview picture and the size of the equipment resolution;
and when the initial resolution of the preview picture is greater than the equipment resolution, reducing the resolution of at least one split screen picture in each split screen picture to obtain the target resolution of each split screen picture.
3. The method of claim 2, wherein when the initial resolution of the preview image is greater than the device resolution, the reducing the resolution of at least one of the split images to obtain the target resolution of each of the split images comprises:
when the initial resolution of the preview picture is greater than the resolution of the equipment, selecting a specified resolution mode from preset resolution modes corresponding to the split screen information, wherein the resolution of the specified resolution mode is less than the initial resolution of the preview picture;
and taking the resolution of each split screen picture in the specified resolution mode as the target resolution of each split screen picture.
4. The method of claim 1, wherein the determining the target resolution of each split screen picture in the preview pictures according to the device resolution and the split screen information comprises:
determining a preset resolution mode corresponding to the preview picture according to the split screen information;
selecting a target resolution mode from the preset resolution modes according to the equipment resolution;
and taking the resolution of each split screen picture in the target resolution mode as the target resolution of each split screen picture.
5. The method of claim 4, wherein said selecting a target resolution mode among said preset resolution modes according to said device resolution comprises:
and according to the resolution of the equipment, selecting a resolution mode corresponding to the preview picture with the resolution closest to the resolution of the equipment from the preset resolution modes to obtain a target resolution mode.
6. A preview screen generating apparatus, comprising:
the data acquisition module is used for acquiring the equipment resolution of display equipment connected with a specified output port and acquiring the split screen information of a preview picture to be output by the specified output port, wherein the split screen information represents the split screen picture division condition in the preview picture;
a resolution determination module, configured to determine a target resolution of each split screen image in the preview image according to the device resolution and the split screen information, where the device resolution is positively correlated with the target resolution of each split screen image;
and the code stream generating module is used for generating the output code stream of the preview picture according to the target resolution of each split screen picture.
7. The apparatus of claim 6, wherein the resolution determination module comprises:
a first initial resolution determining submodule, configured to determine an initial resolution of each split screen image in the preview image according to the split screen information;
the second initial resolution determining submodule is used for determining the initial resolution of the preview picture according to the initial resolution of each split screen picture;
the resolution judgment submodule is used for judging the initial resolution of the preview picture and the size of the resolution of the equipment;
and the first target resolution determination submodule is used for reducing the resolution of at least one split screen picture in each split screen picture to obtain the target resolution of each split screen picture when the initial resolution of the preview picture is greater than the equipment resolution.
8. The apparatus of claim 7, wherein the target resolution determination sub-module comprises:
a resolution mode selecting unit, configured to select a specified resolution mode from preset resolution modes corresponding to the split screen information when an initial resolution of the preview picture is greater than the device resolution, where a resolution of the specified resolution mode is smaller than the initial resolution of the preview picture;
and the split-screen resolution determining unit is used for taking the resolution of each split-screen picture in the specified resolution mode as the target resolution of each split-screen picture.
9. The apparatus of claim 6, wherein the resolution determination module comprises:
the resolution mode determining submodule is used for determining a preset resolution mode corresponding to the preview picture according to the split screen information;
the target mode determining submodule is used for selecting a target resolution mode from the preset resolution modes according to the equipment resolution;
and the second target resolution determination submodule is used for taking the resolution of each split screen picture in the target resolution mode as the target resolution of each split screen picture.
10. The apparatus of claim 9, wherein the target mode determination submodule is specifically configured to:
and according to the resolution of the equipment, selecting a resolution mode corresponding to the preview picture with the resolution closest to the resolution of the equipment from the preset resolution modes to obtain a target resolution mode.
11. A hard disk video recorder is characterized by comprising a processor and a memory;
the memory is used for storing a computer program;
the processor, when executing the program stored in the memory, implementing the method steps of any of claims 1-5.
12. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-5.
CN201811510357.9A 2018-12-11 2018-12-11 Preview picture generation method, device, hard disk video recorder and storage medium Active CN111314624B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811510357.9A CN111314624B (en) 2018-12-11 2018-12-11 Preview picture generation method, device, hard disk video recorder and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811510357.9A CN111314624B (en) 2018-12-11 2018-12-11 Preview picture generation method, device, hard disk video recorder and storage medium

Publications (2)

Publication Number Publication Date
CN111314624A true CN111314624A (en) 2020-06-19
CN111314624B CN111314624B (en) 2022-11-04

Family

ID=71146502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811510357.9A Active CN111314624B (en) 2018-12-11 2018-12-11 Preview picture generation method, device, hard disk video recorder and storage medium

Country Status (1)

Country Link
CN (1) CN111314624B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112272270A (en) * 2020-09-28 2021-01-26 北海天下为星科技有限公司 Video data processing method
CN112667189A (en) * 2020-12-28 2021-04-16 深圳市欣润京科技有限公司 Method and system for realizing identification split screen mode by adopting display split test card
CN113014964A (en) * 2021-03-04 2021-06-22 深圳市东微智能科技股份有限公司 Method, device and system for generating spliced wall echo code stream and readable storage medium
CN114302204A (en) * 2021-05-21 2022-04-08 海信视像科技股份有限公司 Split-screen playing method and display device
CN115426452A (en) * 2022-08-22 2022-12-02 杭州萤石软件有限公司 Channel picture exchange method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090059073A1 (en) * 2007-08-30 2009-03-05 Samsung Electronics Co., Ltd. Display control method, and display apparatus and display system using the same
CN105915839A (en) * 2015-12-07 2016-08-31 乐视云计算有限公司 Multi-channel video display method of broadcast instructing platform and multi-channel video display device thereof
CN106484355A (en) * 2016-10-25 2017-03-08 长江龙新媒体有限公司 A kind of one screen multimode display methods of LED screen and system
CN107147890A (en) * 2017-05-11 2017-09-08 西安交通大学 The many video scaling modules and concurrent working method of a kind of compatible different resolution and breadth length ratio
CN107148776A (en) * 2015-09-29 2017-09-08 华为技术有限公司 Obtain method, device, system and the computer-readable recording medium of video data
CN107613238A (en) * 2017-09-04 2018-01-19 西安万像电子科技有限公司 The treating method and apparatus of content of multimedia
CN108600834A (en) * 2018-04-13 2018-09-28 深圳银澎云计算有限公司 Video transmission system, reception/transmission/transmission method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090059073A1 (en) * 2007-08-30 2009-03-05 Samsung Electronics Co., Ltd. Display control method, and display apparatus and display system using the same
CN107148776A (en) * 2015-09-29 2017-09-08 华为技术有限公司 Obtain method, device, system and the computer-readable recording medium of video data
CN105915839A (en) * 2015-12-07 2016-08-31 乐视云计算有限公司 Multi-channel video display method of broadcast instructing platform and multi-channel video display device thereof
CN106484355A (en) * 2016-10-25 2017-03-08 长江龙新媒体有限公司 A kind of one screen multimode display methods of LED screen and system
CN107147890A (en) * 2017-05-11 2017-09-08 西安交通大学 The many video scaling modules and concurrent working method of a kind of compatible different resolution and breadth length ratio
CN107613238A (en) * 2017-09-04 2018-01-19 西安万像电子科技有限公司 The treating method and apparatus of content of multimedia
CN108600834A (en) * 2018-04-13 2018-09-28 深圳银澎云计算有限公司 Video transmission system, reception/transmission/transmission method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112272270A (en) * 2020-09-28 2021-01-26 北海天下为星科技有限公司 Video data processing method
CN112272270B (en) * 2020-09-28 2022-03-01 北海天下为星科技有限公司 Video data processing method
CN112667189A (en) * 2020-12-28 2021-04-16 深圳市欣润京科技有限公司 Method and system for realizing identification split screen mode by adopting display split test card
CN112667189B (en) * 2020-12-28 2023-03-21 深圳市欣润京科技有限公司 Method and system for realizing identification split screen mode by adopting display split test card
CN113014964A (en) * 2021-03-04 2021-06-22 深圳市东微智能科技股份有限公司 Method, device and system for generating spliced wall echo code stream and readable storage medium
CN113014964B (en) * 2021-03-04 2023-04-28 深圳市东微智能科技股份有限公司 Method, device and system for generating spliced wall back display code stream and readable storage medium
CN114302204A (en) * 2021-05-21 2022-04-08 海信视像科技股份有限公司 Split-screen playing method and display device
CN115426452A (en) * 2022-08-22 2022-12-02 杭州萤石软件有限公司 Channel picture exchange method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN111314624B (en) 2022-11-04

Similar Documents

Publication Publication Date Title
CN111314624B (en) Preview picture generation method, device, hard disk video recorder and storage medium
WO2015070694A1 (en) Screen splicing system and video data stream processing method
US7474359B2 (en) System and method of displaying a video stream
US9639248B2 (en) Autohiding video player controls
WO2014169796A1 (en) Method, device, and display device for switching video source
JP2007151078A (en) Video distribution system, client terminal and control method thereof
CN112399123B (en) Video definition adjusting method and device, electronic equipment and storage medium
WO2017096825A1 (en) Method of displaying a plurality of videos in production studio and device
WO2017166879A1 (en) Channel-locking method and device for use during recording and broadcasting of teaching process
CN108260011B (en) Method and system for realizing painting on display equipment
US8570404B2 (en) Communication device
US10893206B1 (en) User experience with digital zoom in video from a camera
US20140111526A1 (en) Terminal device and display apparatus
US10887653B2 (en) Systems and methods for performing distributed playback of 360-degree video in a plurality of viewing windows
US9699402B2 (en) Method and apparatus for transmitting video signal
US20080266456A1 (en) Broadcasting reception device and signal processing method for broadcasting reception device
US20160269670A1 (en) Method and apparatus for transmitting video signal
KR20130044062A (en) Remote video transmission system
EP3522525B1 (en) Method and apparatus for processing video playing
WO2023125669A1 (en) Image processing circuit, image processing method, electronic device, and readable storage medium
EP2816811A1 (en) Content receiving apparatus, display device and content receiving method thereof
WO2022143212A1 (en) System and method for extracting specific stream from multiple streams transmitted in combination for playback
US10347295B1 (en) Computing system with video content generation feature
US20160142633A1 (en) Capture apparatuses of video images
JP2007201816A (en) Video image display system and video image receiver

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
GR01 Patent grant
GR01 Patent grant