Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
You've posed 2 problems: 1st your CF engine is biased learning. For the question in the title, the only way I see is by stratifying your image set into classes (e.g [0,0.5),[0.5,1]), crossing estimates and observed values in a confusion matrix and then computing precision and recall from it.