-
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
yes !! we definitely need to consider alignment of text. |
Beta Was this translation helpful? Give feedback.
-
thanks you reply! could you tell me the url of doc about alignment of text? |
Beta Was this translation helpful? Give feedback.
-
actually i dont have that in hand. but i have worked before in similar project that i used to preprocess the image (text). Preprocessing: Rotate the image clockwise by 90 degreesrotated_image = cv2.rotate(image, cv2.ROTATE_90_CLOCKWISE) |
Beta Was this translation helpful? Give feedback.
-
thank you ! I find the code at infer process
|
Beta Was this translation helpful? Give feedback.
actually i dont have that in hand.
but i have worked before in similar project that i used to preprocess the image (text).
Preprocessing:
Depending on the layout of the Chinese text (vertical or horizontal), you might need to perform additional preprocessing steps, such as rotating the image if the text is vertical. OpenCV provides functions to perform image rotations.
Rotate the image clockwise by 90 degrees
rotated_image = cv2.rotate(image, cv2.ROTATE_90_CLOCKWISE)