Jump to content

Search the Community

Showing results for tags 'python'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements
  • Tinker Board 3N
    • General Discussion
    • Hardware
    • Software
  • Tinker V
    • General Discussion
  • Tinker Board 2 series
    • General Discussion
    • Hardware
    • Software
    • Android
  • Tinker Board / Tinker Board R2.0 series
    • General Discussion
    • Hardware
    • Software
    • Android
  • Tinker Edge T
    • General Discussion
    • Hardware
    • Software
  • Tinker Edge R
    • General Discussion
    • Hardware
    • Software
    • Android

Calendars

  • Community Calendar

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me

Found 10 results

  1. hello all, my colleague has come up with a little python library called stkcam, that can be used to either to see the live preview of the mipi csi camera, or to take a picture with the mipi csi camera pypi: https://pypi.org/project/stkcam/ github: https://github.com/harryliou/stkcam so far it's supported on tinker board (r2.0) & tinker board 2s (debian 10, debian 11) here's a little how-to: ##setting up tinker board/ tinker board 2s use tinker-config to change the csi overlay: sudo tinker-config //select 5 Interfacing Options //select F1 Camera //select 0 IMX219 //or 1 OV5647 for Raspberry Camera V1 //click Ok, finish, and reboot install pip3 for python3 and stkcam: sudo apt get update sudo apt-get upgrade sudo apt-get install python3-pip pip3 install stkcam ##using stkcam for mipi csi camera live preview: python3 import stkcam from stkcam import TKCam, CamType cam = TKCam(CamType.IMX219) cam.preview() **if you'd like to take a photo using the library, please finish the process first -- exiting by ctrl + d twice) ##using stkcam to take a photo with mipi csi camera: python3 import stkcam from stkcam import TKCam, CamType cam = TKCam(CamType.IMX219) cam.take_image('/home/linaro/Desktop/image.jpg') # image path feel free to give it a try and let us know
  2. Hello this is Gulshan Negi Well, I am writing a program for making Hangman game in python but it shows some error at the time of its execution. Here is my source code: import random def select_word(): words_in_computer_memory = ['magazine','stars','computer','python','organisation'] word = random.choice(words_in_computer_memory) return word def is_gussed(word, guessed_letter_list): count=0 for letters in word: if letters in guessed_letter_list: count+=1 if count==len(word): return True else: return False def guessed_word(word, guessed_letter_list): string="" for key in word: if key in guessed_letter_list: string+=key else: string+="_ " return string def available_letters(guessed_letter_list): string="" count=0 s='abcdefghijklmnopqrstuvwxyz' for letter in s: if letter in guessed_letter_list: count+=1 else: string+=letter return string def hangman_game(word): length=len(word) print('''------------------WELCOME TO HANGMAN GAME--------------------------- O /|\ / \ ''') print("The word you have to guess is of ",length, "letters long.") chances=2*len(word) i=0: guessed_letter_list=[] while (chances!=0): if word!=guessed_word(word, guessed_letter_list): print("You Got", chances, "Chances.") print("Letters you can enter should be from these ",available_letters(guessed_letter_list)) guess=input("ENTER A LETTER ") print('\n'*50) guessInLowerCase = guess[0].lower() if guessInLowerCase in guessed_letter_list: print("SORRY! YOU HAVE GUSSED THIS LETTER ALREADY! ",guessed_word(word, guessed_letter_list)) elif guessInLowerCase not in word: print(" SORRY! THE LETTER IS NOT IN WORD",guessed_word(word, guessed_letter_list)) chances-=1 else: guessed_letter_list.append(guessInLowerCase) print("NICE YOU GUSESSED THE RIGHT LETTER! ",guessed_word(word, guessed_letter_list)) elif word==guessed_word(word, guessed_letter_list): print("YOU WON!") break else: print(''' ******************************************** YOU LOSS!! O /|\ / \ ******************************************''') print('The word was',word,) word = select_word() hangman_game(word) Can anyone give their suggestions on this. Thanks
  3. shenouda

    yolov8

    is it possible to convert a yolov8 model to rknn? or it is not supported on rk3399pro? i know it is possible to convert yolov5 but not sure about yolov8
  4. Hi, Seems VLC doesn't work on Tinker Board, do you guys know if there is any video player that can be controlled by Python and workable on Tinker Board (Edge R)? Thanks Arnold
  5. Is there a way to run more rknn inferences in parallel on the npu? If yes how?
  6. Two webcams were connected in the tinker edge. `cv2.open()` works well for two webcams, but only one webcam can be read. How do I `cv2.read()` two webcams at the same time?
  7. Hello everyone. I need to measure temperature with a DHT11 using Python and I can't get it. I have a tinker board R2.0 and the latest version of Tinker OS. I have tried with two Adafruit libraries: Adafruit_DHT and adafruit-circuitpython-dht. With the first package, which I think is the simplest and has worked on my raspberry, I get the following error: raise RuntimeError('Error accessing GPIO. Make sure program is run as root with sudo!') RuntimeError: Error accessing GPIO. Make sure program is run as root with sudo! I have tried to run the program from the terminal as root with sudo but the same problem still appears. I have tried to measure with a DS18B20, but the libraries I find are not compatible with the tinker board either. I also tried with a MCP9600, which works with I2C, but it doesn't work either. When I search for the address with i2cdetect -y 1 it only recognizes the MCP the first time. If I use i2cdetect -y 1 again, it does not appear anymore. I have to disconnect and reconnect the device for i2cdetect -y 1 to detect it. I don't care which of the three methods to use to measure temperature. I would like to know if anyone has managed to use any of these three methods. I have tried with a Raspberry Pi 3B the same libraries and had no problems. I'm a bit desperate with the tinker board 😖 Thanks a lot
  8. Hi, I am using a Tinker Board Edge R, but the situation should happen on general Tinker Board products, I believe. When I installed VLC, when I play a mp4 file, I will receive the following errors: libGL error: unable to load driver: rockchip_dri.so libGL error: driver pointer missing libGL error: failed to load driver: rockchip libGL error: unable to load driver: rockchip_dri.so libGL error: driver pointer missing libGL error: failed to load driver: rockchip and the video is very laggy, obviously the hardware acceleration was not applied. Not sure if this problem applies to all Rockchip SBC. Thanks Arnold
  9. Hello, Do you know when a library for asus tinker board 2 or 2s will be available for GPIO in python? thank you
  10. Hi. I was trying out a project for my Tinker board and because I ran out of disk space, I decided to remove Python2 from the Tinker board. After removing Python, I noticed that I had no Wi-Fi connection to the Internet, but I do have connection via ethernet cable. After noticing all of this, I also noticed that the wlan0 device is no longer found when running the nmcli command, but when I run the lspci command, the system detects the Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter. Having said all the information I know and being new to Linux, I was wondering if there is a solution to this problem. Thanks in advance!!!
×
×
  • Create New...