All Projects โ†’ remirobert โ†’ Cameraengine

remirobert / Cameraengine

Licence: mit
๐Ÿ’๐Ÿ“ท Camera engine for iOS, written in Swift, above AVFoundation. ๐Ÿ’

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Cameraengine

Croperino
๐Ÿ“ท A simple image cropping tool that provides gallery or camera help for Native Android (Java)
Stars: โœญ 176 (-68.23%)
Mutual labels:  camera, image
watsor
Object detection for video surveillance
Stars: โœญ 203 (-63.36%)
Mutual labels:  camera, detection
Camerafragment
A simple easy-to-integrate Camera Fragment for Android
Stars: โœญ 2,312 (+317.33%)
Mutual labels:  camera, capture
Nextlevel
NextLevel was initally a weekend project that has now grown into a open community of camera platform enthusists. The software provides foundational components for managing media recording, camera interface customization, gestural interaction customization, and image streaming on iOS. The same capabilities can also be found in apps such as Snapchat, Instagram, and Vine.
Stars: โœญ 1,940 (+250.18%)
Mutual labels:  camera, capture
ImageAttachment
Example App to show how to pick an image from Camera/Gallery
Stars: โœญ 23 (-95.85%)
Mutual labels:  camera, capture
Gpuimage X
A Cross-platform (for both Android & iOS) Framework for GPU-based Filters, Video and Image Processing.
Stars: โœญ 154 (-72.2%)
Mutual labels:  camera, image
Agimagecontrols
cool tools for image edition
Stars: โœญ 217 (-60.83%)
Mutual labels:  camera, capture
Rximagepicker
Androidๅ›พ็‰‡็›ธๅ†Œ้ข„่งˆ้€‰ๆ‹ฉๅ™จใ€ๆ”ฏๆŒAndroidX๏ผŒๆ”ฏๆŒๅ›พ็‰‡็š„ๅ•้€‰ใ€ๅคš้€‰ใ€ๅ›พ็‰‡้ข„่งˆใ€ๅ›พ็‰‡ๆ–‡ไปถๅคนๅˆ‡ๆขใ€ๅœจ้€‰ๆ‹ฉๅ›พ็‰‡ๆ—ถ่ฐƒ็”จ็›ธๆœบๆ‹็…ง
Stars: โœญ 85 (-84.66%)
Mutual labels:  camera, image
jeelizPupillometry
Real-time pupillometry in the web browser using a 4K webcam video feed processed by this WebGL/Javascript library. 2 demo experiments are included.
Stars: โœญ 78 (-85.92%)
Mutual labels:  camera, detection
camera.ui
NVR like user Interface for RTSP capable cameras
Stars: โœญ 99 (-82.13%)
Mutual labels:  camera, detection
Jeelizfacefilter
Javascript/WebGL lightweight face tracking library designed for augmented reality webcam filters. Features : multiple faces detection, rotation, mouth opening. Various integration examples are provided (Three.js, Babylon.js, FaceSwap, Canvas2D, CSS3D...).
Stars: โœญ 2,042 (+268.59%)
Mutual labels:  camera, detection
Android Camera2 Secret Picture Taker
Take pictures ๐Ÿ“ท secretly (without preview or launching device's camera app) using Android CAMERA2 API
Stars: โœญ 275 (-50.36%)
Mutual labels:  camera, capture
Pictureselectorlight
Picture Selector Library for Android or ๅ›พ็‰‡้€‰ๆ‹ฉๅ™จ
Stars: โœญ 145 (-73.83%)
Mutual labels:  camera, image
Pbjvision
๐Ÿ“ธ iOS Media Capture โ€“ features touch-to-record video, slow motion, and photography
Stars: โœญ 1,940 (+250.18%)
Mutual labels:  camera, capture
Albumcamerarecorder
ไธ€ไธช้ซ˜ๆ•ˆ็š„ๅคšๅช’ไฝ“ๆ”ฏๆŒๆ“ไฝœๅบ“๏ผŒๅฏๅคšๆ–น้ข็š„็ฎ€ๅ•้…็ฝฎๆ“ไฝœ็›ธๅ†Œใ€ๆ‹็…งใ€ๅฝ•ๅˆถใ€ๅฝ•้Ÿณ็ญ‰ๅŠŸ่ƒฝใ€‚ไนŸๆ”ฏๆŒ้…ๅฅ—ไฝฟ็”จ็š„ๅฑ•็คบๅ›พ็‰‡ใ€่ง†้ข‘ใ€้Ÿณ้ข‘็š„ไนๅฎซๆ ผๅŠŸ่ƒฝใ€‚ ๏ผˆAn efficient multimedia support operation library, can be a variety of simple configuration operation album, photo, recording, recording and other functions.Also support supporting the use of the display of pictures, video, audio of the nine grid function.๏ผ‰
Stars: โœญ 106 (-80.87%)
Mutual labels:  camera, capture
Album
๐Ÿ‰ Album and Gallery for Android platform.
Stars: โœญ 2,430 (+338.63%)
Mutual labels:  camera, image
Imagepicker
๐Ÿ“ธImage Picker for Android, Pick an image from Gallery or Capture a new image with Camera
Stars: โœญ 623 (+12.45%)
Mutual labels:  camera, image
Picker
Picker - A CameraX based WhatsApp Style Image-Video Picker
Stars: โœญ 69 (-87.55%)
Mutual labels:  camera, image
yolov5-deepsort-tensorrt
A c++ implementation of yolov5 and deepsort
Stars: โœญ 207 (-62.64%)
Mutual labels:  camera, detection
Menyoki
Screen{shot,cast} and perform ImageOps on the command line ๐ŸŒฑ ๐Ÿž๏ธ
Stars: โœญ 255 (-53.97%)
Mutual labels:  image, capture

cameraenginelogo

๐ŸŒŸ The most advanced Camera framework in Swift ๐ŸŒŸ

License MIT  Carthage compatible  CocoaPods  Build Status CocoaPods  Support  codebeat badge  Donate

CameraEngine is an iOS camera engine library that allows easy integration of special capture features and camera customization in your iOS app.

๐Ÿ”ฅ Features

CameraEngine
โ˜บ๏ธ Support iOS8 - iOS9
๐Ÿ“ Support orientation device
๐Ÿ Fast capture
๐Ÿ“ท Photo capture
๐ŸŽฅ Video capture
๐Ÿ“ˆ quality settings presset video / photo capture
๐Ÿ™‹ switch device (front, back)
๐Ÿ’ก flash mode management
๐Ÿ”ฆ torch mode management
๐Ÿ”Ž focus mode management
detection face, barecode, and qrcode
๐Ÿš€ GIF encoder

๐Ÿ”จ Installation

CocoaPods

  • Add pod "CameraEngine" to your Podfile.
  • Run pod install or pod update.
  • import CameraEngine

Carthage

  • Add github "remirobert/CameraEngine" to your Cartfile.
  • Run carthage update and add the framework to your project.
  • import CameraEngine

Manually

  • Download all the files in the CameraEngine subdirectory.
  • Add the source files to your Xcode project.
  • import CameraEngine

To add the Framework, you can also create a workspace for your project, then add the CameraEngine.xcodeproj, and the CameraEngine, then you should be able to compile the framework, and import it in your app project.

CameraEngine supports swift3, see the development branch for a swift 3 integration.

๐Ÿš€ Quick start

First let's init and start the camera session. You can call that in viewDidLoad, or in appDelegate.

override func viewDidLoad() {
  super.viewDidLoad()
  self.cameraEngine.startSession()
}

Next time to display the preview layer

override func viewDidLayoutSubviews() {
  let layer = self.cameraEngine.previewLayer
        
  layer.frame = self.view.bounds
  self.view.layer.insertSublayer(layer, atIndex: 0)
  self.view.layer.masksToBounds = true
}

Capture a photo

self.cameraEngine.capturePhoto { (image: UIImage?, error: NSError?) -> (Void) in
  //get the picture tooked in the ๐Ÿ‘‰ image
}

Capture a video

private func startRecording() {
  guard let url = CameraEngineFileManager.documentPath("video.mp4") else {
    return
  }
            
  self.cameraEngine.startRecordingVideo(url, blockCompletion: { (url, error) -> (Void) in
  })
}

private func stopRecording() {
  self.cameraEngine.stopRecordingVideo()
}

Generate animated image GIF

guard let url = CameraEngineFileManager.documentPath("animated.gif") else {
  return
}
self.cameraEngine.createGif(url, frames: self.frames, delayTime: 0.1, completionGif: { (success, url) -> (Void) in
  //Do some crazy stuff here
})

๐Ÿ”ง configurations

CameraEngine, allows you to set some parameters, such as management of flash, torch and focus. But also on the quality of the media, which also has an impact on the size of the output file.

Flash

self.cameraEngine.flashMode = .On
self.cameraEngine.flashMode = .Off
self.cameraEngine.flashMode = .Auto

Torch

self.cameraEngine.torchMode = .On
self.cameraEngine.torchMode = .Off
self.cameraEngine.torchMode = .Auto

Focus

          |  CameraEngine focus

--------------------------|------------------------------------------------------------ .Locked | means the lens is at a fixed position .AutoFocus | means setting this will cause the camera to focus once automatically, and then return back to Locked .ContinuousAutoFocus | means the camera will automatically refocus on the center of the frame when the scene changes

self.cameraEngine.cameraFocus = .Locked
self.cameraEngine.cameraFocus = .AutoFocus
self.cameraEngine.cameraFocus = .ContinuousAutoFocus

Camera presset Photo

self.cameraEngine.sessionPresset = .Low
self.cameraEngine.sessionPresset = .Medium
self.cameraEngine.sessionPresset = .High
...

Camera presset Video

self.cameraEngine.videoEncoderPresset = .Preset640x480
self.cameraEngine.videoEncoderPresset = .Preset960x540
self.cameraEngine.videoEncoderPresset = .Preset1280x720
self.cameraEngine.videoEncoderPresset = .Preset1920x1080
self.cameraEngine.videoEncoderPresset = .Preset3840x2160

๐Ÿ‘€ Object detection

CameraEngine can detect faces, QRcodes, or barcode. It will return all metadata on each frame, when it detects something. To exploit you whenever you want later.

Set the detection mode

self.cameraEngine.metadataDetection = .Face
self.cameraEngine.metadataDetection = .QRCode
self.cameraEngine.metadataDetection = .BareCode
self.cameraEngine.metadataDetection = .None //disable the detection

exploiting face detection

self.cameraEngine.blockCompletionFaceDetection = { faceObject in
  let frameFace = (faceObject as AVMetadataObject).bounds
  self.displayLayerDetection(frame: frameFace)
}

exploiting code detection (barecode and QRCode)

self.cameraEngine.blockCompletionCodeDetection = { codeObject in
  let valueCode = codeObject.stringValue
  let frameCode = (codeObject as AVMetadataObject).bounds
  self.displayLayerDetection(frame: frameCode)
}

๐Ÿš—๐Ÿ’จ Example

You will find a sample project, which implements all the features of CameraEngine, with an interface that allows you to test and play with the settings. To run the example projet, run pod install, because it uses the current prod version of CameraEngine.

Contributors ๐Ÿป

License

This project is licensed under the terms of the MIT license. See the LICENSE file.

This project is in no way affiliated with Apple Inc. This project is open source under the MIT license, which means you have full access to the source code and can modify it to fit your own needs.

If you want to support the development of this library, feel free to Donate. Thanks to all contributors so far!

bannabot

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].