<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Executing custom opencv c++ code]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I would like to write my custom opencv c++ code and deploy in voxl but not sure how to go about doing it, such as how/where to change the code, and how to compile, and deploy?<br />
Possible to guide me or direct me to any reference materials to follow along?</p>
<p dir="auto">Thanks in advance.</p>
]]></description><link>https://forum.modalai.com/topic/1680/executing-custom-opencv-c-code</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Mar 2026 19:30:13 GMT</lastBuildDate><atom:link href="https://forum.modalai.com/topic/1680.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 10 Jan 2023 07:37:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Executing custom opencv c++ code on Tue, 10 Jan 2023 17:47:26 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">You'll want to make your own project that builds a package that can be deployed to a voxl. Our projects generally follow a four-script system.</p>
<ol>
<li>
<p dir="auto"><code>install_build_deps.sh</code> The script that install the build dependencies of a project. If you're writing an opencv process for voxl you'll probably need <code>voxl-opencv</code> and <code>libmodal-pipe</code> at the very least to get your code to work. (If you haven't already, check out our docs on our <a href="https://docs.modalai.com/mpa/" rel="nofollow ugc">pipe architecture</a> to see how to grab camera frames in userspace).</p>
</li>
<li>
<p dir="auto"><code>build.sh</code> The script that actually builds the codebase that you're using, will set up a cmake toolchain to make sure that you're building with the right architecture/gcc version and put all of the build files in a build directory for packaging.</p>
</li>
<li>
<p dir="auto"><code>make_package.sh</code> The script that bundles all of the built files, as well as any config/other files that your project will use into a standard debian or opkg package (opkg for voxl1 or debian for voxl2/rb5)</p>
</li>
</ol>
<p dir="auto"><strong>All three of those scripts should be run inside of the <a href="https://docs.modalai.com/voxl-cross/" rel="nofollow ugc">voxl-cross</a> docker image that we've built as our primary build environment; it has all of the toolchains that you may need baked in, as well as the correct gcc versions for our different platforms.</strong></p>
<ol start="4">
<li><code>deploy.sh</code> This script deploys the package that you've built to voxl and installs it, oputting any binaries that you've generated in the correct location where you can run them from the command line. This script is usually run outside of the docker image since the image does not have adb installed by default, but can be run inside of the image if you're deploying over ssh instead of adb.</li>
</ol>
<p dir="auto">Finally, Since you're building an opencv project, I'd strongly recommend that you look at our <a href="https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-camera-calibration" rel="nofollow ugc">voxl-camera-calibration</a> package. This is a very good example of how to use libmodal-pipe to get camera images, and then pass them off to opencv (in this case the calibration routines) for processing. The project also have fully flushed out versions of all of the aforementioned scripts that you can copy into your project as a good starting point.</p>
]]></description><link>https://forum.modalai.com/post/7781</link><guid isPermaLink="true">https://forum.modalai.com/post/7781</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Tue, 10 Jan 2023 17:47:26 GMT</pubDate></item></channel></rss>