ios-camera

What is the best way to record a video with augmented reality

亡梦爱人 提交于 2019-12-28 18:39:11
问题 What is the best way to record a video with augmented reality? (adding text, images logo to frames from iPhone/iPad camera) Previously I was trying to figure out how to draw into CIImage (How to draw text into CIImage?) and convert CIImage back to CMSampleBuffer (CIImage back to CMSampleBuffer) I almost did everything, only have problem with recording video using new CMSampleBuffer in AVAssetWriterInput But this solution anyway isn't good at all, it eats a lot of CPU while converting CIImage

face detection iOS from camera

天涯浪子 提交于 2019-12-20 10:08:19
问题 I receive an image view -(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { NSString *mediaType = info[UIImagePickerControllerMediaType]; [self dismissViewControllerAnimated:YES completion:nil]; if ([mediaType isEqualToString:(NSString *)kUTTypeImage]) { UIImage *image = info[UIImagePickerControllerOriginalImage]; //imgvprofileImage.image = image; //[self detectForFacesInUIImage:[UIImage imageNamed:@"image00.jpg"]]; [self

How can I prevent iOS apps from resetting after changing Camera permissions?

霸气de小男生 提交于 2019-12-18 03:23:10
问题 Currently, when I change the camera permissions for my app in Settings, then navigate back to my app, the app will force a refresh and I will lose my place in the app. I follow these steps exactly: Open an app that uses the camera permission. Navigate to some screen within the app (so you can visibly see the refresh later) Go to the Settings app, navigate to the app's settings, and toggle the camera permission Double click home and go back to the app. After a few seconds, it will refresh,

iOS rename/delete albums of photos

梦想与她 提交于 2019-12-11 17:55:36
问题 I am able to add photos and create albums from my app but I also want to be able to rename/delete albums and pictures in these albums. I know Apple have restrictions but is it possible at least to manage the albums and photos created by my application? (ALAsset and ALAssetLibrary) I understand I can't do anything to the already existing albums and photos in the Camera row and I am ok with this. 回答1: If you created an album, so that the album is editable , then the presence or absence of an

UIImagePickerController cameraViewTransform is not working in iOS 10

风格不统一 提交于 2019-12-11 00:15:46
问题 i have implemented camera overlay view in my application. camera overlay view working good in iOS 9. but iOS 10 cameraViewTransform not working how to resolve this problem. please guide me. Thanks my working code CGSize screenBounds = [UIScreen mainScreen].bounds.size; CGFloat cameraAspectRatio = 4.0f/3.0f; CGFloat camViewHeight = screenBounds.width * cameraAspectRatio; CGFloat scale = screenBounds.height / camViewHeight; picker.cameraViewTransform = CGAffineTransformMakeTranslation(0,

iOS Camera permissions doesn't appear under settings in some devices

时间秒杀一切 提交于 2019-12-09 09:15:40
问题 I'm having some issues trying to use the camera. The problem is that some devices show me the Camera entry under settings, and some others don't. In those devices where the Camera switch doesn't appear, I'm not able to use the camera, since it doesn't have permissions, and it also doesn't appear under settings to enable them. This is how it looks on a device that works: And this is how it looks in devices that doesn't work. When I took those screenshots, the application should've asked for

Video feed to ThingsBoard dashboard

萝らか妹 提交于 2019-12-06 10:28:03
问题 I'm currently using ThingsBoard as an IoT broker to capture and display telemetry data from several sensors to a dashboard. I would like to add the capability of displaying a live video feed from a iPhone camera or webcam, and I'm wondering if anyone here knows if ThingsBoard supports any sort of video data stream (either live or timed screen capture based)? Ideally, I'd like to mount the phone/camera to a servo-controlled mount which I can used to position the camera using controls on the

Multiple AVCaptureVideoDataOutput in same AVCaptureSession

天大地大妈咪最大 提交于 2019-12-05 07:45:39
I was wondering if it's possible to add multiple AVCaptureVideoDataOutput to AVCaptureSession with a single camera device input? My experiments indices that adding a second VideoDataOutput will cause canAddOutput return NO. But I couldn't find anywhere on Apple's documentation says multiple data output is disallow. We can not use single AVCaptureSession for multiple AVCaptureVideoDataOutput objects. What can you do is you can make multiple AVCaptureVideoDataOutput with multiple AVCaptureSession objects. You can create two different setups of the AVCaptureVideoDataOutput and AVCaptureSession

Video feed to ThingsBoard dashboard

眉间皱痕 提交于 2019-12-04 15:36:42
I'm currently using ThingsBoard as an IoT broker to capture and display telemetry data from several sensors to a dashboard. I would like to add the capability of displaying a live video feed from a iPhone camera or webcam, and I'm wondering if anyone here knows if ThingsBoard supports any sort of video data stream (either live or timed screen capture based)? Ideally, I'd like to mount the phone/camera to a servo-controlled mount which I can used to position the camera using controls on the dashboard. 来源: https://stackoverflow.com/questions/54678942/video-feed-to-thingsboard-dashboard

iOS 7.1 imagePicker CameraFlashMode not indicating Flash state

北城余情 提交于 2019-12-04 02:10:57
I have iPhone application which overlays the camera with custom view. I have a button to switch between camera flash mode, this is the code switch ([self.imagePickerController cameraFlashMode]) { case UIImagePickerControllerCameraFlashModeAuto: [self.imagePickerController setCameraFlashMode:UIImagePickerControllerCameraFlashModeOn]; return @"On"; break; case UIImagePickerControllerCameraFlashModeOn: [self.imagePickerController setCameraFlashMode:UIImagePickerControllerCameraFlashModeOff]; return @"Off"; break; case UIImagePickerControllerCameraFlashModeOff: [self.imagePickerController