Welcome new user! You can search existing questions and answers without registering, but please register to post new questions and receive answers. Note that due to large amounts of spam attempts, your first three posts will be manually moderated, so please be patient.
We have moved to a new forum at http://jevois.usc.edu, please check it out. The forum at jevois.org/qa will not allow new user registrations but is maintained alive for its useful past questions and answers.

Can't get initscript.cfg to take effect

0 votes

I get into the SD card and edit the initscript.cfg file to look like this:

setmapping 20

The number 20 is the index for the DemoArUco module. I reinsert the card in the JeVois camera, connect it to a Linux PC and run jevois-daemon. The camera runs fine, but it's still running the default module, DemoSaliency. 

I have also asterisked the right line in the videomappings.cfg file with no effect. How can I have the camera run DemoArUco by default?

asked Apr 24, 2017 in Programmer Questions by Gregir (200 points)

1 Answer

0 votes
Best answer

Yes, when you connect JeVois to a host computer, and start a video capture software on that computer, the capture software decides which resolution to use.

So the commands you had in initscript.cfg did set the video mode, but then your host computer requested something else when you started the video capture software.

Setting the video mode using setmapping really is only useful when you will not connect to a host computer (but only to an Arduino).

Unfortunately, guvcview seems to ignore the default mode (asterisk) and will just start using the mode that was in use last time before you quit guvcview.

To get your capture software on the host to use a specific mode, you need to configure your video capture software. For example,

guvcview -f YUYV -x 320x260

to start with DemoArUco. Finally, when you use the JeVois camera, note that jevois-daemon already runs inside the camera, so usually you would not run it again on your host computer (just run guvcview on the host). Have a look here for updated doc on this topic:


section on Host and Platform modes. And also see this post:


answered Apr 24, 2017 by JeVois (46,580 points)
selected Apr 25, 2017 by Gregir
Thanks very much for your patience and input. This makes sense now.