Comments (4)
Hi @avitus ,
Could you share the minimal repro example together with the model, so we can try to repro?
from depthai.
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.
Is there a way I can get you the API key?
from depthai.
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)
- [BUG] connectivity issue
- [BUG] {wrong image rectification using stereo StereoDepth on oak-d-lite} HOT 3
- [BUG] Camera capture delay between RGB images and disparity images. HOT 2
- calibration doesn work in depthai python into env. or with ROS launch HOT 9
- [BUG] {Depth quality difference between OAK-D-LITE models} HOT 7
- [BUG] Demo application does not work with SR HOT 2
- [BUG] {Failed installing dependencies. Could be a bug in the installer or unsupported platform.} HOT 1
- [BUG] {Imu has not been utilized in rtabmap.launch.py}
- [BUG] {Missing 'total_num_of_captured_images'} HOT 1
- [BUG] Callibration does not work with OAK-D-SR. HOT 1
- [BUG] Raspberry Pi OS Bookworm on Pi 5: urllib3 or chardet/charset_normalize doesn't match a supported version HOT 1
- web page integration HOT 1
- dai::XLinkWriteError on deploying custom blob on OAK-D pro HOT 1
- Problems with RGB Camera Control HOT 1
- [BUG] {MacOS Sonoma 14.4 M1 Installation Issue} HOT 4
- [BUG] NameError: name 'EncodingQuality' is not defined HOT 2
- [BUG] Get corrupted ROSBAG file when running ROSBAG Recording code sample HOT 6
- [BUG] feature_tracker_color.py fails to switch to hardware acceleration HOT 1
- Not able to install depthai on MacOS Monterey v12.3.1: installer exited with status 1 at line 239 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from depthai.