Git Product home page Git Product logo

arducam_usb_camera_shield's People

Contributors

arducam avatar ehong-tl avatar glddiv avatar john-ardu avatar ryanmklee avatar tpho100 avatar uctronics avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arducam_usb_camera_shield's Issues

AR0134 USBtest image size changing

How can I show an image of a size different than 1280x964 ?, when I enter another value no image is shown, and if I select the option to force display, the image shown is corrupt.
image

Arducam demo on Window with Python3

Hello,
I try the python3 arducam streaming demo on windows X64
First:
to be able to import ArducamSDK you have to rename ArducamSDK.cp36-win_amd64.pyd to ArducamSDK.pyd
Second:
It seems (verified with dumpbin) that ArducamSDK.cp36-win_amd64.pyd try to load python36.dll and doesnt not work wit python 3.7
It would be convenient to have also the 3.7 version
Best regards
Dominique Galland

Problems with significantly reduced capture frames.

The problem is that the capture frame drops considerably when multiple usb ports are used.
Usage environment is win7 64bit, visual c ++, Camera moude of MT9V034, 10 usb port for other purposes.
When using the MT9V034 camera module in this environment, the capture frame rate drops significantly.
If I remove 10 different usb ports, the frame rate is normal.
Is there any way I can get a normal frame rate even if I use several different USBs?
I would appreciate your feedback.

How can I adjust exposure time?

I would really like to adjust exposure time using the USB Test program that you have here. I am using the MT9F002 module. Is there any way that I can achieve this?

"stuck" framerate, image inversion, how to reset

Hi Lee, first time commenting here. I have the Arducam MT9V034_VGA & USB sheild. Please help! Somewhere in the 2 days that I have had this the image became inverted. I don't know how to reset the sensor. Also the FPS never changes: I can set register 11 to 3 or 0x20 or 0x40 and its always reading back a framerate of 37 - advertised of course at 60.

Unable to Open MT9V034

Hi, I followed the instruction in README.md and installed libusb and python2.7, but when I try to run the script it keeps telling me that "open device failed". Do you know what could be the issue?

Thanks

crash reading OV5642_JPEG_QSXGA.cfg

Loading OV5642_JPEG_QSXGA.cfg or OV5642_YUV_5M.cfg in USBTest.exe will make the program crash.
Message shown:
afbeelding

Identical behaviour in Win7 and Win10.
Behaviour is same if USB shield connected or is not connected.
I can load any other cfg file without crash of program.
What's going wrong?
Any help is appreciated.

Capture Procedure in External Trigger Mode

Hi,

I have an issue with the external trigger mode on an AR0134 connected to the Arducam USB 2.0 camera shield, which is connected to a raspberry pi. the camera works great in auto (video) mode both on the raspberry pi python demo and on the Windows GUI. But I want a very simple procedure to take place to capture an image when externally triggered.

External trigger pin goes high.
Capture image (controlled exposure time)
Read image in (to be done with what I will, like save, analyze,etc)
wait for next trigger.

I know setting R0x301a to 0x1982 puts it in trigger mode
setting R0x3012, R0x3016 sets exposure time
but I dont see any documentation or examples of how to just grab a picture when the device is triggered? Do I need to manually check the value of the trigger pin, and when it is high, beginCapture, Capture, endCapture myself? Or does it automatically do this when in trigger mode, then I simply have to retrieve it with the usual read image instruction set?

I can't get anything to work as soon as I deviate from the auto mode script. Every time I try to capture a single image triggered by an external trigger (Raspberry pi GPIO going high), I get a USB data len error and don't get a picture.

Seems like it should be very easy to implement this, as many camera systems rely on the fact that they should take a picture when externally triggered, but I've scoured all the User Guides and Developer Guides for the AR0134 I can find, including a previous Issue for trigger mode for the AR0134, which simply tells me how to set the registers, nothing about the capture sequence.

Any help would be appreciated, I can share my modified code if that is helpful.

UPDATE: I now have Trigger mode working and use the FLASH output pin to see that it is indeed exposing the pixels for the correct exposure time, but still, imageAvailable is reading 0, im not sure how to get that image that was just taken onto my processor.

AR0134 no image

I'm having trouble getting the program to output live image.

sudo python sudo python AR0134.py

returns


device open success!
transfer task create success!

and nothing else. How do I get live feed from camera?

Questions about "Bad frame received" error

I would like to know about the following cases when using the usbtest program.
When I click the play button, only "Bad frame received" appears in the message box and nothing appears in the image window. And when I check the Force Display button, the image appears in the image window.
But the image seems to be unstable.I want to know why this is happening and how to solve it.

MT9F002 capture failing on Windows and Raspberry pi

On Windows 10 64:
I installed the driver properly, and opened the camera demo.
Inside the demo I can choose the MT9F002, and auto-open the camera successfully. It reports USB camera init success!. However, when I try to hit the play button, all I get is:

[22:39:56]USB transfer data length error
[22:39:55]USB transfer data length error
[22:39:55]USB transfer data length error
[22:39:54]USB transfer data length error
[22:39:54]USB transfer data length error
[22:39:54]USB transfer data length error

Hitting shot with the with the camera open does nothing.


On the Raspberry pi:
After getting all of the dependencies detailed in the README, and running the line:
> sudo python MT9F002.py --type jpg --name sample_image

This gets printed to the terminal (including the leading space in line 3)

device open success!
capture fail!
 is not available
data length is not enough!
is not available
data length is not enough!
device close success!

Regarding MT9V034

Hey Lee,
I have started to work on MT9V034 and so far it is going well in window's. I can control the camera in Trigger mode and auto-trigger mode,can change the exposure timing etc..
but the problem is everything is working good in windows but when i run the python script in Raspberry pi
i can't see anything all i can

"device open success!
transfer task create success!
capture fail!
device close success!"

but when i use AR0134 i am getting a display with 3 to 4 fps but i can't get anything in MT9V034

Windows Driver (Code 48) Error

code48

I've just got the AR0134 (global shutter) along with a USB2 ARDUCAM module and I've been having serious issues with it all day.

  1. I've tried setting it up with windows, manually installing the unsigned driver (already disabled the security on reboot) and its gives me a "Code 48" Windows blocks the driver completely kind of error.
    NOTE: I have disabled the signed drivers, that is NOT the problem

  2. I've installed Ubuntu on a VMbox and tried accessing the camera through python and cpp but the device is still not recognized

  3. Lastly, I've plugged in my raspberry pi 3 and set everything up successfully. But I get to the point where the python code runs successfully, then immediately fails. (closed because of high data)

Ultimately, the driver needs to be updated I think. But is there any way to get this in live preview for a test I'm running, I would greatly appreciate it.

Thanks

what file is source?

Hi Lee, what file/library do I find ArduCam_ fxs like ArduCam_capture, ArduCam_scan, etc:?

C:\marble_win_development\x64_MT9V034_vid\Debug/../src/MT9V034_demo.cpp:41: undefined reference toArduCam_beginCapture'
C:\marble_win_development\x64_MT9V034_vid\Debug/../src/MT9V034_demo.cpp:45: undefined reference to ArduCam_capture' C:\marble_win_development\x64_MT9V034_vid\Debug/../src/MT9V034_demo.cpp:49: undefined reference to ArduCam_endCapture'
src\MT9V034_demo.o: In function fnDisplay_Thread(void*)': C:\marble_win_development\x64_MT9V034_vid\Debug/../src/MT9V034_demo.cpp:64: undefined reference to ArduCam_available'
C:\marble_win_development\x64_MT9V034_vid\Debug/../src/MT9V034_demo.cpp:68: undefined reference to ArduCam_read' C:\marble_win_development\x64_MT9V034_vid\Debug/../src/MT9V034_demo.cpp:89: undefined reference to cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
C:\marble_win_development\x64_MT9V034_vid\Debug/../src/MT9V034_demo.cpp:94: undefined reference to ArduCam_del' src\MT9V034_demo.o: In function main':
C:\marble_win_development\x64_MT9V034_vid\Debug/../src/MT9V034_demo.cpp:118: undefined reference to ArduCam_scan' C:\marble_win_development\x64_MT9V034_vid\Debug/../src/MT9V034_demo.cpp:131: undefined reference to ArduCam_autoopen'
C:\marble_win_development\x64_MT9V034_vid\Debug/../src/MT9V034_demo.cpp:135: undefined reference to ArduCam_writeReg_8_8' C:\marble_win_development\x64_MT9V034_vid\Debug/../src/MT9V034_demo.cpp:136: undefined reference to ArduCam_writeSensorReg'
C:\marble_win_development\x64_MT9V034_vid\Debug/../src/MT9V034_demo.cpp:137: undefined reference to ArduCam_writeSensorReg' C:\marble_win_development\x64_MT9V034_vid\Debug/../src/MT9V034_demo.cpp:139: undefined reference to ArduCam_writeSensorReg'
C:\marble_win_development\x64_MT9V034_vid\Debug/../src/MT9V034_demo.cpp:191: undefined reference to `ArduCam_close'
collect2.exe: error: ld returned 1 exit status

`

Thank you

How to open second camera when two are connected?

I have connected two Arducams to my raspberry pi. I was to open 1st camera, close it, then open the second camera. ( NOT two open at the same time). How can I access the second camera?
I have tried using the ArduCam_scan() method, but it returns an array [1, 2, 0, 0, 0 ...].
These values cannot be used with the ArduCam_open method to open the second camera, both of them fail.
ArduCam_open( useHandle, &useCfg, 0) opens the first camera.

ArduCamConfigLib.dll requires mfc100d.dll and msvcr100d.dll

I would like to request for the ArduCamConfigLib.dll to be compile in Release version instead of Debug version. As the debug version will require the users to have Visual Studio 2010 installed in the PC in order for the Windows/USBTest software to run.

Bad frame received - MT9N001

USBTest on Win10 x64 with MT9N001 gives me "Bad frame received". When check Force Display screen field is changing to black but I still get "Bad Frame received" errors. I can see this is a common issue with many cameras. Pls find config file attached. Any ideas ?
MT9N001_9MP.cfg.txt

Raspberry Pi + MT9J001

Hi,

I seem to be having an issue with the Raspberry Pi sometimes. Running the .py works well sometimes, but it also sometimes fails.

Here is my terminal output.

pi@raspberrypi:/Documents/ArduCAM_USB_Camera_Shield/RaspberryPi/Python $ sudo python MT9J001.py
device open success!
transfer task create success!
capture fail!
device close success!
Segmentation fault
pi@raspberrypi:
/Documents/ArduCAM_USB_Camera_Shield/RaspberryPi/Python $ sudo python MT9J001.py
device open success!
transfer task create success!
capture fail!
is not available
data length is not enough!
is not available
device close success!
data length is not enough!
Segmentation fault

Documentation for Python ArducamSDK library

I cannot find documentation for the Python library. The best I have found is the C header file, which tells me method names. I can dir(ArduCamSDK) and get similar info and constants. But, real documentation would help a lot.

I've looked in this repo and on the Arducam site. Sorry if I missed the obvious. But, where are docs?

ArduCam_open failed

I received 'ArduCAM_USB_Camera_Shiled' and 'AR0134 RGB camera module'.

On my ubuntu 16.04(64bit), I built 'ArduCAM_USB_Camera_Shield/Linux_x86/Cpp/ArduCAM_Linux_SDK_OpenCV_AR0134_Demo/AR0134_demo.cpp'.

And I ran and got error message 'Device found = 1 ArduCam_open failed'.

AR0134_demo.cpp, Line 144
u32Value = ArduCam_autoopen( useHandle, &useCfg );

This function doesn't work.

What is a problem?
Is it possible that camera module is broken?
Or, ArduCam_autoopen has bug...?

How can I check??

Camera shield USB data exchange format

Hi Lee, first of all big thanks to you for supporting the code base in this repository. Right now the SDK itself is closed source, which prohibits people from porting the software to other platforms or programming languages (as was mentioned in #13).
If open sourcing Arducam SDK code is not an option, can you please give us at least some info on how data is parsed by the SDK? What I'm particularly curious about is how much data must be transferred from the shield using USB bulk transfers to get 1 frame and what is its structure, i.e. how raw pixel data can be extracted from it? Thanks.

Using SDK with Python 3.3 using ctypes

Hi,
As there is no Python 3.x .so library available, I'm trying to connect using ctypes module.
Scan function works ok. Please tell me what's wrong in code snippet below as AutoOpen and Open both return '1' instead of '0' whatever I try.

code:

ctypes import *
import os

print (os.getcwd())

ArduSDK = CDLL ("/home/welcome/ArduCam/Python/libArduCamLib.so")

Scan = ArduSDK.ArduCam_scan  
Scan.restype = c_ushort

USBId = (c_ulong*100)()
VID = c_ushort(0x52cb)

res = Scan(byref(USBId), VID)
print ("result: ", res,"USB Id: ", USBId[0], USBId[1], "VID: ", VID)


ArduOpen = ArduSDK.ArduCam_open
ArduOpen.restype = c_ushort

AutoOpen = ArduSDK.ArduCam_autoopen
AutoOpen.restype = c_ushort

class CFG(Structure):
    _fields_ = [
        ("u32CameraType" , c_ulong),
        ("u32Width" , c_ulong),
        ("u32Height" , c_ulong),
        ("u32UsbVersion" , c_ulong),
        ("u8PixelBytes" , c_ulong),
        ("u16Vid" , c_ulong),
        ("u32Size" , c_ulong),
        ("u32SensorShipAddr" , c_ulong),
        ("u8PixelBits" , c_ubyte),
        ("emI2cMode" , c_uint),
        ("emImageFmtMode" , c_uint)
        ]

camhandle = c_ulong(0)

cfg = CFG()
cfg.u32Width = 2592
cfg.u32Height = 1944
cfg.u32UsbVersion = 1
cfg.u8PixelBytes = 1
cfg.u16Vid = 0x52cb
cfg.u8PixelBits = 8
cfg.u32SensorShipAddr = 0x78
cfg.emI2cMode = 2
cfg.emImageFmtMode = 2

res = ArduOpen(byref(camhandle), byref(cfg), USBId[1])
#res = AutoOpen(byref(camhandle), byref(cfg))
print ("result AutoOpen: ", res,' camhandle: ',camhandle)

output when run:

runfile('/home/welcome/ArduCam/Python/forumexample.py',` wdir='/home/welcome/ArduCam/Python')
/home/welcome/ArduCam/Python
result:  1 USB Id:  1 0 VID:  c_ushort(21195)
result AutoOpen:  1  camhandle:  c_ulong(93967354460208)

Thanks on beforehand for your help.

Question about multithreading

Hello,
In theory, multithreading has two interests
For intensive CPU applications balance computing between processors, this is not really the case here
Allow threads to concurrently execute IO operations even if they are blocking

All demos create two threads
The first thread loops on:
ArduCam_captureImage (handle);
Launch an image capture task.
It seems that this call is not blocking and therefore we add without limit capture tasks?

The second thread loops on:
ArduCam_availableImage (handle)
Check if the image is available for reading FIFO
ArduCam_readImage (handle, frameData)
Read a picture data from image FIFO
These calls are not blocking and the consequence is that we consume 100% CPU time in this polling
It would be better if the avalaibleImage call or the readImage call were blocking

I'm trying now to read a single image

If without creating a thread I try the following sequence
...
ArduCam_captureImage (handle);
while (ArduCam_availableImage (handle) <= 0)
;
ArduCam_readImage (handle, frameData);
the program loop without being able to read an image I do not understand why?
...

Finally, how to capture and read a single image?
There seems to be a setMode and getSingleFrame functions but not documented
Thanks for your attention
Dominique Galland

Flip image in AR0134 module

I'm trying to mirror image through the sensor registration values, according to the register reference of the AR0134 I have to modify bits 14 and 15 of register 0x3040, how can I access those bits? What number or character I should use for?

Device open fail

I have followed the instruction's on Read.md and followed the steps in linux but when i run the script MT9V034.py , i get a message like -

"data length is not enough!
is not availiable
data length is not enough!
is not availiable
device close success!
data length is not enough!
Segmentation fault (core dumped)
!"

Is there anyway to solve the issue.
Thank you!

How do I capture images from two camera modules at the same time?

I applied the UsbTest source to capture and display images from one MT9V034 camera module. But I tried coding and testing to get images from two modules at the same time, but I could not get proper images.
I have created two capture threads and two reading threads, and I have coded to obtain and display images independently of these two threads.
The problem here is that if you run two capture threads at the same time, the value of USB_CAMERA_FRAME_INDEX_ERROR is often returned from the ArduCam_captureImage function, and the capture frame rate is not full frame and the frame rate is significantly lower than when using only one module. Also, the data obtained from the ArduCam_readImage (m_cUsbCameraHd [uiCam], m_ArduCamOutData [uiCam]) function of each read thread was read only the image data of the specific module.
I have made a lot of effort but I do not know why this is happening.

Can not we get images from two camera modules by applying functions provided by usbtest program?
If possible, I would like to know how to capture from two camera modules simultaneously using the above functions in the window program.
I would appreciate your advice

Snapshot unavailable for AR0134

Hey guys,

Congrats on this amazing project, getting image sensors available for everyone!

This issue reports to the fact that, as following the steps on the /ArduCAM_USB_Camera_Shield/Linux_x86/Python/README.md file, the snapshot function is not working.

When I type:

sudo python AR0134.py --type jpg --name sample_image

I get the following error:

usage: AR0134.py [-h] [-i TYPE]
AR0134.py: error: unrecognized arguments: --name sample_image

I tried to work it around by adding the name argument as ap.add_argument("--name",required = False, help = "name to the image file") and modifying the show(bufferData) to:

def show(bufferData):
	global downFlag,saveFlag,saveNum
	image = Image.frombuffer("L",(Width,Height),bufferData)
	img = np.array(image)
	height,width = img.shape[:2]
	img2 = cv2.cvtColor(img,COLOR_BYTE2RGB)
        saveNum += 1
	
	if args["name"] != "":
                name = args["name"]   
        else:
                name = str(saveNum)
	if "bmp" == args["type"]:        
                name += ".bmp"
        if "png" == args["type"]:        
                name += ".png"
        if "jpg" == args["type"]:        
                name += ".jpg"
	cv2.imwrite(name,img2)	

That way, it actually saves the snapshot but the program and logging to the terminal.

Final question is: how can I get a simple snapshot, NOT in video mode but as an actual picture?

PS: It would be a major upgrade if you guys could provide more documentation and maybe the source code for the SDK

Windows Usb Demo Crashing

Hi,

I am having an issue with the USB_Demo.exe crashing whenever auto-open is pressed. The application immediately stops responding (first image attached).

I have tried to run on both windows 7 and 10 with the exact same result. I have installed the redistributable that came with the demo in the release folder. I also have an issue with installing the drivers on both OS. The error on windows 7 is shown in the second image.

I would like to get this working as I am an engineer working for a OEM that wants to use this board in a product that we are developing. We need the demo to work to see if this package will be suitable for our application.

Thank you.

arducam crash message

image

ROS integration

Hi !
I would like to know: is there any already-existing ros integration library or package for the arducam shield?
If yes, do you have any link?
Thanks!

OV5642 cfg nor json file seem to work

Trying to run Python3 version of USB master for windows and Linux_x86. Both show same issue.
Output from Windows version:

color mode 0
Serial: ÿÿÿÿ-ÿÿÿÿ-ÿÿÿÿ
Capture began, rtn_val =  0
Error capture image, rtn_val =  65317
Error capture image, rtn_val =  65314
Error capture image, rtn_val =  65314
Error capture image, rtn_val =  65314

Also new Windows USBTest program shows same issue. Old Windows USB Test program works flawlessly though. Can you please indicate what I'm doing wrong?

SDK for ARM64 for c/c++

Hi,
We are looking a way to connect ARDUCAM USB SHIELD to our development board with arm64 cpu.
We would use C/C++ language to process capturing video frame.
Is it possible to share SDK (.so + header) with us?
thank you

Visible banding in images from MT9J001

Hi,

I've just purchased a MT9J001 (monochrome) camera and the ArduCAM USB Camera Shield and in general it is working, however the images I'm receiving from the camera have a couple of issues.
Firstly the images (especially in low light conditions) contain significant horizontal structure, and secondly the images also exhibit banding in the light level (the wall next to the light should be brighter than its surrounding but appears darker)
image

Thanks,
Rob

Image loading error in XGA and 720P and 1080P rate in YUV mode of OV5642 Camera module

Thank you for your response about the OV5642 camera module. I'm sorry, but there is one more question. The image loading of the QSXGA mode you sent was available on usbtest.exe. But I wonder if the frame rate is about 3 fps.
I also got the images of 15fps in QVGA and VGA rate in YUV mode.
However, we could not get images in XGA and 720P and 1080P rate.
I would be grateful if you could help me find out what's wrong with my XGA cfg file below. For reference, when I checked vsync, hsync, pclk, data [7..0] with an oscilloscope, I think there is no abnormality on the waveform. However, the image is not loaded on usbtest.exe and the message is "Bad frame received".
I have additional questions.

  1. What is the maximum frame rate from arducam usb camera shild(USB2.0) on VGA and QSXGA?
  2. I wonder if you can make a cfg file about the number of pixels (XGA, 720P, 1080P) in the above-
    mentioned YUV mode.
    Thanks again and look forward to your reply.

;/
; ----- camera parameter -----
; [camera parameter] Camera parameter set for USB2.0 & USB3.0 mode
;
; -- Keyname description:
; CFG_MODE = set the config mode for camera: 0 -> User define(UI)
; 1 -> This config File
; TYPE = set the name of the camera module
; SIZE = set the width and height of the image generated by camera
; BIT_WIDTH = set the bit width of the image generated by camera
; FORMAT = set the format of the image generated by camera:
; | 0 -> RAW | 1 -> RGB565 | 2 -> YUV422 | 3 -> JPG | 4 -> MONO | 5 -> ST_RAW | 6 -> ST_MONO |
; | -- 0 -> RG | -- 0 -> RGB | -- 0 -> YUYV | | | -- 0 -> RG | |
; | -- 1 -> GR | -- 1 -> BGR | -- 1 -> YVYU | | | -- 1 -> GR | |
; | -- 2 -> GB | | -- 2 -> UYVY | | | -- 2 -> GB | |
; | -- 3 -> BG | | -- 3 -> VYUY | | | -- 3 -> BG | |
; I2C_MODE = set the bit width of the address and data of I2C communication:
; 0 -> 8 bit address & 8 bit value
; 1 -> 8 bit address & 16 bit value
; 2 -> 16 bit address & 8 bit value
; 3 -> 16 bit address & 16 bit value
; I2C_ADDR = set the I2C address for register config of camera
; G_GAIN = set the address for green1_gain register config of camera ( RAW & RGB565 & ST_RAW mode )
; B_GAIN = set the address for blue_gain register config of camera ( RAW & RGB565 & ST_RAW mode )
; R_GAIN = set the address for red_gain register config of camera ( RAW & RGB565 & ST_RAW mode )
; G2_GAIN = set the address for green2_gain register config of camera ( RAW & ST_RAW mode )
; Y_GAIN = set the address for Y_gain register config of camera ( YUV422 mode )
; U_GAIN = set the address for U_gain register config of camera ( YUV422 mode )
; V_GAIN = set the address for V_gain register config of camera ( YUV422 mode )
; GL_GAIN = set the address for global_gain register config of camera
;
; -- Keyname format:
; CFG_MODE = ;
; TYPE =
; SIZE = ,
; BIT_WIDTH =
; FORMAT = [, ]
; I2C_MODE =
; I2C_ADDR =
; G_GAIN = [,]

, ,
; B_GAIN = [,]
, ,
; R_GAIN = [,]
, ,
; G2_GAIN = [,]
, ,
; Y_GAIN = [,]
, ,
; U_GAIN = [,]
, ,
; V_GAIN = [,]
, ,
; GL_GAIN = [,]
, ,
;
; Index value representing certain meanings
; Width of the image generated by camera
; Height of the image generated by camera
; Bit width of the image generated by camera
; I2C address for register config of camera
; Optional address space for this register. Some sensors (mostly SOC's)
; have multiple register pages (see the sensor spec or developers guide)
;
The register address
; Minimale value of certain address
; Maximale value of certain address
; Some form of C-style comments are supported in this .cfg file
;
;/
[camera parameter]
CFG_MODE = 1
TYPE = OV5642
SIZE = 1024, 768
BIT_WIDTH = 8
FORMAT = 2, 2
I2C_MODE = 2
I2C_ADDR = 0x78
;TRANS_LVL = 128

;/
; ----- board parameter -----
;[board parameter] Board parameter set for USB2.0 & USB3.0 mode
;[board parameter][dev2] Board parameter set for USB2.0 mode
;[board parameter][dev3][inf2] Board parameter set for USB3.0 mode and USB2.0 interface
;[board parameter][dev3][inf3] Board parameter set for USB3.0 mode and USB3.0 interface
;
; -- Keyname description:
; VRCMD = set board parameter by vendor command
;
; -- Keyname format:
; VRCMD = , , , [, [, [, [, ]]]] //
;
; Value representing certain command
; value representing certain meanings
; Index representing certain meanings
; Number of
; Data representing certain meanings
; Some form of C-style comments are supported in this .cfg file
;
;
/
[board parameter]

[board parameter][dev2]
VRCMD = 0xD7, 0x4600, 0x0100, 1, 0x45
VRCMD = 0xF6, 0x0000, 0x0000, 3, 0xCB, 0x00, 0x0C

[board parameter][dev3][inf2]
VRCMD = 0xF3, 0x0000, 0x0000, 0
VRCMD = 0xF9, 0x0000, 0x0000, 0

[board parameter][dev3][inf3]
VRCMD = 0xF3, 0x0000, 0x0000, 0
VRCMD = 0xF9, 0x0000, 0x0000, 0

;/
; ----- register parameter -----
;[register parameter] Register parameter set for USB2.0 & USB3.0 mode
;[register parameter][dev2] Register parameter set for USB2.0 mode
;[register parameter][dev3][inf2] Register parameter set for USB3.0 mode and USB2.0 interface
;[register parameter][dev3][inf3] Register parameter set for USB3.0 mode and USB3.0 interface
;
; -- Keyname description:
; REG = assign a new register value
; DELAY = delay a certain amount of milliseconds before continuing
;
; -- Keyname format:
; REG = [,]

, //
; DELAY =
;
; Optional address space for this register. Some sensors (mostly SOC's)
; have multiple register pages (see the sensor spec or developers guide)
;
the register address
; the new value to assign to the register
; wait for this ammount of milliseconds before continuing
; Some form of C-style comments are supported in this .cfg file
;
;
/
[register parameter]

REG = 0x3103, 0x93
REG = 0x3008, 0x82

DELAY = 100

REG = 0x3017 ,0x7f
REG = 0x3018 ,0xfc
REG = 0x3810 ,0xc2
REG = 0x3615 ,0xf0
REG = 0x3000 ,0x00
REG = 0x3001 ,0x00
REG = 0x3002 ,0x5c
REG = 0x3003 ,0x00
REG = 0x3004 ,0xff
REG = 0x3005 ,0xff
REG = 0x3006 ,0x43
REG = 0x3007 ,0x37
REG = 0x3011 ,0x08
REG = 0x3010 ,0x10
; pclk speed setting start
REG = 0x460c ,0x22
REG = 0x3815 ,0x44
; end
REG = 0x370c ,0xa0
REG = 0x3602 ,0xfc
REG = 0x3612 ,0xff
REG = 0x3634 ,0xc0
REG = 0x3613 ,0x00
REG = 0x3605 ,0x7c
REG = 0x3621 ,0x09
REG = 0x3622 ,0x60
REG = 0x3604 ,0x40
REG = 0x3603 ,0xa7
REG = 0x3603 ,0x27
REG = 0x4000 ,0x21
REG = 0x401d ,0x22
REG = 0x3600 ,0x54
REG = 0x3605 ,0x04
REG = 0x3606 ,0x3f
REG = 0x3c01 ,0x80
REG = 0x5000 ,0x4f
REG = 0x5020 ,0x04
REG = 0x5181 ,0x79
REG = 0x5182 ,0x00
REG = 0x5185 ,0x22
REG = 0x5197 ,0x01
REG = 0x5001 ,0xff
REG = 0x5500 ,0x0a
REG = 0x5504 ,0x00
REG = 0x5505 ,0x7f
REG = 0x5080 ,0x08
REG = 0x300e ,0x18
REG = 0x4610 ,0x00
REG = 0x471d ,0x05
REG = 0x4708 ,0x06
REG = 0x3808 ,0x02
REG = 0x3809 ,0x80
REG = 0x380a ,0x01
REG = 0x380b ,0xe0
REG = 0x380e ,0x07
REG = 0x380f ,0xd0
REG = 0x501f ,0x00
REG = 0x5000 ,0x4f
REG = 0x4300 ,0x30
REG = 0x3503 ,0x07
REG = 0x3501 ,0x73
REG = 0x3502 ,0x80
REG = 0x350b ,0x00
REG = 0x3503 ,0x07
REG = 0x3824 ,0x11
REG = 0x3501 ,0x1e
REG = 0x3502 ,0x80
REG = 0x350b ,0x7f
REG = 0x380c ,0x0c
REG = 0x380d ,0x80
REG = 0x380e ,0x03
REG = 0x380f ,0xE8
REG = 0x3a0d ,0x04
REG = 0x3a0e ,0x03
REG = 0x3818 ,0xc1
REG = 0x3705 ,0xdb
REG = 0x370a ,0x81
REG = 0x3801 ,0x80
REG = 0x3621 ,0x87
REG = 0x3801 ,0x50
REG = 0x3803 ,0x08
REG = 0x3827 ,0x08
REG = 0x3810 ,0x40
REG = 0x3804 ,0x05
REG = 0x3805 ,0x00
REG = 0x5682 ,0x05
REG = 0x5683 ,0x00
REG = 0x3806 ,0x03
REG = 0x3807 ,0xc0
REG = 0x5686 ,0x03
REG = 0x5687 ,0xbc
REG = 0x3a00 ,0x78
REG = 0x3a1a ,0x05
REG = 0x3a13 ,0x30
REG = 0x3a18 ,0x00
REG = 0x3a19 ,0x7c
REG = 0x3a08 ,0x12
REG = 0x3a09 ,0xc0
REG = 0x3a0a ,0x0f
REG = 0x3a0b ,0xa0
REG = 0x350c ,0x07
REG = 0x350d ,0xd0
REG = 0x3500 ,0x00
REG = 0x3501 ,0x00
REG = 0x3502 ,0x00
REG = 0x350a ,0x00
REG = 0x350b ,0x00
REG = 0x3503 ,0x00
REG = 0x528a ,0x02
REG = 0x528b ,0x04
REG = 0x528c ,0x08
REG = 0x528d ,0x08
REG = 0x528e ,0x08
REG = 0x528f ,0x10
REG = 0x5290 ,0x10
REG = 0x5292 ,0x00
REG = 0x5293 ,0x02
REG = 0x5294 ,0x00
REG = 0x5295 ,0x02
REG = 0x5296 ,0x00
REG = 0x5297 ,0x02
REG = 0x5298 ,0x00
REG = 0x5299 ,0x02
REG = 0x529a ,0x00
REG = 0x529b ,0x02
REG = 0x529c ,0x00
REG = 0x529d ,0x02
REG = 0x529e ,0x00
REG = 0x529f ,0x02
REG = 0x3030 ,0x0b
REG = 0x3a02 ,0x00
REG = 0x3a03 ,0x7d
REG = 0x3a04 ,0x00
REG = 0x3a14 ,0x00
REG = 0x3a15 ,0x7d
REG = 0x3a16 ,0x00
REG = 0x3a00 ,0x78
REG = 0x3a08 ,0x09
REG = 0x3a09 ,0x60
REG = 0x3a0a ,0x07
REG = 0x3a0b ,0xd0
REG = 0x3a0d ,0x08
REG = 0x3a0e ,0x06
REG = 0x5193 ,0x70
REG = 0x589b ,0x04
REG = 0x589a ,0xc5
REG = 0x401e ,0x20
REG = 0x4001 ,0x42
REG = 0x401c ,0x04
REG = 0x528a ,0x01
REG = 0x528b ,0x04
REG = 0x528c ,0x08
REG = 0x528d ,0x10
REG = 0x528e ,0x20
REG = 0x528f ,0x28
REG = 0x5290 ,0x30
REG = 0x5292 ,0x00
REG = 0x5293 ,0x01
REG = 0x5294 ,0x00
REG = 0x5295 ,0x04
REG = 0x5296 ,0x00
REG = 0x5297 ,0x08
REG = 0x5298 ,0x00
REG = 0x5299 ,0x10
REG = 0x529a ,0x00
REG = 0x529b ,0x20
REG = 0x529c ,0x00
REG = 0x529d ,0x28
REG = 0x529e ,0x00
REG = 0x529f ,0x30
REG = 0x5282 ,0x00
REG = 0x5300 ,0x00
REG = 0x5301 ,0x20
REG = 0x5302 ,0x00
REG = 0x5303 ,0x7c
REG = 0x530c ,0x00
REG = 0x530d ,0x0c
REG = 0x530e ,0x20
REG = 0x530f ,0x80
REG = 0x5310 ,0x20
REG = 0x5311 ,0x80
REG = 0x5308 ,0x20
REG = 0x5309 ,0x40
REG = 0x5304 ,0x00
REG = 0x5305 ,0x30
REG = 0x5306 ,0x00
REG = 0x5307 ,0x80
REG = 0x5314 ,0x08
REG = 0x5315 ,0x20
REG = 0x5319 ,0x30
REG = 0x5316 ,0x10
REG = 0x5317 ,0x00
REG = 0x5318 ,0x02
REG = 0x5402 ,0x3f
REG = 0x5403 ,0x00
REG = 0x3406 ,0x00
REG = 0x5180 ,0xff
REG = 0x5181 ,0x52
REG = 0x5182 ,0x11
REG = 0x5183 ,0x14
REG = 0x5184 ,0x25
REG = 0x5185 ,0x24
REG = 0x5186 ,0x06
REG = 0x5187 ,0x08
REG = 0x5188 ,0x08
REG = 0x5189 ,0x7c
REG = 0x518a ,0x60
REG = 0x518b ,0xb2
REG = 0x518c ,0xb2
REG = 0x518d ,0x44
REG = 0x518e ,0x3d
REG = 0x518f ,0x58
REG = 0x5190 ,0x46
REG = 0x5191 ,0xf8
REG = 0x5192 ,0x04
REG = 0x5193 ,0x70
REG = 0x5194 ,0xf0
REG = 0x5195 ,0xf0
REG = 0x5196 ,0x03
REG = 0x5197 ,0x01
REG = 0x5198 ,0x04
REG = 0x5199 ,0x12
REG = 0x519a ,0x04
REG = 0x519b ,0x00
REG = 0x519c ,0x06
REG = 0x519d ,0x82
REG = 0x519e ,0x00
REG = 0x5025 ,0x80
REG = 0x5583 ,0x40
REG = 0x5584 ,0x40
REG = 0x5580 ,0x02
REG = 0x5000 ,0xcf
REG = 0x3710 ,0x10
REG = 0x3632 ,0x51
REG = 0x3702 ,0x10
REG = 0x3703 ,0xb2
REG = 0x3704 ,0x18
REG = 0x370b ,0x40
REG = 0x370d ,0x03
REG = 0x3631 ,0x01
REG = 0x3632 ,0x52
REG = 0x3606 ,0x24
REG = 0x3620 ,0x96
REG = 0x5785 ,0x07
REG = 0x3a13 ,0x30
REG = 0x3600 ,0x52
REG = 0x3604 ,0x48
REG = 0x3606 ,0x1b
REG = 0x370d ,0x0b
REG = 0x370f ,0xc0
REG = 0x3709 ,0x01
REG = 0x3823 ,0x00
REG = 0x5007 ,0x00
REG = 0x5009 ,0x00
REG = 0x5011 ,0x00
REG = 0x5013 ,0x00
REG = 0x519e ,0x00
REG = 0x5086 ,0x00
REG = 0x5087 ,0x00
REG = 0x5088 ,0x00
REG = 0x5089 ,0x00
REG = 0x302b ,0x00
;REG = 0x3808 ,0x01
;REG = 0x3809 ,0x40
;REG = 0x380a ,0x00
;REG = 0x380b ,0xf0
REG = 0x3a00 ,0x78
REG = 0x5001 ,0xFF
REG = 0x5583 ,0x50
REG = 0x5584 ,0x50
REG = 0x5580 ,0x02
REG = 0x3c01 ,0x80
REG = 0x3c00 ,0x04
REG = 0x5800 ,0x48
REG = 0x5801 ,0x31
REG = 0x5802 ,0x21
REG = 0x5803 ,0x1b
REG = 0x5804 ,0x1a
REG = 0x5805 ,0x1e
REG = 0x5806 ,0x29
REG = 0x5807 ,0x38
REG = 0x5808 ,0x26
REG = 0x5809 ,0x17
REG = 0x580a ,0x11
REG = 0x580b ,0xe
REG = 0x580c ,0xd
REG = 0x580d ,0xe
REG = 0x580e ,0x13
REG = 0x580f ,0x1a
REG = 0x5810 ,0x15
REG = 0x5811 ,0xd
REG = 0x5812 ,0x8
REG = 0x5813 ,0x5
REG = 0x5814 ,0x4
REG = 0x5815 ,0x5
REG = 0x5816 ,0x9
REG = 0x5817 ,0xd
REG = 0x5818 ,0x11
REG = 0x5819 ,0xa
REG = 0x581a ,0x4
REG = 0x581b ,0x0
REG = 0x581c ,0x0
REG = 0x581d ,0x1
REG = 0x581e ,0x6
REG = 0x581f ,0x9
REG = 0x5820 ,0x12
REG = 0x5821 ,0xb
REG = 0x5822 ,0x4
REG = 0x5823 ,0x0
REG = 0x5824 ,0x0
REG = 0x5825 ,0x1
REG = 0x5826 ,0x6
REG = 0x5827 ,0xa
REG = 0x5828 ,0x17
REG = 0x5829 ,0xf
REG = 0x582a ,0x9
REG = 0x582b ,0x6
REG = 0x582c ,0x5
REG = 0x582d ,0x6
REG = 0x582e ,0xa
REG = 0x582f ,0xe
REG = 0x5830 ,0x28
REG = 0x5831 ,0x1a
REG = 0x5832 ,0x11
REG = 0x5833 ,0xe
REG = 0x5834 ,0xe
REG = 0x5835 ,0xf
REG = 0x5836 ,0x15
REG = 0x5837 ,0x1d
REG = 0x5838 ,0x6e
REG = 0x5839 ,0x39
REG = 0x583a ,0x27
REG = 0x583b ,0x1f
REG = 0x583c ,0x1e
REG = 0x583d ,0x23
REG = 0x583e ,0x2f
REG = 0x583f ,0x41
REG = 0x5840 ,0xe
REG = 0x5841 ,0xc
REG = 0x5842 ,0xd
REG = 0x5843 ,0xc
REG = 0x5844 ,0xc
REG = 0x5845 ,0xc
REG = 0x5846 ,0xc
REG = 0x5847 ,0xc
REG = 0x5848 ,0xd
REG = 0x5849 ,0xe
REG = 0x584a ,0xe
REG = 0x584b ,0xa
REG = 0x584c ,0xe
REG = 0x584d ,0xe
REG = 0x584e ,0x10
REG = 0x584f ,0x10
REG = 0x5850 ,0x11
REG = 0x5851 ,0xa
REG = 0x5852 ,0xf
REG = 0x5853 ,0xe
REG = 0x5854 ,0x10
REG = 0x5855 ,0x10
REG = 0x5856 ,0x10
REG = 0x5857 ,0xa
REG = 0x5858 ,0xe
REG = 0x5859 ,0xe
REG = 0x585a ,0xf
REG = 0x585b ,0xf
REG = 0x585c ,0xf
REG = 0x585d ,0xa
REG = 0x585e ,0x9
REG = 0x585f ,0xd
REG = 0x5860 ,0xc
REG = 0x5861 ,0xb
REG = 0x5862 ,0xd
REG = 0x5863 ,0x7
REG = 0x5864 ,0x17
REG = 0x5865 ,0x14
REG = 0x5866 ,0x18
REG = 0x5867 ,0x18
REG = 0x5868 ,0x16
REG = 0x5869 ,0x12
REG = 0x586a ,0x1b
REG = 0x586b ,0x1a
REG = 0x586c ,0x16
REG = 0x586d ,0x16
REG = 0x586e ,0x18
REG = 0x586f ,0x1f
REG = 0x5870 ,0x1c
REG = 0x5871 ,0x16
REG = 0x5872 ,0x10
REG = 0x5873 ,0xf
REG = 0x5874 ,0x13
REG = 0x5875 ,0x1c
REG = 0x5876 ,0x1e
REG = 0x5877 ,0x17
REG = 0x5878 ,0x11
REG = 0x5879 ,0x11
REG = 0x587a ,0x14
REG = 0x587b ,0x1e
REG = 0x587c ,0x1c
REG = 0x587d ,0x1c
REG = 0x587e ,0x1a
REG = 0x587f ,0x1a
REG = 0x5880 ,0x1b
REG = 0x5881 ,0x1f
REG = 0x5882 ,0x14
REG = 0x5883 ,0x1a
REG = 0x5884 ,0x1d
REG = 0x5885 ,0x1e
REG = 0x5886 ,0x1a
REG = 0x5887 ,0x1a
REG = 0x5180 ,0xff
REG = 0x5181 ,0x52
REG = 0x5182 ,0x11
REG = 0x5183 ,0x14
REG = 0x5184 ,0x25
REG = 0x5185 ,0x24
REG = 0x5186 ,0x14
REG = 0x5187 ,0x14
REG = 0x5188 ,0x14
REG = 0x5189 ,0x69
REG = 0x518a ,0x60
REG = 0x518b ,0xa2
REG = 0x518c ,0x9c
REG = 0x518d ,0x36
REG = 0x518e ,0x34
REG = 0x518f ,0x54
REG = 0x5190 ,0x4c
REG = 0x5191 ,0xf8
REG = 0x5192 ,0x04
REG = 0x5193 ,0x70
REG = 0x5194 ,0xf0
REG = 0x5195 ,0xf0
REG = 0x5196 ,0x03
REG = 0x5197 ,0x01
REG = 0x5198 ,0x05
REG = 0x5199 ,0x2f
REG = 0x519a ,0x04
REG = 0x519b ,0x00
REG = 0x519c ,0x06
REG = 0x519d ,0xa0
REG = 0x519e ,0xa0
REG = 0x528a ,0x00
REG = 0x528b ,0x01
REG = 0x528c ,0x04
REG = 0x528d ,0x08
REG = 0x528e ,0x10
REG = 0x528f ,0x20
REG = 0x5290 ,0x30
REG = 0x5292 ,0x00
REG = 0x5293 ,0x00
REG = 0x5294 ,0x00
REG = 0x5295 ,0x01
REG = 0x5296 ,0x00
REG = 0x5297 ,0x04
REG = 0x5298 ,0x00
REG = 0x5299 ,0x08
REG = 0x529a ,0x00
REG = 0x529b ,0x10
REG = 0x529c ,0x00
REG = 0x529d ,0x20
REG = 0x529e ,0x00
REG = 0x529f ,0x30
REG = 0x5282 ,0x00
REG = 0x5300 ,0x00
REG = 0x5301 ,0x20
REG = 0x5302 ,0x00
REG = 0x5303 ,0x7c
REG = 0x530c ,0x00
REG = 0x530d ,0x10
REG = 0x530e ,0x20
REG = 0x530f ,0x80
REG = 0x5310 ,0x20
REG = 0x5311 ,0x80
REG = 0x5308 ,0x20
REG = 0x5309 ,0x40
REG = 0x5304 ,0x00
REG = 0x5305 ,0x30
REG = 0x5306 ,0x00
REG = 0x5307 ,0x80
REG = 0x5314 ,0x08
REG = 0x5315 ,0x20
REG = 0x5319 ,0x30
REG = 0x5316 ,0x10
REG = 0x5317 ,0x00
REG = 0x5318 ,0x02
REG = 0x5380 ,0x01
REG = 0x5381 ,0x00
REG = 0x5382 ,0x00
REG = 0x5383 ,0x1f
REG = 0x5384 ,0x00
REG = 0x5385 ,0x06
REG = 0x5386 ,0x00
REG = 0x5387 ,0x00
REG = 0x5388 ,0x00
REG = 0x5389 ,0xE1
REG = 0x538A ,0x00
REG = 0x538B ,0x2B
REG = 0x538C ,0x00
REG = 0x538D ,0x00
REG = 0x538E ,0x00
REG = 0x538F ,0x10
REG = 0x5390 ,0x00
REG = 0x5391 ,0xB3
REG = 0x5392 ,0x00
REG = 0x5393 ,0xA6
REG = 0x5394 ,0x08
REG = 0x5480 ,0x0c
REG = 0x5481 ,0x18
REG = 0x5482 ,0x2f
REG = 0x5483 ,0x55
REG = 0x5484 ,0x64
REG = 0x5485 ,0x71
REG = 0x5486 ,0x7d
REG = 0x5487 ,0x87
REG = 0x5488 ,0x91
REG = 0x5489 ,0x9a
REG = 0x548A ,0xaa
REG = 0x548B ,0xb8
REG = 0x548C ,0xcd
REG = 0x548D ,0xdd
REG = 0x548E ,0xea
REG = 0x548F ,0x1d
REG = 0x5490 ,0x05
REG = 0x5491 ,0x00
REG = 0x5492 ,0x04
REG = 0x5493 ,0x20
REG = 0x5494 ,0x03
REG = 0x5495 ,0x60
REG = 0x5496 ,0x02
REG = 0x5497 ,0xB8
REG = 0x5498 ,0x02
REG = 0x5499 ,0x86
REG = 0x549A ,0x02
REG = 0x549B ,0x5B
REG = 0x549C ,0x02
REG = 0x549D ,0x3B
REG = 0x549E ,0x02
REG = 0x549F ,0x1C
REG = 0x54A0 ,0x02
REG = 0x54A1 ,0x04
REG = 0x54A2 ,0x01
REG = 0x54A3 ,0xED
REG = 0x54A4 ,0x01
REG = 0x54A5 ,0xC5
REG = 0x54A6 ,0x01
REG = 0x54A7 ,0xA5
REG = 0x54A8 ,0x01
REG = 0x54A9 ,0x6C
REG = 0x54AA ,0x01
REG = 0x54AB ,0x41
REG = 0x54AC ,0x01
REG = 0x54AD ,0x20
REG = 0x54AE ,0x00
REG = 0x54AF ,0x16
REG = 0x54B0 ,0x01
REG = 0x54B1 ,0x20
REG = 0x54B2 ,0x00
REG = 0x54B3 ,0x10
REG = 0x54B4 ,0x00
REG = 0x54B5 ,0xf0
REG = 0x54B6 ,0x00
REG = 0x54B7 ,0xDF
REG = 0x5402 ,0x3f
REG = 0x5403 ,0x00
REG = 0x5500 ,0x10
REG = 0x5502 ,0x00
REG = 0x5503 ,0x06
REG = 0x5504 ,0x00
REG = 0x5505 ,0x7f
REG = 0x5025 ,0x80
REG = 0x3a0f ,0x30
REG = 0x3a10 ,0x28
REG = 0x3a1b ,0x30
REG = 0x3a1e ,0x28
REG = 0x3a11 ,0x61
REG = 0x3a1f ,0x10
REG = 0x5688 ,0xfd
REG = 0x5689 ,0xdf
REG = 0x568a ,0xfe
REG = 0x568b ,0xef
REG = 0x568c ,0xfe
REG = 0x568d ,0xef
REG = 0x568e ,0xaa
REG = 0x568f ,0xaa
REG = 0xffff,0xff

REG = 0x3800 ,0x1
REG = 0x3801 ,0xB0
REG = 0x3802 ,0x0
REG = 0x3803 ,0xA
REG = 0x3804 ,0xA
REG = 0x3805 ,0x20
REG = 0x3806 ,0x7
REG = 0x3807 ,0x98
REG = 0x3808 ,0x4
REG = 0x3809 ,0x0
REG = 0x380a ,0x3
REG = 0x380b ,0x0
REG = 0x380c ,0xc
REG = 0x380d ,0x80
REG = 0x380e ,0x7
REG = 0x380f ,0xd0
REG = 0x5001 ,0x7f
REG = 0x5680 ,0x0
REG = 0x5681 ,0x0
REG = 0x5682 ,0xA
REG = 0x5683 ,0x20
REG = 0x5684 ,0x0
REG = 0x5685 ,0x0
REG = 0x5686 ,0x7
REG = 0x5687 ,0x98
REG = 0xffff, 0xff

ArduCam_open failed

I received 'ArduCAM_USB_Camera_Shiled' and 'AR0134 RGB camera module'.

On my ubuntu 16.04(64bit), I built 'ArduCAM_USB_Camera_Shield/Linux_x86/Cpp/ArduCAM_Linux_SDK_OpenCV_AR0134_Demo/AR0134_demo.cpp'.

And I ran and got error message 'Device found = 1 ArduCam_open failed'.

AR0134_demo.cpp, Line 144
u32Value = ArduCam_autoopen( useHandle, &useCfg );

This function doesn't work.

What is a problem?
Is it possible that camera module is broken?
Or, ArduCam_autoopen has bug...?

How can I check??

Capture in continous mode

Hi, let me tell you first that your device is awesome to learn and handle image sensors in a fast and easy way. So congratulations!

Now, in my application I'm using the MT9M001 Aptina sensor and I would like to capture frames with a very long integration time (max is 1033ms) but without losing any frame. The issue is that, in your example code, calling to ArducamSDK.Py_ArduCam_capture(handle) apparently waits for the next frame before recording the data, and so by polling it you capture one frame and always lose the next. What I'm looking for is a way to continuously capture every frame output by the sensor without having to call a "capture" method everytime. Something like:

Thread 1:

ArducamSDK.Py_ArduCam_beginCapture(handle); 
# That would start a thread that continuously read and save data to framebuffer
while 1:
   DoNothing();

Thread 2:

while 1:
   if ArducamSDK.Py_ArduCam_availiable(handle) > 0:
      # Read and process data.
      res,data = ArducamSDK.Py_ArduCam_read(handle,Width * Height) 

The USB bandwidth shouldn't be a problem here because as I said the integration time is very long and so the data rate is very low (1fps).

Hope you can help me with this. Thanks in advance and thank you again for this very good device.

Config file loading fail in my program

I want to use USBTEST source in my program. However, when I run the ArduCamCfg_LoadCameraConfig function, it fails to load the config file.
In particular, I ran the same code in usbtest and my program as in the code below.
In usbtest, the file was loaded without any problems. But I do not know why my code does not load files. Please give me advice.

csTmpFileName = _T ("D: \ Config \ AR0134_960p.cfg");
if (CFG_NONE_CONTENT == ArduCamCfg_LoadCameraConfig (m_cUsbCameraCfgHd, csTmpFileName))
{
AfxMessageBox (_T ("Config file Open failed!"));
return;
}

C++ and MFC

Hello
A few weeks ago I bought the Arducam_USB module with some models of CMOS sensors. I have only tried USBTest with the MT9V034 and it works correctly.

First to thank ArduCam for enabling your products to learn and program these sensors to new people who start in this, it is hard to start directly with complex MCUs or FPGA.

I am very familiar with VS and C # and I find it difficult and impractical to use C ++ and MFC.
Is not there the possibility of having the libraries in C #?
Greetings and thank you

Bad frame received from MT9V022 cfg

I'm running the USBTest demo software on Windows 7 x64 and when I load the MT9V022 cfg I get USB init success but when I hit "play" the console outputs "Bad frame received".

I have Rev B of the Arducam USB Camera shield. Is this the issue? Is the MT9V022 only supported by the USB3 shield?

The device name from "scan" is all garbage in the GUI. It comes back as "0 YYYY-YYYY-YYYY". I am able to read RegAddr 0x00 and get 0x1313 back which is what it is supposed to be so it does not seem like a bad communication problem. Maybe a mismatched packet?

Trigger Mode for AR0134 in RPI

Hey Lee,
So far everything is running perfectly,I need help in setting up trigger mode for AR0134 in RPI.
I have used your demo code for Auto-mode but when i change the register value in regArr of your code to trigger mode. i'm getting - capture fail error.
can you provide a sample code like to use trigger mode in RPI.
Thank you.
Please respond ASAP.

Using AR0134 with Python-OpenCV in Windows

Hi,
I just received my AR0134+USB camera shield.
Correctly installed in W10, and the ussage of USBtest.exe is correct.
But I don't know how to use in Python.
I tried with the Raspberri Pi example, but Python doesn't recognize the ArducamSDK.so file.
How I can do it?

Francisco

Camera not being detected

Hi,

I'm having some trouble sometimes with opening the camera. Sometimes it opens and allows me to take photos, but sometimes it may stop working. The code hasn't changed, and I've tested with multiple cameras and I can't really figure out what the problem is. Any suggestions to help me debug?

Thanks.

MT9J001 no longer recognized

The USB test no longer reads the MT9J001,
When I click auto-open i get the message "USB device create error"
And when i Click open I get an error "incorrect Parametes"
error

Config file to work in 1920x1080 - MT9J001

Hi, running the MT9J001 at full range (3664x2748) gives me a 2 fps video. I'd like to reduce the image displayed to 1920x1080to increase the fps, but it is not working. The images get too weird and nothing displayed, actually. How can I change it?

Image loading error.

I want to transfer images to PC using arducam usb camera shield.
The software I am using is usbtest.exe, a window test program provided by arducam.
And the hardware I am using is arducam usb camera shield and ov5642 camera module.
The usb driver is recognized in the device manager, and when the open button is clicked on the usbtest program, the message "usb open succeeded" appears.
However, when I click the play button, the image is not shown and only the time out error message is displayed.
So I am doing hardware debugging and I have found one problem.
The problem is that the source clock is not oscillating from the FPGA of the arducam usb camera shield to the pin 8 (XCLK) of the camera module.
I do not know if the board is a problem or if I have misconfigured it or if I have another problem.
Let me know the cause and solution of the above problem.

ModuleNotFoundError: No module named 'ArducamSDK'

ModuleNotFoundError: No module named 'ArducamSDK'

ArduCAM USB shield + MT9J003
System: Windows 10 Pro
Python: '3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)]'

If i try:
ArducamSDK = ctypes.cdll.LoadLibrary('ArducamSDK.so')
I get:
OSError: [WinError 193] %1 is not a valid Win32 application

--> I conclude that the .so file was compiled on and for Linux/Unix systems. Is it possible to get one for Windows?

Much appreciated!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.