CN109671051A - Picture quality detection model training method and device, electronic equipment and storage medium - Google Patents

Picture quality detection model training method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109671051A
CN109671051A CN201811359236.9A CN201811359236A CN109671051A CN 109671051 A CN109671051 A CN 109671051A CN 201811359236 A CN201811359236 A CN 201811359236A CN 109671051 A CN109671051 A CN 109671051A
Authority
CN
China
Prior art keywords
image
quality
marked
status stamp
quality status
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.)
Granted
Application number
CN201811359236.9A
Other languages
Chinese (zh)
Other versions
CN109671051B (en
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.)
Beijing Sensetime Technology Development Co Ltd
Original Assignee
Beijing Sensetime Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sensetime Technology Development Co Ltd filed Critical Beijing Sensetime Technology Development Co Ltd
Priority to CN201811359236.9A priority Critical patent/CN109671051B/en
Publication of CN109671051A publication Critical patent/CN109671051A/en
Application granted granted Critical
Publication of CN109671051B publication Critical patent/CN109671051B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30168Image quality inspection

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)

Abstract

This disclosure relates to a kind of picture quality detection model training method and device, electronic equipment and storage medium.The described method includes: obtaining handmarking's the first tag image of quality status stamp, the quality status stamp is used to indicate the quality requirements that picture quality meets setting;Using image library searching image to be marked, the quality status stamp of the image to be marked is determined according to search result, obtains the second tag image;According to first tag image and the second tag image training image quality testing model, described image quality testing model is used for detection image quality.In the embodiment of the present disclosure, the first tag image and the second tag image can complement one another, and more comprehensively, accurately, the picture quality detection model that training obtains can more accurately be marked picture quality the quality status stamp of sample image.

Description

Picture quality detection model training method and device, electronic equipment and storage medium
Technical field
This disclosure relates to technical field of image processing more particularly to a kind of picture quality detection model training method and dress It sets, electronic equipment and storage medium.
Background technique
In technical field of image processing, the demand detected to picture quality is more and more.How neural network is utilized Model carries out accurate detection to the quality of image, is field of image processing urgent problem to be solved.
Summary of the invention
The present disclosure proposes a kind of picture quality detection model training technique schemes.
According to the one side of the disclosure, a kind of picture quality detection model training method is provided, comprising:
Handmarking's the first tag image of quality status stamp is obtained, the quality status stamp is used to indicate picture quality satisfaction The quality requirements of setting;
Using image library searching image to be marked, the quality status stamp of the image to be marked is determined according to search result, is obtained To the second tag image;
According to first tag image and the second tag image training image quality testing model, described image matter It measures detection model and is used for detection image quality.
In one possible implementation, described to utilize image library searching image to be marked, it is determined according to search result The quality status stamp of the image to be marked, obtains the second tag image, comprising:
Image similar with image to be marked will be retrieved in described image library, as retrieval image;
According to the mark of the mark of the image to be marked and the retrieval image, the quality of the image to be marked is determined Image to be marked including the quality status stamp is determined as the second tag image by label, described to be identified as target pair in image The mark of elephant.
In one possible implementation, described that image similar with image to be marked is retrieved in image library, as Retrieve image, comprising:
Extract the second feature of each image in the fisrt feature and described image library of the image to be marked;
Determine the similarity in the fisrt feature and described image library between the second feature of each image;
Image corresponding with the highest second feature of the similarity of the fisrt feature in described image library is determined as examining Rope image.
In one possible implementation, the quality status stamp includes the first quality status stamp and the second quality status stamp, institute The mark for stating the mark and the retrieval image according to the image to be marked, determines the quality status stamp of the image to be marked, Include:
When the image to be marked is consistent with the retrieval mark of image, the quality mark of the image to be marked is determined It is denoted as the first quality status stamp, or
When the mark of the image to be marked and the retrieval image is inconsistent, the quality of the image to be marked is determined Labeled as the second quality status stamp.
In one possible implementation, image library searching image to be marked is being utilized, institute is determined according to search result The quality status stamp for stating image to be marked, before obtaining the second tag image, the method also includes:
Determining multiple images pair in original image, each described image is to including the first image and the second image, and described the Target object in one image and the second image is identical;
Each the first image is determined as the image to be marked;
Each second image is formed into described image library.
In one possible implementation, described image quality testing model is residual error network model.
In one possible implementation, the quality requirements of the setting include at least one of the following conditions:
Image resolution ratio is greater than resolution threshold, image definition is greater than clarity threshold, the target object in image without Blocking with the target object in image is living body.
According to the one side of the disclosure, a kind of picture quality detection model training device is provided, described device includes:
First tag image obtains module, for obtaining the first tag image of handmarking's quality status stamp, the matter Amount label is used to indicate the quality requirements that picture quality meets setting;
Second tag image obtains module, for utilizing image library searching image to be marked, determines institute according to search result The quality status stamp for stating image to be marked obtains the second tag image;
Training module, for according to first tag image and the second tag image training image quality testing mould Type, described image quality testing model are used for detection image quality.
In one possible implementation, second tag image obtains module, comprising:
Image acquisition submodule is retrieved, for image similar with image to be marked will to be retrieved in described image library, is made To retrieve image;
Quality status stamp determines submodule, for according to the image to be marked mark and it is described retrieval image mark, Image to be marked including the quality status stamp is determined as the second label figure by the quality status stamp for determining the image to be marked Picture, the mark for being identified as target object in image.
In one possible implementation, the retrieval image acquisition submodule, is used for:
Extract the second feature of each image in the fisrt feature and described image library of the image to be marked;
Determine the similarity in the fisrt feature and described image library between the second feature of each image;
Image corresponding with the highest second feature of the similarity of the fisrt feature in described image library is determined as examining Rope image.
In one possible implementation, the quality status stamp includes the first quality status stamp and the second quality status stamp, institute It states quality status stamp and determines submodule, be used for:
When the image to be marked is consistent with the retrieval mark of image, the quality mark of the image to be marked is determined It is denoted as the first quality status stamp, or
When the mark of the image to be marked and the retrieval image is inconsistent, the quality of the image to be marked is determined Labeled as the second quality status stamp.
In one possible implementation, described device further include:
Image is to determining module, and for determining multiple images pair in original image, each described image is to including the first figure Picture and the second image, the first image are identical with the target object in the second image;
Image determining module to be marked, for each the first image to be determined as the image to be marked;
Image library determining module, for each second image to be formed described image library.
In one possible implementation, described image quality testing model is residual error network model.
In one possible implementation, the quality requirements of the setting include at least one of the following conditions:
Image resolution ratio is greater than resolution threshold, image definition is greater than clarity threshold, the target object in image without Blocking with the target object in image is living body.
According to the one side of the disclosure, a kind of electronic equipment is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to: execute method described in above-mentioned any one.
According to the one side of the disclosure, a kind of computer readable storage medium is provided, computer program is stored thereon with Instruction, the computer program instructions realize method described in above-mentioned any one when being executed by processor.
In the embodiments of the present disclosure, handmarking's the first tag image of quality status stamp is obtained;Utilize image library searching Image to be marked determines the quality status stamp of image to be marked according to search result, obtains the second tag image;According to the first label Image and the second tag image training image quality testing model.First tag image and the second tag image can mend each other It fills, more comprehensively, accurately, the picture quality detection model that training obtains can be more accurately right for the quality status stamp of sample image Picture quality is marked.
It should be understood that above general description and following detailed description is only exemplary and explanatory, rather than Limit the disclosure.
According to below with reference to the accompanying drawings to detailed description of illustrative embodiments, the other feature and aspect of the disclosure will become It is clear.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and those figures show meet this public affairs The embodiment opened, and together with specification it is used to illustrate the technical solution of the disclosure.
Fig. 1 shows the flow chart of the picture quality detection model training method according to the embodiment of the present disclosure;
Fig. 2 shows the flow charts according to the picture quality detection model training method of the embodiment of the present disclosure;
Fig. 3, which shows target object in the image-selecting method according to the embodiment of the present disclosure and has, to be blocked and unobstructed signal Figure;
Fig. 4 shows the block diagram of the picture quality detection model training device according to the embodiment of the present disclosure;
Fig. 5 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment;
Fig. 6 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment.
Specific embodiment
Various exemplary embodiments, feature and the aspect of the disclosure are described in detail below with reference to attached drawing.It is identical in attached drawing Appended drawing reference indicate element functionally identical or similar.Although the various aspects of embodiment are shown in the attached drawings, remove It non-specifically points out, it is not necessary to attached drawing drawn to scale.
Dedicated word " exemplary " means " being used as example, embodiment or illustrative " herein.Here as " exemplary " Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
The terms "and/or", only a kind of incidence relation for describing affiliated partner, indicates that there may be three kinds of passes System, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.In addition, herein Middle term "at least one" indicate a variety of in any one or more at least two any combination, it may for example comprise A, B, at least one of C can indicate to include any one or more elements selected from the set that A, B and C are constituted.
In addition, giving numerous details in specific embodiment below in order to which the disclosure is better described. It will be appreciated by those skilled in the art that without certain details, the disclosure equally be can be implemented.In some instances, for Method, means, element and circuit well known to those skilled in the art are not described in detail, in order to highlight the purport of the disclosure.
Fig. 1 shows the flow chart of the picture quality detection model training method according to the embodiment of the present disclosure, as shown in Figure 1, Institute's picture quality detection model training method includes:
Step S10 obtains handmarking the first tag image of quality status stamp, the quality status stamp and is used to indicate image Quality meets the quality requirements of setting.
It in one possible implementation, can be using the first tag image of handmarking's quality status stamp as sample Image is trained picture quality detection model.Target object in first tag image, can for people, animal, vehicle, Various types of objects such as building.Target object in first tag image may include one or more objects.It can benefit Use alphabetical, number or the one of which in symbol or any combination etc. as the label content of quality status stamp.For example, can use Digital " 1 " indicates the first picture quality mark, and representative image is high-quality, satisfies the use demand.The second figure is indicated using digital " 0 " As quality status stamp, representative image is of poor quality, is unsatisfactory for use demand.The disclosure does not limit this.
Step S20 determines the quality of the image to be marked according to search result using image library searching image to be marked Label, obtains the second tag image.
In one possible implementation, the target object in the second tag image can be people, animal, vehicle, build Build various types of objects such as object.Target object in second tag image may include one or more objects.It can will be The image similar with the image to be marked retrieved in described image library, is determined as retrieving image;According to described to be marked The mark of the mark of image and the retrieval image, determines the quality status stamp of the image to be marked, will include the quality mark The image to be marked of note is determined as the second tag image, the mark for being identified as target object in image.
It in one possible implementation, may include the image of multiple objects in image library.It can be each in image library In object in image, the target object in image to be marked is retrieved.Can according in each image of image library characteristics of objects and The feature of the target object in image to be marked is retrieved, retrieval obtains retrieval image.
In one possible implementation, it is described by being retrieved in described image library with the image phase to be marked As image, be determined as retrieving image, comprising: extract each image in the fisrt feature and described image library of the image to be marked Second feature;Determine the similarity in the fisrt feature and described image library between the second feature of each image;It will be described Image corresponding with the highest second feature of the similarity of the fisrt feature is determined as retrieving image in image library.
In one possible implementation, it can use the fisrt feature that neural network model extracts image to be marked, And extract the second feature of each image in image library.Fisrt feature is identical with the feature of second feature.It can use and mention The feature got is treated tag image in image library and is retrieved.Can by with the similarity of fisrt feature highest second Image is determined as retrieving image.For example, image to be marked can extract pedestrian image to be selected with image for pedestrian image to be selected Apparel characteristic, limbs feature and facial characteristics of middle pedestrian etc., the feature as image to be marked.
In one possible implementation, the mark according to the image to be marked and the mark for retrieving image Know, determines the quality status stamp of the image to be marked, comprising: when the image to be marked is consistent with the retrieval mark of image When, determine that the quality status stamp of the image to be marked is the first quality status stamp, or when the image to be marked and the retrieval are schemed When the mark of picture is inconsistent, determine that the quality status stamp of the image to be marked is the second quality status stamp.
In one possible implementation, image to be marked includes the mark of pedestrian A, and each image in image library can also To include the mark of each object (pedestrian) in image.It, can be with when the mark of image to be marked is consistent with the mark of image is retrieved Think that the picture quality of image to be marked is preferable, discrimination when carrying out image procossing is high, can determine the matter of image to be marked The amount quality status stamp good labeled as expression picture quality.When the mark of image to be marked and the inconsistent mark of retrieval image, It is considered that the picture quality of image to be marked is poor, discrimination when carrying out image procossing is low, can determine image to be marked Quality status stamp be indicate poor image quality quality status stamp.
For example, including the image of multiple pedestrians in image library.According to the pedestrian A in image to be marked, in image library into Row retrieval, available pedestrian similar with pedestrian A in image to be marked, and the image retrieved is determined as retrieval figure Picture.When the mark for retrieving image is also pedestrian A, it can determine that the quality status stamp of image to be marked is that representative image is high-quality Quality status stamp.When the mark for retrieving image is not pedestrian A, it can determine that the quality status stamp of image to be marked is representative image matter Measure the quality status stamp of difference.
In one possible implementation, identical as the picture quality detection model in image-selecting method, the second mark The generation process of note image has carried out feature extraction also by neural network model, therefore, the generating process of the second tag image, Can by handmarking can not the image of accurate marker quality carry out more accurate quality status stamp.
In one possible implementation, step S10 and step S20 may be performed simultaneously or in any order successively It executes.The disclosure does not limit this.
Step S30, according to first tag image and the second tag image training image quality testing model, institute Picture quality detection model is stated for detection image quality.
In one possible implementation, the first tag image and the second tag image can be combined to obtain sample graph Picture.Can by sample image an image or one group of image quality of input image detection model handle, obtain quality Testing result.Picture quality detection model can be obtained according to the quality status stamp of obtained quality measurements and sample image Loss.The gradient that can be lost to picture quality detection model backpropagation, it is complete to adjust the parameter of picture quality detection model At the primary training of picture quality detection model.Training can be iterated to picture quality detection model.When satisfaction setting When the number of iterations or picture quality detection model meet the condition of convergence of setting, the instruction of picture quality detection model can be stopped Practice, obtains trained picture quality detection model.
In the present embodiment, handmarking's the first tag image of quality status stamp is obtained;It waits marking using image library searching Remember image, the quality status stamp of image to be marked is determined according to search result, obtains the second tag image;According to the first tag image With the second tag image training image quality testing model.First tag image and the second tag image can complement one another, sample More comprehensively, accurately, the picture quality detection model that training obtains can be more accurately to image for the quality status stamp of this image Quality is marked.
Fig. 2 shows the flow charts according to the picture quality detection model training method of the embodiment of the present disclosure, as shown in Fig. 2, Institute's picture quality detection model training method further include:
Step S40 determines multiple images pair in original image, and each described image is to including the first image and the second figure Picture, the first image are identical with the target object in the second image.
Each the first image is determined as the image to be marked by step S50.
Each second image is formed described image library by step S60.
In one possible implementation, original image can be the monitoring image shot using monitoring device. Identical a pair of of the image of the target object in image can be determined as image pair in original image.For example, original image can Think the monitoring image on road surface.A pair of of image of pedestrian A can be determined as image to 1, by pedestrian B's in original image A pair of of image is determined as image to 2 ....
In one possible implementation, can be using the first image of each image pair as image to be marked, and root Image library is formed according to the second image of each image pair.For example, the first image A and the second image A is image to two figures in A Picture can indicate the picture quality of the first image A when the retrieval image retrieved according to the first image A is the second image A It is good.When the retrieval image retrieved according to the first image A is not the second image A, the picture quality of the first image A can be indicated Difference.
In the present embodiment, multiple images pair are determined in original image, each image is to including the first image and the second figure Picture;Each first image is determined as the image to be marked;Each second image is formed into described image library.According to image pair The recall precision according to image retrieval image library to be marked can be improved in first image and the second image.
In one possible implementation, the first image and the picture quality of second image meet following item At least one of part: image resolution ratio is greater than resolution threshold, image definition is greater than clarity threshold, the target in image The unobstructed target object in image of object is living body.
It in one possible implementation, can be to the picture quality for the first image and the second image for forming image pair It is screened.It can will meet image resolution ratio greater than resolution threshold, image definition greater than in clarity threshold, image The unobstructed target object in image of target object is the image of at least one of living body, as the first image or the second figure Picture.The second tag image generated after image group is obtained after screening using above-mentioned condition, picture quality is high, can better conduct The supplement of first tag image, so that the training result of picture quality detection model is more accurate.
In the present embodiment, the picture quality of the first image and the second image meets at least one of the following conditions: figure As resolution ratio is greater than resolution threshold, image definition is greater than clarity threshold, the target object in image is unobstructed and image In target object be living body.By the first image and the second image that quality is screened, picture quality is high, can make image matter The training process of amount detection model is more efficient, result is more accurate.
In one possible implementation, described image quality testing model is residual error network model.
In one possible implementation, may include in residual error network two layers or more convolutional layer pass through shortcut connect The residual block of composition.Shortcut connection can skip one or more layers convolutional layer and be attached.Shortcut connection can execute identical reflect It penetrates, and outputs it and be added in the output of residual block stack layer.In residual error network, with the increase of the number of plies, training error Error compared to traditional multilayer convolutional neural networks is smaller and smaller, facilitates the disappearance of solution gradient and asks with what gradient was exploded Topic, can guarantee good network performance while training deeper picture quality detection model.
In the present embodiment, described image quality testing model is residual error network model.Residual error network model can make The depth of picture quality detection model is deeper, and network performance is more preferable.
In one possible implementation, the quality requirements of the setting include at least one of the following conditions:
Image resolution ratio is greater than resolution threshold, image definition is greater than clarity threshold, the target object in image without Blocking with the target object in image is living body.
In one possible implementation, the quality requirements of setting can be determined according to demand.Can according to demand and The quality requirements of setting determine the label content of quality status stamp, the total quantity of type and label.For example, the quality of setting Condition may include a clarity threshold.Only the image to be selected that image definition is more than or equal to clarity threshold can be provided First quality status stamp.The image to be selected that image definition is less than clarity threshold can also be provided into the second quality status stamp simultaneously. At this point, the first quality status stamp can be used to indicate that picture quality is good.Second quality status stamp can be used to indicate that poor image quality.
The quality requirements of setting also may include two resolution thresholds, and first resolution threshold value is higher than second resolution threshold Value.The image to be selected that resolution ratio is greater than first resolution threshold value can be provided into the first quality status stamp, by resolution ratio less than first Resolution threshold simultaneously provides the second quality status stamp more than or equal to the image to be selected of second resolution threshold value, by resolution ratio less than second The image to be selected of resolution ratio provides third quality status stamp.At this point, the first quality status stamp indicates that picture quality is best, the second mass mark Note indicates that picture quality is taken second place, and third quality status stamp indicates that picture quality is worst.
In one possible implementation, image resolution ratio refers to image pixel included in unit sizes Number.The details of the resolution ratio of image more hi-vision is finer.Image definition refers to each detail section on image and its boundary Clarity.The unobstructed target object referred in image of target object in image is not blocked by other objects.Such as to It selects the pedestrian in pedestrian image unobstructed, refers to that target pedestrian is not blocked by vehicle or other pedestrians.Fig. 3 is shown according to the disclosure There is target object in the image-selecting method of embodiment blocks and unobstructed schematic diagram.As shown in figure 3, top half in Fig. 3 Image in pedestrian blocked by other pedestrians, pedestrian is unobstructed in the image of lower half portion in Fig. 3, complete including pedestrian in image Body.Target object in image is living body, refers to that the target object in image is not from other images.Such as pedestrian's figure to be selected Pedestrian as in is living body, and referring to the pedestrian in image not is the non-living bodies such as personage's picture on roadside poster.
In one possible implementation, it is clear that image resolution ratio can be greater than resolution threshold, image according to demand The clear target object spent in and image unobstructed greater than the target object in clarity threshold, image is one or more in living body A condition carries out any combination.Meet the quality requirements that above-mentioned any conditional combination obtains, it can be in image collection to be selected really Make high-quality selection image.
In the present embodiment, image resolution ratio, image definition, the target object in image be unobstructed and image in mesh Mark object is living body, can be measured in the various aspects of image to picture quality, and the quality for the selection image determined is high.
Using example:
In safety management departments such as public security, the vehicle on the camera shooting road surface of road surface etc. setting can use, Obtain include various vehicles image, and obtain image collection.Image procossing is carried out to the image in image collection, can be used for Carry out the different safety management demands such as suspected vehicles tracking.Picture quality detection model can be trained.So that training Obtained picture quality detection model can carry out quality status stamp to the image for including vehicle, so as to carry out the figure of quality status stamp Image set closes, and can only save the good image of picture quality, save memory space, and improve the service efficiency of image collection.
The mode that can use handmarking carries out quality status stamp to the image for the vehicle that shooting obtains, obtains the first mark Remember image.The image for meeting the quality requirements of setting can be provided into corresponding quality status stamp.The quality requirements packet of the setting Include at least one of the following conditions: image resolution ratio is greater than resolution threshold, image definition is greater than clarity threshold, image In target object is unobstructed and image in target object be living body.The quality status stamp that picture quality detection model provides includes It indicates the good quality status stamp " 1 " of picture quality and indicates the quality status stamp " 0 " of poor image quality.
The image for the vehicle that shooting can be obtained can use existing image library searching and wait marking as image to be marked Remember image, the quality status stamp of image to be marked is determined according to search result, obtains the second tag image.Detailed process can refer to Embodiment is stated to repeat no more.The acquisition process of second tag image has used feature identical with picture quality detection model, energy The enough picture quality that can not be accurately distinguished to handmarking carries out accurate quality status stamp.
It can be according to the first tag image and the second tag image training image quality testing model.First tag image and Second tag image can complement one another, and improve the training effectiveness of picture quality detection model training.
It will be understood by those skilled in the art that each step writes sequence simultaneously in the above method of specific embodiment It does not mean that stringent execution sequence and any restriction is constituted to implementation process, the specific execution sequence of each step should be with its function It can be determined with possible internal logic.
It is appreciated that above-mentioned each embodiment of the method that the disclosure refers to, without prejudice to principle logic, To engage one another while the embodiment to be formed after combining, as space is limited, the disclosure is repeated no more.
In addition, the disclosure additionally provides picture quality detection model training device, electronic equipment, computer-readable storage medium Matter, program, the above-mentioned any picture quality detection model training method that can be used to realize that the disclosure provides, relevant art side Case and description and the corresponding record referring to method part, repeat no more.
Fig. 4 shows the block diagram of the picture quality detection model training device according to the embodiment of the present disclosure, as shown in figure 4, institute Picture quality detection model training device includes:
First tag image obtains module 10, described for obtaining the first tag image of handmarking's quality status stamp Quality status stamp is used to indicate the quality requirements that picture quality meets setting;
Second tag image obtains module 20, for utilizing image library searching image to be marked, is determined according to search result The quality status stamp of the image to be marked, obtains the second tag image;
Training module 30, for according to first tag image and the second tag image training image quality testing Model, described image quality testing model are used for detection image quality.
In one possible implementation, second tag image obtains module, comprising:
Image acquisition submodule is retrieved, for image similar with image to be marked will to be retrieved in described image library, is made To retrieve image;
Quality status stamp determines submodule, for according to the image to be marked mark and it is described retrieval image mark, Image to be marked including the quality status stamp is determined as the second label figure by the quality status stamp for determining the image to be marked Picture, the mark for being identified as target object in image.
In one possible implementation, the retrieval image acquisition submodule, is used for:
Extract the second feature of each image in the fisrt feature and described image library of the image to be marked;
Determine the similarity in the fisrt feature and described image library between the second feature of each image;
Image corresponding with the highest second feature of the similarity of the fisrt feature in described image library is determined as examining Rope image.
In one possible implementation, the quality status stamp includes the first quality status stamp and the second quality status stamp, institute It states quality status stamp and determines submodule, be used for:
When the image to be marked is consistent with the retrieval mark of image, the quality mark of the image to be marked is determined It is denoted as the first quality status stamp, or
When the mark of the image to be marked and the retrieval image is inconsistent, the quality of the image to be marked is determined Labeled as the second quality status stamp.
In one possible implementation, described device further include:
Image is to determining module, and for determining multiple images pair in original image, each described image is to including the first figure Picture and the second image, the first image are identical with the target object in the second image;
Image determining module to be marked, for each the first image to be determined as the image to be marked;
Image library determining module, for each second image to be formed described image library.
In one possible implementation, described image quality testing model is residual error network model.
In one possible implementation, the quality requirements of the setting include at least one of the following conditions:
Image resolution ratio is greater than resolution threshold, image definition is greater than clarity threshold, the target object in image without Blocking with the target object in image is living body.
In some embodiments, the embodiment of the present disclosure provides the function that has of device or comprising module can be used for holding The method of row embodiment of the method description above, specific implementation are referred to the description of embodiment of the method above, for sake of simplicity, this In repeat no more
The embodiment of the present disclosure also proposes a kind of computer readable storage medium, is stored thereon with computer program instructions, institute It states when computer program instructions are executed by processor and realizes the above method.Computer readable storage medium can be non-volatile meter Calculation machine readable storage medium storing program for executing.
The embodiment of the present disclosure also proposes a kind of electronic equipment, comprising: processor;For storage processor executable instruction Memory;Wherein, the processor is configured to the above method.
The equipment that electronic equipment may be provided as terminal, server or other forms.
Fig. 5 is the block diagram of a kind of electronic equipment 800 shown according to an exemplary embodiment.For example, electronic equipment 800 can To be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices are good for Body equipment, the terminals such as personal digital assistant.
Referring to Fig. 5, electronic equipment 800 may include following one or more components: processing component 802, memory 804, Power supply module 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814, And communication component 816.
The integrated operation of the usual controlling electronic devices 800 of processing component 802, such as with display, call, data are logical Letter, camera operation and record operate associated operation.Processing component 802 may include one or more processors 820 to hold Row instruction, to perform all or part of the steps of the methods described above.In addition, processing component 802 may include one or more moulds Block, convenient for the interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, with Facilitate the interaction between multimedia component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in electronic equipment 800.These data Example include any application or method for being operated on electronic equipment 800 instruction, contact data, telephone directory Data, message, picture, video etc..Memory 804 can by any kind of volatibility or non-volatile memory device or it Combination realize, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable Except programmable read only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, fastly Flash memory, disk or CD.
Power supply module 806 provides electric power for the various assemblies of electronic equipment 800.Power supply module 806 may include power supply pipe Reason system, one or more power supplys and other with for electronic equipment 800 generate, manage, and distribute the associated component of electric power.
Multimedia component 808 includes the screen of one output interface of offer between the electronic equipment 800 and user. In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch surface Plate, screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touches Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding The boundary of movement, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, Multimedia component 808 includes a front camera and/or rear camera.When electronic equipment 800 is in operation mode, as clapped When taking the photograph mode or video mode, front camera and/or rear camera can receive external multi-medium data.It is each preposition Camera and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike Wind (MIC), when electronic equipment 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone It is configured as receiving external audio signal.The received audio signal can be further stored in memory 804 or via logical Believe that component 816 is sent.In some embodiments, audio component 810 further includes a loudspeaker, is used for output audio signal.
I/O interface 812 provides interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 814 includes one or more sensors, for providing the state of various aspects for electronic equipment 800 Assessment.For example, sensor module 814 can detecte the state that opens/closes of electronic equipment 800, the relative positioning of component, example As the component be electronic equipment 800 display and keypad, sensor module 814 can also detect electronic equipment 800 or The position change of 800 1 components of electronic equipment, the existence or non-existence that user contacts with electronic equipment 800, electronic equipment 800 The temperature change of orientation or acceleration/deceleration and electronic equipment 800.Sensor module 814 may include proximity sensor, be configured For detecting the presence of nearby objects without any physical contact.Sensor module 814 can also include optical sensor, Such as CMOS or ccd image sensor, for being used in imaging applications.In some embodiments, which may be used also To include acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between electronic equipment 800 and other equipment. Electronic equipment 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.Show at one In example property embodiment, communication component 816 receives broadcast singal or broadcast from external broadcasting management system via broadcast channel Relevant information.In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, short to promote Cheng Tongxin.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, electronic equipment 800 can be by one or more application specific integrated circuit (ASIC), number Word signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-volatile computer readable storage medium storing program for executing is additionally provided, for example including calculating The memory 804 of machine program instruction, above-mentioned computer program instructions can be executed by the processor 820 of electronic equipment 800 to complete The above method.
Fig. 6 is the block diagram of a kind of electronic equipment 1900 shown according to an exemplary embodiment.For example, electronic equipment 1900 It may be provided as a server.Referring to Fig. 6, electronic equipment 1900 includes processing component 1922, further comprise one or Multiple processors and memory resource represented by a memory 1932, can be by the execution of processing component 1922 for storing Instruction, such as application program.The application program stored in memory 1932 may include it is one or more each Module corresponding to one group of instruction.In addition, processing component 1922 is configured as executing instruction, to execute the above method.
Electronic equipment 1900 can also include that a power supply module 1926 is configured as executing the power supply of electronic equipment 1900 Management, a wired or wireless network interface 1950 is configured as electronic equipment 1900 being connected to network and an input is defeated (I/O) interface 1958 out.Electronic equipment 1900 can be operated based on the operating system for being stored in memory 1932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
In the exemplary embodiment, a kind of non-volatile computer readable storage medium storing program for executing is additionally provided, for example including calculating The memory 1932 of machine program instruction, above-mentioned computer program instructions can by the processing component 1922 of electronic equipment 1900 execute with Complete the above method.
The disclosure can be system, method and/or computer program product.Computer program product may include computer Readable storage medium storing program for executing, containing for making processor realize the computer-readable program instructions of various aspects of the disclosure.
Computer readable storage medium, which can be, can keep and store the tangible of the instruction used by instruction execution equipment Equipment.Computer readable storage medium for example can be-- but it is not limited to-- storage device electric, magnetic storage apparatus, optical storage Equipment, electric magnetic storage apparatus, semiconductor memory apparatus or above-mentioned any appropriate combination.Computer readable storage medium More specific example (non exhaustive list) includes: portable computer diskette, hard disk, random access memory (RAM), read-only deposits It is reservoir (ROM), erasable programmable read only memory (EPROM or flash memory), static random access memory (SRAM), portable Compact disk read-only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanical coding equipment, for example thereon It is stored with punch card or groove internal projection structure and the above-mentioned any appropriate combination of instruction.Calculating used herein above Machine readable storage medium storing program for executing is not interpreted that instantaneous signal itself, the electromagnetic wave of such as radio wave or other Free propagations lead to It crosses the electromagnetic wave (for example, the light pulse for passing through fiber optic cables) of waveguide or the propagation of other transmission mediums or is transmitted by electric wire Electric signal.
Computer-readable program instructions as described herein can be downloaded to from computer readable storage medium it is each calculate/ Processing equipment, or outer computer or outer is downloaded to by network, such as internet, local area network, wide area network and/or wireless network Portion stores equipment.Network may include copper transmission cable, optical fiber transmission, wireless transmission, router, firewall, interchanger, gateway Computer and/or Edge Server.Adapter or network interface in each calculating/processing equipment are received from network to be counted Calculation machine readable program instructions, and the computer-readable program instructions are forwarded, for the meter being stored in each calculating/processing equipment In calculation machine readable storage medium storing program for executing.
Computer program instructions for executing disclosure operation can be assembly instruction, instruction set architecture (ISA) instructs, Machine instruction, machine-dependent instructions, microcode, firmware instructions, condition setup data or with one or more programming languages The source code or object code that any combination is write, the programming language include the programming language-of object-oriented such as Smalltalk, C++ etc., and conventional procedural programming languages-such as " C " language or similar programming language.Computer Readable program instructions can be executed fully on the user computer, partly execute on the user computer, be only as one Vertical software package executes, part executes on the remote computer or completely in remote computer on the user computer for part Or it is executed on server.In situations involving remote computers, remote computer can pass through network-packet of any kind It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit It is connected with ISP by internet).In some embodiments, by utilizing computer-readable program instructions Status information carry out personalized customization electronic circuit, such as programmable logic circuit, field programmable gate array (FPGA) or can Programmed logic array (PLA) (PLA), the electronic circuit can execute computer-readable program instructions, to realize each side of the disclosure Face.
Referring herein to according to the flow chart of the method, apparatus (system) of the embodiment of the present disclosure and computer program product and/ Or block diagram describes various aspects of the disclosure.It should be appreciated that flowchart and or block diagram each box and flow chart and/ Or in block diagram each box combination, can be realized by computer-readable program instructions.
These computer-readable program instructions can be supplied to general purpose computer, special purpose computer or other programmable datas The processor of processing unit, so that a kind of machine is produced, so that these instructions are passing through computer or other programmable datas When the processor of processing unit executes, function specified in one or more boxes in implementation flow chart and/or block diagram is produced The device of energy/movement.These computer-readable program instructions can also be stored in a computer-readable storage medium, these refer to It enables so that computer, programmable data processing unit and/or other equipment work in a specific way, thus, it is stored with instruction Computer-readable medium then includes a manufacture comprising in one or more boxes in implementation flow chart and/or block diagram The instruction of the various aspects of defined function action.
Computer-readable program instructions can also be loaded into computer, other programmable data processing units or other In equipment, so that series of operation steps are executed in computer, other programmable data processing units or other equipment, to produce Raw computer implemented process, so that executed in computer, other programmable data processing units or other equipment Instruct function action specified in one or more boxes in implementation flow chart and/or block diagram.
The flow chart and block diagram in the drawings show system, method and the computer journeys according to multiple embodiments of the disclosure The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation One module of table, program segment or a part of instruction, the module, program segment or a part of instruction include one or more use The executable instruction of the logic function as defined in realizing.In some implementations as replacements, function marked in the box It can occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be held substantially in parallel Row, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/or The combination of each box in flow chart and the box in block diagram and or flow chart, can the function as defined in executing or dynamic The dedicated hardware based system made is realized, or can be realized using a combination of dedicated hardware and computer instructions.
The presently disclosed embodiments is described above, above description is exemplary, and non-exclusive, and It is not limited to disclosed each embodiment.Without departing from the scope and spirit of illustrated each embodiment, for this skill Many modifications and changes are obvious for the those of ordinary skill in art field.The selection of term used herein, purport In the principle, practical application or technological improvement to the technology in market for best explaining each embodiment, or lead this technology Other those of ordinary skill in domain can understand each embodiment disclosed herein.

Claims (10)

1. a kind of picture quality detection model training method, which is characterized in that the described method includes:
Handmarking's the first tag image of quality status stamp is obtained, the quality status stamp is used to indicate picture quality and meets setting Quality requirements;
Using image library searching image to be marked, the quality status stamp of the image to be marked is determined according to search result, obtains Two tag images;
According to first tag image and the second tag image training image quality testing model, the inspection of described image quality It surveys model and is used for detection image quality.
2. the method according to claim 1, wherein described utilize image library searching image to be marked, according to inspection Hitch fruit determines the quality status stamp of the image to be marked, obtains the second tag image, comprising:
Image similar with image to be marked will be retrieved in described image library, as retrieval image;
According to the mark of the mark of the image to be marked and the retrieval image, the quality mark of the image to be marked is determined Image to be marked including the quality status stamp is determined as the second tag image by note, described to be identified as target object in image Mark.
3. according to the method described in claim 2, it is characterized in that, the retrieval in image library is similar with image to be marked Image, as retrieval image, comprising:
Extract the second feature of each image in the fisrt feature and described image library of the image to be marked;
Determine the similarity in the fisrt feature and described image library between the second feature of each image;
Image corresponding with the highest second feature of the similarity of the fisrt feature in described image library is determined as retrieval figure Picture.
4. according to the method in claim 2 or 3, which is characterized in that the quality status stamp includes the first quality status stamp and the Two quality status stamps, the mark and the mark for retrieving image according to the image to be marked, determine the figure to be marked The quality status stamp of picture, comprising:
When the image to be marked is consistent with the retrieval mark of image, determine that the quality status stamp of the image to be marked is First quality status stamp, or
When the mark of the image to be marked and the retrieval image is inconsistent, the quality status stamp of the image to be marked is determined For the second quality status stamp.
5. a kind of picture quality detection model training device, which is characterized in that described device includes:
First tag image obtains module, for obtaining the first tag image of handmarking's quality status stamp, the quality mark Note is used to indicate the quality requirements that picture quality meets setting;
Second tag image obtains module, for utilizing image library searching image to be marked, according to search result determine it is described to The quality status stamp of tag image obtains the second tag image;
Training module is used for according to first tag image and the second tag image training image quality testing model, Described image quality testing model is used for detection image quality.
6. device according to claim 5, which is characterized in that second tag image obtains module, comprising:
Image acquisition submodule is retrieved, for image similar with image to be marked will to be retrieved in described image library, as inspection Rope image;
Quality status stamp determines submodule, for determining according to the mark of the image to be marked and the mark of the retrieval image Image to be marked including the quality status stamp is determined as the second tag image, institute by the quality status stamp of the image to be marked State the mark for being identified as target object in image.
7. device according to claim 6, which is characterized in that the retrieval image acquisition submodule is used for:
Extract the second feature of each image in the fisrt feature and described image library of the image to be marked;
Determine the similarity in the fisrt feature and described image library between the second feature of each image;
Image corresponding with the highest second feature of the similarity of the fisrt feature in described image library is determined as retrieval figure Picture.
8. device according to claim 6 or 7, which is characterized in that the quality status stamp includes the first quality status stamp and the Two quality status stamps, the quality status stamp determine submodule, are used for:
When the image to be marked is consistent with the retrieval mark of image, determine that the quality status stamp of the image to be marked is First quality status stamp, or
When the mark of the image to be marked and the retrieval image is inconsistent, the quality status stamp of the image to be marked is determined For the second quality status stamp.
9. a kind of electronic equipment characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to: perform claim require any one of 1 to 4 described in method.
10. a kind of computer readable storage medium, is stored thereon with computer program instructions, which is characterized in that the computer Method described in any one of Claims 1-4 is realized when program instruction is executed by processor.
CN201811359236.9A 2018-11-15 2018-11-15 Image quality detection model training method and device, electronic equipment and storage medium Active CN109671051B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811359236.9A CN109671051B (en) 2018-11-15 2018-11-15 Image quality detection model training method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811359236.9A CN109671051B (en) 2018-11-15 2018-11-15 Image quality detection model training method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109671051A true CN109671051A (en) 2019-04-23
CN109671051B CN109671051B (en) 2021-01-26

Family

ID=66142557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811359236.9A Active CN109671051B (en) 2018-11-15 2018-11-15 Image quality detection model training method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109671051B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111091069A (en) * 2019-11-27 2020-05-01 云南电网有限责任公司电力科学研究院 Power grid target detection method and system guided by blind image quality evaluation
CN112949709A (en) * 2021-02-26 2021-06-11 北京达佳互联信息技术有限公司 Image data annotation method and device, electronic equipment and storage medium
WO2021130552A1 (en) * 2019-12-23 2021-07-01 Sensetime International Pte. Ltd. Method and apparatus for obtaining sample images, and electronic device
CN113792661A (en) * 2021-09-15 2021-12-14 北京市商汤科技开发有限公司 Image detection method, image detection device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170372155A1 (en) * 2016-06-23 2017-12-28 Siemens Healthcare Gmbh Image Quality Score Using A Deep Generative Machine-Learning Model
CN108109145A (en) * 2018-01-02 2018-06-01 中兴通讯股份有限公司 Picture quality detection method, device, storage medium and electronic device
CN108171256A (en) * 2017-11-27 2018-06-15 深圳市深网视界科技有限公司 Facial image matter comments model construction, screening, recognition methods and equipment and medium
CN108288027A (en) * 2017-12-28 2018-07-17 新智数字科技有限公司 A kind of detection method of picture quality, device and equipment
CN108389182A (en) * 2018-01-24 2018-08-10 北京卓视智通科技有限责任公司 A kind of picture quality detection method and device based on deep neural network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170372155A1 (en) * 2016-06-23 2017-12-28 Siemens Healthcare Gmbh Image Quality Score Using A Deep Generative Machine-Learning Model
CN108171256A (en) * 2017-11-27 2018-06-15 深圳市深网视界科技有限公司 Facial image matter comments model construction, screening, recognition methods and equipment and medium
CN108288027A (en) * 2017-12-28 2018-07-17 新智数字科技有限公司 A kind of detection method of picture quality, device and equipment
CN108109145A (en) * 2018-01-02 2018-06-01 中兴通讯股份有限公司 Picture quality detection method, device, storage medium and electronic device
CN108389182A (en) * 2018-01-24 2018-08-10 北京卓视智通科技有限责任公司 A kind of picture quality detection method and device based on deep neural network

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111091069A (en) * 2019-11-27 2020-05-01 云南电网有限责任公司电力科学研究院 Power grid target detection method and system guided by blind image quality evaluation
WO2021130552A1 (en) * 2019-12-23 2021-07-01 Sensetime International Pte. Ltd. Method and apparatus for obtaining sample images, and electronic device
US11295431B2 (en) 2019-12-23 2022-04-05 Sensetime International Pte. Ltd. Method and apparatus for obtaining sample images, and electronic device
CN112949709A (en) * 2021-02-26 2021-06-11 北京达佳互联信息技术有限公司 Image data annotation method and device, electronic equipment and storage medium
CN113792661A (en) * 2021-09-15 2021-12-14 北京市商汤科技开发有限公司 Image detection method, image detection device, electronic equipment and storage medium
CN113792661B (en) * 2021-09-15 2024-06-11 北京市商汤科技开发有限公司 Image detection method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109671051B (en) 2021-01-26

Similar Documents

Publication Publication Date Title
CN110503023A (en) Biopsy method and device, electronic equipment and storage medium
CN109635142A (en) Image-selecting method and device, electronic equipment and storage medium
CN109829501A (en) Image processing method and device, electronic equipment and storage medium
CN109740516A (en) A kind of user identification method, device, electronic equipment and storage medium
CN109671051A (en) Picture quality detection model training method and device, electronic equipment and storage medium
CN109389162B (en) Sample image screening technique and device, electronic equipment and storage medium
CN106228556B (en) image quality analysis method and device
CN110009090A (en) Neural metwork training and image processing method and device
CN110298310A (en) Image processing method and device, electronic equipment and storage medium
CN109801270A (en) Anchor point determines method and device, electronic equipment and storage medium
CN110175223A (en) A kind of method and device that problem of implementation generates
CN105447750A (en) Information identification method, apparatus, terminal and server
CN109040664A (en) video stream processing method and device, electronic equipment and storage medium
CN108985176A (en) image generating method and device
CN109948494A (en) Image processing method and device, electronic equipment and storage medium
CN110503689A (en) Attitude prediction method, model training method and device
CN105809174A (en) Method and device for identifying image
CN105354560A (en) Fingerprint identification method and device
TWI766458B (en) Information identification method and apparatus, electronic device, and storage medium
CN109934275A (en) Image processing method and device, electronic equipment and storage medium
CN112672208B (en) Video playing method, device, electronic equipment, server and system
CN109978891A (en) Image processing method and device, electronic equipment and storage medium
CN109543536A (en) Image identification method and device, electronic equipment and storage medium
CN110532956A (en) Image processing method and device, electronic equipment and storage medium
CN109543537A (en) Weight identification model increment training method and device, electronic equipment and storage medium

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