Coder Social home page Coder Social logo

abandoned-object-detection's People

Contributors

adhamgad avatar ebadawy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

abandoned-object-detection's Issues

Video problem

I noticed that the video you are using is not included into the repo and also no .gitignore file so that how did you exclude the video?
That is strange, anyway I tried adding a video my own with the same name (2.mp4) and I had a error as following
File "AbandonedObjectDetection.py", line 150, in
cv2.imshow("1",frame)
cv2.error: /tmp/build/80754af9/opencv_1512680316562/work/modules/highgui/src/window.cpp:611: error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function cvShowImage

my opencv version is 3.2

after some search, I found that this error may be because of frame dimensions (are you using hardcoded dimensions and not using functions like shape?)

If you can help or send your video for test I would be happy.

Thanks.

2.mp4 missing

can you please upload the file, because it seems that this is not working on any other video.

fgmask= cv2.absdiff(frame, background)

Hi, I am getting this issue..... I resized the image and frame.... still getting this error. cannot figure out what is going wrong.
/home/rijuta/.virtualenvs/OpencCV_Projects/bin/python /snap/pycharm-community/64/helpers/pydev/pydevd.py --multiproc --qt-support=auto --client 127.0.0.1 --port 39483 --file "/media/rijuta/New Volume/OpencCV_Projects/PycharmProjects/abondoned/AbandonedObjectDetection.py"
pydev debugger: process 7573 is connecting

Connected to pydev debugger (build 181.5087.37)
OpenCV(3.4.1) Error: Sizes of input arguments do not match (The operation is neither 'array op array' (where arrays have the same size and the same number of channels), nor 'array op scalar', nor 'scalar op array') in arithm_op, file /io/opencv/modules/core/src/arithm.cpp, line 659
Traceback (most recent call last):
File "/snap/pycharm-community/64/helpers/pydev/pydevd.py", line 1664, in
main()
File "/snap/pycharm-community/64/helpers/pydev/pydevd.py", line 1658, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "/snap/pycharm-community/64/helpers/pydev/pydevd.py", line 1068, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "/media/rijuta/New Volume/OpencCV_Projects/PycharmProjects/abondoned/AbandonedObjectDetection.py", line 147, in
objs = AOD.get_abandoned_objs(frame)
File "/media/rijuta/New Volume/OpencCV_Projects/PycharmProjects/abondoned/AbandonedObjectDetection.py", line 72, in get_abandoned_objs
FG = getForegroundMask(frame, self.BG, 70)
File "/media/rijuta/New Volume/OpencCV_Projects/PycharmProjects/abondoned/aodHelper.py", line 8, in getForegroundMask
fgmask= cv2.absdiff(frame, background)
cv2.error: OpenCV(3.4.1) /io/opencv/modules/core/src/arithm.cpp:659: error: (-209) The operation is neither 'array op array' (where arrays have the same size and the same number of channels), nor 'array op scalar', nor 'scalar op array' in function arithm_op

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.