Search found 624 matches

by iabdalkader
Sat Dec 08, 2018 7:38 pm
Forum: General Topics
Topic: maintaing same brightness throughout video
Replies: 5
Views: 254

Re: maintaing same brightness throughout video

what will the polarizer filter do? As I understand it, it attenuates a certain wavelength so you can use it in direct sunlight, it's like sun glasses. See the comparison photos in the product description: https://openmv.io/collections/products/products/polarizing-filter I don't think that's what yo...
by iabdalkader
Sat Dec 08, 2018 7:32 pm
Forum: Technical Discussion
Topic: UART again
Replies: 5
Views: 78

Re: UART again

Oh I see the problem, you're not calling the function:

Code: Select all

takepic=UART.readchar
Should be:

Code: Select all

takepic=UART.readchar()
Also UART is the module not the object you created, so it should be

Code: Select all

takepic=uart.readchar()
by iabdalkader
Sat Dec 08, 2018 7:28 pm
Forum: General Topics
Topic: Train a neural network
Replies: 1
Views: 69

Re: Train a neural network

Hi Patrick 1) Do you think it's possible create a NN on Windows? Yes, if you can setup Caffe on Windows you should be able to produce the same results. However I would just use Ubuntu (things just work on Linux) 2) Should I create the .network file before on a Jupiter notebook and then load it into ...
by iabdalkader
Sat Dec 08, 2018 7:15 pm
Forum: Technical Discussion
Topic: UART again
Replies: 5
Views: 78

Re: UART again

Hi, since you're using P0 you should use UART1 (using whatever baudrate you're using on the PIC):

Code: Select all

uart = UART(1, 19200, timeout_char=1000)
by iabdalkader
Sat Dec 08, 2018 7:13 pm
Forum: Technical Discussion
Topic: OSError: Could not find the file for module nn
Replies: 3
Views: 221

Re: OSError: Could not find the file for module nn

Hello, I am new to openmv. I am interested to test nn with openmv. The first thing I try to do is download the smile.network, but I can not copy this network into the disk. When I connect the openmv cam to the windows pc, it is showing "0 Byte free of 79.0K byte". Regards, Baozhu Hi, use an SD card.
by iabdalkader
Fri Dec 07, 2018 3:04 pm
Forum: Technical Discussion
Topic: using microprocessors instead of microcontrollers
Replies: 3
Views: 110

Re: using microprocessors instead of microcontrollers

Is there a reason you used the STM32 micro controller instead of a microprocessor with image processing DSP libraries such as TMS320 C55. The microprocessors do not seem to be more expensive than the micro controller and can also do the computations such as JPEG compression much faster. Mainly desi...
by iabdalkader
Wed Dec 05, 2018 6:44 pm
Forum: Technical Discussion
Topic: low power waiting for uart rx
Replies: 4
Views: 177

Re: low power waiting for uart rx

Actually with the clock disabled UART won't generate the interrupt (I think this should work on the H7 with LPUART). You could either use an external GPIO as EXTI (a different pin other than UART pins), or use pyb.wfi(). pyb.wfi will be interrupted by UART or SYSTICK.
by iabdalkader
Tue Dec 04, 2018 3:49 pm
Forum: Technical Discussion
Topic: low power waiting for uart rx
Replies: 4
Views: 177

Re: low power waiting for uart rx

It should wake up on any interrupt (including RXNE) you don't need to configure UART pins as EXTI. Please remove that and all the comments and RTC code and try it again. Also I don't understand this part: "i dont get the full uart rx if i stop the cpu." ?
by iabdalkader
Tue Dec 04, 2018 2:48 pm
Forum: Technical Discussion
Topic: F7 consumption optimization
Replies: 6
Views: 191

Re: F7 consumption optimization

MicroPython's PLL settings are not used and system_stm32.c is not used either. We use our own system file and PLL dividers, you can find out which files are used from the Makefile(s). Note you need to make sure the sensor frequency is 9MHz (or change the sensor's PLL settings to match XCLK). I tried...
by iabdalkader
Tue Dec 04, 2018 1:29 pm
Forum: Technical Discussion
Topic: Standby consumption
Replies: 16
Views: 1008

Re: Standby consumption

When STM32 enter deep sleep. Most of IO changed to high impedance state. So OV7725 PWDN pin cannot retain high level(shutdown state). So external pull up resistor is needed. Not internal pull down. I think there's a mode that retains I/O state, anyway we could revise it for the next production run....
by iabdalkader
Tue Dec 04, 2018 6:58 am
Forum: Technical Discussion
Topic: Standby consumption
Replies: 16
Views: 1008

Re: Standby consumption

I found that there is no pull resistor on OV7725 PWDN pin. I see 500uA by adding 4.7K Ohm pull up on OV7725 PWDN ( PCB pattern is covered. so need to scratch off printed ink ) If i replace LDO regulator to high efficient SMPS. I see 10uA with RTC on by calling machine.deepsleep() What a great MCU S...
by iabdalkader
Mon Dec 03, 2018 1:24 pm
Forum: Technical Discussion
Topic: Accessing/translating to lower level C/C++ code
Replies: 3
Views: 184

Re: Accessing/translating to lower level C/C++ code

I would like to power the openMV module via external power from a battery source (3.6V) if possible. Looking at the schematic there are 2 diodes at D1 for reverse polarity protection. Is there a way to bypass the USB power line VBUS in order to use an external power source into Vin? Those are ORing...
by iabdalkader
Fri Nov 30, 2018 12:30 pm
Forum: Technical Discussion
Topic: Building Application for reading Video and Serial data
Replies: 1
Views: 151

Re: Building Application for reading Video and Serial data

Hi Can someone assist me for building an application/GUI to read video streaming and serial Data from OpenMV cam? Hi, you can start with this Python module: https://github.com/openmv/openmv/blob/master/tools/pyopenmv.py It implements the camera's debugging protocol, same used by the IDE. Here's an ...
by iabdalkader
Fri Nov 30, 2018 12:22 pm
Forum: Technical Discussion
Topic: implement own Haar-Cascade
Replies: 60
Views: 21306

Re: implement own Haar-Cascade

Hi, please see the replies to this thread. The script runs on Linux, and only supports simple Haar cascades (the old format) and the output (*.cascade) needs to be copied to flash or SD.
by iabdalkader
Fri Nov 30, 2018 10:50 am
Forum: Technical Discussion
Topic: Use of callback function in sleep mode
Replies: 6
Views: 353

Re: Use of callback function in sleep mode

No, it should work. Try git pull, and make clean and build again. Make sure you upload the firmware you build. It should be version 3.3.0
by iabdalkader
Fri Nov 30, 2018 10:47 am
Forum: Technical Discussion
Topic: Accessing/translating to lower level C/C++ code
Replies: 3
Views: 184

Re: Accessing/translating to lower level C/C++ code

Hi, So after we have programmed a new project and verified the functionality of the camera in micropython in the openMV IDE, Is there any way that we can access the lower level C/C++ code for further optimisation/tunability? Thanks! Adriel Yes, the project is open-source: https://github.com/openmv/...
by iabdalkader
Fri Nov 30, 2018 10:43 am
Forum: General Topics
Topic: maintaing same brightness throughout video
Replies: 5
Views: 254

Re: maintaing same brightness throughout video

By disabling all these,can i get the same amount of light even when the openmv moves?I explain my scenario. I want to detect lemon fruit in the plant in outdoor by making the scanning using movement of openmv cam on a slide. Can disabling helps me out? Yes, but you should let them run for a while t...
by iabdalkader
Thu Nov 29, 2018 11:12 am
Forum: General Topics
Topic: polarizing filter
Replies: 2
Views: 117

Re: polarizing filter

Like this
web-new-filter-mount_grande.jpg
Note make sure to remove the protective film on the front and back of the polarizing filter
by iabdalkader
Thu Nov 29, 2018 11:08 am
Forum: General Topics
Topic: maintaing same brightness throughout video
Replies: 5
Views: 254

Re: maintaing same brightness throughout video

krishnakumar77777 wrote:
Thu Nov 29, 2018 4:46 am
Hi,
How can i keep the brightness of video same throughout the video where the openmv cam will be moved in all x,y and z direction seperately in outdoor?
Disable auto-functions ?

http://docs.openmv.io/search.html?q=set ... ea=default
by iabdalkader
Wed Nov 28, 2018 7:16 am
Forum: Technical Discussion
Topic: F7 consumption optimization
Replies: 6
Views: 191

Re: F7 consumption optimization

Hello, I try to optimize the consumption, and i would like to start the camera at 120Mhz. Before compiling, i changed in /openmv/src/cmsis/src/st/system_stm32fxxx.c #elif defined (STM32F765xx) // 120MHz/48Mhz in place of 216MHz/48MHz : flash_latency = FLASH_LATENCY_3; // FLASH_LATENCY_7; RCC_OscIni...
by iabdalkader
Mon Nov 26, 2018 6:24 pm
Forum: Technical Discussion
Topic: Bayer output for OV7725
Replies: 9
Views: 280

Re: Bayer output for OV7725

1. So do you work with Bayer RAW or processed Bayer RAW? Processed Bayer 2. Is de-bayer the same as demosiac'ing? Yes https://en.wikipedia.org/wiki/Demosaicing 3. How many FPS would be possible if we did this is the F7 processor, if the final goal is to store a jpeg image in the SD card? Debayer, c...
by iabdalkader
Sat Nov 24, 2018 5:35 pm
Forum: General Topics
Topic: Graphic Interface
Replies: 1
Views: 212

Re: Graphic Interface

Hi everybody, I would like to know if there's a way to have some buttons on the screen to command some actions. As example, an on/off button to command an LED. I know that in Python exists libraries like "tkinter" to do such a things, but I don't know how to import them in the openMV... Is it possi...
by iabdalkader
Sat Nov 24, 2018 9:49 am
Forum: General Topics
Topic: Openmv in UVC mode
Replies: 3
Views: 193

Re: Openmv in UVC mode

Hi i am using openmv camera in uvc mode in linux it is detected as /dev/video1 working well in all software tools like vlc and guvcview but in Windows in uvc mode(flashed uvc.bin) i am not able to get the video in openmv and vlc. is openmv uvc firmware is not supported in windows?? can you please p...
by iabdalkader
Fri Nov 23, 2018 3:34 pm
Forum: Technical Discussion
Topic: use of time.avg() in a function
Replies: 1
Views: 230

Re: use of time.avg() in a function

You can't call any functions that allocate memory in an interrupt handler. Try something like this: import time, pyb def test(arg): global ticks_passed, last_tick, extint, switch switch = True extint.disable() ticks_passed = time.ticks() - last_tick last_tick = time.ticks() switch = False last_tick ...
by iabdalkader
Thu Nov 22, 2018 5:19 pm
Forum: Technical Discussion
Topic: USB HID mode
Replies: 18
Views: 1241

Re: USB HID mode

Hello Thank you for such grate device. Tested HID mode for windows 7 and it`s working with both mouse and keyboard but at a time only one HID device showing How can we use HID mouse AND HID keyboard at same time :?: ? Thanks I don't think that's possible, mouse and keyboard have different USB descr...
by iabdalkader
Thu Nov 22, 2018 4:59 pm
Forum: Technical Discussion
Topic: Can I use opencv to read real-time images of openmv?
Replies: 5
Views: 298

Re: Can I use opencv to read real-time images of openmv?

Thank you for your reply.So I can't use opencv to read openmv now. It will be easier to do that when the camera supports UVC, but you can test now using this Python module: https://github.com/openmv/openmv/blob/master/tools/pyopenmv.py Here's an example host script using the module: https://github....
by iabdalkader
Thu Nov 22, 2018 3:38 pm
Forum: Technical Discussion
Topic: Use of callback function in sleep mode
Replies: 6
Views: 353

Re: Use of callback function in sleep mode

Hi, there's a bug in our RTC interrupt handler, the fix will be in the next release (unless you want to build from source). Also note your code has a few issues, it won't work either way. This works fine: import pyb, machine, time red_led = pyb.LED(1) red_led.off() def test(arg): red_led.toggle() rt...
by iabdalkader
Tue Nov 20, 2018 10:47 am
Forum: Technical Discussion
Topic: Increase uart sending time between bytes of an image
Replies: 2
Views: 1192

Re: Increase uart sending time between bytes of an image

chrisPyres66 wrote: I have any idea to get byte after byte from an image object.

Code: Select all

    for i in range(img.size()):
        print(img[i])
You could also try to increase the timeout_char:

http://docs.openmv.io/openmvcam/tutoria ... light=uart
by iabdalkader
Fri Nov 16, 2018 4:52 pm
Forum: Technical Discussion
Topic: openMV Firmware Build Instructions
Replies: 12
Views: 1948

Re: openMV Firmware Build Instructions

Hello completely noob here. I dont have any idea what "recursive" means etc. etc. I also havent tried compiling as per the procedure in the wiki yet, will try it later. My dumb questions are (if it is not top secret to answer): 1. How do you go on developing the openmv firmware? What IDE are you us...
by iabdalkader
Tue Nov 13, 2018 2:15 pm
Forum: Project Discussion
Topic: maximum framerate of video recording
Replies: 3
Views: 1279

Re: maximum framerate of video recording

Hi,

If you use a fast SD card, you can record QVGA/RGB at 20FPS on the F7 and 40FPS on the H7
by iabdalkader
Tue Nov 06, 2018 12:24 pm
Forum: Technical Discussion
Topic: subscribe function for mqtt is not working
Replies: 4
Views: 894

Re: subscribe function for mqtt is not working

Hi, I can't see the error, can you attach your script and the PC side code ? I need to be able to repeat this here.
by iabdalkader
Tue Nov 06, 2018 6:55 am
Forum: Technical Discussion
Topic: Cannot detect the uSD
Replies: 3
Views: 1026

Re: Cannot detect the uSD

Hi there, I am trying to update the firmware of my wifi shield but it requires the bin to be on the sd card. Formatted FAT32 and is a 32GB card. Running sys.path yield empty. Running the example cannot find the file. What is the mystery ? What do you mean by running sys.path ? Can you access the SD...
by iabdalkader
Mon Nov 05, 2018 7:08 pm
Forum: Technical Discussion
Topic: usage
Replies: 9
Views: 1484

Re: usage

pcls1026 wrote:
Mon Nov 05, 2018 6:21 pm
What about power? do I need Caps or Resistors?
No, just provide 5V to VIN.
by iabdalkader
Mon Nov 05, 2018 2:35 pm
Forum: General Topics
Topic: Convert .xml to .cascade
Replies: 7
Views: 1112

Re: Convert .xml to .cascade

Julo7139 wrote:
Mon Nov 05, 2018 8:26 am
Hello,

can we use this file (cascade_convert.py) with python 3.6?

Do you have another way to convert the xml file?

Thank
Julien
I can only confirm it works with Python2, and no it's the only tool we have to convert cascades, sorry.
by iabdalkader
Mon Nov 05, 2018 2:33 pm
Forum: Project Discussion
Topic: Three lights present
Replies: 9
Views: 1376

Re: Three lights present

Thank you. Are there certain parts of that script that I will have to alter to run a specified micropython script on the openmv cam? Hi, this script is a Python module that implements the camera's debugging protocol. It's somewhat advanced for what you want to do. If you just want to run a script o...
by iabdalkader
Mon Nov 05, 2018 2:26 pm
Forum: Technical Discussion
Topic: usage
Replies: 9
Views: 1484

Re: usage

Hi, TX-> RX and RX-> TX as usual. And yes, UART is read using polling.
by iabdalkader
Mon Nov 05, 2018 2:22 pm
Forum: Technical Discussion
Topic: Micropython on M7 and H7
Replies: 2
Views: 978

Re: Micropython on M7 and H7

I started upstream support for the H7, and send patches whenever I have time. Full MicroPython support for the H7 is up to Micropython's maintainers.
by iabdalkader
Sat Nov 03, 2018 9:05 pm
Forum: Technical Discussion
Topic: subscribe function for mqtt is not working
Replies: 4
Views: 894

Re: subscribe function for mqtt is not working

Hi, this minimal example works: # MQTT Subscribe Example. # This example shows how to use the MQTT library to subscribe to a topic. # # 1) Copy the mqtt.py library to OpenMV storage. # 2) Install the mosquitto client on PC and run the following command: # mosquitto_pub -h test.mosquitto.org -t "open...
by iabdalkader
Fri Nov 02, 2018 7:12 pm
Forum: Technical Discussion
Topic: subscribe function for mqtt is not working
Replies: 4
Views: 894

Re: subscribe function for mqtt is not working

Will test it and get back to you.
by iabdalkader
Fri Nov 02, 2018 3:44 pm
Forum: Technical Discussion
Topic: Memory allocation error - comments!?!
Replies: 21
Views: 2530

Re: Memory allocation error - comments!?!

type11969 wrote:
Fri Nov 02, 2018 2:28 pm
Is there a way to reliably test which line is causing the allocation failure?
The exception should tell you the line number.
by iabdalkader
Fri Nov 02, 2018 7:40 am
Forum: Project Discussion
Topic: maestro polulu
Replies: 5
Views: 1234

Re: maestro polulu

icnxt wrote:
Thu Nov 01, 2018 11:59 pm
Hi there it only has TTL tx rx as serial input and output and txin daisy chain input
It should work with the camera.
by iabdalkader
Thu Nov 01, 2018 10:02 pm
Forum: Technical Discussion
Topic: Memory allocation error - comments!?!
Replies: 21
Views: 2530

Re: Memory allocation error - comments!?!

Okay, so I am taking a series of small images - color analysis on defined portions of an image. Should I run a del img command? Or simply run a gc.collect() at the end of the function where I analyze the image? Apologies if this is a basic question, still trying to navigate python. Appreciate the h...
by iabdalkader
Thu Nov 01, 2018 6:15 pm
Forum: Technical Discussion
Topic: Using IO pins to PWM IR Leds
Replies: 2
Views: 610

Re: Using IO pins to PWM IR Leds

Hi, your code will work, but the LEDs will be on a long time before the frame actually starts. Try this instead, this will sync the LED pin to the frame start interrupt: import sensor, image from pyb import Pin sensor.reset() sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QVGA) sens...
by iabdalkader
Thu Nov 01, 2018 6:10 pm
Forum: Technical Discussion
Topic: Memory allocation error - comments!?!
Replies: 21
Views: 2530

Re: Memory allocation error - comments!?!

Please bear with me, I am only somewhat okay at programming in C. So I am used to a precompiler - comments take no space, etc. So, to confirm, the SD card will not help with memory allocation errors, correct? No it will not, the script is loaded in memory, parsed, executed etc... You should avoid t...
by iabdalkader
Thu Nov 01, 2018 5:02 pm
Forum: Project Discussion
Topic: maestro polulu
Replies: 5
Views: 1234

Re: maestro polulu

icnxt wrote:
Thu Nov 01, 2018 1:15 pm
Hi there could u please tell me if i can use openmv with maestro polulu servo controller and how would i connect it up many thanks in atvance
Does it have I2C, UART or SPI ? If so, you can use it with an openmv camera.
by iabdalkader
Thu Nov 01, 2018 5:00 pm
Forum: Technical Discussion
Topic: Memory allocation error - comments!?!
Replies: 21
Views: 2530

Re: Memory allocation error - comments!?!

I'm not familiar with del_object and gc_collect, so no, I'm not doing this. My program is pretty simple, its just a bit long, honestly I'm surprised I'm having a memory allocation problem. Why would it work if I save direct to the camera, but not work when using the IDE? Saving the script to cam st...
by iabdalkader
Wed Oct 31, 2018 7:32 pm
Forum: Technical Discussion
Topic: Find displacement on M4
Replies: 1
Views: 594

Re: Find displacement on M4

According to: http://forums.openmv.io/viewtopic.php?f=6&t=944 you have dropped support for M4, which in my opinion is slightly disappointing, We didn't, we still support the M4 in every new firmware release. However we can only fix bugs for the M4, we can't add any new feature because we ran out of...
by iabdalkader
Wed Oct 31, 2018 11:14 am
Forum: Technical Discussion
Topic: Running program without the IDE - upload, reset, no-go
Replies: 14
Views: 1320

Re: Running program without the IDE - upload, reset, no-go

Hi, this script is running fine standalone (in main.py). Seems to be an issue with the IDE not flushing the writes before removing the disk. Please make sure the main.py is actually written (not an empty file) and manually remove/umount the disk until this issue is fixed. EDIT: You can use UART1 or ...
by iabdalkader
Tue Oct 30, 2018 12:09 pm
Forum: Technical Discussion
Topic: Running program without the IDE - upload, reset, no-go
Replies: 14
Views: 1320

Re: Running program without the IDE - upload, reset, no-go

I'll look into it, we're about to do a new firmware release anyway, if there's a bug it will be fixed very soon.

Go to advanced search