Skip to content

An IOT Based App that takes images from Device and run python scripts on those images

Notifications You must be signed in to change notification settings

dhruvpatidar359/chamber

Repository files navigation

Chromatogram

It is a android app that takes image from a IOT based device using websockets sends it to the server or cloud and runs python scripts and returns the output to the APP

Images Images
86c3476f-3d1e-4d98-beb4-9965aa65e832 8b3abec3-1ce8-481a-9db3-4e84fe5df48c
Images Images
WhatsApp Image 2024-02-03 at 5 10 18 PM WhatsApp Image 2024-02-03 at 5 10 17 PM

Setup

Prerequisite

  1. Download and install opencv 4.9.0_5
  1. Download and install cmake

Folders

  • lib/opencv-cpp contains all the cpp code responsible for calculating TLC

Files

  • lib/features/imageManipulation/image_crop.dart
void calculateTLC(CroppedFile croppedFile) {
    final imagePath = croppedFile.path.toNativeUtf8();
    final imageFfi = dylib.lookupFunction<Void Function(Pointer<Utf8>),
        void Function(Pointer<Utf8>)>('detect_contour_tlc');
    imageFfi(imagePath);
    setState(() {
      _processedImage = File(imagePath.toDartString());
    });
    saveImage(imagePath.toDartString());
  }

This function is used to connect with dart ffi

About

An IOT Based App that takes images from Device and run python scripts on those images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published