Insta360Develop / MediaSDK-Cpp

MediaSDK-Cpp is a C++ library to handle stitching, editing of media from Insta360 Cameras.
61 stars 9 forks source link

Stitching returns black image #22

Open Thomas-Kb opened 1 year ago

Thomas-Kb commented 1 year ago

Hi,

OS: Ubuntu 18.04 Camera: Insta360 X3 I want to stitch *.insp files. For this, I am using the LinuxSDK20230621.zip which you provide at the official website. Since the library requires CUDA 10.2, I utilize this docker image.

I am able to successfully build the stitcherSDKDemo binary with the provided CMake file. However, the following: ./stitcherSDKDemo -inputs ../data/IMG_20230802_132756_00_014.insp -output ../data/output.jpg results in a black output image.

Terminal output:

./stitcherSDKDemo -inputs ../data/IMG_20230802_132756_00_014.insp -output ../data/output.jpg
[08-02 13:33:07.305]  1007 1007 I offset_serializer.cpp:0108:  Check Offset String failed!
[08-02 13:33:07.314]  1007 1007 I stitch_strategy.h:0071:  
 CUDA Device Info:
 Name:              NVIDIA GeForce RTX 4090
 TotalGlobalMem:    24217M
 SharedMemPerBlock: 48M
 MaxGridSize:       1024
[08-02 13:33:07.411]  1007 1007 I CudaDevice.cpp:0034:  
 CUDA Device Info:
 Name:              NVIDIA GeForce RTX 4090
 TotalGlobalMem:    24217M
 SharedMemPerBlock: 48M
 MaxGridSize:       1024

How can I obtain a correctly stitched image? Thanks and best regards, Thomas

igala commented 1 year ago

@Thomas-Kb any progress with his issue?

BennetLeff commented 1 year ago

Same problem here. There's nothing particularly obvious in the sample code that points to this behavior.

WH30 commented 1 year ago

Same problem here. I asked the tech support of Insta360 for help, but got no reply......

xiaodong2077 commented 1 year ago

I disabled cuda in image stitching and got the correct image. I don't know why cuda is needed for image stitching with single insp.

Thomas-Kb commented 1 year ago

Interesting, how exactly did you disable cuda? Could you provide the code?

xiaodong2077 commented 1 year ago

Interesting, how exactly did you disable cuda? Could you provide the code?

see #27

Thomas-Kb commented 1 year ago

I tried your approach. Unfortunately, it still results in a black image.

xiaodong2077 commented 1 year ago

I tried your approach. Unfortunately, it still results in a black image.

Can you share your error message? And would you mind share your image for me to have a try?

WH30 commented 12 months ago

I disabled cuda in image stitching and got the correct image. I don't know why cuda is needed for image stitching with single insp.

Sovled, thx! BTW, I was in a same grade as you in SGG, lol~