Use tensorflow js in wechat mini app too low - tensorflow.js

I use tensorflow js to do some face detect.
In develop, every time detect may cost 50ms, but when use the mobile to debug, it will 600ms.
I do nothing, can anyone help me?

Related

How to build a tiktok like video upload and video feed function in a react native app?

I have no experience or idea about how video upload and streaming works at the backend, and I am trying to build a tiktok-like app, so if you can share directions on how to approach this, where to learn more, where to find resources, what libraries to use, what database to use, or anything that could be helpful, even if one line advice, I would really appreciate that.
I understand there is going to be a lot of code and that could be out of scope here, but any direction/advice would be helpful.

Make a cross platform application starting from a website

I made a website (not yet online), it uses HTML, CSS, Javascript, only. No React or Angular, and I have the following problem :
I'd like to make a cross-platform application based on it (for iOS, Android, Windows, Linux and MacOS).
What's the best way to do that ?
My searches :
I did few searches, not really satisfactory, because it seems I'll need to re-make my client-website entirely !
I found 2 ways : React Native and NativeScript, like described here.
Have you some other option ?
If you don't, is it really impossible to keep the code in React ? Like I can see there
I'm a bit confused, and I don't know what I should do to perform what I want.
Thank you for all answers you could give me !
For Desktop Development you can try Electron. It's a js library which helps you build cross platform applications by using Node, Chromium and js.
You can also go one step ahead and add react to it.
Applications like VSCode, Skype, Microsoft Teams, Spotify and I think even Slack are made using it.
For Mobile Development, you can go with React Native. In this way you'd make a cross platform mobile dev app too.
The pros are that using these tech stack you can build modern cross platform apps. For a web dev, this is the way to go.
The cons of Electron:
It's little heavy on memory, but nothing that would be a bottleneck.
The cons of React Native:
Is not suited for apps that require heavy computation and it's bundle size is significantly larger than the native apps
I want to add to this :There is an other option nw.js for desktop app it's like electron using chromium ,node and js.
and for the front-end you can use angular, react, vue it is really as you want .This is a link https://nwjs.io/ (It is cross-platform too ).
For mobile development I think I will recommend you : NativeScript (https://play.nativescript.org/?_ga=2.144049845.1620166462.1585302566-1314322155.1583139217) . It is a good option also cause you can easily add your website(html,css,javascript files ) in your NativeScript webview as your interface and I think this option won't take you time as making an other one with react-native (even if I know that react-native have his webview too).
So go and have a look to this ::How to load a local html file into a NativeScript webview .
Then all your work will be the database in sqlite but even for this you have :https://www.npmjs.com/package/nativescript-sqlite and other things to go quickly
:https://market.nativescript.org/

Optimizing a React App for Google Page Speed

I'm trying to improve the page speed (and SEO) performance of my React app at https://bravos.co. You can see the results of the page speed test here: https://developers.google.com/speed/pagespeed/insights/?url=bravos.co
I'm stuck at 64/100 on mobile and 46/100 on desktop.
I've improved a number of things, but there's a lot that I'm just stuck on, and seems to be difficult to improve give it is a React app:
Eliminate render-blocking JavaScript and CSS in above-the-fold
content (this is mainly the bundle.js, which I can't eliminate given that it's the whole app)
Optimize CSS Delivery (This is relatively minor, but I'm still not sure how to do it in React)
Enable compression (I can gzip some things here, still looking for an easy way to gzip and deploy a random javascript file)
Leverage browser caching (this I can't figure out how to do in React, particularly since .htaccess doesn't seem to be used)
Any advice or thoughts here would be massively appreciated.

Adding a qr scanner to a mobile app

I am currently building a mobile app using angularJS, on plunker. The app once complete will be used on iPhone and android devices and will need to be able to access the camera and scan a QR code.
What i'm struggling with is how to go about this. I have done some research and found a lot of github solutions such as -
https://github.com/sembrestels/angular-qr-scanner
https://github.com/blockchain/bc-qr-reader
However I am unsure of how to add these to a plunker built app or if it is even possible?
One idea I have had whilst looking online is to make use of HTML5 and getusermedia to access a devices camera. Although then using this to scan a QR code is quite beyond me.
I am quite new to all this, and if I am honest not very confident at all. Any recommendations will be greatly appreciated.

Looking to re-build an AngularJS App for a large display

Can anyone give me some pointers on the most efficient way to rebuild an angularJS application that is built to run on TV sized monitors.
Any advice is appreciated.

Resources