feat: 🚧 Continue technical part redaction
This commit is contained in:
@ -0,0 +1,5 @@
|
||||
The second step of the process involves converting each pixel from grayscale to black and white. This further simplifies the image by retaining only two colors: black and white. As a result, the OCR can more effectively recognize different characters and process the information more quickly, since it only has to differentiate between two color values: black and white.
|
||||
|
||||
To complete this process, the functions \verb'void pixel_to_black_white' and \verb'void pixel_to_grayscale' are executed sequentially. This results in an output image in grayscale.
|
||||
|
||||
TODO: Add some images to illustrate the process.
|
@ -0,0 +1,3 @@
|
||||
La deuxième partie du processus consiste à transformer chaque pixel en nuance de gris en pixel black and white. Cela permet de simplifier encore plus l'image en ne gardant que deux couleurs, le blanc et le noir. Cela permet ensuite à l'OCR de mieux reconnaître les différentes lettres et de traiter les informations plus rapidement car il n'a plus que deux informations de couleurs, soit du noir, soit du blanc.
|
||||
|
||||
Cette conversion est assuré par la fonction \verb'void pixel_to_black_white'. Elle prends en paramètre un \verb|void* pixel|, \verb|SDL_PixelFormat* format| et \verb|Uint8 threshold|. La fonction applique le traitement directement sur l'image.
|
@ -0,0 +1,3 @@
|
||||
The first step of the process involves converting each pixel to grayscale. This simplification removes most color information from the image, enabling the OCR to better recognize different characters and process the information more quickly since it no longer has to deal with color data.
|
||||
|
||||
This conversion is handled by the function \verb'void pixel_to_grayscale'. It takes as parameters a \verb|void* pixel| and an \verb|SDL_PixelFormat*format|, applying the necessary processing to achieve the grayscale effect.
|
@ -0,0 +1,10 @@
|
||||
Cette sous section détaille le processus de traitement d'image utilisé dans notre logiciel, afin de la préparer pour qu'elle soit analyser de la meilleure des façons par l'OCR\footnote{cf. section X.X sur l'OCR}. Pour ce faire, nous faisons passer l'image par plusieurs étapes avant de l'envoyer à l'OCR.
|
||||
|
||||
\subsubsection{Transformer les pixels en nuances de gris}
|
||||
\input{sections/partie-technique/traitement-image/pixel-grayscale/pixel-grayscale}
|
||||
|
||||
\subsubsection{Transformer les pixels en blank and white}
|
||||
\input{sections/partie-technique/traitement-image/pixel-baw/pixel-baw}
|
||||
|
||||
\subsubsection{Transformer l'image en nuance de gris}
|
||||
\input{sections/partie-technique/traitement-image/image-baw/image-baw}
|
Reference in New Issue
Block a user