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

Jetson nano - Run yolo code as headless (without GUI) #226

Closed
dhgokul opened this issue Sep 9, 2020 · 3 comments
Closed

Jetson nano - Run yolo code as headless (without GUI) #226

dhgokul opened this issue Sep 9, 2020 · 3 comments

Comments

@dhgokul
Copy link

dhgokul commented Sep 9, 2020

@jkjung-avt Thanks for your sample code, its very helpful !

I want to run yolo code as headless (without GUI) . Need to write as output videos/image . Please provide option to run yolo code to print console log instead of display in screen

I have jetson nano board without HDMI display connect . i want to run program and write it as output file

Any help appreciated!
cmd : python3 trt_yolo.py --image dog.jpg -m yolov3-tiny-416

image

@jkjung-avt
Copy link
Owner

I just created a trt_yolo_mjpeg.py sample code. Please git pull the latest code from the repo and give it a try. For example, you could run trt_yolo_mjpeg.py headlessly like this:

$ python3 trt_yolo_mjpeg.py --usb 0 --copy_frame -m yolov4-416

Then check out the output in a web browser (http://<ip addr>:8080).

By default, the program listens to port 8080 and publishes MJPEG streams. The MJPEG image is refreshed roughly every 0.1 second. You could use "--mjpeg_port" command-line option to change the MJPEG server port.

I haven't found a good way to terminate the program. So currently you have to hit Ctrl-C a couple of times to force the program to stop. This should probably be improved in the future.

@dhgokul
Copy link
Author

dhgokul commented Sep 14, 2020

@jkjung-avt Thanks! will check

@Enso-Zheng
Copy link

very useful! thnaks u!!

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

3 participants