WO2018120097A1 - Procédé et système basés sur la vision artificielle pour reconnaître une pièce noire et une pièce blanche - Google Patents

Procédé et système basés sur la vision artificielle pour reconnaître une pièce noire et une pièce blanche Download PDF

Info

Publication number
WO2018120097A1
WO2018120097A1 PCT/CN2016/113678 CN2016113678W WO2018120097A1 WO 2018120097 A1 WO2018120097 A1 WO 2018120097A1 CN 2016113678 W CN2016113678 W CN 2016113678W WO 2018120097 A1 WO2018120097 A1 WO 2018120097A1
Authority
WO
WIPO (PCT)
Prior art keywords
gray value
value
average gray
detection area
image
Prior art date
Application number
PCT/CN2016/113678
Other languages
English (en)
Chinese (zh)
Inventor
牛立涛
Original Assignee
深圳配天智能技术研究院有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳配天智能技术研究院有限公司 filed Critical 深圳配天智能技术研究院有限公司
Priority to CN201680026892.XA priority Critical patent/CN107690658B/zh
Priority to PCT/CN2016/113678 priority patent/WO2018120097A1/fr
Publication of WO2018120097A1 publication Critical patent/WO2018120097A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/56Extraction of image or video features relating to colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding

Definitions

  • Embodiments of the present invention relate to the field of image recognition technologies, and in particular, to a black and white sub-identification method and system based on computer vision.
  • the game system of various types of robots is increasingly rich.
  • the traditional means of detecting chess pieces in the traditional game system is to place various sensors on the board, such as photosensitive sensors or Hall sensors. This detection method requires the chess pieces and the chessboard. The transformation will result in a corresponding increase in costs and a complicated construction.
  • the visual-based chessboard recognition system can not only reduce the cost of transforming the chess pieces and the chessboard, but also make the game system more concise and easy to maintain, and more and more popularization.
  • the existing visual-based black and white chess recognition system has the intensity of the light source. Uniformity and stability have higher requirements, and the requirements for lighting conditions are also more demanding, otherwise it is prone to false detection.
  • the embodiment of the invention provides a black-and-white sub-identification method and system based on computer vision, so as to solve the technical problem of the false detection phenomenon caused by the light factor in the prior art visual-based black and white chess recognition system.
  • a technical solution adopted by the embodiment of the present invention is to provide a black and white sub-identification method based on computer vision, the method comprising:
  • the step of comparing the first region average gray value with the difference value and the summation value, and further determining the falling state of the first detection region includes:
  • the first detection region is provided with a black child, and if the first region average gray value is greater than the summation value, the first A white sub is disposed in the detection area, and if the first area average gray value is between the difference and the summation value, the first detection area is in a sub-state.
  • the method further comprises:
  • the determination threshold is a product of a reference determination threshold and a one-hund score, wherein the difference between the actual average chessboard grayscale value and the reference chessboard average grayscale value is smaller, and the percentage is smaller.
  • the determination threshold is calculated by the following formula:
  • T abs (H b - abs (HH b )) ⁇ T b / H b ;
  • T is the decision threshold
  • H b is the reference checkerboard average gray value
  • T b is the reference decision threshold
  • H is the actual checkerboard average gray value
  • abs is an absolute value function
  • the method for determining the reference determination threshold includes:
  • the reference determination threshold is set based on the reference checkerboard average grayscale value, the reference grayscale value of the sunspot, and the reference grayscale value of the white matter.
  • the reference illumination condition is such that the reference checkerboard average gray value is between 100 and 150, and the reference gray value of the sunspot is less than the reference checkerboard average gray value exceeds 50, the white matter
  • the reference grayscale value is greater than the illumination condition in which the reference checkerboard average grayscale value exceeds 50.
  • the method further comprises: acquiring actual ambient light brightness under the actual lighting condition;
  • the determination threshold the difference between the actual ambient light brightness and the reference ambient light brightness, the smaller the determination threshold.
  • the step of setting the first detection area and the second detection area on the image to be identified includes: setting the first detection area and the second detection area respectively at each grid point of the board And determining a fall state of each of the grid points, wherein the first detection area and the second detection area are set to be square, and the width of the first detection area is equal to the sunspot and/or the The diameter of the white, the width of the second detection area is equal to the three grid widths of the board.
  • the method further includes: generating corresponding characters according to the determined falling state of each of the grid points, thereby forming a character string indicating a falling state of all the grid points, wherein different falling sub-states are Different characters are represented.
  • a technical solution adopted by the embodiment of the present invention is to provide a black and white sub-identification system based on computer vision, the system comprising an image acquisition device and an image processor, wherein the image acquisition device is used in actual Acquiring an image to be recognized of the board in an illumination condition; the image processor is configured to set a first detection area and a second detection area on the image to be identified, and calculate the image to be recognized in the first detection area a first region average gray value and a second region average gray value of the image to be identified in the second detection region, wherein an area of the second detection region is larger than the first detection region and surrounds the a first detection area, the image processor further calculating a difference between the average grayscale value of the second region and the determination threshold, and a summation value of the average grayscale value of the second region and the determination threshold, and The first region average gray value is compared with the difference value and the summation value, thereby determining a falling state of the first detection region.
  • the comparison result of the image processor is that the average grayscale value of the first region is smaller than the difference, it is determined that a black spot is set in the first detection region, and if the comparison result of the image processor is If the first region average gray value is greater than the summation value, it is determined that the first detection region is provided with white, if the comparison result of the image processor is that the first region average gray value is between And between the difference value and the summation value, determining that the first detection area is in a sub-state.
  • the image capture device is further configured to acquire an adjusted reference image when the checkerboard is in a sub-state without the sub-state, and the image processor calculates an actual checkerboard average of the checkboard according to the adjusted reference image. a gray value, and determining the decision threshold based on the actual checkerboard average grayscale value and a reference checkerboard average grayscale value under the reference illumination condition, wherein the actual checkerboard average grayscale value and the reference checkerboard average The larger the difference in the gray value, the smaller the decision threshold.
  • the determination threshold is a product of a reference determination threshold and a one hundred fraction, wherein the actual chess The greater the difference between the disc average gray value and the reference board average gray value, the smaller the percentage.
  • the determination threshold is calculated by the following formula:
  • T abs (H b - abs (HH b )) ⁇ T b / H b ;
  • T is the decision threshold
  • H b is the reference checkerboard average gray value
  • T b is the reference decision threshold
  • H is the actual checkerboard average gray value
  • abs is an absolute value function
  • the image capture device is further configured to acquire, according to a reference illumination condition, a first reference image when the checkerboard is in a sub-state, and obtain, when the checkerboard is set, a black and white when the checkerboard is set. a second reference image, the image processor further calculating the reference chessboard average gray value of the chessboard according to the first reference image, calculating a reference grayscale value of the sunspot according to the second reference image, and the The reference gradation value of the white matter, and further setting the reference determination threshold value based on the reference checkerboard average gradation value, the reference gradation value of the sunspot, and the reference gradation value of the white matter.
  • the reference illumination condition is such that the reference checkerboard average gray value is between 100 and 150, and the reference gray value of the sunspot is less than the reference checkerboard average gray value exceeds 50, the white matter
  • the reference grayscale value is greater than the illumination condition in which the reference checkerboard average grayscale value exceeds 50.
  • system further comprises a light sensor for acquiring actual ambient light brightness under the actual lighting condition, the image processor according to the actual ambient light brightness and the reference ambient light brightness under the reference lighting condition
  • the determination threshold is adjusted, and the difference between the actual ambient light brightness and the reference ambient light brightness is larger, and the determination threshold is smaller.
  • the image processor sets the first detection area and the second detection area respectively at each grid point to be detected of the board, and further determines a falling state of each grid point to be detected.
  • the first detection area and the second detection area are arranged in a square shape, and the width of the first detection area is equal to the diameter of the sunspot and/or the white matter, and the width of the second detection area is equal to The three grid widths of the board.
  • the image processor respectively generates corresponding characters according to the determined falling state of each of the to-be-detected grid points, thereby forming a character string representing all the falling state of the grid point to be detected, wherein different The drop state is represented by different characters.
  • the beneficial effects of the embodiment of the present invention are: in the computer vision-based black-and-white sub-identification method and system provided by the embodiment of the present invention, the difference between the average gray value of the second region and the determination threshold is calculated according to the determination threshold value. And the summation value of the two, and then comparing the average gray value of the first region with the difference and the sum value, thereby determining the state of the falling of the first detection region, because the determination threshold is set according to the actual environment, so that the The method is adapted to different lighting conditions and reduces false detection due to light factors. Improve the recognition accuracy of black and white.
  • FIG. 1 is a schematic flow chart of a first embodiment of a computer vision-based black and white sub-identification method provided by the present invention
  • FIG. 2 is a schematic structural view of a first detection area and a second detection area in the first embodiment
  • FIG. 3 is a schematic flow chart of a second embodiment of a computer vision-based black and white sub-identification method provided by the present invention.
  • FIG. 4 is a partial flow chart of a third embodiment of a computer vision-based black and white sub-identification method provided by the present invention.
  • FIG. 5 is a partial flow chart of a fourth embodiment of a computer vision-based black and white sub-identification method provided by the present invention.
  • FIG. 6 is a schematic flow chart of a fifth embodiment of a computer vision-based black and white sub-identification method provided by the present invention.
  • FIG. 7 is a schematic structural diagram of a computer vision-based black and white sub-identification system according to a first embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a second embodiment of a computer vision based black and white sub-identification system provided by the present invention.
  • FIG. 1 is a schematic flowchart of a computer vision-based black and white sub-identification method according to a first embodiment of the present invention
  • FIG. 2 is a first detection area and a second detection area in the first embodiment.
  • the difference between the average gray value of the second region and the preset determination threshold and the sum of the two are calculated, and then the average gray value of the first region is compared with the difference and the sum. Further, the state of the falling of the first detection area is determined.
  • the calibration method of this embodiment includes the following steps:
  • Step S11 Acquire an image to be recognized of the board under actual lighting conditions.
  • the image to be recognized is the image of the entire board, including the 19*19 grid.
  • the line area (see the grid line area of Figure 2), not just the image of the area to be detected.
  • Step S12 setting a first detection area and a second detection area on the image to be identified, wherein the area of the second detection area is larger than the first detection area and surrounds the first detection area.
  • setting the first detection area and the second detection area on the image to be identified means that the first detection area and the second detection area are respectively set at each grid point of the board, and then each grid point is further The falling state is determined, wherein the first detecting area and the second detecting area are arranged in a square shape, and the width of the first detecting area is equal to the diameter of the black and/or white, and the width of the second detecting area is equal to three grids of the board The width, where the three grid widths are specifically two full grid widths plus two half grid widths.
  • the first detection area and the second detection area are concentrically arranged, that is, the centers of the first detection area and the second detection area are consistent; when the first detection area is located at the edge of the board
  • the first detection area and the second detection area may be concentrically arranged, or may be set differently.
  • the second detection area does not exceed the checkerboard
  • the first detection area and the second detection area may be concentrically set.
  • the first detection area and the second detection area may be disposed differently, and the center of the first detection area is farther from the center of the second detection area than the edge of the board.
  • Step S13 calculating a first region average gray value of the image to be recognized in the first detection area and a second region average gray value of the image to be identified in the second detection area.
  • the gray value refers to the color depth or the difference between light and dark in the black and white image.
  • the gray value ranges from 0 to 255, where white is 255 and black is 0.
  • the average gray value is obtained by summing the gray values of all the pixels and dividing by the sum of the number of pixels, thereby obtaining the first region average gray value H n and the image to be recognized in the first detection region.
  • Step S14 Calculating a difference between the second region average gray value and the preset determination threshold and a summation value of the second region average gray value and the preset determination threshold.
  • the decision threshold can be fixed.
  • the determination threshold is a fixed value set according to experience, or a reference determination threshold under reference illumination conditions, wherein the specific determination manner of the reference determination threshold is as follows.
  • the determination threshold may also be changed, for example, calculated according to a preset algorithm, and the specific calculation manner of calculating the determination threshold according to a preset algorithm is as follows.
  • the unit of the determination threshold is a gray value, and the determination threshold is set to T, and the difference between the average gray value of the second region and the determination threshold is calculated as (H m -T), the average gray value of the second region and the determination threshold.
  • the summed value is set to (H m +T).
  • Step S15 comparing the first region average gray value with the difference value and the summation value, thereby determining the falling state of the first detection region.
  • the determination threshold since the determination threshold is provided, the difference between the average gray value of the second region and the determination threshold and the sum of the two values are calculated, and then The first region average gray value is compared with the difference value and the summation value, thereby determining the falling state of the first detection region, because the determination threshold is set according to the actual environment, so that the method is adapted to different lighting conditions, reducing The false detection caused by the light factor improves the recognition accuracy of the black and white sub-score.
  • the step S15 is further specifically: if the first region average gray value is less than the difference, the first detection region is provided with a sunspot, and if the first region average gray value is greater than the summation value, the first detection region is set. There is a white sub-, if the first region average gray value is between the difference and the summation value, the first detection region is in a sub-state.
  • the first detection region is provided with a sunspot; if the first region average gray value is greater than the summation value , that is, (H n >(H m +T)), white matter is set in the first detection region; if the average gray value of the first region is between the difference and the summation value, ie ((H m -T) ) ⁇ H n ⁇ (H m + T)), the first detection area is in a sub-state.
  • FIG. 3 is a schematic flowchart diagram of a second embodiment of a computer vision-based black and white sub-identification method provided by the present invention.
  • the determination threshold is further determined based on the actual board average gray value and the reference board average gray value under the reference lighting condition.
  • the calibration method of this embodiment includes the following steps:
  • Steps S21-S25 are substantially the same as steps S11-S15 of the first embodiment, and are not described herein again.
  • the difference between this embodiment and the first embodiment is that the embodiment further includes the following steps before step S21:
  • Step S201 Acquire an adjustment reference image when the board is in a sub-state without being in actual lighting conditions.
  • the adjustment reference image is obtained when the board is in the sub-state.
  • the actual lighting conditions include excessive light, too dark light, uneven light or unstable light.
  • it means that there is no chessboard. Falling into the sunspot or white, adjusting the reference image is just a 19*19 gridline area.
  • Step S202 Calculate the actual average gray value of the chessboard according to the adjusted reference image.
  • the actual average gray value H of the board of the 19*19 grid line is calculated.
  • Step S203 determining a determination threshold according to the actual checkerboard average gray value and the reference checkerboard average gray value under the reference illumination condition, wherein the difference between the actual checkerboard average grayscale value and the reference checkerboard average grayscale value is larger, and the determination threshold is smaller.
  • the image to be recognized of the board is obtained under a preset set of illumination conditions, and the black sub-gray value and the white sub-gray value on the to-be-identified image satisfy a preset condition, and the set of illumination conditions is a reference illumination condition.
  • the average gray value of the image to be recognized that acquires the board without the sub-state under the reference illumination condition is the average gray value of the reference board.
  • the reference board average gray value is a fixed value.
  • the preset condition may be that the average value of the reference board is within a specified range.
  • the determination threshold is a product of the reference determination threshold and the one hundred fraction, wherein the difference between the actual average chessboard gradation value and the reference chessboard average gradation value is larger, and the percentage is smaller.
  • the specific calculation method of the reference determination threshold please refer to the following.
  • the decision threshold is calculated by the following formula:
  • T abs (H b - abs (HH b )) ⁇ T b / H b ;
  • T is the decision threshold
  • H b is the reference checkerboard average gray value
  • T b is the reference decision threshold
  • H is the actual checkerboard average gray value
  • abs is the absolute value function.
  • the determination threshold T is an integer.
  • FIG. 4 is a schematic flowchart of determining a reference determination threshold in a computer vision-based black and white sub-identification method provided by the present invention.
  • the reference determination threshold is set based on the reference checkerboard average gradation value, the reference gradation value of the sunspot, and the reference gradation value of the white matter.
  • the calibration method of this embodiment includes the following steps:
  • Step S301 Acquire a first reference image when the board is in a sub-state without under the reference illumination condition.
  • the reference illumination condition is such that the reference board average gray value is between 100 and 150, and the reference gray value of the sunspot is less than the reference board average gray value exceeds 50, and the white matter reference gray value is greater than the reference board average gray value exceeds 50 lighting conditions.
  • the reference illumination condition refers to the first reference image when the board is in the sub-state without natural light and the light is uniform, that is, a gray image or a color image.
  • Step S302 Calculate a reference chessboard average gray value of the board according to the first reference image.
  • Gray level refers to black and white display
  • the difference between the brightness and the darkness of the displayed pixel points is different in color display in the color display.
  • the gray level depends on the number of bits of the refresh memory cell corresponding to each pixel and the performance of the display itself. When the display is black and white, the gray level can be directly obtained; when the display is colored, calculation is required to obtain the gray level.
  • RGB red, green and blue
  • Gray R * 0.3 + G * 0.59 + B * 0.11;
  • Gray (R * 30 + G * 59 + B * 11) / 100;
  • Gray (R * 77 + G * 151 + B * 28) >> 8;
  • R, G, and B in the original RGB (R, G, B) are uniformly replaced by Gray, and generally obtained by the average method.
  • the average gray value of the reference board in the reference lighting condition is generally between 100 and 150, and may be 120, 130 or 140.
  • the actual measured reference board average gray value exceeds 100 to 150 under the reference illumination condition, it is set such that the reference board average gray value is between 100 and 150.
  • Step S303 Acquire a second reference image when the board is provided with sunspots and whites under the reference illumination condition.
  • Step S304 Calculate the reference gray value of the sunspot and the reference gray value of the white matter according to the second reference image.
  • the sunspots and whites were taken under reference lighting conditions to obtain the reference gray values of the sunspots and whites, respectively. See the above for specific calculation methods.
  • the reference gray value of the sunspot is less than 50 of the reference board average gray value, and the white matter reference gray value is greater than the reference board average gray value by more than 50.
  • the reference gray value of the sunspot ranges from 0 to 50, optionally 20, 30 or 40; the reference gray value of the white sub-range ranges from 200 to 255, optionally 210, 225 or 235.
  • Step S305 The reference determination threshold is set based on the reference checkerboard average gradation value, the reference gradation value of the sunspot, and the reference gradation value of the white matter.
  • the reference determination threshold is set according to the reference checkerboard average gray value, the reference gray value of the sunspot, and the reference gray value of the white matter, wherein the reference gray value of the sunspot and the reference gray value of the white matter do not change much, and the reference is mainly made to the reference chessboard. Average gray value.
  • the reference determination threshold is one-half of a difference between a reference chessboard average gray value and a sunspot reference gray value or a difference between a white sub-reference gray value and a reference chessboard average gray value.
  • One of the points, at this time, according to the benchmark decision threshold can better separate the state of the board black, white or no child; wherein the two differences are subject to the smaller, and one-half of the difference is rounded to Integer.
  • the reference gray value of the sunspot is 25
  • the reference gray value of the white matter is 235
  • the average value of the reference chessboard is 125
  • the reference determination threshold can be determined to be one-half of the difference 100, and the reference is obtained.
  • the decision threshold is 50.
  • the gray value is 75 or less for the sunspot, the gray value is 175 or more for the white, and the gray value is between 75 and 175.
  • the steps of calculating the reference chessboard average gray value and the reference determination threshold are added, so that the determination threshold is based on the reference chessboard average gray value and the reference.
  • the decision threshold is set such that the method is further adapted to the light conditions of natural light, further reducing false detections due to the light factor of the checkerboard.
  • FIG. 5 is a partial flow chart of a fourth embodiment of a computer vision-based black and white sub-identification method provided by the present invention.
  • the determination threshold is adjusted by the actual ambient light luminance and the reference ambient light luminance under the reference illumination conditions.
  • the calibration method of this embodiment includes the following steps:
  • step S201 - step S203 is replaced with step S401 - step S402:
  • Step S401 Acquire actual ambient light brightness under actual lighting conditions.
  • Luminance refers to the physical quantity of the illuminant surface, and the unit of brightness is candela/square meter (cd/m2), which is the human perception of the intensity of light. Adjusting the decision threshold based on the actual ambient light brightness and the reference ambient light level under the reference illumination conditions is another embodiment.
  • Step S402 The determination threshold is adjusted according to the actual ambient light brightness and the reference ambient light brightness under the reference illumination condition, and the difference between the actual ambient light brightness and the reference ambient light brightness is larger, and the determination threshold is smaller.
  • FIG. 6 is a schematic flowchart diagram of a fifth embodiment of a computer vision-based black-and-white sub-identification method provided by the present invention.
  • the determination threshold is adjusted in accordance with the actual ambient light luminance and the reference ambient light luminance under the reference illumination conditions.
  • the calibration method of this embodiment includes the following steps:
  • Steps S51-S55 are substantially the same as steps S11-S15 of the first embodiment, and are not described herein again.
  • the difference between this embodiment and the first embodiment is that the embodiment further includes after step S55:
  • Step S56 respectively generate corresponding characters according to the determined falling state of each grid point, thereby forming a character string indicating the falling state of all the grid points, wherein different falling sub-states are represented by different characters.
  • setting the first detection area and the second detection area on the image to be identified means that the first detection area and the second detection area are respectively set on each grid point of the board, and then the falling state of each grid point is further Determining, wherein the first detection area and the second detection area are arranged in a square shape, and the width of the first detection area is equal to the diameter of the black and/or white, and the width of the second detection area is greater than or equal to the two grid widths of the board .
  • the width of the second detection area is greater than the width of the two grids of the board, including the area of 3*3.
  • the corresponding character is generated as n. Includes three.
  • the result is packed before the output, which can be started from the upper left corner and packed in rows, for example, the result of the 3x3 grid is packaged as the string nnnbnwnnn, and the string can be sent out.
  • FIG. 7 is a schematic structural diagram of a computer vision-based black and white sub-identification system according to a first embodiment of the present invention.
  • the computer vision-based black and white sub-identification system 10 includes an image acquisition device 11 and an image processor 13, and the image acquisition device 11 is electrically connected to the image processor 13, wherein the image acquisition device 11 is composed of a camera and a lens.
  • the image acquisition device 11 is composed of a camera and a lens.
  • it is a CCD camera and a CCTV lens ("Closed Circuit Television", CCTV for short).
  • the CCTV lens is a lens used by a closed circuit television, and can also be called a surveillance lens.
  • the CCD camera is mounted at an appropriate distance directly above the board, with a CCTV lens of appropriate focal length to enable the CCD camera to capture the entire board exactly;
  • the image processor 13 is composed of a visual industrial control machine and visual processing software.
  • the image capturing device 11 is configured to acquire an image to be recognized of the board under actual lighting conditions; the image processor 13 is configured to set a first detecting area and a second detecting area on the image to be recognized, and calculate an image to be recognized. a first region average gray value in the first detection area and a second region average gray value in the second detection area, wherein the area of the second detection area is larger than the first detection area and surrounds the first detection.
  • the image processor 13 further calculates a difference between the average gray value of the second region and the determination threshold, and a sum of the average gray value of the second region and the determination threshold, and compares the average gray value of the first region with the difference The summation value is compared to determine the drop state of the first detection area, wherein the difference between the actual illumination condition and the reference illumination condition is larger, and the determination threshold is smaller.
  • the image acquisition device 11 is further configured to: when the actual illumination condition is obtained, obtain an adjustment reference image when the board is in a sub-state, obtain a first reference image when the board is in a sub-state under the reference illumination condition, and under the reference illumination condition Obtain a second reference image when the board is set with sunspots and whites.
  • the other corresponding steps in the foregoing method embodiment are all performed by the image processor 13 of the identification system 10. Therefore, the image processor 13 will not be described here. For details, refer to the description of the corresponding steps above.
  • FIG. 8 is a schematic structural diagram of a second embodiment of a computer vision based black and white sub-identification system provided by the present invention.
  • the computer vision based black and white sub-identification system 20 further includes a light sensor 22, and the image capture device 21 and the light sensor 22 are electrically coupled to the image processor 23, respectively.
  • the photosensor 22 of the present embodiment is used to obtain the actual ambient light brightness under actual illumination conditions, and the image processor 23 determines the determination threshold according to the actual ambient light brightness and the reference ambient light brightness under the reference illumination condition, the actual ambient light brightness and the reference environment. The greater the difference in brightness, the smaller the decision threshold.
  • the light sensor 22 is a natural light sensor, that is, a solar light sensor.
  • the solar sensor can identify 180 degrees in the horizontal and vertical directions, or specify the angle; it can also identify the location of the sun and identify cloudy, cloudy, semi-cloudy, sunny and evening days; tracking position recognition can also be performed.
  • the lightness measurement range of the photosensor 22 is 0-100 cd/m2.
  • the image capturing device 21 and the light sensor 22 may be used in combination, and a specific light source may be further added to improve the lighting conditions, or only natural light may be used instead of the light source.

Landscapes

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

Abstract

Des modes de réalisation de la présente invention concernent un procédé et un système basés sur la vision artificielle pour reconnaître une pièce noire et une pièce blanche. Le procédé consiste à : obtenir une image à reconnaître sur un échiquier dans une condition de lumière réelle; agencer une première région de détection et une seconde région de détection sur l'image à reconnaître; calculer une valeur d'échelle de gris moyenne de première région dans la première région de détection et une valeur d'échelle de gris moyenne de seconde région dans la seconde région de détection; déterminer une différence et une somme entre la valeur d'échelle de gris moyenne de seconde région et un seuil de détermination prédéfini; comparer la valeur d'échelle de gris moyenne de première région à la différence et à la somme, de façon à déterminer un état de mouvement de pièce d'échec dans la première région de détection. De cette manière, dans le procédé, le seuil de détermination est réglé selon un environnement réel, de telle sorte que le procédé est applicable à différentes conditions de lumière, ce qui permet de réduire les détections défectueuses provoquées par un facteur de lumière, et d'améliorer le taux de précision pour reconnaître une pièce noire et une pièce blanche.
PCT/CN2016/113678 2016-12-30 2016-12-30 Procédé et système basés sur la vision artificielle pour reconnaître une pièce noire et une pièce blanche WO2018120097A1 (fr)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201680026892.XA CN107690658B (zh) 2016-12-30 2016-12-30 基于计算机视觉的黑白子识别方法及***
PCT/CN2016/113678 WO2018120097A1 (fr) 2016-12-30 2016-12-30 Procédé et système basés sur la vision artificielle pour reconnaître une pièce noire et une pièce blanche

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/113678 WO2018120097A1 (fr) 2016-12-30 2016-12-30 Procédé et système basés sur la vision artificielle pour reconnaître une pièce noire et une pièce blanche

Publications (1)

Publication Number Publication Date
WO2018120097A1 true WO2018120097A1 (fr) 2018-07-05

Family

ID=61151118

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/113678 WO2018120097A1 (fr) 2016-12-30 2016-12-30 Procédé et système basés sur la vision artificielle pour reconnaître une pièce noire et une pièce blanche

Country Status (2)

Country Link
CN (1) CN107690658B (fr)
WO (1) WO2018120097A1 (fr)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109044845B (zh) * 2018-09-29 2021-11-16 河北盛世天昕电子科技有限公司 一种配药余量告警方法及装置
CN110349139A (zh) * 2019-07-02 2019-10-18 芜湖启迪睿视信息技术有限公司 一种基于神经网络分割的包装杂项检测方法
CN110487801B (zh) * 2019-07-30 2022-07-19 厦门三安光电有限公司 识别石墨盘高温烘烤结果的方法、装置、设备及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1448884A (zh) * 2003-04-24 2003-10-15 上海交通大学 基于视觉的棋盘识别***
CN102184544A (zh) * 2011-05-18 2011-09-14 北京联合大学生物化学工程学院 校畸和识别围棋棋谱图像的方法
CN105205447A (zh) * 2015-08-22 2015-12-30 周立人 基于围棋图像的围棋识别方法以及棋盘

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102614655A (zh) * 2012-03-06 2012-08-01 南京航空航天大学 围棋自动数字仪及应用于其上的棋局胜负判断方法
US9488736B2 (en) * 2012-12-28 2016-11-08 Trimble Navigation Limited Locally measured movement smoothing of GNSS position fixes

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1448884A (zh) * 2003-04-24 2003-10-15 上海交通大学 基于视觉的棋盘识别***
CN102184544A (zh) * 2011-05-18 2011-09-14 北京联合大学生物化学工程学院 校畸和识别围棋棋谱图像的方法
CN105205447A (zh) * 2015-08-22 2015-12-30 周立人 基于围棋图像的围棋识别方法以及棋盘

Also Published As

Publication number Publication date
CN107690658A (zh) 2018-02-13
CN107690658B (zh) 2021-02-26

Similar Documents

Publication Publication Date Title
CN107507571B (zh) 一种对amoled进行外部光学补偿的方法及装置
CN101770646B (zh) 基于Bayer RGB图像的边缘检测方法
CN105306843B (zh) 一种图像传感器的坏点处理方法及***
KR102346522B1 (ko) 영상 처리 장치 및 그것의 자동 화이트 밸런싱 방법
WO2016150004A1 (fr) Dispositif et procédé de traitement d'une image à afficher sur un affichage à oled
KR20140070120A (ko) 디스플레이 장치의 색 보정 장치 및 그 보정 방법
KR101941801B1 (ko) Led 디스플레이에 이용되는 영상 처리 방법 및 장치
WO2018120097A1 (fr) Procédé et système basés sur la vision artificielle pour reconnaître une pièce noire et une pièce blanche
WO2013135033A1 (fr) Système de contrôle en ligne de déformation de tunnel basé sur l'analyse d'images et son application
TWI532385B (zh) 白平衡處理方法及其處理裝置
WO2022089082A1 (fr) Procédé d'ajustement d'image d'affichage, dispositif terminal et support de stockage lisible par ordinateur
JP2009171008A (ja) 色再現装置および色再現プログラム
CN104318266B (zh) 一种图像智能分析处理预警方法
CN106204602B (zh) 元件反件检测方法和***
KR102022699B1 (ko) 영상 제어 표시 장치 및 영상 제어 방법
TWI670977B (zh) 不良像素補償方法與裝置
CN110784701B (zh) 显示设备及其图像处理方法
JP5468914B2 (ja) 大型映像表示装置の制御装置
WO2019041664A1 (fr) Procédé et dispositif de mesure pour mesurer un panneau d'affichage
CN102968177B (zh) 手势感测方法
US8189068B2 (en) Apparatus and method for detecting flicker noise and computer readable medium stored thereon computer executable instructions for performing the method
US20200029016A1 (en) Moving object monitoring device and moving object monitoring system
TWI698129B (zh) 影像處理方法及其電子裝置
KR101621201B1 (ko) 웨어러블 프로젝션 장치 및 프로젝션 방법
TW201418671A (zh) 水位量測方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16925757

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16925757

Country of ref document: EP

Kind code of ref document: A1