Noise use method applied to visual feature detection task
By generating and alternately presenting noise images and target images in the visual feature detection task, the problem of insufficient noise in masking specific visual features in the existing technology is solved, and efficient evaluation of the visual detection functions of biological individuals and artificial intelligence systems is achieved.
Patent Information
- Application Number
- CN202410226893.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-29
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-02-29
Smart Images

Figure CN118537285A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of visual image detection, and in particular to a noise utilization method applied to visual feature detection tasks. Background Art
[0002] The feature detection capability of visual images is an important indicator for evaluating the level of visual function of biological individuals, and is also an important research direction for artificial intelligence systems in the field of visual image processing. Compared with feature detection tasks in noise-free environments, feature detection tasks in noisy or even complex noise environments are more difficult, closer to actual application scenarios, and their results also have broader application prospects. Therefore, it is of great significance to design noise similar to the visual features to be detected, apply it to visual feature detection tasks, and evaluate the visual feature detection capabilities of biological individuals or artificial intelligence systems. However, the visual noise that is currently widely used focuses more on universality, and still has obvious shortcomings in the effect of targeted masking of specific visual features. Summary of the invention
[0003] In order to solve the existing problems, the present invention provides a noise utilization method applied to visual feature detection tasks, and the specific scheme is as follows:
[0004] A method for using noise for a visual feature detection task comprises the following steps:
[0005] S1, calculate the noise image L noise (x, y) and the target image L with the visual features to be detected target (x,y) The superimposed image L of the two mixed (x,y); the specific formula is L mixed (x,y)=L noise (x,y)+L target (x,y); where L noise (x, y) represents the brightness of each point (x, y) in the noise image, L target (x, y) represents the brightness at each point (x, y) in the target image with the visual features to be detected;
[0006] S2, determine the L obtained in step S1 mixed Is there a brightness in (x, y) that exceeds the maximum brightness L that the visual display device can display? max Or the brightness is lower than the minimum brightness L that the visual display device can display min If the point does not exist, go to S3; if it does exist, go to S4;
[0007] S3, in the visual feature detection task, directly use the visual display device to present the superimposed image L mixed(x,y);
[0008] S4, in the visual feature detection task, alternately presenting noise images L mixed (x, y) and the target image L with the visual features to be detected target (x,y).
[0009] Preferably, when the noise image and the target image having the visual feature to be detected are presented alternately in step S4, the time range for each image to be presented continuously is 10-100 milliseconds.
[0010] Preferably, when the noise image and the target image having the visual feature to be detected are presented alternately in S4, each image is presented at least twice.
[0011] Preferably, when the noise image and the target image having the visual feature to be detected are presented alternately in step S4, the ratio of the cumulative presentation time of the noise image to the cumulative presentation time of the target image is not less than 1.0.
[0012] Preferably, the generation of the noise image in step S1 specifically includes the following steps:
[0013] S1', obtain the relevant parameters of the visual display device used in the visual feature detection task, including the maximum brightness L that the device can achieve max , minimum brightness L min , and the viewing angle DPD occupied by each point in the image when the display device displays the image;
[0014] S2', obtain the relevant parameters of the visual features to be detected in the detection task, including the spatial frequency sf of the visual features to be detected target , the orientation of the visual feature to be detected target , the contrast of the visual feature to be detected C target ;
[0015] S3', based on the information obtained in S2, determines the components of the noise. The specific method is as follows: if Ori target If missing, it is determined that the noise only contains random dot images; otherwise, it is determined that the noise contains two sub-components: random dot images and raster images.
[0016] S4', generating a noise image based on the information obtained in S1-S3.
[0017] Preferably, generating a noise image in step S4' specifically includes the following steps:
[0018] S41', generating random point images;
[0019] S42', if the noise also contains a raster component, a raster image is generated;
[0020] S43', generate the final noise image.
[0021] The present invention also discloses a computer-readable storage medium, on which a computer program is stored. After the computer program is run, any of the above methods is executed.
[0022] The present invention also discloses a computer system, including a processor and a storage medium, wherein a computer program is stored on the storage medium, and the processor reads and runs the computer program from the storage medium to execute any of the methods described above.
[0023] The beneficial effects of the present invention are:
[0024] The method of using the present invention is simple, convenient and highly practical, and can be applied to visual feature detection tasks with noise similar to the visual features to be detected. It can also match biological individuals and artificial intelligence systems with different visual feature detection capabilities within a certain range through parameter adjustment. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0026] Figure 1 This is a diagram illustrating the noise generation effect for visual feature detection tasks proposed in the present invention.
[0027] Figure 2 A diagram illustrating the method of using noise for visual feature detection tasks proposed in the present invention. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0029] like Figure 2 , a noise utilization method applied to a visual feature detection task, comprising the following steps:
[0030] S1, calculate the noise image L noise (x, y) and the target image L with the visual features to be detected target(x,y) The superimposed image L of the two mixed (x,y); the specific formula is L mixed (x,y)=L noise (x,y)+L target (x,y); where L noise (x, y) represents the brightness of each point (x, y) in the noise image, L target (x, y) represents the brightness at each point (x, y) in the target image with the visual features to be detected;
[0031] S2, determine the L obtained in step S1 mixed Is there a brightness in (x, y) that exceeds the maximum brightness L that the visual display device can display? max Or the brightness is lower than the minimum brightness L that the visual display device can display min If the point does not exist, go to S3; if it does exist, go to S4;
[0032] S3, in the visual feature detection task, directly use the visual display device to present the superimposed image L mixed (x,y);
[0033] S4, in the visual feature detection task, alternately presenting noise images L mixed (x, y) and the target image L with the visual features to be detected target (x,y). The time range of each image is 10-100 milliseconds. Each image is presented at least twice. The ratio of the cumulative presentation time of the noise image to the cumulative presentation time of the target image is not less than 1.0.
[0034] Generally speaking, the content of the visual inspection task is to determine whether an image with specific visual features appears within a specified spatial position and time window. For example, within a specified spatial position and time window, a Figure 1 (a) There may also be a completely blank content. Figure 1 (b) The biological individual or artificial intelligence system that performs the detection task needs to analyze the image and determine the category of the image.
[0035] In the absence of additional noise, Figure 1 (a) with Figure 1 (b) is more obvious, and the difficulty of the detection task is lower. In order to increase the difficulty of the detection task and make it closer to the actual application scenario, Figure 1 (a) with Figure 1 (b) Noise is added at the same time. A method for generating noise applied to a visual feature detection task comprises the following steps:
[0036] S1', obtain the relevant parameters of the visual display device used in the visual feature detection task, including the maximum brightness Lmax and minimum brightness Lmin that the device can achieve, and the DPD occupied by each point in the image when the display device displays the image; since DPD is related to the specific display device, it is temporarily set to 96 here.
[0037] S2', obtain the relevant parameters of the visual features to be detected in the detection task, including the spatial frequency sf of the visual features to be detected target , the orientation of the visual feature to be detected target , the contrast of the visual feature to be detected C target .exist Figure 1 (a), the spatial frequency sf of the visual feature to be detected target Can be determined as 2.0 cycles / degree, orientation Ori target Can be determined as 45 degrees, contrast C target It can be determined as 0.50.
[0038] S3', based on the information obtained in step S2', determine the components of the noise; if Ori target If missing, it is determined that the noise only contains random dot images; otherwise, it is determined that the noise contains two sub-components: random dot images and raster images.
[0039] S4', generating a noise image based on the information obtained in steps S1'-S3', the specific steps include:
[0040] S41', generating a random dot image of noise; wherein the number of the smallest component units of the generated random dot image is not less than 100. In addition, when the contrast of the smallest component unit in the generated random dot image is randomly taken from the normal distribution N(0, C RandomDot 2 ), the minimum number of constituent units shall not be less than 256.
[0041] Generating a random image of noise involves the following steps:
[0042] S411', based on sf targe t and C target Determine the parameters of the smallest unit in the random point image, including the size of the smallest unit RandomDot , and the contrast of the smallest component unit C RandomDot , the specific calculation formula is:
[0043] Size RandomDot =round(DPD / (sf target ×n sf,RandomDot ))
[0044] C RandomDot =min(nc,RandomDot ×C target , 1)
[0045] Among them, round is the rounding function, min is the minimum value function, DPD is the viewing angle occupied by each point (x, y) in the image when the display device displays the image, the unit is "point / degree", n c,RandomDot and n sf,RandomDot are coefficients, randomly selected from uniform distributions U[1.0, 10.0] and U[3.80, 5.80], respectively. c,RandomDot The value is 1.0, n sf,RandomDot The value is 4.50, Size RandomDot The value is 10, C RandomDot The value is 0.50.
[0046] S412', based on the parameters determined in S411', construct a random point image according to the following formula, the specific calculation formula is:
[0047] L RandomDot(x,y) =L mean ×(1+R(Size RandomDot , C RandomDot ))
[0048] Among them, L RandomDot (x, y) represents the brightness of each point (x, y) in the random point image; L mean is the average brightness; R(Size RandomDot , C RandomDot ) is an image generated by a random algorithm. The image is composed of multiple square minimum components. The length and width of the minimum component are both Size RandomDot , the contrast of the smallest component unit is C RandomDot or –C RandomDot Randomly selected with equal probability, or randomly selected from a normal distribution N(0, C RandomDot 2 ).
[0049] In an embodiment, the random dot image actually generated is as follows: Figure 1 As shown in (d), the effect of superimposing the random point image on the original image is as follows Figure 1 (c) as shown.
[0050] S42', if the noise also includes a raster component, generating a raster image, specifically comprising the following steps:
[0051] S421', based on C target 、sf target and Ori target Determine the contrast C of the grating grating , spatial frequency sfgrating Ori grating , the specific calculation formula is:
[0052] C grating =min(n c,grating ×C target , 1)
[0053] sf grating =sf target
[0054] Ori grating =Ori target
[0055] Among them, min is the minimum value function; n c,grating is a coefficient, randomly selected from the uniform distribution U([1.0,3.0]). In this embodiment, n c,grating The value is 1.0, C grating The value is 0.50, sf grating The value is 2.0 cycles / degree, Ori grating is 45 degrees.
[0056] S422', based on the parameters determined in S421', construct a grating image according to the following formula:
[0057] L grating (x,y)=L mean ×(0.5+
[0058] C grating ×sin(2π(sf grating ×DPD×(ycos(Ori grating )–xsin(Ori grating )))+Φ))
[0059] Among them, L grating (x, y) represents the brightness at each point (x, y) in the raster image; L mean is the average brightness; DPD is the viewing angle occupied by each point (x, y) in the image, the unit is "pieces / degree"; Ф is the random value of the grating phase.
[0060] In an embodiment, the actual generated raster image is as follows Figure 1 As shown in (f), the effect of superimposing the original image with the grating image is as follows Figure 1 (e) as shown.
[0061] The grating image generated above is the average value of the multiple grating images generated in steps S421' and S422', that is, Where L grating,n(x, y) represents the grating image generated for the nth time according to steps S421 ′ and S422 ′, and n is a positive integer greater than or equal to 1.
[0062] S43', generate the final noise image. The specific calculation formula is:
[0063] When the noise consists only of random dot images:
[0064] L noise (x, y) = L RandomDot (x, y).
[0065] When the noise contains two subcomponents: random dot image and raster image:
[0066] L noise (x, y) = L RandomDot (x,y)+L grating (x, y);
[0067] Among them, L noise (x, y) represents the brightness at each point (x, y) in the noise image.
[0068] In an embodiment, the noise image finally generated is as follows: Figure 1 As shown in (h), the effect of superimposing the random point image on the original image is as follows Figure 1 (g) as shown.
[0069] After superimposing the noise image, the content of the detection task has changed from the original "distinguishing Figure 1 (a) with Figure 1 (b)”, adjusted to “distinguish Figure 1 (g) with Figure 1 (h)". Through simple observation, it can be found that the difficulty of the task after adjustment is much greater than that before adjustment, which can complete the evaluation of the detection ability of biological individuals or artificial intelligence systems at a higher level.
[0070] In addition, in addition to the method of "directly superimposing the original image and the noise image" described above, the method of using the noise image generated above can also be used to alternately present the noise image and the original image. When an image with specific visual features appears in the specified spatial position and time window, the noise image and the original image are alternately presented, each presentation time is 50 milliseconds, and each is presented twice, such as Figure 2 (a) When no image with specific visual features appears in the specified spatial position and time window, the noise image and the blank image are presented alternately, each presentation time is 50 milliseconds, and each is presented twice, as shown in Figure 2The above method can achieve the goal of "increasing the difficulty of the detection task by adding noise" while effectively avoiding the display deviation caused by the theoretical brightness of the image exceeding the display range of the visual display device when the noise image is directly superimposed on the original image.
[0071] The present invention also discloses a computer-readable storage medium, on which a computer program is stored. After the computer program is run, any of the above methods is executed.
[0072] The present invention also discloses a computer system, including a processor and a storage medium, wherein a computer program is stored on the storage medium, and the processor reads and runs the computer program from the storage medium to execute any of the methods described above.
[0073] Those skilled in the art will further appreciate that the various illustrative logic blocks, modules, circuits, and algorithm steps described in conjunction with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or a combination of the two. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps are generally described above in terms of their functionality. Whether such functionality is implemented as hardware or software depends on the specific application and the design constraints imposed on the overall system. The technician may implement the described functionality in different ways for each specific application, but such implementation decisions should not be interpreted as resulting in a departure from the scope of the present invention.
[0074] The various illustrative logic blocks, modules, and circuits described in conjunction with the embodiments disclosed herein may be implemented or executed with a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in cooperation with a DSP core, or any other such configuration.
[0075] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software module may reside in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read and write information from / to the storage medium. In an alternative, a storage medium may be integrated into a processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In an alternative, the processor and the storage medium may reside in a user terminal as discrete components.
[0076] In one or more exemplary embodiments, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented as a computer program product in software, each function may be stored on or transmitted by a computer-readable medium as one or more instructions or codes. Computer-readable media include both computer storage media and communication media, including any medium that facilitates the transfer of a computer program from one place to another. Storage media may be any available medium that can be accessed by a computer. As an example and not limitation, such a computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer. Any connection is also properly referred to as a computer-readable medium. For example, if the software is transmitted from a website, a server, or other remote source using a coaxial cable, a fiber optic cable, a twisted pair, a digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwaves, the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwaves are included in the definition of the medium. Disk and disc as used herein include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, wherein disk often reproduces data magnetically, while disc reproduces data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0077] The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be apparent to those skilled in the art, and the general principles defined herein may be applied to other variations without departing from the spirit or scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples and designs described herein, but should be granted the widest scope consistent with the principles and novel features disclosed herein.
[0078] Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent substitutions for some of the technical features therein; and these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for using noise for visual feature detection tasks, characterized in that: The following steps are involved: S1, calculate the noise image L noise (x, y) and the target image L with the visual features to be detected target (x,y) The superimposed image L of the two mixed (x,y); the specific formula is L mixed (x,y)=L noise (x,y)+L target (x,y); where L noise (x, y) represents the brightness of each point (x, y) in the noise image, L target (x, y) represents the brightness at each point (x, y) in the target image with the visual features to be detected; S2, determine the L obtained in step S1 mixed Is there a brightness in (x, y) that exceeds the maximum brightness L that the visual display device can display? max Or the brightness is lower than the minimum brightness L that the visual display device can display min If the point does not exist, go to S3; if it does exist, go to S4; S3, in the visual feature detection task, directly use the visual display device to present the superimposed image L mixed (x,y); S4, in the visual feature detection task, alternately presenting noise images L mixed (x, y) and the target image L with the visual features to be detected target (x,y).
2. The method according to claim 1, characterized in that: When the noise image and the target image having the visual feature to be detected are presented alternately in step S4, the time range for each image to be presented continuously is 10-100 milliseconds.
3. The method according to claim 1, characterized in that: When the noise image and the target image with the visual features to be detected are presented alternately in S4, each image is presented at least twice.
4. The method according to any one of claims 1 to 3, characterized in that: When the noise image and the target image having the visual feature to be detected are presented alternately in step S4, the ratio of the cumulative presentation time of the noise image to the cumulative presentation time of the target image is not less than 1.
0.
5. The method according to claim 1, characterized in that The generation of the noise image in step S1 specifically includes the following steps: S1', obtain the relevant parameters of the visual display device used in the visual feature detection task, including the maximum brightness L that the device can achieve max , minimum brightness L min , and the viewing angle DPD occupied by each point in the image when the display device displays the image; S2', obtain the relevant parameters of the visual features to be detected in the detection task, including the spatial frequency sf of the visual features to be detected target , the orientation of the visual feature to be detected target , the contrast of the visual feature to be detected C target ; S3', based on the information obtained in S2, determines the components of the noise. The specific method is as follows: if Ori target If missing, it is determined that the noise only contains random dot images; otherwise, it is determined that the noise contains two sub-components: random dot images and raster images. S4', generating a noise image based on the information obtained in S1-S3.
6. The method according to claim 5, characterized in that: Generating a noise image in step S4' specifically includes the following steps: S41', generating random point images; S42', if the noise also contains a raster component, a raster image is generated; S43', generate the final noise image.
7. A computer-readable storage medium, characterized in that: A computer program is stored on the medium, and after the computer program is run, the method according to any one of claims 1 to 6 is executed.
8. A computer system, characterized in that: The method comprises a processor and a storage medium, wherein a computer program is stored in the storage medium, and the processor reads and runs the computer program from the storage medium to execute the method as claimed in any one of claims 1 to 6.
Citation Information
Patent Citations
Full-reference high-dynamic image quality evaluation method based on multi-feature fusion
CN111768362A
Visual noise elimination capability evaluation method based on contrast modulation grating
CN116149048A
Image processing method and device, computer equipment and storage medium
CN116385306A
Quantifying computer vision algorithm performance in the presence of system uncertainty
US20180165536A1
