All Projects → ccwukong → react-cam

ccwukong / react-cam

Licence: Apache-2.0 license
HTML5 Web/Mobile camera for ReactJS

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to react-cam

ItroublveTSC
Official Source of ItroublveTSC, totally open source. No virus or anything. Feel free to have a look :)
Stars: ✭ 82 (+173.33%)
Mutual labels:  webcam, webcam-capture
UniCam
A cross-platform open-source webcam viewer
Stars: ✭ 23 (-23.33%)
Mutual labels:  webcam, webcam-capture
WebcamFX
Open the camera, take pictures 📷 & save them using Javafx.
Stars: ✭ 39 (+30%)
Mutual labels:  webcam, webcam-capture
WebCamCap
Motion capture tool for 2D/3D motion capture with LED markers.
Stars: ✭ 20 (-33.33%)
Mutual labels:  webcam, webcam-capture
Webcam Capture
The goal of this project is to allow integrated or USB-connected webcams to be accessed directly from Java. Using provided libraries users are able to read camera images and detect motion. Main project consist of several sub projects - the root one, which contains required classes, build-in webcam driver compatible with Windows, Linux and Mac OS…
Stars: ✭ 1,959 (+6430%)
Mutual labels:  webcam, webcam-capture
Virtual Walk
Virtual walks in Google Street View using PoseNet and applying Deep Learning models to recognize actions.
Stars: ✭ 142 (+373.33%)
Mutual labels:  webcam
Telegram Rat
Windows Remote Administration Tool via Telegram. Written in Python
Stars: ✭ 201 (+570%)
Mutual labels:  webcam
Scan For Webcams
scan for webcams on the internet
Stars: ✭ 128 (+326.67%)
Mutual labels:  webcam
Webcamoid
Webcamoid is a full featured and multiplatform webcam suite.
Stars: ✭ 1,675 (+5483.33%)
Mutual labels:  webcam
sparkar-pixelate-shader
simple script-only pixelate shader with Facebook SparkAR.
Stars: ✭ 35 (+16.67%)
Mutual labels:  webcam
Webcam Directive
Angularjs directive to access the webcam
Stars: ✭ 233 (+676.67%)
Mutual labels:  webcam
Mocapnet
We present MocapNET2, a real-time method that estimates the 3D human pose directly in the popular Bio Vision Hierarchy (BVH) format, given estimations of the 2D body joints originating from monocular color images. Our contributions include: (a) A novel and compact 2D pose NSRM representation. (b) A human body orientation classifier and an ensemble of orientation-tuned neural networks that regress the 3D human pose by also allowing for the decomposition of the body to an upper and lower kinematic hierarchy. This permits the recovery of the human pose even in the case of significant occlusions. (c) An efficient Inverse Kinematics solver that refines the neural-network-based solution providing 3D human pose estimations that are consistent with the limb sizes of a target person (if known). All the above yield a 33% accuracy improvement on the Human 3.6 Million (H3.6M) dataset compared to the baseline method (MocapNET) while maintaining real-time performance (70 fps in CPU-only execution).
Stars: ✭ 194 (+546.67%)
Mutual labels:  webcam
Ngx Webcam
A simple Angular webcam component / pure & minimal, no flash-fallback
Stars: ✭ 148 (+393.33%)
Mutual labels:  webcam
Screentogif
🎬 ScreenToGif allows you to record a selected area of your screen, edit and save it as a gif or video.
Stars: ✭ 16,066 (+53453.33%)
Mutual labels:  webcam
Node Camera
Access and stream web camera in nodejs using opencv and websockets.
Stars: ✭ 135 (+350%)
Mutual labels:  webcam
X11docker
Run GUI applications and desktops in docker and podman containers. Focus on security.
Stars: ✭ 3,797 (+12556.67%)
Mutual labels:  webcam
Entropy
Entropy Toolkit is a set of tools to provide Netwave and GoAhead IP webcams attacks. Entropy Toolkit is a powerful toolkit for webcams penetration testing.
Stars: ✭ 126 (+320%)
Mutual labels:  webcam
Live Video Magnification
An OpenCV/Qt based realtime application for Eulerian Video Magnification / Motion Magnification. Works with multiple videos and cameras at the same time and let's you export the magnified videos.
Stars: ✭ 187 (+523.33%)
Mutual labels:  webcam
Instascan
HTML5 QR code scanner using your webcam
Stars: ✭ 2,657 (+8756.67%)
Mutual labels:  webcam
Unitybarcodescanner
Simple Unity Barcode Scanner
Stars: ✭ 180 (+500%)
Mutual labels:  webcam

react-cam

npm

HTML5 Web/Mobile camera for ReactJS

Installation

NPM

npm install react-cam

Yarn

yarn add react-cam

How to use it?

props

Prop name Optional Default Description
showFocus Yes false show/hide the blue focus box, basically useless...
front Yes false true: front camera, false: rear camera
capture No None A function to handle base64 string image
width No 480 Camera pixel width, percentage or absolute value
height No 320 Camera pixel height, percentage or absolute value
focusWidth Yes 80% Camera focus box width, percentage or absolute value
focusHeight Yes 50% Camera focus box height, percentage or absolute value
btnColor Yes '#2acef5' Set color of the capture button
onError No Handles camera error, the error object will be passed as the function argument

example

import React, { Fragment, useRef } from 'react';
import ReactDOM from 'react-dom';
import { Camera } from 'react-cam';

function capture(imgSrc) {
  console.log(imgSrc);
}

const App = () => {
  const cam = useRef(null);
  return (
    <Fragment>
      <Camera
        showFocus={true}
        front={false}
        capture={capture}
        ref={cam}
        width="80%"
        height="auto"
        focusWidth="80%"
        focusHeight="60%"
        btnColor="white"
      />
      <button onClick={img => cam.current.capture(img)}>Take image</button>
    </Fragment>
  );
};
ReactDOM.render(<App />, document.getElementById('root'));
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].