Search found 1214 matches

by iabdalkader
Sun Sep 13, 2020 7:32 pm
Forum: Technical Discussion
Topic: Problem with file system
Replies: 7
Views: 120

Re: Problem with file system

I understand it's a random issue, but I can't begin to debug and fix it unless I can see it happen. Unless you can provide a small example that shows this issue (even if it happens randomly) I can't do anything about it.
by iabdalkader
Sun Sep 13, 2020 8:15 am
Forum: Technical Discussion
Topic: Problem with file system
Replies: 7
Views: 120

Re: Problem with file system

I can't reproduce this issue, this is what I tested: import sys import os import math import json current_work_directory = os.getcwd() def uprint(*text): with open(current_work_directory + "Soccer/log/output.txt", 'a+') as f: print(*text, file = f) print(*text ) for i in range(0, 10): uprint("test")...
by iabdalkader
Sat Sep 12, 2020 7:03 pm
Forum: Technical Discussion
Topic: Problem with file system
Replies: 7
Views: 120

Re: Problem with file system

I'll test it, but you need to add a "/" I think getcwd returns the basename without a trailing slash (which also means the replace(\, /) is not needed).
by iabdalkader
Sat Sep 12, 2020 3:31 pm
Forum: Technical Discussion
Topic: Problem with file system
Replies: 7
Views: 120

Re: Problem with file system

What is current_work_directory ?

If it's a global variable it should be declared with global, I need to see the full code and how this is called.
by iabdalkader
Fri Sep 11, 2020 3:46 pm
Forum: Technical Discussion
Topic: tflite model not fitting in OpenMV Cam H7
Replies: 5
Views: 100

Re: tflite model not fitting in OpenMV Cam H7

That 400KBs some of it is also used for the framebuffer, you should try to lower the resolution or make the model smaller. We'll fix the docs to explain this better.
by iabdalkader
Thu Sep 10, 2020 10:08 pm
Forum: General Topics
Topic: EIO error on poll.poll() when registered for usocket
Replies: 1
Views: 50

Re: EIO error on poll.poll() when registered for usocket

Hi,

poll/select is not implemented for the WINC1500, you can use sockets in non-blocking mode instead, see:

viewtopic.php?f=6&t=1269&p=7832&hilit=poll#p7839
by iabdalkader
Tue Sep 08, 2020 6:46 pm
Forum: Technical Discussion
Topic: Camera Module Extension Cable Not Working
Replies: 4
Views: 65

Re: Camera Module Extension Cable Not Working

Please attach the pics to your email.
by iabdalkader
Tue Sep 08, 2020 6:33 pm
Forum: Technical Discussion
Topic: Camera Module Extension Cable Not Working
Replies: 4
Views: 65

Re: Camera Module Extension Cable Not Working

Sure, please send us an email [email protected]
by iabdalkader
Tue Sep 08, 2020 6:15 pm
Forum: Technical Discussion
Topic: Maximum size of tflite model on Cam H7
Replies: 3
Views: 66

Re: Maximum size of tflite model on Cam H7

Can't run models from SD they have to be loaded in RAM, and yes you can use STM32Cube.AI but you have to build the firmware from source, see the docs here:

https://github.com/openmv/openmv/blob/m ... /README.md
by iabdalkader
Wed Aug 26, 2020 7:35 am
Forum: General Topics
Topic: limit space in drive
Replies: 3
Views: 94

Re: limit space in drive

Use an SD card and you have to use a smaller model, not all the memory is available for loading networks.
by iabdalkader
Wed Aug 26, 2020 7:33 am
Forum: General Topics
Topic: MAKING DIY OPENMV CAM
Replies: 5
Views: 147

Re: MAKING DIY OPENMV CAM

If you use the same pins and use ov2640 (or any other sensor that we have a driver for) then it should work with the default firmware.
by iabdalkader
Tue Aug 25, 2020 9:14 pm
Forum: Technical Discussion
Topic: Software (bitbang) SPI Setup Error
Replies: 9
Views: 154

Re: Software (bitbang) SPI Setup Error

Please post the script.
by iabdalkader
Fri Aug 21, 2020 8:58 am
Forum: Technical Discussion
Topic: Recording audio?
Replies: 4
Views: 86

Re: Recording audio?

Hi, I've seen a few attempts on the forums to play WAV files, but no recording, and yes we have two I2C interfaces on the pin header.
by iabdalkader
Tue Aug 18, 2020 8:00 am
Forum: Technical Discussion
Topic: FLIR Thermal Camera Person Detection
Replies: 3
Views: 10444

Re: FLIR Thermal Camera Person Detection

Yes, I think it was this dataset: http://portal.uc3m.es/portal/page/portal/dpto_ing_sistemas_automatica/investigacion/IntelligentSystemsLab/research/InfraredDataset https://e-archivo.uc3m.es/handle/10016/17370 Note, you need to downsample the 14 bit images to 8 bit before training and testing, and u...
by iabdalkader
Mon Aug 17, 2020 3:06 pm
Forum: Technical Discussion
Topic: Low duty cycle to save power: examples?
Replies: 3
Views: 110

Re: Low duty cycle to save power: examples?

If you think there's a bug please report it on github, also if you want to add your script to the examples please send a pull request. I have made a few observations conscerning the residual standby current - in principle it should be possible for this to be about 60uA, with the chips used, but it i...
by iabdalkader
Mon Aug 17, 2020 2:03 pm
Forum: General Topics
Topic: OpenMV H7 and HC-SR04
Replies: 4
Views: 98

Re: OpenMV H7 and HC-SR04

Do you connect it to an external 5V output ? The camera doesn't have a 5V output, also if the sensor's I/O is 5V it won't work.
by iabdalkader
Thu Aug 13, 2020 8:59 am
Forum: Technical Discussion
Topic: Low duty cycle to save power: examples?
Replies: 3
Views: 110

Re: Low duty cycle to save power: examples?

see the low power examples in the menu.
by iabdalkader
Wed Aug 12, 2020 3:47 pm
Forum: Technical Discussion
Topic: Loading (but not decompressing) jpegs
Replies: 6
Views: 112

Re: Loading (but not decompressing) jpegs

Never mind, I already fixed it, you should be able to load jpg images in the next release. So this should work:

Code: Select all

img = image.Image("/test.jpg", copy_to_fb=True)
by iabdalkader
Wed Aug 12, 2020 2:40 pm
Forum: Technical Discussion
Topic: Loading (but not decompressing) jpegs
Replies: 6
Views: 112

Re: Loading (but not decompressing) jpegs

Stub wrote:
Wed Aug 12, 2020 2:05 pm
Hi,

Thanks, as I say I only need to be able to load the compressed image again, not actually decompress it. So even a way of loading a file onto the frame buffer would suffice.
I see, that's a lot easier to implement. Okay please open an issue on github and I'll get right on it.
by iabdalkader
Wed Aug 12, 2020 1:37 pm
Forum: Technical Discussion
Topic: port openMV to custom board
Replies: 2
Views: 93

Re: port openMV to custom board

The IDE is open-source, it doesn't mean it's free. You can still use it without a license key, if don't mind the windows that show up, buying a key however supports the project.
by iabdalkader
Wed Aug 12, 2020 1:33 pm
Forum: Technical Discussion
Topic: Loading (but not decompressing) jpegs
Replies: 6
Views: 112

Re: Loading (but not decompressing) jpegs

It's already on the todo list, it's just a lot of work to get JPEG decoding working, but I'll see what I can do.
by iabdalkader
Sat Aug 08, 2020 11:18 am
Forum: General Topics
Topic: WINC TCP socket accept not working, browsers show conn refusal
Replies: 6
Views: 140

Re: WINC TCP socket accept not working, browsers show conn refusal

Nope, the RTSP server example didn't help. Running it in station mode works, VLC can connect to it. Running it in AP mode, I get the error: VLC could not connect to "0.0.0.0:554". Your input can't be opened: VLC is unable to open the MRL 'rtsp://0.0.0.0:554/'. Check the log for details. mjpeg_strea...
by iabdalkader
Fri Aug 07, 2020 12:51 pm
Forum: General Topics
Topic: WINC soft AP causes crash
Replies: 3
Views: 104

Re: WINC soft AP causes crash

Fixed.
by iabdalkader
Fri Aug 07, 2020 12:12 pm
Forum: General Topics
Topic: WINC soft AP causes crash
Replies: 3
Views: 104

Re: WINC soft AP causes crash

Hi, it's seems to be a bug when using an open network (no security). I'll look into it, in the meantime if you switch to WEP it works: import time, network, usocket SSID ='OPENMV_AP' # Network SSID KEY ='1234567890' # Network key (must be 10 chars) # Init wlan module in AP mode. wlan = network.WINC(...
by iabdalkader
Mon Jul 27, 2020 7:02 am
Forum: Technical Discussion
Topic: power supply of the h7
Replies: 1
Views: 73

Re: power supply of the h7

There shouldn't be any problems, the power supply will use the input VIN.
by iabdalkader
Sat Jul 25, 2020 9:42 pm
Forum: General Topics
Topic: Getting temperature data of a rectangle instead of a blob
Replies: 8
Views: 165

Re: Getting temperature data of a rectangle instead of a blob

After research, I found that drawing before computing messes with the source image. Well noted, this gave me a way better accurate reading! Now what is the correlation between the min temperature and the min threshold and the max temperature to the max threshold? The min and max temperatures are sc...
by iabdalkader
Sat Jul 25, 2020 5:46 pm
Forum: General Topics
Topic: Getting temperature data of a rectangle instead of a blob
Replies: 8
Views: 165

Re: Getting temperature data of a rectangle instead of a blob

One comment on your code, you should move the drawing after get_statistics.
by iabdalkader
Fri Jul 24, 2020 3:44 pm
Forum: Technical Discussion
Topic: Unable to connect to your OpenMV cams normal bootloader
Replies: 2
Views: 88

Re: Unable to connect to your OpenMV cams normal bootloader

This does not work well on a virtual machine because the IDE resets the camera to run the bootloader, at which point it gets disconnected from the VM.. I think with virtual box there was a way to assign the device to the VM, you should try that if it's possible.
by iabdalkader
Tue Jul 21, 2020 2:05 pm
Forum: General Topics
Topic: Source Code Access
Replies: 1
Views: 146

Re: Source Code Access

The source code is all on github: https://github.com/openmv/openmv you can learn by looking at how things are done.
by iabdalkader
Tue Jul 21, 2020 10:21 am
Forum: Technical Discussion
Topic: New camera is broken
Replies: 7
Views: 149

Re: New camera is broken

Hi, try the latest 3.6.7
by iabdalkader
Mon Jul 20, 2020 9:03 pm
Forum: Technical Discussion
Topic: "MemoryError: Out of fast Frame Buffer Stack Memory!" after M7 update
Replies: 7
Views: 159

Re: "MemoryError: Out of fast Frame Buffer Stack Memory!" after M7 update

Yes, you can download any older release from here:

https://github.com/openmv/openmv/releases

BTW we fixed the issue and there should be an udpate.
by iabdalkader
Mon Jul 20, 2020 5:15 pm
Forum: Technical Discussion
Topic: "MemoryError: Out of fast Frame Buffer Stack Memory!" after M7 update
Replies: 7
Views: 159

Re: "MemoryError: Out of fast Frame Buffer Stack Memory!" after M7 update

I already fixed it, we just need to test this and then I'll make another patch release today.
by iabdalkader
Mon Jul 20, 2020 12:37 pm
Forum: Technical Discussion
Topic: error when i try mqtt connection
Replies: 4
Views: 109

Re: error when i try mqtt connection

DNS is not able to resolve the host.
by iabdalkader
Mon Jul 06, 2020 9:13 am
Forum: General Topics
Topic: Run with or without USB connected
Replies: 1
Views: 110

Re: Run with or without USB connected

Not much processing happens, the text get copied to a buffer if USB is connected, so you can leave the print statements. If you want check if USB is connected try:

Code: Select all

import pyb
usb = pyb.USB_VCP() 
if (usb.isconnected()):
   print("d")
by iabdalkader
Fri Jul 03, 2020 11:55 am
Forum: General Topics
Topic: How can I write a websocket server program on openmv?
Replies: 3
Views: 188

Re: How can I write a websocket server program on openmv?

kwagyeman wrote:
Fri Jul 03, 2020 11:50 am
Wait, what do you mean? We support TCP and we sockets are just data over TCP.
The MicroPython module/code that does that depends on lwip, that's why it's not enabled.
by iabdalkader
Fri Jul 03, 2020 10:27 am
Forum: General Topics
Topic: How can I write a websocket server program on openmv?
Replies: 3
Views: 188

Re: How can I write a websocket server program on openmv?

Hi, there's no builtin support for websockets because it requires LWIP which we can't use with WINC.
by iabdalkader
Thu Jul 02, 2020 9:16 am
Forum: Technical Discussion
Topic: Creating new module for OpenMV
Replies: 3
Views: 207

Re: Creating new module for OpenMV

No, it needs to be added to builtin modules in mpconfigport.h.
by iabdalkader
Sun Jun 14, 2020 11:50 am
Forum: General Topics
Topic: WIFI:Video transmission and command return
Replies: 5
Views: 390

Re: WIFI:Video transmission and command return

We have an RPC library that lets you connect to and control the cam, have a look here: https://github.com/openmv/openmv/blob/m ... /README.md
by iabdalkader
Sun Jun 14, 2020 8:50 am
Forum: General Topics
Topic: WIFI:Video transmission and command return
Replies: 5
Views: 390

Re: WIFI:Video transmission and command return

Why do you have to post this 3 times in all topics ?
by iabdalkader
Wed Jun 10, 2020 8:05 pm
Forum: General Topics
Topic: Global shutter module lines artefact?
Replies: 4
Views: 383

Re: Global shutter module lines artefact?

Your code is fine and you have the latest fw.. Try removing the sensor and attaching it again with the screws so it's making full contact.. Please note you should Not remove/attach the sensor with the cam plugged in, otherwise it could short something.
by iabdalkader
Wed Jun 10, 2020 8:03 pm
Forum: General Topics
Topic: Having issue with WiFi connectivity
Replies: 5
Views: 360

Re: Having issue with WiFi connectivity

The firmware file should be on SD card, please undo the changes to the path read the comments in the script.
by iabdalkader
Sun Jun 07, 2020 8:40 am
Forum: General Topics
Topic: Github sponsors as way to help fund
Replies: 4
Views: 2209

Re: Github sponsors as way to help fund

Hello,

You can sponsor us now on github:

https://github.com/sponsors/openmv
by iabdalkader
Fri Jun 05, 2020 8:08 am
Forum: General Topics
Topic: main.py
Replies: 1
Views: 220

Re: main.py

If main.py is not found the code waits for input from the user/IDE. If the FS is created on flash it creates the default main.py (blinking LED). The main.py is not created if SD is used. That's the default code if you want to change something you have to rebuild from source.
by iabdalkader
Mon Jun 01, 2020 8:27 pm
Forum: Technical Discussion
Topic: Using socket.setsockopt
Replies: 1
Views: 188

Re: Using socket.setsockopt

These are the possible values for the WINC1500. Note these constants are not exported to Python code so you have to use numeric values if you really have to use them: // Socket option. // Used with the @ref setsockopt function #define SOL_SOCKET 1 // SSL Socket option level. // Used with the @ref se...
by iabdalkader
Tue May 26, 2020 1:38 pm
Forum: Technical Discussion
Topic: Error when building the firmware with CubeAI
Replies: 6
Views: 533

Re: Error when building the firmware with CubeAI

Please report a bug on guithub and I'll fix it.
by iabdalkader
Fri May 22, 2020 1:03 pm
Forum: General Topics
Topic: SD card not recognized
Replies: 7
Views: 629

Re: SD card not recognized

For example, the docs are crystal clear that nothing above 32GB The docs are wrong/outdated, higher capacity SD cards have been supported for years. but the response is...fuzzy I use Samsung EVO/U3 32GB and 64GB and they both work fine. My reply can't be more specific. EDIT: I see you want me to te...
by iabdalkader
Fri May 22, 2020 8:31 am
Forum: Technical Discussion
Topic: H7 image "blown out" by IR LEDs
Replies: 5
Views: 460

Re: H7 image "blown out" by IR LEDs

I appreciate you theorizing as the problem, but are you saying I have discovered this issue a year after the H7's release and there is next to no discussion about it on the boards? I can't be the first person to run up against this. How do you deal with this exact same issue on your own H7s, of whi...
by iabdalkader
Fri May 22, 2020 7:50 am
Forum: General Topics
Topic: SD card not recognized
Replies: 7
Views: 629

Re: SD card not recognized

Do you know that class 10 cards work or do you recommend a different class perhaps? What class 32GB cards do you have at your disposal for testing?
Class 10 is not the fastest, UHS/U3 is the fastest. I use Samsung EVO/U3 32GB and 64GB and they both work fine. Try formatting the card with exFAT.

Go to advanced search