Yoyo’s status report for 4/25

This week I worked on system integration with my teammates. On the physical board we added frosted acrylic pieces in the holes on the board for led light diffusion and for cv to not recognize the leds through the hole as pieces.

On computer vision part everything is integrated to the system, we decided to avoid led flashing and add a button in the UI for the users to indicate they are done with a move and the leds will turn off for cv to capture the frame and then turn back on to guide the users for the next move. So there are changes made in the cv code for receiving frame capture requests.

For system integration we switched from hotspot to cmu device to connect everything. we will continue to debug and finalize the whole system especially the UI.

I am on track with schedule and next week we will be doing user testing.

Yoyo’s status report for 4/18

This week I mainly focused on integrating the whole subsystem and with the other subsystems.

The cv part now produces results like this which can distinguish all different pieces.  The subsystem now outputs a request to the LED system for the leds to turn on and off when capturing a frame, and a FEN string to the integrate server as a result of board state detection.

I’ve also discovered some small changes that need to be made to the design of the physical board. like the need to raise the leds as close to the board as possible for the light to be seen clearly by the user.

Next week I will continue to address those small changes to improve user experience.

About new knowledge for this project, this is my first time learning about computer vision, I learned not only how to use the code for YOLO models, but also how different things would affect the outcomes of the models, how I should take the photos for the datasets to address different edge cases, how different yolo models work. About learning strategies I learned a lot by reading the official documents of yolo and anylabeling(the tool I used to label datasets), blogs about similar chess board state detection projects, and I also got help from Chatgpt when YOLOX didn’t support mps on macOS much and I had to learn to modify the code for yolox to support mps.

Yoyo’s Status Report for 4/4

This week I’m mainly working on the cv part. I trained model for individual type of chess pieces, and tested them like this:

I’ve also started to integrated all the photos I took for each type of chess pieces into one model. I will need to take more photos with multiple pieces in one frame to train the model so that it will learn to tell the pieces apart. So thats my plan for next week, and also write code for the rest of the cv part such as taking a frame in live videosteam when nothing moves in 200ms, and board capture with aruco markers. Then I should be able to get output from my subsystem that can be fed into the led system and chess engine for integrating with my teammates.

I am on schedule and no changes will be made to the schedule.

About verification on my subsystem, the physical board won’t need any verification, so it’s mainly about the cv subsystem. I will evaluate detection performance of the yolox model both on precision and recall, the overall accuracy needs to exceed 95% to meet our expectations. The evaluation will be done with datasets including different circumstances such as dark environment, or different angels of camera placement. I will also measure the end-to-end detection latency from image capture to output to make sure it’s under 1s to minimize the users’ notice on latency.

the phone mount set up looks like this:

Yoyo’s Status Report for 3/28

This week on physical device side I cut out the second layer of the board to hold the leds in place. I worked with Claire to make sure the design does work. For more on this part I will need a piece of design to hold this layer in place in the box, hopefully a design that will enable us to take this layer out of the box easily for led replacing. Will do during the integrating part towards end of semester.

For cv, I took videos of pieces on different positions of the board and took out 40 frame for each set for yolox training. There are 11 sets of images that I labeled. Chariot, horse, and cannon have same characters for both sides, to they each make one set, 20 images for each color. The rest of the pieces have different chinese characters for each side so they each make two sets, 40 images for each different character.  

I made the ratio of training and validation set 8:2 so 32 for training and 8 for validation.

Setting up the environment for YOLOX somehow got extremely frustrating for me, couldn’t get it to work on my mac, had to set up a whole system on a pc. A little behind on schedule, should train all datasets this week, so I need to do more work this Sunday to make sure I don’t set my team back.

Yoyo’s Status Report for 3/21

This week I’m focusing on computer vision part, trying to make design decisions to maximize the accuracy of computer vision.

Claire and I put the board and the LEDs together and here’s what it looks like. LEDs line up with the grid intersections.

The led light is diffused by frosted acrylic and one design that needs to be changed or actually added is that since the led light makes a bright dot on the piece, it will affect the cv accuracy as it “covers” the characters on the pieces, or i will need to take a whole lot pictures for yolox learning. To tackle this, we will probably add a step of turning off the leds before cv part runs each time. This will make cv easier and more accurate.

I also drew CAD for the layer under the board, the one for attaching the leds. Since there a 9-10 led stripes, taping them to the back of the board has very low robustness and will require us to fix the position all the time. So i will laser cut a plywood stripes layer for the leds to be stuck on.

I will also need to design the whole board box, as we need to fix the place for all the hardware for transportation, and I will need the design to be some what modularized to make fixing things easy.

Next week I will be taking all the photos for yolox board state recognition, and designing the box. I am on schedule and the small designs added such as the turn led off thing shouldn’t add too much workload to affect schedule.

Yoyo’s Status Report for 3/14

This week I modified some details of the design for the board, especially the part integrating with the LEDs. The exact measurement of the distance between the individual LEDs weren’t specified, so I had to measure it myself, and with the error in measuring by hand I need to consider tolerance in the design. I decide for the top of the board to have 3 layers, on the very top is plywood layer, which is the actual board with the grid. I am deciding between 1. cutting small circles of frosted acrylic to fill in the holes of the plywood layer to better diffuse light, and 2. simply adding a whole layer of frosted acrylic under the plywood layer to diffuse light, less work more money. And then under that will be a layer to stick our LED strips on, which will be plywood strips, to reduce weight.

And I’m also taking pictures of the chess pieces to work on the cv part. I took some under room light settings, and will need to take more after working with Claire for different colored LEDs and the lamp on the phone mount we’re using.

I’m on schedule and no big design modifications were made that needs schedule changes.

Yoyo’s Status Report for 3/7

This week with the cut out chess pieces and half of the board I was able to test my cv code. For the phone mount we’ve decided to buy a phone holder with lamp for holding our phone camera over the board.

Currently I cut out the chess board with plywood available in techspark which I think don’t work the best for cv because it reflects light a lot. I will try to find the other kind of plywood that doesn’t have the layer that reflects light so much. With this image you can also see that the frosted acrylic shows the background without direct light on it, which also affects cv accuracy. After I get the phone holder and lamp I will use that lamp to take photos. Since we need to implement yolox model, I will need to take like 100 photos and label them so that will be my goal next week to finishand get some yolox running.

Yoyo’s Status Report for 2/21

This week on the physical chess pieces and board, I laser cut a few chess pieces out using frosted acrylic, and the top piece of the board using plywood. This is sufficient for initial testing of cv, the remaining pieces of the board can be cut out anytime after we have finalized all the physical electrical components and know the exact volume we need to hold all the parts. Also since we might need to change the design of the chess pieces later to increase board state detection accuracy, I didn’t cut out the full set of pieces, just 4 for each player for cv testing.  The parts are not with me but I’ll update images once I get a chance.

I also worked on the cv part, wrote more code for it, and will began testing next week. I am a little behind schedule on this part, as we changed our design a little last week and just got to manufacture the pieces, but I will catch up next week on this mainly.

I will also need to design the holder for the phone camera to be fixed above the board next week.

Yoyo’s Status Report for 2/14

This week on the chess pieces part, we changed our design a little bit after discussing with professor and TA. Instead of 3D printing we will be laser cutting frosted acrylic sheets and glueing pieces together to make sure the LED lights on the board can be seen when pieces are placed on the grid points that are supposed to light up to indicate suggested move. So I made new CAD drawings for the pieces, and will be cutting them out next week. 

I also have the board design. It will be cut out with plywood next week as well. There will be details that might change as I get to designing the holder for phone.

I am working on the computer vision portion as well, and after pieces and board gets cut out next week, I will be able to move on to adjusting and calibration with actual pieces and boards.

I am on schedule with computer vision, and next week I will be manufacturing the chess pieces and boards.

Yoyo’s Status Report for 2/7

This week I drew the cad drawing for the chinese chess pieces. There are 11 different kind of pieces with different chinese characters on them, we also plan to put the english translation of each chinese character on them, so that it’s easier for user to learn. I have all 11 pieces drawn out, there are 3 of them that I still need to refine a bit because they are in Traditional Chinese and the font I’m using doesn’t support that, e.g. chariot.

The next step about these pieces is to print them out, preferably after we have chosen the size of the board so I can test if the details in the CAD drawing can be printed out nicely. Also, computer vision testing will need those printed pieces as well.

I also started on the computer vision part. I have to learn it from scratch so it’s taking me some time. But I have started writing code and will be testing it out with the camera, chess pieces, and the board later.

I did a portion of the chess board design by myself, but I will need to discuss with my group members more next monday to finalize some details.

I am on schedule with the chess pieces design and the computer vision part. I am a tiny bit behind on the chess board design part but can definitely catch up next Monday. I will be printing out chess pieces, cutting out chess board, and doing more of the computer vision part next week.