CN109117102A - Image printing method and device - Google Patents
Image printing method and device Download PDFInfo
- Publication number
- CN109117102A CN109117102A CN201810962588.7A CN201810962588A CN109117102A CN 109117102 A CN109117102 A CN 109117102A CN 201810962588 A CN201810962588 A CN 201810962588A CN 109117102 A CN109117102 A CN 109117102A
- Authority
- CN
- China
- Prior art keywords
- image
- printed
- category
- colour
- scheme
- 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
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1203—Improving or facilitating administration, e.g. print management
- G06F3/1208—Improving or facilitating administration, e.g. print management resulting in improved quality of the output result, e.g. print layout, colours, workflows, print preview
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
- G06F3/1253—Configuration of print job parameters, e.g. using UI at the client
- G06F3/1254—Automatic configuration, e.g. by driver
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1278—Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
- G06F3/1285—Remote printer device, e.g. being remote from client or server
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Image Analysis (AREA)
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
The disclosure is directed to a kind of image printing method and devices.This method comprises: obtaining image to be printed;The picture material of the image to be printed is analyzed, with the image category of determination image to be printed;Scheme of colour corresponding with the image category is obtained according to the image category of the image to be printed;The image to be printed is printed out based on acquired scheme of colour.The disclosure uses matching scheme of colour according to the picture material of image to be printed automatically, so as to the printing effect being optimal.
Description
Technical field
This disclosure relates to printing technique field more particularly to a kind of image printing method and device.
Background technique
Printing device is usually all to complete to print using fixed scheme of colour when printing picture or photo.By
In the unification of scheme of colour, what all images printed in this way used is all unified scheme of colour, therefore
Picture or the attainable printing effect of photo institute for different background is irregular, such as using natural views as background
Picture perhaps photo can reach preferably printing effect but for based on other scenes picture or photo with regard to nothing
Method obtains preferable printing effect.
In the associated solutions of the above problem, the picture or photo that user can print needs carry out color manually
Adjustment, such as adjust its saturation degree and brightness etc., then the picture adjusted or photo are sent to printing device and printed.But
It is this mode not only complex steps, but also for the more demanding of user, user is needed to can be good at grasping image
Color adjustment method, therefore applicability is not high.
Summary of the invention
To overcome the problems in correlation technique, the embodiment of the present disclosure provides a kind of image printing method and device.Institute
It is as follows to state technical solution:
According to the first aspect of the embodiments of the present disclosure, a kind of image printing method is provided, comprising:
Obtain image to be printed;
The picture material of the image to be printed is analyzed, with the image category of determination image to be printed;
Scheme of colour corresponding with the image category is obtained according to the image category of the image to be printed;
The image to be printed is printed out based on acquired scheme of colour.
In one embodiment, the picture material of the analysis image to be printed, with the figure of determination image to be printed
As classification includes:
The image classification request for carrying the image to be printed is sent to server, so that the server is according to
Image classification requests and classifies to the image to be printed;
Receive that the server obtains according to the characteristics of image of the image to be printed and in advance based on characteristics of image
Image classification model and the image category of the image to be printed of determination.
In one embodiment, the picture material of the analysis image to be printed, with the figure of determination image to be printed
As classification includes:
It obtains image recognition instruction and identifies that the characteristics of image of the image to be printed is extracted in instruction according to described image;
Institute is determined according to the reference picture feature of several reference pictures in extracted characteristics of image and system picture library
It states image to be printed and each reference picture belongs to the likelihood probability of same image category;
When the likelihood probability that the image to be printed and any reference picture belong to same image category is greater than threshold value
When, image category belonging to the reference picture is determined as to the image category of the image to be printed.
In one embodiment, described image feature includes that color characteristic, textural characteristics, shape feature and spatial relationship are special
One of sign is a variety of.
In one embodiment, described corresponding with the image category according to the acquisition of the image category of the image to be printed
Scheme of colour includes:
The mapping relations of the scheme of colour Yu described image classification are transferred from the color matching library that system prestores;
According to the mapping of image category and the scheme of colour and described image classification belonging to the image to be printed
Relationship determines the corresponding scheme of colour of the image to be printed.
According to the second aspect of an embodiment of the present disclosure, a kind of image printer is provided, comprising:
Module is obtained, for obtaining image to be printed;
Categorization module, for analyzing the picture material of the image to be printed, with the image category of determination image to be printed;
Color matching module, for obtaining color matching side corresponding with the image category according to the image category of the image to be printed
Case;
Print module, for being printed out based on acquired scheme of colour to the image to be printed.
In one embodiment, the categorization module includes:
Request unit, for sending the image classification request for carrying the image to be printed to server, so that described
Server is classified according to described image requests and classifies to the image to be printed;
Receiving unit is obtained according to the characteristics of image of the image to be printed and in advance for receiving the server
Based on characteristics of image image classification model and the image category of the image to be printed of determination.
In one embodiment, the categorization module includes:
Extraction unit, for obtaining image recognition instruction and identifying that the image to be printed is extracted in instruction according to described image
Characteristics of image;
Comparing unit, for according in extracted characteristics of image and system picture library several reference pictures with reference to figure
As feature determines that the image to be printed and each reference picture belong to the likelihood probability of same image category;
Taxon, for belonging to the similar of same image category to any reference picture in the image to be printed
When probability is greater than threshold value, image category belonging to the reference picture is determined as to the image category of the image to be printed.
In one embodiment, described image feature includes that color characteristic, textural characteristics, shape feature and spatial relationship are special
One of sign is a variety of.
In one embodiment, the color matching module includes:
Unit is transferred, for transferring the mapping of the scheme of colour Yu described image classification from the color matching library that system prestores
Relationship;
Loading unit, for the image category according to belonging to the image to be printed and the scheme of colour and the figure
As the mapping relations of classification determine the corresponding scheme of colour of the image to be printed.
According to the third aspect of an embodiment of the present disclosure, a kind of image printer is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Obtain image to be printed;
The picture material of the image to be printed is analyzed, with the image category of determination image to be printed;
Scheme of colour corresponding with the image category is obtained according to the image category of the image to be printed;
The image to be printed is printed out based on acquired scheme of colour.
According to a fourth aspect of embodiments of the present disclosure, a kind of computer readable storage medium is provided, calculating is stored thereon with
Machine instruction, when which is executed by processor the step of realization first aspect any embodiment the method.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The technical solution is by obtaining image to be printed and carrying out analysis identification to its picture material, to obtain figure to be printed
As affiliated image category, further according to image category scheme of colour corresponding with the selection of the mapping relations of scheme of colour, final base
Print image is treated in selected scheme of colour to be printed out.So, which can be according to picture material
Different type use matching scheme of colour automatically, so as to make image to be printed reach optimal printing effect.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is the flow chart of image printing method shown according to an exemplary embodiment;
Fig. 2 is the flow chart one shown according to an exemplary embodiment treating print image and classifying;
Fig. 3 is the flowchart 2 shown according to an exemplary embodiment treating print image and classifying;
Fig. 4 is the step flow chart one of image printing method shown according to an exemplary embodiment;
Fig. 5 is the step flowchart 2 of image printing method shown according to an exemplary embodiment;
Fig. 6 is the module map one of image printer shown according to an exemplary embodiment;
Fig. 7 is the module map two of image printer shown according to an exemplary embodiment;
Fig. 8 is the module map three of image printer shown according to an exemplary embodiment;
Fig. 9 is the module map four of image printer shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
In the related technology, bad in order to solve the image printing effect as caused by the scheme of colour unification of printing device
The problem of, the picture or photo that user can print needs carry out color adjustment manually, such as adjust its saturation degree and brightness
Deng, then the picture adjusted or photo be sent to printing device to print.But this mode not only complex steps,
And for the more demanding of user, user is needed to can be good at grasping the color adjustment method of image, therefore applicability
It is not high.
To solve the above-mentioned problems, the embodiment of the present disclosure provides a kind of image printing method, is related to printing device, described
Printing device can not make this for vertical printer, A seating printer and other equipment with printing function, the disclosure
It limits.Based on this, image printing method provided by the embodiment of the present disclosure, by obtaining image to be printed and to its picture material
Analysis identification is carried out, to obtain image category belonging to image to be printed, the mapping further according to image category and scheme of colour is closed
System chooses corresponding scheme of colour, is based ultimately upon selected scheme of colour and treats print image and is printed out.So,
The technical solution can use matching scheme of colour according to the different type of picture material automatically, to be printed so as to make
Image reaches optimal printing effect.
Fig. 1 is a kind of flow chart of image printing method shown according to an exemplary embodiment, the image printing method
Executing subject be printing device.According to Fig. 1, which includes the following steps S101~S104:
In step s101, image to be printed is obtained.
In the present embodiment, the image to be printed refers to the image that needs print out, and may come from client example
Such as computer or physical support such as USB flash disk send channel.Wherein, it can establish between transmitting terminal and printing device wired
Or wireless communication connection, in order to realize the transmission of data.
Exemplary, by taking computer client sends scenery picture to be printed to printing device as an example, which can
To be connected to the local area network where printing device, and the scenery picture printed will be needed to be sent to printing by the local area network and set
Standby, printing device will receive data from computer client, that is, to be printed by its internal communication port being arranged at this time
Scenery picture, and the scenery picture received is stored in the memory of print system.
In step s 102, the picture material of image to be printed is analyzed, with the image category of determination image to be printed.
In the present embodiment, the classification standard of the image to be printed can include but is not limited to image background, as long as energy
It is enough that different schemes of colour is obtained according to different image categories, and it is finally reached the purpose for improving image printing effect,
It is other to be not especially limited.It should be understood that although image to be printed can be divided into difference according to different classification standards
Type, but should predefine in practical applications classification standard and with the classification standard for according to treat print image carry out
Classification.
It is exemplary, using image background as classification standard for, image to be printed can be divided into nature by the present embodiment
Scene be the image of background, using ancient building as the image of background, using topography and geomorphology as the image of background and the figure of other backgrounds
One of classification such as picture.Based on this, when treating print image and being classified, printing device can be by server or interior
The processor set carries out analysis identification to treat the picture material of print image, and using above-mentioned image background as classification foundation
And it treats print image and classifies, such as the scenery picture to be printed received in above-mentioned steps can be divided to nature
Scene is the image category of background.Wherein, base can for example be used about the analysis of image content identification technology of image to be printed
In the analysis identification technology of characteristics of image, the present embodiment is not especially limited this.
In step s 103, scheme of colour corresponding with the image category is obtained according to the image category of image to be printed.
In the present embodiment, described image classification refers to the concrete kind marked off with specific image classification standard for foundation
Not;Wherein, image category and scheme of colour have scheduled mapping relations, it may be assumed that the specific corresponding specific color matching of image type
Scheme, the mapping relations can first pass through in advance experimental method and be generated and saved in the firmware of printer.It should be understood that this reality
It applies example and only defines that specific image type corresponds to specific scheme of colour, but may be same corresponding to different image types
A kind of scheme of colour.
It is exemplary, using image background as classification standard for, then may will be to according to the picture material of image to be printed
Print image is divided into using natural views as the image of background, using ancient building as the image of background, using topography and geomorphology as background
Image, using stage set as the image of background, using working environment as image of background etc..At this point, using natural views as background
Image can use the dedicated scheme of colour of natural views image, can use ancient building image by the image of background of ancient building
Dedicated scheme of colour, using topography and geomorphology as the image of background can use the dedicated scheme of colour of topography and geomorphology image, and with
Stage set is the image of background and can then be used using working environment as the image of other backgrounds such as the image of background general
The scenery picture to be printed received is divided to the image using natural views as background in scheme of colour, such as above-mentioned steps
Classification, then printing device, which can correspond to, chooses the dedicated scheme of colour of natural views image.Based on this, the present embodiment can basis
The corresponding scheme of colour of different image content match, therefore it help to obtain optimal image printing effect.
In step S104, print image is treated based on acquired scheme of colour and is printed out.
In the present embodiment, printing device will call once selecting scheme of colour according to the picture material of image to be printed
The scheme of colour simultaneously drives print engine to be printed out to treat print image.It is exemplary, will be received in above-mentioned steps
To scenery picture to be printed be divided to so that natural views is the image categories of background as an example, printing device correspondence be selected from
So after the dedicated scheme of colour of scene image, this kind of scheme of colour can be called and scenery picture to be printed print defeated
Out.
Based on above-mentioned steps, image printing method provided by the embodiment of the present disclosure, by obtaining image to be printed and right
Its picture material carries out analysis identification, to obtain image category belonging to image to be printed, further according to image category and color matching side
The mapping relations of case choose corresponding scheme of colour, be based ultimately upon selected scheme of colour treat print image print it is defeated
Out.So, which can use matching scheme of colour according to the different type of picture material automatically, from
And image to be printed can be made to reach optimal printing effect.
Image printing method provided by disclosure exemplary embodiment is described in detail with reference to the accompanying drawing.
In step s101, image to be printed is obtained.
In this example embodiment, the concrete mode that printing device obtains image to be printed includes:
Multiple communication port of printing device setting are monitored, to receive multiple communication port that transmitting terminal passes through printing device
In any one communication port and the image to be printed that sends.Wherein, multiple communication port includes but is not limited to connect client
The communication port of end and storage medium, and the communication connection between printing device and transmitting terminal can by cable network or
Wireless network is realized.
Exemplary, by taking computer client sends image to be printed to printing device as an example, which be can connect
To the local area network where printing device, and the picture printed will be needed to be sent in printing device by the local area network and connect the electricity
The communication port of brain client.Since printing device can monitor each communication port in real time in the open state, once have
Data are transmitted by some communication port, printing device will get the working signal of the communication port and from the communication
Port receives data, that is, image to be printed from computer client, and the image to be printed received is stored in printing system
In the memory of system.
In step s 102, the picture material of image to be printed is analyzed, with the image category of determination image to be printed.
In one embodiment, printing device can treat print image by server and be identified and be classified,
The image classification model based on machine learning is provided in the server, which is with the image of image to be printed
For feature as input, the picture material that print image is treated by neural network algorithm carries out analysis identification, and finally obtains
Image category belonging to image to be printed and as output.Wherein, described image feature may include color characteristic, texture spy
One of sign, shape feature and spatial relation characteristics are a variety of, and are not limited.Specifically, the image classification model
It is based on obtained by a large amount of picture sample and its affiliated image category, principle of classification is as follows: obtaining the figure of picture sample
As feature, an image classification based on characteristics of image is determined according to the characteristics of image of picture sample and its corresponding image category
Model, the image for the image to be printed that the characteristics of image based on the image classification model and image to be printed is finally needed
Classification.
Fig. 2 illustrates printing device and treats the flow chart that print image is classified by server, specific
Include the following steps S10211~S10212:
In step S10211, the image classification request for carrying image to be printed is sent to server, so that server
It can be requested according to the image classification and treat print image and classify.
It is exemplary, it is assumed that printing device received be to the west of to be printed image of the lake breeze scape as background, print at this time
Equipment can generate an image classification request Concurrency according to the image to be printed and send to the image classification module of server, the image
The image information of image to be printed is carried in classification request, then the image classification module of server can be according to the image classification
Request treats print image and classifies to image to be printed, and based on internal image classification model.
In step S10212, receive that server obtains according to the characteristics of image of image to be printed and in advance based on figure
As feature image classification model and the image category of the image to be printed of determination.
Exemplary, the image classification module of server can extract such as color characteristic from the image to be printed got
With the characteristics of image such as textural characteristics, and these characteristics of image are input in the image classification model based on characteristics of image, then should
Image classification model will export it according to the characteristics of image of input belonging to image category, e.g. using natural views as background
Image, then the image category is image category belonging to image to be printed.At this point, server can be by image institute to be printed
The image category of category returns to printing device as the response results that image classification is requested, then printing device is by receiving the response
As a result the classification for treating print image can be completed.It should be understood that the present embodiment is gone back before carrying out image characteristics extraction
Print image can be treated to be pre-processed, in order to improving image quality and reinforce useful information.
Based on above content it is found that the image classification model in the present embodiment based on characteristics of image is server according to a large amount of
Picture sample and image category corresponding to it is pre-generated, and the quantity of its image to be printed identified is got over
More, the accuracy of obtained image classification is higher, this is because identified image to be printed can be used as picture sample
Originally it is stored in the image classification model, therefore the increase of sample size necessarily can be such that the accuracy of image recognition is improved.
So, the present embodiment treats print image by the image classification model in server and is identified and classified, due to
Picture sample amount in image classification model is very big, therefore the image recognition degree based on this method is relatively high.
In another embodiment, printing device can be identified by built-in processor to treat print image
And classification, preset image recognition algorithm is embedded in the processor, which can be according to the figure of image to be printed
Print image is treated as feature to be identified and classified.Wherein, described image feature may include color characteristic, texture spy
One of sign, shape feature and spatial relation characteristics are a variety of, and are not limited.Specifically, the image recognition algorithm
It is based on obtained by a large amount of picture sample and its affiliated image category, principle of classification is as follows: obtaining image to be printed
Characteristics of image, and the reference picture feature for multiple reference pictures that the characteristics of image of image to be printed and system prestore is carried out pair
Than to determine that image to be printed and each reference picture belong to the likelihood probability of same image category, according to likelihood probability
Size determines image category belonging to image to be printed.
It should be understood that the image recognition algorithm can be by the ginseng of the characteristics of image of image to be printed and all reference pictures
It examines characteristics of image to compare, to obtain image category belonging to the maximum reference picture of likelihood probability as image to be printed
Image category;But the problem of considering recognition efficiency, then the image recognition algorithm can also set a threshold value, and likelihood probability is surpassed
Image category of the image category belonging to the reference picture of the threshold value as image to be printed is crossed, and during the comparison process once
The case where likelihood probability is more than threshold value occur, just stopping immediately comparing and directly generates classification results, can effectively be promoted in this way
Classification effectiveness.
Fig. 3 illustrates printing device and treats the flow chart that print image is classified by built-in processor,
It specifically comprises the following steps S10221~S10223:
In step S10221, obtains image recognition instruction and extract the image of image to be printed according to image recognition instruction
Feature.
It is exemplary, it is assumed that printing device received is the image to be printed using massif landforms as background, is printed at this time
Equipment can generate an image recognition according to the image to be printed and instruct and be sent to processor, which instructs at instruction
Reason device extracts characteristics of image such as color characteristic and textural characteristics of image to be printed etc..It should be understood that the present embodiment exists
Print image can also be treated before image characteristics extraction by, which carrying out, is pre-processed, and in order to improving image quality and is reinforced useful
Information.
In step S10222, according to the reference of several reference pictures in extracted characteristics of image and system picture library
Characteristics of image determines that image to be printed and each reference picture belong to the likelihood probability of same image category.
Exemplary, the processor built in printing device can be by the characteristics of image and system diagram of extracted image to be printed
The reference picture feature of several reference pictures in valut successively compares, such as the 1st reference picture is with natural views
For the image of background, can be obtained by characteristics of image comparison, the reference of the characteristics of image of image to be printed and first reference picture
The likelihood probability that characteristics of image belongs to same image category is less than threshold value, continues to compare at this time, until N reference pictures be with
Topography and geomorphology is the image of background, can be obtained by characteristics of image comparison, characteristics of image and the N reference picture of image to be printed
Reference picture feature belong to same image category likelihood probability be greater than threshold value, at this time stop comparison.
In step S10223, when the likelihood probability that image to be printed and any reference picture belong to same image category is big
When threshold value, image category belonging to the reference picture is determined as to the image category of image to be printed.
It is exemplary, as N in the characteristics of image and system picture library that the processor of printing device detects image to be printed
When the likelihood probability that the reference picture feature of reference picture belongs to same image category is greater than threshold value, processor can by this
Image category belonging to N reference pictures is determined as image category belonging to image to be printed, i.e., using topography and geomorphology as background
Image.
Based on above content it is found that the image recognition algorithm in the present embodiment based on characteristics of image is processor according to a large amount of
Picture sample and image category corresponding to it is pre-generated, since it uses the method for given threshold to measure wait beat
The characteristics of image of watermark image and the reference picture feature of reference picture belong to the likelihood probability of same image category, once it detects
Likelihood probability can obtain classification results when exceeding threshold value, therefore the image recognition efficiency based on this method is relatively high.
In step s 103, scheme of colour corresponding with the image category is obtained according to the image category of image to be printed.
In this example embodiment, printing device obtains corresponding with the image category according to the image category of image to be printed
The concrete mode of scheme of colour include:
The mapping relations of scheme of colour and image category are transferred from the color matching library that system prestores, and according to image to be printed
Affiliated image category and the mapping relations determine the corresponding scheme of colour of image to be printed.Wherein, scheme of colour and image
The mapping relations of classification can be stored in color matching library in a manner of table.
It is exemplary, when the image category of image to be printed is determined as using topography and geomorphology as the image category of background,
Transfer the mapping table of scheme of colour and image category in the color matching library that printing device can be prestored from system, and according to
Corresponding scheme of colour is searched in the mapping table using topography and geomorphology as the image category of background belonging to print image,
Once finding the corresponding scheme of colour of image to be printed, the result of scheme of colour can be sent to printing device by printing device
Control system.
In step S104, print image is treated based on acquired scheme of colour and is printed out.
In this example embodiment, printing device is after selecting corresponding scheme of colour according to image to be printed, control
System processed will call the scheme of colour and generate corresponding print command, and the print module inside printing device then can root at this time
It drives print engine to treat print image according to the print command and is printed out, to complete to treat beating for print image
Print.
The realization process of disclosed technique scheme is described in detail with reference to the accompanying drawing.
Fig. 4 is the schematic flow chart of image printing method shown according to an exemplary embodiment, and executing subject is to beat
Printing apparatus.According to Fig.4, which includes the following steps:
In step S401, monitoring each communication port to receive lake breeze scape to the west of client transmission is background wait beat
Watermark image;
In step S402, the image classification request for carrying image to be printed is sent to server, so that server energy
It is enough to treat print image according to image classification request and classify;
In step S403, characteristics of image of the server according to image to be printed and the image based on characteristics of image point are received
Using natural views as the image category of background belonging to class model and the image to be printed of determination;
In step s 404, the mapping table of scheme of colour and image category is transferred from the color matching library that system prestores;
In step S405, closed using natural views as the image category of background in the mapping according to belonging to image to be printed
It is that table is searching corresponding scheme of colour, the i.e. dedicated scheme of colour of natural views image;
In step S406, calls the dedicated scheme of colour of natural views image and generate print command, the print command
Instruction is treated print image using the dedicated scheme of colour of natural views image and is printed;
In step S 407, it drives print engine to treat print image according to the print command to be printed.
The technical solution of the present embodiment is by obtaining image to be printed and carrying out analysis identification to its picture material, to obtain
Image category belonging to image to be printed, further according to image category color matching side corresponding with the selection of the mapping relations of scheme of colour
Case, is based ultimately upon selected scheme of colour and treats print image and printed out.So, which can basis
The different type of picture material uses matching scheme of colour automatically, so as to make image to be printed reach optimal printing
Effect.
Fig. 5 is the schematic flow chart of image printing method shown according to an exemplary embodiment, and executing subject is to beat
Printing apparatus.According to Fig.5, which includes the following steps:
In step S501, monitoring each communication port using receive client transmission is background wait beat using massif landforms
Watermark image;
In step S502, obtains image recognition instruction and extract the image spy of image to be printed according to image recognition instruction
The characteristics of image of image to be printed is extracted in sign, image recognition instruction instruction;
In step S503, according to the reference of some reference picture in the characteristics of image of image to be printed and system picture library
Characteristics of image determines that image to be printed and the reference picture belong to the likelihood probability of same image category;
In step S504, judge whether the likelihood probability currently obtained is greater than threshold value, if then carrying out next step, if
Otherwise previous step is returned;
In step S505, image category belonging to the reference picture is determined as image class belonging to image to be printed
Not, i.e., using topography and geomorphology as the image category of background;
In step S506, the mapping table of scheme of colour and image category is transferred from the color matching library that system prestores;
In step s 507, it is closed using topography and geomorphology as the image category of background in the mapping according to belonging to image to be printed
It is that table is searching corresponding scheme of colour, the i.e. dedicated scheme of colour of topography and geomorphology image;
In step S508, calls the dedicated scheme of colour of topography and geomorphology image and generate print command, the print command
Instruction is treated print image using the dedicated scheme of colour of topography and geomorphology image and is printed;
In step S509, drives print engine to treat print image according to the print command and printed.
The technical solution of the present embodiment is by obtaining image to be printed and carrying out analysis identification to its picture material, to obtain
Image category belonging to image to be printed, further according to image category color matching side corresponding with the selection of the mapping relations of scheme of colour
Case, is based ultimately upon selected scheme of colour and treats print image and printed out.So, which can basis
The different type of picture material uses matching scheme of colour automatically, so as to make image to be printed reach optimal printing
Effect.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.
Fig. 6 is the module frame chart of image printer shown according to an exemplary embodiment.The device can be used various
Mode is implemented, such as all components of implementing device in the server, or in server side implements to fill in a coupled manner
Component in setting;The device being implemented in combination with as the part of electronic equipment or complete by software, hardware or the two
Portion.According to Fig.6, which includes obtaining module 601, categorization module 602, color matching module 603 and impression block
Block 604.Wherein: obtaining module 601 can be used for obtaining image to be printed;Categorization module 602 can be used for analyzing image to be printed
Picture material, with the image category of determination image to be printed;Color matching module 603 can be used for the image category according to image to be printed
Obtain scheme of colour corresponding with the image category;Print module 604 can be used for based on acquired scheme of colour to be printed
Image is printed out.
Image printer provided by the embodiment of the present disclosure can be used for executing above-mentioned image printing method, the side of execution
Formula and beneficial effect are similar to the above embodiments, and which is not described herein again.
In one embodiment, as shown in fig. 7, the categorization module 602 includes request unit 6021 and receiving unit
6022.Wherein, request unit 6021 can be used for sending the image classification request for carrying image to be printed to server, so that clothes
Business device can request according to the image classification and treat print image and classify, and receiving unit 6022 can be used for receiving server
The image classification model based on characteristics of image that obtains according to the characteristics of image of image to be printed and in advance and determination wait beat
The image category of watermark image.Wherein, characteristics of image may include that color characteristic, textural characteristics, shape feature and spatial relationship are special
One of sign is a variety of, and is not limited.
In one embodiment, as shown in figure 8, the categorization module 602 includes extraction unit 6023, comparing unit
6024 and taxon 6025.Wherein, extraction unit 6023 can be used for obtaining image recognition and instruct and be referred to according to the image recognition
The characteristics of image for extracting image to be printed is enabled, comparing unit 6024 can be used for according to extracted characteristics of image and system picture library
In the reference picture features of several reference pictures determine image to be printed and each reference picture belongs to same image category
Likelihood probability, taxon 6025 can be used for belonging to the similar of same image category to any reference picture in image to be printed
When probability is greater than threshold value, image category belonging to the reference picture is determined as to the image category of image to be printed.Wherein, image
Feature may include one of color characteristic, textural characteristics, shape feature and spatial relation characteristics or a variety of, and not as
Limit.
In one embodiment, as shown in figure 9, the color matching module 603 includes transferring unit 6031 and loading unit
6032.Wherein, the mapping that scheme of colour and image category are transferred in the color matching library that unit 6031 can be used for prestoring from system is transferred
Relationship, loading unit 6032 can be used for reflecting for the image category according to belonging to image to be printed and scheme of colour and image category
The relationship of penetrating determines the corresponding scheme of colour of image to be printed.
In the technical scheme provided by this disclosed embodiment, by obtaining image to be printed and dividing its picture material
Analysis identification is chosen with obtaining image category belonging to image to be printed further according to the mapping relations of image category and scheme of colour
Corresponding scheme of colour, is based ultimately upon selected scheme of colour and treats print image and printed out.So, the technology
Scheme can use matching scheme of colour according to the different type of picture material automatically, so as to reach image to be printed
To optimal printing effect.
The embodiment of the present disclosure also provides a kind of image printer, which includes:
Processor;
Memory for storage processor executable instruction;
Wherein, processor is configured as:
Obtain image to be printed;
The picture material of the image to be printed is analyzed, with the image category of determination image to be printed;
Scheme of colour corresponding with the image category is obtained according to the image category of the image to be printed;
The image to be printed is printed out based on acquired scheme of colour.
In one embodiment, above-mentioned processor is also configured to:
The image classification request for carrying the image to be printed is sent to server, so that the server is according to
Image classification requests and classifies to the image to be printed;
Receive that the server obtains according to the characteristics of image of the image to be printed and in advance based on characteristics of image
Image classification model and the image category of the image to be printed of determination.
In one embodiment, above-mentioned processor is also configured to:
It obtains image recognition instruction and identifies that the characteristics of image of the image to be printed is extracted in instruction according to described image;
Institute is determined according to the reference picture feature of several reference pictures in extracted characteristics of image and system picture library
It states image to be printed and each reference picture belongs to the likelihood probability of same image category;
When the likelihood probability that the image to be printed and any reference picture belong to same image category is greater than threshold value
When, image category belonging to the reference picture is determined as to the image category of the image to be printed.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
The embodiment of the present disclosure provides a kind of non-transitorycomputer readable storage medium, the instruction in the storage medium
When being executed by the processor of image printer, so that image printer is able to carry out above-mentioned image printing method, it is described
Method includes:
Obtain image to be printed;
The picture material of the image to be printed is analyzed, with the image category of determination image to be printed;
Scheme of colour corresponding with the image category is obtained according to the image category of the image to be printed;
The image to be printed is printed out based on acquired scheme of colour.
In one embodiment, the picture material of the analysis image to be printed, with to the image to be printed into
Row is classified
The image classification request for carrying the image to be printed is sent to server, so that the server is according to
Image classification requests and classifies to the image to be printed;
Receive that the server obtains according to the characteristics of image of the image to be printed and in advance based on characteristics of image
Image classification model and the image category of the image to be printed of determination.
In one embodiment, the picture material of the analysis image to be printed, with to the image to be printed into
Row is classified
It obtains image recognition instruction and identifies that the characteristics of image of the image to be printed is extracted in instruction according to described image;
Institute is determined according to the reference picture feature of several reference pictures in extracted characteristics of image and system picture library
It states image to be printed and each reference picture belongs to the likelihood probability of same image category;
When the likelihood probability that the image to be printed and any reference picture belong to same image category is greater than threshold value
When, image category belonging to the reference picture is determined as to the image category of the image to be printed.
In one embodiment, described image feature includes that color characteristic, textural characteristics, shape feature and spatial relationship are special
One of sign is a variety of.
In one embodiment, described corresponding with the image category according to the acquisition of the image category of the image to be printed
Scheme of colour includes:
The mapping relations of the scheme of colour Yu described image classification are transferred from the color matching library that system prestores;
According to the mapping of image category and the scheme of colour and described image classification belonging to the image to be printed
Relationship determines the corresponding scheme of colour of the image to be printed.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (12)
1. a kind of image printing method characterized by comprising
Obtain image to be printed;
The picture material of the image to be printed is analyzed, with the image category of determination image to be printed;
Scheme of colour corresponding with the image category is obtained according to the image category of the image to be printed;
The image to be printed is printed out based on acquired scheme of colour.
2. image printing method according to claim 1, which is characterized in that the image of the analysis image to be printed
Content, the image category with determination image to be printed include:
The image classification request for carrying the image to be printed is sent to server, so that the server is according to described image
Classification requests and classifies to the image to be printed;
Receive the figure based on characteristics of image that the server is obtained according to the characteristics of image of the image to be printed and in advance
The image category of the image to be printed of determination as disaggregated model.
3. image printing method according to claim 1, which is characterized in that the image of the analysis image to be printed
Content, the image category with determination image to be printed include:
It obtains image recognition instruction and identifies that the characteristics of image of the image to be printed is extracted in instruction according to described image;
According to the reference picture feature of several reference pictures in extracted characteristics of image and system picture library determine it is described to
Print image and each reference picture belong to the likelihood probability of same image category;
It, will when the likelihood probability that the image to be printed and any reference picture belong to same image category is greater than threshold value
Image category belonging to the reference picture is determined as the image category of the image to be printed.
4. image printing method according to claim 2 or 3, which is characterized in that described image feature include color characteristic,
One of textural characteristics, shape feature and spatial relation characteristics are a variety of.
5. image printing method according to claim 1, which is characterized in that the image according to the image to be printed
Classification obtains scheme of colour corresponding with the image category
The mapping relations of the scheme of colour Yu described image classification are transferred from the color matching library that system prestores;
According to image category belonging to the image to be printed and the mapping relations of the scheme of colour and described image classification
Determine the corresponding scheme of colour of the image to be printed.
6. a kind of image printer characterized by comprising
Module is obtained, for obtaining image to be printed;
Categorization module, for analyzing the picture material of the image to be printed, with the image category of determination image to be printed;
Color matching module, for obtaining scheme of colour corresponding with the image category according to the image category of the image to be printed;
Print module, for being printed out based on acquired scheme of colour to the image to be printed.
7. image printer according to claim 6, which is characterized in that the categorization module includes:
Request unit, for sending the image classification request for carrying the image to be printed to server, so that the service
Device is classified according to described image requests and classifies to the image to be printed;
Receiving unit, for receive that the server obtains according to the characteristics of image of the image to be printed and in advance based on
The image classification model of characteristics of image and the image category of the image to be printed of determination.
8. image printer according to claim 6, which is characterized in that the categorization module includes:
Extraction unit, for obtaining image recognition instruction and identifying that the figure of the image to be printed is extracted in instruction according to described image
As feature;
Comparing unit, for special according to the reference picture of several reference pictures in extracted characteristics of image and system picture library
Sign determines that the image to be printed and each reference picture belong to the likelihood probability of same image category;
Taxon, for belonging to the likelihood probability of same image category in the image to be printed and any reference picture
When greater than threshold value, image category belonging to the reference picture is determined as to the image category of the image to be printed.
9. image printer according to claim 7 or 8, which is characterized in that described image feature include color characteristic,
One of textural characteristics, shape feature and spatial relation characteristics are a variety of.
10. image printer according to claim 6, which is characterized in that the color matching module includes:
Unit is transferred, the mapping for transferring the scheme of colour and described image classification from the color matching library that system prestores is closed
System;
Loading unit, for the image category according to belonging to the image to be printed and the scheme of colour and described image class
Other mapping relations determine the corresponding scheme of colour of the image to be printed.
11. a kind of image printer characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Obtain image to be printed;
The picture material of the image to be printed is analyzed, with the image category of determination image to be printed;
Scheme of colour corresponding with the image category is obtained according to the image category of the image to be printed;
The image to be printed is printed out based on acquired scheme of colour.
12. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor
The step of any one of claim 1-5 the method is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810962588.7A CN109117102A (en) | 2018-08-22 | 2018-08-22 | Image printing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810962588.7A CN109117102A (en) | 2018-08-22 | 2018-08-22 | Image printing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109117102A true CN109117102A (en) | 2019-01-01 |
Family
ID=64860085
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810962588.7A Pending CN109117102A (en) | 2018-08-22 | 2018-08-22 | Image printing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109117102A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111532047A (en) * | 2020-05-13 | 2020-08-14 | 深圳诚拓数码设备有限公司 | Intelligent digital printing method, control device and printing equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1595448A (en) * | 2003-09-11 | 2005-03-16 | 大日本网目版制造株式会社 | Image processing information association processor, printing system, method of enabling layout data output, and program |
CN101093439A (en) * | 2006-06-21 | 2007-12-26 | 三星电子株式会社 | System and method of adjusting print data |
KR20080019444A (en) * | 2006-08-28 | 2008-03-04 | 삼성전자주식회사 | Color revision method of electrophotographic image forming apparatus |
CN101201572A (en) * | 2006-12-11 | 2008-06-18 | 三星电子株式会社 | Image forming apparatus and control method thereof |
-
2018
- 2018-08-22 CN CN201810962588.7A patent/CN109117102A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1595448A (en) * | 2003-09-11 | 2005-03-16 | 大日本网目版制造株式会社 | Image processing information association processor, printing system, method of enabling layout data output, and program |
CN101093439A (en) * | 2006-06-21 | 2007-12-26 | 三星电子株式会社 | System and method of adjusting print data |
KR20080019444A (en) * | 2006-08-28 | 2008-03-04 | 삼성전자주식회사 | Color revision method of electrophotographic image forming apparatus |
CN101201572A (en) * | 2006-12-11 | 2008-06-18 | 三星电子株式会社 | Image forming apparatus and control method thereof |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111532047A (en) * | 2020-05-13 | 2020-08-14 | 深圳诚拓数码设备有限公司 | Intelligent digital printing method, control device and printing equipment |
CN111532047B (en) * | 2020-05-13 | 2021-09-21 | 深圳诚拓数码设备有限公司 | Intelligent digital printing method, control device and printing equipment |
WO2021227743A1 (en) * | 2020-05-13 | 2021-11-18 | 深圳诚拓数码设备有限公司 | Intelligent digital printing method, control apparatus and printing device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102319177B1 (en) | Method and apparatus, equipment, and storage medium for determining object pose in an image | |
CN107992794B (en) | A kind of biopsy method, device and storage medium | |
KR102385463B1 (en) | Facial feature extraction model training method, facial feature extraction method, apparatus, device and storage medium | |
US11270099B2 (en) | Method and apparatus for generating facial feature | |
WO2018166515A1 (en) | Anti-counterfeiting human face detection method and system, electronic device, program and medium | |
CN107277491B (en) | Generate the method and corresponding medium of the depth map of image | |
CN108197618B (en) | Method and device for generating human face detection model | |
WO2022206319A1 (en) | Image processing method and apparatus, and device, storage medium and computer program product | |
WO2020034733A1 (en) | Identity authentication method and apparatus, electronic device, and storage medium | |
EP4109332A1 (en) | Certificate authenticity identification method and apparatus, computer-readable medium, and electronic device | |
CN111985281B (en) | Image generation model generation method and device and image generation method and device | |
CN110569911B (en) | Image recognition method, device, system, electronic equipment and storage medium | |
CN105872456A (en) | Security protection method and apparatus based on smart television | |
CN109903291A (en) | Image processing method and relevant apparatus | |
CN110209266A (en) | A kind of size fit method and device of image | |
CN112866577B (en) | Image processing method and device, computer readable medium and electronic equipment | |
CN110287787A (en) | Image-recognizing method, device and computer readable storage medium | |
CN109241934A (en) | Method and apparatus for generating information | |
CN112351093A (en) | Screenshot image sharing method, device and equipment and computer readable storage medium | |
CN109872282A (en) | A kind of image desensitization method based on computer vision and system | |
CN114663726A (en) | Training method of target type detection model, target detection method and electronic equipment | |
CN109117102A (en) | Image printing method and device | |
WO2019196793A1 (en) | Image processing method and apparatus, and electronic device and computer-readable storage medium | |
CN110163816A (en) | Processing method, device, storage medium and the electronic equipment of image information | |
CN108734099A (en) | Auth method and device, electronic equipment, computer program and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190101 |
|
RJ01 | Rejection of invention patent application after publication |