Notifiche
Cancella tutti

Pi camera?  

Pagina 1 / 3
  RSS
Yasar
(@yasar)
Trusted Member
Pi camera?

Hi i come from.octoprint, now i install 0.70 on my pi zero 2 ... Plug the ribbon cable from my pi.camera v1.3 , but where is the camera? I can see it ? Any one can help 🙂 

 

 

Thx 

 

Postato : 09/11/2022 6:58 pm
Tojik
(@tojik)
Utenti Moderator
RE: Pi camera?

Hi, we are still working on camera support. As of now, the dev code autodetects usb and raspi cameras. You can see the work happen in the Prusa-Link and Prusa-Connect-Printer-SDK repositories over on GitHub. We'll be releasing that as soon as it's at least a little bit ready.

Sorry about cameras not being there, but. If everything else worked out of the box. that's a huge win 😅

Postato : 09/11/2022 7:21 pm
Tu hanno apprezzato
Yasar
(@yasar)
Trusted Member
Topic starter answered:
RE: Pi camera?

Aahh ok thank you , any chance to get developer images? Or must we compile it thelf?

Postato : 10/11/2022 3:18 am
Tojik
(@tojik)
Utenti Moderator
RE: Pi camera?

Python is interpreted, no compiling required. The Readme has a guide on how to set up prusalink an a debian linux PC (raspi). I am unsure if everything I wrote there works (i know 'pip install prusalink' does not) but other than that, you should be able to install it using readme as a guide. If you get stuck, please visit our Discord. Invite links are under every prusalive stream on youtube. I can troubleshoot there easier. Thanks 🙂

Postato : 10/11/2022 8:52 am
Yasar
(@yasar)
Trusted Member
Topic starter answered:
RE: Pi camera?

Ahh ok i must then flash weekend pi os ... Not your image and install ssh .. thank you


 

Postato : 10/11/2022 9:32 am
Tojik
(@tojik)
Utenti Moderator
RE: Pi camera?

The image is the same, just with prusa-link installed and made to run on start + some additional stuff configured

Postato : 10/11/2022 10:03 am
Yasar
(@yasar)
Trusted Member
Topic starter answered:
RE: Pi camera?

Ok i wait for.an new image 🙂 thank you

Postato : 10/11/2022 3:33 pm
DadBod
(@dadbod)
Utenti
RE: Pi camera?

@Tojik SUPER excited to see the camera work started. I just grabbed RC2, got it up and running, and I have some questions/comments 😀 

1: Can you enable the API key for API Auth? 0.7.X release notes say its disabled by default, and HTTP Digest is fine and all... BUT.... I wasted a good hour or so of my life with API calls failing because my HTTP password has a $ in it... which in posix is the expansion operator.

2: How should the camera detection work on a Pi connected via USB with a pi camera connected via standard ribbon cable to the camera port? I'm not seeing it show up under the camera section of the 0.7 web interface. Is there any initial config that needs to happen? (Note: Haven't tested just a USB camera yet, will shortly)

3: I seem to be unable to make any calls to the `cameras` endpoint. Is this just because I have none setup/configured? Or are there any examples? Not really any particular use case, just testing the API here cause I'm interested in how you are implementing this functionality 😀

Thanks in advance! Great work as always

Postato : 27/01/2023 4:30 pm
Tojik
(@tojik)
Utenti Moderator
RE: Pi camera?

Hi,
2: Pi cameras were really problematic, so they got pulled last minute. Sorry about the changelog saying they're there. I have them working now. I hope. It only took a month locked in a cave 😀
1: The api key can be re-generated in PrusaLink settings. We do not provide a UI way to set it tho I believe you can do so in the config file.
3: weird, the API should be visible either through network monitoring or it's on github. https://github.com/prusa3d/Prusa-Link-Web/blob/master/spec/openapi.yaml Try a USB camera if you can, or wait for the Pi camera implementation. If the api is dead, you will not see any cameras period. If it's alive, you should be able to observe it.

Hope this helps

Postato : 27/01/2023 4:50 pm
Zappes e DadBod hanno apprezzato
DadBod
(@dadbod)
Utenti
RE: Pi camera?

Re 2: I saw that in the last commit message and was like.... NAhhhhh that can't be right...It's RIGHT THERE in the release notes! 😀

Thanks again!

Postato : 27/01/2023 6:19 pm
Windy
(@windy)
Active Member
RE: Pi camera?

Hey,
could anyone give me a hint how to setup the camera? I installed 0.7.0rc3 (2023-03-09), deleted the printer in prusa connect and ran the wizard. The pi camera is working probperly. I took a picture using libcamera-still. In prusa connect and prusa link, it shows no camera. Any ideas?

Thanks!

Johannes

Postato : 25/03/2023 7:42 am
Tojik
(@tojik)
Utenti Moderator
RE: Pi camera?

What camera do you have? There's the wide variant of the picamera v3 that is not whitelisted in the RC3 so it doesn't show up even if it would work

Postato : 25/03/2023 9:14 am
Windy
(@windy)
Active Member
RE: Pi camera?

Model name is ASDIOFJ1 and it says rev 1.3. Seems to me to be no original raspberry pi product...

What library are you using? Could I try to run a command from that library from the command line?

Postato : 25/03/2023 10:53 am
Tojik
(@tojik)
Utenti Moderator
RE: Pi camera?

Hi, there were problems where the PiCamera code detected usb cameras, that were supposed to be handled by a different piece of code that uses V4L2. So I took a list of supported CSI cameras from libcamera and made that a whitelist for camera models. Is "ASDIOFJ1" the exact string that gets written out by libcamera-hello --list-cameras right next to the "0:"? Could you send me an output of that command? Thank you

Postato : 25/03/2023 11:11 am
OrlinK
(@orlink)
Utenti
RE:

Having the exact same issue. I'm using a RPi 4, and I can confirm that the Picamera (v2.1) and the flat cable work:

pi@prusalink:~ $ vcgencmd get_camera
> supported=1 detected=1, libcamera interfaces=0

and

pi@prusalink:~ $ raspistill -v
"raspistill" Camera App (commit )

Camera Name imx219
Width 3280, Height 2464, filename (null)
Using camera 0, sensor mode 0

GPS output Disabled

Quality 85, Raw no
Thumbnail enabled Yes, width 64, height 48, quality 35
Time delay 5000, Timelapse 0
Link to latest frame enabled  no
Full resolution preview No
Capture method : Single capture

Preview Yes, Full screen Yes
Preview window 0,0,1024,768
Opacity 255
Sharpness 0, Contrast 0, Brightness 50
Saturation 0, ISO 0, Video Stabilisation No, Exposure compensation 0
Exposure Mode 'auto', AWB Mode 'auto', Image Effect 'none'
Flicker Avoid Mode 'off'
Metering Mode 'average', Colour Effect Enabled No with U = 128, V = 128
Rotation 0, hflip No, vflip No
ROI x 0.000000, y 0.000000, w 1.000000 h 1.000000
mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
mmal: camera component couldn't be enabled
mmal: main: Failed to create camera component
mmal: Failed to run camera app. Please check for firmware updates

It's just not showing up on PruaLink; "There are no cameras assigned to this printer".

Any idea's?

Questo post è stato modificato 2 years fa da OrlinK
Postato : 26/03/2023 8:23 pm
Windy
(@windy)
Active Member
RE:

Hey, I found a rathert simple solution. libcamera-hello had no option --list-cameras, so it seemed to be an older version. Sudo apt-get update && sudo apt-get upgrade -y did the trick. Since I unplugged the printer before finishing the update, I had to reinstall the os entirely. Now I can see the camera in prusa link.

Thanks alot for your effort.

Johannes

Questo post è stato modificato 2 years fa da Windy
Postato : 26/03/2023 8:42 pm
karl-herbert
(@karl-herbert)
Illustrious Member
RE: Pi camera?

Which image was installed on Pi4 (buster or bullseye)?

https://support.thepihut.com/hc/en-us/articles/360008782198-Camera-Module-isn-t-working

wbr,

Karl

Statt zu klagen, dass wir nicht alles haben, was wir wollen, sollten wir lieber dankbar sein, dass wir nicht alles bekommen, was wir verdienen.

Postato : 26/03/2023 9:03 pm
Tojik
(@tojik)
Utenti Moderator
RE: Pi camera?

Hi, PiCamera support is so far available only on the newes PrusaLink 0.7.0 RC3 (with the beeping issue) It's easy enoug to side-step by setting the printer sound to silent tho.

Link: https://github.com/prusa3d/Prusa-Link/releases/tag/0.7.0rc3

Sorry I wasn't responding 🙃 hope it helps

Postato : 26/03/2023 10:15 pm
OrlinK
(@orlink)
Utenti
RE: Pi camera?

I've updated to the 0.7.0.rc3 and I'm still not able to get it to work in PrusaLink. It keeps saying no camera is assigned or anything showing up. I'm able to take raspistills in the system. Any thoughts?

Postato : 27/03/2023 2:52 pm
Tojik
(@tojik)
Utenti Moderator
RE: Pi camera?

Have you updated like we expect you to update or have you just pip installed the newer version? Because one of these solutions is not guaranteed to work and I'm not sure why. I did an rpi-update and even that didn't fix it, but doing a clean install of their newer image did. So I made our newer image based on that and called it a day.

Postato : 27/03/2023 2:55 pm
Pagina 1 / 3
Condividi: