Skip to content

Commit 67c5200

Browse files
committed
Disable unused base64 length comparison
1 parent f3b8229 commit 67c5200

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ pyImage.stdout.on('data', function (data) {
3333
console.log('Sending \x1b[34m%s\x1b[0m Python: I am looking for snakes', 'TO')
3434
pyScript.send('I am looking for snakes')
3535

36-
let img = fs.readFileSync('medusa.jpg', 'base64')
37-
console.log('base64 length: ' + img.length)
36+
// let img = fs.readFileSync('medusa.jpg', 'base64')
37+
// console.log('base64 length: ' + img.length)
3838

3939
fs.readFile('medusa.jpg', 'base64', function (err, data) {
4040
if (err) {

python/image-mediator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ def main():
2222
if input_data:
2323
image = cv2.cvtColor(image_array, cv2.COLOR_RGB2BGR)
2424
# image = image_array
25-
# sys.stdout.write(str(image.shape))
26-
# sys.stdout.write(str(image))
25+
sys.stdout.write(str(image.shape))
26+
# sys.stdout.write(str(image_array.shape))
2727
# sys.stdout.write(np.array_str(image_array))
2828
# buffer = cv2.imencode('.png', image)
2929
# b64image = base64.b64encode(buffer)

0 commit comments

Comments
 (0)