CameraITS: fix typos

Bug: 17994909

Change-Id: I0be691f8c5a0a7bb166a5f684c4dd3132b335090
diff --git a/apps/CameraITS/README b/apps/CameraITS/README
index c41536a..b09e1b7 100644
--- a/apps/CameraITS/README
+++ b/apps/CameraITS/README
@@ -218,7 +218,7 @@
 
 The tests/inprog directory contains a mix of unfinished, in-progress, and
 incomplete tests. These may or may not be useful in testing a HAL impl.,
-and as these tests are copmleted they will be moved into the scene<N> folders.
+and as these tests are completed they will be moved into the scene<N> folders.
 
 When running individual tests from the command line (as in the examples here),
 each test run will ensure that the ITS service is running on the device and is
diff --git a/apps/CameraITS/pymodules/its/caps.py b/apps/CameraITS/pymodules/its/caps.py
index 2c45368..b713db9 100644
--- a/apps/CameraITS/pymodules/its/caps.py
+++ b/apps/CameraITS/pymodules/its/caps.py
@@ -135,7 +135,7 @@
 
 def sensor_fusion(props):
     """Returns whether the camera and motion sensor timestamps for the device
-    are in the same time domain and can be compared direcctly.
+    are in the same time domain and can be compared directly.
 
     Args:
         props: Camera properties object.
diff --git a/apps/CameraITS/pymodules/its/device.py b/apps/CameraITS/pymodules/its/device.py
index f4107a0..81a180f 100644
--- a/apps/CameraITS/pymodules/its/device.py
+++ b/apps/CameraITS/pymodules/its/device.py
@@ -30,7 +30,7 @@
 
     The script importing this module (on the host machine) prepares JSON
     objects encoding CaptureRequests, specifying sets of parameters to use
-    when capturing an image using the Camera2 APIs. This class encapsualtes
+    when capturing an image using the Camera2 APIs. This class encapsulates
     sending the requests to the device, monitoring the device's progress, and
     copying the resultant captures back to the host machine when done. TCP
     forwarded over adb is the transport mechanism used.
@@ -411,7 +411,7 @@
             CAP_RAW_YUV_JPEG
             CAP_DNG_YUV_JPEG
 
-        If multiple formats are specified, then this function returns multuple
+        If multiple formats are specified, then this function returns multiple
         capture objects, one for each requested format. If multiple formats and
         multiple captures (i.e. a burst) are specified, then this function
         returns multiple lists of capture objects. In both cases, the order of
@@ -437,7 +437,7 @@
             * width: the width of the captured image.
             * height: the height of the captured image.
             * format: image the format, in ["yuv","jpeg","raw","raw10","dng"].
-            * metadata: the capture result object (Python dictionaty).
+            * metadata: the capture result object (Python dictionary).
         """
         cmd = {}
         cmd["cmdName"] = "doCapture"
@@ -470,7 +470,7 @@
 
         # Wait for ncap*nsurf images and ncap metadata responses.
         # Assume that captures come out in the same order as requested in
-        # the burst, however indifidual images of different formats ca come
+        # the burst, however individual images of different formats can come
         # out in any order for that capture.
         nbufs = 0
         bufs = {"yuv":[], "raw":[], "raw10":[], "dng":[], "jpeg":[]}
diff --git a/apps/CameraITS/pymodules/its/image.py b/apps/CameraITS/pymodules/its/image.py
index a05c4e6..f2425e1 100644
--- a/apps/CameraITS/pymodules/its/image.py
+++ b/apps/CameraITS/pymodules/its/image.py
@@ -83,7 +83,7 @@
 
     Args:
         cap: A raw-10 capture object.
-        props: Camera propertis object.
+        props: Camera properties object.
 
     Returns:
         New capture object with raw-16 data.
@@ -574,7 +574,7 @@
     Args:
         img: Input image, as a numpy array with pixels in [0,1].
         debug_fname_prefix: If not None, the (string) name of a file prefix to
-            use to save a number of debug images for visulaizing the output of
+            use to save a number of debug images for visualizing the output of
             this function; can be used to see if the patches are being found
             successfully.
 
@@ -655,7 +655,7 @@
     # Return the coords of the origin (top-left when the chart is in the normal
     # upright orientation) patch's center, and the vector displacement to the
     # center of the second patch on the first row of the chart (when in the
-    # normal upright orienation).
+    # normal upright orientation).
     origin_index = (white_patch_index+1)%4
     prev_index = (origin_index-1+4)%4
     next_index = (origin_index+1)%4
diff --git a/apps/CameraITS/tests/tutorial.py b/apps/CameraITS/tests/tutorial.py
index 1b1999e..c266d14 100644
--- a/apps/CameraITS/tests/tutorial.py
+++ b/apps/CameraITS/tests/tutorial.py
@@ -154,7 +154,7 @@
 
         # Apply a 3x3 matrix to the image, and save the new version. The matrix
         # is a numpy array, in row major order, and the pixel values are right-
-        # multipled to it (when considered as column vectors). The example
+        # multiplied to it (when considered as column vectors). The example
         # matrix here just boosts the blue channel by 10%.
         mat = numpy.array([[1, 0, 0  ],
                            [0, 1, 0  ],
@@ -162,7 +162,7 @@
         rgbimg_mat = its.image.apply_matrix_to_image(rgbimg, mat)
         its.image.write_image(rgbimg_mat, "%s_rgb_2_mat.jpg" % (NAME))
 
-        # Compute a histogram of the luma image, in 256 buckeits.
+        # Compute a histogram of the luma image, in 256 buckets.
         yimg,_,_ = its.image.convert_capture_to_planes(cap)
         hist,_ = numpy.histogram(yimg*255, 256, (0,256))
 
diff --git a/apps/CameraITS/tools/compute_dng_noise_model.py b/apps/CameraITS/tools/compute_dng_noise_model.py
index e089ffc..1b57754 100644
--- a/apps/CameraITS/tools/compute_dng_noise_model.py
+++ b/apps/CameraITS/tools/compute_dng_noise_model.py
@@ -111,7 +111,7 @@
             # Some sanity checks:
             # * Noise levels should increase with brightness.
             # * Extrapolating to a black image, the noise should be positive.
-            # Basically, the "b" value should correspnd to the read noise,
+            # Basically, the "b" value should correspond to the read noise,
             # which is the noise level if the sensor was operating in zero
             # light.
             #assert(m > 0)