CN110298351A - A kind of method and device of color of image identification storage - Google Patents

A kind of method and device of color of image identification storage Download PDF

Info

Publication number
CN110298351A
CN110298351A CN201910540844.8A CN201910540844A CN110298351A CN 110298351 A CN110298351 A CN 110298351A CN 201910540844 A CN201910540844 A CN 201910540844A CN 110298351 A CN110298351 A CN 110298351A
Authority
CN
China
Prior art keywords
pixel
presetted
pixel point
color
image
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
CN201910540844.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.)
Shanghai Neighborhood Technology Co Ltd
Original Assignee
Shanghai Neighborhood 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 Shanghai Neighborhood Technology Co Ltd filed Critical Shanghai Neighborhood Technology Co Ltd
Priority to CN201910540844.8A priority Critical patent/CN110298351A/en
Publication of CN110298351A publication Critical patent/CN110298351A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/26Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
    • G06V10/267Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion by performing operations on regions, e.g. growing, shrinking or watersheds
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/56Extraction of image or video features relating to colour

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Analysis (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)

Abstract

The present invention discloses a kind of method and device of color of image identification storage, purpose is to find the implementation of more efficiently color of image identification storage, it includes the following steps: that will acquire image splits into pixel in card Deere coordinate system, identifies the colouring information of each pixel;The presetted pixel point in acquisition image after extracting binaryzation, compares corresponding pixel points in presetted pixel point and initialized data base, obtains variation coefficient of the presetted pixel point relative to corresponding pixel points;The colouring information that each pixel is adjusted based on variation coefficient obtains location information of each pixel in card Deere coordinate system, and colouring information and location information after calling HashMap class to store the correction of each pixel.The present invention is stored by the identification of location information and colouring information directly to the pixel in acquisition image, the problems such as overcoming the unobvious feature that outline identification encounters, edge blurry, gradient color, it is based on computer disposal simultaneously, solves the problems, such as manual identified inefficiency.

Description

A kind of method and device of color of image identification storage
Technical field
The present invention relates to field of image processings, specifically, the present invention relates to a kind of methods of color of image identification storage And device.
Background technique
As the mankind enter the information age, computer is more and more extensive to be applied to various fields.Based on Digital Image Processing The research of pattern-recognition more and more attention has been paid to but be mainly at present according to color of image, brightness in the identification based on image Etc. the profile that is characterized of information, and using it is most of be manual identified using inefficiency, meanwhile, not for contour feature Apparent image, for example gradient color or edge blurry, under manual identified is relatively low at present, and technically are also difficult to handle. Along with the factors such as illumination condition, overcover are affected to image outline, therefore, the accuracy of identification is not also high.
Summary of the invention
In order to find the implementation of more efficiently color of image identification storage, the present invention provides a kind of color of image Identify the method and device of storage.
Scheme one:
There is provided a kind of method of color of image identification storage comprising following steps:
Acquisition image is split into pixel in card Deere coordinate system, identifies the colouring information of each pixel;
The presetted pixel point in the acquisition image after extracting binaryzation, the presetted pixel point and preset data Corresponding pixel points in library obtain variation coefficient of the presetted pixel point relative to the corresponding pixel points;
The colouring information that each pixel is adjusted based on the variation coefficient obtains each pixel in the card enlightening Location information in your coordinate system, and colouring information and institute after calling HashMap class to store the correction of each pixel State location information.
Preferably, the presetted pixel point and corresponding pixel points in initialized data base, obtain the presetted pixel point Variation coefficient relative to the corresponding pixel points includes the following steps:
The presetted pixel gray value of presetted pixel point is obtained,
Obtain the respective pixel gray value of corresponding pixel points in initialized data base;
The variation coefficient is obtained according to respective pixel gray value described in the presetted pixel sum of the grayscale values.
Preferably, the presetted pixel gray value for obtaining presetted pixel point includes the following steps:
Obtain the gray value of eight pixels around presetted pixel point and presetted pixel point;
Using the average value of the gray value of eight pixels around the presetted pixel point and presetted pixel point as institute State the presetted pixel gray value of presetted pixel point.
Preferably, if presetted pixel point is white pixel point, the presetted pixel point and preset number According to corresponding pixel points in library, obtaining the presetted pixel point relative to the variation coefficient of the corresponding pixel points includes following step It is rapid:
Compare white pixel point in the white pixel point and initialized data base, obtains the variation coefficient.
Preferably, it is described will acquisition image split into pixel in card Deere coordinate system before, include the following steps:
Using the lower left corner for acquiring image as coordinate origin, card Deere coordinate system is established.
Preferably, the location information for obtaining each pixel in the card Deere coordinate system includes the following steps:
The acquisition image is placed in the first quartile in the card Deere coordinate system, reads each pixel described Location information in one quadrant.
Preferably, after the colouring information that each pixel is adjusted based on the variation coefficient, including it is as follows Step:
The colouring information of each pixel is adjusted based on customized mode.
Scheme two:
A kind of device of color of image identification storage is provided comprising:
Color identification module splits into pixel in card Deere coordinate system for that will acquire image, identifies each pixel The colouring information of point;
Comparison module, for extracting the presetted pixel point in the acquisition image after binaryzation, the default picture Corresponding pixel points in vegetarian refreshments and initialized data base, obtain variation system of the presetted pixel point relative to the corresponding pixel points Number;
Memory module is corrected, for adjusting the colouring information of each pixel based on the variation coefficient, is obtained every Location information of a pixel in the card Deere coordinate system, and HashMap class is called to store rectifying for each pixel Colouring information and the location information after just.
Preferably, the comparison module includes:
Default acquiring unit, for obtaining the presetted pixel gray value of presetted pixel point,
Corresponding acquiring unit, for obtaining the respective pixel gray value of corresponding pixel points in initialized data base;
Computing unit obtains the variation system for the respective pixel gray value according to the presetted pixel sum of the grayscale values Number.
Preferably, the default acquiring unit includes:
Subelement is obtained, for obtaining the gray value of eight pixels around presetted pixel point and presetted pixel point;
Assignment unit, for by the gray value of eight pixels around the presetted pixel point and presetted pixel point Presetted pixel gray value of the average value as the presetted pixel point.
Compared with prior art, a kind of method and device of color of image identification storage of the present invention has following beneficial to effect Fruit:
The present invention is stored by the identification of location information and colouring information directly to the pixel in acquisition image, is overcome The problems such as feature that outline identification encounters is unobvious, edge blurry, gradient color, while it being based on computer disposal, solve people The low problem of work recognition efficiency.In addition, the present invention overcomes illumination item also by doing the adjustment of variation coefficient to pixel Influence of the factors such as part, overcover to image, improves the accuracy of identification to a certain extent.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is a kind of flow diagram of the method for color of image identification storage of one embodiment of the invention;
Fig. 2 is a kind of modular structure schematic diagram of the device of color of image identification storage of another embodiment of the present invention.
Identifier declaration in figure:
2002, color identification module;2004, comparison module;2006, memory module is corrected.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
It please refers to such as 1, a kind of method of color of image identification storage of the embodiment of the present invention comprising following steps:
Step S101: acquisition image is split into pixel in card Deere coordinate system, identifies the color of each pixel Information, wherein colouring information is RGB color value or hexadecimal color code.
In some embodiments, before acquisition image being split into pixel in card Deere coordinate system, including it is as follows Step: using the lower left corner for acquiring image as coordinate origin, card Deere coordinate system is established, wherein the origin of card Deere coordinate system is on a left side Inferior horn, X axis is right, in Y-axis.
In some embodiments, the colouring information for identifying each pixel is to take out 32 colors respectively by bit arithmetic The first byte, the second byte and the third byte of value, three bytes respectively correspond the value of red, green, blue.
Step S103: the presetted pixel point in the acquisition image after extracting binaryzation, the presetted pixel point With corresponding pixel points in initialized data base, variation coefficient of the presetted pixel point relative to the corresponding pixel points is obtained, In, the binaryzation for acquiring image is exactly to set 0 or 255 for the gray value of pixel acquired on image, that is, will be entire Acquisition image, which shows, significantly only has black and white visual effect.
In some embodiments, presetted pixel point is white pixel point or black pixel point, corresponding, preset data Corresponding pixel points are white pixel point or black pixel point in library.Presetted pixel point is preferably white pixel point, in this way, comparing Corresponding pixel points in presetted pixel point and initialized data base, obtain variation coefficient packet of the presetted pixel point relative to corresponding pixel points Include following steps:
Compare white pixel point in white pixel point and initialized data base, obtains variation coefficient.
Preferably, compare corresponding pixel points in presetted pixel point and initialized data base, obtain presetted pixel point relative to right The variation coefficient of pixel is answered to include the following steps:
The presetted pixel gray value of presetted pixel point is obtained,
Obtain the respective pixel gray value of corresponding pixel points in initialized data base;
Variation coefficient is obtained according to presetted pixel sum of the grayscale values respective pixel gray value.
Specifically, the presetted pixel gray value for obtaining presetted pixel point includes the following steps:
Obtain the gray value of eight pixels around presetted pixel point and presetted pixel point;
Using the average value of the gray value of eight pixels around presetted pixel point and presetted pixel point as presetted pixel point Presetted pixel gray value.
Step S105: the colouring information of each pixel is adjusted based on the variation coefficient, obtains each pixel Location information in the card Deere coordinate system, and HashMap class is called to store the face after the correction of each pixel Color information and the location information, wherein variation coefficient is the influence of noise in order to overcome background, light imbalance etc.;HashMap The realization of Map interface of the class based on Hash table.
Preferably, location information of each pixel in card Deere coordinate system is obtained to include the following steps:
Acquisition image is placed in the first quartile in card Deere coordinate system, reads position of each pixel in first quartile Confidence breath.
In view of some special occasions, it is sometimes necessary to the colouring information of the pixel of region or entirety is manually adjusted, Therefore, a kind of method of color of image identification storage of the embodiment of the present invention early adjusts the color of each pixel based on variation coefficient After information, include the following steps:
The colouring information of each pixel is adjusted based on customized mode.
Compared with prior art, a kind of method of color of image identification storage of the embodiment of the present invention has following beneficial to effect Fruit:
A kind of method of color of image identification storage of the embodiment of the present invention passes through directly to the pixel in acquisition image The identification of location information and colouring information stores, and overcomes the unobvious feature that outline identification encounters, edge blurry, gradient color etc. Problem, while it being based on computer disposal, solve the problems, such as manual identified inefficiency.In addition, a kind of figure of the embodiment of the present invention As the method for color identification storage is by doing the adjustment of variation coefficient to pixel, the factors such as illumination condition, overcover are overcome Influence to image improves the accuracy of identification to a certain extent.
Referring to Fig. 2, based on a kind of identical inventive concept of method of color of image identification storage of the same embodiment of the present invention, Another embodiment of the present invention provides a kind of devices of color of image identification storage comprising color identification module 2002 compares mould Block 2004 and correction memory module 2006, wherein
Color identification module 2002 splits into pixel for that will acquire image in card Deere coordinate system, and identification is each The colouring information of pixel;
Comparison module 2004 compares presetted pixel point for extracting the presetted pixel point in the acquisition image after binaryzation With corresponding pixel points in initialized data base, variation coefficient of the presetted pixel point relative to corresponding pixel points is obtained;
It corrects memory module 2006 and obtains each picture for adjusting the colouring information of each pixel based on variation coefficient Location information of the vegetarian refreshments in card Deere coordinate system, and HashMap class is called to store the color letter after the correction of each pixel Breath and location information.
Preferably, comparison module 2004 includes:
Default acquiring unit, for obtaining the presetted pixel gray value of presetted pixel point,
Corresponding acquiring unit, for obtaining the respective pixel gray value of corresponding pixel points in initialized data base;
Computing unit, for obtaining variation coefficient according to presetted pixel sum of the grayscale values respective pixel gray value.
In some embodiments, default acquiring unit includes:
Subelement is obtained, for obtaining the gray value of eight pixels around presetted pixel point and presetted pixel point;
Assignment unit, for making the average value of the gray value of eight pixels around presetted pixel point and presetted pixel point For the presetted pixel gray value of presetted pixel point.
In view of another embodiment of the present invention a kind of device and a kind of figure of the embodiment of the present invention of color of image identification storage As color identification storage method be based on the same inventive concept, therefore, detail is referred to one of above-described embodiment Therefore the method for clock color of image identification storage repeats no more.
Compared with prior art, a kind of device of color of image identification storage of the embodiment of the present invention has following beneficial to effect Fruit:
A kind of device of color of image identification storage of the embodiment of the present invention passes through color identification module 2002, comparison module 2004 and correct memory module 2006 setting, overcome the unobvious feature that outline identification encounters, edge blurry, gradient color The problems such as, while it being based on computer disposal, solve the problems, such as manual identified inefficiency.In addition, the embodiment of the present invention is a kind of The device of color of image identification storage by doing the adjustment of variation coefficient to pixel, overcome illumination condition, overcover etc. because Influence of the element to image, improves the accuracy of identification to a certain extent.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (10)

1. a kind of method of color of image identification storage, which is characterized in that the method for described image color identification storage includes such as Lower step:
Acquisition image is split into pixel in card Deere coordinate system, identifies the colouring information of each pixel;
The presetted pixel point in the acquisition image after extracting binaryzation, in the presetted pixel point and initialized data base Corresponding pixel points obtain variation coefficient of the presetted pixel point relative to the corresponding pixel points;
The colouring information that each pixel is adjusted based on the variation coefficient is obtained each pixel and sat in the card Deere Location information in mark system, and colouring information and institute's rheme after calling HashMap class to store the correction of each pixel Confidence breath.
2. the method for color of image as described in claim 1 identification storage, which is characterized in that the presetted pixel point with Corresponding pixel points in initialized data base, obtaining the presetted pixel point relative to the variation coefficient of the corresponding pixel points includes such as Lower step:
The presetted pixel gray value of presetted pixel point is obtained,
Obtain the respective pixel gray value of corresponding pixel points in initialized data base;
The variation coefficient is obtained according to respective pixel gray value described in the presetted pixel sum of the grayscale values.
3. the method for color of image identification storage as claimed in claim 2, which is characterized in that the acquisition presetted pixel point Presetted pixel gray value includes the following steps:
Obtain the gray value of eight pixels around presetted pixel point and presetted pixel point;
Using the average value of the presetted pixel point and the gray value of eight pixels around the presetted pixel point as described pre- If the presetted pixel gray value of pixel.
4. the method for color of image identification storage as described in claim 1, which is characterized in that if presetted pixel point is white Colour vegetarian refreshments, then the presetted pixel point and corresponding pixel points in initialized data base, obtain the presetted pixel point Variation coefficient relative to the corresponding pixel points includes the following steps:
Compare white pixel point in the white pixel point and initialized data base, obtains the variation coefficient.
5. the method for color of image identification storage as described in claim 1, which is characterized in that the image that will acquire is in card enlightening It splits into before pixel, includes the following steps: in your coordinate system
Using the lower left corner for acquiring image as coordinate origin, card Deere coordinate system is established.
6. the method for color of image identification storage as described in claim 1, which is characterized in that each pixel of acquisition exists Location information in the card Deere coordinate system includes the following steps:
The acquisition image is placed in the first quartile in the card Deere coordinate system, read each pixel described first as Location information in limit.
7. the method for color of image identification storage as described in claim 1, which is characterized in that described to be based on the variation coefficient After the colouring information for adjusting each pixel, include the following steps:
The colouring information of each pixel is adjusted based on customized mode.
8. a kind of device of color of image identification storage, which is characterized in that described image color identifies that the device of storage includes:
Color identification module splits into pixel in card Deere coordinate system for that will acquire image, identifies each pixel Colouring information;
Comparison module, for extracting the presetted pixel point in the acquisition image after binaryzation, the presetted pixel point With corresponding pixel points in initialized data base, variation coefficient of the presetted pixel point relative to the corresponding pixel points is obtained;
It corrects memory module and obtains each picture for adjusting the colouring information of each pixel based on the variation coefficient Location information of the vegetarian refreshments in the card Deere coordinate system, and after the correction for calling HashMap class to store each pixel Colouring information and the location information.
9. the device of color of image as claimed in claim 8 identification storage, which is characterized in that the comparison module includes:
Default acquiring unit, for obtaining the presetted pixel gray value of presetted pixel point,
Corresponding acquiring unit, for obtaining the respective pixel gray value of corresponding pixel points in initialized data base;
Computing unit obtains the variation coefficient for the respective pixel gray value according to the presetted pixel sum of the grayscale values.
10. the device of color of image identification storage as claimed in claim 9, which is characterized in that the default acquiring unit packet It includes:
Subelement is obtained, for obtaining the gray value of eight pixels around presetted pixel point and presetted pixel point;
Assignment unit, for the presetted pixel point and the gray value of eight pixels around the presetted pixel point to be averaged It is worth the presetted pixel gray value as the presetted pixel point.
CN201910540844.8A 2019-06-21 2019-06-21 A kind of method and device of color of image identification storage Pending CN110298351A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910540844.8A CN110298351A (en) 2019-06-21 2019-06-21 A kind of method and device of color of image identification storage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910540844.8A CN110298351A (en) 2019-06-21 2019-06-21 A kind of method and device of color of image identification storage

Publications (1)

Publication Number Publication Date
CN110298351A true CN110298351A (en) 2019-10-01

Family

ID=68028464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910540844.8A Pending CN110298351A (en) 2019-06-21 2019-06-21 A kind of method and device of color of image identification storage

Country Status (1)

Country Link
CN (1) CN110298351A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110182503A1 (en) * 2010-01-25 2011-07-28 Apple Inc. Image Preprocessing
CN104700354A (en) * 2015-03-31 2015-06-10 北京奇艺世纪科技有限公司 Information embedding method and device
CN106846395A (en) * 2016-12-31 2017-06-13 中国农业科学院农业环境与可持续发展研究所 Targeted graphical area computation method and system in photo
CN108495101A (en) * 2018-04-08 2018-09-04 北京大恒图像视觉有限公司 A kind of method for correcting image, device, image capture device and readable storage medium storing program for executing
CN109587466A (en) * 2017-09-29 2019-04-05 华为技术有限公司 The method and apparatus of colored shadow correction
CN109697957A (en) * 2019-01-07 2019-04-30 京东方科技集团股份有限公司 Image pixel bearing calibration and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110182503A1 (en) * 2010-01-25 2011-07-28 Apple Inc. Image Preprocessing
CN104700354A (en) * 2015-03-31 2015-06-10 北京奇艺世纪科技有限公司 Information embedding method and device
CN106846395A (en) * 2016-12-31 2017-06-13 中国农业科学院农业环境与可持续发展研究所 Targeted graphical area computation method and system in photo
CN109587466A (en) * 2017-09-29 2019-04-05 华为技术有限公司 The method and apparatus of colored shadow correction
CN108495101A (en) * 2018-04-08 2018-09-04 北京大恒图像视觉有限公司 A kind of method for correcting image, device, image capture device and readable storage medium storing program for executing
CN109697957A (en) * 2019-01-07 2019-04-30 京东方科技集团股份有限公司 Image pixel bearing calibration and system

Similar Documents

Publication Publication Date Title
Palus Representations of colour images in different colour spaces
ES2205262T3 (en) SYSTEM AND METHOD FOR IMAGE PROCESSING.
EP1202217A3 (en) Increasing the spatial resolution of an image using co-registered image of higher resolution
US10248843B2 (en) Image processing apparatus and method for removing a facial object
KR20070090224A (en) Method of electronic color image saturation processing
US11120530B2 (en) Image processing apparatus, image processing method, and storage medium
KR100903816B1 (en) System and human face detection system and method in an image using fuzzy color information and multi-neural network
CN110766636B (en) Intelligent image processing method for AI chip
US20220060713A1 (en) Image display method and device, image recognition method and device, storage medium, electronic apparatus, and image system
CN111311500A (en) Method and device for carrying out color restoration on image
CN115631160A (en) LED lamp fault detection method, device, equipment and storage medium
CN110298351A (en) A kind of method and device of color of image identification storage
TWI540905B (en) Method for regulating white balancing
US20140355013A1 (en) Systems and Methods for Red-Eye Correction
JPH09261580A (en) Image processing method
KR100488014B1 (en) YCrCb color based human face location detection method
CN110335257A (en) A kind of image color detection method and mobile terminal
CN107358150B (en) Object frame identification method and device and high-speed shooting instrument
CN111192314B (en) Method and system for determining inner and outer contour ratio of finger in GDV energy image
CN114023249A (en) LED display screen image light point extraction method and device and LED display screen correction method
US20010055419A1 (en) Content-based multimedia searching system using color distortion data
US20130294688A1 (en) Face Detection Method
CN107909075A (en) A kind of Binarization of License Plate Images based on Laplacian enlargement oprators
CN103226689A (en) Red eye detection method and device and red eye removing method and device
CN103795992B (en) White balance adjustment method

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
AD01 Patent right deemed abandoned
AD01 Patent right deemed abandoned

Effective date of abandoning: 20240119