CN107180440A - A kind of method that processing curve is obtained according to photo - Google Patents

A kind of method that processing curve is obtained according to photo Download PDF

Info

Publication number
CN107180440A
CN107180440A CN201710400671.0A CN201710400671A CN107180440A CN 107180440 A CN107180440 A CN 107180440A CN 201710400671 A CN201710400671 A CN 201710400671A CN 107180440 A CN107180440 A CN 107180440A
Authority
CN
China
Prior art keywords
processing
lattice
curve
color
photo
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
CN201710400671.0A
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.)
Tongren Testing Center City Wanshanqu Danfeng Vermilion Crafts Development Co Ltd
Original Assignee
Tongren Testing Center City Wanshanqu Danfeng Vermilion Crafts Development 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 Tongren Testing Center City Wanshanqu Danfeng Vermilion Crafts Development Co Ltd filed Critical Tongren Testing Center City Wanshanqu Danfeng Vermilion Crafts Development Co Ltd
Priority to CN201710400671.0A priority Critical patent/CN107180440A/en
Publication of CN107180440A publication Critical patent/CN107180440A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/97Determining parameters from multiple pictures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Processing Or Creating Images (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

The invention provides a kind of method that processing curve is obtained according to photo, comprise the following steps:1. image is inputted:Get cinnabar handicraft design drawing from incoming parameter by way of function call from system;2. background is removed:Background pure color color lattice in design drawing are switched into colorless chromogenic lattice or white color lattice;3. black and white is handled:The design drawing got is subjected to black whitening processing;4. sideline is extracted:Using color lattice non-NULL or non-zero as condition, product sideline in design drawing is extracted;5. formation curve:Smoothing processing is made to obtained product sideline, process operation curve is obtained, and obtained process operation curve is returned.The present invention is by way of image procossing and then smoothing processing obtain process operation curve, the technology realization that operation code is automatically generated before starting for processing provides sufficient premise so that processing automatically generates operation code technology before starting is implemented as possibility.

Description

A kind of method that processing curve is obtained according to photo
Technical field
The present invention relates to a kind of method that processing curve is obtained according to photo.
Background technology
For the cinnabar handicraft design of designed, designed, drawing can only be compareed by dedicated technician after being typically designed Progressively process, it is impossible to directly generate the operation code of automation processing, automation of the prior art generates machining code, also only It is the processing compared in real time against drawing by interpolation mode, and cinnabar handicraft airborne dust in processing is larger, compares in real time Sensor used (such as video is first-class) be able to can not be accurately identified because of airborne dust, so that real-time comparison can not be correctly completed, only It can depend on first all to generate operation code before processing starts and be only possible to accurately complete to process.
The content of the invention
In order to solve the above technical problems, the invention provides a kind of method that processing curve is obtained according to photo, the basis Photo obtains the method for processing curve by way of image procossing and then smoothing processing obtain process operation curve, is opened for processing The technology that operation code is automatically generated before beginning is realized there is provided sufficient premise so that processing automatically generates operation before starting The technology of code is implemented as possibility.
The present invention is achieved by the following technical programs.
A kind of method that processing curve is obtained according to photo that the present invention is provided, comprises the following steps:
1. image is inputted:Get the design of cinnabar handicraft from incoming parameter by way of function call from system Figure;
2. background is removed:Background pure color color lattice in design drawing are switched into colorless chromogenic lattice or white color lattice;
3. black and white is handled:The design drawing got is subjected to black whitening processing;
4. sideline is extracted:Using color lattice non-NULL or non-zero as condition, product sideline in design drawing is extracted;
5. formation curve:Smoothing processing is made to obtained product sideline, process operation curve is obtained, and by obtained processing Operating curve is returned.
The step 1. with step 2. in, design drawing be rgb pixel figure.
The color lattice value of the colorless chromogenic lattice is null value.
The color lattice value of the white color lattice is zero.
The step 3. black whitening processing, i.e., using highest in RGB channel value one as gray scale value, by RGB pictures The coloured lattice value of institute is changed into single gray scale value in sketch map.
5. middle smoothing processing is the step, in the discrete position in sideline, on side of the sideline by product, mends black Color lattice cause sideline continuous.
The background pure color is blueness, red, green or white.
5. the step 1. to being encapsulated as function library.
The beneficial effects of the present invention are:By way of image procossing and then smoothing processing obtain process operation curve, The technology realization that operation code is automatically generated before starting for processing provides sufficient premise so that processing is automatic before starting The technology of generation operation code is implemented as possibility.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the present invention.
Embodiment
Be described further below technical scheme, but claimed scope be not limited to it is described.
A kind of method that processing curve is obtained according to photo as shown in Figure 1, comprises the following steps:
1. image is inputted:Get the design of cinnabar handicraft from incoming parameter by way of function call from system Figure;
2. background is removed:Background pure color color lattice in design drawing are switched into colorless chromogenic lattice or white color lattice;
3. black and white is handled:The design drawing got is subjected to black whitening processing;
4. sideline is extracted:Using color lattice non-NULL or non-zero as condition, product sideline in design drawing is extracted;
5. formation curve:Smoothing processing is made to obtained product sideline, process operation curve is obtained, and by obtained processing Operating curve is returned.
The step 1. with step 2. in, design drawing be rgb pixel figure.
The color lattice value of the colorless chromogenic lattice is null value.
The color lattice value of the white color lattice is zero.
The step 3. black whitening processing, i.e., using highest in RGB channel value one as gray scale value, by RGB pictures The coloured lattice value of institute is changed into single gray scale value in sketch map.
5. middle smoothing processing is the step, in the discrete position in sideline, on side of the sideline by product, mends black Color lattice cause sideline continuous.
The background pure color is blueness, red, green or white.
5. the step 1. to being encapsulated as function library.
Thus, if handicraft designer using background for pure color design drawing as incoming parameter, call the present invention's Method, you can obtain process operation curve, can subsequently automatically generate the code of process operation according to process operation curve, so that The technology for starting to automatically generate operation code before, which must be processed, to be realized.

Claims (8)

1. a kind of method that processing curve is obtained according to photo, it is characterised in that:Comprise the following steps:
1. image is inputted:Obtain cinnabar handicraft design drawing from incoming parameter by way of function call from system;
2. background is removed:Background pure color color lattice in design drawing are switched into colorless chromogenic lattice or white color lattice;
3. black and white is handled:The design drawing got is subjected to black whitening processing;
4. sideline is extracted:Using color lattice non-NULL or non-zero as condition, product sideline in design drawing is extracted;
5. formation curve:Smoothing processing is made to obtained product sideline, process operation curve is obtained, and by obtained process operation Curve is returned.
2. the method as claimed in claim 1 that processing curve is obtained according to photo, it is characterised in that:1. and step the step 2. in, design drawing is rgb pixel figure.
3. the method as claimed in claim 1 that processing curve is obtained according to photo, it is characterised in that:The color of the colorless chromogenic lattice Lattice value is null value.
4. the method as claimed in claim 1 that processing curve is obtained according to photo, it is characterised in that:The color of the white color lattice Lattice value is zero.
5. the method as claimed in claim 1 that processing curve is obtained according to photo, it is characterised in that:The step 3. black and white Processing, i.e., using highest in RGB channel value one as gray scale value, by rgb pixel figure coloured lattice value be changed into Single gray scale value.
6. the method as claimed in claim 1 that processing curve is obtained according to photo, it is characterised in that:The step 5. in it is smooth It is processed as, in the discrete position in sideline, on side of the sideline by product, mends black color lattice and cause sideline continuous.
7. the method as claimed in claim 1 that processing curve is obtained according to photo, it is characterised in that:The background pure color is indigo plant Color, red, green or white.
8. the method as claimed in claim 1 that processing curve is obtained according to photo, it is characterised in that:5. the step 1. to sealing Fill as function library.
CN201710400671.0A 2017-05-31 2017-05-31 A kind of method that processing curve is obtained according to photo Pending CN107180440A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710400671.0A CN107180440A (en) 2017-05-31 2017-05-31 A kind of method that processing curve is obtained according to photo

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710400671.0A CN107180440A (en) 2017-05-31 2017-05-31 A kind of method that processing curve is obtained according to photo

Publications (1)

Publication Number Publication Date
CN107180440A true CN107180440A (en) 2017-09-19

Family

ID=59836350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710400671.0A Pending CN107180440A (en) 2017-05-31 2017-05-31 A kind of method that processing curve is obtained according to photo

Country Status (1)

Country Link
CN (1) CN107180440A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1385700A (en) * 2001-05-10 2002-12-18 华中科技大学同济医学院 Sperm fluorescent staining computer detection system
US20090097747A1 (en) * 2007-10-10 2009-04-16 Himax Technologies Limited Method of image processing and device thereof
CN101532926A (en) * 2008-12-12 2009-09-16 齐齐哈尔华工机床制造有限公司 On-line vision detecting system for automatic impact specimen processing device and image processing method thereof
CN101546430A (en) * 2009-04-30 2009-09-30 上海大学 Edge extracting method based on simplified pulse coupled neural network
CN104008523A (en) * 2014-06-24 2014-08-27 上海盛致文化发展有限公司 Graphic processing method
CN204759169U (en) * 2015-06-09 2015-11-11 三明学院 CNC engraving machine of direct reading working drawing
CN105976352A (en) * 2016-04-14 2016-09-28 北京工业大学 Weld seam surface detect feature extraction method based on grayscale image morphology
CN106020120A (en) * 2016-07-29 2016-10-12 芜湖哈特机器人产业技术研究院有限公司 Method for generating G code by using image based on ios system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1385700A (en) * 2001-05-10 2002-12-18 华中科技大学同济医学院 Sperm fluorescent staining computer detection system
US20090097747A1 (en) * 2007-10-10 2009-04-16 Himax Technologies Limited Method of image processing and device thereof
CN101532926A (en) * 2008-12-12 2009-09-16 齐齐哈尔华工机床制造有限公司 On-line vision detecting system for automatic impact specimen processing device and image processing method thereof
CN101546430A (en) * 2009-04-30 2009-09-30 上海大学 Edge extracting method based on simplified pulse coupled neural network
CN104008523A (en) * 2014-06-24 2014-08-27 上海盛致文化发展有限公司 Graphic processing method
CN204759169U (en) * 2015-06-09 2015-11-11 三明学院 CNC engraving machine of direct reading working drawing
CN105976352A (en) * 2016-04-14 2016-09-28 北京工业大学 Weld seam surface detect feature extraction method based on grayscale image morphology
CN106020120A (en) * 2016-07-29 2016-10-12 芜湖哈特机器人产业技术研究院有限公司 Method for generating G code by using image based on ios system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张国栋 等: "应用Auto CAD实现数控加工曲线拟合的研究", 《全国第十四届计算机科学及其在仪器仪表中的应用学术交流会论文集》 *
陈思 等: "基于CT图像的数控加工代码获取方法研究", 《第十三届中国体视学与图像分析学术会议论文集》 *

Similar Documents

Publication Publication Date Title
EP3477931B1 (en) Image processing method and device, readable storage medium and electronic device
US7764319B2 (en) Image processing apparatus, image-taking system, image processing method and image processing program
CN103886565A (en) Nighttime color image enhancement method based on purpose optimization and histogram equalization
CN111107330B (en) Color cast correction method for Lab space
CN106020120A (en) Method for generating G code by using image based on ios system
CN113824945B (en) Rapid automatic white balance and color correction method based on deep learning
CN107169973A (en) The background removal and synthetic method and device of a kind of image
CN112232205B (en) Mobile terminal CPU real-time multifunctional face detection method
CN110766636B (en) Intelligent image processing method for AI chip
CN105631826B (en) A kind of color image saturation Enhancement Method and system
CN101315664A (en) Text image preprocessing method for character recognition
CN104680518A (en) Blue screen image matting method based on chroma overflowing processing
CN102446345A (en) Method, device and system for carrying out color enhancement on whiteboard colored image
CN113610091A (en) Intelligent identification method and device for air switch state and storage medium
CN107180440A (en) A kind of method that processing curve is obtained according to photo
CN104811631A (en) Image processing method and image processor
CN109389085A (en) Lip reading identification model training method and device based on parametric curve
CN111275729B (en) Method and system for finely dividing sky area and method and system for changing sky of image
CN112669207A (en) Method for enhancing resolution of face image based on television camera
CN105208362B (en) Image colour cast auto-correction method based on gray balance principle
CN106780382B (en) The automatic growth control display methods of floating-point image
TW202034281A (en) Method for adjusting luminance of images and computer program product
CN106023196B (en) Non-monochromatic background matting method based on target figure
US20120188401A1 (en) Image processing apparatus
CN109459925B (en) Method for hand-drawing identification and parameter setting of PID control data

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: 20170919