To launch the demo in its own page: CTtext Demo
Do the following to make your own browser-accessible CTtext + CTstream demo. For instance, CTtext could annotate a video captured with CTstream. Check out the CTtext and CTstream documentation for more details on these applications.
- Create a folder called CTdemo containing the following: CTtext.jar, CTstream.jar, CTweb.jar (HTTP server application).
- Create a sub-folder for output data: CTdemo/CTdata
- Run the CTtext application as shown below.
012java -jar CTtext.jar
- Select “Settings…” from CTtext’s File menu and set the “Flush interval” to 2s. Click the OK button on the Settings dialog box. Select “Start CT data” from the File menu.
- Run the CTstream application as shown below. This sets the quality (‘q’) of the output images to 0.5 (on a 0–1 scale) and flushes an output ZIP file every 5 seconds (‘f’). We are using the default frame rate, which is 5 frames/sec; this means that every ZIP file will nominally contain 25 images. The “-sc” option turns on screen capture mode. You can see all the available options for CTstream by running it with the “-h” flag. When CTstream launches, click the green “Start” button to begin screen capture streaming.
012java -jar CTstream.jar -q 0.5 -f 5 -sc
- Start the web server:
012java -jar CTweb.jar
- At this point you are recording “live”. Type text in CTtext’s edit box and move windows into CTstream’s video capture region (bounded by the red outline). Use WebScan to see your results by pointing your browser at http://localhost:8000.