Giter VIP home page Giter VIP logo

Comments (6)

lambdaloop avatar lambdaloop commented on May 23, 2024

Hi @menor22 ,

I haven't tried calibrating with cropped frames, it might work. Let me know if you try it out!

However, it is better to calibrate with the full view and crop only when recording, as calibration performs better on the full camera view. In addition, this allows you to reuse the same calibration videos with different cropping for behavior.

For specifying camera offsets when cropping for behavior recording, you can do so in the config.toml file.

An example configuration (for three cameras named "A", "B", and "C"):

[cameras.A]
offset = [36, 165] # x, y offset from top left corner

[cameras.B]
offset = [279, 310]

[cameras.C]
offset = [92, 98]

Let me know if that makes sense.

from anipose.

lambdaloop avatar lambdaloop commented on May 23, 2024

Hi @menor22 ,

Have you tried this out? Did it work?

from anipose.

lambdaloop avatar lambdaloop commented on May 23, 2024

I think the original question is answered, but this should really be part of the documentation, so I am leaving it open for now.

from anipose.

KonradDanielewski avatar KonradDanielewski commented on May 23, 2024

Hi,

maybe it's a silly question, but...

How do I specify different starting point for cropping offset? I have videos of two rats that are cropped in the middle and it's obvious when I want to set the offset for the rat on the left, but have no idea how to do that for the one on the right. Let's say one has a compartment that starts at 0 and the other one is in a compartment that starts at 500 px. How do I specify it in config file?

Edit: I solved that. Didn't realize before that offset takes 4 values. Still for some reason I have a problem with offset of points in the 'right' part of the cage. Seems to be there only for cropped videos, when I have a full view it works fine.

from anipose.

lambdaloop avatar lambdaloop commented on May 23, 2024

@KonradDanielewski this is really a long time ago, but you only need to specify the top-left corner of your crop for the offset.
The width and height of the crop are irrelevant from a triangulation perspective as they don't actually change the coordinates

from anipose.

lambdaloop avatar lambdaloop commented on May 23, 2024

I'll just close this now, but feel free to reopen if you feel it hasn't been answered properly

from anipose.

Related Issues (20)

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.