Nestrischamps
  • NEStrisChamps
  • Setup OBS Browser Source
  • Streaming
    • OCR and Calibration
  • Restreaming
    • Administering a Room
  • Contributing
    • Architecture Overview
Powered by GitBook
On this page
  • Digits
  • Preview
  • Current Piece (DAS Trainer only)
  • Color (Classic Tetris only)
  • Field
  • Congratulations

Was this helpful?

  1. Streaming

OCR and Calibration

PreviousSetup OBS Browser SourceNextAdministering a Room

Last updated 2 years ago

Was this helpful?

If you have not setup your OBS browser source, please do so first:

Setup OBS Browser Source

OCR is supported in browser for both device capture and screen capture.

2 default game ROMs are supported:

Classic Tetris

DAS Trainer

The fields that need to be OCR-ed per ROM are fixed (see highlighted areas above).

There is a built-in automatic calibrator but it does not work too well, so you should always adjust the areas selected for calibration to be as close as possible to the desired outcome.

In both cases, go to https://nestrischamps.io/room/producer, start a game at level 0 before you press the Calibrate and Capture button. In DAS Trainer, pause as soon as the game starts, then click the button. In Classic Tetris, click as soon as the game starts. In both cases, keep your fingers crossed that the auto calibrator takes you close to the desired state, and then fine tune all the capture areas to be pixel perfect.

Once calibration and tuning has been done, the capture window and the browser tab must stay focused (do not move to other tabs).

Digits

The capture area should "hug" the digits on top, right, bottom, left, (using 0 as a reference), like this:

  • Capture area for 2 digits

  • Capture area for 6 digits

Note that if you calibrate something that starts with a 1, the captured area should NOT hug the one on the left (notice the black strip on the left).

Preview

To calibrate the preview properly, run the calibration in level 0 over multiple pieces, such that:

"hugged" means there is no black border.

Current Piece (DAS Trainer only)

To calibrate the preview properly, run the calibration in level 0 over multiple pieces, such that:

Color (Classic Tetris only)

Reading colors from the frame helps matching the block colors when scanning the field.

The are 3 colors to read: color1, color2, and color3. They should be read from the pieces stats on the left by selecting one block from the T piece, J piece, and Z piece.

The blocks should be chosen like this

Piece statistics panel highlighting color blocks

The selection should not include any black border, but color1 should include the block's border. They should look like this:

Field

To calibrate the field capture, try to stack pieces on the left, right, and bottom, and even all the way up on the top-left and top-right.

Having done that, hug the capture on right, left, top, bottom. do not leave black borders at the bottom and right! Like this:

Capture area for field

Congratulations

Congratulations! You have made it 🥳

Untick Show Parts if you have not, to save some rendering power.

And remember, always keep the producer in the foreground and keep it focused when streaming, otherwise the performance will be horrible.

Pieces S, Z, L, J, T, O are "hugged" TOP and BOTTOM in the capture area

Piece I is "hugged" LEFT and RIGHT in the capture area

Pieces L, J are "hugged" TOP ONLY in the capture area (notice there's a black strip at the bottom)

Pieces S, Z, T, O are "hugged" BOTTOM ONLY in the capture area (notice there's a black strip on top)

Piece I is "hugged" LEFT and RIGHT in the capture area

Capture area for 18
Capture area for S preview
Capture area for T preview
Capture area for Z preview
Capture area for O preview
Capture area for J preview
Capture area for J current piece
Capture area for L current piece
Capture area for I preview
Capture area for S current piece
Capture area for L preview
Capture area for T current piece
Capture area for I current piece
Capture area for O current piece
Capture area for color 1
Capture area for Z current piece
Capture area for color 2
Capture area for color 3