Unable to execute script file using cron tab

Hello!
I have a question about Crontab.
I want to run the jetson-inference code(jetson-inference/pytorch-collect.md at master · dusty-nv/jetson-inference · GitHub) when I start jetson. So I used crontab and I get an error.
When I looked at the log, I saw the following error.

    display = jetson.utils.glDisplay()Exception: jetson.utils -- failed to create glDisplay device

I don’t know what caused this error.

By the way, I will run into the same error if I did with the other jetson-inference examples. For example this one (Real-Time Object Detection in 10 Lines of Python Code on Jetson Nano - YouTube)

Furthermore, nvgstcapture was able to automatically start the camera, so I think that the reason why crontab does not work is in jetson.utils.glDisplay.

If you know the cause, can you tell me.

Thanks for the great demo code.
Thank you