Comments (7)
Hey @Catfriend1;
Looking at this now with a fresh set of eyes, it seems like my version detection functionality isn't correct (I'm using <= instead of <). I'll tag this as a bug and add it to the list for the next DVR-Scan release.
Should have something in master by the end of the week that fixes this, thank you for letting me know!
from dvr-scan.
Hehe, you're great. Just want to say thank you so much for this!
It's a perfect match to improve my Yi Camera's motion detection together with roleoroleo/yi-hack-Allwinner#68
from dvr-scan.
Hmmm I can execute "python3 /usr/local/bin/dvr-scan --version" if I remove the following part of "platform.py":
# Compatibility fix for OpenCV < 3.0
if (int(cv2.__version__[0]) <= 3):
cv2.CAP_PROP_FRAME_WIDTH = cv2.cv.CV_CAP_PROP_FRAME_WIDTH
cv2.CAP_PROP_FRAME_HEIGHT = cv2.cv.CV_CAP_PROP_FRAME_HEIGHT
cv2.CAP_PROP_FPS = cv2.cv.CV_CAP_PROP_FPS
cv2.CAP_PROP_POS_MSEC = cv2.cv.CV_CAP_PROP_POS_MSEC
cv2.CAP_PROP_POS_FRAMES = cv2.cv.CV_CAP_PROP_POS_FRAMES
cv2.CAP_PROP_FRAME_COUNT = cv2.cv.CV_CAP_PROP_FRAME_COUNT
cv2.VideoWriter_fourcc = cv2.cv.CV_FOURCC
Afterwards, I need to do:
rm /usr/local/lib/python3.7/dist-packages/DVR_Scan-1.0.1-py3.7.egg
echo "$(cd "/root/install/dvr-scan/"; python3 "setup.py" install)"
python3 /usr/local/bin/dvr-scan --version
-----------------------------------------------
DVR-Scan v1.1-dev
-----------------------------------------------
Copyright (C) 2016-2017 Brandon Castellano
< https://github.com/Breakthrough/DVR-Scan >
This DVR-Scan is licensed under the BSD 2-Clause license; see the
included LICENSE file, or visit the above link for details. This
software uses the following third-party components:
NumPy: Copyright (C) 2005-2013, Numpy Developers.
OpenCV: Copyright (C) 2016, Itseez.
THE SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED.
from dvr-scan.
Hi @Catfriend1;
Could you tell me what the version of OpenCV is reported that you have installed? You can check by running the following in a python
terminal, and showing the output here:
import cv2
cv2.__version__
Depending on your answer, that might indicate the version check is incorrect. TODO: Investigate further methods of implementing the compatibility layer.
Thanks!
from dvr-scan.
I've entered the command and got '3.2.0' on the console.
Thanks for your quick answer and taking care.
root@vm:~# python3
Python 3.7.3 (default, Dec 20 2019, 18:57:59)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more infor
mation.
>>> import cv2
>>> cv2.__version__
'3.2.0'
from dvr-scan.
Fixed in 862e2cc.
from dvr-scan.
:) thank you
from dvr-scan.
Related Issues (20)
- When using with wildcard, dvr-scan detects motion across two videos HOT 1
- ROI / region of interest not working HOT 1
- Request: Process video stream from stdin HOT 2
- wildcards produce different detection than file by file run HOT 4
- how do you install this program? HOT 6
- cv2 package got renamed to opencv-python and is now at 4.8.0.76 HOT 2
- Timecode format of hh:mm:ss not recognized HOT 3
- Process ends early and displays error: Element exceeds containing master element HOT 1
- Traceback TypeError for any dvr-scan command HOT 1
- cnt mode stuck HOT 4
- Invalid duration specification for ss: 00:04:60.000 when using -m copy or -m ffmpeg HOT 6
- Require version >= 0.6.2 of scenedetect
- Exception in encode thread when extracting motion events on v1.6 HOT 7
- Unsupported config option: region-file HOT 3
- region-editor config option gets ignored HOT 3
- Request: produce image file (thumb) of the frame with the highest amount of motion per output video HOT 3
- Improve handling of videos that are corrupt or have decoding failures HOT 8
- Closing the ROI editor should warn if you have unsaved changes HOT 2
- use position_ms to determine timestamps HOT 3
- Filename issues 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 dvr-scan.