All Projects â†’ munsocket â†’ Parallax Effect

munsocket / Parallax Effect

Licence: mit
🤹đŸģ‍♂ī¸ Parallax effect in javascript using face tracking. An immersive view in 3d with webcam.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Parallax Effect

ios logger
Application for camera and sensor data logging (iOS)
Stars: ✭ 60 (-78.18%)
Mutual labels:  camera
raspberry pi home security system
Home monitoring system with a Raspberry Pi and sending notifications with a Telegram bot
Stars: ✭ 14 (-94.91%)
Mutual labels:  camera
Pypylon
The official python wrapper for the pylon Camera Software Suite
Stars: ✭ 259 (-5.82%)
Mutual labels:  camera
ionic-multi-camera
Take multiple photos one after another
Stars: ✭ 12 (-95.64%)
Mutual labels:  camera
StrayVisualizer
Visualize Data From Stray Scanner https://keke.dev/blog/2021/03/10/Stray-Scanner.html
Stars: ✭ 30 (-89.09%)
Mutual labels:  camera
AndroidBackgroundVideoRecording
Records camera video in background service
Stars: ✭ 34 (-87.64%)
Mutual labels:  camera
optical-pulse-reader
iOS application that uses camera to detect heart rate.
Stars: ✭ 45 (-83.64%)
Mutual labels:  camera
Parallax
Easy parallax View for Android simulating Apple TV App Icons
Stars: ✭ 271 (-1.45%)
Mutual labels:  parallax
MCamera
CameraViewController which allows to take photos, set filters, peform image blurring and more.
Stars: ✭ 28 (-89.82%)
Mutual labels:  camera
Perspective
Powerful scrolling and motion parallax for iOS
Stars: ✭ 260 (-5.45%)
Mutual labels:  parallax
PhotosApp
React Native Photos App: AWS Amplify, AWS S3, Mobile Analytics with Pinpoint
Stars: ✭ 21 (-92.36%)
Mutual labels:  camera
neural-greenscreen
Real time background replacement on a mac os driven webcam using the DeepLabV3 neural network for image segmentation and the native CoreMediaIO DAL framework of Mac OS.
Stars: ✭ 18 (-93.45%)
Mutual labels:  camera
laravel-spark-camera
Profile Photo Camera support for Laravel Spark
Stars: ✭ 30 (-89.09%)
Mutual labels:  camera
QuickRawPicker
📷 QuickRawPicker is a free and open source program that lets you cull, pick or rate raw photos captured by your camera. It is also compatible with the XMP sidecar file used by Adobe Bridge/Lightroom/Darktable or PP3 sidecar file used by Rawtherapee.
Stars: ✭ 26 (-90.55%)
Mutual labels:  camera
Ionic Ocr Example
📷 Simple Ionic app using ocrad.js
Stars: ✭ 263 (-4.36%)
Mutual labels:  camera
ONVIF-Java
A Java client library to discover, control and manage ONVIF-supported devices.
Stars: ✭ 94 (-65.82%)
Mutual labels:  camera
GPUImage FilterVideo
åŊ•åˆļįžŽéĸœč§†éĸ‘
Stars: ✭ 12 (-95.64%)
Mutual labels:  camera
Focus Points
Plugin for Lightroom to show which focus point was active in the camera when a photo was taken
Stars: ✭ 272 (-1.09%)
Mutual labels:  camera
Pigeon
Pigeon is a simple 3D printed cloud home surveillance camera project that uses the new Raspberry Pi Zero W
Stars: ✭ 266 (-3.27%)
Mutual labels:  camera
Rtspallthethings
Deprecated RTSP media server -- Use github.com/aler9/rtsp-simple-server instead.
Stars: ✭ 258 (-6.18%)
Mutual labels:  camera

parallax-effect bundlephobia

Parallax effect in javascript using face tracking, can be a good improvement for 3d scenes. If the user prohibits using the camera, nothing loads. This library uses TFJS with WASM backend on CPU, so your GPU will be free.

Inspired by https://twitter.com/lucknknock

Live examples

Installation

Run npm install parallax-effect and import it as ES module

  import * as Parallax from '../dist/parallax-effect.mjs';
  Parallax.init( view => {
    console.log( view );
  } );

or add it in script tag

  <script src="../dist/parallax-effect.js"></script>
  <script>
    Parallax.init( view => {
      console.log( view );
    } );
  </script>

Usage

View is a 3d vector with components similar to spherical coordinates: x/y in range [-1, 1] it's a value proportional to angle (because α ≈ sin(α)) and z is a value proportional to distance from camera to head. Also you can check for successfull init or change default settings: smoothing, default distance between eyes to change z, threshold in blazeface model or change tfjs source links from jsdelivr to unpkg / own server.

Parallax.init(
  view => {
    console.log( view.x, view.y, view.z );
  }, {
    smoothEye: 0.8,
    smoothDist: 0.25,
    defautDist: 0.12,
    threshold = 0.85
  }
).then( rafId => {
  console.log( 'cancelAnimationFrame(' + rafId + ')' );
}).catch( errorMessage => {
  console.log( errorMessage );
} );

Roadmap

  • [x] deepview example
  • [x] ema smoothing
  • [x] iOS fix for camera
  • [x] lazy load for tfjs
  • [x] pixi.js example
  • [x] mouse fallback
  • [ ] gyroscope fallback

Contribution

Feel free to make issues or/and contribute.

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].