[digikam] [Bug 372340] Tagged face areas on portait (vertical) oriented images are mispositioned

2019-03-20 Thread Chandra Kant
https://bugs.kde.org/show_bug.cgi?id=372340

--- Comment #19 from Chandra Kant  ---
After having model of faces trained and enhanced image of face we want to
recognize. Tricky part here is determining when the face is new (not in
training set) and when it is recognized properly. So we can creat some sort of
treshold for distance .

int predictedLabel = -1;
double predicted_confidence = 0.0;
model->set("threshold", treshold);
model->predict(croppedImage, predictedLabel, predicted_confidence);

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 372340] Tagged face areas on portait (vertical) oriented images are mispositioned

2019-03-19 Thread Chandra Kant
https://bugs.kde.org/show_bug.cgi?id=372340

--- Comment #18 from Chandra Kant  ---
We can rotate face by this function
void rotate(cv::Mat& src, double angle, cv::Mat& dst)
{
  int len = max(src.cols, src.rows);
  cv::Point2f pt(len / 2., len / 2.);
  cv::Mat r = cv::getRotationMatrix2D(pt, angle, 1.0);
  cv::warpAffine(src, dst, r, cv::Size(len, len));
}
So that we can improve face detection by aligning faces.

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 372340] Tagged face areas on portait (vertical) oriented images are mispositioned

2019-03-16 Thread Chandra Kant
https://bugs.kde.org/show_bug.cgi?id=372340

--- Comment #17 from Chandra Kant  ---
The main idea  is to compute vertical and horizontal sobel for nose part and
find the angle between them. Then to determine which angle is dominant with
help of histogram and  use its peak value in finding the best rotation of face.
This part can be improved by normalizing the histogram on start and then using
just values from one face rotation angle to determine the angle between
vertical position and current angle.

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 372340] Tagged face areas on portait (vertical) oriented images are mispositioned

2019-03-12 Thread Chandra Kant
https://bugs.kde.org/show_bug.cgi?id=372340

--- Comment #16 from Chandra Kant  ---
I think for this issue -the more aligned faces are the better face recognition
results are.So we need to convert the image to greyscale.Then we can rotate
face to vertical position so it is aligned perfectly. we can do this by
computing height difference between the eyes and when eyes are shut we can use
histogram of oriented gradients for nose to get its orientation. First thing
first we need to find eyes on picture. we can crop the image to just the face
part so the classifier has easier job finding eyes and doesn’t throw false
positives.

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 220204] HUB : digiKam could warn when writing metadata to pictures fails

2019-03-04 Thread Chandra Kant
https://bugs.kde.org/show_bug.cgi?id=220204

--- Comment #15 from Chandra Kant  ---
Yes,I agree Vlado Plaga that a notification must be shown regarding this issue
for a normal user.I think that this issue arises because of read-only file.

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 372340] Tagged face areas on portait (vertical) oriented images are mispositioned

2019-03-02 Thread Chandra Kant
https://bugs.kde.org/show_bug.cgi?id=372340

--- Comment #15 from Chandra Kant  ---
Yes i am trying to resolve this issue.

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 220204] HUB : digiKam could warn when writing metadata to pictures fails

2019-03-02 Thread Chandra Kant
https://bugs.kde.org/show_bug.cgi?id=220204

--- Comment #12 from Chandra Kant  ---
I am trying to contribute to that issue.

On Sun, Mar 3, 2019 at 3:24 AM Maik Qualmann 
wrote:

> https://bugs.kde.org/show_bug.cgi?id=220204
>
> Maik Qualmann  changed:
>
>What|Removed |Added
>
> 
>  CC||metzping...@gmail.com
>
> --- Comment #9 from Maik Qualmann  ---
> No, there is no change to the code here and no message recognizable to the
> normal user.
>
> Maik
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 220204] HUB : digiKam could warn when writing metadata to pictures fails

2019-03-02 Thread Chandra Kant
https://bugs.kde.org/show_bug.cgi?id=220204

--- Comment #11 from Chandra Kant  ---
I am using digikam version 6.0.0 and when i  used metadata hub it worked fine.I
think that this problem was with the previous version.

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 372340] Tagged face areas on portait (vertical) oriented images are mispositioned

2019-03-02 Thread Chandra Kant
https://bugs.kde.org/show_bug.cgi?id=372340

Chandra Kant  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|CONFIRMED   |RESOLVED

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 372340] Tagged face areas on portait (vertical) oriented images are mispositioned

2019-03-02 Thread Chandra Kant
https://bugs.kde.org/show_bug.cgi?id=372340

Chandra Kant  changed:

   What|Removed |Added

 CC||chandra.kant.ee...@itbhu.ac
   ||.in
 Ever confirmed|0   |1
 Status|REPORTED|CONFIRMED
   Assignee|digikam-bugs-n...@kde.org   |chandra.kant.ee...@itbhu.ac
   ||.in

--- Comment #13 from Chandra Kant  ---
Created attachment 118486
  --> https://bugs.kde.org/attachment.cgi?id=118486=edit
I am here attaching a photo showing that face tags are working absolutely fine
in Digican version 6.0.0

In Bug 372340 ,face tags are working absolutely fine in Digicam 6.0.0

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 220204] HUB : digiKam could warn when writing metadata to pictures fails

2019-03-02 Thread Chandra Kant
https://bugs.kde.org/show_bug.cgi?id=220204

Chandra Kant  changed:

   What|Removed |Added

 CC||chandra.kant.ee...@itbhu.ac
   ||.in

--- Comment #7 from Chandra Kant  ---
This bug is resolved in the latest version of Digicam 6.0.0

-- 
You are receiving this mail because:
You are watching all bug changes.