webrtc/rtc_tools/barcode_tools
Magnus Jedvert 5292654d7b Reland "Fix a bug in barcode_decoder.py"
This is a reland of 5c2de6b3ce

Original change's description:
> Fix a bug in barcode_decoder.py
>
> When converting from a .y4m file, it's illegal to pass a video_size
> option since the resolution is already contained in the .y4m file.
>
> Bug: webrtc:9642
> Change-Id: Iee7d2ba1332c45a1669af0fba43b0c3e7ce5846b
> Reviewed-on: https://webrtc-review.googlesource.com/95949
> Reviewed-by: Magnus Jedvert <magjed@webrtc.org>
> Commit-Queue: Magnus Jedvert <magjed@webrtc.org>
> Cr-Commit-Position: refs/heads/master@{#24431}

Bug: webrtc:9642
Change-Id: Iea6aad249839f9b1dad830bdf194cef2cc7dcfa6
Reviewed-on: https://webrtc-review.googlesource.com/97441
Reviewed-by: Patrik Höglund <phoglund@webrtc.org>
Commit-Queue: Magnus Jedvert <magjed@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24542}
2018-09-04 07:39:13 +00:00
..
barcode_decoder.py Reland "Fix a bug in barcode_decoder.py" 2018-09-04 07:39:13 +00:00
barcode_encoder.py Revert "Update video_quality_analysis to align videos instead of using barcodes" 2018-08-24 12:45:13 +00:00
build_zxing.py Revert "Update video_quality_analysis to align videos instead of using barcodes" 2018-08-24 12:45:13 +00:00
DEPS Revert "Update video_quality_analysis to align videos instead of using barcodes" 2018-08-24 12:45:13 +00:00
helper_functions.py Revert "Update video_quality_analysis to align videos instead of using barcodes" 2018-08-24 12:45:13 +00:00
README Revert "Update video_quality_analysis to align videos instead of using barcodes" 2018-08-24 12:45:13 +00:00
yuv_cropper.py Revert "Update video_quality_analysis to align videos instead of using barcodes" 2018-08-24 12:45:13 +00:00

This file explains how to get the dependencies needed for the barcode tools.

barcode_encoder.py
==================
This script depends on:
* Zxing (Java version)
* Ant (must be installed manually)
* Java

To automatically download Zxing for the encoder script, checkout this directory
as a separate gclient solution, like this:
gclient config http://webrtc.googlecode.com/svn/trunk/webrtc/rtc_tools/barcode_tools
gclient sync
Then the Zxing Java source code will be put in third_party/zxing.

In order to run barcode_encoder.py you then need to build:
* zxing/core/core.jar
* zxing/javase/javase.jar
These are compiled using Ant by running build_zxing.py:
python build_zxing.py

For more info about Zxing, see https://code.google.com/p/zxing/


barcode_decoder.py
==================
This script depends on:
* Zxing (C++ version). You need to checkout from Subversion and build the libs
  and zxing SCons targets. SVN URL: http://zxing.googlecode.com/svn/trunk/cpp
* FFMPEG fmpeg 0.11.1

These dependencies must be precompiled separately before running the script.
Make sure to add FFMPEG to the PATH environment variable and provide the path
to the zxing executable using the mandatory command line flag to the script.