CN100452085C - Automatic recording method for recognising chess manual by image - Google Patents

Automatic recording method for recognising chess manual by image Download PDF

Info

Publication number
CN100452085C
CN100452085C CNB2006101616834A CN200610161683A CN100452085C CN 100452085 C CN100452085 C CN 100452085C CN B2006101616834 A CNB2006101616834 A CN B2006101616834A CN 200610161683 A CN200610161683 A CN 200610161683A CN 100452085 C CN100452085 C CN 100452085C
Authority
CN
China
Prior art keywords
image
chessboard
computing machine
chess
parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2006101616834A
Other languages
Chinese (zh)
Other versions
CN101000654A (en
Inventor
王小英
陈英革
王雷
尹震宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changshu Institute of Technology
Original Assignee
Changshu Institute of Technology
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 Changshu Institute of Technology filed Critical Changshu Institute of Technology
Priority to CNB2006101616834A priority Critical patent/CN100452085C/en
Publication of CN101000654A publication Critical patent/CN101000654A/en
Application granted granted Critical
Publication of CN100452085C publication Critical patent/CN100452085C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A method for identifying and recording chess manual automatically includes erecting image collection unit, fine-regulating said unit to be at optimum effect on image according to displayed image, calibrating distortion parameter of stored image, regulating brightness of calibrated image, identifying and recording chess manual by computer through identifying command issued by different player with means of pressing down timing clock.

Description

Automatic recording method for recognising chess manual by image
One, technical field
The present invention relates to a kind of image-recognizing method, especially a kind of automatic recording method for recognising chess manual by image.
Two, background technology
In the relatively large various board games of regular ratio, as: go.One innings of chess match is equipped with a plurality of staff such as judge, chess manual registrar and timekeeper usually, with record and the timing of finishing match.Record to chess manual can be described as a loaded down with trivial details job, and the time of playing chess usually wants several by tens hours, and the registrar will stare at chessboard all the time, and the step of playing chess noting with paper and pen step by step.This has just brought many inconvenience: too fast if the player begins, the registrar can be timely record, will cause omitting, as can not in time correcting, later process can't record; This manual record is to draw chess piece to and fro with the pen of different colours on a piece of paper, exists the coordinate of chess piece and the unclear situation of expression of color, not only influence the registrar and judge, and to the player in the future technical Analysis also cause difficulty; Beginning might repeatedly appear in the same position on the chessboard, grape, the situation of beginning again, just is difficult to like this reflect on the chess manual recording chart, chess manual can occur and express unclear situation; If match request is relayed in real time, this manually-operated mode will be pretty troublesome, needs the related work personnel constantly to hurry back and forth back and forth at the scene and between the relay chamber, not only can influence live real-time, and more can influence player's normal performance; If there is not the staff to help record, chess game finishes the back and by the person's of playing a game memory chess manual is carried out record, because the time is long, step number is many, is easy to take place deviation, owing to the inaccurate of process record causes that the matter in dispute to result of the match also happens occasionally.
Existing similar products like mainly is based on the method for Photoelectric Detection, punches on the grid of chessboard exactly, places optical detection device then inside, whether intercepts light by chess piece and judges whether have chess piece to drop on the respective coordinates point.But this device will be paid very big cost, because general big event specifies the chessboard of usefulness to involve great expense, strict to the chessboard quality, Da Kong words will be destroyed chessboard in the above, cause waste; And the chessboard through changing like this destroys original chessboard tag line, is easy to make player's generation illusion; Such system generally wants more than 300 photoelectric tube, and the complicated peripheral circuit of configuration, so overall cost is just very high; In addition, can't judge black mole or white chessman, also will discern by assistant software with photoelectric detection method, and the error rate height.
Three, summary of the invention
1, goal of the invention: fundamental purpose of the present invention be at occur in the present various board games can not be promptly and accurately record and relay this problem of heat, a kind of automatic recording method for recognising chess manual by image is provided, this method can be effectively, in time, exactly the variation of chess game is each time during the games discerned automatically and is noted, be reflected on the display screen simultaneously, overcome the deficiency of original recording method, improved the record efficiency of board game overall process greatly.
2, technical scheme: for realizing purpose of the present invention, a kind of automatic recording method for recognising chess manual by image of the present invention may further comprise the steps: (1) is rack-mount with image capture device, the center of its alignment lens chessboard, and making image capture device vertical with chessboard by rack-mount level meter, image capture device is connected with computer interface by cable; (2) on graphoscope, demonstrate chessboard putting position image, end when finely tuning to image effect the best to image capture device, take and preserve the image of chessboard putting position according to the image that shows; (3) distortion parameter of the image preserved is corrected, preserved the parameter of correcting distortion and through the image of overcorrection; (4) brightness of the image after correcting is adjusted, identified each bar mesh lines on the chessboard, adjust the grid array parameter of back preservation that finish through adjusting so that calculate function; (5) computing machine is pressed the instruction that timing clock sends by discerning different players, carries out identification and record to chess manual;
Wherein step (5) may further comprise the steps: step (50) is initial, and parameter, grid array parameter are corrected in the distortion that is written into preservation, and whether the check image collecting device can operate as normal, then provides prompting as cisco unity malfunction; Step (51) is imported chess game and match for information about on request on computers; Step (52) is clicked " starting the clock " button on computers, sets timer, and timer is picked up counting according to the information of input; Step (53) computing machine has judged whether that the player presses the timing clock button, if the player presses the button of oneself, to step (54); Otherwise continue to clock; Step (54) computing machine begins to deduct another one player's time, and the chessboard of this moment is carried out once photo taking and image is written into internal memory; Step (55) computing machine utilization is written into the distortion rectification parameter of preservation the image that is written into internal memory is carried out the distortion rectification; Step (56) computing machine carries out analyzing and processing to the image after correcting, and judges the color of chess piece; After step (57) computing machine is judged the color of chess piece, this situation of beginning is compared with the situation of beginning last time, thereby the chess piece that explanation makes new advances and shows the chess piece color that makes new advances and on display screen, and, be back to step (53) the coordinate of chess piece and color preservation.
3, beneficial effect: a kind of automatic recording method for recognising chess manual by image provided by the present invention the situation that has little time to write down will not occur by the effective of software and hardware automatically carried out at length record in time to the overall process of playing chess in conjunction with utilizing; Simultaneously this method uses image capture device that chessboard is taken, and can not destroy chessboard, or else needs intense light source and hundreds of photocell detection such as similar spotlight and locates to enclose circuit, greatly reduces cost.Also no longer need to be equipped with chess manual registrar and timekeeper, reduced staff and workload, guaranteed players' match of under comfortable environment, playing chess, can not produce the interference that psychology and body are managed the player.
Below in conjunction with accompanying drawing most preferred embodiment is described in detail.
Four, description of drawings
Fig. 1 is the supporting structure synoptic diagram that image capture device is installed
Fig. 2 is the timing clock circuit theory diagrams
Fig. 3 is for showing and adjust the process flow diagram of chessboard putting position image
Fig. 4 corrects for image fault and regulates process flow diagram
Fig. 5 regulates process flow diagram for brightness of image
Fig. 6 is the process flow diagram of computing machine to chess manual identification and record
Fig. 7 is a timer timing process flow diagram
Fig. 8 .1 is the image graph before correcting
Fig. 8 .2 is the image after correcting
The image that Fig. 9 photographs for image capture device.
Figure 10 is for being shown to user's chessboard after the system identification.
Five, embodiment
As shown in Figure 1, the 1st, image capture device, the 2nd, level meter; Chessboard is placed on external stent next door, and makes the center of image capture device camera lens perpendicular alignmnet chessboard, by level meter, vertical with chessboard with the calibration image collecting device.Image capture device is connected to computer interface by cable, after the correct connection hardware of user, and the driving that image capture device is installed on computers.After system's operation, image capture device is transferred to computing machine with signal through connection, is converted into the discernible data image signal of computing machine.Wherein image capture device can be CCD camera, CMOS camera or digital camera.
As Fig. 2 is timing clock circuit theory diagrams of the present invention.Whether circuit comprises single main circuit, detect the timing button and press, and the single-chip microcomputer plug-in calculates respectively player's time spent according to this, and adds up, and passes to computing machine by serial communication circuit; Power circuit is realized the power supply of timing clock system, and computer clock circuit is for single-chip microcomputer provides clock signal; Serial communication circuit is realized single-chip microcomputer and the automatic swap data of intercomputer.
Fig. 3 describes step 2 in detail, promptly shows and adjust the process flow diagram of chessboard putting position image.Step 20 is initial steps.Step 21 demonstrates the image of chessboard putting position on computer display; Step 22 user finely tunes image capture device according to the orientation that computer display image and chessboard are put, till satisfied to the chessboard putting position image that shows; If regulating image capture device, step 23 user finishes then execution in step 24; Otherwise continue to wait for user's adjusting, go to step 22; Step 24 pair current chessboard is taken an image with its called after picture, and form is .bmp, and finishes this step.
Fig. 4 describes step 3 in detail, because the inborn characteristic of image capture device, the barrel distortion of certain program can appear in its image of shooting, correct so this step is carried out distortion to the customer satisfaction system chessboard putting position image of preserving in the step 2, and preserve the parameter of correcting distortion and through the image of overcorrection.Concrete steps: step 30 is initial, computing machine is automatically with picture picture by name, form is that the file of .bmp is read in the internal memory, adopt polynomial expression address revised law to do the mapping transformation of image, promptly seek 1 A (coordinate (x on the fault image, y)) mapping relations of 1 A ' (coordinate (x ', y ')) on the theoretical image.A is r to the distance of image center O if set up an office; The A ' that then sets up an office is r ' to the distance of image center O.Then r can be expressed as:
r = x 2 + y 2
In order to improve the degree of accuracy that image is corrected, select for use biquadratic curve function fitting method to represent the relation of r and r ':
r′=ar 4+br 3+cr 2+dr+e
Collect the data on the image, obtaining above-mentioned five parameter a, b, c, d, the value of e in its substitution related software.Three some O, A, A ' should obtain following formula according to Similar Principle of Triangle point-blank:
x x ′ = y y ′ = r r ′
Can calculate the coordinate (x ', y ') of an A ' according to above-mentioned formula, promptly proofread and correct the coordinate of back point.Each point on the image is all moved with said method, if produce the shortcoming phenomenon in the new image then replenish with its contiguous point, will be with the image after obtaining correcting.Step 31 computing machine demonstrates the image after the rectification; If step 32 user can come the manual adjustments parameter to continue to adjust image by the operational computations machine to the image after correcting is dissatisfied; Step 33 is adjusted the image after the back computing machine that finishes shows rectification once more; If correcting, step 34 user finishes then execution in step 35; Otherwise continue image is corrected, go to step 32; Step 35 preserve to be corrected the parameter of distortion and through the image of overcorrection and finish this step.
Fig. 5 describes step 4 in detail, promptly the brightness of the image after correcting is adjusted, and identifies each bar mesh lines on the chessboard exactly so that calculate function.Step 40 is initial, and computing machine is loaded into the image through overcorrection in the internal memory, uses the value of an acquiescence that image is carried out binaryzation; Step 41 computing machine shows the image through binaryzation; Because chessboard and mesh lines have only two kinds of colors, so mesh lines will display after the binaryzation.If step 42 user shows through the image of binaryzation is dissatisfied and can further adjust the effect of binary image by the moving parameter that changes of operational computations tractor driver computing machine; Binary image after the step 43 computing machine demonstration adjustment parameter; If adjusting, step 44 user finishes then execution in step 45; Otherwise continue image is adjusted, go to step 42; Step 45 is carried out and to be calculated the trellis algorithm of chessboard automatically and calculate the mesh coordinate of chessboard and preserve and finish this step.
Fig. 6 describes step 5 in detail, and computing machine carries out identification and record to chess manual by discerning the instruction that different players send.Step 50 is initial, and parameter, grid array parameter are corrected in the distortion that is written into preservation, and whether the check image collecting device can operate as normal, then provides prompting as cisco unity malfunction; Step 51 is imported chess game and match for information about on request on computers; Step 52 is clicked " starting the clock " button on computers, sets timer, and timer is picked up counting according to the information of input; Step 53 computing machine has judged whether that the player presses the timing clock button, if the player presses the button of oneself, timing clock can send a character string to computing machine, this moment, the different character strings that the player sent was different, computing machine is which player supresses timing clock by discerning that this character string offers an explanation, to step 54; Otherwise continue to clock; Step 54 computing machine begins to deduct another one player's time, and the chessboard of this moment is carried out once photo taking and image is written into internal memory; Step 55 pair computing machine utilization is written into the distortion rectification parameter of preservation the image that is written into internal memory is carried out the distortion rectification; Step 56 computing machine carries out analyzing and processing to the image after correcting, and judges the color of chess piece; Its concrete grammar is: the formula of establishing colour brightness:
bright=B*0.299+G*0.587+R*0.114
Wherein bright is brightness value, R, and G, B are respectively the red of picture element, and be green, blue three color components.According to the chessboard mesh coordinate run-down chessboard that reads in the step 50, (x y) then calculates its coordinate (lower-left of four points on every side earlier whenever to read a mesh coordinate, upper left, the bottom right, upper right), a bright ' variable is set, and calculates bright ' according to following formula:
bright’=(B1*0.299+G1*0.587+R1*0.114)-(B*0.299+G*0.587+R*0.114)
B1 wherein, G1, R1 are the color of image in the step 50, B, G, R are the color of image in the step 54.Obtain as drawing a conclusion by analysis: if this point has fallen white chessman, the value of bright ' can be a negative value; If a black mole, then bright ' can be a positive value; If do not begin, bright ' can be that an absolute value is than all little number of top two number absolute values.According to these three threshold values, computing machine just can judging point (x, y) color of last chess piece.For fear of certain interference and the true situation of chess piece poor placement, (x states Rule of judgment if y) have two or more glyphs to close in four coordinates on every side, then decidable point (x, y) situation of beginning on to above-mentioned point.After step 57 computing machine is judged the color of chess piece, this situation of beginning is compared with the situation of beginning last time, thereby the chess piece that explanation makes new advances and shows the chess piece color that makes new advances and on display screen, and, be back to step 53 the coordinate of chess piece and color preservation.
Fig. 7 has described step 52, i.e. timer timing process flow diagram.After picking up counting, can finish until fixture by 521 timers according to the laws of the game official hour timing of setting always; If 522 setting-up times not to or the user do not press " chess game end " button, to step 521; If fixture to or the user press " chess game end " button, to step 523; 523 timers stop timing.

Claims (1)

1, a kind of automatic recording method for recognising chess manual by image is characterized in that this method may further comprise the steps:
(1) image capture device is rack-mount, the center of its alignment lens chessboard, and make image capture device vertical with chessboard by rack-mount level meter, image capture device is connected with computer interface by cable;
(2) on graphoscope, demonstrate chessboard putting position image, end when finely tuning to image effect the best to image capture device, take and preserve the image of chessboard putting position according to the image that shows;
(3) the image fault parameter that step (2) is preserved is corrected, and preserves parameter that distortion corrects and through the image of overcorrection;
(4) brightness of the image after correcting is adjusted, identified each bar mesh lines on the chessboard, adjust the grid array parameter of back preservation that finish through adjusting so that calculate function;
(5) computing machine is pressed the instruction that timing clock sends by discerning different players, carries out identification and record to chess manual;
Wherein step (5) may further comprise the steps:
(50) initial, parameter, grid array parameter are corrected in the distortion that is written into preservation, and whether the check image collecting device can operate as normal, then provides prompting as cisco unity malfunction;
(51) import chess game and match on computers for information about on request;
(52) click " starting the clock " button on computers, set timer, timer is picked up counting according to the information of input;
(53) computing machine has judged whether that the player presses the timing clock button, if the player presses the button of oneself, to step (54); Otherwise continue to clock;
(54) computing machine begins to deduct another one player's time, and the chessboard of this moment is carried out once photo taking and image is written into internal memory;
(55) the computing machine utilization distortion that is written into preservation is corrected parameter and the image that is written into internal memory is carried out distortion is corrected;
(56) computing machine carries out analyzing and processing to the image after correcting, and judges the color of chess piece on the whole chessboard;
(57) after computing machine is judged the color of chess piece, this situation of beginning is compared with the situation of beginning last time, thereby the chess piece that explanation makes new advances and, on corresponding coordinate on the display screen, show chess piece color that makes new advances and the serial number of beginning, and, be back to step (53) the coordinate of chess piece and color preservation.
CNB2006101616834A 2006-12-31 2006-12-31 Automatic recording method for recognising chess manual by image Expired - Fee Related CN100452085C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006101616834A CN100452085C (en) 2006-12-31 2006-12-31 Automatic recording method for recognising chess manual by image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006101616834A CN100452085C (en) 2006-12-31 2006-12-31 Automatic recording method for recognising chess manual by image

Publications (2)

Publication Number Publication Date
CN101000654A CN101000654A (en) 2007-07-18
CN100452085C true CN100452085C (en) 2009-01-14

Family

ID=38692620

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006101616834A Expired - Fee Related CN100452085C (en) 2006-12-31 2006-12-31 Automatic recording method for recognising chess manual by image

Country Status (1)

Country Link
CN (1) CN100452085C (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101303776B (en) * 2008-05-30 2011-05-11 吴宇豪 Automatic timing device for chessboard
CN101850178B (en) * 2010-04-22 2012-05-23 北京联合大学生物化学工程学院 Image identification based go set implement capable of automatic timing and notation
CN102184544B (en) * 2011-05-18 2012-10-24 北京联合大学生物化学工程学院 Method for correcting deformity and identifying image of go notation
CN102750538B (en) * 2012-05-16 2016-04-27 南京大学 A kind of weiqi game interpretation of result method based on image processing techniques
CN104998405B (en) * 2015-06-23 2018-02-02 周凡 A kind of go note spectrum processing method based on image recognition
CN105205447B (en) * 2015-08-22 2018-08-17 周立人 Go recognition methods based on go image and chessboard
CN107730522A (en) * 2017-10-12 2018-02-23 中科视拓(北京)科技有限公司 A kind of weiqi chess manual recognition methods based on image
CN107875625A (en) * 2017-11-23 2018-04-06 东华大学 A kind of voice-based Chinese chess is played chess device
CN108491804B (en) * 2018-03-27 2019-12-27 腾讯科技(深圳)有限公司 Chess game display method, related device and system
CN109145809B (en) * 2018-08-17 2022-03-08 腾讯科技(深圳)有限公司 Notation processing method and device and computer readable storage medium
CN112948619B (en) * 2021-03-01 2023-04-28 北京航空航天大学杭州创新研究院 Deep learning-based auxiliary input method and device for handwritten chess manual

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2267840Y (en) * 1996-06-01 1997-11-19 罗小梅 Chinese-chess chessboard capable of automatically countering rounds and timing
CN2527324Y (en) * 2002-03-26 2002-12-25 龙建 Chess set distinguished and operated by machine
CN1448884A (en) * 2003-04-24 2003-10-15 上海交通大学 Chessboard identification system based on visual sensation
CN1558375A (en) * 2004-01-19 2004-12-29 上海交通大学 Automatic timing device for playing chess
CN1764492A (en) * 2003-01-24 2006-04-26 Innde公司 System and devices for real-time electronic chess move recording, viewing and storage

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2267840Y (en) * 1996-06-01 1997-11-19 罗小梅 Chinese-chess chessboard capable of automatically countering rounds and timing
CN2527324Y (en) * 2002-03-26 2002-12-25 龙建 Chess set distinguished and operated by machine
CN1764492A (en) * 2003-01-24 2006-04-26 Innde公司 System and devices for real-time electronic chess move recording, viewing and storage
CN1448884A (en) * 2003-04-24 2003-10-15 上海交通大学 Chessboard identification system based on visual sensation
CN1558375A (en) * 2004-01-19 2004-12-29 上海交通大学 Automatic timing device for playing chess

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
机器人视觉伺服***的图像处理和标定技术研究. 刘小力,第40页至第50页,中国优秀博硕士学位论文全文数据库. 2006
机器人视觉伺服***的图像处理和标定技术研究. 刘小力,第40页至第50页,中国优秀博硕士学位论文全文数据库. 2006 *

Also Published As

Publication number Publication date
CN101000654A (en) 2007-07-18

Similar Documents

Publication Publication Date Title
CN100452085C (en) Automatic recording method for recognising chess manual by image
US7123755B2 (en) Image input apparatus, subject identification system, subject verification system and image input method
CN102622108B (en) A kind of interactive projection system and its implementation
CN107507247B (en) A kind of real-time dynamic autoization scaling method of projected keyboard
CN102016771B (en) Interactive input system with controlled lighting
CN102749794B (en) Full-automatic DLP (Digital Light Processing) light machine position adjusting method and device
CN105955011A (en) Method and device for intelligently calibrating time
CN108363519B (en) Distributed infrared visual detection and projection fusion automatic correction touch display system
JP6295452B2 (en) Crop development support device and program thereof
CN101850178B (en) Image identification based go set implement capable of automatic timing and notation
JP2003085542A (en) Method and device for correcting image data
CN109849008A (en) A kind of robot checking method and system based on national treasury
CN112929623B (en) Lens shadow repairing method and device applied to whole screen in correction process
US20200077059A1 (en) Display apparatus, display system, and method for controlling display apparatus
CN102419861A (en) Color image correcting method based on topology subdivision of uniform color space
WO2021226907A1 (en) Plant growth identification method and system therefor
CN202584030U (en) Interactive projection system and shooting game equipment
CN203444497U (en) Finger vein and fingerprint acquisition integrated apparatus
CN101980299A (en) Chessboard calibration-based camera mapping method
CN205984220U (en) Portable jam -proof formula is infrared to ground projection advertisement interactive system
US11748702B2 (en) Methods of determining status of position in shelf, shelves and non-transitory computer-readable storage media
CN108718532A (en) Information processing unit, information processing method and program
CN108052213A (en) Position indication method, device and system
CN203225818U (en) Image processing device capable of scanning two rows of data synchronously
CN108700403A (en) Information processing unit, information processing method and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090114

Termination date: 20141231

EXPY Termination of patent right or utility model