Literacy Project

Discussion related to "under the hood" OpenMV topics.
Hiatagan
Posts: 3
Joined: Sun Dec 02, 2018 7:32 am

Literacy Project

Postby Hiatagan » Sat Jan 12, 2019 11:42 am

Good afternoon, how do I use conditionals in IDE? Having to use to enter a value and call a function but it does not allow typing. The function is correct because when I retire the conditional works perfectly. The code snippet is the one below.

esc = int(input('digite: '))

if esc == '1':
print(Rastrea_Black())
if esc == '2':
print(Rastrea_White())
elif:
print('Opção inválida')
User avatar
kwagyeman
Posts: 2606
Joined: Sun May 24, 2015 2:10 pm

Re: Literacy Project

Postby kwagyeman » Sat Jan 12, 2019 12:06 pm

Hi, you can't use input() with the IDE. We have no support for text transport to the camera. You can do this outside of the IDE however.
Nyamekye,
Hiatagan
Posts: 3
Joined: Sun Dec 02, 2018 7:32 am

Re: Literacy Project

Postby Hiatagan » Thu Jan 17, 2019 2:24 pm

Good afternoon, how do I use pycharm with Open instead of Open IDE? And does it run a code with artificial intelligence over the SD card? :)
User avatar
kwagyeman
Posts: 2606
Joined: Sun May 24, 2015 2:10 pm

Re: Literacy Project

Postby kwagyeman » Thu Jan 17, 2019 6:48 pm

Hi, OpenMV IDE detects code changes and will reload the file. So, just save the code you are editing on disk and open it with OpenMV IDE. Then when you make changes the IDE will prompt you to reload the code.
Nyamekye,
Hiatagan
Posts: 3
Joined: Sun Dec 02, 2018 7:32 am

Re: Literacy Project

Postby Hiatagan » Fri Jan 18, 2019 2:28 pm

Good afternoon, where do I get the source package with the images from the example "cnn_1.py"? I intend to create something similar and would like to see it complete to get an idea of ​​how it works.
User avatar
kwagyeman
Posts: 2606
Joined: Sun May 24, 2015 2:10 pm

Re: Literacy Project

Postby kwagyeman » Fri Jan 18, 2019 3:35 pm

Hi, you have to download them using our caffe tutorial. The CIFAR 10 dataset isn't store as images but instead as a byte array.
Nyamekye,

Return to “Technical Discussion”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest