@sreu13 You have to deploy a flask server on your Google cloud instance. Also create local flask server on your RasPi. Upload your image on RasPi flask server. Convert image to base64 format. Send naseer image to flask server deployed on Google cloud instance. Then convert back base64 normal image file. Then process image on your flask server. It might solve your problem.
Posts made by arunksoman
-
RE: Error on Raspberry PI 4 while opening TensorFlow.
-
RE: Error on Raspberry PI 4 while opening TensorFlow.
@sreu13 It is possible and a far far better method.
-
RE: Error on Raspberry PI 4 while opening TensorFlow.
@sreu13 I edited comment please read that again. Most probably it will not effect your file system. In some scenarios it can create worse effect.
-
RE: Error on Raspberry PI 4 while opening TensorFlow.
@sreu13
Ensure that you are installed tensorflow 1.x since screenshot of your code shows something like
from keras.layers.convolution import covolution2D
It is not correct in case for tensorflow 2.0 since keras api is part of tensorflow itself.Another thing is try to expand your file system. It should be do with your own risk.
sudo raspi-config
- Navigate to Advanced options
- Select advanced options and hit enter(I believes tab key is useful here)
- Choose Expand File System and hit enter finish.
- Then your pi may prompt to reboot. If it didn't run. Execute
sudo reboot
- Then execute following commands one by one:
$ sudo apt-get purge wolfram-engine $ sudo apt-get purge libreoffice* $ sudo apt-get clean $ sudo apt-get autoremove
- Then increase swap memory by editing following file swapfile:
$ sudo nano /etc/dphys-swapfile
- It will open nano editor. Navigate to variable
CONF_SWAPSIZE=100
It indicates your current swap is only 100mb.
So you just have to increase by commenting down this line and increase to appropriate value something like shown below for 2GB swap:#CONF_SWAPSIZE=100 CONF_SWAPSIZE=2048
- Save the file and exit nano editor.
sudo reboot
I believes if it did not helped you, you have to think about MOVIDIUS or NVIDIA Jetson nano etc.
-
RE: how did sudo command solved can't open device "/dev/ttyUSB0": Permission denied?
@Abhay I think most probably you might have done this earlier while installing Arduino.
-
RE: how did sudo command solved can't open device "/dev/ttyUSB0": Permission denied?
@Abhay What did you mean by usual steps?
-
RE: Error on Raspberry PI 4 while opening TensorFlow.
@sreu13 What is the version of tensorflow you are using? Did you read the tensorflow docs? You can't do simply
pip install tensorflow
for Python 3.7 version. -
RE: Error on Raspberry PI 4 while opening TensorFlow.
Your are using a bleeding edge python software for tensorflow. I believes it is python 3.7 or python 3.8 or something. Try to downgrade your python to 3.6.5 or other compatible version by refereing documentation.
-
RE: how did sudo command solved can't open device "/dev/ttyUSB0": Permission denied?
- Go to Arduino software
- Download Linnux 64-bit or 32-bit software
- Extract the Downloaded tar.xz file on your home directory.
- Navigate to your extracted file using cd command:
cd arduino-1.8.12-linux64
- Make the install.sh file executable:
sudo chmod +x install.sh
- Install arduino using shell script
sudo ./install.sh
- Open Terminal and type:
ls -l /dev/ttyACM*
you will get something like:
crw-rw---- 1 root dialout 188, 0 5 apr 23.01 ttyACM0
The "0" at the end of ACM might be a different number, or multiple entries might be returned. The data we need is "dialout" (is the group owner of the file).
Now we just need to add our user to the group:
sudo usermod -a -G dialout <username>
I believes it is a better way to solve your problem. Other way you to try to solve problem is install arduino via:
sudo apt-get install arduino-core
-
RE: A little hassle with ESP32..!!
@kowshik1729 Did you read Espressif page and datasheet completely?
ESP-NOW is yet another protocol developed by Espressif, which enables multiple devices to communicate with one another without using Wi-Fi. The protocol is similar to the low-power 2.4GHz wireless connectivity that is often deployed in wireless mouses. So, the pairing between devices is needed prior to their communication. After the pairing is done, the connection is safe and peer-to-peer, with no handshake being required.
Espressif ESP-NOW OVERVIEW"The ESP-Now protocol is connection-less, you don't need to set up a session/get an ip-address to communicate between nodes. This saves time and battery power, exactly what we need. "
revspaceAlso You can try this protocol with deep sleep mode.