Method and device for generating default parameters in color algorithm, apparatus and storage medium

A color and parameter technology, applied in the fields of equipment and storage media, devices, and the generation method of default parameters in color algorithms, can solve problems such as time-consuming, no reference value, poor flexibility, etc., to simplify the parameter adjustment process and shorten the program The effect of reducing production time and workload

Active Publication Date: 2019-10-08
GUANGZHOU SHIYUAN ELECTRONICS CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For different images to be tested, the default parameters of the color algorithm are fixed, such as figure 1 The brightness range is fixed at 0-255, and the color wheel distribution is fixed at area 13. The adaptive ability is weak and the flexibility is poor. Almost every device frame needs to be adjusted.
In addition, for those who have no programming experience, the default parameters have no reference value, and the appropriate parameters can only be selected through continuous adjustment and trial, which takes a long time

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for generating default parameters in color algorithm, apparatus and storage medium
  • Method and device for generating default parameters in color algorithm, apparatus and storage medium
  • Method and device for generating default parameters in color algorithm, apparatus and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0050] figure 2 It is a flow chart of the method for generating default parameters in the color algorithm in Embodiment 1 of the present invention. This embodiment is applicable to the case of generating default parameters in the color algorithm, and the method can be executed by a device for generating default parameters in the color algorithm. The device may be implemented in the form of software and / or hardware, and the device may be configured in a device, for example, the device may be a smart phone, a computer, or a tablet computer, and the like.

[0051] In this embodiment, the color algorithm is the most basic and most commonly used algorithm in automatic optical inspection (Automated Optical Inspection, AOI). During detection, according to the preset algorithm parameters, the area on the image under test that satisfies the conditions is obtained. , to judge whether the tested image is qualified or not. see image 3 , image 3 It is a schematic diagram of parameter...

Embodiment 2

[0068] Figure 8 It is a flowchart of a method for generating default parameters in the color algorithm in Embodiment 2 of the present invention. On the basis of the above-mentioned embodiments, this embodiment further optimizes the method for generating default parameters in the above-mentioned color algorithm. Correspondingly, such as Figure 8 As shown, the method of this embodiment specifically includes:

[0069] S210. Acquire an image to be tested.

[0070] S220. Perform image segmentation on the image to be tested by using a clustering algorithm to obtain a target image.

[0071] S230. Determine a region of interest in the target image.

[0072] Specifically, determining the region of interest in the target image may include: determining the region of interest according to the comparison result of the number of pixels in the foreground region and the background region in the target image, or, according to the difference between the foreground region and the backgroun...

Embodiment 3

[0082] Figure 11 It is a schematic structural diagram of a device for generating default parameters in a color algorithm in Embodiment 3 of the present invention. This embodiment is applicable to the case of generating default parameters in a color algorithm. The device for generating default parameters in a color algorithm provided by an embodiment of the present invention can execute the method for generating default parameters in a color algorithm provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method. Specifically, the device may include:

[0083] An image acquisition module 310, configured to acquire an image to be tested;

[0084] Segmentation module 320, for performing image segmentation on the image to be tested, to obtain the target image;

[0085] A region of interest module 330, configured to determine a region of interest in the target image;

[0086] The parameter module 340...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a method and device for generating the default parameters in a color algorithm, an apparatus and a storage medium. The method comprises the steps of obtaininga to-be-detected image; performing image segmentation on the to-be-detected image to obtain a target image; determining a region of interest in the target image; and carrying out color analysis on the region of interest to obtain the default parameters of the to-be-detected image. According to the technical scheme provided by the embodiment of the invention, by adopting the image processing method to analyze different to-be-detected images, determining the region of interest and generating the default parameters, the parameter adjustment process of a subsequent color algorithm can be simplified, the parameter setting workload is reduced, the program making time is shortened, and particularly, the method and the device have the important reference value for the operators lacking the program making experiences.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of image processing, and in particular to a method, device, device and storage medium for generating default parameters in a color algorithm. Background technique [0002] Automated Optical Inspection (AOI) is a device based on optical principles to detect common defects encountered in printed circuit board (Printed Circuit Board, PCB) board welding production. Before the test, make the corresponding PCB board program as the test standard. After the board card flows into the equipment, the equipment will take pictures of the board card and compare it with the prepared standard program to judge whether the board card under inspection is qualified. The color algorithm is the most basic and most commonly used algorithm in AOI. During detection, according to the preset algorithm parameters, the area on the image under test that meets the conditions is obtained to judge whether the image...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06T7/90G06T7/00
CPCG06T7/0004G06T2207/30141G06T7/90
Inventor 王思远
Owner GUANGZHOU SHIYUAN ELECTRONICS CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products