Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Face images are grey on the browser interface. Looks like API server is presenting image without jpg extension. #70

Closed
thartman69 opened this issue Mar 20, 2022 · 13 comments
Assignees

Comments

@thartman69
Copy link

Great project! Well done.

I am running the master image on a Ubuntu 18.04 VM. (virtualised with Proxmox PVE)
Using a Foscam 720p camera that connects fine via RTSP and I can see a picture.
Flower shows that the images are being processed and uploaded to the Minio bucket.
Connecting to API server port 3000 I see the activity but only grey boxes where the face pictures should be.

If I download the picture from Minio and rename it to *,jpg I can view the picture and it is a face.

In Flower log I can see ['/opt/nvr/detector/images/deepeye_1647774820586.jpg', 1647774820587, 1647774820587, 'pBrIitBTIr']

Screenshot 2022-03-20 221454

For some reason the API server is not presenting the file with the JPG extension. Is this a known Minio bug, or other?

@solderzzc
Copy link
Member

Hi, @thartman69
Thanks for reporting this issue. This application was tested with web kit on Android/IOS, the face images were displayed instead of a grey box, so it may cause by browser compatibility. May I know your browser and if possible, if it's not chrome, could you try to load with chrome?

BTW, are you using the public testing server set by me or docker image running locally?

@thartman69
Copy link
Author

Hi SImba, thanks for responding. I'm using Chrome on a PC and have also tested with other browsers on Mac, PC and IOS. I am using the master docker image locally. As far as I can tell I've configured everything correctly. Face images are popping in the bucket. If I rename a file to jpg or png they are displayed in the browser, so it looks like FFMPEG extracts and encodes the base64 image correctly from my old 720p Foscam for upload into Minio. I've been digging into API Server code to see if it conforms to security settings. There was a suggestion that Chrome had tightened security around files without extensions being presented. Or forcing it in htaccess... I have not given up. :) I will try the public testing server today.

@solderzzc
Copy link
Member

Hi, @thartman69
Thanks for digging into this problem, I believe htaccess suggestion was introduced by browser upgrade. Let me also modify code when upload face image to minio to include the extension .jpg, I believe public server also has the same issue since it's the same docker image.

@thartman69
Copy link
Author

That's be awesome. Can't wait to see it all in action.

@solderzzc
Copy link
Member

Hi, @thartman69
I'm not able to reduplicate this issue in my setup, my browser is safari version 15.3, I'm able to load image.

I modified the code to upload image with png extension name.
If something still wrong, please also send me the browser inspection log.

@solderzzc solderzzc self-assigned this Mar 29, 2022
@thartman69
Copy link
Author

awesome, I'll rebuild it tonight and let you know.

@thartman69
Copy link
Author

Ah, I see you modified the Nano code, I'm using the Master branch because I'm using it in a VM. Should I switch to the Nano branch?

@solderzzc
Copy link
Member

solderzzc commented Mar 30, 2022 via email

@thartman69
Copy link
Author

Excellent, that's even better because I want to use the Telegram feature. Thank you, Simba!

@solderzzc
Copy link
Member

solderzzc commented Mar 30, 2022 via email

@thartman69
Copy link
Author

The nano release won't install nicely on a KVM VM, I get errors in Flower showing up and only one thread. I'll see if I can fork the project and apply the nano changes you made to the master release to get it working,

@solderzzc
Copy link
Member

solderzzc commented Mar 31, 2022 via email

@solderzzc
Copy link
Member

Fixed and close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants