pageauc / speed-camera

A Unix, Windows, Raspberry Pi Object Speed Camera using python, opencv, video streaming, motion tracking. Includes a Standalone Web Server Interface, Image Search using opencv template match and a whiptail Admin Menu Interface Includes picam and webcam Plugins for motion track security camera configuration including rclone sync script. watch-app allows remotely controller camera configuration from a remote storage service name. Uses sqlite3 and gnuplot for reporting. Recently added openalpr license plate reader support.
Apache License 2.0
969 stars 171 forks source link

Unable to init server #120

Closed gximhyseni closed 10 months ago

gximhyseni commented 2 years ago

Hello there buddy , thanks for showing this to public,

I'm working on speed camera , I installed on Docker on Windows but now when I want to run the ./speed-cam.py I got this error on terminal of the Docker

2022-07-31 23:59:10 INFO isSQLite3 Success: File is sqlite3 Format /home/vscode/speed-camera/data/speed_cam.db 2022-07-31 23:59:10 INFO db_check Success: sqlite3 Connected to DB /home/vscode/speed-camera/data/speed_cam.db 2022-07-31 23:59:10 INFO speed_camera sqlite3 DB is Open /home/vscode/speed-camera/data/speed_cam.db 2022-07-31 23:59:10 INFO speed_notify Plugin Disabled per pluginEnable=False 2022-07-31 23:59:10 INFO speed_notify Logging to Console per Variable verbose=True 2022-07-31 23:59:10 INFO speed_notify Press lower case q on OpenCV GUI Window to Quit program 2022-07-31 23:59:10 INFO speed_notify or ctrl-c in this terminal session to Quit 2022-07-31 23:59:10 INFO speed_notify Begin Motion Tracking .....

Unable to init server: Could not connect: Connection refused

(Movement (q Quits):13): Gtk-WARNING **: 23:59:10.486: cannot open display:

I have no idea why this error shows only on docker.

pageauc commented 2 years ago

I do not run docker but see if this link helps https://askubuntu.com/questions/1201103/docker-x11-fails-to-open-display

On Sun, Jul 31, 2022 at 8:02 PM gximhyseni @.***> wrote:

Hello there buddy , thanks for brining this to public,

I'm working on speed camera , I installed on Docker on Windows but now when I want to run the ./speed-cam.py I got this error on terminal of the Docker

2022-07-31 23:59:10 INFO isSQLite3 Success: File is sqlite3 Format /home/vscode/speed-camera/data/speed_cam.db 2022-07-31 23:59:10 INFO db_check Success: sqlite3 Connected to DB /home/vscode/speed-camera/data/speed_cam.db 2022-07-31 23:59:10 INFO speed_camera sqlite3 DB is Open /home/vscode/speed-camera/data/speed_cam.db 2022-07-31 23:59:10 INFO speed_notify Plugin Disabled per pluginEnable=False 2022-07-31 23:59:10 INFO speed_notify Logging to Console per Variable verbose=True 2022-07-31 23:59:10 INFO speed_notify Press lower case q on OpenCV GUI Window to Quit program 2022-07-31 23:59:10 INFO speed_notify or ctrl-c in this terminal session to Quit 2022-07-31 23:59:10 INFO speed_notify Begin Motion Tracking .....

Unable to init server: Could not connect: Connection refused

(Movement (q Quits):13): Gtk-WARNING **: 23:59:10.486: cannot open

display:

I have no idea why this error shows only on docker.

— Reply to this email directly, view it on GitHub https://github.com/pageauc/speed-camera/issues/120, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNPKZH3FDO7HXD42VERUB3VW4HZHANCNFSM55FXQMIQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- YouTube Channel at https://www.youtube.com/user/pageaucp http://www.youtube.com/user/pageaucp GitHub Repository at https://github.com/pageauc