GithubHelp home page GithubHelp logo

Comments (4)

Erol444 avatar Erol444 commented on June 12, 2024

Hi @avitus ,
Could you share the minimal repro example together with the model, so we can try to repro?

from depthai.

avitus avatar avitus commented on June 12, 2024

Sorry for the slow reply. Here's the code

from depthai_sdk import OakCamera, RecordType
from depthai_sdk.trigger_action.actions.record_action import RecordAction
from depthai_sdk.trigger_action.triggers.detection_trigger import DetectionTrigger
from roboflow import Roboflow

rf = Roboflow(api_key="xxx")

workspaceId = 'avitus'
projectId = 'family-id'
rf_project = rf.workspace(workspaceId).project(projectId)

with OakCamera() as oak:

    color = oak.create_camera('color', resolution='128p', fps=3, encode='H264')

    model_config = {
        'source': 'roboflow', 
        'model':'family-id/4',  
        'key':'xxx' # Roboflow API key
    }

    nn = oak.create_nn(model_config, color)

    trigger = DetectionTrigger(input=nn, min_detections={'Portobello': 1}, cooldown=60)

    action = RecordAction(inputs=[color], 
                          dir_path='./vitus_recordings/',
                          duration_before_trigger=1, 
                          duration_after_trigger=6)

    oak.trigger_action(trigger=trigger, action=action)
    oak.visualize(color)
    oak.start(blocking=True)

from depthai.

avitus avatar avitus commented on June 12, 2024

Is there a way I can get you the API key?

from depthai.

Erol444 avatar Erol444 commented on June 12, 2024

Hi @avitus ,
You could send the API key to [email protected] and I can take a look at it. But from error message it's likely because the model is too large (Log: 'Convolution' '265' 'CMX memory is not enough!'.), in which case I can't do much.

from depthai.

Related Issues (20)

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.