Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add hide your mess behind demo (background blurring JS demo) (#26)
* adding simple app to handle webcam * gitignore update for nodeJs purposes * detecting devices done * Updated view * tidying renderer and simplifying start/stop button * Further code cleaning * attempts to change webcam handler to node-webcam | webcam.capture not a function problem | mock runModel function * Added icon * New application UI * Updated UI * Hide menu bar * back to streaming from mediaDevices, but with new GUI (testing version - need to switch to node-webcam or other) * Removed unnecessary forge config * Added app info * Added more linux targets * streaming using single frames done * deleting node-webcam from package json * size of camera image corrected * path from runModel in renderer to runModel in ov jobs built | problem with passing the image (local resource) * changing the quality of webcam video * Added black webcam placeholder * choosing video source (webcams) * Small UI fixes * passing image to ov jobs * do not toggle sign on button if not clicking the button * Pass device to the function * Added cache for the OV models * raporting inference time: work in progress * raporting inference time: done * bug with black placeholder not showing up taken care of * processing time 0 when not processing | not declaring variable in handler * converting base64 to mat * work on image processing | subtraction of processing time from delay * convertion to mat from imageData, skipping base64, more efficient way * async taking time function * Added FPSs * processing time -> inference time * FIXED: Error occurred in handler for 'run-model' * Deleted debugging redundance * FIXED: RangeError: offset is out of bounds * small corrections * work on README * work on README * New name in README * Preprocessing mat function * Fixing error in padding * Conversion cv.Mat to ov.Tensor * preparation to interference * work on model inference - program stops after a few loops * semaphore to handle async functions * cleaning code * results of inference * preparation to postprocessing * normalize data in tensor (0-1) | work in progress on postprocessing * mask postprocessing * gausian blur function corrected | minor changes * 2 options mat resizing | work on blurring * mat resize: 5.1266000010073185 * mat and array resize time in comment * everything mock implemented | error occured & really not efficiant * logging | took inverseConditionMat to global | bitwise_and causes problems * TODO: optimization, blurred/org merging, displaying the final image * stop counting when display stopped * condition mat to be changed - too time consuming and not working properly * deleted kernel errors file * displaying the mat - work in progress * mask threshold * ImageData object transferred to renderer * EOD | nothing valuable, just saving my effort * ImageData declared in front, DISPLAYING IMAGE WORKS * Cleaning code | Faster mat to tensor conversion * mat resizing back to OpenCV * deleting kernel error + git ignore * not using helpers * Small code refactor * work on postprocessing: softmax analysis * Small renderer refactor * mask and blurring done * merging images works * all functionalities implemented * code cleaning * counting average time inference from 50 last inferences * taking blurring to seperate function * access to blurring from frontend * async inference + blur * blur -> resize ( time saving 150 -> 70) * deleting kernel errors file + typo in gitignore * contribution to demos README * adding photo to demos readme * updating README and changing the app name * changing the way of uploading image in demos README * check if it's compiled before reading model * check for mat size (enabling change for webcam with different quality) * fixing the oversight in previous commit * adding inference switch * First inference done before changing the switch * small visual changes * new photo in demos readme * hide your mess README * maybe stackblur canvas? * attempts to create a model for blurring * PostProcModel working * converting model to OpenVINO * creating model with flexible input * version without padding | back to OpenCV blur * OV blurring model creation fixed and testing functions deleted * blurring changed to model * changing the folder name * back to MVP * Preparing for publishing * readme update * readme mistake fixed * updated photos in hymb demo README * updated images in demos readme * small changes in UI * preparing code for publishing | code rewiev with Adrian * semaphore moved to ov jobs * new ideas | code rewiev with Adrian * Small code changes --------- Co-authored-by: Adrian Boguszewski <[email protected]>
- Loading branch information