Recompile imagenet-camera

Hi,

Could you please tell me how to recompile imagenet-camera after change

DEFAULT_CAMERA -1
to
DEFAULT_CAMERA 0 as show me in V4l2

/jetson-inference/imagenet-camera/imagenet-camera.cpp is the correct file to modify?

Thanks

That’s correct, this is the right file to modify.

After making the change and saving then file, run these commands:

$ cd jetson-inference/build
$ make

Thanks for your answer, after changing the resolution in

/jetson-inference/imagenet-camera/imagenet-camera.cpp

gstCamera* camera = gstCamera::Create(640, 480, DEFAULT_CAMERA);

and compiling, it works for a few seconds and shut down the whole board.

  • I'm using a 5V 2A micro USB power supply
  • no fan in the board
  • 1080p HDMI monitor
  • A USB mouse and keyboard and USB Wifi adapter

Do you think the problem is the power supply?

Can I change power mode to high without a fan and the same micro USB power supply?

Hi RojasMilo, if it shuts down the whole board, that points to a power supply issue.

You can try putting your board in 5W mode (the default mode is 10W), and see if the issue goes away:

$ sudo nvpmodel -m 1

Run that before running imagenet-camera and it will put the board in 5W mode. If the board doesn’t power off this time, that means you probably need to try a better power supply before using 10W mode.

Thank you, Dustin, it works perfectly