Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class RocV3Detector @Inject constructor() : FaceDetector {
val template = roc3.new_uint8_t_array(roc3.ROC_FACE_FAST_FV_SIZE.toInt())
val yaw = roc3.new_float()
val quality = roc3.new_float()
val face = if (isFaceDetected(grayImage, detection)) {
val face = if (isFaceDetected(coloredImage, detection)) {
Copy link
Copy Markdown
Collaborator

@meladRaouf meladRaouf Sep 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@luhmirin-s Why did you change this line?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The accurate method uses color images as per documentation.

generateFaceTemplateFromImage(
coloredImage, grayImage, detection, yaw, template, quality
)
Expand Down Expand Up @@ -127,7 +127,7 @@ class RocV3Detector @Inject constructor() : FaceDetector {
)
val n = roc3.new_size_t()

roc3.roc_embedded_detect_faces(
roc3.roc_embedded_detect_faces_accurate(
image,
roc3.size_t_value(adaptiveMinimumSize),
MAX_FACE_DETECTION,
Expand Down