Skip to content

Commit 935adbd

Browse files
dpebotJustinBeckwith
authored andcommitted
Re-generate library using /synth.py (#138)
1 parent 1e73872 commit 935adbd

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

vision/samples/detect.v1p3beta1.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ function localizeObjects(fileName) {
3030
* TODO(developer): Uncomment the following line before running the sample.
3131
*/
3232
// const fileName = `/path/to/localImage.png`;
33-
33+
3434
const request = {
3535
image: {content: fs.readFileSync(fileName)},
3636
};
37-
37+
3838
client
3939
.objectLocalization(request)
4040
.then(results => {
@@ -60,7 +60,7 @@ function localizeObjectsGCS(uri) {
6060

6161
// Creates a client
6262
const client = new vision.ImageAnnotatorClient();
63-
63+
6464
/**
6565
* TODO(developer): Uncomment the following line before running the sample.
6666
*/
@@ -98,7 +98,7 @@ function detectHandwritingOCR(fileName) {
9898

9999
const request = {
100100
image: {
101-
content: fs.readFileSync(fileName)
101+
content: fs.readFileSync(fileName),
102102
},
103103
feature: {
104104
languageHints: ['en-t-i0-handwrit'],
@@ -123,15 +123,15 @@ function detectHandwritingGCS(uri) {
123123

124124
// Creates a client
125125
const client = new vision.ImageAnnotatorClient();
126-
126+
127127
/**
128128
* TODO(developer): Uncomment the following line before running the sample.
129129
*/
130130
// const uri = `gs://bucket/bucketImage.png`;
131131

132132
const request = {
133133
image: {
134-
content: fs.readFileSync(uri)
134+
content: fs.readFileSync(uri),
135135
},
136136
feature: {
137137
languageHints: ['en-t-i0-handwrit'],

vision/samples/system-test/detect.v1p3beta1.test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ test(`should read handwriting in local handwritten.jpg sample`, async t => {
7878
`${cmd} detectHandwriting ${files[1]}`,
7979
cwd
8080
);
81-
t.true(
82-
output.includes(`hand written message`)
83-
);
81+
t.true(output.includes(`hand written message`));
8482
});
8583

8684
test(`should read handwriting from handwritten.jpg in GCS bucket`, async t => {

0 commit comments

Comments
 (0)