CN106651997A - Image processing method and system - Google Patents

Image processing method and system Download PDF

Info

Publication number
CN106651997A
CN106651997A CN201611262980.8A CN201611262980A CN106651997A CN 106651997 A CN106651997 A CN 106651997A CN 201611262980 A CN201611262980 A CN 201611262980A CN 106651997 A CN106651997 A CN 106651997A
Authority
CN
China
Prior art keywords
picture
wire frame
rectangular wire
file
processing method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611262980.8A
Other languages
Chinese (zh)
Inventor
柳毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wenzhou Bopu Technology Co Ltd
Original Assignee
Wenzhou Bopu Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wenzhou Bopu Technology Co Ltd filed Critical Wenzhou Bopu Technology Co Ltd
Priority to CN201611262980.8A priority Critical patent/CN106651997A/en
Publication of CN106651997A publication Critical patent/CN106651997A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/80Creating or modifying a manually drawn or painted image using a manual input device, e.g. mouse, light pen, direction keys on keyboard

Abstract

The invention discloses a picture processing method and system. The method comprises the following steps of S1, loading an original picture file and adjusting the loaded original picture file to a predetermined resolution; S2, displaying a zoomed original picture file on a predetermined interface; S3, generating a reference rectangular wireframe with arbitrarily adjustable resolution on the interface according to an actual product size input by a user; S4, adjusting the resolution and position of the reference rectangular wireframe; and S5, in response to picture capture operation, capturing a partial picture in the reference rectangular wireframe, and adjusting the captured partial picture to a resolution corresponding to the actual product size input by the user, thereby serving as a real object picture. According to the method and the system, a picture specimen page of a product can be quickly zoomed to an expected size.

Description

Image processing method and system
The present invention relates to a kind of picture Processing Technique, more specifically, it relates to a kind of image processing method and system.
Background technology
At present, with the development of electric business industry, some online shopping malls of more and more enterprise enterings, such as difference quotient platform, Taobao, Alibaba etc., enterprises publicize and sell the product of oneself by these stores.Simultaneously as online shopping mall is just Victory, increasing customer is also ready to these stores to buy the commodity needed for oneself, it is only necessary to done through network and complete Payment, you can wait logistics company that the commodity bought are sent in family, save worry laborsaving in the extreme.
However, for some customers, they need the concrete size for knowing the commodity when ornamental part is browsed, Can determine whether the ornamental part of the size is suitable.In general, businessman can put on specifically on exhibiting pictures, Size, but, customer is difficult to judge that this size is whether suitable only according to numeral, such as one for shoes or clothes Fastener of decoration, whether customer need this fastener of decoration is placed on the shoes of its production or clothes dimensionally suitable, now, Customer is accomplished by the contrast of a reality, but customer's hand again without the sample of actual fastener of decoration, can only be by photo print Out compare.This picture for just being provided businessman has certain requirement, and the pixel ratio of the picture allows for meeting in figure After piece is printed, the size of the fastener of decoration in picture is about the same with actual sample, and such customer can be good Reference.Therefore, businessman generally requires and uses special photo handling software to be processed, such as Photoshop.But adopt this Class software, businessman needs the picture processing personnel for employing by offering a high salary a specialty, or simply will contract out outside this work no matter It is any, is required to pay higher reward.This is the increase in operation cost for some small business, undoubtedly, no Beneficial to the long-run development of enterprise.
The content of the invention
In view of the shortcomings of the prior art, first purpose of the invention is to provide a kind of image processing method, energy Enough realize rapidly to the picture specimen page of product is zoomed into desired size.
For achieving the above object, the invention provides following technical scheme:
A kind of image processing method, comprises the following steps:
S1, loading original image file, and the original image file for being loaded is adjusted to predetermined resolution ratio;
S2, show on predetermined interface it is described it is scaled after original image file;
S3, according to the actual product size of user input, the reference rectangle that resolution ratio can be adjusted arbitrarily is generated on the interface Wire frame;
S4, the resolution ratio for adjusting the reference rectangular wire frame and position;
S5, in response to shot operation, intercept with reference to the part picture in rectangular wire frame, and by the part picture for intercepting out adjust to Resolution ratio corresponding with the actual product size of user input, as picture in kind.
Preferably, in step sl, automatically from predetermined original document path load original image file.
Preferably, the method from predetermined original document path loading original image file includes:
Whether there is new picture file to generate in S11, the file in monitoring this document path, if having, load this newly-generated Picture file.
Preferably, in step s 4, to the adjustment of the reference rectangular wire frame, including:
Dragging, zoom operations that detection user is carried out by mouse to the reference rectangular wire frame;
The resolution ratio with reference to rectangular wire frame and position according to aforesaid operations adjustment.
Preferably, in step s 4, to the adjustment of the reference rectangular wire frame, including:
Captured edge in kind in detection original image, and determine upper summit, lower summit, left summit and right summit;
The reference rectangular wire frame is carried out displacement, scaling so that the four edges line of the reference rectangular wire frame respectively with four Summit overlaps.
Preferably, the picture-adjusting method in step S5 includes:
S51, the ratio n1 for calculating the current pixel length length in pixels initial with it with reference to rectangular wire frame, and its current pixel width The ratio n2 of the degree pixel wide initial with it;
S52, respectively according to the value of n1 and n2, the length in pixels of part picture and pixel wide to being intercepted is adjusted.
Preferably, also include:
S6, the picture in kind is stored according to default store path.
Preferably, also include:
S7, according to the operation of user, at least one picture in kind that user is selected from the default store path is imported to In the blank printer page of preliminary dimension, to generate the album print page.
Second object of the present invention is to provide a kind of picture processing system, can be realized rapidly to by the figure of product Piece specimen page zooms to desired size.
For achieving the above object, the invention provides following technical scheme:
A kind of picture processing system, including:
First processing module, divides for loading original image file, and the original image file for being loaded being adjusted to predetermined Resolution;
Picture display module, for showing the original image file of the scaled mistake on predetermined interface;
Second processing module, for according to the actual product size of user input, generating resolution ratio on the interface can be any The reference rectangular wire frame of adjustment;
3rd processing module, for adjusting resolution ratio and the position of the reference rectangular wire frame;
Fourth processing module, in response to shot operation, intercepting the part picture in reference to rectangular wire frame, and will intercept out Part picture adjust resolution ratio corresponding to actual product size with user input, as picture in kind.
Compared with prior art, it is an advantage of the invention that:By above technical scheme, user only needs to the reality of input product Border size, and adjusting to just surrounding the product in picture with reference to rectangular wire frame, system just can be automatically completed with The adjustment of picture, it is very convenient.This process is operated without the need for the picture processing personnel of specialty, and general staff also can win Appoint.
Description of the drawings
Fig. 1 is the flow chart of image processing method in embodiment 1;
The particular flow sheet of the step of Fig. 2 is image processing method in embodiment 1 S4;
Fig. 3 is the structure chart of picture processing system in embodiment 2;
Fig. 4 is the structure chart of picture processing system in embodiment 2.
Specific embodiment
With reference to embodiment and accompanying drawing, the present invention is described in further detail, but embodiments of the present invention are not It is only limitted to this.
Embodiment 1:
Fig. 1 illustrates a kind of flow chart of image processing method, and it is used for fast and easily from picture materials, it would be desirable to figure Sample intercepts out, and zooms to desired size.The image processing method specifically includes following steps:
S1, loading original image file, and the original image file for being loaded is adjusted to predetermined resolution ratio.
Video camera is connected to PC ends by user, and using the camera control software on PC ends, control video camera is clapped According to;After completing to take pictures, camera control software obtains picture file from video camera, and stores to above-mentioned predetermined file path In.In the present embodiment, the predetermined resolution ratio is 1000*700.
In addition, in the present embodiment, can specifically include automatically from predetermined original document path loading original image file: Whether there is new picture file to generate in the file for monitoring the original document path, if having, load the newly-generated picture. Thus, whenever there is new picture file to be deposited into the file in the original document path, then can be automatically newly-generated by this Picture file is loaded into above-mentioned interface and is shown.
S2, the original image file for showing on predetermined interface scaled mistake.
S3, according to the actual product size of user input, the reference rectangle that resolution ratio can be adjusted arbitrarily is generated on interface Wire frame.
S4, the resolution ratio for adjusting the reference rectangular wire frame and position.In the present embodiment, to the adjustment with reference to rectangular wire frame Mode has two kinds, specific as follows:
Mode one, including:
Dragging, zoom operations that detection user is carried out by mouse to the reference rectangular wire frame;
The resolution ratio with reference to rectangular wire frame and position according to aforesaid operations adjustment.
Mode two, including:
Captured edge in kind in detection original image, and determine upper summit, lower summit, left summit and right summit;
The reference rectangular wire frame is carried out displacement, scaling so that the four edges line of the reference rectangular wire frame respectively with four Summit overlaps.
In mode two, when in kind shooting, usually material object is placed at the background of white, and by light compensating lamp Means so that in addition to material object, other regions are pure white to the picture taken;Therefore, existing image can just be utilized Analytical technology, determines effective coverage in kind in picture, and determines upper summit, lower summit, left summit and the right summit in the region.
S5, in response to shot operation, intercept the part picture in reference to rectangular wire frame, and by the part picture for intercepting out Resolution ratio corresponding to actual product size with user input is adjusted, as picture in kind.
In the present embodiment, adjusting the mode of picture includes:
S51, the ratio n1 for calculating the current pixel length length in pixels initial with it with reference to rectangular wire frame, and its current pixel width The ratio n2 of the degree pixel wide initial with it.
S52, respectively according to the value of n1 and n2, the length in pixels of part picture and pixel wide to being intercepted is adjusted It is whole.
After the completion of adjustment, picture file in kind is generated, and shown on above-mentioned interface, i.e., no longer show original size Picture.
S6, by picture in kind storage stored according to default path.
User is clicked on after confirming, the picture in kind shown on interface is directly deposited into the default path.
S7, according to the operation of user, at least one picture in kind that user is selected, the blank for importing to preliminary dimension is beaten In printed page face, to generate the album print page;
User chooses required picture file in for the path for storing new picture file, and confirms.Afterwards, it is selected to get All picture files with matrix form be arranged in above-mentioned blank printer page, formed the album print page.Thus, with Family can by printer by the album print page print out, be fabricated to publicity atlas.
Embodiment 2:
To realize above method, the present embodiment also provides a kind of picture processing system, and it is the application software on PC ends. With reference to Fig. 3, the picture processing system is specifically included:
First processing module, for from predetermined original document path loading original image file, and by the original graph for being loaded Piece file is adjusted to predetermined resolution ratio.The resolution ratio is 1000*700;And the loading procedure is loading automatically, i.e., by prison Whether have new file generated, if having, load the newly-generated picture if surveying in the original document path.
Picture display module, for showing the original image file of scaled mistake on predetermined interface.
Second processing module, for according to the actual product size of user input, generating resolution ratio on interface can be any The reference rectangular wire frame of adjustment.
3rd processing module, for adjusting resolution ratio and the position of the reference rectangular wire frame.In the present embodiment, the 3rd Processing module includes detector unit and adjustment unit;The detector unit is configurable for by image analysis technology, and detection is former Captured edge in kind in beginning picture, and determine upper summit, lower summit, left summit and right summit;The adjustment unit is matched somebody with somebody Be set to for the reference rectangular wire frame is carried out displacement, scaling so that the four edges line of the reference rectangular wire frame respectively with Four summits overlap.Here coincidence, can be completely superposed, or coincidence substantially, that is, allow certain error.
Fourth processing module, including sectional drawing unit and unit for scaling;Wherein, sectional drawing unit is configurable for detecting user The used shot operation completed by mouse or other input equipments, intercepts the part picture in reference to rectangular wire frame, this skill Art is identical with current existing sectional drawing plug-in unit principle, therefore repeats no more.Unit for scaling is configurable for sectional drawing unit institute The part picture for intercepting out adjusts resolution ratio corresponding to actual product size with user input, used as picture in kind.
Picture storage module, for picture in kind storage to be stored according to default store path.
Atlas generation module, for according to the operation of user, at least that user is selected from default store path Picture in kind, generates the album print page in the blank printer page of preliminary dimension.Referring in particular to Fig. 4, the blank type face Face is preferably dimensioned to be A4, if selected picture in kind is more than 2, is arranged according to matrix form.After generating the atlas, use Family can carry out corresponding operation and print the atlas.

Claims (9)

1. a kind of image processing method, is characterized in that, comprise the following steps:
S1, loading original image file, and the original image file for being loaded is adjusted to predetermined resolution ratio;
S2, show on predetermined interface it is described it is scaled after original image file;
S3, according to the actual product size of user input, the reference rectangle that resolution ratio can be adjusted arbitrarily is generated on the interface Wire frame;
S4, the resolution ratio for adjusting the reference rectangular wire frame and position;
S5, in response to shot operation, intercept with reference to the part picture in rectangular wire frame, and by the part picture for intercepting out adjust to Resolution ratio corresponding with the actual product size of user input, as picture in kind.
2. image processing method according to claim 1, is characterized in that, in step sl, automatically from predetermined original text Original image file is loaded in part path.
3. image processing method according to claim 2, is characterized in that, from predetermined original document path loading original graph The method of piece file includes:
Whether there is new picture file to generate in S11, the file in monitoring this document path, if having, load this newly-generated Picture file.
4. image processing method according to claim 1, is characterized in that, in step s 4, to the reference rectangular wire frame Adjustment, including:
Dragging, zoom operations that detection user is carried out by mouse to the reference rectangular wire frame;
The resolution ratio with reference to rectangular wire frame and position according to aforesaid operations adjustment.
5. image processing method according to claim 1, is characterized in that, in step s 4, to the reference rectangular wire frame Adjustment, including:
Captured edge in kind in detection original image, and determine upper summit, lower summit, left summit and right summit;
The reference rectangular wire frame is carried out displacement, scaling so that the four edges line of the reference rectangular wire frame respectively with four Summit overlaps.
6. image processing method according to claim 1, is characterized in that, the picture-adjusting method in step S5 includes:
S51, the ratio n1 for calculating the current pixel length length in pixels initial with it with reference to rectangular wire frame, and its current pixel width The ratio n2 of the degree pixel wide initial with it;
S52, respectively according to the value of n1 and n2, the length in pixels of part picture and pixel wide to being intercepted is adjusted.
7. image processing method according to claim 1, is characterized in that, also include:
S6, the picture in kind is stored according to default store path.
8. image processing method according to claim 7, is characterized in that, also include:
S7, according to the operation of user, at least one picture in kind that user is selected from the default store path is imported to In the blank printer page of preliminary dimension, to generate the album print page.
9. a kind of picture processing system, is characterized in that, including:
First processing module, divides for loading original image file, and the original image file for being loaded being adjusted to predetermined Resolution;
Picture display module, for showing the original image file of the scaled mistake on predetermined interface;
Second processing module, for according to the actual product size of user input, generating resolution ratio on the interface can be any The reference rectangular wire frame of adjustment;
3rd processing module, for adjusting resolution ratio and the position of the reference rectangular wire frame;
Fourth processing module, in response to shot operation, intercepting the part picture in reference to rectangular wire frame, and will intercept out Part picture adjust resolution ratio corresponding to actual product size with user input, as picture in kind.
CN201611262980.8A 2016-12-30 2016-12-30 Image processing method and system Pending CN106651997A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611262980.8A CN106651997A (en) 2016-12-30 2016-12-30 Image processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611262980.8A CN106651997A (en) 2016-12-30 2016-12-30 Image processing method and system

Publications (1)

Publication Number Publication Date
CN106651997A true CN106651997A (en) 2017-05-10

Family

ID=58837775

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611262980.8A Pending CN106651997A (en) 2016-12-30 2016-12-30 Image processing method and system

Country Status (1)

Country Link
CN (1) CN106651997A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020025084A1 (en) * 2000-08-24 2002-02-28 Yun-Won Yang Transfer and display method of digitally enlarged images
CN102819737A (en) * 2012-07-11 2012-12-12 广州市凡拓数码科技有限公司 System for converting paper emergency plan scheme into digital information
CN102915470A (en) * 2012-09-20 2013-02-06 中国电力科学研究院 Cloud cluster movement estimation method facing to photovoltaic power prediction
CN103150745A (en) * 2011-12-06 2013-06-12 腾讯科技(深圳)有限公司 Method and device capable of editing a picture on line
CN103886616A (en) * 2014-02-25 2014-06-25 国家电网公司 Method for short-term prediction of photovoltaic power generation power based on whole-sky imaging data
CN104536729A (en) * 2014-11-28 2015-04-22 北京奇虎科技有限公司 Method and device for achieving image capture on browser page
CN105678695A (en) * 2014-11-19 2016-06-15 腾讯科技(深圳)有限公司 Picture processing method and device
CN105930052A (en) * 2016-04-14 2016-09-07 北京搜狐新媒体信息技术有限公司 Method and device for capturing pictures

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020025084A1 (en) * 2000-08-24 2002-02-28 Yun-Won Yang Transfer and display method of digitally enlarged images
CN103150745A (en) * 2011-12-06 2013-06-12 腾讯科技(深圳)有限公司 Method and device capable of editing a picture on line
CN102819737A (en) * 2012-07-11 2012-12-12 广州市凡拓数码科技有限公司 System for converting paper emergency plan scheme into digital information
CN102915470A (en) * 2012-09-20 2013-02-06 中国电力科学研究院 Cloud cluster movement estimation method facing to photovoltaic power prediction
CN103886616A (en) * 2014-02-25 2014-06-25 国家电网公司 Method for short-term prediction of photovoltaic power generation power based on whole-sky imaging data
CN105678695A (en) * 2014-11-19 2016-06-15 腾讯科技(深圳)有限公司 Picture processing method and device
CN104536729A (en) * 2014-11-28 2015-04-22 北京奇虎科技有限公司 Method and device for achieving image capture on browser page
CN105930052A (en) * 2016-04-14 2016-09-07 北京搜狐新媒体信息技术有限公司 Method and device for capturing pictures

Similar Documents

Publication Publication Date Title
US7616834B2 (en) System for delivering and enabling interactivity with images
US7502036B2 (en) System for delivering and enabling interactivity with images
US8411109B2 (en) System for delivering and enabling interactivity with images
US9582902B2 (en) Managing raw and processed image file pairs
US20190138168A1 (en) Paint color selection and display system and method
US10185976B2 (en) Shopping systems, user interfaces and methods
US20190354265A1 (en) Color Picker
US10902656B2 (en) System and method for generating a digital image collage
AU2018226400B2 (en) Method and apparatus to seamlessly join and repair scanned pieces of a torn image
US9754350B2 (en) Systems and methods of automatic image sizing
US20160203381A1 (en) Method and apparatus for adsorbing straight line/line segment, method and apparatus for constructing polygon
US9767588B2 (en) Method and apparatus for image processing
WO2023165301A1 (en) Content publishing method and apparatus, computer device, and storage medium
US10444959B2 (en) Method and apparatus for managing multiple views for graphics data
US8941767B2 (en) Mobile device and method for controlling the same
US8866953B2 (en) Mobile device and method for controlling the same
US20180300770A1 (en) In-situ previewing of customizable communications
EP2555165B1 (en) Method and device for packing multiple images
CN106651997A (en) Image processing method and system
US20220303404A1 (en) System and method for ordering a print product including a digital image utilizing augmented reality
US20160260138A1 (en) Automatic Image Composer
US8964063B2 (en) Camera resolution modification based on intended printing location
CN111596812B (en) Information display method, device and storage medium
CN116560550A (en) Visual pre-configuration, configuration and video generation system and method
US20090179919A1 (en) Methods and Systems for Masking Visual Content

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170510