Comments (3)
This sounds like an error in your config.json
. Without seeing the file I cannot be more specific than telling you to check how you configured the video input. See also https://opendata.cam/docs/configuration/#video-input
from opendatacam.
This sounds like an error in your
config.json
. Without seeing the file I cannot be more specific than telling you to check how you configured the video input. See also https://opendata.cam/docs/configuration/#video-input
Thanks for the response.
I am using the default config.json
and no changes. I see the file demo.mp4
file in there.
{
"OPENDATACAM_VERSION": "3.0.2",
"PATH_TO_YOLO_DARKNET" : "/var/local/darknet",
"VIDEO_INPUT": "file",
"NEURAL_NETWORK": "yolov4",
"VIDEO_INPUTS_PARAMS": {
"file": "opendatacam_videos/demo.mp4",
"usbcam": "v4l2src device=/dev/video0 ! video/x-raw, framerate=30/1, width=640, height=360 ! videoconvert ! appsink",
"raspberrycam": "nvarguscamerasrc ! video/x-raw(memory:NVMM),width=1280, height=720, framerate=30/1, format=NV12 ! nvvidconv ! video/x-raw, format=BGRx, width=640, height=360 ! videoconvert ! video/x-raw, format=BGR ! appsink",
"remote_cam": "YOUR IP CAM STREAM (can be .m3u8, MJPEG ...), anything supported by opencv",
"remote_hls_gstreamer": "souphttpsrc location=http://YOUR_HLSSTREAM_URL_HERE.m3u8 ! hlsdemux ! decodebin ! videoconvert ! videoscale ! appsink"
},
"TRACKER_SETTINGS": {
"objectMaxAreaInPercentageOfFrame": 80,
"confidence_threshold": 0.2,
"iouLimit": 0.05,
"unMatchedFrameTolerance": 5
},
"COUNTER_SETTINGS": {
"minAngleWithCountingLineThreshold": 5,
"computeTrajectoryBasedOnNbOfPastFrame": 5
},
"VALID_CLASSES": ["*"],
"DISPLAY_CLASSES": [
{ "class": "bicycle", "hexcode": "1F6B2"},
{ "class": "person", "hexcode": "1F6B6"},
{ "class": "truck", "hexcode": "1F69B"},
{ "class": "motorbike", "hexcode": "1F6F5"},
{ "class": "car", "hexcode": "1F697"},
{ "class": "bus", "hexcode": "1F68C"}
],
"PATHFINDER_COLORS": [
"#1f77b4",
"#ff7f0e",
"#2ca02c",
"#d62728",
"#9467bd",
"#8c564b",
"#e377c2",
"#7f7f7f",
"#bcbd22",
"#17becf"
],
"COUNTER_COLORS": {
"yellow": "#FFE700",
"turquoise": "#A3FFF4",
"green": "#a0f17f",
"purple": "#d070f0",
"red": "#AB4435"
},
"NEURAL_NETWORK_PARAMS": {
"yolov4": {
"data": "cfg/coco.data",
"cfg": "cfg/yolov4-416x416.cfg",
"weights": "yolov4.weights"
},
"yolov4-tiny": {
"data": "cfg/coco.data",
"cfg": "cfg/yolov4-tiny.cfg",
"weights": "yolov4-tiny.weights"
}
},
"TRACKER_ACCURACY_DISPLAY": {
"nbFrameBuffer": 300,
"settings": {
"radius": 3.1,
"blur": 6.2,
"step": 0.1,
"gradient": {
"0.4":"orange",
"1":"red"
},
"canvasResolutionFactor": 0.1
}
},
"MONGODB_URL": "mongodb://mongo:27017",
"PORTS": {
"app": 8080,
"darknet_json_stream": 8070,
"darknet_mjpeg_stream": 8090
}
}
from opendatacam.
After multiple tries now it shows its loading the default demo.mp4
but then I am hitting the issue mentioned here #614
http://localhost:8070
is showing the following so no inference
{
"frame_id":36,
"objects": [
{"class_id":0, "name":"person", "relative_coordinates":{"center_x":0.968587, "center_y":0.155538, "width":0.142953, "height":1.267735}, "confidence":0.865290},
{"class_id":57, "name":"sofa", "relative_coordinates":{"center_x":0.968587, "center_y":0.155538, "width":0.142953, "height":1.267735}, "confidence":0.838910},
{"class_id":0, "name":"person", "relative_coordinates":{"center_x":0.961556, "center_y":0.861943, "width":0.114604, "height":0.354715}, "confidence":0.911529},
{"class_id":0, "name":"person", "relative_coordinates":{"center_x":0.982083, "center_y":0.207010, "width":0.107570, "height":0.453541}, "confidence":0.703170}
]
},
Keep in mind, I am using default config.json
and no changes.
Somewhere something is pointing to the wrong config file or the settings in config.json
is not getting loaded/assigned.
from opendatacam.
Related Issues (20)
- Saving counter locations and names HOT 2
- Yolo Simulation in Live Mode does not increment frame ID correctly
- Add missing docker-compose file for cpu-amd64 platform
- Path View: Keep color if ID does not change
- Fix urlHelper
- MongoDB CPU usage increasing over time HOT 1
- Update to NodeJS v20 HOT 1
- Run Darknet in Docker with Jetpack v5 HOT 11
- Update Darknet for to latest upstream HOT 3
- Update GitHub Actions to latest version in Darknet repo HOT 1
- Think about merging those changes from opendatacam/[email protected]:darknet:odc into https://github.com/vsaw/darknet/tree/607-darknet-jetpack5 HOT 3
- Detection in 3.0.2 is not working on desktop HOT 15
- Fix annnoying failing Darknet builds
- Update Darknet Desktop Docker Image HOT 2
- Update Documentation and make CUDA 11 a minimum requirement to run OpenDataCam
- Builld Darknet CPU Image from main branch HOT 1
- Get yolov4-416x416.cfg into Darknet main branch
- Rename Docker Repository to OpenDataCam/Darknet
- Update NextJS and React HOT 3
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 opendatacam.