我正在使用CIDetector在圖片中查找人臉。iOS目標C將座標從絕對圖像位置轉換爲我的視圖座標系
它返回的面的座標是圖像文件中的絕對座標(圖像尺寸明顯大於屏幕尺寸)。
我試着使用converRect:toView命令。圖像本身不是一個UIView,所以命令不起作用,我也有一些嵌入到其他圖像中的視圖,最終顯示圖像。
我想將圖像中找到的面的邊界轉換爲嵌入圖像中屏幕上顯示的面的確切位置。
這是如何實現的?
謝謝! The image being shown on the phone - the image is scaled to fit the screen with aspect fit