CN108170849B - Image classification marking method for partition diffusion - Google Patents
Image classification marking method for partition diffusion Download PDFInfo
- Publication number
- CN108170849B CN108170849B CN201810048809.XA CN201810048809A CN108170849B CN 108170849 B CN108170849 B CN 108170849B CN 201810048809 A CN201810048809 A CN 201810048809A CN 108170849 B CN108170849 B CN 108170849B
- Authority
- CN
- China
- Prior art keywords
- label
- partition
- classification
- picture
- labels
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/58—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/583—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
- G06F16/5854—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using shape and object relationship
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/51—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/58—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/583—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
- G06F16/5838—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using colour
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/21—Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
- G06F18/214—Generating training patterns; Bootstrap methods, e.g. bagging or boosting
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/46—Descriptors for shape, contour or point-related descriptors, e.g. scale invariant feature transform [SIFT] or bags of words [BoW]; Salient regional features
- G06V10/462—Salient features, e.g. scale invariant feature transforms [SIFT]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/56—Extraction of image or video features relating to colour
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Library & Information Science (AREA)
- Databases & Information Systems (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Evolutionary Computation (AREA)
- Evolutionary Biology (AREA)
- Bioinformatics & Computational Biology (AREA)
- Multimedia (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- Software Systems (AREA)
- Image Analysis (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明公开了一种分区扩散的图片分类标记方法,其包括为预先保存的图片分别自动配置相应的分类标签,其中所配置的分类标签从预先设定的至少一个分类标签中选取得到。并且其还提供了一种改进的实施例即通过对图片进行切割组合的方式以加速其分类标记的进程。
The invention discloses a method for classifying and marking pictures by partition diffusion, which comprises automatically configuring corresponding classification labels for pre-saved pictures respectively, wherein the configured classification labels are selected from at least one preset classification label. And it also provides an improved embodiment that is to speed up the process of classifying and marking the pictures by cutting and combining them.
Description
Technical Field
The invention belongs to the field of image recognition, and particularly relates to a picture classification and marking method based on partition diffusion.
Background
With the development of society, the interaction between people is more and more, and people can chat, send information, send pictures and the like through mobile phones. Meanwhile, as the functions of the mobile phone are gradually enhanced, a user can obtain various photos and pictures through mobile phone photographing, various social applications and web browsing, so that a large number of pictures of different types and contents can be stored in the mobile phone of the user.
When a user browses pictures in a mobile phone, the user can only browse the pictures according to the shooting sequence or the picture acquisition date basically, and the requirement of the user for conveniently browsing specific pictures cannot be met. Meanwhile, when the pictures need to be classified and sorted, the user cannot conveniently finish the classification and sorting operation of the pictures on the mobile phone, and only after the pictures are transmitted to the computer in batches, the classification and sorting operation is carried out; this results in inefficient image classification and browsing. The recognition algorithms adopted by the existing image classification method are approximately the same but have the same problem that the image cannot be effectively and quickly recognized when the image is large, and the hardware consumption is high and the processing speed is low when the image is too large and the pixel is too large. Therefore, the application provides a new technical scheme for effectively dividing the picture and simultaneously identifying and classifying the labels in a multithreading manner so as to solve the problems in the prior art.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides a picture classification marking method for partition diffusion, which comprises the following steps:
and automatically configuring corresponding classification labels for the pre-stored pictures respectively, wherein the configured classification labels are selected from at least one preset classification label.
Further, the step of automatically configuring the corresponding classification label for the pre-stored picture specifically includes uniformly dividing the picture into AxB sub-regions, and then performing image recognition on each sub-region to obtain the classification label.
Further, the automatically configuring the corresponding classification label further includes:
combining and identifying images of adjacent subareas of the divided AxB subareas to obtain the classification label;
wherein the combined identification comprises selecting one of the partitions, xi,jWhere i e (1, A), then x from the partitioni,jStarting from, the partition x is expanded in four directionsi,jAnd simultaneously detecting the chroma and/or the gray scale of the extended adjacent subarea, and stopping continuously extending to the peripheral subareas until the chroma or the gray scale exceeds a threshold value.
Further, the threshold is the partition xi,jAverage value of chromaticity or gray level on the boundary line with the adjacent partition.
Drawings
The invention will be further understood from the following description in conjunction with the accompanying drawings. The components in the figures are not necessarily to scale, emphasis instead being placed upon illustrating the principles of the embodiments. In the drawings, like reference numerals designate corresponding parts throughout the different views.
FIG. 1 is a flow diagram of class tagging according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clearly apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments thereof; it should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. Other systems, methods, and/or features of the present embodiments will become apparent to those skilled in the art upon review of the following detailed description. It is intended that all such additional systems, methods, features and advantages be included within this description, be within the scope of the invention, and be protected by the accompanying claims. Additional features of the disclosed embodiments are described in, and will be apparent from, the detailed description that follows.
The first embodiment.
The embodiment provides a picture classification marking method for partition diffusion, which comprises the following steps:
and automatically configuring corresponding classification labels for the pre-stored pictures respectively, wherein the configured classification labels are selected from at least one preset classification label.
Further, the step of automatically configuring the corresponding classification label for the pre-stored picture specifically includes uniformly dividing the picture into AxB sub-regions, and then performing image recognition on each sub-region to obtain the classification label.
Further, the automatically configuring the corresponding classification label further includes:
combining and identifying images of adjacent subareas of the divided AxB subareas to obtain the classification label;
wherein the combined identification comprises selecting one of the partitions, xi,jWhere i e (1, A), then x from the partitioni,jStarting from, the partition x is expanded in four directionsi,jAnd simultaneously detecting the chroma and/or the gray scale of the extended adjacent subarea, and stopping continuously extending to the peripheral subareas until the chroma or the gray scale exceeds a threshold value.
Further, the threshold is the scoreZone xi,jAverage value of chromaticity or gray level on the boundary line with the adjacent partition.
The specific algorithm adopted for the picture identification or the combined identification is as follows:
foreach image Xndo
sampling the theme distribution of labels theta-Dirichlet (alpha); theta is a K-dimensional Dirichlet distribution parameterized by alpha
for each label Yni of image Xndo
Assigning z to a topiciSampling by Multinominal (θ)
The number of the particles; xi in the training processni=0,η>0; xi in the test procedureni>0,η>0。
For labels theta 'to Dirichlet (. | alpha'n) Sampling the topic distribution; theta 'is alpha'nParameterized L-dimensional Dirichlet distribution
for each instance xni ofXndo
Assigning v to a labeliSampling by Multinominal (θ')
for each tag tni in Tn of image Xndo
Assign g to the labeliSampling by Multinominal (θ')
In the above algorithm, y ═ y1,y2,…,yLY denotes a set of L labels, T ═ T1,t2,…,tTRepresents a set of T user identities. With D { ([ X) { (]1,T1],Y1),…,([XN,TN],YN) Denotes a training set of N samples, where Xn={xn1,xn2,…,xnMnIs a group having MnA packet of instances, Tn={tn1,tn2,…,tnGnIs a radical having GnSet of individual user identities, and Yn={yn1,yn2,…,ynLnIs L from the Y setnA set of individual tags. The learning machine, which generates an image (or image region) based instance X and user id T (if any) for labeling, performs clustering in visual feature space to establish a prototype set C ═ C1,c2,…,cC}. Wherein xiIs a vector of size C, where xi,cIs that prototype c occurs at xiThe number of times (1). It should be noted that the above recognition algorithm is only a successful example, and in the practical application of the method, other recognition methods can be replaced by those skilled in the art, and the main inventive point or innovative point of the present invention or the present embodiment lies in the recognition method of partition diffusion, i.e. the architecture of multi-thread synchronous recognition.
Example two.
The embodiment provides a picture classification marking method for partition diffusion, which comprises the following steps:
and automatically configuring corresponding classification labels for the pre-stored pictures respectively, wherein the configured classification labels are selected from at least one preset classification label.
Further, the step of automatically configuring the corresponding classification label for the pre-stored picture specifically includes dividing the picture into AxB partitions uniformly, and then performing image recognition on each partition to obtain the classification label, where the number of the partitions is proportionally distributed according to the aspect ratio of the picture, and the specific number is set according to the hardware configuration of the hardware device implementing the method.
Further, the automatically configuring the corresponding classification label further includes:
combining and identifying images of adjacent subareas of the divided AxB subareas to obtain the classification label;
wherein the combined identification comprises selecting one of the partitions, xi,jWhere i e (1, A), then x from the partitioni,jStarting from, expanding the partition xi,jAnd simultaneously detecting the chromaticity and/or the gray scale of the adjacent partitions, and stopping continuously expanding towards the peripheral partitions until the chromaticity or the gray scale exceeds a threshold value. The initial partition can be selected by selecting the most middle partition to set or simultaneously select four or more partitions uniformly distributed on the picture, so that the partition identification process is increased by synchronously carrying out combined distribution, and the processing speed of the method is improved.
Further, the threshold is the partition xi,jThe average value of the chromaticity or the gray scale on the boundary line with the adjacent partition, or the threshold point may be selected in the manner of a "key point" in a general picture processing method.
The specific algorithm adopted for the picture identification or the combined identification is as follows:
foreach image Xndo
sampling the theme distribution of labels theta-Dirichlet (alpha); theta is a K-dimensional Dirichlet distribution parameterized by alpha
for each label Yni of image Xndo
Assigning z to a topiciSampling by Multinominal (θ)
The number of the particles; xi in the training processni=0,η>0; xi in the test procedureni>0,η>0。
For labels theta 'to Dirichlet (. | alpha'n) Sampling the topic distribution; theta 'is alpha'nParameterized L-dimensional Dirichlet distribution
for each instance xni ofXndo
Assigning v to a labeliSampling by Multinominal (θ')
for each tag tni in Tn of image Xndo
Assign g to the labeliSampling by Multinominal (θ')
Example three.
The picture classification marking method based on the partitioned diffusion includes the steps of firstly, respectively traversing each configured classification label, performing image recognition on a target picture under the currently traversed classification label, obtaining marker features under the currently traversed classification label according to an image recognition result, and when a certain marker feature is contained in a plurality of target pictures, weighting or screening the marker features contained in each of the plurality of target pictures to obtain the marker features under the currently traversed classification label, wherein the classification label and the marker features are not in image association, and the marker features include key point positions of markers and gray values at the key point positions;
carrying out marker feature identification on the acquired picture; respectively calculating the distance values of the key point position and the gray value at the key point position in the marker feature contained in the obtained picture and the key point position and the gray value at the key point position of the marker feature under each set classification label, determining the similarity between the marker feature contained in the picture and the marker feature under each set classification label according to the distance values, and configuring the classification label, the similarity of which with the marker feature contained in the obtained picture meets the set threshold condition, to the obtained picture so as to finish the classification of the obtained picture; and storing all the acquired pictures under the same classification label in the same folder, and marking the classification label in the thumbnail of the acquired picture.
Example four.
The embodiment provides a method for classifying and marking pictures, which comprises the following steps:
and automatically configuring corresponding classification labels for the pre-stored pictures respectively, wherein the configured classification labels are selected from at least one preset classification label.
Further, the step of automatically configuring the corresponding classification label for the pre-stored picture specifically includes dividing the picture into AxB partitions uniformly, and then performing image recognition on each partition to obtain the classification label, where the number of the partitions is proportionally distributed according to the aspect ratio of the picture, and the specific number is set according to the hardware configuration of the hardware device implementing the method.
Further, the automatically configuring the corresponding classification label further includes:
combining and identifying images of adjacent subareas of the divided AxB subareas to obtain the classification label;
wherein the combined identification comprises selecting one of the partitions, xi,jWhere i e (1, A), then x from the partitioni,jStarting from, expanding the partition xi,jAnd detecting the chromaticity and/or the gray scale of the adjacent expanded subareas at the same time, and stopping continuously expanding towards the peripheral subareas until the chromaticity or the gray scale exceeds a threshold value, wherein the detection can detect the integral chromaticity and/or the gray scale of all the expanded subareas.
The expanding method may use a method of rotating the expanding counterclockwise or expanding the partition in eight directions at the same time. The initial partition can be selected by selecting the most middle partition to set or simultaneously select four or more partitions uniformly distributed on the picture, so that the partition identification process is increased by synchronously carrying out combined distribution, and the processing speed of the method is improved.
Further, the threshold is the partition xi,jThe average value of the chromaticity or the gray scale on the boundary line with the adjacent partition, or the threshold point may be selected in the manner of a "key point" in a general picture processing method.
Although the invention has been described above with reference to various embodiments, it should be understood that many changes and modifications may be made without departing from the scope of the invention. It is therefore intended that the foregoing detailed description be regarded as illustrative rather than limiting, and that it be understood that it is the following claims, including all equivalents, that are intended to define the spirit and scope of this invention. The above examples are to be construed as merely illustrative and not limitative of the remainder of the disclosure. After reading the description of the invention, the skilled person can make various changes or modifications to the invention, and these equivalent changes and modifications also fall into the scope of the invention defined by the claims.
Claims (1)
1. A picture classification marking method for partition diffusion comprises the following steps:
automatically configuring corresponding classification labels for the pre-stored pictures respectively, wherein the configured classification labels are selected from at least one preset classification label; the step of automatically configuring the corresponding classification label for the pre-stored picture specifically comprises the steps of uniformly dividing the picture into AxB subareas, and then carrying out image recognition on each subarea to obtain the classification label;
and, said automatically configuring the respective classification label further comprises:
combining and identifying images of adjacent subareas of the divided AxB subareas to obtain the classification label;
wherein the combined identification comprises selecting one of the partitions, xi,jWhere i e (1, A), j e (1, A), then x from the partitioni,jStarting from, extending the partition x in multiple directionsi,jSimultaneously detecting the chromaticity and the gray scale of the adjacent expanded partitions, and stopping continuously expanding the adjacent partitions until the chromaticity or the gray scale exceeds a threshold value;
wherein the threshold is the partition xi,jAn average value of chromaticity or gray scale on a boundary line with an adjacent partition;
it is characterized in that the preparation method is characterized in that,
the picture identification or the combined identification specifically comprises the following steps:
sampling the picture according to theme distribution of labels theta-Dirichlet (alpha), wherein theta is K-dimensional Dirichlet distribution parameterized by alpha;
then assign z by topiciMultinominal (θ) sampling:
xi in the training processni=0,η>0; xi in the test procedureni>0,η>0;
For labels theta 'to Dirichlet (. | alpha'n) Sampling the topic distribution; theta 'is alpha'nA parameterized L-dimensional Dirichlet distribution;
assigning v to a labeliMultinomial (θ') samples:
assign g to the labeliMultinomial (θ') samples:
wherein Y is { Y ═ Y1,y2,…,yLY denotes a set of L labels, T ═ T1,t2,…,tTRepresents a set of T user identities; wherein D { ([ X)1,T1],Y1),…,([XN,TN],YN) Means a sample of NA training set whereinIs a one having MnThe packet of the one instance is,is a one having GnA set of individual user identities, andis L from the set of YnA set of individual tags;
then, a prototype set C ═ C is established1,c2,…,cC}。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810048809.XA CN108170849B (en) | 2018-01-18 | 2018-01-18 | Image classification marking method for partition diffusion |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810048809.XA CN108170849B (en) | 2018-01-18 | 2018-01-18 | Image classification marking method for partition diffusion |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108170849A CN108170849A (en) | 2018-06-15 |
CN108170849B true CN108170849B (en) | 2021-02-19 |
Family
ID=62514796
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810048809.XA Active CN108170849B (en) | 2018-01-18 | 2018-01-18 | Image classification marking method for partition diffusion |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108170849B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109376259B (en) * | 2018-12-10 | 2022-03-01 | 广东潮庭集团有限公司 | Label classification method based on big data analysis |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1340178A (en) * | 1999-08-17 | 2002-03-13 | 皇家菲利浦电子有限公司 | System and method for region-based image retrieval with color-based segmentation |
CN103390170A (en) * | 2013-07-22 | 2013-11-13 | 中国科学院遥感与数字地球研究所 | Surface feature type texture classification method based on multispectral remote sensing image texture elements |
CN105046664A (en) * | 2015-07-13 | 2015-11-11 | 广东工业大学 | Image denoising method based on self-adaptive EPLL algorithm |
CN105630915A (en) * | 2015-12-21 | 2016-06-01 | 山东大学 | Method and device for classifying and storing pictures in mobile terminals |
CN107256216A (en) * | 2017-04-17 | 2017-10-17 | 捷开通讯(深圳)有限公司 | Mobile terminal, the method and storage device for managing picture |
-
2018
- 2018-01-18 CN CN201810048809.XA patent/CN108170849B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1340178A (en) * | 1999-08-17 | 2002-03-13 | 皇家菲利浦电子有限公司 | System and method for region-based image retrieval with color-based segmentation |
CN103390170A (en) * | 2013-07-22 | 2013-11-13 | 中国科学院遥感与数字地球研究所 | Surface feature type texture classification method based on multispectral remote sensing image texture elements |
CN105046664A (en) * | 2015-07-13 | 2015-11-11 | 广东工业大学 | Image denoising method based on self-adaptive EPLL algorithm |
CN105630915A (en) * | 2015-12-21 | 2016-06-01 | 山东大学 | Method and device for classifying and storing pictures in mobile terminals |
CN107256216A (en) * | 2017-04-17 | 2017-10-17 | 捷开通讯(深圳)有限公司 | Mobile terminal, the method and storage device for managing picture |
Also Published As
Publication number | Publication date |
---|---|
CN108170849A (en) | 2018-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Zhou et al. | Principal visual word discovery for automatic license plate detection | |
Shi et al. | Transferring a semantic representation for person re-identification and search | |
CN110163076B (en) | Image data processing method and related device | |
Liu et al. | A novel cell detection method using deep convolutional neural network and maximum-weight independent set | |
CN110070066A (en) | A kind of video pedestrian based on posture key frame recognition methods and system again | |
JP6532190B2 (en) | Image search apparatus, image search method | |
CN106845513B (en) | Human Hand Detector and Method Based on Conditional Random Forest | |
US9082184B2 (en) | Note recognition and management using multi-color channel non-marker detection | |
CN109446364A (en) | Capture search method, image processing method, device, equipment and storage medium | |
CN113780116B (en) | Invoice classification method, device, computer equipment and storage medium | |
Lim et al. | Scene recognition with camera phones for tourist information access | |
CN107977948B (en) | A Saliency Map Fusion Method for Community Images | |
Siva et al. | Weakly Supervised Action Detection. | |
WO2015102711A2 (en) | A method and system of enforcing privacy policies for mobile sensory devices | |
CN109583492A (en) | A kind of method and terminal identifying antagonism image | |
CN108170849B (en) | Image classification marking method for partition diffusion | |
CN103902965B (en) | Spatial domain symbiosis image representing method and its application in image classification, identification | |
Khayeat et al. | Improved DSIFT descriptor based copy-rotate-move forgery detection | |
Tang et al. | Label-specific training set construction from web resource for image annotation | |
Holder et al. | Using facial expression recognition for crowd monitoring | |
Masita et al. | Refining the efficiency of R-CNN in Pedestrian Detection | |
Werapan et al. | DeepThaiMush: A Deep Learning Approach to Classify Poisonous and Edible Mushrooms using YOLOv8 | |
JP2015158739A (en) | Image sorting device, image classification method, and image classification program | |
Gill et al. | Support vector based indoor scene classification technique using different features | |
CN108108494A (en) | A kind of picture classification intelligent terminal |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |