Open jonespoon opened 2 years ago
same problem here with jetson nano
same problem here with jetson nano
A work around is to use OSC commands but be careful of the issues like a few of commands will freeze the camera. And it cannot delete the taken photos in the same power cycle.
Thanks for the tip, I use also the OSC commands, but the getLivePreview is disabled. I am interested in streaming a 360 view that is why I am trying to use the SDK
I am interested in this as well, we are trying to compile on ARM devices but the released .so does not work there. Could someone like @capjason-insta360 or @capjason read this and provide an arm-compatible shared object?
That would unlock a lot of possible applications for the insta360 products.
Thanks.
We found a workaround: you can run the code in a Docker container using an amd64
image.
Assuming a raspbian/ubuntu rpi host:
sudo apt-get remove --purge docker docker.io containerd runc
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
# Install multiplatform support
sudo apt install -y qemu-user-static binfmt-support
# Create builder
docker buildx create --name testbuilder --platform linux/amd64
# THIS: docker build --output type=docker -t devbubu -f SDKDockerfile --platform linux/amd64 --builder testbuilder .
# OR THIS: docker buildx build --output type=image -t devbubu -f SDKDockerfile --platform linux/amd64 --builder testbuilder .
# Or the one working
docker build --load -t devbubu -f SDKDockerfile --platform linux/amd64 --builder testbuilder .
Dockerfile
for the webcam test like:FROM ubuntu
RUN apt-get update
RUN apt-get install -y build-essential cmake git
RUN apt-get install -y fswebcam python3
COPY ./cameradk_linux_20220909 /data/ # The insta 360 dev libraries
# Mount some volumes...
ADD ./images /data/images/
# Random command
CMD /usr/bin/python3 -m http.server 80
/dev/
folder:
docker run -it --rm --name devbubu --entrypoint=/bin/bash -v /dev/:/dev/ --privileged --platform linux/amd64 devbubu
cd /data
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/data/lib/
./bin/CameraSDKTest
No way to get an ARM-compatible version of the SDK though: we contacted the assistance but they said they cannot provide it.
Hi, has anyone tried SDK using emulator like box86 or similar? I want to use SDK on RPI as well, but this is a deal breaker. Thanks.
need to contact insta360 support team to get arm sdk https://www.insta360.com/cn/sdk/home
I can successfully compile the sdk on a amd ubuntu machine but failed to do so on raspberry pi 4. It seems to me it is due to the cpu architecture but the document says it supports Raspberry pi The compilation error log is below: