I try to extract text by detect the color from purple to red. this's the HSV image https://ibb.co/6JKKY68. But it only return black.
#include <opencv2/opencv.hpp>
int main()
{
cv::Mat tempt;
cv::Mat img = cv::imread("image.png");
cv::cvtColor(img, tempt, cv::COLOR_BGR2HSV);
cv::inRange(tempt, cv::Scalar(274, 50, 60), cv::Scalar(360, 255, 255), img);
cv::imshow("image", img);
cv::imshow("tempt", tempt);
cv::waitKey(0);
return 0;
}