Git Product home page Git Product logo

libcamera-cpp-demo's People

Contributors

edward-ardu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

libcamera-cpp-demo's Issues

Issue while compiling.

error: ‘class libcamera::CameraConfiguration’ has no member named ‘transform’
54 | config_->transform = transform;

build error. (pi2w 2022-09-06-raspios-bullseye-armhf.img.xz)

/home/dev/libcamera-cpp-demo/main.cpp: In function ‘int main()’:
/home/dev/libcamera-cpp-demo/main.cpp:49:40: error: ‘AfMode’ is not a member of ‘libcamera::controls’; did you mean ‘AwbMode’?
49 | controls.set(controls::AfMode, controls::AfModeAuto);
| ^~~~~~
| AwbMode
/home/dev/libcamera-cpp-demo/main.cpp:49:58: error: ‘AfModeAuto’ is not a member of ‘libcamera::controls’
49 | controls.set(controls::AfMode, controls::AfModeAuto);
| ^~~~~~~~~~
/home/dev/libcamera-cpp-demo/main.cpp:50:40: error: ‘AfTrigger’ is not a member of ‘libcamera::controls’; did you mean ‘libcamera::controls::draft::AfTrigger’?
50 | controls.set(controls::AfTrigger, 0);
| ^~~~~~~~~
In file included from /home/dev/libcamera-cpp-demo/LibCamera.h:19,
from /home/dev/libcamera-cpp-demo/main.cpp:6:
/usr/include/libcamera/libcamera/control_ids.h:139:31: note: ‘libcamera::controls::draft::AfTrigger’ declared here
139 | extern const Control<int32_t> AfTrigger;
| ^~~~~~~~~
/home/dev/libcamera-cpp-demo/main.cpp:61:40: error: ‘AfMode’ is not a member of ‘libcamera::controls’; did you mean ‘AwbMode’?
61 | controls.set(controls::AfMode, controls::AfModeManual);
| ^~~~~~
| AwbMode
/home/dev/libcamera-cpp-demo/main.cpp:61:58: error: ‘AfModeManual’ is not a member of ‘libcamera::controls’
61 | controls.set(controls::AfMode, controls::AfModeManual);
| ^~~~~~~~~~~~
/home/dev/libcamera-cpp-demo/main.cpp:62:28: error: ‘LensPosition’ is not a member of ‘libcamera::controls’
62 | controls.set(controls::LensPosition, lens_position);
| ^~~~~~~~~~~~
make[2]: *** [CMakeFiles/libcamera-demo.dir/build.make:82: CMakeFiles/libcamera-demo.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/libcamera-demo.dir/all] Error 2
make: *** [Makefile:103: all] Error 2
b

Libcamera-cpp-demo capturing fails after increasing resolution with resetCamera method

  1. capture image with 4624x3472 res
  2. user resetCamera to decrease resolution to 1280x720
  3. capture image and observe it was captured
  4. use resetCamera to increase resolution to 3840x2160
  5. observe that application is unable to read frame and gets stuck

My modified code to illustrate this
https://github.com/edward-ardu/libcamera-cpp-demo/tree/9226ee5eed4c3ee852ae28ad9a93afe3aba5c35f

I ran several resolution change scenarios and concluded that the problem is only when next resolution is equal or larger than previous:
1280x720->1280x720=fail
4624x3472->1280x720=success
1280x720->3840x2160=fail
4624x3472->3840x2160=success
1280x720->4624x3472=fail

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.