Category : ios

I am trying to read a local video file which was recorded through the camera, then saved to memory through AVAssetWriter. I saved the video locally to my app with URL file:///var/mobile/Containers/Data/Application/4AF409E3-9CBE-4384-B8AA-56C60ACCD7BA/Documents/mergeVideo-July%2025,%202021%20at%2011:48%20AM.mp4 How can I open this in a .cpp file and read it using opencv in ios? Source: Windows Que..

Read more

I have been stuck at compiling an open source c++ library for ios platform for the past 2 weeks. Library link : https://github.com/Amulet-Team/leveldb-mcpe This library compiles perfectly for MacOS and also one of their latest releases contains a dylib file that can be used directly in an MacOS project. The project contains CMakeList.txt as well ..

Read more

In c++ manipulator setiosflags(ios::showbase) what does ios do here? Well, I did some research and got to know that it is related to the input and output job but if I have already included the header file <iostream> why do I need to include <ios> or even write ios::showbase? Can’t I just write setiosflags(showbase). Please ..

Read more

I’m building an iOS SDK in C++. I tested the compilation with the flag -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk (XCode.app (12.4)) and it’s working well. But with the new XCode version -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk (XCode-beta.app (13.0 beta 3)) I have the following error : In file included from /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:130: /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h:500:168: error: expected ‘)’ …maxLength:(NSUInteger)maxBytes timeout:(NSTimeInterval)timeout completionHandler:(void (^) (NSData * ..

Read more

I’m trying to use openCv iOS on a React Native app, im taking photos by camera and then transform them to base64 before passing them to the native side. Stitching fails with this error : exception caught: OpenCV(3.4.6) /Volumes/build-storage/build/3_4_iOS-mac/opencv/modules/stitching/src/exposure_compensate.cpp:288: error: (-215:Assertion failed) _image.type() == CV_8UC3 in function ‘apply’ 2021-07-14 12:01:25.740285+0100 openCVRN[565:35492] [Unknown process name] CGImageCreate: ..

Read more