CN108564571A - Image-region choosing method and terminal device - Google Patents
Image-region choosing method and terminal device Download PDFInfo
- Publication number
- CN108564571A CN108564571A CN201810276670.4A CN201810276670A CN108564571A CN 108564571 A CN108564571 A CN 108564571A CN 201810276670 A CN201810276670 A CN 201810276670A CN 108564571 A CN108564571 A CN 108564571A
- Authority
- CN
- China
- Prior art keywords
- image
- checked
- area
- standard picture
- tested
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0004—Industrial image inspection
- G06T7/001—Industrial image inspection using an image reference approach
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
The present invention relates to technical field of image processing, a kind of image-region choosing method and terminal device are provided.This method includes:Standard picture is obtained, and preselected area is chosen from the standard picture according to the pixel characteristic of target to be checked;Location information of the preselected area in the standard picture is extracted and preserved;Image to be checked is obtained, and the image to be checked and the standard picture are compared, is the image consistent with the standard picture direction by the Image Adjusting to be checked;The image of area to be tested is chosen in the image to be checked after the adjustment according to the positional information.The present invention can utilize the location information of preselected area in standard picture, determine the position of area to be tested in image to be checked, characteristics of image in image to be checked is unconspicuous, it remains able to accurately select area to be tested in image to be checked according to location information, the selection accuracy of area to be tested is greatly improved.
Description
Technical field
The present invention relates to technical field of image processing more particularly to a kind of image-region choosing methods and terminal device.
Background technology
In carrying out image-detection process to industrial products, the selection to area to be tested in image is vital one
Ring, chooses efficiency and accuracy suffers from entire production procedure more important influence.Existing technology is typically root
Area to be tested is chosen according to characteristics of image, such as is selected come frame according to pixel distribution or nerual network technique corresponding in image
Position, but in the case of characteristics of image unobvious (the uniform pixel value difference of such as pixel distribution is smaller), according to characteristics of image
It is difficult to accurately select area to be tested, be easy to cause selection mistake.
Invention content
In view of this, an embodiment of the present invention provides image-region choosing method and terminal device, to solve scheming at present
In the case of picture feature is unconspicuous, the problem that area to be tested be easy to cause selection mistake is chosen according to characteristics of image.
The first aspect of the embodiment of the present invention provides image-region choosing method, including:
Standard picture is obtained, and preselected area is chosen from the standard picture according to the pixel characteristic of target to be checked;
Location information of the preselected area in the standard picture is extracted and preserved;
Image to be checked is obtained, and the image to be checked and the standard picture are compared, by the image tune to be checked
Whole is the image consistent with the standard picture direction;
The image of area to be tested is chosen in the image to be checked after the adjustment according to the positional information.
The second aspect of the embodiment of the present invention provides image-region selecting device, including:
Acquisition module is selected for obtaining standard picture, and according to the pixel characteristic of target to be checked from the standard picture
Take preselected area;
Extraction module, for location information of the preselected area in the standard picture to be extracted and preserved;
To positive module, compared for obtaining image to be checked, and by the image to be checked and the standard picture, by institute
It is the image consistent with the standard picture direction to state Image Adjusting to be checked;
Processing module, for choosing area to be tested in the image to be checked after the adjustment according to the positional information
Image.
The third aspect of the embodiment of the present invention provides terminal device, including memory, processor and is stored in described
In memory and the computer program that can run on the processor, the processor are realized when executing the computer program
Image-region choosing method in first aspect.
The fourth aspect of the embodiment of the present invention provides computer readable storage medium, the computer readable storage medium
It is stored with computer program, the image-region selection side in first aspect is realized when the computer program is executed by processor
Method.
Existing advantageous effect is the embodiment of the present invention compared with prior art:By being extracted and preserved from standard picture
The location information of preselected area compares image to be checked and standard picture, is and standard drawing image space by Image Adjusting to be checked
To consistent image, and according to the image for choosing area to be tested in the image to be checked of the location information of preservation after the adjustment, energy
The location information for enough utilizing preselected area in standard picture, determines the position of area to be tested in image to be checked.The present invention is real
Accuracy of the accuracy depending on location information that area to be tested is chosen in example is applied, and the characteristics of image of standard picture is more bright
It is aobvious, it can ensure the accuracy of preselected area location information, therefore unconspicuous in the characteristics of image of image to be checked, still
So area to be tested can be accurately selected in image to be checked according to location information, the selection that area to be tested is greatly improved is accurate
True property.
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description be only the present invention some
Embodiment for those of ordinary skill in the art without having to pay creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the implementation flow chart of image-region choosing method provided in an embodiment of the present invention;
Fig. 2 is the implementation flow chart that location information is extracted in image-region choosing method provided in an embodiment of the present invention;
Fig. 3 is in image-region choosing method provided in an embodiment of the present invention to the implementation flow chart of image just to be checked;
Fig. 4 is the implementation flow chart that area to be tested is chosen in image-region choosing method provided in an embodiment of the present invention;
Fig. 5 is detected to the image of area to be tested in image-region choosing method provided in an embodiment of the present invention
Implementation flow chart;
Fig. 6 is the schematic diagram of image to be checked before and after adjustment provided by one embodiment of the present invention;
Fig. 7 is the schematic diagram of image-region selecting device provided in an embodiment of the present invention;
Fig. 8 is the schematic diagram of terminal device provided in an embodiment of the present invention.
Specific implementation mode
In being described below, for illustration and not for limitation, it is proposed that such as tool of particular system structure, technology etc
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention can also be realized in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Fig. 1 is the implementation flow chart of image-region choosing method provided in an embodiment of the present invention, and details are as follows:
In S101, standard picture is obtained, and chosen in advance from the standard picture according to the pixel characteristic of target to be checked
Favored area.
In the present embodiment, target to be checked is target product to be detected.Standard picture is the figure for including target to be checked
Picture, for as with reference to template, a standard picture can to include one or more targets to be checked.The pixel characteristic of target to be checked
Pixel characteristic for the feature that target to be checked shows in the picture, target to be checked can include but is not limited to the shape of target to be checked
It is one or more in shape feature, size characteristic and edge contour feature.Preselected area is target to be checked in standard picture
Region, a standard picture may include one or more preselected areas, and target to be checked and preselected area correspond.Standard drawing
The characteristics of image of picture is apparent, therefore can accurately be chosen to pre-selected zone from standard picture according to the pixel characteristic of target to be checked
Domain.
Optionally, it after obtaining standard picture, is chosen from the standard picture according to the pixel characteristic of target to be checked
Before preselected area, it can also include that gray proces are carried out to the standard picture got, standard picture is converted into gray-scale map
Picture improves the accuracy that preselected area is chosen to reduce the complexity of standard picture pixel.
In S102, location information of the preselected area in the standard picture is extracted and preserved.
In the present embodiment, the location information of preselected area, the position letter of preselected area can be extracted from standard picture
Breath includes position coordinates of the preselected area in standard picture.The design parameter of position coordinates can be according to the shape of preselected area
It is configured.For example, if preselected area is rectangle, the parameter of position coordinates can be the vertex at any diagonal line both ends of rectangle
Coordinate, such as rectangle top left corner coordinate and lower right corner apex coordinate;If rectangular area is circle, the parameter of position coordinates can
Think circular central coordinate of circle and circular radius.
As an embodiment of the present invention, as shown in Fig. 2, S102 may include:
In S201, location information of the preselected area in the standard picture is extracted.
In S202, the classification information of the standard picture is obtained.
In the present embodiment, standard picture can be there are many type, and the classification information of standard picture may include classification number.
It is alternatively possible to be classified to standard picture according to the observation visual angle of target to be checked in standard picture, such as can will mark
Quasi- image, which is divided into, faces image, overhead view image and side elevation image;It can also be according to the kind for the target to be checked for including in standard picture
Class or quantity classify to standard picture, such as the standard picture comprising target A to be checked can be divided into A class images, will
Including the image of target B to be checked is divided into B class images.
In S203, the location information is added to the corresponding information of classification information described in searching database.
In the present embodiment, searching database is the data for including the corresponding preselected area location information of all kinds of standard pictures
Library.Searching database can be retrieval tables of data or retrieval data file.It can will be carried according to the classification information of standard picture
The location information got preserves the corresponding position into searching database.
The present embodiment preserves the location information of preselected area according to the classification information of standard picture, can make position
Information preservation more orderliness, and the corresponding location information of all kinds of standard pictures is all stored in searching database, be conducive to
Location information is managed concentratedly and is updated.
In S103, image to be checked is obtained, and the image to be checked and the standard picture are compared, waited for described
Inspection Image Adjusting is the image consistent with the standard picture direction.
In the present embodiment, image to be checked is to need the image for carrying out target detection comprising target to be checked.Due to getting
Image to be checked may be inclined image, it is therefore desirable to be adjusted, can be according to the pixel characteristic and standard of image to be checked
The pixel characteristic of image calculates transformation matrix, is converted to image to be checked by transformation matrix, so as to adjust image to be checked.
The schematic diagram of image to be checked before and after adjustment provided in an embodiment of the present invention is illustrated in figure 6, before Fig. 6 (a) is adjustment
Inclined image to be checked, Fig. 6 (b) are the image to be checked after adjustment.
Optionally, after obtaining image to be checked, before the image to be checked and the standard picture are compared, also
It may include that gray proces are carried out to image to be checked, image to be checked be converted into gray level image, to reduce image pixel to be checked
Complexity, and then reduce subsequently to the difficulty of image procossing to be checked, to promote the efficiency of area to be tested selection and accurate
Degree.
As an embodiment of the present invention, as shown in figure 3, S103 may include:
In S301, choose respectively second straight in the first straight line point set and the standard picture in the image to be checked
Line point set;The first straight line point set and the second straight line point set are corresponding.
In the present embodiment, straight line point set is the pixel collection on a certain straight line in image.It can be respectively in figure to be checked
The point set of line correspondence is chosen in picture and standard picture.If for example, including a rectangle in image to be checked, rectangle can be chosen
A long side pixel collection as first straight line point set, the corresponding rectangular edges of the long side are searched in standard picture, select
Take the pixel collection of corresponding rectangular edges as second straight line point set.
It is alternatively possible to choose the pixel collection of longest straight line in image to be checked as first straight line point set,
The linear pixel point set of the line correspondences is chosen in standard picture as second straight line point set.By selecting longest straight line
Point set carry out transformation matrix calculating, transformation matrix can be made more accurate, improve image to be checked to plus effect.
In S302, the first angle and the second angle are calculated separately;First angle be the first straight line point set with
The angle of first preset coordinate axis in the image to be checked, second angle are the second straight line point set and the standard drawing
The angle of the second preset coordinate axis as in;The first preset coordinate axis and the second preset coordinate axis are corresponding.
In the present embodiment, preset coordinate axis can be the reference axis of unspecified angle, such as horizontal axis or vertical seat
Parameter etc..Reference axis can be established in image to be checked, first straight line point set is fitted to obtain first straight line point set correspondence
The equation of straight line calculates the first angle according to equation and the first preset coordinate axis.Correspondingly, can be built in standard picture
Vertical reference axis, second straight line point set is fitted to obtain the equation of second straight line point set line correspondence, according to equation and
Second preset coordinate axis calculates the second angle.
In S303, spin matrix is determined according to first angle and second angle, and according to the spin moment
Battle array carries out affine transformation to the image to be checked.
In the present embodiment, it can be revolved by the way that the first angle and the second angle are calculated image to be checked as difference
The angle turned, so that it is determined that spin matrix.Spin matrix can be expressed as:
Wherein M indicates that spin matrix, α are the angle that image to be checked is rotated.
The present embodiment is according to right in the angle and standard picture between image cathetus point set to be checked and preset coordinate axis
The angle of straight line point set and preset coordinate axis is answered, spin matrix can be obtained, spin matrix is recycled to adjust image to be checked, to
The orientation consistency for ensureing the image and standard picture after adjustment carries out improving the accuracy that area to be tested is chosen.
In S104, the figure of area to be tested is chosen in the image to be checked after the adjustment according to the positional information
Picture.
It in the present embodiment, can be according to determining area to be tested in the image to be checked of the location information of preservation after the adjustment
Position, and then choose to area to be tested image.
The embodiment of the present invention by the way that the location information of preselected area is extracted and preserved from standard picture, by image to be checked and
Standard picture is compared, and is the image consistent with standard picture direction by Image Adjusting to be checked, and believed according to the position of preservation
The image of area to be tested is chosen in the image to be checked of breath after the adjustment, and the position of preselected area in standard picture can be utilized to believe
Breath, determines the position of area to be tested in image to be checked.The accuracy that area to be tested is chosen in the embodiment of the present invention depends on
In the accuracy of location information, and the characteristics of image of standard picture becomes apparent, and can ensure the standard of preselected area location information
True property, thus it is unconspicuous in the characteristics of image of image to be checked, it remains able to according to location information in image to be checked
Area to be tested accurately is selected, the selection accuracy of area to be tested is greatly improved.
As an embodiment of the present invention, as shown in figure 4, S104 may include:
In S401, the classification information of the image to be checked is obtained.
In S402, the corresponding location information of image to be detected classification information is searched in the searching database.
In S403, the area to be tested is oriented in the image to be checked according to the location information found.
In S404, the image of the area to be tested is obtained.
In the present embodiment, image to be checked is identical as the mode classification of standard picture, of a sort image to be checked and standard
The classification information of image is identical.Therefore, correspondence can be found in searching database according to the classification information of image to be detected
Location information.The location information is the location information of preselected area in the corresponding standard picture of image to be detected.
The present embodiment can fast and accurately find to be checked according to the classification information of image to be checked in searching database
The corresponding location information of image can improve the access speed of area to be tested, improve image-region and choose efficiency.
It is alternatively possible to pass through the image to be detected found in searching database come quick obtaining to the read-write of file
The corresponding location information of classification information.
As an embodiment of the present invention, as shown in figure 5, can also include after S104:
In S501, the correspondence of the image and the image to be checked of area to be tested is established.
In the present embodiment, image to be checked includes at least one area to be tested, can be incited somebody to action after determining area to be tested
The image of each area to be tested cuts into individual image.The correspondence of the image of each area to be tested and image to be checked
Include position of each area to be tested in image to be checked.Wherein, cutting image is picture using image after gray processing
The part in line of demarcation is drawn and is split by plain difference.
In S502, according to the correspondence of foundation by the first image of image combination producing of the area to be tested;Institute
It is consistent with the relative position of each area to be tested in the image to be checked to state the relative position of each area to be tested in the first image.
It in the present embodiment, can be by the image combination producing of each area to be tested according to the correspondence of foundation
One image, other regions in the first image except area to be tested image can be filled by pre-set image.Wherein, it presets
Image can be solid-color image.
Optionally, the size for adjusting pre-set image keeps the size of pre-set image identical as the size of image to be checked;According to building
Each area to be tested image is added to the corresponding position of pre-set image by vertical correspondence, forms the first image.First figure
The position of each area to be tested image is identical as the position of each area to be tested in image to be detected as in.
In S503, described first image is detected.
The present embodiment by by area to be tested image the first image of combination producing, with the first image replace image to be checked into
Row detection operation, can eliminate influence of the image in image to be checked except area to be tested to testing result, to improve inspection
The accuracy of survey, and since the image in image to be checked except area to be tested need not be handled, detection process can be reduced
Data volume, to improve detection efficiency.
It is alternatively possible to the image of each area to be tested is individually detected, thus by one big figure (figure to be checked
Picture) it has been reduced into the image (image of each area to be tested) for the small pixel set of each region for needing to detect, Neng Gouji
The big speed and production efficiency for promoting detection.
The embodiment of the present invention by the way that the location information of preselected area is extracted and preserved from standard picture, by image to be checked and
Standard picture is compared, and is the image consistent with standard picture direction by Image Adjusting to be checked, and believed according to the position of preservation
The image of area to be tested is chosen in the image to be checked of breath after the adjustment, and the position of preselected area in standard picture can be utilized to believe
Breath, determines the position of area to be tested in image to be checked.The accuracy that area to be tested is chosen in the embodiment of the present invention depends on
In the accuracy of location information, and the characteristics of image of standard picture becomes apparent, and can ensure the standard of preselected area location information
True property, thus it is unconspicuous in the characteristics of image of image to be checked, it remains able to according to location information in image to be checked
Area to be tested accurately is selected, the selection accuracy of area to be tested is greatly improved.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
Corresponding to the application update reminding method described in foregoing embodiments, Fig. 7 shows provided in an embodiment of the present invention answer
With the schematic diagram of update suggestion device.For convenience of description, only the parts related to this embodiment are shown.
With reference to Fig. 7, which includes acquisition module 71, extraction module 72, adjustment module 73 and processing module 74.
Acquisition module 71, for obtaining standard picture, and according to the pixel characteristic of target to be checked from the standard picture
Choose preselected area.
Extraction module 72, for location information of the preselected area in the standard picture to be extracted and preserved.
Module 73 is adjusted, is compared for obtaining image to be checked, and by the image to be checked and the standard picture, it will
The Image Adjusting to be checked is the image consistent with the standard picture direction.
Processing module 74, for choosing area to be tested in the image to be checked according to the positional information after the adjustment
Image.
Optionally, the extraction module 72 is used for:
Extract location information of the preselected area in the standard picture;
Obtain the classification information of the standard picture;
The location information is added to the corresponding information of standard picture classification information described in searching database.
Optionally, the processing module 74 is used for:
Obtain the classification information of the image to be checked;
The corresponding location information of image to be detected classification information is searched in the searching database;
According to the location information found the area to be tested is oriented in the image to be checked;
Obtain the image of the area to be tested.
Optionally, the adjustment module 73 is used for:
The second straight line point set in the first straight line point set and the standard picture in the image to be checked is chosen respectively;Institute
It states first straight line point set and the second straight line point set is corresponding;
Calculate separately the first angle and the second angle;First angle is the first straight line point set and the figure to be checked
The angle of the first preset coordinate axis as in, second angle are that the second straight line point set and in the standard picture second are pre-
If the angle of reference axis;The first preset coordinate axis and the second preset coordinate axis are corresponding;
Spin matrix is determined according to first angle and second angle, and is waited for described according to the spin matrix
It examines image and carries out affine transformation.
Optionally, which can also include detection module, and the detection module is used for:
Establish the correspondence of the image and the image to be checked of area to be tested;
According to the correspondence of foundation by the first image of image combination producing of the area to be tested;Described first image
In each area to be tested relative position it is consistent with the relative position of each area to be tested in the image to be checked;
Described first image is detected.
The embodiment of the present invention by the way that the location information of preselected area is extracted and preserved from standard picture, by image to be checked and
Standard picture is compared, and is the image consistent with the standard picture direction by the Image Adjusting to be checked, and according to preservation
Location information image to be checked after the adjustment in choose the image of area to be tested, preselected area in standard picture can be utilized
Location information, determine the position of area to be tested in image to be checked.The standard of area to be tested is chosen in the embodiment of the present invention
True property depends on the accuracy of location information, and the characteristics of image of standard picture becomes apparent, and can ensure preselected area position
The accuracy of information, thus it is unconspicuous in the characteristics of image of image to be checked, it remains able to waited for according to location information
Area to be tested is accurately selected in inspection image, the selection accuracy of area to be tested is greatly improved.
Fig. 8 is the schematic diagram for the terminal device that one embodiment of the invention provides.As shown in figure 8, the terminal of the embodiment is set
Standby 8 include:Processor 80, memory 81 and it is stored in the meter that can be run in the memory 81 and on the processor 80
Calculation machine program 82, such as program.The processor 80 realizes above-mentioned each embodiment of the method when executing the computer program 82
In step, such as step 101 shown in FIG. 1 is to 104.Alternatively, reality when the processor 80 executes the computer program 82
Show the function of each module/unit in above-mentioned each device embodiment, such as the function of module 71 to 74 shown in Fig. 7.
Illustratively, the computer program 82 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 81, and are executed by the processor 80, to complete the present invention.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 82 in the terminal device 8 is described.For example, the computer program 82 can be divided
It is as follows to be cut into acquisition module, extraction module, adjustment module and processing module, each module concrete function:
Acquisition module is selected for obtaining standard picture, and according to the pixel characteristic of target to be checked from the standard picture
Take preselected area;
Extraction module, for location information of the preselected area in the standard picture to be extracted and preserved;
Module is adjusted, is compared for obtaining image to be checked, and by the image to be checked and the standard picture, by institute
It is the image consistent with the standard picture direction to state Image Adjusting to be checked;
Processing module, for choosing area to be tested in the image to be checked after the adjustment according to the positional information
Image.
The terminal device 8 can be that the calculating such as desktop PC, notebook, palm PC and cloud server are set
It is standby.The terminal device may include, but be not limited only to, processor 80, memory 81.It will be understood by those skilled in the art that Fig. 8
The only example of terminal device 8 does not constitute the restriction to terminal device 8, may include than illustrating more or fewer portions
Part either combines certain components or different components, such as the terminal device can also include input-output equipment, net
Network access device, bus, display etc..
Alleged processor 80 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng.
The memory 81 can be the internal storage unit of the terminal device 8, such as the hard disk of terminal device 8 or interior
It deposits.The memory 81 can also be to be equipped on the External memory equipment of the terminal device 8, such as the terminal device 8
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 81 can also both include the storage inside list of the terminal device 8
Member also includes External memory equipment.The memory 81 is for storing needed for the computer program and the terminal device
Other programs and data.The memory 81 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work(
Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion
The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used
It, can also be above-mentioned integrated during two or more units are integrated in one unit to be that each unit physically exists alone
The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.In addition, each function list
Member, the specific name of module are also only to facilitate mutually distinguish, the protection domain being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, depends on the specific application and design constraint of technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with
It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as
Multiple units or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, device
Or INDIRECT COUPLING or the communication connection of unit, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can be stored in a computer read/write memory medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of flow in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
May include:Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic of the computer program code can be carried
Dish, CD, computer storage, read-only memory (Read-Only Memory, ROM), random access memory (Random
Access Memory, RAM), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the meter
The content that calculation machine readable medium includes can carry out increase and decrease appropriate according to legislation in jurisdiction and the requirement of patent practice,
Such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium is including being not electric carrier signal and electricity
Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to aforementioned reality
Applying example, invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each
Technical solution recorded in embodiment is modified or equivalent replacement of some of the technical features;And these are changed
Or replace, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of image-region choosing method, which is characterized in that including:
Standard picture is obtained, and preselected area is chosen from the standard picture according to the pixel characteristic of target to be checked;
Location information of the preselected area in the standard picture is extracted and preserved;
Image to be checked is obtained, and the image to be checked and the standard picture are compared, is by the Image Adjusting to be checked
The image consistent with the standard picture direction;
The image of area to be tested is chosen in the image to be checked after the adjustment according to the positional information.
2. image-region choosing method as described in claim 1, which is characterized in that described that the preselected area is extracted and preserved
Location information in the standard picture includes:
Extract location information of the preselected area in the standard picture;
Obtain the classification information of the standard picture;
The location information is added to the corresponding information of classification information described in searching database.
3. image-region choosing method as claimed in claim 2, which is characterized in that described according to the positional information described
The image of selection area to be tested includes in image to be checked after adjustment:
Obtain the classification information of the image to be checked;
The corresponding location information of image to be detected classification information is searched in the searching database;
According to the location information found the area to be tested is oriented in the image to be checked;
Obtain the image of the area to be tested.
4. image-region choosing method as described in claim 1, which is characterized in that described by the image to be checked and the mark
Quasi- image is compared, and is that the image consistent with the standard picture direction includes by the Image Adjusting to be checked:
The second straight line point set in the first straight line point set and the standard picture in the image to be checked is chosen respectively;Described
One straight line point set and the second straight line point set are corresponding;
Calculate separately the first angle and the second angle;First angle is in the first straight line point set and the image to be checked
The angle of first preset coordinate axis, second angle are the second straight line point set and the in the standard picture second default seat
The angle of parameter;The first preset coordinate axis and the second preset coordinate axis are corresponding;
Spin matrix is determined according to first angle and second angle, and according to the spin matrix to the figure to be checked
As carrying out affine transformation.
5. such as Claims 1-4 any one of them image-region choosing method, which is characterized in that described according to institute's rheme
After confidence breath chooses the image of area to be tested in the image to be checked after the adjustment, further include:
Establish the correspondence of the image and the image to be checked of area to be tested;
According to the correspondence of foundation by the first image of image combination producing of the area to be tested;It is each in described first image
The relative position of area to be tested is consistent with the relative position of each area to be tested in the image to be checked;
Described first image is detected.
6. a kind of image-region selecting device, which is characterized in that including:
Acquisition module is chosen in advance for obtaining standard picture, and according to the pixel characteristic of target to be checked from the standard picture
Favored area;
Extraction module, for location information of the preselected area in the standard picture to be extracted and preserved;
To positive module, compares for obtaining image to be checked, and by the image to be checked and the standard picture, waited for described
Inspection Image Adjusting is the image consistent with the standard picture direction;
Processing module, the figure for choosing area to be tested in the image to be checked after the adjustment according to the positional information
Picture.
7. image-region selecting device as claimed in claim 6, which is characterized in that the extraction module is used for:
Extract location information of the preselected area in the standard picture;
Obtain the classification information of the standard picture;
The location information is added to the corresponding information of standard picture classification information described in searching database.
8. image-region selecting device as claimed in claim 7, which is characterized in that the processing module is used for:
Obtain the classification information of the image to be checked;
The corresponding location information of image to be detected classification information is searched in the searching database;
According to the location information found the area to be tested is oriented in the image to be checked;
Obtain the image of the area to be tested.
9. a kind of terminal device, including memory, processor and it is stored in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 5 when executing the computer program
The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, feature to exist
In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810276670.4A CN108564571B (en) | 2018-03-30 | 2018-03-30 | Image area selection method and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810276670.4A CN108564571B (en) | 2018-03-30 | 2018-03-30 | Image area selection method and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108564571A true CN108564571A (en) | 2018-09-21 |
CN108564571B CN108564571B (en) | 2020-10-16 |
Family
ID=63533641
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810276670.4A Active CN108564571B (en) | 2018-03-30 | 2018-03-30 | Image area selection method and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108564571B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113039577A (en) * | 2020-08-14 | 2021-06-25 | 深圳欣锐科技股份有限公司 | Product testing method and device, computer readable storage medium and electronic equipment |
CN116740385A (en) * | 2023-08-08 | 2023-09-12 | 深圳探谱特科技有限公司 | Equipment quality inspection method, device and system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11339053A (en) * | 1998-05-26 | 1999-12-10 | Matsushita Electric Works Ltd | Position detecting device |
CN102930555A (en) * | 2011-08-11 | 2013-02-13 | 深圳迈瑞生物医疗电子股份有限公司 | Method and device for tracking interested areas in ultrasonic pictures |
CN105184781A (en) * | 2015-08-26 | 2015-12-23 | 清华大学 | Image registration method and device |
CN106803244A (en) * | 2016-11-24 | 2017-06-06 | 深圳市华汉伟业科技有限公司 | Defect identification method and system |
CN107256262A (en) * | 2017-06-13 | 2017-10-17 | 西安电子科技大学 | A kind of image search method based on object detection |
CN107622252A (en) * | 2017-09-29 | 2018-01-23 | 百度在线网络技术(北京)有限公司 | information generating method and device |
CN107766582A (en) * | 2017-11-27 | 2018-03-06 | 深圳市唯特视科技有限公司 | A kind of image search method based on target regional area |
-
2018
- 2018-03-30 CN CN201810276670.4A patent/CN108564571B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11339053A (en) * | 1998-05-26 | 1999-12-10 | Matsushita Electric Works Ltd | Position detecting device |
CN102930555A (en) * | 2011-08-11 | 2013-02-13 | 深圳迈瑞生物医疗电子股份有限公司 | Method and device for tracking interested areas in ultrasonic pictures |
CN105184781A (en) * | 2015-08-26 | 2015-12-23 | 清华大学 | Image registration method and device |
CN106803244A (en) * | 2016-11-24 | 2017-06-06 | 深圳市华汉伟业科技有限公司 | Defect identification method and system |
CN107256262A (en) * | 2017-06-13 | 2017-10-17 | 西安电子科技大学 | A kind of image search method based on object detection |
CN107622252A (en) * | 2017-09-29 | 2018-01-23 | 百度在线网络技术(北京)有限公司 | information generating method and device |
CN107766582A (en) * | 2017-11-27 | 2018-03-06 | 深圳市唯特视科技有限公司 | A kind of image search method based on target regional area |
Non-Patent Citations (1)
Title |
---|
BYOUNGCHUL KO等: "FRIP: a region-based image retrieval tool using automatic image segmentation and stepwise Boolean AND matching", 《IEEE TRANSACTIONS ON MULTIMEDIA》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113039577A (en) * | 2020-08-14 | 2021-06-25 | 深圳欣锐科技股份有限公司 | Product testing method and device, computer readable storage medium and electronic equipment |
CN116740385A (en) * | 2023-08-08 | 2023-09-12 | 深圳探谱特科技有限公司 | Equipment quality inspection method, device and system |
CN116740385B (en) * | 2023-08-08 | 2023-10-13 | 深圳探谱特科技有限公司 | Equipment quality inspection method, device and system |
Also Published As
Publication number | Publication date |
---|---|
CN108564571B (en) | 2020-10-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Pound et al. | Automated recovery of three-dimensional models of plant shoots from multiple color images | |
EP2858030B1 (en) | Performing a histogram using an array of addressable registers | |
Borrmann et al. | The 3d hough transform for plane detection in point clouds: A review and a new accumulator design | |
Tazir et al. | CICP: Cluster Iterative Closest Point for sparse–dense point cloud registration | |
CN108805859A (en) | A kind of image detecting method, image detection device and terminal device | |
CN112288254B (en) | Construction quality detection method, terminal and storage medium | |
CN110704652A (en) | Vehicle image fine-grained retrieval method and device based on multiple attention mechanism | |
CN108564571A (en) | Image-region choosing method and terminal device | |
CN113192174A (en) | Mapping method and device and computer storage medium | |
CN110793437A (en) | Positioning method and device of manual operator, storage medium and electronic equipment | |
CN115937065A (en) | Foreign matter detection method, device and equipment of display module and storage medium | |
CN104268550A (en) | Feature extraction method and device | |
Li et al. | An area merging method in map generalization considering typical characteristics of structured geographic objects | |
CN109785283A (en) | A kind of textural characteristics matching process and device for fabric segmentation | |
CN116542926B (en) | Method, device, equipment and storage medium for identifying defects of two-dimension codes of battery | |
EP2875488B1 (en) | Biological unit segmentation with ranking based on similarity applying a shape and scale descriptor | |
CN117292337A (en) | Remote sensing image target detection method | |
CN107633506A (en) | A kind of image symmetrical characteristic detection method, device and terminal device | |
CN109801428A (en) | Detection method, detection device and the terminal of bank note edge line | |
CN106204542A (en) | Visual identity method and system | |
Zhang et al. | A YOLOv3‐Based Industrial Instrument Classification and Reading Recognition Method | |
CN112308842B (en) | Positioning core automatic extraction method based on printed matter image | |
CN109978986A (en) | Three-dimensional model reconstruction method and device, storage medium and terminal equipment | |
CN108510636A (en) | Image partition method, image segmentation device and terminal device | |
CN108198173A (en) | A kind of online test method, device and the terminal device in distress in concrete region |
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 | ||
PP01 | Preservation of patent right | ||
PP01 | Preservation of patent right |
Effective date of registration: 20201019 Granted publication date: 20201016 |
|
PD01 | Discharge of preservation of patent | ||
PD01 | Discharge of preservation of patent |
Date of cancellation: 20201210 Granted publication date: 20201016 |