Git Product home page Git Product logo

Comments (7)

Breakthrough avatar Breakthrough commented on September 9, 2024 1

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.

Catfriend1 avatar Catfriend1 commented on September 9, 2024 1

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.

Catfriend1 avatar Catfriend1 commented on September 9, 2024

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.

Breakthrough avatar Breakthrough commented on September 9, 2024

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.

Catfriend1 avatar Catfriend1 commented on September 9, 2024

Hi @Breakthrough

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.

Breakthrough avatar Breakthrough commented on September 9, 2024

Fixed in 862e2cc.

from dvr-scan.

Catfriend1 avatar Catfriend1 commented on September 9, 2024

:) thank you

from dvr-scan.

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.