camerakit / camerakit-ios Goto Github PK
View Code? Open in Web Editor NEWLibrary for iOS Camera API. Massively increase performance and ease of use within your next iOS Project.
License: Apache License 2.0
Library for iOS Camera API. Massively increase performance and ease of use within your next iOS Project.
License: Apache License 2.0
when i get the photo but error: Cannot get photo file data representation????
Yes
No such file
CameraKit Version:
0.1
iOS Device:
iPhone 6S
iOS Version:
12.1.4
(Write your steps here:)
Photon saved as landscape
Photo saved as portrait
Demo in this repo
Fatal Exception: NSInvalidArgumentException
*** -[AVCaptureSession addInput:] Can't add <AVCaptureDeviceInput: 0x107cfaf10 [Front Camera]> because the device does not support AVCaptureSessionPreset1920x1080 - Use -[AVCaptureDevice supportsAVCaptureSessionPreset:]
it happens when flipping the camera.
Hello CameraKit,
I am trying to use WideAngleCamera in CameraKit. please suggest me how to use WideAngleCamera in project.
Thank you
Need a little help, how can i add audio input device that was initiated with avAudioSession so i can record video using playAndRecord and ShareWithOthers.
I have tried using it individually but then i have to merge audio video files which takes a lot of time and is making app slower.
Is library supporting face detection while recording video?
Is there a way in the library to get the EXIF data from the image captured? I need the date & time the image was taken and additionally name of the image.
The only thing I am getting from Exif is below:
"{Exif}" = { PixelXDimension = 1000; PixelYDimension = 1000; };
Full data:
{ ColorModel = RGB; Depth = 8; Orientation = 6; PixelHeight = 1000; PixelWidth = 1000; ProfileName = "Display P3"; "{Exif}" = { PixelXDimension = 1000; PixelYDimension = 1000; }; "{JFIF}" = { DensityUnit = 0; JFIFVersion = ( 1, 0, 1 ); XDensity = 72; YDensity = 72; }; "{TIFF}" = { Orientation = 6; }; }
How do I take photo always in portrait mode even if the device is in landscape or orientation lock is enabled or not all I want is to take photo in portrait mode.
Settings I have done:
photoSession.session.sessionPreset = .photo
photoSession.flashMode = .auto
previewView.session = self.photoSession
previewView.autorotate = false
previewView.previewLayer?.videoGravity = .resizeAspectFill
Taken in landscape mode and device orientation is locked:
Yes
No
(Please include the following information along with any other relevant environment details.)
CameraKit Version:
iOS Device:
iOS Version:
(Write your steps here:)
(Write what you thought would happen.)
(Write what happened. Add screenshots!)
(Paste the link to an example project and exact instructions to reproduce the issue.)
(Include your CameraKit setup and usage.)
I'm noticing the following behaviors when running the demo app. I'm not sure if they are just issues in the demo app itself, or if the issue lies within the core library. (I'm still digging in.) Regardless, here's what I've found on an iPad Pro 9.7 inch, running iOS 12.1.4:
So, it appears as though the issue I'm seeing only occurs when starting the app in landscape orientation. If I rotate the device to portrait and then rotate it back to landscape, everything works fine. If I start in portrait orientation everything works fine. I only see the video preview and the subsequent recorded video rotated incorrectly if I start in landscape and stay in landscape.
The documentation says: import CameraKit
But module name is CameraKit_iOS
No
Yes
(Please include the following information along with any other relevant environment details.)
CameraKit Version: 1.2.1
iOS Device: iPhone 11 Pro
iOS Version: 13.2.3
Camera will adjust to select zoom level
N/A
None
Yes
There is no such file
CameraKit Version:
0.1
iOS Device:
iPhone 6S
iOS Version:
12.1.4
The preview should show what the camera sees in landscape
Preview showing zoomed picture rotated 90 degrees
This project, the demo when allowing landscape
Hello,
Is there a way to disable the Zoom feature?
Thank you!
I am testing this camerakit-ios library with Objective-C, but unfortunately i am unable to create CKFPhotoSession object it's showing compile time error on Xcode.
Yes
Xcode Version 11.3.1 (11C504)
CameraKit Version: v1.2.1
iOS Device: Simulator (iPhone 11 Pro Max)
iOS Version: 13.3
(Write your steps here:)
Follow installation guide for Objective-C
Import CameraKit_iOS in to ViewController.h Header file
#import <UIKit/UIKit.h>
@import CameraKit_iOS;
@interface ViewController : UIViewController
@end
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
CKFPhotoSession *ckPhotoSession = [[CKFPhotoSession alloc] init]; // Error: 'init' is unavailable
CKFPreviewView *ckfPreviewView = [[CKFPreviewView alloc] initWithFrame:self.view.bounds];
*ckfPreviewView.session = ckPhotoSession; // Error: Assigning to 'CKFSession' from incompatible type 'CKFPhotoSession *__strong'
}
@end
CKFPhotoSession must allow to create an Objective-C object. Unfortunately it's not allow me to create any Session Object.
Compile tine error
Can i use custom View?
Hello,
I have noticed that if I start up and the back camera is on and view a face there is not face detection... then I tap more and enable face detection it does not show the face detection box, HOWEVER, if I switch camera and then switch back the face detection is on.
So, is there a problem for the first time?
It's not a bug that i am creating issue for.. I am adding SPM support for this CameraKit. And creating a pull request from
https://github.com/dipcse07/camerakit-ios
Specific SPM Support repo
https://github.com/dipcse07/CameraKit-SPM_Supported
Yes
(Please include the following information along with any other relevant environment details.)
CameraKit Version: 1.2.1
iOS Device:
iOS Version:
(Write your steps here:)
(Write what you thought would happen.)
(Write what happened. Add screenshots!)
(Paste the link to an example project and exact instructions to reproduce the issue.)
(Include your CameraKit setup and usage.)
It's not a bug that i am creating issue for.. I am adding SPM support for this CameraKit. And creating a pull request from
https://github.com/dipcse07/camerakit-ios
Yes
(Please include the following information along with any other relevant environment details.)
CameraKit Version: 1.2.1
iOS Device:
iOS Version:
(Write your steps here:)
(Write what you thought would happen.)
(Write what happened. Add screenshots!)
(Paste the link to an example project and exact instructions to reproduce the issue.)
(Include your CameraKit setup and usage.)
There is an ambiguity with the license information. The license file states "Apache" license but the description states "MIT" license.
Yes
Yes
(Please include the following information along with any other relevant environment details.)
CameraKit Version: 1.2.0
iOS Device: iPhone 6S
iOS Version: 12.1.4
(Write your steps here:)
Photo taken in lanscape should be saved as landscape even if orientation lock is enabled in iOS (same as the default camera app)
Photo taken in lanscape is save rotated 90 degrees when iOS orientation lock is enabled.
Sample app in this repo.
Fix idea: use CoreMotion
to detect "real" device orientation instead of UIDeviceOrientation
Hello. Thank you for the initiative to bring this framework for all developers. :)
I'm afraid, however, with the class name prefix you choose, that could be collisions with Apple's CloudKit framework.
Apple suggests that ObjC "safe" prefixes use 3 letters and not only 2 (two letters prefixes would be reserved for Apple use only).
In Swift prefixes are not usually required, so they can be removed and only specified for ObjC compatibility purposes.
I'd suggest using something like CKF
("CameraKitFramework") as prefix while in ObjC (CKFSession
, for example). And something like CameraSession
, for example, while using it in Swift.
How do I disable the "automatic permission system handling?" I want to prompt the user to enable the camera, and not have it request the user as soon as the app starts.
Yes.
Yes.
CameraKit Version: 1.2.0
iOS Device: iPhone X
iOS Version: 12.1.3
Based on popular apps and most other libraries, the expectation from myself (which may not be correct) is that the preview would fill its parent view instead of fit. At a mininmum I'd expect the ability to actually set this behaviour by choice.
There is no ability to specify fill/fit mode. This is the code and the outcome.
import UIKit
import CameraKit_iOS
import SnapKit
class CameraViewController: UIViewController {
//UI Elements
var previewView: CKFPreviewView = CKFPreviewView()
var cameraSession: CKFPhotoSession = CKFPhotoSession()
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
//Setup Preview
previewView.session = cameraSession
self.view.addSubview(previewView)
//Update Preview Constraints
previewView.snp.makeConstraints { (make) in
make.edges.equalToSuperview()
}
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.