timotheeg / nestrischamps

A web-based OCR and restreamer system for NES Classic Tetris players
MIT License
45 stars 11 forks source link

Convert colors to Lab color space to match field #94

Closed timotheeg closed 3 years ago

timotheeg commented 3 years ago

The naive color channel color comparison is giving some false value when 2 channels differences cancel each other in the "wrong way".

By operating in the LaB color space, we should be able to match the color to reflect perception more accurately.

alex-ong commented 3 years ago

Great idea! I always thought converting from RGB -> LaB might be expensive though.