CN107392833A - A kind of adding method and adding set of the picture watermark based on smart machine - Google Patents
A kind of adding method and adding set of the picture watermark based on smart machine Download PDFInfo
- Publication number
- CN107392833A CN107392833A CN201710625216.0A CN201710625216A CN107392833A CN 107392833 A CN107392833 A CN 107392833A CN 201710625216 A CN201710625216 A CN 201710625216A CN 107392833 A CN107392833 A CN 107392833A
- Authority
- CN
- China
- Prior art keywords
- watermark
- picture
- added
- information
- area
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/0021—Image watermarking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2201/00—General purpose image data processing
- G06T2201/005—Image watermarking
- G06T2201/0061—Embedding of the watermark in each block of the image, e.g. segmented watermarking
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Editing Of Facsimile Originals (AREA)
- Image Processing (AREA)
Abstract
The invention provides a kind of adding method of the picture watermark based on smart machine, it is characterised in that the adding method includes:A picture is read, the picture is converted into predetermined storage format from currently stored form, obtains the watermark Adding Area of the picture;Watermark to be added is obtained, according to the positional information of the watermark Adding Area, the watermark to be added is added to the watermark Adding Area;The picture is reduced to the currently stored form and preserved.The yuv data messages of the corresponding watermark picture of extraction, ultimately produce our own yuv forms, then start in desired position with the pixel information of watermark by alpha come calculate whether replace corresponding to original image information, and then improve the effect of Consumer's Experience.
Description
Technical field
The present invention relates to smart machine field, more particularly to a kind of adding method of picture watermark based on smart machine and
Adding set.
Background technology
With communication, the rapid development of computer and network technologies, the high-speed transfer of digital picture, processing and oneself is stored
Through becoming a reality, but due to the presence of Network Security Issues, how to manage and prevent illegal data copy, safeguard unit
Great interest and the attention of people is caused with the intellectual property of individual.To solve this problem, proposed in the world in recent years
A kind of information security technology is that invisible information is added in original image to mark copyright, and these information are referred to as digital watermarking.
Because digital watermarking has a wide range of applications in fields such as copyright protection, true and false discriminating, confidential corespondences, therefore it becomes
One very important research field.
At present, substantial amounts of digital photograph, the picture of manual drawing and the exhibiting pictures of Products on internet be present
Deng.But the increase of network information will cause information to spread rapidly, a large amount of pictures on internet are not obtaining owner
Agreement in the case of just arbitrarily spread everywhere.In order to solve the problems, such as that picture is arbitrarily spread without permission, to picture plus
Watermark can effectively protect the proprietary picture of picture not to be abused, while serve the effect of mark picture again.
Had wide range of applications to picture watermarking, for example company prevents other people from usurping figure in picture plus watermark
Piece.At present, batch watermarking can only fixing watermark position, not as the upper left corner, the upper right corner, the lower left corner or lower right corner etc., one
As by picture size, classification judge the watermark location in which region up and down.But when to picture watermarking, water
Print position is critically important, if watermark is added in into a people on the face, user will can't see most important content in picture.So
And if watermark is applied to the position in blue sky in a pictures, the viewing effect of user is not interfered with thus, reaches intelligence
The purpose of watermarking.What prior art can only fix is added to watermark the position of picture fixation, it is easy to causes some pictures
Most important content can be covered in by watermark, had a strong impact on Consumer's Experience, and the watermark to batch fixed position removes
It is relatively easy, the easily stolen use of picture.
Yuv data form is mainly used in optimizing the transmission of colour-video signal, makes its compatible old-fashioned black-and-white television backward.With
Rgb video signal transmission is compared, and its biggest advantage is only take few frequency range (RGB three independent videos of requirement
Signal simultaneous transmission).Wherein " Y " represents lightness (Luminance or Luma), that is, grey decision-making;And " U " and " V " is represented
Be then colourity (Chrominance or Chroma), effect is description colors of image and saturation degree, the face for specified pixel
Color." brightness " is established through RGB input signals, and method is that the specific part of rgb signal is superimposed together." colourity "
Then define two aspects of color-tone and saturation degree, represented respectively with Cr and Cb.Wherein, Cr reflects RGB inputs
Difference between signal RED sector and rgb signal brightness value.And Cb reflections is that RGB input signals blue portion is believed with RGB
Difference between number brightness value.
The content of the invention
In order to overcome above-mentioned technological deficiency, it is an object of the invention to provide a kind of picture watermark based on smart machine
Adding method and adding set.
The invention discloses a kind of adding method of the picture watermark based on smart machine, it is characterised in that the addition
Method includes:
A picture is read, the picture is converted into predetermined storage format from currently stored form, obtains the picture
Watermark Adding Area;
Watermark to be added is obtained, according to the positional information of the watermark Adding Area, the watermark to be added is added to
The watermark Adding Area;
The picture is reduced to the currently stored form and preserved.
Preferably, a picture is read, the picture is converted into predetermined storage format from currently stored form, described in acquisition
The watermark Adding Area of picture, including:
The predetermined storage format includes the first storage location, the second storage location, the 3rd storage location;
First storage location deposits picture size, and second storage location deposits pictorial information, and the described 3rd deposits
Storage space puts the alpha value information for depositing the picture.
Preferably, watermark to be added is obtained, according to the positional information of the watermark Adding Area, by the watermark to be added
Added to the watermark Adding Area, including:
Load the watermark to be added and the picture;
When the size of the watermark to be added is more than the size of the picture, a warning message is prompted;
The content of the warning message includes prompting and adds the watermark to be added in the mistake of the watermark Adding Area.
Preferably, watermark to be added is obtained, according to the positional information of the watermark Adding Area, by the watermark to be added
Added to the watermark Adding Area, including:
The outer back gauge of the watermark to be added is set, and obtains the start bit of the watermark Adding Area of the picture
Put;
The information of the watermark to be added is passed through the described 3rd storage position by the original position in the watermark Adding Area
The alpha value of storage is put to replace the information of the corresponding picture.
Preferably, the picture is reduced to the currently stored form and preserved, including:
The watermark to be added is stored in the picture;
The currently stored form of the picture is obtained, and the picture is reduced to institute from the predetermined storage format
State currently stored form.
The invention also discloses a kind of adding set of the picture watermark based on smart machine, it is characterised in that described to add
Feeder apparatus includes:Read module, modular converter, add module, wherein,
The read module is used to read a picture, and the communication of the modular converter and the read module connects, for will
The picture is converted to predetermined storage format from currently stored form, and the read module is additionally operable to obtain the watermark of the picture
Adding Area;
The add module connects with read module communication, for obtaining watermark to be added, is added according to the watermark
Add the positional information in region, the watermark to be added is added to the watermark Adding Area;
The modular converter is used to the picture is reduced into the currently stored form and preserved.
Preferably, the modular converter, including:
The modular converter is used to store the predetermined storage format, and the predetermined storage format includes the first storage position
Put, the second storage location, the 3rd storage location;
First storage location deposits picture size, and second storage location deposits pictorial information, and the described 3rd deposits
Storage space puts the alpha value information for depositing the picture.
Preferably, the read module, the modular converter include:
The read module is used to load the watermark to be added and the picture;
The modular converter is used to, when the size of the watermark to be added is more than the size of the picture, prompt a warning
Information;
The content of the warning message includes prompting and adds the watermark to be added in the mistake of the watermark Adding Area.
Preferably, the add module, including:
The add module is used for the outer back gauge for setting the watermark, and obtains the starting in region described in the picture
Position;
The original position that the add module is used in the watermark Adding Area leads to the information of the watermark to be added
The alpha value of the 3rd storage location storage is crossed to replace the information of the corresponding picture.
Preferably, the modular converter, the add module, including:
The add module is used to the watermark to be added being stored in the picture;
The modular converter is used for the currently stored form for obtaining the picture, and the picture is made a reservation for from described
Storage format is reduced to the currently stored form.
After employing above-mentioned technical proposal, compared with prior art, have the advantages that:
1. adding water mark method and device by picture of the present invention, piecemeal processing is carried out using to Target Photo, by target
Picture is divided into multiple picture regions, wherein, Target Photo is the picture of watermark to be added;Obtain each in multiple picture regions
The gray value of pixel;Calculate the variance of the gray value of multiple picture regions;Region to be added is determined, wherein, region to be added
It is the minimum picture region of the variance of gray value in multiple picture regions;Obtain watermark to be added;Watermark to be added is added to
Region to be added, the fixed position that solving watermark can only be added in picture cause that part important content is covered and watermark is gone
The problem of except being easier, and then improve the effect of Consumer's Experience;
2. colored YUV image turns, the conversion of black and white YUV image is very simple, and YUV is that data overall size is less than RGB lattice
Formula.
Brief description of the drawings
Fig. 1 is the schematic flow sheet for meeting the adding method of picture watermark in one embodiment of the present invention;
To meet in one embodiment of the present invention, one kind of the step 101 of the adding method of picture watermark is predetermined to deposit Fig. 2
Store up the structure journey schematic diagram of the specific implementation of form;
Fig. 3 is meets in one embodiment of the present invention, the flow signal of the step 102 of the adding method of picture watermark
Figure;
Fig. 4 is meets in one embodiment of the present invention, the flow signal of the step 102 of the adding method of picture watermark
Figure;
Fig. 5 is meets in one embodiment of the present invention, the flow signal of the step 103 of the adding method of picture watermark
Figure;
Fig. 6 is the structural representation for meeting the adding set of picture watermark in one embodiment of the present invention.
Reference:
10- adding sets, 20- read modules, 30- modular converters, 40- add modules:
Embodiment
Advantages of the present invention is expanded on further below in conjunction with accompanying drawing and specific embodiment.
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
Smart machine can be implemented in a variety of manners.For example, the smart machine described in the present invention can be included such as
Mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet personal computer),
The smart machine of PMP (portable media player), guider etc. and such as digital TV, box-like computer etc.
Fixed smart machine.Hereinafter it is assumed that smart machine is smart machine.However, it will be understood by those skilled in the art that except spy
Outside the element that purpose Yong Yu not moved, construction according to the embodiment of the present invention can also apply to the intelligence of fixed type
Equipment.
In the description of the invention, it is to be understood that term " longitudinal direction ", " transverse direction ", " on ", " under ", "front", "rear",
The orientation or position relationship of the instruction such as "left", "right", " vertical ", " level ", " top ", " bottom " " interior ", " outer " is based on accompanying drawing institutes
The orientation or position relationship shown, it is for only for ease of the description present invention and simplifies description, rather than instruction or the dress for implying meaning
Put or element there must be specific orientation, with specific azimuth configuration and operation, therefore it is not intended that to limit of the invention
System.
In the description of the invention, unless otherwise prescribed with limit, it is necessary to explanation, term " installation ", " connected ",
" connection " should be interpreted broadly, for example, it may be mechanical connection or electrical connection or the connection of two element internals, can
To be to be joined directly together, can also be indirectly connected by intermediary, for the ordinary skill in the art, can basis
Concrete condition understands the concrete meaning of above-mentioned term.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the disclosure
A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, do not departing from
In the case of disclosure scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining ".
Refering to Fig. 1-5, to meet the schematic flow sheet in one embodiment of the present invention, this method includes:
Step 101:A picture is read, the picture is converted into predetermined storage format from currently stored form, obtains institute
State the watermark Adding Area of picture;
In one embodiment of the present of invention, the process of watermark is added on specified picture:
Generate the watermark prestored:Mainly by the way that the picture of watermark is converted into depositing with yuv data form
The character types of storage.
For yuv format has two major classes:Planar and packed.
For planar yuv format, the Y of first Coutinuous store all pixels point, and then storage all pixels point U,
It is followed by the V of all pixels point.
For packed yuv format, the Y of each pixel, U, V are continuous friendship * storages.
The yuv data form of the present embodiment is specially:(preceding 8 bytes storage picture size, intermediate storage pictorial information,
Alpha value information is deposited below).
Similar with BITMAP, YUV is also a kind of colour coding method, is mainly used in television system and analog video neck
Domain, it separates monochrome information (Y) with color information (UV), and no UV information can equally show complete image, only
It is black and white, such design solves the compatibling problem of colour television set and black-and-white television well.Also, YUV unlike
BITMAP requires three independent vision signal simultaneous transmissions like that, and few frequency range is taken so being transmitted with YUV modes.
Specifically, and then to character types obscured with being split, each section of character types is finally mapped as one
Section code is used for representing each watermark, is stored in the storage of smart machine or a webserver.
Because the picture of file format also needs to the efficiency of transformer effect watermarking, therefore directly carry out table using YUV characters
Diagram piece, caused YUV pictures are referred to as " sketch ".Mainly by using conversion program software to designated pictures in the present embodiment
Different types of YUV pictures are produced into, while the size of YUV pictures can be changed by changing some parameters.Therefore operating
During be the size that can control sketch, but be again converted to artwork to not influence to the addition of the sketch after watermark
When picture quality etc., it is preferable that select not changing the size of sketch i.e. artwork in varied situations.
By the way that each section of sketch is mapped into one section of code, then code is added to original application software code
In, pass through an algorithm application program for realizing addition watermark.This method describes each section using one-dimension array, uses
Each element (a such as byte) describes a character in this part in array.
The mode that the storage format of YUV code streams samples with it in fact is closely related, and the sample mode of main flow has three kinds,
YUV4:4:4, YUV4:2:2, YUV4:2:0, its principle is that each pixel is reduced from code stream according to its sample format
YUV values, because only that correctly reducing the YUV values of each pixel, it could be extracted by YUV and BITMAP conversion formula
Go out the BITMAP values of each pixel, then show.
But so array may be very big, search and positioning sketch in each pixel when can consume longer
Between.Therefore, the sketch can be now divided into a part for picture one by one, then the picture of this each section is used into more numbers
Group describes, and reuses a data structure to preserve the relation between these arrays, this improves conversion picture and is referring to
The efficiency of addition watermark is put in positioning.
In the present embodiment, the storage mode of YUV code streams, and with the YUV for sampling each pixel behind storage mode
The method of data, wherein, Cb, Cr implication are equal to U, V.
Using YV12, YU12 forms (belong to YUV420)
YU12 and YV12 belongs to YUV420 forms, and a kind of Plane patterns, and Y, U, V component are packed respectively, deposited successively
Storage.The yuv data extraction of each of which pixel follows the extracting mode of YUV420 forms, i.e. 4 Y-components share one group of UV.
In YUV420, a pixel a corresponding Y, a 4X4 corresponding U and V of blockage.For all
YUV420 images, their Y value arrangement is identical, because only that Y image is exactly gray level image.YUV420sp with
Their the UV arrangements of YUV420p data format are entirely different in principle.420p it be after first U has been deposited, then to deposit
Put V, that is to say, that UV they be continuous.And 420sp it be UV, UV so alternately deposit.
Step 102:Watermark to be added is obtained, according to the positional information of the watermark Adding Area, by the water to be added
Print is added to the watermark Adding Area;
Add a watermark in designated pictures:
By during the code insertion of above-mentioned watermark to application program, it is necessary to ensure that all watermark codes can be performed,
Otherwise the watermark that can not be extracted in internal memory is compared.The present embodiment devises an insertion method based on event, this method
Ensure the execution route of operation by obtaining one, and watermark code is inserted into the path.
It is determined that the position that watermark is added in needing to add the picture i.e. sketch of watermark is specified by a smart machine
Incoming event adds the positional information of watermark to obtain in designated pictures, and the incoming event can include:Click on the figure specified
One position of piece, then after having responded the event, application program obtains phase of the position of the addition watermark in the designated pictures
To positional information, its position coordinates will be obtained in the content of the corresponding yuv data form of positional information, by the location point
Yuv data fmt chunk up and down chooses the basic block being only performed once as basic block, in the content of the basic block with
The machine transplanting of rice enters the yuv data form of watermark.In practice, the position can not necessarily be accurate to each pixel, due to
The picture size opened in smart machine is limited, therefore the watermark location can only be a substantially accurate position.Due to specifying
The storage format of picture and the storage format of watermark be all yuv data form, its realize principle be also in specified picture
Yuv data form data structure in find addition watermark position corresponding to yuv data form, then opened from the position
One group of yuv data form is substituted for the yuv data form of watermark by the beginning, and certain the present embodiment also supports user to add simultaneously
Enter customized information, the addition of corresponding watermark is realized using application program.Compared with program is added in existing watermark, intelligence
Energy appliance applications are more by event-driven.A system of the present embodiment according to defined completion in the application program of smart machine
Row sequence of events obtains corresponding addition information, corresponding watermark information then is added into designated pictures according to input as input
Information in.
Step 103:The picture is reduced to the currently stored form and preserved;
After watermark addition is completed, specified picture is re-converted into original form, i.e. the form before addition.Should
Process can be realized by an existing mode, for example, yuv forms are converted into jpeg format using FFmpeg instruments.
Describe to realize the mobile terminal of each embodiment of the present invention referring now to accompanying drawing.In follow-up description, use
For represent element such as " module ", " part " or " unit " suffix only for be advantageous to the present invention explanation, itself
Not specific meaning.Therefore, " module " can be used mixedly with " part ".
Refering to Fig. 6, to meet the adding set of picture watermark of the present invention, can be realized by an adding set 10, at this
In adding set, including:10- adding sets, 20- read modules, 30- modular converters, 40- add modules
Read module 20:
In one embodiment of the invention, its will be read and specific believed after specified picture and the loading of watermark picture
Breath.Specifically, the pixel value of each picture region in multiple picture regions is obtained.Obtain each picture region in multiple picture regions
The gray value of each pixel in domain.Obtain in Target Photo in multiple picture regions the pixel value of each picture region and every
The gray value of individual pixel, in order to calculate the average of the gray value of each picture region in multiple picture regions.
After the pictorial information specified of above-mentioned acquisition, the piecemeal to specified picture is mainly carried out by pixel value
Processing.It is pre- according to the pixel value of specified picture and first when the pixel value of specified picture is more than the first presetted pixel value
, accordingly, will when above-mentioned difference is more than a second presetted pixel value if the difference of pixel value carries out the division of picture region
The second above-mentioned quantity multiplies 1, i.e., picture is divided into the block of the 3rd quantity, wherein second number of the value of the 3rd quantity equal to one times
Amount.When above-mentioned difference is more than two the second presetted pixel values, accordingly, the second above-mentioned quantity is multiplied 2, i.e., is divided into picture
The block of 3rd quantity, wherein the value of the 3rd quantity is equal to twice of the second quantity.By that analogy, the pixel value for the picture specified is got over
Greatly, the picture region for the picture division specified is more.Specified picture is divided into multiple picture regions to be advantageous to calculate respectively
The variance of the gray value of multiple picture regions, the color stability in each region in multiple picture regions can be preferably analyzed,
And then the Adding Area of watermark is caused not impact the influence of user's viewing effect to target image.
Modular converter 30:
In one embodiment of the invention, specified picture is changed to the picture of a yuv data form, obscures and divides
The picture of the yuv data form is cut, the picture of each section data format of segmentation is mapped as one section of storage format, by every section
A fragment of the storage format as picture, form picture code.Meanwhile store a series of watermark figures that can be used for addition
Piece, the watermark picture are also stored using the yuv data form.The yuv data form of the present embodiment is specially:(preceding 8 bytes
Deposit picture size, intermediate storage pictorial information, behind deposit alpha value information).The watermark of the present embodiment uses picture,
But need to be changed picture unprocessed form, that is, the picture profile of a yuv data form is produced, and in order that obtain watermark
Effect is more preferable, also needs to merotomize profile, and different piece will share some redundancies.In this way so that should
Watermark is difficult to be changed, even if a part of watermark is altered, still may determine that watermark in application program whether with user
What is provided is identical.In addition, this method can automatically generate the pattern of some storage formats, conversion lattice are dynamically arranged in internal memory
Picture after formula, if representing watermark using multiple profiles, each section in the profile both corresponds to the one of storage format
Individual fragment.
Add module 40:
The incoming event specified by a smart machine adds the positional information of watermark to obtain in designated pictures, and this is defeated
Incoming event can include:The position of picture specified is clicked on, then after having responded the event, application program obtains the addition water
Relative position information of the position of print in the designated pictures, by the content of the corresponding yuv data form of positional information
Its position coordinates is obtained, using the yuv data fmt chunk up and down of the location point as basic block, chooses what is be only performed once
Basic block, the yuv data form of the radom insertion watermark in the content of the basic block.In practice, the position is not one
Each pixel is surely accurate to, because the picture size opened in smart machine is limited, therefore the watermark location can only be
One substantially accurate position.Because the storage format of specified picture and the storage format of watermark are all yuv data forms, its
The principle of realization is also to be found in the data structure of the yuv data form of specified picture corresponding to the position of addition watermark
Yuv data form, then one group of yuv data form is substituted for the yuv data form of watermark since the position, this certain reality
Applying example also supports user to add customized information simultaneously, and the addition of corresponding watermark is realized using application program.
Compared with program is added in existing watermark, smart machine application program is more by event-driven.The present embodiment is according to smart machine
The sequence of events sequence of defined completion in application program obtains corresponding addition information, then according to defeated as input
Enter and add corresponding watermark information in the information of designated pictures.
The present embodiment can also verify whether watermark is identical by startup optimization smart machine application program, and scanning intelligence is set
The storage device of standby application program, and watermark is positioned from storage device, then extract the relevant information of watermark and carry out checking watermark
Yuv data form.When needing to verify the watermark of application program, extracted first from application program, then scan internal memory
And obtain watermark.After watermark is extracted, itself and the watermark that user provides are compared, if identical, certifying software be by
Restructuring.It should be added that do not need two watermarks identical in the present embodiment.Therefore, though picture some
Part is damaged, and compare instrument by human eye or text is compared to YUV similitudes, and then identifies watermark, to protect user
Identification information.
After watermark addition is completed, specified picture is re-converted into original form, i.e. the form before addition.Should
Process can be realized by an existing mode, for example, yuv forms are converted into jpeg format using FFmpeg instruments.
In addition, the embodiment of the present invention also provides a kind of computer-readable recording medium, it is stored with computer and can perform
Instruction, above-mentioned computer-readable recording medium is, for example, nonvolatile memory such as CD, hard disk or flash memory.It is above-mentioned
Computer executable instructions be used for the adding method for allowing computer or similar arithmetic unit to complete above-mentioned picture watermark
In various operations.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description
Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not
Necessarily refer to identical embodiment or example.Moreover, specific features, structure, material or the feature of description can be any
One or more embodiments or example in combine in an appropriate manner.
It should be noted that embodiments of the invention have preferable implementation, and not the present invention is made any type of
Limitation, any one skilled in the art change or are modified to possibly also with the technology contents of the disclosure above equivalent effective
Embodiment, as long as without departing from the content of technical solution of the present invention, above example is made according to technical spirit of the invention
Any modification or equivalent variations and modification, in the range of still falling within technical solution of the present invention.
Claims (10)
1. a kind of adding method of the picture watermark based on smart machine, it is characterised in that the adding method includes:
A picture is read, the picture is converted into predetermined storage format from currently stored form, obtains the watermark of the picture
Adding Area;
Watermark to be added is obtained, according to the positional information of the watermark Adding Area, by the watermark to be added described in
Watermark Adding Area;
The picture is reduced to the currently stored form and preserved.
2. adding method as claimed in claim 1 a, it is characterised in that picture is read, by the picture from currently stored lattice
Formula is converted to predetermined storage format, obtains the watermark Adding Area of the picture, including:
The predetermined storage format includes the first storage location, the second storage location, the 3rd storage location;
First storage location deposits picture size, and second storage location deposits pictorial information, the 3rd storage position
Put the alpha value information for depositing the picture.
3. adding method as claimed in claim 2, it is characterised in that obtain watermark to be added, area is added according to the watermark
The positional information in domain, the watermark to be added is added to the watermark Adding Area, including:
Load the watermark to be added and the picture;
When the size of the watermark to be added is more than the size of the picture, a warning message is prompted;
The content of the warning message includes prompting and adds the watermark to be added in the mistake of the watermark Adding Area.
4. adding method as claimed in claim 2, it is characterised in that obtain watermark to be added, area is added according to the watermark
The positional information in domain, the watermark to be added is added to the watermark Adding Area, including:
The outer back gauge of the watermark to be added is set, and obtains the original position of the watermark Adding Area of the picture;
Original position in the watermark Adding Area deposits the information of the watermark to be added by the 3rd storage location
The alpha value put corresponds to the information of the picture to replace.
5. adding method as claimed in claim 1, it is characterised in that the picture is reduced to the currently stored form simultaneously
Preserve, including:
The watermark to be added is stored in the picture;
The currently stored form of the picture is obtained, and the picture is reduced to described work as from the predetermined storage format
Preceding storage format.
6. a kind of adding set of the picture watermark based on smart machine, it is characterised in that the adding set includes:Read mould
Block, modular converter, add module, wherein,
The read module is for reading a picture, and the modular converter connects with read module communication, for by described in
Picture is converted to predetermined storage format from currently stored form, and the read module is additionally operable to obtain the watermark addition of the picture
Region;
The add module is connected with read module communication, and for obtaining watermark to be added, area is added according to the watermark
The positional information in domain, the watermark to be added is added to the watermark Adding Area;
The modular converter is used to the picture is reduced into the currently stored form and preserved.
7. adding set as claimed in claim 6, it is characterised in that the modular converter, including:
The modular converter is used to store the predetermined storage format, and the predetermined storage format includes the first storage location, the
Two storage locations, the 3rd storage location;
First storage location deposits picture size, and second storage location deposits pictorial information, the 3rd storage position
Put the alpha value information for depositing the picture.
8. adding set as claimed in claim 7, it is characterised in that the read module, the modular converter include:
The read module is used to load the watermark to be added and the picture;
The modular converter is used to, when the size of the watermark to be added is more than the size of the picture, prompt a warning letter
Breath;
The content of the warning message includes prompting and adds the watermark to be added in the mistake of the watermark Adding Area.
9. adding set as claimed in claim 7, it is characterised in that the add module, including:
The add module is used for the outer back gauge for setting the watermark, and obtains the start bit in region described in the picture
Put;
The information of the watermark to be added is passed through institute by the original position that the add module is used in the watermark Adding Area
The alpha value of the 3rd storage location storage is stated to replace the information of the corresponding picture.
10. adding set as claimed in claim 6, it is characterised in that the modular converter, the add module, including:
The add module is used to the watermark to be added being stored in the picture;
The modular converter is used to obtaining the currently stored form of the picture, and by the picture from the predetermined storage
Form is reduced to the currently stored form.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710625216.0A CN107392833A (en) | 2017-07-27 | 2017-07-27 | A kind of adding method and adding set of the picture watermark based on smart machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710625216.0A CN107392833A (en) | 2017-07-27 | 2017-07-27 | A kind of adding method and adding set of the picture watermark based on smart machine |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107392833A true CN107392833A (en) | 2017-11-24 |
Family
ID=60342607
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710625216.0A Pending CN107392833A (en) | 2017-07-27 | 2017-07-27 | A kind of adding method and adding set of the picture watermark based on smart machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107392833A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108198123A (en) * | 2017-12-28 | 2018-06-22 | 上海传英信息技术有限公司 | Watermark embedding method and terminal |
CN108563929A (en) * | 2018-04-16 | 2018-09-21 | 深圳市联软科技股份有限公司 | It is a kind of only in the method for concerning security matters Area generation watermark, system, device and medium |
CN113450243A (en) * | 2020-03-24 | 2021-09-28 | 北京四维图新科技股份有限公司 | Watermark adding method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030201994A1 (en) * | 1999-07-16 | 2003-10-30 | Intel Corporation | Pixel engine |
CN102724472A (en) * | 2012-06-20 | 2012-10-10 | 杭州海康威视数字技术股份有限公司 | Method and system for image data format conversion in image processing |
CN104063839A (en) * | 2014-07-02 | 2014-09-24 | 深圳市朵唯志远科技有限公司 | Method and system of accelerating picture synthesis |
CN104182927A (en) * | 2014-09-12 | 2014-12-03 | 北京国双科技有限公司 | Method and device for adding watermark to image |
CN106327415A (en) * | 2016-08-24 | 2017-01-11 | 乐视控股(北京)有限公司 | Image processing method and device |
-
2017
- 2017-07-27 CN CN201710625216.0A patent/CN107392833A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030201994A1 (en) * | 1999-07-16 | 2003-10-30 | Intel Corporation | Pixel engine |
CN102724472A (en) * | 2012-06-20 | 2012-10-10 | 杭州海康威视数字技术股份有限公司 | Method and system for image data format conversion in image processing |
CN104063839A (en) * | 2014-07-02 | 2014-09-24 | 深圳市朵唯志远科技有限公司 | Method and system of accelerating picture synthesis |
CN104182927A (en) * | 2014-09-12 | 2014-12-03 | 北京国双科技有限公司 | Method and device for adding watermark to image |
CN106327415A (en) * | 2016-08-24 | 2017-01-11 | 乐视控股(北京)有限公司 | Image processing method and device |
Non-Patent Citations (1)
Title |
---|
周峰 等: "《C#典型模块开发》", 31 January 2010, 中国铁道出版社 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108198123A (en) * | 2017-12-28 | 2018-06-22 | 上海传英信息技术有限公司 | Watermark embedding method and terminal |
CN108563929A (en) * | 2018-04-16 | 2018-09-21 | 深圳市联软科技股份有限公司 | It is a kind of only in the method for concerning security matters Area generation watermark, system, device and medium |
CN113450243A (en) * | 2020-03-24 | 2021-09-28 | 北京四维图新科技股份有限公司 | Watermark adding method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Krawetz et al. | A picture’s worth | |
US6697498B2 (en) | Method and computer program product for hiding information in an indexed color image | |
US6909438B1 (en) | Video compositor | |
CN105991982B (en) | For the color-match of imaging system | |
CN103517046A (en) | Method, apparatus and computer program product for capturing video content | |
CN107852501A (en) | The method and apparatus encoded for both SDR images for being obtained to HDR image and using color mapping function from the HDR image | |
CN107392833A (en) | A kind of adding method and adding set of the picture watermark based on smart machine | |
US7068857B1 (en) | Method and device for presenting digital images on a low-definition screen | |
CN104811677A (en) | Display control method and device of mobile terminal | |
US7174030B2 (en) | Method and apparatus for embedding and reproducing watermark into and from contents data | |
CN106327415A (en) | Image processing method and device | |
Alwan et al. | Color image steganography in YCbCr space | |
WO2022095595A1 (en) | Image recognition method, apparatus, electronic device, and storage medium | |
CN109166193B (en) | Photographing card-punching or evidence-obtaining method based on time, position, random number and bar code | |
US20080170812A1 (en) | Image composition processing method, computer system with image composition processing function | |
KR100434380B1 (en) | Conversion system of color space of osd and the method | |
CN115348469B (en) | Picture display method, device, video processing equipment and storage medium | |
Liang et al. | Invertible color-to-grayscale conversion using lossy compression and high-capacity data hiding | |
WO2021057154A1 (en) | Graphic code information determination method and apparatus, terminal device, and household appliance | |
US7145573B2 (en) | Method and system to combine a digital graphics object and a digital picture | |
CN110378973B (en) | Image information processing method and device and electronic equipment | |
JP5688729B2 (en) | Address color system, address color creation method based on camera image, encoding method and decoding method using color photographic image | |
JP5172780B2 (en) | Two-dimensional color code of camera-captured image, creation method, display method, and use method | |
CN114692800A (en) | Two-dimensional code generation method and related equipment | |
CN105786995A (en) | Method and device for screening multimedia materials |
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 |