-
Notifications
You must be signed in to change notification settings - Fork 15
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
Install infragram #37
Conversation
Oh, did our rename break the building system, @icarito ? Sorry!!! |
No the rename didn't break the build. There was a temporary network issue I think. I retried and now it failed because npm isn't installed. |
What's the ideal way to install npm -- trying |
Hi, |
oh, i'd like to do both, this is just an initial example attempt! I
definitely think we should create an image-sequencer version of this too.
…On Tue, Oct 23, 2018 at 2:26 PM Mayke De Freitas ***@***.***> wrote:
Hi,
I think is a better idea to implement image-sequencer within the pi-image,
rather than infragram.
The other thing to take into consideration, at least in my case, is that
the compute module has just 4GB of space and therefore any image bigger
than that would not be suitable for it. I've got an image for the CM 3 with
opencv installed, and maybe there is space for image-sequencer. That would
make it a killer in processing terms
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ5J8cycuuPw9B9dejAq1j6wQjN1Cks5un18YgaJpZM4X0Uf8>
.
|
So once we get this running, we should be able to just swap "infragram" with "image-sequencer" in a new PR and then it should work there too. They have similar node/npm dependencies! |
Ah, we're now running out of space -- is there a way to expand the image?
|
Yes! I ran into the same issue while trying to integrate Peggy scripts + Desktop environment. This replaces the standard hypriot root base filesystem with a custom built one by us in Jenkins (set to 2GB instead of 1GB images). |
The repository for the enlarged rootfs is at https://gitlab.com/publiclab/image-builder-raw |
OK! Added that to increase the image size. Awesome, thanks! |
Hmm, i'm seeing this error now:
I'm restarting it to see, but any ideas what this is about? Thanks! |
Seems linked to this checksum? https://github.com/publiclab/pi-builder/blob/9aa7e739dd8fe1e250f5b74cff4e74a4bd6ce177/versions.config |
Yes, it is necessary to update the checksum too, forgot to mention it: https://github.com/publiclab/pi-builder/pull/12/files#diff-228984280290be5309df88a7d32cf31dL8 |
It worked!!! |
Er, did it? Oh, it doesn't seem to have triggered. |
How strange, this should trigger automatically... |
I found a webhook confused about the old URL, fixing it... |
Downloading this now to test! https://gitlab.com/publiclab/pi-builder/-/jobs/112353386/artifacts/download |
It worked!!! OK, so now I have to rebase this or combine it with commits from https://github.com/publiclab/pi-builder/pull/13/files, because we actually need that installed to be able to route the video stream into Infragram as per: |
Looks like you can just load it as an image using this code, and insert it: var piImage = new Image();
piImage.onload = function() {
infragram.options.processor.updateImage(piImage);
}
var fetchImageInterval = setInterval(function fetchImage() {
piImage.src = "http://pi.local/cam/cam_pic.php?time=" + new Date().getTime();
}, 200); (Updated again) |
Looking at this file: https://github.com/publiclab/infragram/blob/063acbf333ea45e980ffb56ad5d79cdc6a66391f/src/io/camera.js#L83 needs some experimentation! |
OK, I've rebased this over the |
OK! I'm closing in favor of the tidier #40 -- this is working! Infragram may need some tidying but otherwise this is good to go, and can be used as a template for doing the same with |
@maykef i'm interested in learning more about CM 3 -- do you have a link? As to OpenCV, there are 2 approaches. First, this recipe uses OpenCV: #12 Second, we have a module in planning for image-sequencer that uses the cross-compiled OpenCV.js: publiclab/image-sequencer#237 -- this might be really interesting because it'd be so modular. |
Hey @jywarren I've been working like crazy on the camera. I think I've done most of the hardest part. The cameras trigger within half millisecond (thanks to using multiprocessing module). Here is a nice pic I took a couple of days ago: |
oh my gosh, please post some pics of your setup at PublicLab.org -- very
cool!!!!
…On Thu, Nov 1, 2018 at 12:27 PM Mayke De Freitas ***@***.***> wrote:
Hey @jywarren <https://github.com/jywarren> I've been working like crazy
on the camera. I think I've done most of the hardest part. The cameras
trigger within half millisecond (thanks to using multiprocessing module).
Here is a nice pic I took a couple of days ago:
[image: clip_raspicam]
<https://user-images.githubusercontent.com/19354019/47864238-070dc580-ddf1-11e8-9fc2-f1e9c75335c9.png>
.
And here the almost simultaneous trigger:
[image: multispectral_cam_sync]
<https://user-images.githubusercontent.com/19354019/47864892-a3849780-ddf2-11e8-920d-d163acc7531a.jpg>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ6wJmmngffPM5TcHEWyTnpKtRU2Eks5uqyDbgaJpZM4X0Uf8>
.
|
Are we running a Kickstarter campaign for this? |
lol should we? :-)
…On Thu, Nov 1, 2018 at 2:44 PM Mayke De Freitas ***@***.***> wrote:
Are we running a Kickstarter campaign for this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ2fPjjJlixhpwN0BPnG2Sa6m_w_xks5uq0DigaJpZM4X0Uf8>
.
|
@jywarren Hey |
Ooh, ok! Remind me, are you using 2 cameras? And what are the commands to
take your images?
Awesome! I have image sequencer running on the pi already, so it's a matter
of connecting it up w the camera scripts. 👍🏽
…On Fri, Nov 16, 2018, 9:11 AM Mayke De Freitas ***@***.*** wrote:
@jywarren <https://github.com/jywarren> Hey
I have finished with most of the work for the multispectral pi. What I
want to do now is to run image-sequencer from a web browser accessed
through an access point on the pi.
Image-sequencer should show the four images captured by the camera and
then do all the processing
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJxB1f2nWa33WsToKaGRrKVYKFEioks5uvsdogaJpZM4X0Uf8>
.
|
Hi @jywarren, Have a look to the Raspicam repo |
oh interesting, but can you explain what the 4 images are? I am not quite
following, it's 2 cameras, right? Thank you and sorry for being dense!
…On Sat, Nov 17, 2018 at 3:28 AM Mayke De Freitas ***@***.***> wrote:
Hi @jywarren <https://github.com/jywarren>,
Have a look to the Raspicam repo
https://github.com/maykef/Raspicam
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJyF6hYiqUtozJ34P0LJ8JLYUq3g1ks5uv8ipgaJpZM4X0Uf8>
.
|
Oh, of course. Sorry, when i process, i usually have 3 bands in one image, and another in a second, so mentally i think of 2 images. So you're accessing it with |
Apart from fetching the images, we need to think about image registration within Infragram. I've got an OpenCV script that already does the job, but the CM seems to run out of memory while doing the registration. |
Thanks for opening a pull request! In this repository, opening a PR will initiate the generation of a new Raspberry Pi image, and create an image file you can download and use in your Raspberry Pi.
The changes you add to the pull request, such as adding software to install, will be run on the generated image.
For an example, see the software installed and configured in this pull request: https://github.com/publiclab/image-builder-rpi/pull/15/files
Recipe
Use this space to describe what your "recipe" is intended to install and configure on a Raspberry Pi:
Installing Infragram multispectral analysis tool: https://github.com/publiclab/infragram
Download instructions
Generating the image will take a few minutes. Once the image is prepared, and if it succeeded, you'll see a green checkmark at the bottom of the pull request. To download the image:
https://gitlab.com/publiclab/image-builder-rpi/pipelines/########/builds
Jobs
tab, next toPipeline
Passed
buttonDownload
in the right-hand sidebarartifacts.zip
file, and also thehypriotos-rpi-camera_web.img.zip
within itYou'll also be able to read the output of the image generation in this window.
We hope to create a bot to report back the completed image URL in each pull request. If you can help create such a bot, please contact us at:
#16
Thanks!