Quyidagi oddiy Python kod namunasida, qanday qilib OpenCV-Python yordamida rasmlarga matn qo'shish mumkinligini ko'rsatib beramiz: ``python import cv2 # rasmlarni o'qish img = cv2.imread('example.jpg') # qo'shishni ta'riflash matn text = 'Salom, OpenCV!' # shriftni o'rnatish font = cv2.FONT_HERSHEY_SIMPLEX # matnning joyini va o'lchamini o'rnatish position = (50, 50) font_scale = 1 thickness = 2 # matn rangini va chiziqlarni o'rnatish color = (255, 255, 255) # oq outline_color = (0, 0) # qora # rasmlarni o'qish uchun matnning kichik cv2.Text img
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence