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:camera/camera.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_hooks/flutter_hooks.dart'; | |
import 'package:flutter_object_detection_example/data/entity/recognition.dart'; | |
import 'package:flutter_object_detection_example/data/model/ml_camera.dart'; | |
import 'package:hooks_riverpod/hooks_riverpod.dart'; | |
class ObjectDetectionPage extends HookWidget { | |
static String routeName = '/object_detection'; | |
@override |
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 'dart:io'; | |
import 'package:camera/camera.dart'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_object_detection_example/data/entity/recognition.dart'; | |
import 'package:flutter_object_detection_example/data/model/classifier.dart'; | |
import 'package:flutter_object_detection_example/util/image_utils.dart'; | |
import 'package:hooks_riverpod/hooks_riverpod.dart'; | |
import 'package:image/image.dart' as image_lib; |
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 'dart:math'; | |
import 'package:flutter_object_detection_example/data/entity/recognition.dart'; | |
import 'package:flutter_object_detection_example/util/logger.dart'; | |
import 'package:image/image.dart' as image_lib; | |
import 'package:tflite_flutter/tflite_flutter.dart'; | |
import 'package:tflite_flutter_helper/tflite_flutter_helper.dart'; | |
class Classifier { | |
Classifier({ |
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:firebase_auth/firebase_auth.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_signin_button/button_view.dart'; | |
import 'package:flutter_signin_button/flutter_signin_button.dart'; | |
import 'package:google_sign_in/google_sign_in.dart'; | |
class SignInDemoApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |
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
using UnityEngine; | |
using Live2D.Cubism.Core; | |
public class MouthOpenParam : MonoBehaviour | |
{ | |
[SerializeField] DlibWebCamFaceDetector faceDetector; | |
[SerializeField] CubismParameter mouthOpenParameterX; | |
[SerializeField] CubismParameter mouthOpenParameterY; | |
[SerializeField] float lerpT = 0.2f; |
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
using UnityEngine; | |
using System; | |
using System.Collections.Generic; | |
using Live2D.Cubism.Core; | |
using OpenCVForUnity.CoreModule; | |
using OpenCVForUnity.Calib3dModule; | |
using OpenCVForUnity.UnityUtils; | |
public class FrontalFaceParam : MonoBehaviour | |
{ |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
using DlibFaceLandmarkDetector; | |
using DlibFaceLandmarkDetector.UnityUtils; | |
public class DlibWebCamFaceDetector : MonoBehaviour | |
{ |