Giter VIP home page Giter VIP logo

camp's People

Contributors

ma2shita avatar nick-hunter avatar patrickfuller avatar themcaffee 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

camp's Issues

Assertion Failed on OPENCV cvtColor

So, I had a problem here with my camera (it broke) and I bought a new one, same model, same brand. Plugged it in and got an error. Tried again on your code, same error. Not sure if it's a driver problem, since I'm using the exact same camera. Maybe the power is not being enough? I'll check on that on my side.

OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cvtColor, file /usr/src/packages/BUILD/opencv-2.4.1+dfsg/modules/imgproc/src/color.cpp, line 3149
ERROR:tornado.application:Exception in callback <bound method WebSocket.loop of <__main__.WebSocket object at 0x284e5b0>>
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/tornado/ioloop.py", line 1020, in _run
    return self.callback()
  File "server.py", line 94, in loop
    img = Image.fromarray(cv2.cvtColor(frame, cv2.COLOR_BGR2RGB))
error: /usr/src/packages/BUILD/opencv-2.4.1+dfsg/modules/imgproc/src/color.cpp:3149: error: (-215) scn == 3 || scn == 4 in function cvtColor

I looked it up online and it was saying as if the frame is empty and then there is no conversion. So I feel like it could be a driver issue.

Tornado can't execute cgi scripts

Hello,
I'm trying to execute scripts but tornado doesn't accept them, could someone help me please?
Thank you for reading.
WARNING:tornado.access:404 GET /cgi-bin/ (192.168.1.3) 1.57ms
WARNING:tornado.access:404 GET /cgi-bin/forward.cgi (192.168.1.3) 1.55ms
WARNING:tornado.access:404 GET /cgi-bin/stop.cgi (192.168.1.3) 1.81ms
WARNING:tornado.access:404 GET /cgi-bin/reverse.cgi (192.168.1.3) 1.61ms

Full Rewrite

This was written as a quick proof of concept 10 years ago and has gone unmaintained. It uses patterns, libraries, and features that are similarly dated. This has led to memory leaks, security vulnerabilities, and installation complexities that are simply not worth repairing without a rewrite.

To do:

  • Move to python 3, asyncio, and aiohttp (or uvloop?)
  • Proper repo organization with environment management (pipenv), testing (nose/mock), and documentation
  • Eslint and pylint at a minimum
  • Buid a test pi with USB and picamera modules, grind for memory leaks
  • Improve password management and documentation; comply with modern standards and recommend reverse proxies, OAuth, etc for more savvy users

Huge memory leak...

Running this on a pi2 in high resolution mode, I'm leaking 1MB/second. With manual garbage collection (gc.collect()) every loop, I managed to reduce that to about 10MB/minute. I'm still cautious of using it though.

Have developers any idea why this might be the case? It does appear to be server.py which is leaking, but to the best of my knowledge no objects are being left uncleaned. It could potentially be a driver issue, but then I don't understand why the python process would be showing the leak itself.

Read image socket from opencv

Hi,
Is there any way that I can access the stream of image using cv2?
As I'm new to web socket, if you let me know any clue, it will be great for me.
With Regards.

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.