如何在Jetson TX2上自动运行Python脚本?

时间:2020-05-13 12:22:09

标签: python nvidia-jetson

我尝试了<!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to- fit=no"> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous"> </head> <body> <pre class="float-right position-sticky"> </pre> </body> </html>

@reboot python3 /home/hyebin/project/tensorrt_demos/trt_ssd.py --model ssd_mobilenet_v2_face --usb --vid 1-宽度1280-高度780

1。我是否只需要将其添加到crontab -e的底行? 2.可以添加诸如“ --model”之类的附加内容吗? 3.如果添加了此类内容,该怎么办?

1 个答案:

答案 0 :(得分:0)

最好在crontab中使用绝对路径,而不是仅使用python3

示例: @reboot /path/to/command arg1 arg2

它应该与--model

之类的参数配合使用

要找到python3的绝对路径,可以运行which python3并使用它