- When watching video or YouTube, tab the app and it will take video snapshot from the video frame .
- hit "Predict" and the image will parse to the Claifai API. And return celebrity names.
- Backend javascript do the part of snapshot, where popup.js do the image parsing, analysis and return result.
- (fixed) I am still working on the 'onclick' event in popup.js 100:103, the links wont render accordingly. For now the remedy is catDiv.innerHTML from popup.js 86 where I insert a tag 'target = blank' to the src.
- (fixed) Working on chrome:// address error, background error when open tab in chrome://url
- (done) Add drawbox function and some css improvement, working on mouse hover/enter event (to draw specific individual box).
- Trying to add a (YouTube) button to invoke the popup page.(open the extension(screenshot) through the button. ) This one was a little tricky since Google is not allow open extension through content script.
- The UI has changed a bit... after clicking the result from popup, the playing video will be minimized and (Youtube) search result will be shown on the same tab. So user can searching and watching at the same time. \
Reference:
Clarifai cloud engine
clarifai-javascript-starter
Yulon
The loading css
The button css
p.s: I should clari'fai' I hava not tested on any chrome/mac/linux os yet. my enviroment is windows 10, and I am using jquery 3.3.1.
- Git clone or fork the project.
- Unzip the folder.
- Please visit Clarifai to register and apply for a API key.
- Open the unzipped download folder, went to popup.js 8:9 and replace it with your own key.
- Download Chrome Browser
- Type 'chrome://extensions/' in the new chrome browser.
- Enable Developer Mode (in the upper right).
- Load unpacked --> then open the git project folder.