-
Notifications
You must be signed in to change notification settings - Fork 8.3k
WIP: Add a sample utilizing uCAM-III camera module #14596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
73df31c to
b0f2647
Compare
dbkinder
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments on the docs below (and a licensing question).
samples/camera/src/ucam3.h
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this Centaur Analytics, Inc? Do we have the proper licensing rights to use this code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the long delay. This is the company. However I own this code, so it's now under my name.
663ae2b to
80c15c8
Compare
|
There is a parallel PR proposing a camera API in #14666 |
dbkinder
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs look OK, but can you explain where this code came from and if we have proper licensing?
I am the original author, and I want to offer it with the default Zephyr licence. |
I've seen it. This PR is about interfacing with the 4d systems specific module. When I'm done, I'd be happy to offer an implementation to the proposing V4Zephyr API for this module. |
e82de2e to
587ecd4
Compare
|
@gon1332
|
Zephyr is supposed to run on host, utilizing the camera module (which, BTW is a not our product). My contribution is just a low level library for the module and hopefully an integration to a camera API.
As I do not have experience with camera modules implementations, along with lack of technical papers from 4DSystems I cannot answer these. |
|
@gon1332 , now that video 4 zephyr has been merged I wonder If you get any plan and have any time to adapt this driver. |
I'll give it a try from this week. |
For now, the driver implementation is in the scope of the sample. Signed-off-by: Ioannis Konstantelias <[email protected]>
Added function to send SNAPSHOT command to the camera module. Signed-off-by: Ioannis Konstantelias <[email protected]>
Added SET_PACKAGE_SIZE and GET_PICTURE commands. Now samples takes a picture with the camera. Signed-off-by: Ioannis Konstantelias <[email protected]>
Hide magic numbers to definitions and better grouping of static variables. Signed-off-by: Ioannis Konstantelias <[email protected]>
Inline what it's inlinable. Signed-off-by: Ioannis Konstantelias <[email protected]>
Created a primitive and experimental API for a camera driver. The current one, implements some basic camera functions. Also modified the sample code to use this API and take 10 snapshots one after the other. Signed-off-by: Ioannis Konstantelias <[email protected]>
There is a possibility that the module would hang. Just to be sure, issue a harware reset before taking a snapshot. Signed-off-by: Ioannis Konstantelias <[email protected]>
This PR includes a sample operating on 4D Systems uCAM-III camera module. Currently, I haven't found anaything similar in Zephyr, so I've decided to write the drivers in the scope of a sample.
There can be a discussion on how we can support camera modules. One though is to probably, integrate camera modules into the sensor API. Or maybe define a new API?
My tasks for this PR include:
..and whatever comes out of discussion.