CN105872418A - Method and device for superimposing a GUI (Graphical User Interface) image layer on a digital image - Google Patents

Method and device for superimposing a GUI (Graphical User Interface) image layer on a digital image Download PDF

Info

Publication number
CN105872418A
CN105872418A CN201610197402.4A CN201610197402A CN105872418A CN 105872418 A CN105872418 A CN 105872418A CN 201610197402 A CN201610197402 A CN 201610197402A CN 105872418 A CN105872418 A CN 105872418A
Authority
CN
China
Prior art keywords
image
gui
superposition
gui image
pixel
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
CN201610197402.4A
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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua 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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201610197402.4A priority Critical patent/CN105872418A/en
Publication of CN105872418A publication Critical patent/CN105872418A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/44Receiver circuitry for the reception of television signals according to analogue transmission standards
    • H04N5/445Receiver circuitry for the reception of television signals according to analogue transmission standards for displaying additional information
    • H04N5/44504Circuit details of the additional information generator, e.g. details of the character or graphics signal generator, overlay mixing circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4888Data services, e.g. news ticker for displaying teletext characters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Graphics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The invention discloses a method and device for superimposing a GUI (Graphical User Interface) image layer on a digital image. The method comprises following steps of generating time sequence corresponding to resolution of the digital image at an output end; reading the digital image and the GUI image from a memory according to the time sequence, wherein the sizes of the GUI image and the digital image are the same; and superimposing the GUI image and the digital image one by one according to pixels. Through adoption of the scheme provided by the invention, GUI superposition can be realized; the function demands are satisfied; the technical realization is simple; and the various existing increasingly developing demands for displaying characters and images in monitored images can be satisfied.

Description

A kind of method and device of the GUI figure layer of superposition on the digital image
Technical field
The present invention relates to technical field of image processing, scheme particularly to one superposition GUI on the digital image The method and device of layer.
Background technology
GUI (Graphical User Interface, graphic user interface), refers to the use using graphics mode to show Family environment.Compared with Command Line Interface, graphical interfaces is the easiest to be easy-to-use.Graphical user Interface can be at the ad-hoc location of display screen, with changing of attractive in appearance and the most dull visual message prompting User Status Become.
The high-definition digital epoch of monitoring product have arrived at present, and man-machine becomes particularly important alternately, passes through Showing menu and monitoring information in HD video, monitoring personnel can easily select control model and grasp scene Basic condition.The stacked system that safety monitoring technology field is commonly used is character adding, i.e. OSD (On Screen Display, screen menu type regulative mode), make that video image is superimposed with character or figure set Standby.As shown time, date, corporate logo, video camera title, positional information etc. in video.OSD In the occasion such as video superimpose technology is applied to security protection, monitoring, elevator show.
Prior art mainly has a following several ways:
(1) special character generator is used to add controller
Use the program, can be determined by used chip completely with the character of selective stacking, by cost, application Restriction, general only 10 Arabic numerals, 26 English alphabets of capital and small letter, and a small amount of special symbol Number, it is difficult to meet various display characters and the demand of image in the most growing monitoring image.
(2) based on FPGA (Field-Programmable Gate Array, field programmable gate array) Superposition dot character
The program can not in video pictures the character of superposition random color arbitrary shape or pattern, need into Row repeatedly individually superposition, needs the concrete coordinate of FPGA calculating character superposition, and FPGA dynamically detects The edge contour coordinate of character or figure carries out limes marginis calculating, it is impossible to realize efficient GUI superposition.
The deficiencies in the prior art are: or be functionally unsatisfactory for requirement, or technically realize complexity, Difficulty is big, thus all can not meet various display characters and the need of image in the most growing monitoring image Ask.
Summary of the invention
The invention provides the method and device of a kind of GUI figure layer of superposition on the digital image, in order to meet mesh Various display characters and the demand of image in front growing monitoring image.
A kind of method providing GUI figure layer of superposition on the digital image in the embodiment of the present invention, including:
The sequential corresponding with the resolution of digital picture is generated at outfan;
From memorizer, digital picture and GUI image is read by this sequential;Wherein, described GUI image with Described digital picture size is identical;
GUI image and digital picture are according to pixels put and is overlapped one by one.
It is preferred that farther include:
When GUI image is modified, scheme with the GUI in amended GUI image more new memory Picture.
It is overlapped one by one it is preferred that GUI image and digital picture are according to pixels put, is by GUI image The color data according to pixels put with digital picture is overlapped one by one.
It is preferred that GUI image and digital picture are according to pixels put be overlapped one by one time, as follows One of or a combination thereof be overlapped:
When GUI image pixel is set as complete superposition, it is this GUI image pixel after superposition;
When GUI image pixel is set as not superposition completely, it is Pixel of Digital Image point after superposition;
When GUI image pixel is set as with transparency superposition, it is Pixel of Digital Image point and this after superposition GUI image pixel is with the pixel after transparency superposition.
It is preferred that described memorizer is Double Data Rate synchronous DRAM.
It is preferred that read digital picture and GUI image chronologically from memorizer, it is chronologically from memorizer Middle reading one frame of digital image and a frame GUI image;
Farther include: after reading a frame of digital image and a frame GUI image chronologically from memorizer, will This digital picture and GUI image are cached in two FIFO respectively;
GUI image and digital picture are according to pixels put and is overlapped one by one, be to read GUI from two FIFO The pixel number evidence of image and digital picture, and according to pixels put and be overlapped one by one.
The embodiment of the present invention provides the device of a kind of GUI figure layer of superposition on the digital image, including:
Generation module, for generating the sequential corresponding with the resolution of digital picture at outfan;
Read module, for reading digital picture and GUI image by this sequential from memorizer;Wherein, institute State GUI image identical with described digital picture size;
Laminating module, is overlapped one by one for GUI image and digital picture according to pixels being put.
It is preferred that farther include:
More new module, for when modifying GUI image, updates with amended GUI image and deposits GUI image in reservoir.
It is preferred that laminating module is further used for number of colours GUI image and digital picture according to pixels put According to being overlapped one by one.
It is preferred that laminating module is further used for according to pixels putting to enter one by one by GUI image and digital picture During row superposition, one of as follows or a combination thereof is overlapped:
When GUI image pixel is set as complete superposition, it is this GUI image pixel after superposition;
When GUI image pixel is set as not superposition completely, it is Pixel of Digital Image point after superposition;
When GUI image pixel is set as with transparency superposition, it is Pixel of Digital Image point and this after superposition GUI image pixel is with the pixel after transparency superposition.
It is preferred that read module is further used for by this sequential from Double Data Rate synchronous DRAM Middle reading digital picture and GUI image.
It is preferred that read module is further used for reading a frame of digital image and chronologically from memorizer After frame GUI image, this digital picture and GUI image are cached to respectively two FIFO (First Input First Output, FIFO) in;
Laminating module is further used for reading GUI image and the pixel number of digital picture from two FIFO According to, and according to pixels put and be overlapped one by one.
The present invention has the beneficial effect that:
Owing at outfan, reading from memorizer according to the sequential that the resolution with digital picture generated is corresponding Take digital picture and the GUI image of formed objects, and GUI image and digital picture are according to pixels put one by one It is overlapped, uses this programme can realize GUI superposition, functionally meet requirement, technically realize letter Single, it is thus possible to meet various display characters and the demand of image in the most growing monitoring image.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes of the present invention Point, the schematic description and description of the present invention is used for explaining the present invention, is not intended that to the present invention not Work as restriction.In the accompanying drawings:
Fig. 1 is the method implementing procedure signal of superposition GUI figure layer on the digital image in the embodiment of the present invention Figure;
Fig. 2 is that the method for superposition GUI figure layer on the digital image in the embodiment of the present invention is embodied as flow process and shows It is intended to;
Fig. 3 is the apparatus structure schematic diagram of superposition GUI figure layer on the digital image in the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawings the detailed description of the invention of the present invention is illustrated.
Inventor note that during invention
The scheme of existing overlaying character on the digital image mainly has the most several:
1, special character generator is used to add controller
Simulation original image is input on special character generator chip, in superposition after the character specified, by Special character generator chip output simulation mixed image.Whole additive process is by special character generator chip Completing, the character of required superposition is sent out by special character generator chip interface circuit addressing characters by controller The character stored in raw device chip internal ROM realizes.
The deficiency of the program is: can with the character of selective stacking completely by used chip determine, by cost, The restriction of application, general only 10 Arabic numerals, 26 English alphabets of capital and small letter, and a small amount of spy Different symbol, is difficult to meet various display characters and the demand of image in the most growing monitoring image, especially It is the Overlapping display demand of Chinese character.To Overlapping display Chinese character, also will be outside special character generator chip Increase rom chip, increase cost further, simultaneously because compatible between special character generator chip Poor, it is achieved Function Extension and upgrading bother the most very much.
2, superposition dot character based on FPGA
First, it is assumed that dot character to be superimposed is made up of N x M dot matrix, wherein M is row dot matrix, and N is Row dot matrix, M, N are positive integers.In advance the conventional characters dot character library file of generation is downloaded and stored in The a certain memory area of dynamic memory;
Secondly, a frame of digital video image of the character to be superimposed of input is stored dynamic memory relief area In;Search dot character to be superimposed in dynamic memory character library memory block, take out and form the of this dot character Row of N position according to binary representation;From dynamic buffer, take out this two field picture intend overlaying character position Corresponding N0 pixel brightness value, N0=N;
Again, if the brightness value of some pixel is Y, with 1 byte representation, the brightness of character to be superimposed Value is constant C, with 1 byte representation, when certain in certain the row of N position forming this dot character taken out One is 1, then change the brightness value Y of this corresponding pixel points in original image into C, if this position is 0, Then keep the brightness value of this corresponding pixel points in original image constant, according to this principle, complete N0 pixel The superposition of point;
Finally, take the next line N position forming this dot character, and represent with binary digit form, take out figure As N0 the pixel brightness value that next line is corresponding, complete the superposition of N0 pixel;Repeat this process Until all M row forming this dot character are disposed, the superposition of a dot character can be completed.
The deficiency of the program is:
First, realize obtaining ad-hoc location overlaying character at piece image, it is necessary first to know origin coordinates (X0, Y0), the size (M, N) of overlap-add region or end coordinate (XN, YN).For monitoring The video flowing of front end, is deposited into storing in dynamic memory relief area, then will take relief area Resource.When being overlapped processing, needing according to origin coordinates from relief area, overlap-add region size is read Take video data to overlap-add procedure module, need to use caching (FIFO or RAM in FPGA) herein, Also the resource of relief area is occupied;
Secondly, the binary digit 0/1 of dot matrix represents the brightness value C that not superposition/superposition is preset, here after superposition Image only has two kinds of possibilities, display original video image, or default brightness C and the UV component of former video In conjunction with new color.This new color is relevant due to the UV to original video image, it is impossible to realizes user and makes by oneself The random color of justice.
3, superposition dot character improvement project one based on FPGA
When the binary digit of dot matrix is 1, replace original Y/C component with new Y_new, UV_new.
The deficiency of the program is:
First, while reading corresponding N0 the pixel brightness value that image intends overlaying character position, also need Chromatic component to be read, corresponding FIFO spatial cache to double;
Secondly, it is impossible to realizing the transparency superposition of overlaying character and original video image, a pixel can only be The pixel of original image or the pixel of character, be aesthetically weak;
Again, Y_new, U_new are the parameters pre-set, and are generally fixed to picture after character adding Some ad-hoc location (the such as upper right corner), then be exactly aobvious in some position of picture in visual effect Show the character that a color is fixing, and general video flowing is to change always, some specific occasion characters Color is close or identical with the color of video source, and display effect will become very poor.
4, superposition dot character improvement project two based on FPGA
The transparent of character adding is increased on the basis of superposition dot character improvement project one based on FPGA Degree, it is achieved superposition transparency is adjustable, i.e. user can select to carry out overlaying character from 0-100, when transparency is When 0, represent very overlaying character, when transparency is 100, represent character not superposition, show former regarding Frequently picture, so makes character adding show more attractive.
The deficiency of the program is: reads image and intends corresponding N0 the pixel brightness value of overlaying character position While, it is also desirable to reading chromatic component, corresponding FIFO spatial cache to double.
5, superposition dot character improvement project three based on FPGA
Character limes marginis function is increased on the basis of another kind of improved procedure on the basis of based on scheme one, the most folded Padding is a color, and the outline at overlaying character increases the limes marginis of another kind of color, to guarantee with former Video image can distinguish.
The deficiency of the program is:
First, while reading corresponding N0 the pixel brightness value that image intends overlaying character position, also need Chromatic component to be read, corresponding FIFO spatial cache to double;
Secondly, it is achieved which needs to increase the parameter of limes marginis color, calculates the marginal position of each character, Judge that overlaying character or overlaying character edge carry out data replacement again, calculate complexity, the FPGA used Resource is too many.
6, superposition dot character improvement project four based on FPGA
If video flowing not being deposited in dynamic memory relief area, save be stored in, read, after superposition again The repetitive process being stored in, may select data stream collection is come in by monitoring device front end photographic head when direct It is overlapped, it is possible to realize that character adding optional position is adjustable, size is adjustable, Color tunable, limes marginis are optional And Color tunable, rectangular background are optional and Color tunable, then be accomplished by the positional information to video flowing and carry out Analytical calculation timely, when video flowing arrives the coordinate needing superposition in the middle of a frame, carries out character adding.
The deficiency of the program is: the relief area taken is too many, calculates complexity, to aobvious on a picture Showing multiple OSD region block, it is necessary to repeatedly call same module, the FPGA resource used is too many, Gradually it is eliminated during use.
Based on this, the embodiment of the present invention proposes the scheme of a kind of GUI figure layer of superposition on the digital image, in order to The character of superposition random color arbitrary shape or pattern in video pictures, and it is made without the most independent Superposition, it is not necessary to the concrete coordinate of FPGA calculating character superposition, it is not necessary to FPGA dynamically detect character or The edge contour coordinate of person's figure carries out limes marginis calculating, it is achieved efficient GUI superposition realizes efficient GUI Superposition.Specifically described below.
Fig. 1 is the method implementing procedure schematic diagram of superposition GUI figure layer on the digital image, as it can be seen, can To comprise the steps:
Step 101, generate the sequential corresponding with the resolution of digital picture at outfan;
Step 102, from memorizer, read digital picture and GUI image by this sequential;Wherein, described GUI image is identical with described digital picture size;
Step 103, GUI image and digital picture are according to pixels put it is overlapped one by one.
For the enforcement of step 101, by outfan according to VESA (Video Electronics Standards Association, VESA) standard produces the sequential corresponding with the resolution of digital picture, This sequential is for reading image from memorizer.
For the enforcement of step 102, digital picture can be from front end camera collection to dynamic menu, Can also be the video that comes of computer transmission, or a simply width pure color picture, do not limit.
GUI image is identical with digital picture size, can be covered with any character, figure above, and color is permissible Different.Such as, when needs are at the red time character of upper left corner superposition one, and lower right corner superposition one is greenly Point character, one yellow of superposition is circular in the middle of picture and when blue rectangle, it would be desirable to the character of superposition, Graphics overlay is on GUI image, and will need not region other a kind of color filling, the shape of superposition Become the GUI image that a width is complete.
Digital picture and need the GUI image of superposition to be stored on memorizer, size be need display point Resolution size, such as 1920x1080.Sequential according to producing reads two respectively from the address that memorizer is corresponding Two field picture, a frame is digital picture, and another frame is GUI image.
For the enforcement of step 103, the two width images read by identical sequential are that point is right at synchronization Point.Read the data of first pixel, carry out after the data of the pixel of GUI image are judged Superposition, obtains first pixel number evidence after superposition, such as, if image resolution ratio is 1920x1080, Obtain the pixel number evidence after 1920x1080 superposition of a two field picture the most successively.
According to pixels put and be overlapped including a variety of mode one by one, such as: be of the prior art according to dot matrix letter Breath " 0 " or " 1 " carries out color replacement, and the color of replacement is the color (such as white) of additionally configuration; Or, directly will go on the color addition of GUI to color of image.
Being real-time and continuous print owing to exporting image to display screen, the most above-mentioned implementation process can be placed on defeated Go out end to realize;Further, in practice, general each delivery outlet has only to take the buffer area of maximum 4M Realize purpose.
In enforcement, it is also possible to farther include:
When GUI image is modified, scheme with the GUI in amended GUI image more new memory Picture.
Concrete, after what a GUI image user sets, typically will not often change, but new at needs The when of increasing or change the character of superposition, figure, only the GUI image in memorizer need to be updated i.e. Can.
In being embodied as, user can a certain position be newly-increased or superposition is wanted in amendment on web interface painting canvas Character or figure after, by application layer, the dot matrix of character or figure is handed down to system layer, system is soft Dot matrix is converted into color data and leaves memorizer in by part;Outfan produce standard time sequence, according to produce time Sequence reads two two field pictures respectively from the address that memorizer is corresponding, and a frame is digital picture, and another frame is GUI Image, is overlapped after judging the data of the pixel of GUI image, obtains first after superposition Pixel number evidence, if image resolution ratio is 1920x1080, obtains 1920x1080 of a two field picture successively Pixel number evidence after superposition.Owing to being the software layer conversion being responsible for realizing dot matrix to color, it is possible to achieve Need to do the when of increasing newly or change the character of superposition, figure once to update, and FPGA avoids the need for often One frame carries out the computing of complexity.
In above-mentioned implementation process, (pixel clock refers to root to there may be the time delay of several pixel clock According to VESA standard, each resolution has the clock of correspondence, if 1920x1080p refresh rate is 60 frames, right The clock answered is 148.5MHz), now standard time sequence is done corresponding delay and just can align with view data.
In enforcement, GUI image and digital picture are according to pixels put and is overlapped one by one, be by GUI image The color data according to pixels put with digital picture is overlapped one by one.
Concrete, for FPGA system, GUI image is exactly a normal image of width, is indifferent to word Symbol, the profile of figure, color, coordinate, be only concerned the color of each point of GUI image.
In enforcement, GUI image and digital picture are according to pixels put be overlapped one by one time, can be by as follows One of mode or a combination thereof are overlapped:
When GUI image pixel is set as complete superposition, it is this GUI image pixel after superposition;
When GUI image pixel is set as not superposition completely, it is Pixel of Digital Image point after superposition;
When GUI image pixel is set as with transparency superposition, it is Pixel of Digital Image point and this after superposition GUI image pixel is with the pixel after transparency superposition.
Concrete, GUI image supports three kinds of stacked systems: the complete superposition of selectivity, not superposition completely, with Transparency superposition.
The complete superposition of selectivity: the key parameter of this pixel can be set as " complete superposition reference color ", When there is complete superposition reference color in GUI figure layer, this pixel after superposition shows entirely by reference to color.As: Complete superposition reference color is set to redness, then as long as color is red character or figure in GUI image Shape, will show by correspondence position on the image after superposition completely.
Not superposition completely: the key parameter of this pixel can be set as " base map not superposition reference color completely ", This pixel display digit figure when base map not superposition reference color completely occurs in GUI figure layer, after superposition Picture.As: base map not superposition reference color completely is set to light blue, then as long as color is in GUI image Nattier blue character or figure, this part would not be added in digital picture.Be equivalent in effect engrave Empty.
With transparency superposition: the key parameter of this pixel can be set as " transparency ", in GUI figure layer The color of pixel be not belonging to need the color of special handling, unified as transparency overlay layer, with " transparent Degree " it is overlapped with digital picture.Transparency scope in FPGA is 0-128 herein, in application layer Scope can be mapped to 0-100 or 0-10.Superposition Formula is: o_data=(i_ratio*i_data_gui +i_data*(128-i_ratio))/128.In above formula: i_ratio is transparency, i_data_gui is that GUI is saturating Bright superimposed layer data, i_data is Digital Image Data, and o_data is data after overlap-add procedure.Transparency sets When putting difference, Overlay is different.If transparency is set to 128, be equivalent to not superposition completely;If it is transparent Degree is set to 0, is equivalent to the complete superposition of selectivity;If transparency is set to 64, after superposition, show a half Word image half GUI image.
In enforcement, memorizer can be Double Data Rate synchronous DRAM.
Concrete, digital picture and need the GUI figure layer of superposition can be stored in DDR SDRAM (Double Data Rate Synchronous Dynamic Random Access Memory, Double Data Rate is same Step dynamic RAM) on because DDR has used more advanced synchronous circuit, make appointment address, Conveying and the output key step of data both independently executed, and kept and CPU Complete Synchronization again;DDR uses DLL (Delay Locked Loop, delay locked loop) technology, it is provided that a data filtering signal, When data are effective, storage control can use this data filtering signal to be accurately positioned data, every 16 Once, and re-synchronization is from the data of different memory module in secondary output.DDR substantially need not carry High clock frequency just can double to improve the speed of SDRAM, and it allows in the rising edge of clock pulses and decline Along reading data, thus its speed is the twice of standard SDRAM.
In enforcement, from memorizer, read digital picture and GUI image chronologically, be chronologically from memorizer Middle reading one frame of digital image and a frame GUI image;
Farther include: after reading a frame of digital image and a frame GUI image chronologically from memorizer, will This digital picture and GUI image are cached in two FIFO respectively;
GUI image and digital picture are according to pixels put and is overlapped one by one, be to read GUI from two FIFO The pixel number evidence of image and digital picture, and according to pixels put and be overlapped one by one.
Concrete, by the frame of digital image read from address corresponding for DDR chronologically and frame GUI figure As being cached in two FIFO respectively, when standard time sequence arrives the position of first pixel of two field picture, First Digital Image Data corresponding to pixel and GUI image data is taken out from two FIFO, right The data of the pixel of GUI image are overlapped after judging, obtain first pixel number after superposition According to, if image resolution ratio is 1920x1080, after obtaining 1920x1080 superposition of a two field picture successively Pixel number evidence.
In order to be more clearly understood that the present invention, illustrate with specific embodiment below.
Assuming that digital image resolution is 1920x1080, DDR SDRAM selected by memorizer, is embodied as As shown below.
Fig. 2 is that the method for superposition GUI figure layer on the digital image is embodied as schematic flow sheet, as it can be seen, May include steps of:
The conventional character pattern generated is stored the setting memory block of dynamic memory by step 201, CPU In territory;
The character pattern of the GUI image that needs to be added to is stored by step 202, application layer from the setting of memorizer Region is downloaded;
Step 203, by download the character pattern needing superposition be converted to YC422 form image pixel letter Breath storage is to GUI dynamic buffering district;
Step 204, the pixel formation that the image pixel after conversion is added the setpoint color filled and digitized map GUI image as formed objects;
Step 205, arrange with the complete superposition of selectivity, not superposition completely, arbitrary with transparency superposition or its Compound mode is overlapped;
Step 206, generation refresh rate are 60 frames, and corresponding clock is the sequential of 148.5MHz;
Step 207, according to produce sequential read two two field pictures, a frame respectively from the address that memorizer is corresponding For digital picture, another frame is GUI image, and is cached to Digital Image Data FIFO and GUI respectively View data FIFO;
Step 208, arrive the position of the pixel of a two field picture according to standard time sequence, come from digital picture number According to FIFO and GUI image data FIFO takes out Digital Image Data corresponding to this pixel and GUI figure As data;
Step 209, judge the stacked system that this pixel is arranged, if the complete superposition of selectivity, proceed to step Rapid 210, if selectivity not superposition completely, proceed to step 211, if with transparency superposition, proceed to step Rapid 212;
Pixel after step 210, superposition is this GUI image pixel, proceeds to step 213;
Pixel after step 211, superposition is Pixel of Digital Image point, proceeds to step 213;
Pixel after step 212, superposition is Pixel of Digital Image point with this GUI image pixel to arrange Transparency superposition after pixel, proceed to step 213;
Step 213, judge whether sequential reaches the 1920x1080 pixel, if so, proceed to step 214, If it is not, proceed to step 208;
Step 214, judge output enable whether open, if so, proceed to step 215, if it is not, proceed to step Rapid 216;
Step 215, this two field picture is exported to DA (Digital To Analog, digital-to-analogue conversion) chip and Display terminal;
Step 216, end.
In the present embodiment, output timing once starts, can be automatically into step 207.
In the above-described embodiment, if showing for mosaic screen, it is also possible to the superposition one simultaneously of multiple delivery outlets Big character splices Overlapping display on multiple screens, applies more extensive.
Based on same inventive concept, the embodiment of the present invention additionally provides one superposition GUI on the digital image The device of figure layer, superposes GUI figure layer on the digital image owing to these equipment solves the principle of problem with one Method similar, therefore the enforcement of these equipment may refer to the enforcement of method, repeats no more in place of repetition.
Fig. 3 is the apparatus structure schematic diagram of superposition GUI figure layer on the digital image, may include that in device
Generation module 301, for generating the sequential corresponding with the resolution of digital picture at outfan;
Read module 302, for reading digital picture and GUI image by this sequential from memorizer;Wherein, Described GUI image is identical with described digital picture size;
Laminating module 303, is overlapped one by one for GUI image and digital picture according to pixels being put.
In enforcement, it is also possible to farther include:
More new module 304, for when modifying GUI image, updates with amended GUI image GUI image in memorizer.
In enforcement, laminating module can also be further used for according to pixels putting GUI image and digital picture Color data is overlapped one by one.
In enforcement, laminating module can also be further used for by GUI image and digital picture according to pixels point When being overlapped one by one, one of as follows or a combination thereof is overlapped:
When GUI image pixel is set as complete superposition, it is this GUI image pixel after superposition;
When GUI image pixel is set as not superposition completely, it is Pixel of Digital Image point after superposition;
When GUI image pixel is set as with transparency superposition, it is Pixel of Digital Image point and this after superposition GUI image pixel is with the pixel after transparency superposition.
In enforcement, read module can also be further used for by this sequential from Double Data Rate synchronous dynamic random Memorizer reads digital picture and GUI image.
In enforcement, read module is further used for reading a frame of digital image and chronologically from memorizer After frame GUI image, this digital picture and GUI image are cached in two FIFO respectively;
Laminating module is further used for reading GUI image and the pixel number of digital picture from two FIFO According to, and according to pixels put and be overlapped one by one.
In sum, due at outfan, according to sequential corresponding to the resolution with digital picture generated from Memorizer reads digital picture and the GUI image of formed objects, and GUI image and digital picture are pressed Pixel is overlapped one by one, uses this programme can realize GUI superposition, functionally meets requirement, skill Realize simple in art, it is thus possible to meet various display characters and image in the most growing monitoring image Demand.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or meter Calculation machine program product.Therefore, the present invention can use complete hardware embodiment, complete software implementation or knot The form of the embodiment in terms of conjunction software and hardware.And, the present invention can use and wherein wrap one or more Computer-usable storage medium containing computer usable program code (include but not limited to disk memory and Optical memory etc.) form of the upper computer program implemented.
The present invention is with reference to method, equipment (system) and computer program product according to embodiments of the present invention The flow chart of product and/or block diagram describe.It should be understood that can by computer program instructions flowchart and / or block diagram in each flow process and/or flow process in square frame and flow chart and/or block diagram and/ Or the combination of square frame.These computer program instructions can be provided to general purpose computer, special-purpose computer, embedding The processor of formula datatron or other programmable data processing device is to produce a machine so that by calculating The instruction that the processor of machine or other programmable data processing device performs produces for realizing at flow chart one The device of the function specified in individual flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and computer or the process of other programmable datas can be guided to set In the standby computer-readable memory worked in a specific way so that be stored in this computer-readable memory Instruction produce and include the manufacture of command device, this command device realizes in one flow process or multiple of flow chart The function specified in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes Sequence of operations step must be performed to produce computer implemented place on computer or other programmable devices Reason, thus the instruction performed on computer or other programmable devices provides for realizing flow chart one The step of the function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification without deviating from this to the present invention Bright spirit and scope.So, if the present invention these amendment and modification belong to the claims in the present invention and Within the scope of its equivalent technologies, then the present invention is also intended to comprise these change and modification.

Claims (12)

1. the method for a superposition GUI figure layer on the digital image, it is characterised in that including:
The sequential corresponding with the resolution of digital picture is generated at outfan;
From memorizer, digital picture and GUI image is read by this sequential;Wherein, described GUI image with Described digital picture size is identical;
GUI image and digital picture are according to pixels put and is overlapped one by one.
Method the most according to claim 1, it is characterised in that farther include:
When GUI image is modified, scheme with the GUI in amended GUI image more new memory Picture.
Method the most according to claim 1, it is characterised in that GUI image and digital picture are pressed Pixel is overlapped one by one, is the color data that GUI image and digital picture are according to pixels put to be carried out one by one Superposition.
Method the most according to claim 3, it is characterised in that by GUI image and digital picture According to pixels put when being overlapped one by one, one of as follows or a combination thereof is overlapped:
When GUI image pixel is set as complete superposition, it is this GUI image pixel after superposition;
When GUI image pixel is set as not superposition completely, it is Pixel of Digital Image point after superposition;
When GUI image pixel is set as with transparency superposition, it is Pixel of Digital Image point and this after superposition GUI image pixel is with the pixel after transparency superposition.
Method the most according to claim 1, it is characterised in that described memorizer is that Double Data Rate is same Step dynamic RAM.
6. according to the arbitrary described method of claim 1 to 5, it is characterised in that
From memorizer, read digital picture and GUI image chronologically, be from memorizer, read one chronologically Frame of digital image and a frame GUI image;
Farther include: after reading a frame of digital image and a frame GUI image chronologically from memorizer, will This digital picture and GUI image are cached in two FIFO respectively;
GUI image and digital picture are according to pixels put and is overlapped one by one, be to read GUI from two FIFO The pixel number evidence of image and digital picture, and according to pixels put and be overlapped one by one.
7. the device of a superposition GUI figure layer on the digital image, it is characterised in that including:
Generation module, for generating the sequential corresponding with the resolution of digital picture at outfan;
Read module, for reading digital picture and GUI image by this sequential from memorizer;Wherein, institute State GUI image identical with described digital picture size;
Laminating module, is overlapped one by one for GUI image and digital picture according to pixels being put.
Device the most according to claim 7, it is characterised in that farther include:
More new module, for when modifying GUI image, updates with amended GUI image and deposits GUI image in reservoir.
Device the most according to claim 7, it is characterised in that laminating module be further used for by The color data that GUI image and digital picture are according to pixels put is overlapped one by one.
Device the most according to claim 9, it is characterised in that laminating module is further used for inciting somebody to action GUI image and digital picture are according to pixels put when being overlapped one by one, one of as follows or a combination thereof is entered Row superposition:
When GUI image pixel is set as complete superposition, it is this GUI image pixel after superposition;
When GUI image pixel is set as not superposition completely, it is Pixel of Digital Image point after superposition;
When GUI image pixel is set as with transparency superposition, it is Pixel of Digital Image point and this after superposition GUI image pixel is with the pixel after transparency superposition.
11. devices according to claim 7, it is characterised in that read module is further used for by this Sequential reads digital picture and GUI image from Double Data Rate synchronous DRAM.
12. according to the arbitrary described device of claim 7 to 11, it is characterised in that
Read module is further used for reading a frame of digital image and frame GUI figure chronologically from memorizer After Xiang, this digital picture and GUI image are cached in two FIFO respectively;
Laminating module is further used for reading GUI image and the pixel number of digital picture from two FIFO According to, and according to pixels put and be overlapped one by one.
CN201610197402.4A 2016-03-30 2016-03-30 Method and device for superimposing a GUI (Graphical User Interface) image layer on a digital image Pending CN105872418A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610197402.4A CN105872418A (en) 2016-03-30 2016-03-30 Method and device for superimposing a GUI (Graphical User Interface) image layer on a digital image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610197402.4A CN105872418A (en) 2016-03-30 2016-03-30 Method and device for superimposing a GUI (Graphical User Interface) image layer on a digital image

Publications (1)

Publication Number Publication Date
CN105872418A true CN105872418A (en) 2016-08-17

Family

ID=56626658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610197402.4A Pending CN105872418A (en) 2016-03-30 2016-03-30 Method and device for superimposing a GUI (Graphical User Interface) image layer on a digital image

Country Status (1)

Country Link
CN (1) CN105872418A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534722A (en) * 2016-12-19 2017-03-22 中国科学院长春光学精密机械与物理研究所 FPGA based video stream character superimposition processing system and processing method
CN106559624A (en) * 2016-11-17 2017-04-05 西安诺瓦电子科技有限公司 Picture and text stacking apparatus and picture and text stacking method
CN106899878A (en) * 2017-03-21 2017-06-27 电子科技大学 A kind of adjustable video and graph compound method and system of transparency based on OMAP chips
CN107888848A (en) * 2017-11-07 2018-04-06 哈尔滨工程大学 The device and method of artistic font is superimposed on image based on FPGA
CN107888844A (en) * 2017-11-08 2018-04-06 苏州蓝博控制技术有限公司 Picture and text and real-time video mixed display method, system, the device and system of compatible video capability and image-text video mixed display
CN110313015A (en) * 2018-05-31 2019-10-08 深圳市大疆创新科技有限公司 Data processing method and processing circuit
CN110913262A (en) * 2019-11-28 2020-03-24 京东方科技集团股份有限公司 Image superposition method and device
CN111222390A (en) * 2018-11-23 2020-06-02 简韶逸 Image operation method and system for obtaining eyeball tracking position
CN111246140A (en) * 2018-11-29 2020-06-05 西安诺瓦星云科技股份有限公司 Digital mark display method and digital mark display system
CN112653917A (en) * 2020-11-04 2021-04-13 西安诺瓦星云科技股份有限公司 Video processing method and device and video processing equipment
CN113014960A (en) * 2019-12-19 2021-06-22 腾讯科技(深圳)有限公司 Method, device and storage medium for online video production
CN113467685A (en) * 2021-07-29 2021-10-01 浙江大华技术股份有限公司 Control method for information rolling display, LED screen and storage medium
CN113728622A (en) * 2019-12-31 2021-11-30 上海飞来信息科技有限公司 Method and device for wirelessly transmitting image, storage medium and electronic equipment
CN115379148A (en) * 2021-05-17 2022-11-22 北京市博汇科技股份有限公司 Video OSD menu image superposition method based on FPGA platform
CN115379148B (en) * 2021-05-17 2024-06-07 北京市博汇科技股份有限公司 Video OSD menu image superposition method based on FPGA platform

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1558664A (en) * 2004-01-17 2004-12-29 上海交通大学 A high definition digital television program caption and background image synthesis method
CN1713264A (en) * 2005-07-15 2005-12-28 合肥工业大学 Digital OSD controller based on FRGA
CN101521775A (en) * 2009-03-27 2009-09-02 清远市佳的美电子科技有限公司 Streaming media playing method based on DireotShow platform
CN103139509A (en) * 2013-02-26 2013-06-05 西安创芯科技有限责任公司 On screen display (OSD) control display method and device based on advanced extensible interface (AXI) bus protocol
US20140285515A1 (en) * 2013-03-22 2014-09-25 Sony Corporation Image processing apparatus, source device, image processing system, image processing method, and program
CN105049758A (en) * 2015-06-30 2015-11-11 深圳市创凯电子有限公司 System and method for character superimposition processing of splicing wall

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1558664A (en) * 2004-01-17 2004-12-29 上海交通大学 A high definition digital television program caption and background image synthesis method
CN1713264A (en) * 2005-07-15 2005-12-28 合肥工业大学 Digital OSD controller based on FRGA
CN101521775A (en) * 2009-03-27 2009-09-02 清远市佳的美电子科技有限公司 Streaming media playing method based on DireotShow platform
CN103139509A (en) * 2013-02-26 2013-06-05 西安创芯科技有限责任公司 On screen display (OSD) control display method and device based on advanced extensible interface (AXI) bus protocol
US20140285515A1 (en) * 2013-03-22 2014-09-25 Sony Corporation Image processing apparatus, source device, image processing system, image processing method, and program
CN105049758A (en) * 2015-06-30 2015-11-11 深圳市创凯电子有限公司 System and method for character superimposition processing of splicing wall

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559624B (en) * 2016-11-17 2019-12-24 西安诺瓦星云科技股份有限公司 Image-text superposition device and image-text superposition method
CN106559624A (en) * 2016-11-17 2017-04-05 西安诺瓦电子科技有限公司 Picture and text stacking apparatus and picture and text stacking method
CN106534722A (en) * 2016-12-19 2017-03-22 中国科学院长春光学精密机械与物理研究所 FPGA based video stream character superimposition processing system and processing method
CN106899878A (en) * 2017-03-21 2017-06-27 电子科技大学 A kind of adjustable video and graph compound method and system of transparency based on OMAP chips
CN107888848A (en) * 2017-11-07 2018-04-06 哈尔滨工程大学 The device and method of artistic font is superimposed on image based on FPGA
CN107888844B (en) * 2017-11-08 2021-06-22 苏州蓝博控制技术有限公司 Method and system for image-text and real-time video mixed display, and device and system compatible with video function and image-text video mixed display
CN107888844A (en) * 2017-11-08 2018-04-06 苏州蓝博控制技术有限公司 Picture and text and real-time video mixed display method, system, the device and system of compatible video capability and image-text video mixed display
CN110313015A (en) * 2018-05-31 2019-10-08 深圳市大疆创新科技有限公司 Data processing method and processing circuit
CN111222390A (en) * 2018-11-23 2020-06-02 简韶逸 Image operation method and system for obtaining eyeball tracking position
CN111222390B (en) * 2018-11-23 2023-11-03 简韶逸 Image operation method and system for acquiring eyeball tracking position
CN111246140A (en) * 2018-11-29 2020-06-05 西安诺瓦星云科技股份有限公司 Digital mark display method and digital mark display system
CN110913262A (en) * 2019-11-28 2020-03-24 京东方科技集团股份有限公司 Image superposition method and device
CN113014960A (en) * 2019-12-19 2021-06-22 腾讯科技(深圳)有限公司 Method, device and storage medium for online video production
CN113728622A (en) * 2019-12-31 2021-11-30 上海飞来信息科技有限公司 Method and device for wirelessly transmitting image, storage medium and electronic equipment
CN112653917A (en) * 2020-11-04 2021-04-13 西安诺瓦星云科技股份有限公司 Video processing method and device and video processing equipment
CN115379148A (en) * 2021-05-17 2022-11-22 北京市博汇科技股份有限公司 Video OSD menu image superposition method based on FPGA platform
CN115379148B (en) * 2021-05-17 2024-06-07 北京市博汇科技股份有限公司 Video OSD menu image superposition method based on FPGA platform
CN113467685A (en) * 2021-07-29 2021-10-01 浙江大华技术股份有限公司 Control method for information rolling display, LED screen and storage medium

Similar Documents

Publication Publication Date Title
CN105872418A (en) Method and device for superimposing a GUI (Graphical User Interface) image layer on a digital image
EP1056071B1 (en) Projection display and display method therefor, and image display
CN100429575C (en) Projection display
EP2525561A1 (en) Data-generating device, data-generating method, data-generating program, and recording medium
JP2007271908A (en) Multi-image creating device
WO2014192044A1 (en) Image processing device, image processing system, and image processing method
CN106534722A (en) FPGA based video stream character superimposition processing system and processing method
CN105427358B (en) View animation generation method and system based on android
EP2637411B1 (en) Image compositing apparatus
US7187391B2 (en) Projection display apparatus, display method for same and image display apparatus
CN106937103B (en) A kind of image processing method and device
CN109242761B (en) Picture display method and device
CN101309377B (en) Method for implementing OSD background display in gradations of color
CN109389150A (en) Image consistency comparison method, device, storage medium and electronic equipment
JP4063918B2 (en) Apparatus and method for creating an image containing graphics information for display
US7773094B2 (en) Method and device for the display of images
JPH05188922A (en) Control system of screen display device
JP2002535785A (en) Image display
CN104699374A (en) Control method and electronic device
CN106959573A (en) A kind of miniature grandfatherd equipment pixel compensation exposure processing method
JPS60198687A (en) Picture quality changing device
CN111158618A (en) Method and equipment for displaying pattern based on mobile terminal
KR101236816B1 (en) Subtitle processing apparatus and method
JP2007206428A (en) Image display device
JP2002258827A (en) Image display device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160817

RJ01 Rejection of invention patent application after publication