DECA-18: Modify the existing Decapod server to not depend on the camera hardware, returning test images instead

Metadata

Source
DECA-18
Type
Sub-issue
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Jonathan Hung
Reporter
Colin Clark
Created
2009-10-21T13:39:05.000-0400
Updated
2012-01-10T09:50:57.912-0500
Versions
N/A
Fixed Versions
  1. 0.3
Component
  1. Capture

Description

At the moment, the CherryPy server for Decapod makes direct calls to the OS to access the camera hardware. For easier testing and development, we need a stub version of the server that just returns canned images.

The Decapod server code currently resides here:

http://code.google.com/p/decapod/source/browse/decapod-server/dserver.py

Attachments

Comments

  • Boyan Sheytanov commented 2009-10-27T06:30:51.000-0400

    Attached is a patch of the changes made to the original dserver.py file. Camera capture was commented out and capture method was rewritten to return jpeg images from a folder "testData" by a given index. The capture button of the UI should call this method, with a starting index of 0 and incrementing it each time it is clicked.

  • Boyan Sheytanov commented 2009-10-27T06:33:12.000-0400

    The code in the patch should be enough in order to start testing while building the UI. Still more can be done if we decide to keep the Python & CherryPy implementation.