Skip to content

Instantly share code, notes, and snippets.

@2qp
2qp / state.dart
Created October 10, 2022 18:21 — forked from theniceboy/state.dart
Simple stream-based state management in Flutter/Dart
import 'dart:async';
import 'package:async/async.dart';
import 'package:flutter/widgets.dart';
/*
This class is a little bit different than the [ValueNotifier] class:
- Setting the value ALWAYS notifies listeners, even if the value is the same.
- It uses streams over [ValueListenableBuilder]'s setState approach to make it
easier to use with other async code.
@2qp
2qp / ALPRS0.2.py
Last active March 30, 2021 05:41 — forked from jkjung-avt/openalpr_camera.py
Real-time license plate recognition with 'openalpr' using a video file as input. Please check out my "Building and Testing 'openalpr' on Jetson TX2" post for more information: https://jkjung-avt.github.io/openalpr-on-tx2/
import numpy as np
import cv2
from openalpr import Alpr
RTSP_SOURCE = 'rtsp://face:Face12345@10.15.19.201:554/live.sdp'
WINDOW_NAME = 'openalpr'
FRAME_SKIP = 15