Git Product home page Git Product logo

berrynet's People

Contributors

bafu avatar david30907d avatar dependabot[bot] avatar edwardbetts avatar grandpaul avatar hzliu123 avatar tammyyang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

berrynet's Issues

Missing dependencies in setup.py

If you do not install BerryNet by configure but by pip3 install --user -e BerryNet, you will need to install these Debian packages manually:

  • python3-opencv
  • python3-opengl

results of ipcamera

I have installed berrynet and it works well with an image. But when I try with my IP camera ( heden 2.2) it doesn't work.
I have modified the config like that :
ifconfig eth0 192.168.0.1 netmask 255.255.255.0

then check that i work on firefox :
http://192.168.0.2:8080/videostream.cgi?user=&pwd=
http://192.168.0.2:8080/snapshot.cgi?user=&pwd=

I modified the config.js file ( config.ipcamerashapshot )

I then start berrynet-manager start
go to : http://localhost:8080/index.html#source=dashboard.json
and start the camera :
mosquitto_pub -h localhost -t berrynet/event/camera -m snapshot_ipcam

in MQTT client logs, I have : camera client : on topic/event/camera, received message snapshot_ipcam.
but no visual result.

Can someone help me to know if the problem come from my camera ? the configuration of the dashboard ? something else ?
Is there a folder where the images are saved ?

Thank you

MQTT service not work

Hi,

I installed Mosquitto broker and run it locally. However, the berrynet-manager log still gives me following error:
Jan 17 17:51:41 raspberrypi node[21074]: /usr/local/berrynet/node_modules/@line/bot-sdk/dist/client.js:9
Jan 17 17:51:41 raspberrypi node[21074]: throw new Error("no channel access token");
Jan 17 17:51:41 raspberrypi node[21074]: ^
Jan 17 17:51:41 raspberrypi node[21074]: Error: no channel access token
Jan 17 17:51:41 raspberrypi node[21074]: at new Client (/usr/local/berrynet/node_modules/@line/bot-sdk/dist/client.js:9:19)
Jan 17 17:51:41 raspberrypi node[21074]: at Object. (/usr/local/berrynet/line.js:39:20)
Jan 17 17:51:41 raspberrypi node[21074]: at Module._compile (module.js:571:32)
Jan 17 17:51:41 raspberrypi node[21074]: at Object.Module._extensions..js (module.js:580:10)
Jan 17 17:51:41 raspberrypi node[21074]: at Module.load (module.js:488:32)
Jan 17 17:51:41 raspberrypi node[21074]: at tryModuleLoad (module.js:447:12)
Jan 17 17:51:41 raspberrypi node[21074]: at Function.Module._load (module.js:439:3)
Jan 17 17:51:41 raspberrypi node[21074]: at Module.runMain (module.js:605:10)
Jan 17 17:51:41 raspberrypi node[21074]: at run (bootstrap_node.js:427:7)
Jan 17 17:51:41 raspberrypi node[21074]: at startup (bootstrap_node.js:151:9)
Jan 17 17:51:41 raspberrypi systemd[1]: line.service: Main process exited, code=exited, status=1/FAILURE
Jan 17 17:51:41 raspberrypi systemd[1]: line.service: Unit entered failed state.
pi@raspberrypi:~ $ pberrypi systemd[1]: line.service: Failed with result 'exit-code'.

CNCF-Runtime discussion/presentation(?)

Hello BerryNet team,

I'm one of the co-chairs of the CNCF SIG-Runtime. I'm reaching out and I think it would be great for you to present/discuss the project at one of our meetings. For example, how can the project be used to run Cloud Native workloads? Can it be used with something like K3s?

Let me know if this something you'd be interested in doing. If yes, please feel free to add it to our agenda or reach out to me (raravena80 at gmail.com)

Thanks!

inference not working

HI, the snapshots in jpg and json are in dir /usr/local/berrynet, NOT in inference/image
i installed many times in my rpi3 with stretch.
the log says : Unsubscribed topic berrynet/action/log
no errors in the log or status report.
i have LINE in berrynet-manager disabled.

(i like to use berrynet with the Movidium stick)

i hope someone helps me out..

[Bug Report] Debian berrynet package /usr//bin/bn_pipeline doesn't run

Description

bn_pipeline in /usr/bin/ doesn't run

Steps to Reproduce

$ bn_pipeline --pipeline-config xxx --disable-warmup -vvv --debug
Traceback (most recent call last):
File "/usr/bin/bn_pipeline", line 33, in
sys.exit(load_entry_point('berrynet==3.10.1', 'console_scripts', 'bn_pipeline')())
File "/usr/bin/bn_pipeline", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 972, in _find_and_load_unlocked
File "", line 228, in _call_with_frames_removed
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'bndyda'

  • BerryNet: 3.10.1
  • OS: Debian

Simply Doesnt Work !!

Nothing actually works 👎 Followed directions and the dashboard doesnt show anything. looking at the directory I can see there are serveral snapshots but thery are all the same image with different time stamps

Raspberry Pi 3 Crash issue

Hi,
I have faced an Raspberry Pi 3 board crashing issue, while running ./configure in my setup.
I find every time, it is crashing while installing convolution module (53/145) of dark flow package.
Can you give me your input on this?

N: See apt-secure(8) manpage for repository creation and user configuration details.

Hello

I need some help as I am receiving the error below every time I am running sudo apt-get update.
Please help

W: GPG error: https://raw.githubusercontent.com/DT42/BerryNet-repo/master stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A3211A87D7ACFE23
E: The repository 'https://raw.githubusercontent.com/DT42/BerryNet-repo/master stretch InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

About reading the log

I used berrynet-manager log to view the log. However, after awhile, the log is too long to read.

I want to know how to clean the log, how to use tail -f to read the log?

Thanks.

[FR] Support Raspberry Pi OS 64-bit (beta version)

https://www.raspberrypi.org/forums/viewtopic.php?t=275370

This is a beta test of the Raspberry Pi OS (64 bit)

We still recommend the 32 bit operating system for all Pis at this time, although have decided it is now time to begin the move toward a 64bit OS. For the moment this is a 'beta' program, the OS is in heavy flux and its functionality is likely to change significantly over the next few months.

Note, the 64bit OS is only install-able on the Pi 3 and Pi 4 devices

Latest 64-bit image: https://downloads.raspberrypi.org/raspios_arm64/images/

Install BerryNet : Can you provide and .img file for raspberry PI3B

Dear All,
thanks for your huge job !
In order to go faster in tests, can you provide an .img file of a pre-configured BerryNet platform for PI3B and Rapberry pi official camera V2 ?
Burning an image on a SD card is so faster than compiling all the dependencies and module.

Best regards
Nicolas Angenieux

not able to get detected image on web ui

When I run
mosquitto_pub -h localhost -t berrynet/event/localImage -m data/person.jpg
it is publishing data and also checked mongoDB entries it is contioniously increasing,
unfortunately I am not able to view detected data
I am getting this error log when hitting
berrynet-manager log

-- Subject: Unit line.service has finished shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support

-- Unit line.service has finished shutting down.
Apr 19 19:53:36 raspberrypi systemd[1]: Started LINE client agent for notification.
-- Subject: Unit line.service has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support

-- Unit line.service has finished starting up.

-- The start-up result is done.
Apr 19 19:53:38 raspberrypi node[3864]: /usr/local/berrynet/node_modules/@line/bot-sdk/dist/client.js:9
Apr 19 19:53:38 raspberrypi node[3864]: throw new Error("no channel access token");
Apr 19 19:53:38 raspberrypi node[3864]: ^
Apr 19 19:53:38 raspberrypi node[3864]: Error: no channel access token
Apr 19 19:53:38 raspberrypi node[3864]: at new Client (/usr/local/berrynet/node_modules/@line/bot-sdk/dist/client.js:9:19)
Apr 19 19:53:38 raspberrypi node[3864]: at Object. (/usr/local/berrynet/line.js:39:20)
Apr 19 19:53:38 raspberrypi node[3864]: at Module._compile (module.js:577:32)
Apr 19 19:53:38 raspberrypi node[3864]: at Object.Module._extensions..js (module.js:586:10)
Apr 19 19:53:38 raspberrypi node[3864]: at Module.load (module.js:494:32)
Apr 19 19:53:38 raspberrypi node[3864]: at tryModuleLoad (module.js:453:12)
Apr 19 19:53:38 raspberrypi node[3864]: at Function.Module._load (module.js:445:3)
Apr 19 19:53:38 raspberrypi node[3864]: at Module.runMain (module.js:611:10)
Apr 19 19:53:38 raspberrypi node[3864]: at run (bootstrap_node.js:387:7)
Apr 19 19:53:38 raspberrypi node[3864]: at startup (bootstrap_node.js:153:9)
Apr 19 19:53:38 raspberrypi systemd[1]: line.service: Main process exited, code=exited, status=1/FAILURE
Apr 19 19:53:38 raspberrypi systemd[1]: line.service: Unit entered failed state.
Apr 19 19:53:38 raspberrypi systemd[1]: line.service: Failed with result 'exit-code'.

what do i need to do when run ./configure?

i don't konw how to get a result from this project. when i run "./configure" i haven't get anything but MQTT CLIENT LOGS , i don't konw where can i get a result when i run "mosquitto_pub -h localhost -t berrynet/event/localImage -m ./dog.jpg"

Failed to start detection_server.service

Reported by L kouchla [email protected]:

Hi;

I executed the command ./configure and the instllation is completed. But I think some packages or files are missing during the installation.

When I run "berrynet-manager start", it tells me that it does not find the commnade.

When I run "./berrynet-manager start". it says :

Failed to start detection_server.service: Unit detection_server.service failed to load: No such filectory.

Services: broker, dashborad, localim, camera, newspaper and cleaner failed to start.

What am I doing wrong ?

Is ther a step by step tutorial for installation

Thank you

Use opencv in distribution instead of berrynet-repo for bionic

python3-opencv is available in bionic repository, so we should use it directly.

root@816c8d8ab4a7:~# apt install python3-opencv
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python3-opencv : Depends: libopencv-calib3d3.2 (= 3.2.0+dfsg-6) but it is not going to be installed
                  Depends: libopencv-features2d3.2 (= 3.2.0+dfsg-6) but it is not going to be installed
                  Depends: libopencv-highgui3.2 (= 3.2.0+dfsg-6) but it is not going to be installed
                  Depends: libopencv-imgcodecs3.2 (= 3.2.0+dfsg-6) but it is not going to be installed
                  Depends: libopencv-objdetect3.2 (= 3.2.0+dfsg-6) but it is not going to be installed
                  Depends: libopencv-stitching3.2 (= 3.2.0+dfsg-6) but it is not going to be installed
                  Depends: libopencv-superres3.2 (= 3.2.0+dfsg-6) but it is not going to be installed
                  Depends: libopencv-videoio3.2 (= 3.2.0+dfsg-6) but it is not going to be installed
                  Depends: libopencv-videostab3.2 (= 3.2.0+dfsg-6) but it is not going to be installed
                  Depends: libopencv-viz3.2 (= 3.2.0+dfsg-6) but it is not going to be installed
                  Depends: python3 (< 3.6) but 3.6.7-1~18.04 is to be installed
                  Depends: python3-numpy (>= 1:1.10.0~b1) but it is not going to be installed
                  Depends: python3-numpy-abi9
                  Depends: libopencv-contrib3.2 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@816c8d8ab4a7:~# apt-cache policy libopencv-calib3d3.2
libopencv-calib3d3.2:
  Installed: (none)
  Candidate: 3.2.0+dfsg-6
  Version table:
     3.2.0+dfsg-6 500
        500 http://repo.berrynet.org bionic/ Packages
     3.2.0+dfsg-4ubuntu0.1 500
        500 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
        500 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
     3.2.0+dfsg-4build2 500
        500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages

Raspberry Pi3+ Install Doesn't Work

Hello

Thanks for doing this project. I'm trying to get this to work on a Raspberry Pi3 B+ but I can't seem to get it working. The browser is not showing up. http://192.168.1.201:8080/index.html#source=dashboard.json

The installation I followed was Steps for JavaScript Codebase

Here are the steps to install BerryNet on RPi:

Get BerryNet source codes

$ git clone https://github.com/DT42/BerryNet.git
$ cd BerryNet

Execute installation script

$ ./configure

Logs

Get:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB]
Get:2 http://archive.raspberrypi.org/debian stretch InRelease [25.4 kB]
Get:3 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages [11.7 MB]
Get:4 http://archive.raspberrypi.org/debian stretch/main armhf Packages [223 kB]
Get:5 http://archive.raspberrypi.org/debian stretch/ui armhf Packages [44.9 kB]
Fetched 12.0 MB in 14s (839 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version (7.52.1-5+deb9u9).
git is already the newest version (1:2.11.0-3+deb9u4).
lsb-release is already the newest version (9.20161125+rpi1).
lsb-release set to manually installed.
python3-dev is already the newest version (3.5.3-1).
python3-dev set to manually installed.
wget is already the newest version (1.18-5+deb9u3).
python3-pip is already the newest version (9.0.1-2+rpt2).
The following additional packages will be installed:
  comerr-dev ghostscript gsfonts imagemagick-6-common imagemagick-6.q16
  krb5-multidev libboost-filesystem1.58.0 libboost-program-options1.58.0
  libboost-system1.58.0 libboost-thread1.58.0 libboost-thread1.62.0 libc-ares2
  libev4 libgs9 libgs9-common libgssrpc4 libjxr-tools libjxr0
  libkadm5clnt-mit11 libkadm5srv-mit11 libkdb5-8 liblqr-1-0
  libmagickcore-6.q16-3 libmagickcore-6.q16-3-extra libmagickwand-6.q16-3
  libmongoclient-dev libmongoclient0 libmosquitto1 libnetpbm10 libpcap0.8
  libpcrecpp0v5 libuv1 libv8-3.14.5 libwebsockets8 libwmf0.2-7 libyaml-0-2
  mongodb-clients mongodb-dev mongodb-server netpbm
Suggested packages:
  doc-base ghostscript-x imagemagick-doc autotrace cups-bsd | lpr | lprng
  enscript gimp gnuplot grads graphviz hp2xx html2ps libwmf-bin mplayer povray
  radiance sane-utils texlive-base-bin transfig ufraw-batch krb5-doc krb5-user
  inkscape libyaml-doc apparmor
The following NEW packages will be installed:
  comerr-dev fswebcam ghostscript gsfonts imagemagick imagemagick-6-common
  imagemagick-6.q16 krb5-multidev libboost-filesystem1.58.0
  libboost-program-options1.58.0 libboost-system1.58.0 libboost-thread1.58.0
  libboost-thread1.62.0 libc-ares2 libev4 libgssrpc4 libjxr-tools libjxr0
  libkadm5clnt-mit11 libkadm5srv-mit11 libkdb5-8 libkrb5-dev liblqr-1-0
  libmagickcore-6.q16-3 libmagickcore-6.q16-3-extra libmagickwand-6.q16-3
  libmongoclient-dev libmongoclient0 libmosquitto1 libnetpbm10 libpcap0.8
  libpcrecpp0v5 libuv1 libv8-3.14.5 libwebsockets8 libwmf0.2-7 libyaml-0-2
  libyaml-dev libzmq3-dev mongodb mongodb-clients mongodb-dev mongodb-server
  mosquitto mosquitto-clients netpbm
The following packages will be upgraded:
  libgs9 libgs9-common
2 upgraded, 46 newly installed, 0 to remove and 19 not upgraded.
Need to get 51.2 MB of archives.
After this operation, 147 MB of additional disk space will be used.
Get:1 http://archive.raspberrypi.org/debian stretch/main armhf libc-ares2 armhf 1.14.0-1~bpo9+1 [80.7 kB]
Get:2 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf liblqr-1-0 armhf 0.4.2-2 [20.9 kB]
Get:3 http://archive.raspberrypi.org/debian stretch/main armhf libuv1 armhf 1.18.0-3~bpo9+1 [86.3 kB]
Get:4 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf imagemagick-6-common all 8:6.9.7.4+dfsg-11+deb9u6 [184 kB]
Get:5 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libmagickcore-6.q16-3 armhf 8:6.9.7.4+dfsg-11+deb9u6 [1,571 kB]
Get:6 http://archive.raspberrypi.org/debian stretch/main armhf libwebsockets8 armhf 2.0.3-2+b1~rpt1 [85.2 kB]
Get:7 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libmagickwand-6.q16-3 armhf 8:6.9.7.4+dfsg-11+deb9u6 [403 kB]
Get:8 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libpcrecpp0v5 armhf 2:8.39-3 [149 kB]
Get:9 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libboost-system1.58.0 armhf 1.58.0+dfsg-5.1+rpi1+b1 [31.1 kB]
Get:10 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libboost-filesystem1.58.0 armhf 1.58.0+dfsg-5.1+rpi1+b1 [57.4 kB]
Get:11 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libboost-program-options1.58.0 armhf 1.58.0+dfsg-5.1+rpi1+b1 [137 kB]
Get:12 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libboost-thread1.58.0 armhf 1.58.0+dfsg-5.1+rpi1+b1 [63.4 kB]
Get:13 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libpcap0.8 armhf 1.8.1-3 [123 kB]
Get:14 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libv8-3.14.5 armhf 3.14.5.8-11 [1,083 kB]
Get:15 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf mongodb-clients armhf 1:2.4.14-4 [28.8 MB]
Get:16 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf mongodb-server armhf 1:2.4.14-4 [3,466 kB]
Get:17 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libgssrpc4 armhf 1.15-1+deb9u1 [81.7 kB]
Get:18 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libkadm5clnt-mit11 armhf 1.15-1+deb9u1 [67.6 kB]
Get:19 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libkdb5-8 armhf 1.15-1+deb9u1 [66.1 kB]
Get:20 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libkadm5srv-mit11 armhf 1.15-1+deb9u1 [79.2 kB]
Get:21 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf fswebcam armhf 20140113-1 [44.0 kB]
Get:22 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libgs9 armhf 9.26a~dfsg-0+deb9u2 [1,862 kB]
Get:23 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libgs9-common all 9.26a~dfsg-0+deb9u2 [5,140 kB]
Get:24 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf ghostscript armhf 9.26a~dfsg-0+deb9u2 [98.8 kB]
Get:25 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf gsfonts all 1:8.11+urwcyr1.0.7~pre44-4.3 [3,126 kB]
Get:26 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf imagemagick-6.q16 armhf 8:6.9.7.4+dfsg-11+deb9u6 [563 kB]
Get:27 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf comerr-dev armhf 2.1-1.43.4-2 [37.7 kB]
Get:28 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf krb5-multidev armhf 1.15-1+deb9u1 [151 kB]
Get:29 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libboost-thread1.62.0 armhf 1.62.0+dfsg-4 [65.0 kB]
Get:30 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libev4 armhf 1:4.22-1 [34.0 kB]
Get:31 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libjxr0 armhf 1.1-6 [135 kB]
Get:32 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libjxr-tools armhf 1.1-6 [16.5 kB]
Get:33 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libwmf0.2-7 armhf 0.2.8.4-10.6 [142 kB]
Get:34 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libmagickcore-6.q16-3-extra armhf 8:6.9.7.4+dfsg-11+deb9u6 [185 kB]
Get:35 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libmongoclient0 armhf 1.1.2-5 [438 kB]
Get:36 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libmongoclient-dev armhf 1.1.2-5 [736 kB]
Get:37 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libmosquitto1 armhf 1.4.10-3+deb9u4 [47.2 kB]
Get:38 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libnetpbm10 armhf 2:10.0-15.3 [74.4 kB]
Get:39 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libyaml-0-2 armhf 0.1.7-2 [39.9 kB]
Get:40 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libyaml-dev armhf 0.1.7-2 [48.9 kB]
Get:41 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libzmq3-dev armhf 4.2.1-4+deb9u1 [343 kB]
Get:42 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf mongodb-dev all 2:1.1.2-5 [15.9 kB]
Get:43 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf mongodb armhf 1:2.4.14-4 [13.6 kB]
Get:44 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf mosquitto armhf 1.4.10-3+deb9u4 [122 kB]
Get:45 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf mosquitto-clients armhf 1.4.10-3+deb9u4 [52.3 kB]
Get:46 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf netpbm armhf 2:10.0-15.3 [888 kB]
Get:47 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf imagemagick armhf 8:6.9.7.4+dfsg-11+deb9u6 [141 kB]
Get:48 http://mirror.rise.ph/raspbian/raspbian stretch/main armhf libkrb5-dev armhf 1.15-1+deb9u1 [45.7 kB]
apt-listchanges: Reading changelogs...

Extracting templates from packages: 62%
Extracting templates from packages: 100%
Fetched 51.2 MB in 22s (2,321 kB/s)
Selecting previously unselected package liblqr-1-0:armhf.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%

Hardware: Raspberry Pi3 B+
Just a note:
I have MQTT broker installed on a different RPI3 B+ running my home automation.

[Bug Report]

Hi guys, I'm having trouble installing BerryNet, I used the Install From Pre-Built Image method (the latest version of the system was already installed on the Raspberry Pi), but I'm having this problem after booting, what should I do?I'd appreciate it if you could help me
.
Logs
image

Change dependency python3-opengl to freeglut3

We are using PyOpenGL and PyOpenGL-accelerate wheels, which needs freeglut3 to prevent the error

[D 200412 12:31:43 __init__:13] Subscribe topic berrynet/engine/ovdetector/result
Traceback (most recent call last):                                                 
  File "berrynet/client/fbdashboard.py", line 347, in <module>           
    main()                                                                 
  File "berrynet/client/fbdashboard.py", line 331, in main              
    glutInitWindowPosition(0, 0)        
  File "/home/bafu/.local/lib/python3.6/site-packages/OpenGL/platform/baseplatform.py", line 425, in __call__
    self.__name__, self.__name__,                                                                              OpenGL.error.NullFunctionError: Attempt to call an undefined function glutInitWindowPosition, check for bool(gl
utInitWindowPosition) before calling                  

Currently freeglut3 is included by installing python3-opengl.

[Bug Report] pkg_resources.DistributionNotFound: The 'paho-mqtt' distribution was not found and is required by berrynet

I install Berrynet follow the manual installation. But after installed successfully the supervisor is not running camera and tflite
I checked the log files and see the error:
pkg_resources.DistributionNotFound: The 'paho-mqtt' distribution was not found and is required by berrynet
I tried to install paho-mqtt by command: python3 -m pip install paho-mqtt
But still error, camera and tflite are not running
Please advise how to fix this.
Thanks you

Regarding tensorflow on manual installation

Berrynet on manual installation

after ./configure command,

the supervisor is not running camera and tflite

while checking logs shows,

tensorflow is not installed during ./configure

Error in updating the pkg or installing

$ apt-get update or $ pkg update
Ign:1 http://dl.bintray.com/xeffyr/unstable-packages-21 unstable InRelease
Err:2 http://dl.bintray.com/xeffyr/unstable-packages-21 unstable Release
404 Not Found [IP: 34.217.163.1 80]
Hit:3 https://termux.net stable InRelease
Ign:4 https://dl.bintray.com/grimler/game-packages-21 games InRelease
Ign:5 https://dl.bintray.com/grimler/science-packages-21 science InRelease
Get:6 https://dl.bintray.com/grimler/game-packages-21 games Release [5344 B]
Hit:6 https://dl.bintray.com/grimler/game-packages-21 games Release
Get:8 https://dl.bintray.com/grimler/science-packages-21 science Release [5348 B]
Hit:8 https://dl.bintray.com/grimler/science-packages-21 science Release
Reading package lists... Done
E: The repository 'http://dl.bintray.com/xeffyr/unstable-packages-21 unstable Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

No log errors, but inference fails (x.jpg.done is 0 bytes). Status shows 2 services failed.

I would like to try using BerryNet on my Raspberry Pi 3, but two of the services listed in the berrynet-manager status output are failing and I am unclear about how to debug this. I have tried using both the hardware raspi-cam, and a USB camera. I am able to capture stills and stream from both of these cameras

The MQTT log shows chunks like this that seem to look successful:

[2017-11-15 23:29:54] camera client: publishing image.
[2017-11-15 23:29:54] camera client: on topic berrynet/event/camera, received message snapshot_boardcam.
[2017-11-15 23:29:50] inference client: saved buffer to image /usr/local/berrynet/inference/image/snapshot-20171115-232950.jpg successfully.
[2017-11-15 23:29:50] inference client: on topic berrynet/action/inference, received 276635 bytes.
[2017-11-15 23:29:50] Image done file /usr/local/berrynet/inference/image/snapshot-20171115-232950.jpg.done is ready.

The image file referenced above has the size that matches what the inference client receives:

pi@rpiai:~ $ ls -l /usr/local/berrynet/inference/image/snapshot-20171115-232950.jpg
-rw-r--r-- 1 root pi 276635 Nov 15 23:29 /usr/local/berrynet/inference/image/snapshot-20171115-232950.jpg
pi@rpiai:~ $

I can manually view that image file and it looks good.

The inference client gives no indication of trouble in the log, but the output file that it names above is always 0 bytes:

pi@rpiai:~ $ ls -l /usr/local/berrynet/inference/image/snapshot-20171115-232950.jpg.done
-rw-r--r-- 1 root pi 0 Nov 15 23:29 /usr/local/berrynet/inference/image/snapshot-20171115-232950.jpg.done
pi@rpiai:~ $

So something is failing at the inference stage. When I look at the web client I see no images in camera snapshot or the inference result panes, just black backgrounds.

The berrynet-manager status shows 2 failed services (detection_fast_server.service, and line.service):

pi@rpiai:/BerryNet $ berrynet-manager status
● detection_fast_server.service - detection server
Loaded: loaded (/etc/systemd/system/detection_fast_server.service; disabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Wed 2017-11-15 23:37:35 UTC; 5s ago
Process: 10002 ExecStart=/bin/bash utils/localrun.sh /usr/local/berrynet/inference/image (code=exited, status=1/FAILURE)
Main PID: 10002 (code=exited, status=1/FAILURE)
Nov 15 23:37:35 rpiai systemd[1]: detection_fast_server.service: Unit entered failed state.
Nov 15 23:37:35 rpiai systemd[1]: detection_fast_server.service: Failed with result 'exit-code'.
● agent.service - MQTT client agent for classifier or detector
Loaded: loaded (/etc/systemd/system/agent.service; disabled; vendor preset: enabled)
Active: active (running) since Wed 2017-11-15 23:17:17 UTC; 20min ago
Main PID: 8120 (node)
CGroup: /system.slice/agent.service
└─8120 /usr/bin/node agent.js
Nov 15 23:29:50 rpiai node[8120]: rename event for snapshot-20171115-232950.jpg, but it is not inference result done file.
Nov 15 23:29:50 rpiai node[8120]: change event for snapshot-20171115-232950.jpg, ignore it.
Nov 15 23:29:50 rpiai node[8120]: inference client: saved buffer to image /usr/local/berrynet/inference/image/snapshot-20171115-23
Nov 15 23:29:54 rpiai node[8120]: inference client: on topic berrynet/action/inference, received 255160 bytes.
Nov 15 23:29:54 rpiai node[8120]: Image done file /usr/local/berrynet/inference/image/snapshot-20171115-232954.jpg.done is ready.
Nov 15 23:29:54 rpiai node[8120]: rename event for snapshot-20171115-232954.jpg, but it is not inference result done file.
Nov 15 23:29:54 rpiai node[8120]: rename event for snapshot-20171115-232954.jpg.done, but it is not inference result done file.
Nov 15 23:29:54 rpiai node[8120]: rename event for snapshot-20171115-232954.jpg.done, but it is not inference result done file.
Nov 15 23:29:54 rpiai node[8120]: change event for snapshot-20171115-232954.jpg, ignore it.
Nov 15 23:29:54 rpiai node[8120]: inference client: saved buffer to image /usr/local/berrynet/inference/image/snapshot-20171115-23
● broker.service - MQTT broker
Loaded: loaded (/etc/systemd/system/broker.service; disabled; vendor preset: enabled)
Active: active (running) since Wed 2017-11-15 23:17:17 UTC; 20min ago
Main PID: 8119 (node)
CGroup: /system.slice/broker.service
└─8119 /usr/bin/node broker.js
Nov 15 23:29:54 rpiai node[8119]: Server published. Avoid showing package content here.
Nov 15 23:29:54 rpiai node[8119]: Server published. Avoid showing package content here.
Nov 15 23:29:54 rpiai node[8119]: Server published. Avoid showing package content here.
Nov 15 23:29:54 rpiai node[8119]: Server published. Avoid showing package content here.
Nov 15 23:29:54 rpiai node[8119]: Server published. Avoid showing package content here.
Nov 15 23:29:54 rpiai node[8119]: Server published. Avoid showing package content here.
Nov 15 23:29:54 rpiai node[8119]: Server published. Avoid showing package content here.
Nov 15 23:29:54 rpiai node[8119]: Server published. Avoid showing package content here.
Nov 15 23:32:36 rpiai node[8119]: Server published. Avoid showing package content here.
Nov 15 23:32:36 rpiai node[8119]: Server published. Avoid showing package content here.
● dashboard.service - Dashboard webserver
Loaded: loaded (/etc/systemd/system/dashboard.service; disabled; vendor preset: enabled)
Active: active (running) since Wed 2017-11-15 23:17:17 UTC; 20min ago
Main PID: 8118 (node)
CGroup: /system.slice/dashboard.service
└─8118 /usr/bin/node server.js
Nov 15 23:29:00 rpiai node[8118]: Wed Nov 15 2017 23:29:00 GMT+0000 (UTC): /dashboard.json
Nov 15 23:29:00 rpiai node[8118]: Endpoint: /usr/local/berrynet/dashboard/www/freeboard/dashboard.json
Nov 15 23:29:00 rpiai node[8118]: Wed Nov 15 2017 23:29:00 GMT+0000 (UTC): /plugins/thirdparty/freeboard-mqtt-paho/mqttws31.js
Nov 15 23:29:00 rpiai node[8118]: Endpoint: /usr/local/berrynet/dashboard/www/freeboard/plugins/thirdparty/freeboard-mqtt-
Nov 15 23:29:06 rpiai node[8118]: Wed Nov 15 2017 23:29:06 GMT+0000 (UTC): /img/dropdown-arrow.png
Nov 15 23:29:06 rpiai node[8118]: Endpoint: /usr/local/berrynet/dashboard/www/freeboard/img/dropdown-arrow.png
Nov 15 23:29:18 rpiai node[8118]: Wed Nov 15 2017 23:29:18 GMT+0000 (UTC): /css/freeboard.min.css
Nov 15 23:29:18 rpiai node[8118]: Endpoint: /usr/local/berrynet/dashboard/www/freeboard/css/freeboard.min.css
Nov 15 23:29:18 rpiai node[8118]: Wed Nov 15 2017 23:29:18 GMT+0000 (UTC): /css/dt42.css
Nov 15 23:29:18 rpiai node[8118]: Endpoint: /usr/local/berrynet/dashboard/www/freeboard/css/dt42.css
● localimg.service - MQTT client to detect local image event
Loaded: loaded (/etc/systemd/system/localimg.service; disabled; vendor preset: enabled)
Active: active (running) since Wed 2017-11-15 23:17:17 UTC; 20min ago
Main PID: 8117 (node)
CGroup: /system.slice/localimg.service
└─8117 /usr/bin/node localimg.js
Nov 15 23:17:17 rpiai systemd[1]: Started MQTT client to detect local image event.
Nov 15 23:17:27 rpiai node[8117]: localimg client: connected to mqtt://localhost successfully.
● camera.service - MQTT client to get snapshot from Pi camera or IP camera.
Loaded: loaded (/etc/systemd/system/camera.service; disabled; vendor preset: enabled)
Active: active (running) since Wed 2017-11-15 23:17:17 UTC; 20min ago
Main PID: 8116 (node)
CGroup: /system.slice/camera.service
└─8116 /usr/bin/node camera.js
Nov 15 23:28:32 rpiai node[8116]: camera client: on topic berrynet/event/camera, received message snapshot_boardcam.
Nov 15 23:28:35 rpiai node[8116]: camera client: publishing image.
Nov 15 23:28:36 rpiai node[8116]: camera client: on topic berrynet/event/camera, received message snapshot_boardcam.
Nov 15 23:28:38 rpiai node[8116]: camera client: publishing image.
Nov 15 23:29:37 rpiai node[8116]: camera client: on topic berrynet/event/camera, received message snapshot_boardcam.
Nov 15 23:29:39 rpiai node[8116]: camera client: publishing image.
Nov 15 23:29:47 rpiai node[8116]: camera client: on topic berrynet/event/camera, received message snapshot_boardcam.
Nov 15 23:29:49 rpiai node[8116]: camera client: publishing image.
Nov 15 23:29:52 rpiai node[8116]: camera client: on topic berrynet/event/camera, received message snapshot_boardcam.
Nov 15 23:29:54 rpiai node[8116]: camera client: publishing image.
● journal.service - MQTT client agent for logging.
Loaded: loaded (/etc/systemd/system/journal.service; disabled; vendor preset: enabled)
Active: active (running) since Wed 2017-11-15 23:17:17 UTC; 20min ago
Main PID: 8115 (node)
CGroup: /system.slice/journal.service
└─8115 /usr/bin/node journal.js
Nov 15 23:17:17 rpiai systemd[1]: Started MQTT client agent for logging..
Nov 15 23:17:26 rpiai node[8115]: log client: connected to mqtt://localhost successfully.
● data_collector.service - MQTT client agent for DL inference data collection.
Loaded: loaded (/etc/systemd/system/data_collector.service; disabled; vendor preset: enabled)
Active: active (running) since Wed 2017-11-15 23:17:17 UTC; 20min ago
Main PID: 8114 (node)
CGroup: /system.slice/data_collector.service
└─8114 /usr/bin/node data_collector.js
Nov 15 23:29:50 rpiai node[8114]: 2017-11-15T23:29:50.054Z
Nov 15 23:29:50 rpiai node[8114]: log client: saved buffer to image successfully.
Nov 15 23:29:50 rpiai node[8114]: Unsubscribed topic berrynet/action/log
Nov 15 23:29:50 rpiai node[8114]: Unsubscribed topic berrynet/action/log
Nov 15 23:29:54 rpiai node[8114]: Unsubscribed topic berrynet/action/log
Nov 15 23:29:54 rpiai node[8114]: Unsubscribed topic berrynet/action/log
Nov 15 23:29:54 rpiai node[8114]: Get berrynet/action/inference
Nov 15 23:29:54 rpiai node[8114]: 2017-11-15T23:29:54.509Z
Nov 15 23:29:54 rpiai node[8114]: log client: saved buffer to image successfully.
Nov 15 23:29:54 rpiai node[8114]: Unsubscribed topic berrynet/action/log
● line.service - LINE client agent for notification
Loaded: loaded (/etc/systemd/system/line.service; disabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Wed 2017-11-15 23:37:36 UTC; 4s ago
Process: 9996 ExecStart=/usr/bin/node line.js (code=exited, status=1/FAILURE)
Main PID: 9996 (code=exited, status=1/FAILURE)
Nov 15 23:37:36 rpiai systemd[1]: line.service: Unit entered failed state.
Nov 15 23:37:36 rpiai systemd[1]: line.service: Failed with result 'exit-code'.
pi@rpiai:
/BerryNet $

Maybe a darknet issue?

Fails to read image from USB camera by OpenCV

After created VideoCapture object and ran read, got the error message below:

Corrupt JPEG data: 1 extraneous bytes before marker 0xd1

Steps to Reproduce

>>> import cv2
>>> cap = cv2.VideoCapture(0)
>>> ret, im = cap.read()
Corrupt JPEG data: 1 extraneous bytes before marker 0xd1
>>> ret, im = cap.read()
Corrupt JPEG data: 1 extraneous bytes before marker 0xd4
...

Environment

  • OS: Raspbian GNU/Linux 9.4 (stretch)
  • Kernel: Linux raspberrypi 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l GNU/Linux
  • OpenCV: 3.2.0+dfsg-4dt421
  • USB camera: Logitech Webcam C310 (ID 046d:081b)

nothing visible in the webpage; errors at launch

Hi,
this is my syslog:

Nov 23 12:11:15 raspberrypi systemd[1]: Started detection server.
Nov 23 12:11:15 raspberrypi bash[3984]: SNAPSHOT_DIR: /usr/local/berrynet/inference/image
Nov 23 12:11:15 raspberrypi systemd[1]: Started MQTT client agent for classifier or detector.
Nov 23 12:11:15 raspberrypi systemd[1]: Started LINE client agent for notification.
Nov 23 12:11:15 raspberrypi systemd[1]: Started MQTT client agent for DL inference data collection..
Nov 23 12:11:15 raspberrypi systemd[1]: Started MQTT client agent for logging..
Nov 23 12:11:15 raspberrypi systemd[1]: Started MQTT client to get snapshot from Pi camera or IP camera..
Nov 23 12:11:15 raspberrypi systemd[1]: Started MQTT client to detect local image event.
Nov 23 12:11:15 raspberrypi systemd[1]: Started Dashboard webserver.
Nov 23 12:11:15 raspberrypi systemd[1]: Started MQTT broker.
Nov 23 12:11:15 raspberrypi bash[3984]: [1511439075.737] watch_dir: /usr/local/berrynet/inference/image
Nov 23 12:11:15 raspberrypi bash[3984]: [1511439075.737] pid: /tmp/detectord.pid
Nov 23 12:11:15 raspberrypi bash[3984]: Traceback (most recent call last):
Nov 23 12:11:15 raspberrypi bash[3984]: File "detectord.py", line 137, in
Nov 23 12:11:15 raspberrypi bash[3984]: stderr=subprocess.STDOUT)
Nov 23 12:11:15 raspberrypi bash[3984]: File "/usr/lib/python2.7/subprocess.py", line 390, in init
Nov 23 12:11:15 raspberrypi bash[3984]: errread, errwrite)
Nov 23 12:11:15 raspberrypi bash[3984]: File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
Nov 23 12:11:15 raspberrypi bash[3984]: raise child_exception
Nov 23 12:11:15 raspberrypi bash[3984]: OSError: [Errno 2] No such file or directory
Nov 23 12:11:15 raspberrypi systemd[1]: detection_fast_server.service: Main process exited, code=exited, status=1/FAILURE
Nov 23 12:11:15 raspberrypi systemd[1]: detection_fast_server.service: Unit entered failed state.
Nov 23 12:11:15 raspberrypi systemd[1]: detection_fast_server.service: Failed with result 'exit-code'.
Nov 23 12:11:16 raspberrypi node[3997]: Dashboard Server running as PORT 8080
Nov 23 12:11:16 raspberrypi node[3997]: Press CTRL + C to stop
Nov 23 12:11:19 raspberrypi node[3993]: Failed to create data storage dir.
Nov 23 12:11:20 raspberrypi node[3992]: /usr/local/berrynet/node_modules/@line/bot-sdk/dist/client.js:9
Nov 23 12:11:20 raspberrypi node[3992]: throw new Error("no channel access token");
Nov 23 12:11:20 raspberrypi node[3992]: ^
Nov 23 12:11:20 raspberrypi node[3992]: Error: no channel access token
Nov 23 12:11:20 raspberrypi node[3992]: at new Client (/usr/local/berrynet/node_modules/@line/bot-sdk/dist/client.js:9:19)
Nov 23 12:11:20 raspberrypi node[3992]: at Object. (/usr/local/berrynet/line.js:39:20)
Nov 23 12:11:20 raspberrypi node[3992]: at Module._compile (module.js:570:32)
Nov 23 12:11:20 raspberrypi node[3992]: at Object.Module._extensions..js (module.js:579:10)
Nov 23 12:11:20 raspberrypi node[3992]: at Module.load (module.js:487:32)
Nov 23 12:11:20 raspberrypi node[3992]: at tryModuleLoad (module.js:446:12)
Nov 23 12:11:20 raspberrypi node[3992]: at Function.Module._load (module.js:438:3)
Nov 23 12:11:20 raspberrypi node[3992]: at Module.runMain (module.js:604:10)
Nov 23 12:11:20 raspberrypi node[3992]: at run (bootstrap_node.js:383:7)
Nov 23 12:11:20 raspberrypi node[3992]: at startup (bootstrap_node.js:149:9)
Nov 23 12:11:20 raspberrypi systemd[1]: line.service: Main process exited, code=exited, status=1/FAILURE
Nov 23 12:11:20 raspberrypi systemd[1]: line.service: Unit entered failed state.
Nov 23 12:11:20 raspberrypi systemd[1]: line.service: Failed with result 'exit-code'.

Traced it down to: /home/pi/BerryNet/utils/darknet/detectord.py:
cmd = ['./darknet', 'detector', 'test', data, cfg, weight, '-out', '/usr/local/berrynet/dashboard/www/freeboard/snapshot']
darknet = subprocess.Popen(cmd, bufsize=0,
stdin=subprocess.PIPE,
stderr=subprocess.STDOUT)

I've searched through all my RPi /, there is no "./darknet" executable. Could you explain a bit what's going on?

Thank you

[Bug Report] CI is currently broken

Description
A clear and concise description of what the bug is.

Steps to Reproduce

  1. https://github.com/DT42/BerryNet/actions/runs/241356224

Expected behavior

  • Expected: A clear and concise description of what you expected to happen.
  • Actual: A clear and concise description of what actually happened.

Logs

If applicable, add logs or screenshots to help explain your problem.

Environment

  • BerryNet: [e.g. v0.6.2, beta2, etc.]
  • OS: [e.g. Ubuntu 20.04]

cpu_extension content has been merged into MKLDNN plugin since OpenVINO 2020.1

Since OpenVINO 2020.1, cpu_extension content has been merged into MKLDNN plugin and it is used automatically.

We do not need to call these functions below anymore:

self.plugin.add_cpu_extension(plugin_dirs + '/libcpu_extension_avx2.so')
self.plugin.add_cpu_extension(plugin_dirs + '/libcpu_extension_avx512.so')
self.plugin.add_cpu_extension(plugin_dirs + '/libcpu_extension_sse4.so')

openvino-2020.1-cpuextension.patch.txt

Referrence: cvat-ai/cvat#1179 (comment)

Undocumented configuration for config.js

I cannot find what info to put in config.js's:
// Authentication and channel information for LINE
config.LINETargetUserID = '';
config.LINEChannelSecret = '';
config.LINEChannelAccessToken = '';

Not having something here makes client.js to fail:
Nov 23 14:21:01 raspberrypi systemd[1]: Started LINE client agent for notification.
Nov 23 14:21:04 raspberrypi node[16616]: /usr/local/berrynet/node_modules/@line/bot-sdk/dist/client.js:9
Nov 23 14:21:04 raspberrypi node[16616]: throw new Error("no channel access token");
Nov 23 14:21:04 raspberrypi node[16616]: ^
Nov 23 14:21:04 raspberrypi node[16616]: Error: no channel access token
Nov 23 14:21:04 raspberrypi node[16616]: at new Client (/usr/local/berrynet/node_modules/@line/bot-sdk/dist/client.js:9:19)
Nov 23 14:21:04 raspberrypi node[16616]: at Object. (/usr/local/berrynet/line.js:39:20)
Nov 23 14:21:04 raspberrypi node[16616]: at Module._compile (module.js:570:32)
Nov 23 14:21:04 raspberrypi node[16616]: at Object.Module._extensions..js (module.js:579:10)
Nov 23 14:21:04 raspberrypi node[16616]: at Module.load (module.js:487:32)
Nov 23 14:21:04 raspberrypi node[16616]: at tryModuleLoad (module.js:446:12)
Nov 23 14:21:04 raspberrypi node[16616]: at Function.Module._load (module.js:438:3)
Nov 23 14:21:04 raspberrypi node[16616]: at Module.runMain (module.js:604:10)
Nov 23 14:21:04 raspberrypi node[16616]: at run (bootstrap_node.js:383:7)
Nov 23 14:21:04 raspberrypi node[16616]: at startup (bootstrap_node.js:149:9)
Nov 23 14:21:04 raspberrypi systemd[1]: line.service: Main process exited, code=exited, status=1/FAILURE
Nov 23 14:21:04 raspberrypi systemd[1]: line.service: Unit entered failed state.
Nov 23 14:21:04 raspberrypi systemd[1]: line.service: Failed with result 'exit-code'.

Can you please explain what these settings should do?

BTW, I still don't see anything in IP:8080 web address.

Add Video/ Live Stream Analysis

Is Berrynet able to detect objects in video or while streaming? Even though fps may be lower because of the hardware, it would work on other IoT device specialized in computer vision(Nvidia Jetson, Intel Joule, etc).

All services reporting failure, code=exited, status=8, service entered failed state.

Step1: Clone the repo
Step2: ./configure
Step3: berrynet-manager start
Step4: berrynet-manager status

The log on the RP3 shows only detection_fast_server.service is on, and all other services are down. something I noticed during the configure running: even though it reported success in the end, there are multiple warnings generated in the middle, so is it considered fully finished or there is something I'm missing that caused the issue ?

detectord.py OSError: [Errno 2] No such file or directory

Nov 15 02:51:36 raspberrypi bash[18053]: SNAPSHOT_DIR: /usr/local/berrynet/inference/image
Nov 15 02:51:36 raspberrypi bash[18053]: [1510714296.905] /tmp/detectord.pid exists but process 18048 died, clean it up.
Nov 15 02:51:36 raspberrypi bash[18053]: [1510714296.906] watch_dir:  /usr/local/berrynet/inference/image
Nov 15 02:51:36 raspberrypi bash[18053]: [1510714296.906] pid:  /tmp/detectord.pid
Nov 15 02:51:36 raspberrypi bash[18053]: Traceback (most recent call last):
Nov 15 02:51:36 raspberrypi bash[18053]: File "detectord.py", line 137, in <module>
Nov 15 02:51:36 raspberrypi bash[18053]: stderr=subprocess.STDOUT)
Nov 15 02:51:36 raspberrypi bash[18053]: File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
Nov 15 02:51:36 raspberrypi bash[18053]: errread, errwrite)
Nov 15 02:51:36 raspberrypi bash[18053]: File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
Nov 15 02:51:36 raspberrypi bash[18053]: raise child_exception
Nov 15 02:51:36 raspberrypi bash[18053]: OSError: [Errno 2] No such file or directory

Where's ./darknet?

[FR] Every client and service can create its own logger

Concept
If we provide a logger generator, every client and service can create its own logger instead of sharing a global logger.

Reason/Hypothesis

We can help every client and service to have its own logger, or solve log-level interference because we know bnpipeline/launcher_berrynet are affected by the OpenVINO component in Dyda.

More Description

The debug-level logs in bnpipeline/launcher_berrynet disappear even the debug parameter is assigned. It's because that the OpenVINO component in Dyda sets the log level to INFO.

Single global logger brings the risk that anyone using the BerryNet logger can change the log level, and the others are not aware of it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.