Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Index.html
• I have added a new div for video input and a div upon I have shown scan result of video.
test.nude.js
• Added functionality to track the last scan time to ensure scans occur at least 5 seconds apart.
• Implemented an event listener for the 'play' event on the video element to trigger scanning.
• Defined a scanFrame function to check if the video is playing and if sufficient time has elapsed since the last scan.
• Within scanFrame, draws the current video frame onto a canvas and converts it to ImageData.
• Utilized nude.scanVideo to scan the video frame for nudity, passing the ImageData.
• Incremented the scanCount variable to keep track of the number of scans performed.
• Updated the displayResultOnVideoContainer function to display the scan results on the webpage.
• Set up a scan interval to execute scanFrame every second.
• Implemented a 'ended' event listener on the video to stop scanning when the video ends.
nude.js
• Added a scanVideo function to directly scan provided image data, enabling scanning without requiring a canvas element.
• Implemented communication with a web worker (worker.nude.js) for parallel processing of image data.
• Created a terminateWorker function to terminate the web worker after processing each image.
• Enhanced the init function to append a script tag for noworker.nude.js if web workers are not supported, here I have replaced
unescape by decodeURIComponent as unescape was depricated.
•Updated the scanImage function to utilize the web worker for image processing, improving performance by offloading
computation.
All other commits are made for changing compressed js file and I have also changed Readme file accordingly.