BSI-OFIQ / OFIQ-Project

Open Source Facial Image Quality
Other
38 stars 12 forks source link

Sharpness Measure Calculation #22

Closed hasan-nn closed 3 months ago

hasan-nn commented 4 months ago

Hello, Great work!

I noticed that the method to calculate Image Sharpness in your repository is different than the method proposed in the original ISO/IEC TR 29794-5:2010 Report.

Can you please share the details of your method?

Thank You

JoMe2704 commented 4 months ago

All OFIQ algorithms (except Brightness) differ from those defined in ISO/IEC TR 29794-5:2010.

The algorithm is based on a Random Forest classifier using the following features of an image I:

This results in a features vector of length 26.

The algorithm takes as input the image I in BGR colour channel order with 8 bits per channel and the segmentation mask M of the landmarked region (convex hull of all landmarks), and performs the following steps:

  1. If the landmarked region protrudes the image region, restrict it to its intersection with the image region.
  2. Crop I to the minimal upright bounding box of the landmarked region.
  3. Convert I to grey scale.
  4. Extract from I the 26 dimensional feature vector f as described above
  5. Feed the feature vector f into the Random Forest classifier model to obtain a native quality score x.
  6. Compute the quality component value as y = ROUND(100 ∙ (SIGMOID(x,20,10)))
hasan-nn commented 4 months ago

Thanks for your quick reply and for the detailed explanation.

All OFIQ algorithms (except Brightness) differ from those defined in ISO/IEC TR 29794-5:2010.

Is there any detailed report for your OFIQ algorithms ?

JoMe2704 commented 4 months ago

All algorithms will be specified in the upcoming revision of ISO/IEC 29794-5. It will be published next year. Furthermore, a report on the OFIQ development will be published.