[go: up one dir, main page]

CN108108494A - A kind of picture classification intelligent terminal - Google Patents

A kind of picture classification intelligent terminal Download PDF

Info

Publication number
CN108108494A
CN108108494A CN201810049884.8A CN201810049884A CN108108494A CN 108108494 A CN108108494 A CN 108108494A CN 201810049884 A CN201810049884 A CN 201810049884A CN 108108494 A CN108108494 A CN 108108494A
Authority
CN
China
Prior art keywords
partitions
intelligent terminal
classification
pictures
partition
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
CN201810049884.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.)
Xiamen University of Technology
Original Assignee
Xiamen University of Technology
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 Xiamen University of Technology filed Critical Xiamen University of Technology
Priority to CN201810049884.8A priority Critical patent/CN108108494A/en
Publication of CN108108494A publication Critical patent/CN108108494A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/5866Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, manually generated location and time information
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Library & Information Science (AREA)
  • Software Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Image Analysis (AREA)

Abstract

本发明公开了一种分区扩散的图片分类标记方法,其包括为预先保存的图片分别自动配置相应的分类标签,其中所配置的分类标签从预先设定的至少一个分类标签中选取得到。并且其还提供了一种改进的实施例即通过对图片进行切割组合的方式以加速器分类标记的进程。

The invention discloses a method for classifying and marking pictures with partition diffusion, which includes automatically configuring corresponding classification labels for pre-saved pictures, wherein the configured classification labels are selected from at least one preset classification label. And it also provides an improved embodiment, that is, the process of classifying and marking with an accelerator by cutting and combining pictures.

Description

一种图片分类智能终端An intelligent terminal for image classification

技术领域technical field

本发明属于图像识别领域,具体地说,本发明涉及一种图片分类智能终端。The invention belongs to the field of image recognition, in particular, the invention relates to an intelligent terminal for picture classification.

背景技术Background technique

随着社会的发展,人们之间的互动越来越多,人们可以通过手机聊天、发送信息以及发送图片等。同时由于手机功能的日渐强大,用户通过手机拍照、各类社交应用以及网页浏览会获取各种各样的照片以及图片,这样导致用户的手机中会存储大量不同类型以及内容的图片。当用户对手机内的图片进行浏览时,基本只能按照拍摄顺序或图片获取日期进行浏览,无法满足用户方便的浏览特定图片的需求。同时当需要对图片进行分类整理时,用户无法方便的在手机上完成图片的分类整理操作,只能将图片批量传输至电脑上后,再进行分类整理操作;这样导致对图片分类和浏览的效率均较为低下。而现在现有的图片分类方法采取的识别算法大致相同但他们都有个同样的问题,就是在图片较大时不能有效的对图片进行快速的识别,而且当像素太大图片太大时,对于硬件的消耗极大处理速度很低下。因此本申请提出了将图片进行有效的分割,而进行多线程同时识别进行分类标签的新的技术方案,以解决现有技术所存在的问题,即提供了一种可以有效解决以上技术问题的智能终端。With the development of society, there are more and more interactions between people. People can chat, send messages, and send pictures through mobile phones. At the same time, due to the increasingly powerful functions of mobile phones, users will obtain various photos and pictures through mobile phone photography, various social applications and web browsing, which will cause a large number of pictures of different types and contents to be stored in the user's mobile phone. When the user browses the pictures in the mobile phone, he can basically only browse according to the shooting order or the date when the pictures were obtained, which cannot meet the needs of the user to browse specific pictures conveniently. At the same time, when the pictures need to be sorted and sorted, the user cannot conveniently complete the sorting and sorting operation of the pictures on the mobile phone, and can only transfer the pictures to the computer in batches, and then perform the sorting and sorting operation; this leads to the efficiency of picture classification and browsing are relatively low. Now the existing image classification methods adopt roughly the same recognition algorithm, but they all have the same problem, that is, they cannot effectively identify the image quickly when the image is large, and when the pixel size is too large, the image is too large. The consumption of hardware is huge and the processing speed is very low. Therefore, this application proposes a new technical solution for effectively segmenting pictures and performing multi-threaded simultaneous identification for classification and labeling to solve the existing problems in the prior art, that is, to provide an intelligent solution that can effectively solve the above technical problems. terminal.

发明内容Contents of the invention

本发明旨在至少解决现有技术中存在的技术问题之一。为此,本发明提供一种图片分类智能终端,所述智能终端为移动终端,其包括:设置单元,用于根据用输入的指令,设定用于所述图片的至少一个分类标签;存储器,用于预先保存所述智能终端获取得到的图片以及所述分类标签信息;其特征在于,所述智能终端还具备分类标签确定单元,用于遍历所述存储器中的所述图片,对每一图片根据所述分设置单元配置的各分类标签进行图像识别,根据图像识别结果为所述图片自动配置相应的分类标签。The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention provides an intelligent terminal for picture classification, the intelligent terminal is a mobile terminal, which includes: a setting unit, configured to set at least one classification label for the picture according to an instruction input by the user; a memory, It is used to pre-save the pictures acquired by the smart terminal and the classification label information; it is characterized in that the smart terminal is also equipped with a classification label determination unit for traversing the pictures in the memory, and for each picture Image recognition is performed according to each classification label configured by the sub-setting unit, and corresponding classification labels are automatically configured for the picture according to the image recognition result.

进一步的,所述对图片自动配置相应的分类标签具体包括,将所述图片均匀的划分为AxB个分区,然后对每个分区进行图像识别以得到所述分类标签。Further, the automatic configuration of corresponding classification labels for pictures specifically includes, evenly dividing the picture into AxB partitions, and then performing image recognition on each partition to obtain the classification labels.

进一步的,所述自动配置相应的分类标签还包括:Further, the automatic configuration of corresponding classification labels also includes:

对所划分的AxB个分区进行相邻的分区的图像进行组合识别得到所述分类标签;Carrying out combined recognition on the divided AxB partitions of images of adjacent partitions to obtain the classification label;

其中所述组合识别包括,选定其中一个分区即xi,j,其中i∈(1,A),i∈(1,A),然后从所述分区xi,j出发,向多个方向扩展所述分区xi,j同时检测扩展到的相邻的分区的色度和/或灰度,直至所述色度或灰度超过一阈值则停止继续向周边的分区扩展。Wherein the combined recognition includes selecting one of the partitions, i.e. x i,j , where i∈(1,A), i∈(1,A), and then starting from the partition x i,j , to multiple directions The partition xi ,j is extended while detecting the chromaticity and/or grayscale of the adjacent partitions to which it is extended, until the chromaticity or grayscale exceeds a threshold, then stop extending to the surrounding partitions.

进一步的,所述阈值为所述分区xi,j与相邻分区的交界线上的色度或灰度的平均值。Further, the threshold is an average value of chromaticity or grayscale on the boundary line between the partition xi ,j and adjacent partitions.

附图说明Description of drawings

从以下结合附图的描述可以进一步理解本发明。图中的部件不一定按比例绘制,而是将重点放在示出实施例的原理上。在图中,在不同的视图中,相同的附图标记指定对应的部分。The present invention can be further understood from the following description taken 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 figures, like reference numerals designate corresponding parts in the different views.

图1为本发明的一个实施例的分类标记流程图。Fig. 1 is a flow chart of classification marking in one embodiment of the present invention.

具体实施方式Detailed ways

为了使得本发明的目的、技术方案及优点更加清楚明白,以下结合附图及其实施例,对本发明进行进一步详细说明;应当理解,此处所描述的具体实施例仅用于解释本发明,并不用于限定本发明。对于本领域技术人员而言,在查阅以下详细描述之后,本实施例的其它系统、方法和/或特征将变得显而易见。旨在所有此类附加的系统、方法、特征和优点都包括在本说明书内、包括在本发明的范围内,并且受所附权利要求书的保护。在以下详细描述描述了所公开的实施例的另外的特征,并且这些特征根据以下将详细描述将是显而易见的。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail below in conjunction with the accompanying drawings and their embodiments; it should be understood that the specific embodiments described here are only used to explain the present invention and are not intended to to limit the present invention. Other systems, methods and/or features of this embodiment will become apparent to those skilled in the art after reviewing 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 following claims. Additional features of the disclosed embodiments are described in, and will be apparent from, the following detailed description.

实施例一。Embodiment one.

本实施例提供一种图片分类智能终端,所述智能终端为移动终端,例如手机、平板电脑、相机、摄像机、笔记本电脑等可以进行图片或者说照片获得的终端,其包括:设置单元,用于根据用输入的指令,设定用于所述图片的至少一个分类标签;存储器,用于预先保存所述智能终端获取得到的图片以及所述分类标签信息;其特征在于,所述智能终端还具备分类标签确定单元,用于遍历所述存储器中的所述图片,对每一图片根据所述分设置单元配置的各分类标签进行图像识别,根据图像识别结果为所述图片自动配置相应的分类标签。This embodiment provides an intelligent terminal for picture classification. The intelligent terminal is a mobile terminal, such as a mobile phone, a tablet computer, a camera, a video camera, a notebook computer, etc., which can obtain pictures or photos, and it includes: a setting unit for According to the input instruction, set at least one classification label for the picture; the memory is used to pre-save the picture obtained by the smart terminal and the classification label information; it is characterized in that the smart terminal also has A classification label determination unit, configured to traverse the pictures in the memory, perform image recognition on each picture according to the classification labels configured by the sub-setting unit, and automatically configure corresponding classification labels for the pictures according to the image recognition results .

进一步的,所述对图片自动配置相应的分类标签具体包括,将所述图片均匀的划分为AxB个分区,然后对每个分区进行图像识别以得到所述分类标签。Further, the automatic configuration of corresponding classification labels for pictures specifically includes, evenly dividing the picture into AxB partitions, and then performing image recognition on each partition to obtain the classification labels.

进一步的,所述自动配置相应的分类标签还包括:Further, the automatic configuration of corresponding classification labels also includes:

对所划分的AxB个分区进行相邻的分区的图像进行组合识别得到所述分类标签;Carrying out combined recognition on the divided AxB partitions of images of adjacent partitions to obtain the classification label;

其中所述组合识别包括,选定其中一个分区即xi,j,其中i∈(1,A),i∈(1,A),然后从所述分区xi,j出发,向多个方向扩展所述分区xi,j同时检测扩展到的相邻的分区的色度和/或灰度,直至所述色度或灰度超过一阈值则停止继续向周边的分区扩展。Wherein the combined recognition includes selecting one of the partitions, i.e. x i,j , where i∈(1,A), i∈(1,A), and then starting from the partition x i,j , to multiple directions The partition xi ,j is extended while detecting the chromaticity and/or grayscale of the adjacent partitions to which it is extended, until the chromaticity or grayscale exceeds a threshold, then stop extending to the surrounding partitions.

所述阈值为所述分区xi,j与相邻分区的交界线上的色度或灰度的平均值。The threshold is an average value of chromaticity or grayscale on the boundary line between the partition xi ,j and adjacent partitions.

其中的图片识别或者组合识别的具体算法采用的算法为:The specific algorithm used for image recognition or combination recognition is as follows:

foreach imageXndoforeach imageX n do

对labelsθ~Dirichlet(α)的主题分布进行采样;θ是由α参数化的K维Dirichlet分布Sampling the topic distribution of labels θ ~ Dirichlet(α); θ is a K-dimensional Dirichlet distribution parameterized by α

foreach labelYniofimageXndoforeach labelY ni ofimageX n do

对主题分配zi~Multinominal(θ)进行采样Sample the topic assignment z i ~Multinominal(θ)

从来自主题zi的中取一个标签from from theme zi Take a label from

为Xn计算标签先验:其中是Yn中yiCompute label priors for X n : in is yi in Y n

数量;训练过程中ξni=0,η>0;测试过程中ξni>0,η>0。Quantity; ξ ni =0, η>0 during training; ξ ni >0, η>0 during testing.

对labelsθ′~Dirichlet(.|α′n)的主题分布进行采样;θ′是由α′n参数化的L维Dirichlet分布Sampling the topic distribution of labels θ′~Dirichlet(.|α′ n ); θ′ is an L-dimensional Dirichlet distribution parameterized by α′ n

for each instancexni of Xndofor each instance x ni of X n do

对标签分配vi~Multinominal(θ′)进行采样Sample the label assignment v i ∼ Multinominal(θ′)

中取一个实例;标签vi的C维多项式from Take an instance of C-dimensional polynomial of label v i

for each tag tni in Tn of image Xndofor each tag t ni in T n of image X n do

对标签分配gi~Multinominal(θ')进行采样Sampling the label assignment g i ~Multinominal(θ')

从标签gi的中取一个标记from tag gi Take a mark from

在以上算法中,y={y1,y2,...,yL},Y表示一个有L个标签的集合,用T={t1,t2,...,tT}代表有T个用户标识的集合。用D={([X1,T1],Y1),...,([XN,TN],YN)}表示一个有N个样例的训练集合,其中是一个有Mn个实例的包, 是一个有Gn个用户标识的集合,而是来自Y集合中的Ln个标签的集合。以上即可生成一个基于图像(或是图像区域)的实例X和用户标识T(如果有的话)进行标注的学习机在视觉特征空间中进行聚类建立一个原型集合C={c1,c2,...,cC}。其中xi是一个大小为C的向量,其中xi,c是原型c出现在xi中的次数。当然应当说明的是,以上的识别算法仅为一种成功的实例,而在方法的实际应用中,可以由本领域技术人员再替换其他的识别方法,而本发明或者本实施例的主要发明点或者创新点在于分区扩散的识别方法,即多线程的同步识别的架构。In the above algorithm, y={y 1 ,y 2 ,...,y L }, Y represents a set with L labels, represented by T={t 1 ,t 2 ,...,t T } There is a collection of T user ids. Use D={([X 1 ,T 1 ],Y 1 ),...,([X N ,T N ],Y N )} to represent a training set with N samples, where is a bag with M n instances, is a set of G n user identities, and is the set of L n labels from the Y set. The above can generate a learning machine based on the instance X of the image (or image area) and the user identifier T (if any) to perform clustering in the visual feature space to establish a prototype set C={c 1 ,c 2 ,...,c C }. where xi is a vector of size C, where xi ,c is the number of times prototype c appears in xi . Of course, it should be noted that the above identification algorithm is only a successful example, and in the actual application of the method, other identification methods can be replaced by those skilled in the art, and the main invention points of the present invention or this embodiment or The innovation lies in the identification method of partition diffusion, that is, the architecture of multi-threaded synchronous identification.

实施例二。Embodiment two.

本实施例提供一种图片分类智能终端,所述智能终端被构造为可以获得或者预先保存图片,其还可以用于:This embodiment provides an intelligent terminal for picture classification, the intelligent terminal is configured to obtain or store pictures in advance, and it can also be used for:

为预先保存的图片分别自动配置相应的分类标签,其中所配置的分类标签从预先设定的至少一个分类标签中选取得到。Corresponding classification labels are automatically configured for the pre-saved pictures, wherein the configured classification labels are selected from at least one preset classification label.

进一步的,所述对预先保存的图片自动配置相应的分类标签具体包括,将所述图片均匀的划分为AxB个分区,然后对每个分区进行图像识别以得到所述分类标签,所述分区数量根据图片的纵横比进行比例的分配,其具体数量根据实施本方法的硬件设备的硬件配置进行设置。Further, the automatic configuration of corresponding classification labels for the pre-saved pictures specifically includes, evenly dividing the picture into AxB partitions, and then performing image recognition on each partition to obtain the classification labels, the number of partitions Proportions are distributed according to the aspect ratio of the pictures, and the specific number is set according to the hardware configuration of the hardware device implementing the method.

进一步的,所述自动配置相应的分类标签还包括:Further, the automatic configuration of corresponding classification labels also includes:

对所划分的AxB个分区进行相邻的分区的图像进行组合识别得到所述分类标签;Carrying out combined recognition on the divided AxB partitions of images of adjacent partitions to obtain the classification label;

其中所述组合识别包括,选定其中一个分区即xi,j,其中i∈(1,A),i∈(1,A),然后从所述分区xi,j出发,扩展所述分区xi,j同时检测扩展到的相邻的分区的色度和/或灰度,直至所述色度或灰度超过一阈值则停止继续向周边的分区扩展,扩展的方法可以使用逆时针旋转扩展的方法或者同时向八个方向扩展所述分区。初始分区的选定可以通过选择最中间的分区来设定或者同时从均分布在图片上的四个或者多个分区,这样可以同步进行组合分配使得分区识别的进程更加多,提高本方法的处理速度。Wherein the combination identification includes selecting one of the partitions i.e. x i,j , where i∈(1,A), i∈(1,A), and then starting from the partition x i,j , expanding the partition x i, j simultaneously detects the chromaticity and/or grayscale of the adjacent partitions that are extended to, and stops extending to the surrounding partitions until the chromaticity or grayscale exceeds a threshold value. The method of extension can use counterclockwise rotation The method of expansion or expand the partition in eight directions at the same time. The selection of the initial partition can be set by selecting the middle partition or at the same time from four or more partitions that are evenly distributed on the picture, so that the combined allocation can be performed synchronously to make the partition recognition process more and improve the processing of this method. speed.

进一步的,所述阈值为所述分区xi,j与相邻分区的交界线上的色度或灰度的平均值,或者可以按照一般的图片处理方法中的“关键点”的方式来选择阈值点。Further, the threshold is the average value of chromaticity or grayscale on the boundary line between the partition x i,j and adjacent partitions, or it can be selected in the way of "key point" in the general image processing method threshold point.

其中的图片识别或者组合识别的具体算法采用的算法为:The specific algorithm used for image recognition or combination recognition is as follows:

foreach image Xndoforeach image X n do

对labelsθ~Dirichlet(α)的主题分布进行采样;θ是由α参数化的K维Dirichlet分布Sampling the topic distribution of labels θ ~ Dirichlet(α); θ is a K-dimensional Dirichlet distribution parameterized by α

for each label Yni of image Xndofor each label Y ni of image X n do

对主题分配zi~Multinominal(θ)进行采样Sample the topic assignment z i ~Multinominal(θ)

从来自主题zi中取一个标签From the topic z i Take a label from

为Xn计算标签先验:其中是Yn中yi Compute label priors for X n : in is y i in Y n

数量;训练过程中ξni=0,η>0;测试过程中ξni>0,η>0。Quantity; ξ ni =0, η>0 during training; ξ ni >0, η>0 during testing.

对labelsθ'~Dirichlet(.|α′n)的主题分布进行采样;θ′是由α′n参数化的L维Dirichlet分布Sampling the topic distribution of labels θ'~Dirichlet(.|α' n ); θ' is an L-dimensional Dirichlet distribution parameterized by α' n

for each instance xni of Xndofor each instance x ni of X n do

对标签分配vi~Multinominal(θ′)进行采样Sample the label assignment v i ∼ Multinominal(θ′)

中取一个实例;标签vi的C维多项式from Take an instance of C-dimensional polynomial of label v i

for each tag tni in Tn of image Xndofor each tag t ni in T n of image X n do

对标签分配gi~Multinominal(θ′)进行采样Sample the label assignment gi ~ Multinominal(θ′)

从标签gi的中取一个标记from tag gi Take a mark from

实施例三。Embodiment three.

本实施例提供一种图片分类智能终端,所述智能终端被构造为可以获得或者存储图片,然后对图片进行分类标签,其分类标签包括首先分别遍历配置的各分类标签,对当前遍历到的分类标签下的目标图片进行图像识别,根据图像识别结果得到当前遍历到的分类标签下的标识物特征,当某个标识物特征被包含在多张目标图片中时,对所述多张目标图片中的各张图片所包含的标识物的特征进行加权或筛选,以得到当前遍历到的分类标签下的标识物的特征,其中,所述分类标签和所述标识物特征无图像关联,所述标识物特征包括标识物的关键点位置以及所述关键点位置处的灰度值;This embodiment provides an intelligent terminal for classifying pictures. The intelligent terminal is configured to obtain or store pictures, and then classify and label the pictures. Image recognition is performed on the target pictures under the label, and the identifier features under the classification labels currently traversed are obtained according to the image recognition results. When a certain marker feature is included in multiple target pictures, the The features of the markers contained in each of the pictures are weighted or screened to obtain the features of the markers under the currently traversed classification label, wherein the classification label and the marker feature have no image association, and the marker The feature of the object includes the position of the key point of the marker and the gray value at the position of the key point;

对所获取的图片进行标识物特征识别;分别计算所获取的图片包含的标识物特征中的关键点位置以及关键点位置处的灰度值与设定的各个分类标签下的标识物特征的关键点位置以及关键点位置处的灰度值的距离值,依据所述距离值确定所述图片包含的标识物特征和设定的各个分类标签下的标识物特征的相似度,将与所获取的图片包含的标识物特征的相似度满足设定阈值条件的分类标签,配置给所获取的图片,以完成对所获取的图片的分类;将相同分类标签下的所有获取到的图片保存在同一个文件夹中,同时在获取的图片的缩略图中标记分类标签。Perform marker feature recognition on the acquired picture; respectively calculate the key point position in the marker feature contained in the acquired picture and the gray value at the key point position and the key of the marker feature under each set classification label The distance value of the point position and the gray value at the key point position, according to the distance value to determine the similarity between the marker features contained in the picture and the marker features under each set classification label, will be compared with the acquired The similarity of the marker features contained in the picture meets the classification label of the set threshold condition, which is allocated to the acquired picture to complete the classification of the acquired picture; all the acquired pictures under the same classification label are saved in the same folder, and mark the classification labels in the thumbnails of the acquired pictures at the same time.

实施例四。Embodiment four.

本实施例提供一种图片分类标签终端,其可以用于获取和保存图片,其包括:This embodiment provides a picture classification label terminal, which can be used to acquire and store pictures, which includes:

为预先保存的图片分别自动配置相应的分类标签,其中所配置的分类标签从预先设定的至少一个分类标签中选取得到。Corresponding classification labels are automatically configured for the pre-saved pictures, wherein the configured classification labels are selected from at least one preset classification label.

进一步的,所述对预先保存的图片自动配置相应的分类标签具体包括,将所述图片均匀的划分为AxB个分区,然后对每个分区进行图像识别以得到所述分类标签,所述分区数量根据图片的纵横比进行比例的分配,其具体数量根据实施本方法的硬件设备的硬件配置进行设置。Further, the automatic configuration of corresponding classification labels for the pre-saved pictures specifically includes, evenly dividing the picture into AxB partitions, and then performing image recognition on each partition to obtain the classification labels, the number of partitions Proportions are distributed according to the aspect ratio of the pictures, and the specific number is set according to the hardware configuration of the hardware device implementing the method.

进一步的,所述自动配置相应的分类标签还包括:Further, the automatic configuration of corresponding classification labels also includes:

对所划分的AxB个分区进行相邻的分区的图像进行组合识别得到所述分类标签;Carrying out combined recognition on the divided AxB partitions of images of adjacent partitions to obtain the classification label;

其中所述组合识别包括,选定其中一个分区即xi,j,其中i∈(1,A),i∈(1,A),然后从所述分区xi,j出发,扩展所述分区xi,j同时检测扩展到的相邻的分区的色度和/或灰度,直至所述色度或灰度超过一阈值则停止继续向周边的分区扩展,这里的检测可以检测全部扩展到的分区的整体色度和/或灰度,在本实施例中通过在分区的扩展方向上设置多个检测点,例如在从一个分区向另一个分区扩展时,沿扩展的方向上均匀的检测多个点的色度和/或灰度值作为检测值。Wherein the combination identification includes selecting one of the partitions i.e. x i,j , where i∈(1,A), i∈(1,A), and then starting from the partition x i,j , expanding the partition x i, j simultaneously detects the chromaticity and/or grayscale of the adjacent partitions that are extended to, until the chromaticity or grayscale exceeds a threshold, it stops and continues to expand to the surrounding partitions, and the detection here can detect all extended to The overall chromaticity and/or grayscale of the partition, in this embodiment, by setting a plurality of detection points in the extension direction of the partition, for example, when extending from one partition to another partition, uniform detection along the direction of extension The chromaticity and/or grayscale values of multiple points are used as detection values.

扩展的方法可以使用逆时针旋转扩展的方法或者同时向八个方向扩展所述分区。初始分区的选定可以通过选择最中间的分区来设定或者同时从均分布在图片上的四个或者多个分区,这样可以同步进行组合分配使得分区识别的进程更加多,提高本方法的处理速度。The expansion method can use the counterclockwise rotation expansion method or expand the partition in eight directions at the same time. The selection of the initial partition can be set by selecting the middle partition or at the same time from four or more partitions that are evenly distributed on the picture, so that the combined allocation can be performed synchronously to make the partition recognition process more and improve the processing of this method. speed.

进一步的,所述阈值为所述分区xi,j与相邻分区的交界线上的色度或灰度的平均值,或者可以按照一般的图片处理方法中的“关键点”的方式来选择阈值点。Further, the threshold is the average value of chromaticity or grayscale on the boundary line between the partition x i,j and adjacent partitions, or it can be selected in the way of "key point" in the general image processing method threshold point.

虽然上面已经参考各种实施例描述了本发明,但是应当理解,在不脱离本发明的范围的情况下,可以进行许多改变和修改。因此,其旨在上述详细描述被认为是例示性的而非限制性的,并且应当理解,以下权利要求(包括所有等同物)旨在限定本发明的精神和范围。以上这些实施例应理解为仅用于说明本发明而不用于限制本发明的保护范围。在阅读了本发明的记载的内容之后,技术人员可以对本发明作各种改动或修改,这些等效变化和修饰同样落入本发明权利要求所限定的范围。While the invention has been described above with reference to various embodiments, it should be understood that many changes and modifications can 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 restrictive, and that it be understood that the following claims, including all equivalents, are intended to define the spirit and scope of the invention. The above embodiments should be understood as only for illustrating the present invention but not for limiting the protection scope of the present invention. After reading the content of the present invention, the skilled person can make various changes or modifications to the present invention, and these equivalent changes and modifications also fall within the scope defined by the claims of the present invention.

Claims (4)

1.一种图片分类智能终端,所述智能终端为移动终端,其包括:设置单元,用于根据用输入的指令,设定用于所述图片的至少一个分类标签;存储器,用于保存所述智能终端获取得到的图片以及所述分类标签信息;其特征在于,所述智能终端还具备分类标签确定单元,用于遍历所述存储器中的所述图片,对每一图片根据所述分设置单元配置的各分类标签进行图像识别,根据图像识别结果为所述图片自动配置相应的分类标签。1. A picture classification intelligent terminal, the intelligent terminal is a mobile terminal, which includes: a setting unit, configured to set at least one classification label for the pictures according to an instruction input by a user; a memory, used to save all The picture obtained by the intelligent terminal and the classification label information; it is characterized in that the intelligent terminal also has a classification label determination unit for traversing the pictures in the memory, and for each picture according to the sub-set Each classification label configured by the unit performs image recognition, and automatically configures a corresponding classification label for the picture according to the image recognition result. 2.如权利要求1所述的智能终端,其特征在于,所述分类标签确定单元对图片自动配置相应的分类标签具体包括,将所述图片均匀的划分为AxB个分区,然后对每个分区进行图像识别以得到所述分类标签。2. The intelligent terminal according to claim 1, wherein the classification label determining unit automatically configures corresponding classification labels for pictures specifically comprising, dividing the picture evenly into AxB partitions, and then for each partition Image recognition is performed to obtain the classification labels. 3.如权利要求2所述的智能终端,其特征在于,所述自动配置相应的分类标签还包括:3. The intelligent terminal according to claim 2, wherein the automatic configuration of corresponding classification labels further comprises: 对所划分的AxB个分区进行相邻的分区的图像进行组合识别得到所述分类标签;Carrying out combined recognition on the divided AxB partitions of images of adjacent partitions to obtain the classification label; 其中所述组合识别包括,选定其中一个分区即xi,j,其中i∈(1,A),i∈(1,A),然后从所述分区xi,j出发,向多个方向扩展所述分区xi,j同时检测扩展到的相邻的分区的色度和/或灰度,直至所述色度或灰度超过一阈值则停止继续向周边的分区扩展。Wherein the combined recognition includes selecting one of the partitions, i.e. x i,j , where i∈(1,A), i∈(1,A), and then starting from the partition x i,j , to multiple directions The partition xi ,j is extended while detecting the chromaticity and/or grayscale of the adjacent partitions to which it is extended, until the chromaticity or grayscale exceeds a threshold, then stop extending to the surrounding partitions. 4.如权利要求3所述的智能终端,其特征在于,所述阈值为所述分区xi,j与相邻分区的交界线上的色度或灰度的平均值。4 . The intelligent terminal according to claim 3 , wherein the threshold is an average value of chromaticity or grayscale on the boundary line between the partition xi ,j and adjacent partitions.
CN201810049884.8A 2018-01-18 2018-01-18 A kind of picture classification intelligent terminal Pending CN108108494A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810049884.8A CN108108494A (en) 2018-01-18 2018-01-18 A kind of picture classification intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810049884.8A CN108108494A (en) 2018-01-18 2018-01-18 A kind of picture classification intelligent terminal

Publications (1)

Publication Number Publication Date
CN108108494A true CN108108494A (en) 2018-06-01

Family

ID=62219463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810049884.8A Pending CN108108494A (en) 2018-01-18 2018-01-18 A kind of picture classification intelligent terminal

Country Status (1)

Country Link
CN (1) CN108108494A (en)

Citations (4)

* Cited by examiner, † Cited by third party
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
CN103995889A (en) * 2014-06-03 2014-08-20 广东欧珀移动通信有限公司 Method and device for classifying pictures
JP2017162025A (en) * 2016-03-07 2017-09-14 株式会社東芝 Classification label allocation device, classification label allocation method, and program
CN107256216A (en) * 2017-04-17 2017-10-17 捷开通讯(深圳)有限公司 Mobile terminal, the method and storage device for managing picture

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
CN103995889A (en) * 2014-06-03 2014-08-20 广东欧珀移动通信有限公司 Method and device for classifying pictures
JP2017162025A (en) * 2016-03-07 2017-09-14 株式会社東芝 Classification label allocation device, classification label allocation method, and program
CN107256216A (en) * 2017-04-17 2017-10-17 捷开通讯(深圳)有限公司 Mobile terminal, the method and storage device for managing picture

Similar Documents

Publication Publication Date Title
US10586108B2 (en) Photo processing method and apparatus
CN108121816B (en) Picture classification method and device, storage medium and electronic equipment
CN110163076B (en) Image data processing method and related device
Zhang et al. Fusion of multichannel local and global structural cues for photo aesthetics evaluation
US8027541B2 (en) Image organization based on image content
CN102388392B (en) pattern recognition device
CN110348294A (en) The localization method of chart, device and computer equipment in PDF document
CN105426455A (en) Method and device for carrying out classified management on clothes on the basis of picture processing
CN105630915A (en) Method and device for classifying and storing pictures in mobile terminals
CN106575280B (en) System and method for analyzing user-associated images to produce non-user generated labels and utilizing the generated labels
CN101859367A (en) Digital photo sorting method, device and application system thereof
CN113780116B (en) Invoice classification method, device, computer equipment and storage medium
CN105956631A (en) On-line progressive image classification method facing electronic image base
Lim et al. Scene recognition with camera phones for tourist information access
CN109657715A (en) A kind of semantic segmentation method, apparatus, equipment and medium
US9552530B2 (en) Method and system to detect objects in multimedia using non-textural information within segmented region
CN106961559A (en) The preparation method and electronic equipment of a kind of video
Nemade et al. Image segmentation using convolutional neural network for image annotation
CN114638278B (en) Data cleaning method, device and system
CN105631404A (en) Method and device for clustering pictures
CN110569918A (en) A kind of sample classification method and related device
CN109829484B (en) Clothing classification method and equipment and computer-readable storage medium
CN107977948A (en) A kind of notable figure fusion method towards sociogram's picture
CN110413856A (en) Classification annotation method, apparatus, readable storage medium storing program for executing and equipment
Lee et al. Property-specific aesthetic assessment with unsupervised aesthetic property discovery

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180601