Search found 1141 matches

by iabdalkader
Thu Mar 26, 2020 8:12 pm
Forum: Technical Discussion
Topic: Something like chkdsk for SdCard in python ?
Replies: 4
Views: 158

Re: Something like chkdsk for SdCard in python ?

Maybe you can find an external compression module/library here:
https://github.com/micropython/micropython-lib

It won't be fast, but it should work.
by iabdalkader
Wed Mar 25, 2020 12:51 pm
Forum: Technical Discussion
Topic: Something like chkdsk for SdCard in python ?
Replies: 4
Views: 158

Re: Something like chkdsk for SdCard in python ?

Hi, we're okay thanks for asking...

No, MicroPython doesn't format or repair the SD card. Only the flash is managed.
by iabdalkader
Sat Mar 21, 2020 3:52 pm
Forum: General Topics
Topic: Multicolor Blob Codes
Replies: 1
Views: 102

Re: Multicolor Blob Codes

by iabdalkader
Sat Mar 21, 2020 3:51 pm
Forum: Technical Discussion
Topic: Record Video on Person Detection?
Replies: 1
Views: 108

Re: Record Video on Person Detection?

You can do both at the same time, but the video FPS will be limited by the person detection FPS. Note with the last TF update, the person detection is slightly faster (still under 10FPS though), I'll make a new release soon.
by iabdalkader
Fri Mar 20, 2020 6:35 am
Forum: Technical Discussion
Topic: UART automatic baud rate detection
Replies: 4
Views: 219

Re: UART automatic baud rate detection

We use MicroPython's drivers, you need to edit MicroPython UART driver.
by iabdalkader
Fri Mar 20, 2020 6:34 am
Forum: Technical Discussion
Topic: Connect another CMOS global shutter matrix to OpenMV H7
Replies: 6
Views: 324

Re: Connect another CMOS global shutter matrix to OpenMV H7

Thank you iabdalkader for ur answer, I have two additional questions: 1. What is a meaning of pins: RSVD1...RSVD5 - for what is each of them responsible for? (base.sh from: open MV Cam H7 Base Schematic) 2. I don't know if ur confirmation is also related to "If I do I would need to make changes in ...
by iabdalkader
Thu Mar 19, 2020 8:20 pm
Forum: General Topics
Topic: some questions: snapshot (). save filename & RTC
Replies: 1
Views: 142

Re: some questions: snapshot (). save filename & RTC

Please search the forums for RTC topics, you'll find many examples on how to initialize and use the RTC, there's even a script saving images with timestamps (and an example in the IDE and docs). However, note you need to set the RTC time on each power up and keep the power connected otherwise the RT...
by iabdalkader
Thu Mar 19, 2020 1:27 pm
Forum: General Topics
Topic: how use python code read video, not use openide
Replies: 7
Views: 914

Re: how use python code read video, not use openide

There seems to be an issue with UVC firmware and macOS I can not get it to connect to camera in opencv. I have confirmed OPENMV4 is working as UVC device as it shows up in system profiler under cameras as OpenMV Virtual Comm Port in FS Mode #2: Model ID: UVC Camera VendorID_4617 ProductID_43985 Uni...
by iabdalkader
Thu Mar 19, 2020 11:36 am
Forum: Technical Discussion
Topic: Connect another CMOS global shutter matrix to OpenMV H7
Replies: 6
Views: 324

Re: Connect another CMOS global shutter matrix to OpenMV H7

Yes it's possible, you can design your own sensor module based on ours. The hardware and software are opensource you can find them on github.
by iabdalkader
Thu Mar 19, 2020 10:59 am
Forum: Technical Discussion
Topic: QUESTION ABOUT FIR(AMG8833) CONNECTION
Replies: 1
Views: 165

Re: QUESTION ABOUT FIR(AMG8833) CONNECTION

Please double check the wiring, make sure gnd and 3.3v are connected, and SCL, SDA are not switched. The AMG was tested recently and the driver code is working.
by iabdalkader
Tue Mar 17, 2020 11:27 am
Forum: Technical Discussion
Topic: Can't use Tensorflow-Lite for OpenMV
Replies: 5
Views: 335

Re: Can't use Tensorflow-Lite for OpenMV

This just means that your model uses an operator that's not support by TF lite port for microcontrollers. You need to replace that operator, see the list of supported ops here: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/micro/kernels/all_ops_resolver.cc#L21 Please keep in m...
by iabdalkader
Mon Mar 16, 2020 8:47 pm
Forum: Technical Discussion
Topic: Memory Error, out of fast Frame Buffer Stack - H7
Replies: 7
Views: 550

Re: Memory Error, out of fast Frame Buffer Stack - H7

Hi, the mobilenet example loads the network to memory and only works on the H7-Plus (with external SDRAM).
by iabdalkader
Sun Mar 15, 2020 4:42 pm
Forum: Technical Discussion
Topic: Draw 3d cube on apriltags
Replies: 5
Views: 1982

Re: Draw 3d cube on apriltags

Hi, we have some matrix / linear algebra modules built-in if you'd like to use them instead (should simplify your code a bit) here's the doc https://github.com/jalawson/ulinalg

When you're done, if you don't mind please share the final script, and I'll add this to the examples.
by iabdalkader
Sun Mar 15, 2020 11:34 am
Forum: Technical Discussion
Topic: found a BUG of OpenMV4Plus
Replies: 1
Views: 277

Re: found a BUG of OpenMV4Plus

The latest IDE and bootloader support erasing SPI flash.
by iabdalkader
Sun Mar 15, 2020 10:04 am
Forum: Technical Discussion
Topic: Improper SPI levels on WIFI-Shield
Replies: 3
Views: 458

Re: Improper SPI levels on WIFI-Shield

Yes but if you reset the camera, the pins will be floating. If you would like to add a function to disable the pull-ups go ahead and send a PR to github.
by iabdalkader
Fri Mar 13, 2020 10:38 am
Forum: Technical Discussion
Topic: Smoked it
Replies: 5
Views: 500

Re: Smoked it

PAM2305AABADJ
by iabdalkader
Fri Mar 13, 2020 7:04 am
Forum: Technical Discussion
Topic: Improper SPI levels on WIFI-Shield
Replies: 3
Views: 458

Re: Improper SPI levels on WIFI-Shield

The internal pull-ups should be left enabled so SPI pins are not floating when the cam is in reset or low-power, or before SPI is initialized.
by iabdalkader
Thu Mar 12, 2020 1:51 pm
Forum: Project Discussion
Topic: Some questions regarding power distribution & serial communication
Replies: 2
Views: 446

Re: Some questions regarding power distribution & serial communication

1) We will be using the Pan & Tilt shield to control two servos. Our question is: if we supply this shield using a (unregulated) 8 or 12-volt battery, would it power the OpenMV cam without having to add additional wiring or connections? And, can we somehow power the Arduino Nano aswell, using any o...
by iabdalkader
Thu Mar 12, 2020 6:39 am
Forum: Project Discussion
Topic: Some questions about the vision inspection project
Replies: 3
Views: 588

Re: Some questions about the vision inspection project

Hi, you could use find_blobs and the threshold editor to find the color the rectangle.
by iabdalkader
Wed Mar 11, 2020 2:41 pm
Forum: Technical Discussion
Topic: Pan/Tilt strange behavior
Replies: 4
Views: 523

Re: Pan/Tilt strange behavior

No I meant infinite loop, you said when the program ends, the soft reset happens if there's nothing blocking the script and it runs to completion.
by iabdalkader
Tue Mar 10, 2020 7:07 pm
Forum: Project Discussion
Topic: Is it possible to make a Light Spectrometer with OpenMV?
Replies: 1
Views: 381

Re: Is it possible to make a Light Spectrometer with OpenMV?

It should be possible, but it's not going to be easy, you'll need to implement that software.
by iabdalkader
Tue Mar 10, 2020 10:37 am
Forum: General Topics
Topic: frame buffer
Replies: 3
Views: 703

Re: frame buffer

Hi, please see the image_drawing example.
by iabdalkader
Mon Mar 09, 2020 5:39 pm
Forum: Technical Discussion
Topic: Can pan/tilt be blocking?
Replies: 5
Views: 529

Re: Can pan/tilt be blocking?

Why not ?
by iabdalkader
Mon Mar 09, 2020 2:57 pm
Forum: Technical Discussion
Topic: Can pan/tilt be blocking?
Replies: 5
Views: 529

Re: Can pan/tilt be blocking?

Just add sleep(2000) after the command.
by iabdalkader
Mon Mar 09, 2020 2:56 pm
Forum: Technical Discussion
Topic: Pan/Tilt strange behavior
Replies: 4
Views: 523

Re: Pan/Tilt strange behavior

If there's nothing to block the cam at the end of the script, the cam will soft-reset some peripherals including servos, timers etc.. Just add a while (True): sleep(1000) at the end if you want to maintain that position.
by iabdalkader
Mon Mar 09, 2020 12:54 pm
Forum: Project Discussion
Topic: Connect OpenMV with Arduino- Send data Of Qr code to Arduino
Replies: 1
Views: 406

Re: Connect OpenMV with Arduino- Send data Of Qr code to Arduino

Hi, please see the Arduino examples in the IDE, and yes you can upload the data directly if you use the WiFi shield (or ESP).
by iabdalkader
Fri Mar 06, 2020 6:24 am
Forum: Technical Discussion
Topic: OPENMV4 uasyncio Support
Replies: 3
Views: 867

Re: OPENMV4 uasyncio Support

Hi, sorry for the delay I thought I replied to this... The deque is enabled if you build from source, otherwise it will be available in the next release.
by iabdalkader
Fri Mar 06, 2020 5:57 am
Forum: Technical Discussion
Topic: Timestamp filenames
Replies: 25
Views: 1527

Re: Timestamp filenames

Setting the time with the IDE is possible but it still won't help with the issue of maintaining the time....It's just much easier if you use NTP (with our WiFi shield or ESP) or use an external I2C RTC. I found cheaper alternatives on ebay ($0.5-$1.5 range) ex: https://www.ebay.com/itm/2PCS-I2C-RTC-...
by iabdalkader
Thu Mar 05, 2020 11:35 am
Forum: Technical Discussion
Topic: find_blobs returns boundry boxes within boundry boxes
Replies: 5
Views: 1013

Re: find_blobs returns boundry boxes within boundry boxes

GL-ITC wrote: Also is there a way to force synchronisation when communicating over usb_vcp?
No you'll have to implement that somehow. When you attach the image I'll run the same blob detection and drawing code and see if this issue can be reproduced.
by iabdalkader
Thu Mar 05, 2020 11:24 am
Forum: General Topics
Topic: New H7 Plus and AprilTags
Replies: 4
Views: 545

Re: New H7 Plus and AprilTags

Yes there's an external 32MB SDRAM, so it can process much larger images.
by iabdalkader
Thu Mar 05, 2020 11:19 am
Forum: Technical Discussion
Topic: Threshold list in image.get_statistics and find_blobs
Replies: 5
Views: 493

Re: Threshold list in image.get_statistics and find_blobs

Actually the returned blob will have pixels outside the threshold (it's just a rectangle containing that area), so you need to pass the threshold list again to get_stats, here's a simple test that fails: stats = img.get_statistics(thresholds=threshold_list, roi=blob.rect()) stats2 = img.get_statisti...
by iabdalkader
Thu Mar 05, 2020 11:04 am
Forum: Technical Discussion
Topic: Threshold list in image.get_statistics and find_blobs
Replies: 5
Views: 493

Re: Threshold list in image.get_statistics and find_blobs

Because it's a required arg, it must be passed again to get_statistics, but I see your point, maybe it should be optional.

EDIT: It's not actually a required arg, you should be able to just ignore it.
by iabdalkader
Thu Mar 05, 2020 10:22 am
Forum: Technical Discussion
Topic: Threshold list in image.get_statistics and find_blobs
Replies: 5
Views: 493

Re: Threshold list in image.get_statistics and find_blobs

As an example if I am only looking for 1 color tuple of (120, 255) why do I need to supply this again to the get_statistics function, shouldn't it just take the average of everything within blob.rect() as its already gone through a color threshold test in the find_blobs function. These are two sepa...
by iabdalkader
Thu Mar 05, 2020 10:12 am
Forum: General Topics
Topic: openMV H7 Plus
Replies: 1
Views: 421

Re: openMV H7 Plus

Is there any update on when the new H7 plus will be available, on the website it still says 1 of march or sooner. Is it expected in the near future or has this corona virus delayed the production? Yes it did delay everything, according to the last update I have the PCBs should be delivered by March...
by iabdalkader
Wed Mar 04, 2020 2:31 pm
Forum: Technical Discussion
Topic: Timestamp filenames
Replies: 25
Views: 1527

Re: Timestamp filenames

Can you double check the main.py script ? sometimes it gets corrupted, just cat /mnt/disk/main.py
by iabdalkader
Wed Mar 04, 2020 1:39 pm
Forum: Technical Discussion
Topic: Timestamp filenames
Replies: 25
Views: 1527

Re: Timestamp filenames

You may need to be in a specific group to access the serial port, maybe try it again with sudo ? Note the VCP example hasn't been tested on a RPI before, and I don't have one to test it, but it's known to work on PC for sure. The host side script is meant to be run with Python2 (explains the encodin...
by iabdalkader
Tue Mar 03, 2020 4:28 pm
Forum: Technical Discussion
Topic: Timestamp filenames
Replies: 25
Views: 1527

Re: Timestamp filenames

Maybe I wasn't specific enough. I cannot make the connection run...not even the simpler version of just send the "OK" and read it on python, could you help me? This isn't specific either, do you get an error a timeout or what happens ? Can you test the unmodified example that comes with the IDE and...
by iabdalkader
Tue Mar 03, 2020 2:35 pm
Forum: Technical Discussion
Topic: Timestamp filenames
Replies: 25
Views: 1527

Re: Timestamp filenames

Yes, basically just block until the datetime is received, then run the main loop.
by iabdalkader
Tue Mar 03, 2020 10:58 am
Forum: Technical Discussion
Topic: Timestamp filenames
Replies: 25
Views: 1527

Re: Timestamp filenames

The RTC absence is bummer. Again just to be clear, the STM has an RTC built-in, the board just doesn't have a backup battery to keep it running, so after you set the datetime once you need to keep the power/battery connected so it doesn't get reset. If that's not an option, you need to set the date...
by iabdalkader
Tue Mar 03, 2020 6:36 am
Forum: Technical Discussion
Topic: find_blobs returns boundry boxes within boundry boxes
Replies: 5
Views: 1013

Re: find_blobs returns boundry boxes within boundry boxes

Can you attach the code and the image without the blob detection, I can run it on the image offline and see what's happening.
by iabdalkader
Tue Mar 03, 2020 6:35 am
Forum: Technical Discussion
Topic: Timestamp filenames
Replies: 25
Views: 1527

Re: Timestamp filenames

1) When I try to do this, I get `OSError: The path name format is invalid`. I think I was able to track this error down to the files containing ":" on their names. Is this the actual reason? Yes, some characters are reserved. http://elm-chan.org/fsw/ff/doc/filename.html 2) I notice the datetime is ...
by iabdalkader
Sun Mar 01, 2020 5:36 am
Forum: Technical Discussion
Topic: openmv4 firmware version3.6 support deque
Replies: 1
Views: 541

Re: openmv4 firmware version3.6 support deque

No it will be available in the next release.
by iabdalkader
Sat Feb 29, 2020 12:01 pm
Forum: General Topics
Topic: OSError: The path name format is invalid
Replies: 2
Views: 479

Re: OSError: The path name format is invalid

The network file needs to be on the camera, copy the file to the root folder of the storage (or SD card) and use this path:
"/fnt-chars74k.network"
by iabdalkader
Wed Feb 26, 2020 11:42 am
Forum: Technical Discussion
Topic: Callback functions
Replies: 3
Views: 680

Re: Callback functions

Yhea did that now. Can you explain why you can't do anything memory allocating in the timer callback? Thanks for the answer It had something to do with MicroPython's garbage collector being locked in IRQs I think, maybe it's not thread-safe, can't really remember the exact issue but it's not allowed.
by iabdalkader
Tue Feb 25, 2020 2:30 pm
Forum: General Topics
Topic: OpenMV Rover Error (Timer(4) is reserved)
Replies: 4
Views: 984

Re: OpenMV Rover Error (Timer(4) is reserved)

Polonal wrote:
Tue Feb 25, 2020 1:35 pm
Found the thread with the fix and tried to delete the post shortly after posting, but seems like it didn't get deleted. Thank you for your reply!
Hi, don't use the firmware attached here on the forums, please update the IDE and it will have the latest stable release.
by iabdalkader
Tue Feb 25, 2020 11:13 am
Forum: Technical Discussion
Topic: Memory Allocation Failed Error
Replies: 5
Views: 649

Re: Memory Allocation Failed Error

Yes you can subtract a background image, see the examples.
by iabdalkader
Tue Feb 25, 2020 10:20 am
Forum: Technical Discussion
Topic: Memory Allocation Failed Error
Replies: 5
Views: 649

Re: Memory Allocation Failed Error

susamsokagi wrote: I am trying to get amount of non-black pixels
You can use find_blobs and search for a black (or white) blob, then call blob.pixels() to get the number of pixels in that blob, you may also want to check the get_statistics function.

Go to advanced search