Git Product home page Git Product logo

camscanner-python's Introduction

Building something while breaking other things !


camscanner-python's People

Contributors

savannahar68 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

camscanner-python's Issues

SystemExit: 2

ap = argparse.ArgumentParser()
ap.add_argument("-i", "--image", required = True, help = "Path to the image to be scanned")
args = vars(ap.parse_args())

when I running this part I am getting errors. how can I fix it?

usage: ipykernel_launcher.py [-h] -i IMAGE
ipykernel_launcher.py: error: the following arguments are required: -i/--image

An exception has occurred, use %tb to see the full traceback.

SystemExit: 2

OpenCV error....

runfile('/home/frohro/Downloads/CamScanner-Python/scannerApp.py', args='-i images/receipt.jpg', wdir='/home/frohro/Downloads/CamScanner-Python')
Reloaded modules: imutils, imutils.convenience, imutils.meta
STEP 1: Edge Detection
Traceback (most recent call last):

File "", line 1, in
runfile('/home/frohro/Downloads/CamScanner-Python/scannerApp.py', args='-i images/receipt.jpg', wdir='/home/frohro/Downloads/CamScanner-Python')

File "/usr/lib/python3/dist-packages/spyder_kernels/customize/spydercustomize.py", line 678, in runfile
execfile(filename, namespace)

File "/usr/lib/python3/dist-packages/spyder_kernels/customize/spydercustomize.py", line 106, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)

File "/home/frohro/Downloads/CamScanner-Python/scannerApp.py", line 72, in
cnts = sorted(cnts, key = cv2.contourArea, reverse = True)[:5]

error: OpenCV(4.1.0-dev) /home/frohro/Projects/opencv/modules/imgproc/src/shapedescr.cpp:274: error: (-215:Assertion failed) npoints >= 0 && (depth == CV_32F || depth == CV_32S) in function 'contourArea'

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.