final 1_2x.png

Cortic Technology Corp.

Make. Learn. Have fun.

  • Home

  • Blog

  • About

  • Team

  • Forum

  • Contact

  • More

    Use tab to navigate through the menu items.
    • Instagram
    • YouTube
    • Facebook
    • Twitter
    To see this working, head to your live site.
    • Categories
    • All Posts
    • My Posts
    John Dabrowski
    Aug 25, 2021

    Installing Cep-Cait

    in Programming with CAIT

    Hi,

    Pi 4.0 8GB mem

    I purchased Charley, assembled it, install Cait 1.0 (had some problems but got it to work), Ran through some of your examples (like face regonition, added some simple motor movements) and eventually all was good.

    Pi 4, 8GB, Oak 2, Respeaker 4 mics, Pi audio out to speakers,

    Installed Cep software, took almost 2hrs, No problems I’m aware of. As it re-booted after install, I do not have a log file. Then started software, did setup, Oak 2 discovered and Respeaker and network. Then ran program interface, came up as Cortic Toolkit 1.5 (just like Cait 1.0. interface)

    So, long story short, no program would run or initialize. To keep it simple one thing I tried was “example_face_recognition.cait”. Block program displayed on screen OK. I clicked run and “undefined appeared”. I got lots of undefined for everything.

    OK, so first problem was I could not find block programming description or examples like you had for Cait 1.0. So I could not put together a program of my own making, just your examples.

    Since all errors end with undefined, I assumed you’ve had this error before.

    Help!

    P.S. I do not subscribe to any social media sites like twitter, Linkedin or Facebook because of privacy issues with them.

    39 comments
    0
    39 Comments
    P
    Paul Smith
    Mar 14

    These take away completely from the cluttering mess of a TV stand and save you the trouble of clearing up a table to rest your TV on. All you need is a flat wall and you can hang your set up with ease. This article will be centered around wall mount products meant for TCL sets, be it a 40 inch or a 65 inch TV. For further information, you can check our section about mounting tcl 65 inch tv on wallmountedhub as well

    Like

    W
    Wang Yibo Dance academy
    Dec 19, 2021

    Enter wall mounts – the product of reason. These take away completely from the cluttering mess of a TV stand and save you the trouble of clearing up a table to rest your TV on. All you need is a flat wall and you can hang your set up with ease. This article will be centered around wall mount products meant for TCL sets, be it a 40 inch or a 65 inch TV. For further information, you can check our section about wall mount for tcl 65 inch tv as well as our guide

    Like

    filip
    Oct 02, 2021

    Installed a fresh Raspberry OS Lite on 64GB SD on RPI4b-8GB.

    after the "bash setup.sh", the pi restarted but after the reboot, the webservice is not responding...

    Like

    Y
    Ye Lu
    Aug 27, 2021

    That’s good to know. I will contact you by email from now on.

    Like

    Y
    Ye Lu
    Aug 27, 2021

    Oh, can you try rebooting the Raspberry Pi?

    Like
    J
    John Dabrowski
    Aug 27, 2021
    Replying to

    OK shorter verion

    ran ok 5 minutes

    Then yellow lines stop working

    exited cep

    ran test again 5 minutes, then started typing note. After typing looked and video had stopped but yellow lines continued 15 minutes

    Rebooted Pi

    Ran 9 minutes and yellow line stopped working but video continued



    FYI; The best way to get my attention is to send email to my phone telling me you sent google mail to my tablet. My tablet is the only devie I have gmail on.

    hardrain2@comcast.net

    Like

    J
    John Dabrowski
    Aug 27, 2021
    Replying to

    OK, video cotinues after 20 minutes, yellow lines stopped after 9.

    I'm stopping test now

    Like

    Y
    Ye Lu
    Aug 27, 2021

    Hi John, we may have a fix for your freezing problem. It should be really fast for you to try it out. On your current CEP installation, do the following on the command line:


    cd cep

    git status (make sure you are in the test branch)

    git checkout test (if you are not already in the test branch)

    git pull


    Then, you can go to the visual programming interface on your web browser to try it out. At the top of the web page, you should see some text saying that it contains a fix for the freeze problem beside the version number. This is just to ensure you are running with the correct fix. Please let me know how it goes. Thanks


    Like
    J
    John Dabrowski
    Aug 27, 2021
    Replying to

    Hi, I've ran the test still have problem. I typed it up but I could not publish. I logged in again to test publishing.




    Like

    Y
    Ye Lu
    Aug 26, 2021

    The freezing frame problem is kind of weird. We are trying to reproduce it over here. The yellow border you mentioned in the previous message is actually the correct behaviour. It indicates which block is currently being executed. Even though the display image may be frozen, the program is still running.


    If you look at the readme file from the CEP project, it tells you that you can go to http://<raspberry_pi_hostname>.local/setup to configure your audio and video devices. You can change your audio output from HDMI to the 3.5mm jack.


    As for speech to text, the default on-device algorithm only works when you are in a very quiet room and speak directly into the microphone. This is due to the limited processing power of the Raspberry Pi. There is simply no capacity to perform the required signal processing task to clean up the audio signal.


    If you sign up for a Google Cloud account by following the steps on this screen cast https://www.youtube.com/watch?v=NYyaYPHJXZw, your speech to text performance will improve dramatically.


    We have not gotten around to write an updated quick start guide for this new project yet. We will work on this in the next month or so.

    Like

    Y
    Ye Lu
    Aug 26, 2021

    Hi John, sorry about the confusion from before. I don’t know why the forum posted my reply to you twice, but I removed one of them already.

    I am glad to hear that it works for you now. Not sure why you are experiencing the freeze. Have you tried restarting the Raspberry Pi? Does it happen consistently every time you run the demo program?

    Like
    J
    John Dabrowski
    Aug 26, 2021
    Replying to

    definitely problem with video when running example_face recognion.cait. frame always freezes 1 sec to 2 or 3 minutes. When frame freezes there may or may not be and error message "...local say error" May occure at same time as freeze, a few minutes later, or never waited 10 minues. Problem still occures after rebboting, exiting program or restarting. This face rec example constantly draws yellow borders around 'set person..., and draw recognized... Maybe theres a timing problem.


    Speech to text works with hdmi, maybe not with Pi analog audio. Speech to text using respeaker barely produces garbage. You say 5 or 6 words and get 5 to 10 charaters garbage. Is there more setup to do after software install?


    A manual would really be helpful or example programe like quick startup guide in Cait 1.0.

    Like

    J
    John Dabrowski
    Aug 26, 2021

    The following. Message has appeared twice since running latest version


    Raspcep1 say error. This is in addition to face freeze in previous mail.



    Like

    J
    John Dabrowski
    Aug 26, 2021

    Confused.... This isn't going well. I have alredy starte setup.sh . May need to start all over again which I can do.


    Rather then give me an expalnation on the inner working of git, the simplist thing to do is give me a line by line of the commands you want including the placewment of setup.sh.


    What I did was

    git clone

    cd

    git checkout test


    I reapted this becasue you sent two copies in a row. see previous mail

    git clone...

    cd cep

    git checkout test

    setup.sh





    Like
    J
    John Dabrowski
    Aug 26, 2021
    Replying to

    It worked!!! I tried the face recognition example and there was my face on the screen. lots mre things to try....


    Do you have a programing manual or a walk through of examples?


    Like

    J
    John Dabrowski
    Aug 26, 2021
    Replying to

    There may be a problem. After starting the Face rec example all seems well for a few minutes, then my face freeze's . Now in the Main progrom block, The set peron and draw recoginiton have yellow boxe that flash on/off. Now this imay be OK and continues to flash on/off even after my face freezes.


    I have not installed respeaker yet, will do that now

    Like

    Y
    Ye Lu
    Aug 25, 2021

    Thanks. We are trying this configuration right now.

    Like
    Y
    Ye Lu
    Aug 26, 2021
    Replying to

    @John Dabrowski Try the following:

    $ git clone https://github.com/cortictechnology/cep
    $ cd cep
    $ git checkout test
    Like

    J
    John Dabrowski
    Aug 26, 2021
    Replying to

    Thanks,

    Looks like it worked. Branch switched to test.

    I ran your procedure twice, thinking the first one switch it to test, the second one down loaded est version. If this is correct, I will run install now.

    Like

    Y
    Ye Lu
    Aug 26, 2021
    Replying to

    @John Dabrowski Running git clone once should download all branches. You can run the setup script after you switch to the “test” branch.

    Like

    Y
    Ye Lu
    Aug 25, 2021

    Also, we you say you are using Pi 8GB, do you mean the internal memory is 8GB or that your SD card size is 8GB?

    Like
    J
    John Dabrowski
    Aug 25, 2021
    Replying to

    Hi,


    8 GB of RAM,also 4GB of RM. SD card 32 GB. I'm checking Power suppliesnow. 3A PS on Pi.


    Like

    Y
    Ye Lu
    Aug 25, 2021

    Hi John, we tried reproducing this issue using the version of Raspberry Pi OS you mentioned above, but so far we have not been able to see any problems. Can you take some pictures of your hardware setup (in particular, what other accessories are connected to the raspberry pi) and send them to us? It would help with our debugging process tremendously. Thanks in advance.

    Like

    Y
    Ye Lu
    Aug 25, 2021

    Thanks for the info, John. We will try these as well.

    Like

    Y
    Ye Lu
    Aug 25, 2021

    Thanks for the clarification. We will try to reproduce this problem on our end. I will let you know soon.

    Like
    J
    John Dabrowski
    Aug 25, 2021
    Replying to

    BTW i ran 201-05-07 raspois-buster-armhf-full and also smaller version Rasp Pi OS with Desktop. Same name as above without word full at end. I'm runing full versio now for most testing. Same result for both.

    Like

    Y
    Ye Lu
    Aug 25, 2021

    Did the problems disappear when you only install CEP on a fresh Raspberry Pi OS, or are you still experiencing the same issues?

    Like
    J
    John Dabrowski
    Aug 25, 2021
    Replying to

    Hi,


    i beleve Cep incudes Cait as Cortic Toolkit indicates V1.5. I never installed Cait separaty. Sorry for the confusion. I have installed Cep twice from scratch with the same result "undifined" i've tried it with/without respeakerplugged in but software still installed, same results. I'm log in as pi. I created a diff account, same results. I removed Oak-D and replced with web cam. Setup does not pick it up.that may be way it shouldwork?.

    Like

    J
    John Dabrowski
    Aug 25, 2021

    Hi,


    Thanks for the quick response


    On a new install of pi os plus all updates, I ran:


    git clone https://github.com/cortictecnology/cep

    cd cep

    bash setup.sh


    I also installed the respeaker software


    git .../seeed-voicecard

    ...

    sudo ./install.sh