SharpAI / DeepCamera

Open-Source AI Camera. Empower any camera/CCTV with state-of-the-art AI, including facial recognition, person recognition(RE-ID) car detection, fall detection and more
https://sharpai.github.io/DeepCamera/
MIT License
1.87k stars 317 forks source link

Cannot see given setting on the 8080 port over shinobi page on web browser #72

Closed KenaHemnani closed 2 years ago

KenaHemnani commented 2 years ago

I cannot see the setting options to give camera ip and user password on shinobi webpage. https://drive.google.com/drive/folders/1WimiJtyC_GNgdqPHFhKISS5G8M14NEXE?usp=sharing

Can you tell me what is the issue?

solderzzc commented 2 years ago

You can setup username and password by visiting connection section:

KenaHemnani commented 2 years ago

Hi @solderzzc , Thank you for the reply. But I am not able to see these settings inside connection section, I am only getting the options given in images here: https://drive.google.com/drive/folders/1WimiJtyC_GNgdqPHFhKISS5G8M14NEXE?usp=sharing

KenaHemnani commented 2 years ago

This is what I am able to see inside connection section: Screenshot from 2022-06-08 10-03-04

Please, let me know. What is the problem? It would be a great help!

solderzzc commented 2 years ago

You can set Automatic to ‘No’ to setup username and password manually.

On Tue, Jun 7, 2022 at 9:35 PM KenaHemnani @.***> wrote:

This is what I am able to see inside connection section: [image: Screenshot from 2022-06-08 10-03-04] https://user-images.githubusercontent.com/73054008/172532285-e0e91fa7-24bc-4f0f-a67c-ba2d1b2d8bbc.png

Please, let me know. What is the problem? I would be a great help!

— Reply to this email directly, view it on GitHub https://github.com/SharpAI/DeepCamera/issues/72#issuecomment-1149450262, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXRJ7GNW35EQ3DO6KBJBBTVOAPHJANCNFSM5YCNVWHQ . You are receiving this because you were mentioned.Message ID: @.***>

KenaHemnani commented 2 years ago

Hi @solderzzc , Thank you! Now I am able to see the option. After giving host, user and password. I am able to see the black screen as below. Also, I have deleted the moniter once and added new then. Will it makes difference?

Screenshot from 2022-06-08 14-30-18

Can you tell how to troubleshoot this? I am currently using my android mobile as Web-cam.

Also, How to use rtsp url given by connecting camera via. iSpyConnect ? I am able to connect camera via. iSpyConnect, but Shinobi browser shows blank screen.

solderzzc commented 2 years ago

@KenaHemnani when you have this page, make sure you have a url can be played by ffplay, then you can copy paste the url into Full URL Path:

Screenshot 2022-06-21 154028

Just in case you need username/password format:

rtsp://username:password@IP:PORT/your_url_path
KenaHemnani commented 2 years ago

@solderzzc , Thank you for help! Now, I am able to get feed in shinobi over http://localhost:8080/ . Are we required to connect our camera with shinobi running over http://165.232.62.29:8080/ ? How to see those images on GUI running on server ?

solderzzc commented 2 years ago

@KenaHemnani

KenaHemnani commented 2 years ago

Hi @solderzzc , Thank you very much for responding. On the localhost:8080 when accessing shinobi, I can record videos and take snapshots. However, images cannot be previewed but I can see preview of videos and videos are saved inside DeepCamera/docker/videos folder. But, I cannot see the video/images on server http://165.232.62.29:3000/ (The device serial id is added to cloud server.) Can you tell what might be reason for this? How I can troubleshoot this?

Are we required to take snapshots using shinobi or record videos? However, Snapshots are not able to preview over shinobi nor saved on local on any folder.

solderzzc commented 2 years ago

@KenaHemnani we don't have to worry about shinobi after you have seen preview pic on it, we use it for camera configuration. you should follow the instruction to label face on cloud server:

KenaHemnani commented 2 years ago

@solderzzc , but I am not able to see pic on GUI running over cloud server i.e, on http://165.232.62.29:3000/ . What can be reason for this ? How can I troubleshoot this ?

solderzzc commented 2 years ago

@KenaHemnani Please provide the system log and your hardware configuration, are you using jetson nano?

KenaHemnani commented 2 years ago

@solderzzc Currently I am running DeepCamera on linux machine(with 16GB Ram) using command sudo ./run-on-linux.sh start. And using android mobile camera as webcam(IP camera). Then starting cloud using sudo ./start-cloud.sh start. Systems logs while running sudo ./run-on-linux.sh start:

Systems logs while running sudo ./start-cloud.sh start: starting... Stopping api_server ... done Stopping broker ... done Stopping minio ... done WARNING: Found orphan containers (redis, embedding, face_detector, detector_plugin, docker_flower_1, camera) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. Recreating minio ... done Recreating broker ... done Recreating api_server ... done Attaching to minio, broker, api_server minio | minio | You are running an older version of MinIO released 2 years ago minio | Update: Run mc admin update minio | minio | minio | Configuration file /root/.minio/config.json migrated from version '19' to '20' successfully. minio | Configuration file /root/.minio/config.json migrated from version '20' to '21' successfully. minio | Configuration file /root/.minio/config.json migrated from version '21' to '22' successfully. minio | Configuration file /root/.minio/config.json migrated from version '22' to '23' successfully. minio | Configuration file /root/.minio/config.json migrated from version '23' to '24' successfully. minio | Configuration file /root/.minio/config.json migrated from version '24' to '25' successfully. minio | Configuration file /root/.minio/config.json migrated from version '25' to '26' successfully. minio | Configuration file /root/.minio/config.json migrated from version '26' to '27' successfully. minio | Configuration file /root/.minio/config.json migrated from version '27' to '28' successfully. minio | Configuration file config/config.json migrated from version '28' to '29' successfully. minio | Configuration file config/config.json migrated from version '29' to '30' successfully. minio | Configuration file config/config.json migrated from version '30' to '31' successfully. minio | Configuration file config/config.json migrated from version '31' to '32' successfully. minio | Configuration file config/config.json migrated from version '32' to '33' successfully. minio | Configuration file config/config.json migrated from version '33' to new KV format successfully. minio | Endpoint: http://172.19.0.3:9000 http://127.0.0.1:9000 minio | minio | Browser Access: minio | http://172.19.0.3:9000 http://127.0.0.1:9000 minio | minio | Object API (Amazon S3 compatible): minio | Go: https://docs.min.io/docs/golang-client-quickstart-guide minio | Java: https://docs.min.io/docs/java-client-quickstart-guide minio | Python: https://docs.min.io/docs/python-client-quickstart-guide minio | JavaScript: https://docs.min.io/docs/javascript-client-quickstart-guide minio | .NET: https://docs.min.io/docs/dotnet-client-quickstart-guide api_server | [[[[[ ~/apiserver ]]]]] api_server | api_server | => Started proxy. api_server | api_server | => Meteor 1.4.4.4: An important security update for Meteor 1.4.x: api_server | https://forums.meteor.com/t/meteor-allow-deny-vulnerability-disclosure/39500 api_server | api_server | => Started MongoDB. api_server | W20220624-04:59:11.586(0)? (STDERR) Note: you are using a pure-JavaScript implementation of bcrypt. api_server | W20220624-04:59:11.649(0)? (STDERR) While this implementation will work correctly, it is known to be api_server | W20220624-04:59:11.650(0)? (STDERR) approximately three times slower than the native implementation. api_server | W20220624-04:59:11.650(0)? (STDERR) In order to use the native implementation instead, run api_server | W20220624-04:59:11.650(0)? (STDERR) api_server | W20220624-04:59:11.650(0)? (STDERR) meteor npm install --save bcrypt api_server | W20220624-04:59:11.650(0)? (STDERR) api_server | W20220624-04:59:11.650(0)? (STDERR) in the root directory of your application. api_server | I20220624-04:59:13.017(0)? has global.setImmediate api_server | I20220624-04:59:13.406(0)? process.env.HTTP_FORWARDED_COUNT=1 api_server | I20220624-04:59:14.288(0)? { runId: null, api_server | I20220624-04:59:14.288(0)? type: 'offline_notify', api_server | I20220624-04:59:14.288(0)? data: { clientId: 'test_client_id' }, api_server | I20220624-04:59:14.288(0)? status: 'waiting', api_server | I20220624-04:59:14.288(0)? updated: Fri Jun 24 2022 04:59:14 GMT+0000 (UTC), api_server | I20220624-04:59:14.288(0)? created: Fri Jun 24 2022 04:59:14 GMT+0000 (UTC), api_server | I20220624-04:59:14.288(0)? priority: -10, api_server | I20220624-04:59:14.289(0)? retries: 6, api_server | I20220624-04:59:14.289(0)? repeatRetries: 6, api_server | I20220624-04:59:14.289(0)? retryWait: 60000, api_server | I20220624-04:59:14.289(0)? retried: 0, api_server | I20220624-04:59:14.289(0)? retryBackoff: 'constant', api_server | I20220624-04:59:14.289(0)? retryUntil: Sat Sep 13 275760 00:00:00 GMT+0000 (UTC), api_server | I20220624-04:59:14.289(0)? repeats: 0, api_server | I20220624-04:59:14.289(0)? repeatWait: 300000, api_server | I20220624-04:59:14.290(0)? repeated: 0, api_server | I20220624-04:59:14.290(0)? repeatUntil: Sat Sep 13 275760 00:00:00 GMT+0000 (UTC), api_server | I20220624-04:59:14.290(0)? after: Fri Jun 24 2022 05:04:14 GMT+0000 (UTC), api_server | I20220624-04:59:14.290(0)? progress: { completed: 0, total: 1, percent: 0 }, api_server | I20220624-04:59:14.290(0)? depends: [], api_server | I20220624-04:59:14.290(0)? resolved: [], api_server | I20220624-04:59:14.290(0)? log: api_server | I20220624-04:59:14.290(0)? [ { time: Fri Jun 24 2022 04:59:14 GMT+0000 (UTC), api_server | I20220624-04:59:14.290(0)? runId: null, api_server | I20220624-04:59:14.290(0)? level: 'info', api_server | I20220624-04:59:14.291(0)? message: 'Constructed' }, api_server | I20220624-04:59:14.291(0)? { time: Fri Jun 24 2022 04:59:14 GMT+0000 (UTC), api_server | I20220624-04:59:14.291(0)? runId: null, api_server | I20220624-04:59:14.291(0)? message: 'Job Submitted', api_server | I20220624-04:59:14.291(0)? level: 'info' } ], api_server | I20220624-04:59:14.291(0)? _id: 'AR7GvuvjfQbcN9jAs' } api_server | I20220624-04:59:14.297(0)? { runId: null, api_server | I20220624-04:59:14.298(0)? type: 'offline_notify', api_server | I20220624-04:59:14.298(0)? data: { clientId: 'test_client_id_1111' }, api_server | I20220624-04:59:14.298(0)? status: 'waiting', api_server | I20220624-04:59:14.298(0)? updated: Fri Jun 24 2022 04:59:14 GMT+0000 (UTC), api_server | I20220624-04:59:14.298(0)? created: Fri Jun 24 2022 04:59:14 GMT+0000 (UTC), api_server | I20220624-04:59:14.298(0)? priority: -10, api_server | I20220624-04:59:14.298(0)? retries: 6, api_server | I20220624-04:59:14.298(0)? repeatRetries: 6, api_server | I20220624-04:59:14.298(0)? retryWait: 60000, api_server | I20220624-04:59:14.299(0)? retried: 0, api_server | I20220624-04:59:14.299(0)? retryBackoff: 'constant', api_server | I20220624-04:59:14.299(0)? retryUntil: Sat Sep 13 275760 00:00:00 GMT+0000 (UTC), api_server | I20220624-04:59:14.299(0)? repeats: 0, api_server | I20220624-04:59:14.299(0)? repeatWait: 300000, api_server | I20220624-04:59:14.299(0)? repeated: 0, api_server | I20220624-04:59:14.300(0)? repeatUntil: Sat Sep 13 275760 00:00:00 GMT+0000 (UTC), api_server | I20220624-04:59:14.300(0)? after: Fri Jun 24 2022 05:04:14 GMT+0000 (UTC), api_server | I20220624-04:59:14.300(0)? progress: { completed: 0, total: 1, percent: 0 }, api_server | I20220624-04:59:14.300(0)? depends: [], api_server | I20220624-04:59:14.300(0)? resolved: [], api_server | I20220624-04:59:14.300(0)? log: api_server | I20220624-04:59:14.300(0)? [ { time: Fri Jun 24 2022 04:59:14 GMT+0000 (UTC), api_server | I20220624-04:59:14.300(0)? runId: null, api_server | I20220624-04:59:14.300(0)? level: 'info', api_server | I20220624-04:59:14.300(0)? message: 'Constructed' }, api_server | I20220624-04:59:14.300(0)? { time: Fri Jun 24 2022 04:59:14 GMT+0000 (UTC), api_server | I20220624-04:59:14.301(0)? runId: null, api_server | I20220624-04:59:14.301(0)? message: 'Job Submitted', api_server | I20220624-04:59:14.301(0)? level: 'info' } ], api_server | I20220624-04:59:14.301(0)? _id: 'gZFxP7xjoA5vX5qMw' } api_server | I20220624-04:59:14.794(0)? [ { _id: 'AR7GvuvjfQbcN9jAs', api_server | I20220624-04:59:14.795(0)? runId: null, api_server | I20220624-04:59:14.795(0)? type: 'offline_notify', api_server | I20220624-04:59:14.795(0)? data: { clientId: 'test_client_id' }, api_server | I20220624-04:59:14.795(0)? status: 'waiting', api_server | I20220624-04:59:14.796(0)? updated: Fri Jun 24 2022 04:59:14 GMT+0000 (UTC), api_server | I20220624-04:59:14.796(0)? created: Fri Jun 24 2022 04:59:14 GMT+0000 (UTC), api_server | I20220624-04:59:14.796(0)? priority: -10, api_server | I20220624-04:59:14.797(0)? retries: 6, api_server | I20220624-04:59:14.797(0)? repeatRetries: 6, api_server | I20220624-04:59:14.797(0)? retryWait: 60000, api_server | I20220624-04:59:14.797(0)? retried: 0, api_server | I20220624-04:59:14.798(0)? retryBackoff: 'constant', api_server | I20220624-04:59:14.798(0)? retryUntil: Sat Sep 13 275760 00:00:00 GMT+0000 (UTC), api_server | I20220624-04:59:14.798(0)? repeats: 0, api_server | I20220624-04:59:14.798(0)? repeatWait: 300000, api_server | I20220624-04:59:14.799(0)? repeated: 0, api_server | I20220624-04:59:14.799(0)? repeatUntil: Sat Sep 13 275760 00:00:00 GMT+0000 (UTC), api_server | I20220624-04:59:14.799(0)? after: Fri Jun 24 2022 05:04:14 GMT+0000 (UTC), api_server | I20220624-04:59:14.799(0)? progress: { completed: 0, total: 1, percent: 0 }, api_server | I20220624-04:59:14.800(0)? depends: [], api_server | I20220624-04:59:14.800(0)? resolved: [], api_server | I20220624-04:59:14.800(0)? log: [ [Object], [Object] ] } ] api_server | I20220624-04:59:14.944(0)? [] api_server | I20220624-04:59:18.331(0)? ----setup smtp server--- api_server | I20220624-04:59:18.340(0) (percolate_synced-cron.js:87) SyncedCron: Scheduled "send report email 12:00 am every day" next run @Fri Jun 24 2022 04:59:18 GMT+0000 (UTC) api_server | => Started your app. api_server | api_server | => App running at: http://localhost:3000/ api_server | I20220624-05:00:00.008(0) (percolate_synced-cron.js:87) SyncedCron: Starting "send report email 12:00 am every day". api_server | I20220624-05:00:00.011(0)? send email out api_server | I20220624-05:00:00.012(0) (percolate_synced-cron.js:87) SyncedCron: Finished "send report email 12:00 am every day". api_server | I20220624-05:04:29.353(0)? send offline notification api_server | I20220624-05:04:29.354(0)? { clientId: 'test_client_id_1111' } api_server | I20220624-05:04:29.355(0)? send offline notification to test_client_id_1111

solderzzc commented 2 years ago

@KenaHemnani For running on X86 Linux, you need checkout master branch, please make another clean folder to have master branch, then run the command again. When you use X86 version, after you configure camera connection, you can go to localhost:3000 for GUI.

KenaHemnani commented 2 years ago

@solderzzc Thank you for clarifying this. I have made a new folder and clone the repo and switched to master branch. Following are System logs while running sudo ./run-on-linux.sh start: Screenshot from 2022-06-27 15-06-40

Following are Systems logs while running sudo ./start-cloud.sh start: Screenshot from 2022-06-27 15-06-30

Going to localhost:3000 using http://localhost:3000/ Then this url is not working: Screenshot from 2022-06-27 14-44-08

KenaHemnani commented 2 years ago

Also, I have tried doing API_SERVER_ADDRESS=127.0.0.1 in servers.env. But the api could not run. Also, let me know what should be variables values in aws.env and servers.env files.

solderzzc commented 2 years ago

@KenaHemnani you only need to run sudo run-on-linux.sh start, it takes several minutes to install dependencies as you already observed. You don't need to run start-cloud.sh if you have already launched with run-on-linux.sh. You don't have to modify servers.env. To load image on gui, you need configure AWS_READABLE_PREFIX=http://minio:9000/faces/ in aws.env, you only need to change AWS_READABLE_PREFIX=http://:9000/faces/ IP_ADDR is an address you can access when you are using browser to open server running at.

KenaHemnani commented 2 years ago

Hi @solderzzc, Thank you for the response. After the above suggested changes I am able to see detection result via. message on GUI at http://165.232.62.29:3000/message sayin "AI saw kena", since it was previously labelled on cloud when minio was running at =165.232.62.29 i.e, AWS_READABLE_PREFIX. But, I am not able to see images over "Name Unknown" tab at GUI first page(It shows gray images). Also I am not able to label them. How to label and train model on linux system?

solderzzc commented 2 years ago

@KenaHemnani can you share your configuration files with modification?

KenaHemnani commented 2 years ago

Hi @solderzzc ,Thank you for your response. Following are the configuration files modified:

aws.env AWS_END_POINT=165.232.62.29 AWS_PORT=9000 AWS_USE_SSL=false AWS_ACCESS_KEY=QUA2IU17RHOKE6NUZ7T2 AWS_SECRET_KEY=MQniMc5K3lsRbv9OPaUbJN9ft2eTQJ1rh4Yx6C17 AWS_BUCKET=faces AWS_READABLE_PREFIX=http://192.168.0.71:9000/faces/

servers.env MQTT_BROKER_ADDRESS=165.232.62.29 MQTT_BROKER_PORT=1883 MQTT_BROKER_TRANSPORT=tcp API_SERVER_ADDRESS=165.232.62.29 API_SERVER_PORT=3000

solderzzc commented 2 years ago

@KenaHemnani It's caused by server address mismatching, the IP address of AWS_END_POINT and AWS_READABLE_PREFIX must be the same.

AWS_END_POINT=165.232.62.29
AWS_READABLE_PREFIX=http://192.168.0.71:9000/faces/
KenaHemnani commented 2 years ago

@solderzzc ,Thank your for the response. After changing aws.env as following:

AWS_END_POINT=192.168.0.71 AWS_PORT=9000 AWS_USE_SSL=false AWS_ACCESS_KEY=QUA2IU17RHOKE6NUZ7T2 AWS_SECRET_KEY=MQniMc5K3lsRbv9OPaUbJN9ft2eTQJ1rh4Yx6C17 AWS_BUCKET=faces AWS_READABLE_PREFIX=http://192.168.0.71:9000/faces/

I am able to see the captured images at minio http://192.168.0.71:9000/faces/ . But, in the GUI the images are still showing up gray over 'Name Unknown' and 'Timeline' though it is detecting faces and giving message 'AI saw '. These detection are because the model was trained previously. How can we label and train the facial images at the local system i.e, in this case we are using linux machine.

solderzzc commented 2 years ago

@KenaHemnani You should be able to get a clean environment by deleting all docker and local files, then you can use the clean local deployment from the beginning. Make sure you have created faces bucket with your minio server. The model will be trained again when you label them with the local deployment again. If it still not works, you can attach browser inspector log here. Whenever you label an image, a transfer learning script will be called and your local model will be updated.

KenaHemnani commented 2 years ago

Hi @solderzzc , Thank you for the response. I have deleted docker and intsalled again and run everything from start. Case-I: For below configuration files: aws.env: AWS_PORT=9000 AWS_READABLE_PREFIX=http://192.168.0.71:9000/faces/

servers.env: MQTT_BROKER_ADDRESS=192.168.0.71 MQTT_BROKER_PORT=1883 MQTT_BROKER_TRANSPORT=tcp API_SERVER_ADDRESS=192.168.0.71 API_SERVER_PORT=3000

Then the terminal is saying app is running at localhost:8000: Screenshot from 2022-07-22 12-39-48 Browser inspect: (at http://localhost:3000) Screenshot from 2022-07-22 12-40-38

Case-II: When running only ./run-on-linux.sh with above configuration of aws.env and following servers.env: MQTT_BROKER_ADDRESS=165.232.62.29 MQTT_BROKER_PORT=1883 MQTT_BROKER_TRANSPORT=tcp API_SERVER_ADDRESS=165.232.62.29 API_SERVER_PORT=3000

Browser inspect at (at http://165.232.62.29:3000/) Screenshot from 2022-07-22 13-02-26 Continuing... Screenshot from 2022-07-22 13-05-12

**Here, we can see images but they are gray and cannot label it.

Also, how to run the GUI at localhost:3000 ???**

solderzzc commented 2 years ago

Issue 1: Your local browser should be point to http://192.168.0.71:3000 to get your local label interface work.

Issue 2: If your api server is set to cloud server, you should also change aws.env to upload image to the cloud server to get rid of cross domain issue.

KenaHemnani commented 2 years ago

Hi @solderzzc , Thank you for the response. In continuation to issue-1: I am Still getting the error. Please let me know what else is required.

Screenshot from 2022-07-28 10-42-49

solderzzc commented 2 years ago

Private local deployment is not supported for open-source version. please use cloud server.

solderzzc commented 2 years ago

The installation pain point was solved by the latest release, now you can use command line to install application:

sharpai-cli deepcamera start
solderzzc commented 2 years ago

Hi @KenaHemnani SharpAI team decided to bring local deployment with sharpai-cli based on your feedback:

https://github.com/SharpAI/DeepCamera/blob/master/README.md#local-deployment-is-ready-for-testing-now