Git Product home page Git Product logo

parking-space-detection-system's Introduction

Parking Space Detection

Medium Article

How to use

  • IPython Notebook:

Download the notebook and upload it on google colab. Rest of the instructions are in the notebook.

To run code on local machine

  • Create a python virtual environment and install the dependencies using the following command:

pip install -r requirements.txt

  • Use set_regions.py to set the parking regions:

python set_regions.py PATH_OF_VIDEO_FILE NAME_OF_OUTPUT_FILE(optional)

  • Use detector.py to get the output:

python detector.py PATH_OF_VIDEO_FILE PATH_OF_PARKING_REGIONS_FILE

parking-space-detection-system's People

Contributors

sainimohit23 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

parking-space-detection-system's Issues

bounding box of car and the regions are not shown in the final output file

bounding boxes of the car is not shown and the pickle files marked regions is also not shown in the final output and lots of problems occur with matterport file. but used different file but in final cell of colab there exist more problem but solving that still doesnt get the final result as shown in the blog

Module Not Found Error

File "detector.py", line 8, in
from mrcnn.model import MaskRCNN
ModuleNotFoundError: No module named 'mrcnn'

Same error occurs when trying to run code of notebook. How do I fix it?

PS: set_regions.py also seems to freeze when the "n" key is pressed and/or crash when the "q" key is pressed.

AttributeError: 'str' object has no attribute 'decode'

I am trying to run the ipynb file of the project on Colab, but I am getting the error that I mentioned in the title in the second part of step 6. I did research on the internet and it was written that the support for decode() has been removed and I need to revise the codes "encode().decode()" in this way. I also applied this solution to the relevant parts of the saving.py file, but I could not get a result. I'm still getting the same error. How can i solve this?

Error Screenshot

Tensorflow==1.15.2 giving error 'get_config' Import Error

While runnning detecttor.py with mentioned version of tf ==1.15.2 , getting error repeatedly:

ISSUE 1:
File "detector.py", line 8, in
from mrcnn.model import MaskRCNN
File "C:\Users\Risin\Desktop\parking\mrcnn\model.py", line 23, in
import keras.backend as K
File "C:\Users\Risin\anaconda3\envs\mr_cnn\lib\site-packages\keras_init_.py", line 25, in
from keras import models
File "C:\Users\Risin\anaconda3\envs\mr_cnn\lib\site-packages\keras\models.py", line 19, in
from keras import backend
File "C:\Users\Risin\anaconda3\envs\mr_cnn\lib\site-packages\keras\backend.py", line 36, in
from tensorflow.python.eager.context import get_config
ImportError: cannot import name 'get_config'

ISSUE 2:

While mr_cnn repo is mentioning to use tensorflow version >= 1.3.0 , not sure how we are using both these versions

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.