Software apps and online services
W/ all of what is going on w/ BeagleBoard.org these days, the updated images I am using from ` https://rcn-ee.net/rootfs/debian-armhf/ ` can be mistook for something they are not. Use the Ethernet Port on your AI for this processing while the people at the .org try their magical potions of computer etiquette for WiFi, GPIO, and PRUs!
For the longest time, I have been trying to natively compile OpenCV (bleeding edge from their git repo) on the BBAI. Finally!
With Bullseye, I am able to do just that, "Compilation on the AI."
So, w/out further ado, here is a photo of the edge.py file in OpenCV samples/python/ one can build and change to suit their needs.
As you can tell, some of the edging is highlighted. Nice!
Here, after changing the file a bit, you can see another set of edging.
From neon green to yellow, one can alter the video in question to handle all sorts of nice, "fashionable" coloring.
So, now comes the part of natively compiling.
On the OpenCV website you can find this page: https://docs.opencv.org/master/d7/d9f/tutorial_linux_install.html and https://docs.opencv.org/master/d0/d76/tutorial_arm_crosscompile_with_cmake.html.
So, I went w/ the /tutorial_linux_install.html page first.
So, we would need to do a couple of steps to handle the native compilation.
# Download and unpack sources
wget -O opencv.zip https://github.com/opencv/opencv/archive/master.zip
wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/master.zip
# Create build directory and switch into it
mkdir -p build && cd build
cmake -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-master/modules ../opencv-master
cmake --build .
That "should" put, after many hours, OpenCV (bleeding edge) on your BBAI.
One could cross-compile w/ the other link.
Once the compilation is done, use these commands.
sudo apt install python3-opencv libopencv-dev
This way, you can use the simple yet effective:
import cv2 as cv : This is for your set up of personal files w/ OpenCV that is now fully integrated and can be utilized.
Now, you can use Python3.9, which is on Bullseye, and you can use C/C++ to handle your favorite files in OpenCV.
P.S. Be careful which files you run, i.e. as they can overload the ARM onboard the BBAI. Some will halt your board if not careful. If you are offloading to slave processors, please join in. I sure could use some examples or understandings. I will keep up research in time to see if offloading to a EVE or DSP is possible.