This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:camera/camera.dart'; | |
import 'package:tflite/tflite.dart'; | |
import 'dart:math' as math; | |
typedef void Callback(List<dynamic> list, int h, int w); | |
class Camera extends StatefulWidget { | |
final List<CameraDescription> cameras; | |
final Callback setRecognitions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'dart:math' as math; | |
class BndBox extends StatelessWidget { | |
final List<dynamic> results; | |
final int previewH; | |
final int previewW; | |
final double screenH; | |
final double screenW; | |
final String model; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:camera/camera.dart'; | |
import 'package:tflite/tflite.dart'; | |
import 'dart:math' as math; | |
import 'camera.dart'; | |
import 'bndbox.dart'; | |
import 'models.dart'; | |
class HomePage extends StatefulWidget { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function checkForAdBlocker() { | |
let Blocked; | |
async function Request() { | |
try { | |
return fetch( | |
new Request( | |
"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js", { | |
method: 'HEAD', | |
mode: 'no-cors' |
OlderNewer