mirror of
https://github.com/acanas/swad-core.git
synced 2024-09-22 00:00:40 +02:00
Version 22.118.7: May 30, 2023 Fixed bug in photo processing. Reported by Emilio Alemán Carmona.
This commit is contained in:
parent
0cf2226745
commit
113c4ceb14
|
@ -629,10 +629,11 @@ TODO: Emilce Barrera Mesa: Podr
|
||||||
TODO: Emilce Barrera Mesa: Mis estudiantes presentan muchas dificultades a la hora de poner la foto porque la plataforma es muy exigente respecto al fondo de la imagen.
|
TODO: Emilce Barrera Mesa: Mis estudiantes presentan muchas dificultades a la hora de poner la foto porque la plataforma es muy exigente respecto al fondo de la imagen.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
#define Log_PLATFORM_VERSION "SWAD 22.118.6 (2023-05-24)"
|
#define Log_PLATFORM_VERSION "SWAD 22.118.7 (2023-05-30)"
|
||||||
#define CSS_FILE "swad22.118.5.css"
|
#define CSS_FILE "swad22.118.5.css"
|
||||||
#define JS_FILE "swad22.49.js"
|
#define JS_FILE "swad22.49.js"
|
||||||
/*
|
/*
|
||||||
|
Version 22.118.7: May 30, 2023 Fixed bug in photo processing. Reported by Emilio Alemán Carmona. (337364 lines)
|
||||||
Version 22.118.6: May 24, 2023 Fixed bug in rubrics. (337363 lines)
|
Version 22.118.6: May 24, 2023 Fixed bug in rubrics. (337363 lines)
|
||||||
Version 22.118.5: May 23, 2023 Changes in comments in surveys. (337360 lines)
|
Version 22.118.5: May 23, 2023 Changes in comments in surveys. (337360 lines)
|
||||||
Version 22.118.4: May 23, 2023 Fix CSS related to frequent actions. (337351 lines)
|
Version 22.118.4: May 23, 2023 Fix CSS related to frequent actions. (337351 lines)
|
||||||
|
|
|
@ -380,7 +380,7 @@ void Pho_SendPhotoUsr (void)
|
||||||
void Pho_RecMyPhotoDetFaces (void)
|
void Pho_RecMyPhotoDetFaces (void)
|
||||||
{
|
{
|
||||||
/***** Receive my photo and detect faces on it *****/
|
/***** Receive my photo and detect faces on it *****/
|
||||||
if (!Pho_ReceivePhotoAndDetectFaces (true,&Gbl.Usrs.Me.UsrDat))
|
if (!Pho_ReceivePhotoAndDetectFaces (Usr_ME,&Gbl.Usrs.Me.UsrDat))
|
||||||
Pho_ReqPhoto (&Gbl.Usrs.Me.UsrDat); // Request my photograph again
|
Pho_ReqPhoto (&Gbl.Usrs.Me.UsrDat); // Request my photograph again
|
||||||
|
|
||||||
/***** Show my record and other data *****/
|
/***** Show my record and other data *****/
|
||||||
|
@ -402,7 +402,7 @@ void Pho_RecOtherUsrPhotoDetFaces (void)
|
||||||
Usr_DONT_GET_ROLE_IN_CURRENT_CRS))
|
Usr_DONT_GET_ROLE_IN_CURRENT_CRS))
|
||||||
{
|
{
|
||||||
/***** Receive photo *****/
|
/***** Receive photo *****/
|
||||||
if (!Pho_ReceivePhotoAndDetectFaces (false,&Gbl.Usrs.Other.UsrDat))
|
if (!Pho_ReceivePhotoAndDetectFaces (Usr_OTHER,&Gbl.Usrs.Other.UsrDat))
|
||||||
Pho_ReqPhoto (&Gbl.Usrs.Other.UsrDat); // Request user's photograph again
|
Pho_ReqPhoto (&Gbl.Usrs.Other.UsrDat); // Request user's photograph again
|
||||||
|
|
||||||
/***** Show another user's record card *****/
|
/***** Show another user's record card *****/
|
||||||
|
@ -732,7 +732,7 @@ static bool Pho_ReceivePhotoAndDetectFaces (Usr_MeOrOther_t MeOrOther,
|
||||||
}
|
}
|
||||||
NumFaces.Total = NumFaces.Green + NumFaces.Red;
|
NumFaces.Total = NumFaces.Green + NumFaces.Red;
|
||||||
|
|
||||||
/***** Begin alert to the user about the number of faces detected in the image*****/
|
/***** Begin alert to the user about the number of faces detected in the image *****/
|
||||||
if (NumFaces.Total == 0)
|
if (NumFaces.Total == 0)
|
||||||
Ale_ShowAlertAndButton1 (Ale_WARNING,Txt_Could_not_detect_any_face_in_front_position_);
|
Ale_ShowAlertAndButton1 (Ale_WARNING,Txt_Could_not_detect_any_face_in_front_position_);
|
||||||
else if (NumFaces.Total == 1)
|
else if (NumFaces.Total == 1)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user