Movatterモバイル変換


[0]ホーム

URL:


CN110363083A - A kind of facial image gender identification method and device - Google Patents

A kind of facial image gender identification method and device
Download PDF

Info

Publication number
CN110363083A
CN110363083ACN201910494158.1ACN201910494158ACN110363083ACN 110363083 ACN110363083 ACN 110363083ACN 201910494158 ACN201910494158 ACN 201910494158ACN 110363083 ACN110363083 ACN 110363083A
Authority
CN
China
Prior art keywords
image
feature vector
face
facial image
gender
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
CN201910494158.1A
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.)
Guangzhi Microcore (yangzhou) Co Ltd
Original Assignee
Guangzhi Microcore (yangzhou) 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 Guangzhi Microcore (yangzhou) Co LtdfiledCriticalGuangzhi Microcore (yangzhou) Co Ltd
Priority to CN201910494158.1ApriorityCriticalpatent/CN110363083A/en
Publication of CN110363083ApublicationCriticalpatent/CN110363083A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The present embodiments relate to a kind of facial image gender identification methods, which comprises facial image is converted into gray level image, and obtains the local binary patterns feature vector of the gray level image;Dimensionality reduction is carried out to described eigenvector by linear discriminent parser;Feature vector after dimensionality reduction is input in preparatory trained gender sorter and is tested, the Gender Classification result of facial image is obtained.The local binary patterns feature that technical solution of the present invention only needs to extract facial image can be obtained very high classification accuracy, both quick and accurate compared to existing gender identification method.

Description

A kind of facial image gender identification method and device
Technical field
The invention belongs to image processing techniques and field of machine vision, it is related to a kind of facial image gender identification method and dressIt sets.
Background technique
Face recognition technology has been obtained for being widely applied at this stage.But sometimes whom we are in addition to wanting to knowOutside, also think some attributes for further obtaining that face, for example appearance, dress up, age, gender etc..Specific aim of the present inventionOther attribute proposes a kind of gender identification method based on facial image.
Gender identification is a complicated extensive quadratic modes classification problem, and classifier is by data inputting and divides maleAnd women.Mainly have currently based on the most important gender identification method of image vision: the gender recognizer based on eigenface, baseIn the gender identification method of Fei Sheer (Fisher) criterion, based on generating final strong classifier by iteration Weak ClassifierIt algorithm (Adaboost) and support vector machines (Support Vector Machine) face gender sorting algorithm and is based onThe gender identification method of convolutional neural networks CNN (Convolution Neural Network) even depth study.And above-mentioned sideMethod there are accuracys rate it is low, algorithm is complicated or arithmetic speed is slow the defects of.
Summary of the invention
The present invention provides a kind of facial image gender identification method, this method is based on local binary patterns LBP (LocalBinary Pattern) feature and linear discriminent analyze LDA (Linear Discriminant Analysis) dimension-reduction treatmentTechnical principle, more accurate and robust facial image gender recognition result can be provided.
In order to achieve the above objectives, the embodiment of the present invention provides a kind of facial image gender identification method, comprising:
Facial image is converted into gray level image, and obtains the local binary patterns feature vector of the gray level image;
Dimensionality reduction is carried out to described eigenvector by linear discriminent parser;
Feature vector after dimensionality reduction is input in preparatory trained gender sorter and is tested, facial image is obtainedGender Classification result.
On the other hand, the present invention provides a kind of facial image gender identification device, and described device includes:
Feature vector acquiring unit for facial image to be converted into gray level image, and obtains the office of the gray level imagePortion's binary pattern feature vector;
Dimensionality reduction unit, for carrying out dimensionality reduction to described eigenvector by linear discriminent parser;
Taxon is surveyed for the feature vector after dimensionality reduction to be input in preparatory trained gender sorterExamination, obtains the Gender Classification result of facial image.
Above-mentioned technical proposal has the following beneficial effects: that above scheme provided in an embodiment of the present invention, this method only needThe local binary patterns LBP feature vector for extracting facial image can be obtained very high classification accuracy, compared to existing propertyOther recognition methods, it is both quick and accurate;And facial image LBP feature vector is dropped by linear discriminent parser LDAThe method of dimension has better sort feature compared to other dimensionality reduction modes such as principal component analysis PCA;This method by usingTraining gender sorter, compared to machine learning methods such as Adaboost, SVM, accuracy rate is higher, and speed is faster.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show belowThere is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only thisSome embodiments of invention for those of ordinary skill in the art without creative efforts, can be withIt obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart of facial image gender identification method of the embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of facial image gender identification device of the embodiment of the present invention;
Fig. 3 is the flow chart of the gender sorter training method of the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, completeSite preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based onEmbodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every otherEmbodiment shall fall within the protection scope of the present invention.
As shown in Figure 1, being a kind of flow chart of facial image gender identification method of the embodiment of the present invention, the method packetIt includes:
Facial image is converted into gray level image by S101, and obtain the local binary patterns feature of the gray level image toAmount;
Before facial image is converted into gray level image, being obtained by image collecting device such as camera acquisition includes peopleThe image of face carries out Face datection to image, obtains facial image only comprising face part, specifically, Face datection canTo be carried out using existing way, the present embodiment is not particularly limited, such as can be identified and be distinguished only comprising people by facial contourThe image of face part.
Preferably, above-mentioned facial image is changed into gray level image by RGB RGB color image, and image size is unified150*150 is set as to a preset size, such as picture size.
The facial image that different facial images or different detection algorithms detect is not of uniform size, and needing will be differentThe image of size is unified to a size, and the feature that can just obtain identical dimensional is trained and tests, for picture sizeConversion, can be used and be not limited to such as compression of images, image cutting-out mode in the prior art and convert to picture size.
Preferably, the local binary patterns of the face's face for embodying the gray level image, shape of face and textural characteristics are obtainedFeature vector;8 neighborhoods are set as when extracting LBP feature vector in one embodiment of the invention, and when statistic histogram is arrangedFirst packet size is 32, is normalized using two norm rules, finally obtains the feature vector of 944 dimensions.
Local binary patterns LBP is that a kind of image local textural characteristics describe operator, has rotational invariance and gray scale notIt is denaturalized advantage.The feature difference of men and women's different sexes is mainly reflected in the parts such as face's face, shape of face, texture.LBP operator can be withAbove-mentioned face regional area is described well.
S102 carries out dimensionality reduction to described eigenvector by linear discriminent parser;
Preferably, by the local binary patterns eigenvector projection to vector space, the local binary patterns are obtainedThe feature vector that feature vector is 1 in the dimension of vector space, the feature vector that the dimension is 1 have maximum between class distance andMinimum inter- object distance.One embodiment of the invention using Fisher LDA dimension reduction method, finally obtain feature that dimension is 1 toAmount.
The LBP feature vector dimension that step S101 is obtained is relatively high, and there are redundancies between feature vector.LDA algorithm claimsFor linear discriminent analysis, basic thought is that the mode sample of higher-dimension is projected to best discriminant technique vector space, is taken out with reachingThe effect of classification information and compressive features Spatial Dimension is taken, between Assured Mode sample has maximum class in new subspace after projectionDistance and the smallest inter- object distance, i.e. mode have optimal separability within this space.Therefore, by LDA linear discriminant pointLBP local binary patterns feature after analysis dimensionality reduction has the most separable characteristic of men and women's sample.
Feature vector after dimensionality reduction is input in preparatory trained gender sorter and tests, obtains people by S103The Gender Classification result of face image.
Preferably, obtain it is described in advance trained gender sorter the step of include:
S1031: the local binary patterns feature vector of everyone face image of training set of images is obtained;
S1032: by linear discriminent parser to the local binary mould of everyone face image of training set of imagesFormula feature vector carries out dimensionality reduction;
S1033: according to the feature vector and each face figure after the dimensionality reduction of everyone face image of training image collectionAs corresponding gender, by transfiniting, learning machine classifier training obtains gender sorter.
Since face has the characteristics that the identification that structure is complicated, variations in detail is more, for face gender feature, obtain toAfter the feature vector for identifying facial image, it is corresponding next for gender identification about property another characteristic how to distinguish this feature vectorIt says it is particularly important, for example in view of the difference of gender's feature when all ages and classes, different regions, how to treatThe influence that face characteristic under these differences identifies gender? in technical solution of the present invention, for the identification of face gender,Targetedly propose following solution, gender identification firstly the need of one gender sorter of training, by collect country variant,As training image collection, training image concentrates men and women's amount of images to approach for all ages and classes and different equal men and women's image of dressing up, byAll images pass through the method for above-mentioned steps S101, S102 such as and handle, and each image obtains the LBP spy after a corresponding dimensionality reductionSign, is input to the learning machine that transfinites (Extreme Learning with corresponding gender label for the feature of all training samplesMachine) in ELM Machine learning classifiers, study obtains gender sorter.For image to be tested, extraction obtains faceIt is directly inputted in gender sorter after the dimensionality reduction LBP feature divided, can predicts the gender result classified.Such as the present inventionMen and women's image of 5000 width country variants, all ages and classes is had collected in one embodiment as training sample, the hidden layer of ELM classifierNeuron number is set as 20.
Pass through the method for above-mentioned steps S101, S102 such as by the image for concentrating training sample image to handle to be dividedThe training of class device overcomes and is carried out in gender identification by face characteristic in conjunction with the feature extraction processing for image to be classifiedExisting structure is complicated, the feature more than variations in detail, so that the classification of gender is accurate.
It is illustrated in figure 2 a kind of structural schematic diagram of facial image gender identification device of the embodiment of the present invention, described deviceInclude:
Feature vector acquiring unit 21 for facial image to be converted into gray level image, and obtains the gray level imageLocal binary patterns feature vector;
Dimensionality reduction unit 22, for carrying out dimensionality reduction to described eigenvector by linear discriminent parser;
Taxon 23 is surveyed for the feature vector after dimensionality reduction to be input in preparatory trained gender sorterExamination, obtains the Gender Classification result of facial image.
Further, described device further includes facial image acquiring unit, for facial image to be converted into ash describedIt spends before image, the image comprising face is obtained by image acquisition device, Face datection is carried out to image, is obtained onlyFacial image comprising face part.
Described eigenvector acquiring unit 21 is specifically used for: facial image is converted into gray level image by color image, andThe size of the gray level image is unified for preset size.
Further, the local binary patterns feature vector be embody face's face of the gray level image, shape of face withAnd the local binary patterns feature vector of textural characteristics.
Further, the dimensionality reduction unit 22 is specifically used for:
By the local binary patterns eigenvector projection to vector space, the local binary patterns feature vector is obtainedThe feature vector for being 1 in the dimension of vector space, the feature vector that the dimension is 1 have in maximum between class distance and infima speciesDistance.
Further, the taxon 23 includes gender classifier training module, the gender sorter training moduleFor:
Obtain the local binary patterns feature vector of everyone face image of training set of images;
By linear discriminent parser to the local binary patterns feature of everyone face image of training set of imagesVector carries out dimensionality reduction;
It is corresponding with everyone face image according to the feature vector after the dimensionality reduction of everyone face image of training image collectionGender, by transfiniting, learning machine classifier training obtains gender sorter.
The identification of above-mentioned technical proposal of the invention for gender, it is only necessary to which the LBP feature for extracting facial image can obtainVery high classification accuracy is obtained, it is both quick and accurate compared to existing gender identification method;What this method proposed uses LDA to originalThe method that beginning facial image LBP feature carries out dimensionality reduction has better sort feature compared to other dimensionality reduction modes such as PCA;ThisMethod is using the learning machine ELM machine learning algorithm training classifier that transfinites, compared to machine learning methods such as Adaboost, SVM,Accuracy rate is higher, and speed is faster;And for the different characteristic that different regions, all ages and classes embody in gender identification, pass through full-page proofMachine learning under this, above-mentioned different characteristic is able to be able to consider in classification and in the judgement that is used to classify, so that classification knotFruit is more accurate.
It should be understood that the particular order or level of the step of during disclosed are the examples of illustrative methods.Based on settingCount preference, it should be appreciated that in the process the step of particular order or level can be in the feelings for the protection scope for not departing from the disclosureIt is rearranged under condition.Appended claim to a method is not illustratively sequentially to give the element of various steps, and notIt is to be limited to the particular order or level.
In above-mentioned detailed description, various features are combined together in single embodiment, to simplify the disclosure.NoThis published method should be construed to reflect such intention, that is, the embodiment of theme claimed needs to compareThe more features of the feature clearly stated in each claim.On the contrary, as appended claims is reflectedLike that, the present invention is in the state fewer than whole features of disclosed single embodiment.Therefore, appended claimsIt is hereby expressly incorporated into detailed description, wherein each claim is used as alone the individual preferred embodiment of the present invention.
For can be realized any technical staff in the art or using the present invention, above to disclosed embodiment intoDescription is gone.To those skilled in the art;The various modifications mode of these embodiments will be apparent from, and thisThe General Principle of text definition can also be suitable for other embodiments on the basis of not departing from the spirit and scope of the disclosure.Therefore, the disclosure is not limited to embodiments set forth herein, but most wide with principle disclosed in the present application and novel featuresRange is consistent.
Description above includes the citing of one or more embodiments.Certainly, in order to describe above-described embodiment and description portionThe all possible combination of part or method is impossible, but it will be appreciated by one of ordinary skill in the art that each implementationExample can do further combinations and permutations.Therefore, embodiment described herein is intended to cover fall into the appended claimsProtection scope in all such changes, modifications and variations.In addition, with regard to term used in specification or claimsThe mode that covers of "comprising", the word is similar to term " includes ", just as " including " solved in the claims as transitional wordAs releasing.In addition, the use of any one of specification in claims term "or" being to indicate " non-exclusionismOr ".
Those skilled in the art will also be appreciated that the various illustrative components, blocks that the embodiment of the present invention is listed(illustrative logical block), unit and step can by electronic hardware, computer software, or both knotConjunction is realized.For the replaceability (interchangeability) for clearly showing that hardware and software, above-mentioned various explanationsProperty component (illustrative components), unit and step universally describe their function.Such functionIt can be that the design requirement for depending on specific application and whole system is realized by hardware or software.Those skilled in the artCan be can be used by various methods and realize the function, but this realization is understood not to for every kind of specific applicationRange beyond protection of the embodiment of the present invention.
Various illustrative logical blocks or unit described in the embodiment of the present invention can by general processor,Digital signal processor, specific integrated circuit (ASIC), field programmable gate array or other programmable logic devices, discrete gateOr transistor logic, discrete hardware components or above-mentioned any combination of design carry out implementation or operation described function.General placeManaging device can be microprocessor, and optionally, which may be any traditional processor, controller, microcontrollerDevice or state machine.Processor can also be realized by the combination of computing device, such as digital signal processor and microprocessor,Multi-microprocessor, one or more microprocessors combine a digital signal processor core or any other like configurationTo realize.
The step of method described in the embodiment of the present invention or algorithm can be directly embedded into hardware, processor execute it is softThe combination of part module or the two.Software module can store in RAM memory, flash memory, ROM memory, EPROM storageOther any form of storaging mediums in device, eeprom memory, register, hard disk, moveable magnetic disc, CD-ROM or this fieldIn.Illustratively, storaging medium can be connect with processor, so that processor can read information from storaging medium, andIt can be to storaging medium stored and written information.Optionally, storaging medium can also be integrated into the processor.Processor and storaging medium canTo be set in asic, ASIC be can be set in user terminal.Optionally, processor and storaging medium also can be set inIn different components in the terminal of family.
In one or more exemplary designs, above-mentioned function described in the embodiment of the present invention can be in hardware, softPart, firmware or any combination of this three are realized.If realized in software, these functions be can store and computer-readableOn medium, or it is transferred on a computer readable medium in the form of one or more instructions or code forms.Computer readable medium includes electricityBrain storaging medium and convenient for so that computer program is allowed to be transferred to from a place telecommunication media in other places.Storaging medium can be withIt is that any general or special computer can be with the useable medium of access.For example, such computer readable media may include butIt is not limited to RAM, ROM, EEPROM, CD-ROM or other optical disc storages, disk storage or other magnetic storage devices or otherWhat can be used for carry or store with instruct or data structure and it is other can be by general or special computer or general or specially treatedThe medium of the program code of device reading form.In addition, any connection can be properly termed computer readable medium, exampleSuch as, if software is to pass through a coaxial cable, fiber optic cables, double from a web-site, server or other remote resourcesTwisted wire, Digital Subscriber Line (DSL) are defined with being also contained in for the wireless way for transmitting such as example infrared, wireless and microwaveIn computer readable medium.The disk (disk) and disk (disc) includes compress disk, radium-shine disk, CD, DVD, floppy diskAnd Blu-ray Disc, disk is usually with magnetic replicate data, and disk usually carries out optically replicated data with laser.Combinations of the aboveAlso it may be embodied in computer readable medium.
Above-described specific embodiment has carried out further the purpose of the present invention, technical scheme and beneficial effectsIt is described in detail, it should be understood that being not intended to limit the present invention the foregoing is merely a specific embodiment of the inventionProtection scope, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should all includeWithin protection scope of the present invention.

Claims (10)

CN201910494158.1A2019-06-062019-06-06A kind of facial image gender identification method and devicePendingCN110363083A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910494158.1ACN110363083A (en)2019-06-062019-06-06A kind of facial image gender identification method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910494158.1ACN110363083A (en)2019-06-062019-06-06A kind of facial image gender identification method and device

Publications (1)

Publication NumberPublication Date
CN110363083Atrue CN110363083A (en)2019-10-22

Family

ID=68216835

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910494158.1APendingCN110363083A (en)2019-06-062019-06-06A kind of facial image gender identification method and device

Country Status (1)

CountryLink
CN (1)CN110363083A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111932523A (en)*2020-08-142020-11-13中国科学院心理研究所Gender classifier based on brain imaging big data deep learning
CN112306730A (en)*2020-11-122021-02-02南通大学 Prediction method of defect report severity based on pseudo-label generation of historical items

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103514454A (en)*2012-09-272014-01-15Tcl集团股份有限公司Support vector machine gender classification method based on online learning
CN103810490A (en)*2014-02-142014-05-21海信集团有限公司Method and device for confirming attribute of face image
CN103996018A (en)*2014-03-032014-08-20天津科技大学Human-face identification method based on 4DLBP
CN106127159A (en)*2016-06-282016-11-16电子科技大学A kind of gender identification method based on convolutional neural networks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103514454A (en)*2012-09-272014-01-15Tcl集团股份有限公司Support vector machine gender classification method based on online learning
CN103810490A (en)*2014-02-142014-05-21海信集团有限公司Method and device for confirming attribute of face image
CN103996018A (en)*2014-03-032014-08-20天津科技大学Human-face identification method based on 4DLBP
CN106127159A (en)*2016-06-282016-11-16电子科技大学A kind of gender identification method based on convolutional neural networks

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111932523A (en)*2020-08-142020-11-13中国科学院心理研究所Gender classifier based on brain imaging big data deep learning
CN111932523B (en)*2020-08-142023-02-10中国科学院心理研究所Gender classifier based on brain imaging big data deep learning
CN112306730A (en)*2020-11-122021-02-02南通大学 Prediction method of defect report severity based on pseudo-label generation of historical items
CN112306730B (en)*2020-11-122021-11-30南通大学Defect report severity prediction method based on historical item pseudo label generation

Similar Documents

PublicationPublication DateTitle
KR101967410B1 (en)Automatically mining person models of celebrities for visual search applications
Vittayakorn et al.Runway to realway: Visual analysis of fashion
CN105518668B (en)Content-based image retrieval
CN105144239B (en)Image processing apparatus, image processing method
CN109615014A (en) A data classification system and method based on KL divergence optimization
CN101706872A (en)Universal open type face identification system
WO2020164278A1 (en)Image processing method and device, electronic equipment and readable storage medium
WO2020190480A1 (en)Classifying an input data set within a data category using multiple data recognition tools
CN109934062A (en) Training method, face recognition method, device and equipment for glasses removal model
CN108681737A (en)A kind of complex illumination hypograph feature extracting method
US11354936B1 (en)Incremental clustering for face recognition systems
CN104008395A (en)Intelligent bad video detection method based on face retrieval
CN104395913A (en)Method, apparatus and computer readable recording medium for detecting a location of a face feature point using an ADABOOST learning algorithm
CN113222062A (en)Method, device and computer readable medium for tobacco leaf classification
CN106022223A (en)High-dimensional local-binary-pattern face identification algorithm and system
Khan et al.Pashto characters recognition using multi-class enabled support vector machine
CN110363083A (en)A kind of facial image gender identification method and device
Nahar et al.Twins and similar faces recognition using geometric and photometric features with transfer learning
CN114842399B (en)Video detection method, training method and device for video detection model
Fink et al.Grouping historical postcards using query-by-example word spotting
CN113627391A (en)Cross-mode electroencephalogram signal identification method considering individual difference
Kanagaraju et al.Emotion detection from facial expression using image processing
KR100723417B1 (en) Face recognition method, apparatus, method for extracting features from facial image for same and apparatus therefor
CN111652256A (en)Method and system for acquiring multidimensional data
CN117011568A (en)Image classification method, device, electronic equipment and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
CB03Change of inventor or designer information

Inventor after:Wang Shuigen

Inventor after:Xu Lihua

Inventor after:Zhang Guanghao

Inventor after:Qian Xing

Inventor before:Wang Shuigen

Inventor before:Xu Lihua

Inventor before:Zhang Guanghao

Inventor before:Huang Guangbin

Inventor before:Qian Xing

CB03Change of inventor or designer information
RJ01Rejection of invention patent application after publication

Application publication date:20191022

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp