Giter Site home page Giter Site logo

nrl-ai / daisykit Goto Github PK

View Code? Open in Web Editor NEW
94.0 6.0 17.0 257.6 MB

DaisyKit is an easy AI toolkit with face mask detection, pose detection, background matting, barcode detection, face recognition and more. - with NCNN, OpenCV, Python wrappers

Home Page: https://daisykit.nrl.ai

License: Apache License 2.0

CMake 11.75% C++ 75.25% C 0.29% Python 9.78% SWIG 0.44% Shell 2.48%
mobile computer-vision embedded inference-engine cpp deployment ncnn vulkan no-code python

daisykit's Introduction

nrl-ai

daisykit's People

Contributors

brightfuture2911 avatar congphase avatar duongng2911 avatar haok61bkhn avatar tranminhduc4796 avatar vietanhdev avatar vietthanhnv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

daisykit's Issues

Problem with installing Daisykit package on Windows

Iโ€™m trying to install daisykit package for Python but constantly facing the error TypeError: CCompiler_spawn() got an unexpected keyword argument 'env' [end of output]
Could you help me with that? I work on Windows machine and I have installed Python 3.11 and all packages are upgraded.

Detects multiple barcodes but displays only the latest decoded barcode value in image

Describe the bug
DaisyKit is able to detect multiple barcodes and create bounding boxes for them in the image but displays only the latest decoded barcode in the top left part of the image. I'm using DaisyKit 0.3.0.5. Is this expected behavior?

To Reproduce
Steps to reproduce the behavior:

  1. Use any image with multiple barcodes and pass it through
result = barcode_scanner_flow.Process(cv_image, draw=True)

On printing results, multiple decoded barcode values are present but don't see them on the image created

Expected behavior
Should be able to display all the decoded barcode values in the newly created image along with their bounding boxes in the image

Desktop (please complete the following information):

  • OS: MacOS Ventura 13.4 (M2 MacBook Air)

Additional context
I had a look at barcode_scanner_flow.cpp (here), this looks like it hardcodes the point(10,40) where the decoded barcode must be displayed in the image. My guess is that it gets overwritten in every loop of

  for (auto&& result : results) {
    if (!result.isValid()) continue;

    if (draw) {
      DrawRect(rgb, result.position());
      visualizers::BaseVisualizer::PutText(
          rgb, ZXing::TextUtfEncoding::ToUtf8(result.text(), angle_escape),
          cv::Point(10, 40), cv::FONT_HERSHEY_SIMPLEX, 0.5, 1, 10,
          cv::Scalar(0, 0, 0), cv::Scalar(0, 255, 0));
    }

therefore only displaying the latest decoded barcode value - that could be the reason but I'm sure you might have a better idea.

Barcode detection daisy kit error on MacOS

Describe the bug
Hi, I installed daisy kit and attempted to run the sample source code provided here but I'm facing an error when I run the program. Thank you for your help.

To Reproduce
Steps to reproduce the behavior:

conda create -n myEnv python=3.8
pip install daisy kit
Run the source code

Expected behavior
Expected the code to open a window to capture camera feed for barcode detection

Screenshots
NA

Desktop (please complete the following information):

  • OS: MacOS Ventura 13.4 (M2 MacBook Air)

Smartphone (please complete the following information):
NA

Additional context
Error:

  File "/Users/aiyer/Desktop/test/barcode-daisy.py", line 3, in <module>
    from daisykit.utils import get_asset_file
  File "/Users/aiyer/anaconda3/envs/barcode-daisy/lib/python3.8/site-packages/daisykit/__init__.py", line 1, in <module>
    from .daisykit import *
ImportError: dlopen(/Users/aiyer/anaconda3/envs/barcode-daisy/lib/python3.8/site-packages/daisykit/daisykit.cpython-38-darwin.so, 0x0002): Library not loaded: /opt/homebrew/opt/opencv/lib/libopencv_gapi.407.dylib
  Referenced from: <AEBB01BC-AA4F-39BE-A928-846FBCC761E8> /Users/aiyer/anaconda3/envs/barcode-daisy/lib/python3.8/site-packages/daisykit/daisykit.cpython-38-darwin.so
  Reason: tried: '/opt/homebrew/opt/opencv/lib/libopencv_gapi.407.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/opencv/lib/libopencv_gapi.407.dylib' (no such file), '/opt/homebrew/opt/opencv/lib/libopencv_gapi.407.dylib' (no such file), '/usr/local/lib/libopencv_gapi.407.dylib' (no such file), '/usr/lib/libopencv_gapi.407.dylib' (no such file, not in dyld cache)

Several vulnerabilities in the shared libraries which daisykit depends on. Could you help upgrade to patch versions?

Hi, @vietanhdev , @tranminhduc4796 , I'd like to report a vulnerability issue in daisykit_0.1.20211123.

Dependency Graph between Python and Shared Libraries

image

Issue Description

As shown in the above dependency graph(here shows part of the dependency graph, which depends on vulnerable shared libraries), daisykit_0.1.20211123 directly or transitively depends on 53 C libraries (.so). However, I noticed that some C libraries are vulnerable, containing the following CVEs:
libcrypto-2879dacc.so.1.1 libssl-6082116c.so.1.1from C project openssl(version:1.1.1f) exposed 5 vulnerabilities:
CVE-2021-3711, CVE-2021-3712, CVE-2020-7043, CVE-2020-7042, CVE-2020-7041,

Suggested Vulnerability Patch Versions

openssl has fixed the vulnerabilities in versions >=1.1.1l

Python build tools cannot report vulnerable C libraries, which may induce potential security issues to many downstream Python projects.
As a popular python package (daisykit has 7,176 downloads per month), could you please upgrade the above shared libraries to their patch versions?

Thanks for your help~
Best regards,
Andy

Python wrapper cannot find package

Describe the bug
I installed python package on my win11 by command

pip install daisykit

and it installed successfully, however when I tried sample python code, it told me

ModuleNotFoundError: No module named 'daisykit.utils'; 'daisykit' is not a package

this is how i import package

from daisykit.utils import get_asset_file
from daisykit import BarcodeScannerFlow

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.