A method, device, storage medium and equipment for identifying low texture areas of an image

By dividing the image into pixel tiles and calculating the normalization coefficient of the texture data, low-texture areas in the image are identified, which solves the problem of difficulty in identifying low-texture areas in the existing technology and achieves fast and real-time recognition effects. Improved recognition accuracy and system performance.

CN113627429BActive Publication Date: 2024-09-27SHENZHEN APICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110923899.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-12
Publication Date
2024-09-27
Estimated Expiration
2041-08-12

AI Technical Summary

Technical Problem

Existing technologies have shortcomings in identifying low-texture areas in images, especially in complex scenes and low-cost, low-computational-complexity embedded systems. It is difficult to achieve efficient real-time binocular vision stereo matching, especially in pixels. Frequent matching errors occur due to factors such as non-uniqueness, inconsistency between left and right images, and low-texture areas.

Method used

By dividing the image to be recognized into several pixel blocks, calculating and normalizing the texture data of each block, selecting the pixel blocks corresponding to the normalization coefficient smaller than the preset texture threshold as the low texture area, using Variance and Entropy Values ​​Calculate texture coefficients and entropy values ​​for normalization to quickly identify low-texture areas in images.

Benefits of technology

It achieves rapid recognition of low-texture areas in images, reduces the complexity of product development and computing resource requirements, meets real-time requirements, and improves recognition accuracy. In particular, the matching effect of low-texture areas is significantly improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113627429B
    Figure CN113627429B
Patent Text Reader

Abstract

The present invention relates to the field of image processing technology, and specifically to a method, device, storage medium and equipment for identifying low-texture areas of an image, the method comprising: dividing the image to be identified into a plurality of pixel blocks; calculating the texture data of each of the plurality of pixel blocks respectively; then normalizing the plurality of texture data to obtain a normalization coefficient corresponding to each of the pixel blocks; comparing each of the obtained normalization coefficients with a preset texture threshold, and regarding the pixel blocks corresponding to the normalization coefficients less than the texture threshold as low-texture areas in the image. The present application regards the pixel blocks corresponding to the normalization coefficients less than the texture threshold as low-texture areas in the image to quickly identify low-texture areas in the image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to a method, device, storage medium and equipment for identifying low-texture areas of an image. Background Art

[0002] Binocular vision is the most promising and anthropomorphic method in 3D perception, which can provide both color and depth information (complete RGBD perception). It has a wide range of applications in 3D mesh reconstruction, SLAM (localization and mapping), scene recognition, 3D object detection, 3D object recognition, 6D posture detection, autonomous driving, indoor navigation, machine positioning and measurement, etc.

[0003] Depth calculation based on binocular vision is obtained through parallax, that is, the difference between the same pixel in the left and right views (after epipolar correction) at different positions on the same horizontal line is solved. The parallax calculation method is also called the stereo matching method of binocular vision. However, stereo matching of binocular vision is subject to two insurmountable limitations: one is the non-uniqueness of pixels; the other is the inconsistency of left and right images, and it is easily affected by complex occlusion, low-texture areas, repeated patterns, transparent surfaces, reflections, non-diffuse, perspective shortening, optical geometry changes and other factors, resulting in matching errors.

[0004] Most existing studies only pursue performance under certain ideal environments and rankings in Middlebury and KITTI benchmarks, which are not suitable for most existing low-cost, low computational complexity (low power consumption) embedded systems or products. So far, there is still no mature, efficient and practical real-time binocular vision stereo matching algorithm for embedded systems. Currently, many embedded systems are equipped with binocular vision hardware interfaces (including SOC chip systems such as DJI and HiSilicon), and they all use the open source semi-global algorithm SGM algorithm proposed by H. Hirschmuller. This is an algorithm from more than ten years ago with an accuracy rate of less than 80%. Its performance still has a lot of room for improvement to meet more application scenarios. According to the different calculation methods used, stereo matching algorithms can be divided into deep learning methods and traditional methods (non-deep learning methods).

[0005] In recent years, most academic research has focused on using deep learning networks to implement stereo matching algorithms. Although deep learning methods have shown good performance, they have the following defects: (1) The number of learning samples is very limited (in the tens of thousands); (2) The amount of computation is large, and the deployed hardware system requires high-performance GPU support, which makes it difficult to use it as a lightweight visual perception front end. Actual products and systems often require sufficient computing resources for subsequent advanced visual tasks (such as assisted driving, target recognition, or 3D reconstruction); (3) What is learned during training is the distribution of samples, which may be completely ineffective for new scenes that have never been learned.

[0006] Traditional methods mainly use local matching methods such as bilateral weighted cost aggregation method and minimum spanning tree based cost aggregation method. These methods are easy to implement in parallel, but have two serious disadvantages: (1) using the WTA (Winner take all) method as the matching cost, it is easy to be disturbed by the light, perspective, noise and other factors in complex scenes, resulting in inconsistency between the left and right images and incorrect estimation; (2) lack of use of structural information and incorrect estimation.

[0007] The best method currently is the local expansion method based on patch matching (LocalExp). Although it has a certain degree of robustness on the KITTI test data set and performs well on the Middlebury data set, it is very complex and its effect is greatly reduced for the outdoor scene test data in KITTI, especially for the matching effect of low-texture areas. The most difficult problem facing the stereo matching algorithm is that for low-texture areas such as the sky, walls, and large-format container compartment sides, no existing matching function can solve this problem well.

[0008] Therefore, the existing technology for identifying low-texture areas in images still has defects and needs to be improved and developed. Summary of the invention

[0009] The embodiments of the present invention provide a method, an apparatus, a storage medium and a device for identifying a low-texture region in an image, which can quickly identify a low-texture region in an image.

[0010] According to an embodiment of the present invention, a method for identifying a low-texture area of ​​an image is provided, comprising the following steps:

[0011] Divide the image to be recognized into several pixel blocks;

[0012] Calculate the texture data of several pixel blocks respectively;

[0013] Normalize several texture data to obtain the normalization coefficient corresponding to each pixel block;

[0014] Selecting a normalization coefficient that is smaller than a texture threshold from among a plurality of normalization coefficients;

[0015] The pixel block corresponding to the normalization coefficient is selected as the low texture area in the image.

[0016] Furthermore, the image to be identified is divided into a number of pixel blocks as follows:

[0017] Take any pixel in the image to be identified;

[0018] Taking the pixel point as the center, intercept the pixel block according to the preset pixel area;

[0019] Repeat the process of randomly selecting another pixel point, taking the pixel point as the center again, and cutting out pixel blocks according to the preset pixel area until the image is divided into a plurality of pixel blocks.

[0020] Furthermore, respectively calculating the texture data of a plurality of pixel blocks includes:

[0021] Calculate the variance of several pixel blocks;

[0022] Based on the variance, texture coefficients of several pixel images are calculated, and the texture coefficients are used as texture data of the pixel block.

[0023] Further,

[0024] The variance formula to calculate the variance is:

[0025]

[0026] in, is the variance of the pixel block, n is the number of pixel blocks, x is an arbitrary pixel point, is the average pixel value of the intercepted pixel block;

[0027] The texture coefficient formula for calculating the texture coefficient is:

[0028]

[0029] Among them, t x is the texture coefficient, t min and ε var For custom experience value;

[0030] The normalization formula for calculating the normalization coefficient is:

[0031]

[0032] Among them, X is the normalization coefficient, x is the texture coefficient t x, max is the maximum value among several texture coefficients, and min is the minimum value among several texture coefficients.

[0033] Furthermore, respectively calculating the texture data of a plurality of pixel blocks includes:

[0034] Calculate the image entropy value of each of several pixel blocks, and use the image entropy value as the texture data of the pixel block.

[0035] Further, the image entropy values ​​of several pixel blocks are calculated by the entropy formula, and the normalization coefficients of the pixel blocks are solved by the normalization formula;

[0036] The entropy formula for calculating the image entropy is:

[0037]

[0038] Among them, H is the image entropy value, p i is the resolution of the image, logp i The resolution p i The logarithm of ; the normalization formula for calculating the normalization coefficient is:

[0039]

[0040] Wherein, X is the normalization coefficient, x is the image entropy value H, max' is the maximum value of the image entropy value, and min' is the minimum value of the image entropy value.

[0041] Furthermore, before dividing the image to be recognized into a plurality of pixel blocks, the method further includes:

[0042] The image to be recognized is acquired through a binocular camera.

[0043] A low texture area recognition device for an image, comprising:

[0044] A pixel division module is used to divide the image to be recognized into a number of pixel blocks;

[0045] A data calculation module, used to calculate the texture data of each of a plurality of pixel blocks;

[0046] The normalization module normalizes a number of texture data to obtain the normalization coefficient corresponding to each pixel block;

[0047] A comparison module, used for selecting a normalization coefficient less than a texture threshold from a plurality of normalization coefficients;

[0048] The low texture recognition module is used to select the pixel block corresponding to the normalization coefficient as the low texture area in the image.

[0049] A computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in any of the above-mentioned methods for identifying low-texture areas of an image.

[0050] A terminal device comprises: a processor, a memory and a communication bus; the memory stores a computer-readable program executable by the processor;

[0051] The communication bus realizes the connection and communication between the processor and the memory;

[0052] When the processor executes the computer-readable program, the processor implements the steps of any one of the above-mentioned methods for identifying low-texture areas of an image.

[0053] In the method, device, storage medium and equipment for identifying low texture areas of images in the embodiments of the present invention, the method includes: dividing the acquired image into a number of pixel blocks; calculating the texture data of the number of pixel blocks; then normalizing the number of texture data to obtain a normalization coefficient corresponding to each pixel block; comparing each obtained normalization coefficient with a preset texture threshold, and treating the pixel blocks corresponding to the normalization coefficients less than the texture threshold as low texture areas in the image. The present application quickly identifies low texture areas in an image by treating the pixel blocks corresponding to the normalization coefficients less than the texture threshold as low texture areas in the image. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0055] Figure 1 A flowchart of a method for identifying low texture areas of an image according to the present invention;

[0056] Figure 2 It is a principle diagram of the low texture area recognition method of the image of the present invention;

[0057] Figure 3 For the present invention Figure 5 Schematic diagram of a ×5 pixel tile.

[0058] Figure 4 The original image without calculating the texture coefficient in the present invention;

[0059] Figure 5 is the texture coefficient image of the present invention;

[0060] Figure 6 The original image without calculating the image entropy value of the present invention

[0061] Figure 7 An image entropy map after the image entropy value is calculated by the present invention;

[0062] Figure 8 This is a schematic diagram of the terminal device provided by the present invention. DETAILED DESCRIPTION

[0063] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme 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 only 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 should fall within the scope of protection of the present invention.

[0064] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0065] See also Figure 1 According to an embodiment of the present invention, a method for identifying a low-texture area of ​​an image is provided, comprising the following steps:

[0066] S101: Divide the image to be recognized into a plurality of pixel blocks;

[0067] S102: Calculate texture data of a plurality of pixel blocks respectively;

[0068] S103: performing normalization processing on a plurality of texture data to obtain a normalization coefficient corresponding to each pixel block;

[0069] S104: selecting a normalization coefficient that is smaller than a texture threshold from a plurality of normalization coefficients;

[0070] S105: Selecting a pixel block corresponding to the normalization coefficient as a low texture area in the image.

[0071] In an embodiment, the method of the present application includes: dividing the image to be identified into a number of pixel blocks; calculating the texture data of each of the pixel blocks respectively; then normalizing the texture data to obtain a normalization coefficient corresponding to each pixel block; comparing each normalization coefficient obtained with a preset texture threshold, and treating the pixel blocks corresponding to the normalization coefficients less than the texture threshold as low-texture areas in the image. The present application quickly identifies low-texture areas in an image by treating the pixel blocks corresponding to the normalization coefficients less than the texture threshold as low-texture areas in the image.

[0072] The method of the application is simple to calculate and the algorithm is easy to implement. It can quickly identify low-texture areas in images, and the algorithm has very good real-time performance, which can meet the real-time requirements in actual product development and greatly reduce the cost of product development.

[0073] In the embodiment, the image to be identified is divided into a plurality of pixel blocks as follows:

[0074] Take any pixel in the image to be identified;

[0075] Taking the pixel point as the center, intercept the pixel block according to the preset pixel area;

[0076] Repeat the process of randomly selecting another pixel point, taking the pixel point as the center again, and cutting out pixel blocks according to the preset pixel area until the image is divided into a plurality of pixel blocks.

[0077] Specifically, a pixel point is randomly selected in the acquired image; with the acquired pixel point as the center, several rows and columns of pixels are selected from the top, bottom, left, and right to capture pixel blocks; then a pixel point is randomly selected repeatedly, and again with the pixel point as the center, several rows and columns of pixels are selected from the top, bottom, left, and right to capture pixel blocks, until the image is divided into several pixel blocks; it should be noted that each pixel point can only be taken as the center point once.

[0078] The present application can obtain images in various ways; for example, images taken by a camera or a video recorder; after obtaining the image, taking any pixel point x in the image as the center, taking several rows and columns of pixels in the top, bottom, left and right.

[0079] As a preferred technical solution, taking any pixel point x in the image as the center, select a number of pixel points with equal rows and columns to form an N×N pixel block, and then follow the above method until the entire image is divided into a number of N×N pixel blocks.

[0080] As a preferred technical solution, Figure 3As shown, taking any pixel point x in the image as the center, two rows and two columns of pixels are taken from top to bottom and left to right to cut into 5×5 pixel blocks. This solution can also cut pixel blocks of other sizes, such as 3×3, 7×7, and 9×9 pixel blocks.

[0081] Furthermore, according to the above method, a pixel point that is not used as the center point is randomly selected as the center to be cut into a second 5×5 pixel block, until the entire image is divided into several 5×5 pixel blocks.

[0082] It should be noted that in the process of dividing pixel blocks, when dividing to the edge of the image, it may happen that after selecting a pixel point as the center point, there are not enough pixels to form an N×N pixel block. In this case, there are the following solutions:

[0083] First, the edge parts of the pixel blocks that are not large enough to form N×N are discarded;

[0084] Taking a 5×5 pixel block as an example, two rows are taken from the center pixel point, but there is only one column of pixels on the right side of the center pixel point as the edge of the image, which is not enough to form a 5×5 pixel block, so the pixel area is discarded.

[0085] The second is to extend virtual pixels outward from the edge to form N×N pixel blocks.

[0086] For example, in the above example of a 5×5 pixel block, when there is only one column of pixels on the right, a virtual pixel column is added to form a 5×5 pixel block.

[0087] In the embodiment, respectively calculating the texture data of a plurality of pixel blocks includes:

[0088] Calculate the variance of several pixel blocks;

[0089] Based on the variance, texture coefficients of several pixel images are calculated, and the texture coefficients are used as texture data of the pixel block.

[0090] like Figures 4 to 7 As shown, the method of the present application is to obtain the low texture area in the image by calculation; in this embodiment, two schemes are provided to calculate the low texture area of ​​the image:

[0091] Solution 1: The texture coefficient of the image is calculated, then the texture coefficient is normalized and compared with the preset threshold to obtain the low texture area of ​​the image;

[0092] Solution 2: The image entropy value is calculated, then normalized, and compared with a preset threshold to obtain the low-texture area of ​​the image.

[0093] Specifically, the first scheme calculates the texture coefficients of several pixel blocks to obtain the low texture area of ​​the image as:

[0094] Calculate the variance of several pixel blocks;

[0095] Based on the variance, the texture coefficients of several pixel images are calculated;

[0096] Normalize several texture data to obtain the normalization coefficient corresponding to each pixel block:

[0097] A number of texture coefficients are normalized to obtain a normalized coefficient for each pixel block.

[0098] The following is option 1, using the texture coefficient of the image to calculate the low texture area of ​​the image. The specific steps are as follows:

[0099] Step 1: First, select any pixel point in the image, take the pixel point as the center, take N rows and N columns of pixels in the top, bottom, left and right, and intercept an N×N pixel block;

[0100] Step 2: Calculate the variance of the intercepted N×N pixel block based on the variance formula;

[0101] Step 3: Calculate the texture coefficient of the pixel block based on the texture coefficient formula;

[0102] Step 4: Divide the entire image into several N×N pixel blocks, and repeat steps 1 to 3 until the texture coefficients of all pixel blocks are calculated;

[0103] Step 5: Normalize all texture coefficients based on the normalization formula to obtain the normalized coefficient of each pixel block;

[0104] Step 6: Compare the normalized coefficient with the preset texture threshold; the pixel blocks corresponding to the normalized coefficients smaller than the texture threshold are regarded as low-texture images.

[0105] Figure 4 and Figure 5 The corresponding image is the original image and the effect image after texture calculation based on the original image.

[0106] In the embodiment, the following are specific expressions of the variance formula, the texture coefficient formula and the normalization formula; wherein the variance of the pixel block is calculated by the variance formula, the texture coefficient of the pixel block is calculated by the texture coefficient formula, and the normalization coefficient of the pixel block is solved by the normalization formula; wherein,

[0107] The variance formula is:

[0108]

[0109] in, is the variance of the pixel block, n is the number of pixel blocks, x is an arbitrary pixel point, is the average pixel value of the intercepted pixel block;

[0110] The texture coefficient formula is:

[0111]

[0112] Among them, t x is the texture coefficient, t min and ε var For custom experience value;

[0113] The normalization formula is:

[0114]

[0115] Among them, X is the normalization coefficient, x is the texture coefficient t x , max is the maximum value among several texture coefficients, and min is the minimum value among several texture coefficients.

[0116] Furthermore, where t min and ε var is the best empirical value obtained through continuous experiments; preferably, t min =0.5,ε var =0.00005.

[0117] In the embodiment, respectively calculating the texture data of a plurality of pixel blocks includes:

[0118] Calculate the image entropy value of each of several pixel blocks, and use the image entropy value as the texture data of the pixel block.

[0119] Specifically, the following is option 2, using the image entropy value to calculate the low texture area of ​​the image, the steps are as follows:

[0120] Step 1: First, select any pixel in the image, take the pixel as the center, take N rows and N columns of pixels in the top, bottom, left and right, and intercept an N×N pixel block;

[0121] Step 2: Calculate the image entropy value of the intercepted N×N pixel block based on the entropy formula;

[0122] Step 3: Divide the entire image into several N×N pixel blocks, and repeat steps 1 and 2 until the image entropy values ​​of all pixel blocks are calculated;

[0123] Step 4: Normalize all image entropy values ​​based on the normalization formula to obtain the normalization coefficient of each pixel block;

[0124] Step 5: Compare the normalized coefficient with the preset texture threshold; the pixel blocks corresponding to the normalized coefficients smaller than the texture threshold are regarded as low-texture images.

[0125] Figure 6 and Figure 7 The corresponding image is the original image and the entropy effect image after the image entropy value is calculated based on the original image; Figure 6 correspond Figure 7 The area marked by the box is a low-texture area.

[0126] In the embodiment, the image entropy values ​​of a plurality of pixel blocks are calculated by an entropy value formula, and the normalization coefficients of the pixel blocks are solved by a normalization formula;

[0127] The entropy formula is:

[0128]

[0129] Among them, H is the image entropy value, p i is the resolution of the image, logp i The resolution p i The logarithm of ; the normalized formula is:

[0130]

[0131] Among them, X is the normalization coefficient, x is the image entropy value H, max' is the maximum value among several image entropy values, and min' is the minimum value among several image entropy values.

[0132] Furthermore, the maximum value max and the minimum value min among a number of texture coefficients, as well as the maximum value max' and the minimum value min' among a number of image entropy values, can be found out by programming a command, a program or an algorithm.

[0133] Furthermore, the smaller the normalized texture coefficient is, the lower the texture of the pixel block is.

[0134] Furthermore, the continuous area in which the normalization coefficient is smaller than the set texture threshold is the low texture area in the image; it should be noted that the threshold can be set arbitrarily, and the size of the continuous area can be controlled by adjusting the set threshold; for example, the texture threshold is set to 0.5, then the area with a normalization coefficient less than 0.5 is regarded as a low texture area, or the texture threshold is set to 0.3, then the area with a normalization coefficient less than 0.3 is a low texture threshold; by adjusting the texture threshold, different degrees of texture areas in the image can be controlled as low texture areas.

[0135] In an embodiment, before dividing the image to be recognized into a plurality of pixel blocks, the method further includes:

[0136] The image to be recognized is acquired through a binocular camera.

[0137] refer to Figure 2 , a low texture area recognition device for an image, comprising:

[0138] A pixel division module, used to divide the image to be recognized into a number of pixel blocks;

[0139] A data calculation module, used to calculate the texture data of each of a plurality of pixel blocks;

[0140] A normalization module is used to normalize a number of texture data to obtain a normalization coefficient corresponding to each pixel block;

[0141] A comparison module, used for selecting a normalization coefficient less than a texture threshold from a plurality of normalization coefficients;

[0142] The low texture recognition module is used to select the pixel block corresponding to the normalization coefficient as the low texture area in the image.

[0143] In the method, device, storage medium and equipment for identifying low texture areas of images in the embodiments of the present invention, the device includes: dividing the acquired image into a number of pixel blocks through a pixel division module; the data calculation module calculates the texture data of the number of pixel blocks; then the normalization module normalizes the number of texture data to obtain the normalization coefficient corresponding to each pixel block; the comparison module compares each obtained normalization coefficient with a preset texture threshold, and regards the pixel blocks corresponding to the normalization coefficients less than the texture threshold as low texture areas in the image. The present application quickly identifies low texture areas in an image by regarding the pixel blocks corresponding to the normalization coefficients less than the texture threshold as low texture areas in the image.

[0144] Based on the above-mentioned method for identifying low-texture areas of images, this embodiment provides a computer-readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps in the method for identifying low-texture areas of images as in the above-mentioned embodiment.

[0145] Based on the above image low texture area recognition method, the present application also provides a terminal device, such as Figure 8As shown, it includes at least one processor (processor) 20; display screen 21; and memory (memory) 22, and may also include a communications interface (CommunicationsInterface) 23 and a bus 24. Among them, the processor 20, the display screen 21, the memory 22 and the communication interface 23 can communicate with each other through the bus 24. The display screen 21 is set to display the user guide interface preset in the initial setting mode. The communication interface 23 can transmit information. The processor 20 can call the logic instructions in the memory 22 to execute the low texture area recognition method of the image in the above embodiment.

[0146] In addition, the logic instructions in the memory 22 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.

[0147] The memory 22 is a computer-readable storage medium that can be configured to store software programs, computer executable programs, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 executes functional applications and data processing by running the software programs, instructions or modules stored in the memory 22, that is, implementing the methods in the above embodiments.

[0148] The memory 22 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc.

[0149] In addition, the memory 22 may include a high-speed random access memory and may also include a non-volatile memory, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes, or may be a transient storage medium.

[0150] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for identifying low-texture areas of an image, characterized in that: The following steps are involved: Divide the image to be recognized into several pixel blocks; Calculating the texture data of each of the plurality of pixel blocks respectively; Normalizing the plurality of texture data to obtain a normalization coefficient corresponding to each pixel block; Selecting a normalization coefficient that is smaller than a texture threshold from among the plurality of normalization coefficients; Selecting a pixel block corresponding to the normalization coefficient as a low texture area in the image; The step of dividing the image to be identified into a plurality of pixel blocks is as follows: Randomly select a pixel point in the image to be identified; Taking the pixel point as the center, intercepting the pixel block according to the preset pixel area; Repeat the process of randomly selecting another pixel point, taking the pixel point as the center again, and cutting out pixel blocks according to the preset pixel area until the image is divided into a plurality of pixel blocks; The respectively calculating the texture data of the plurality of pixel blocks comprises: Calculating the variance of a plurality of pixel blocks; Calculating texture coefficients of a plurality of the pixel blocks based on the variance, and using the texture coefficients as texture data of the pixel blocks; The variance formula for calculating the variance is: in, is the variance of the pixel block, n is the number of pixel blocks, x i For any pixel point, is the pixel average value of the intercepted pixel block; The texture coefficient formula for calculating the texture coefficient is: Among them, t x is the texture coefficient, t min and ε var For custom experience value; The normalization formula for calculating the normalization coefficient is: Among them, X is the normalization coefficient, x is the texture coefficient t x , max is the maximum value among the several texture coefficients, and min is the minimum value among the several texture coefficients.

2. The method for identifying low texture areas of an image according to claim 1, characterized in that: Calculating the texture data of each of the plurality of pixel blocks respectively includes: Calculate image entropy values ​​of each of the plurality of pixel blocks, and use the image entropy values ​​as texture data of the pixel blocks.

3. The method for identifying low texture areas of an image according to claim 2, characterized in that: Calculating the image entropy values ​​of a plurality of the pixel blocks by using an entropy formula, and solving the normalization coefficients of the pixel blocks by using a normalization formula; The entropy formula for calculating the image entropy value is: Among them, H is the image entropy value, p i is the resolution of the image, logp i The resolution p i The logarithm of The normalization formula for calculating the normalization coefficient is: Wherein, X is a normalization coefficient, x is an image entropy value H, max' is a maximum value among a plurality of image entropy values, and min' is a minimum value among a plurality of image entropy values.

4. The method for identifying low texture areas of an image according to claim 1, characterized in that: Before dividing the image to be identified into a plurality of pixel blocks, the method further includes: The image to be recognized is acquired through a binocular camera.

5. A low texture area recognition device for an image, characterized in that: include: A pixel division module is used to divide the image to be recognized into a number of pixel blocks; A data calculation module, used to calculate the texture data of each of the plurality of pixel blocks; A normalization module, used to perform normalization processing on a plurality of the texture data to obtain a normalization coefficient corresponding to each of the pixel blocks; A comparison module, used for selecting a normalization coefficient less than a texture threshold from a plurality of the normalization coefficients; A low texture recognition module, used for selecting a pixel block corresponding to the normalization coefficient as a low texture area in the image; The image to be identified is divided into a number of pixel blocks: Randomly select a pixel point in the image to be identified; Taking the pixel point as the center, intercepting the pixel block according to the preset pixel area; Repeat the process of randomly selecting another pixel point, taking the pixel point as the center again, and cutting out pixel blocks according to the preset pixel area until the image is divided into a plurality of pixel blocks; The respectively calculating the texture data of the plurality of pixel blocks comprises: Calculating the variance of a plurality of pixel blocks; Calculating texture coefficients of a plurality of the pixel blocks based on the variance, and using the texture coefficients as texture data of the pixel blocks; The variance formula for calculating the variance is: in, is the variance of the pixel block, n is the number of pixel blocks, x i For any pixel point, is the pixel average value of the intercepted pixel block; The texture coefficient formula for calculating the texture coefficient is: Among them, t x is the texture coefficient, t min and ε var For custom experience value; The normalization formula for calculating the normalization coefficient is: Among them, X is the normalization coefficient, x is the texture coefficient t x , max is the maximum value among the several texture coefficients, and min is the minimum value among the several texture coefficients.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the method for identifying low-texture areas of an image as described in any one of claims 1-4.

7. A terminal device, characterized in that: include: Processor, memory and communication bus; The memory stores a computer-readable program executable by the processor; The communication bus realizes the connection and communication between the processor and the memory; When the processor executes the computer-readable program, the steps in the method for identifying a low-texture area of ​​an image described in any one of claims 1 to 4 are implemented.