Chart bike rack occupancy with Hugging Face and InstaCharts

Estimate bike rack occupancy from masked snapshots and archive a chart of the valid daily observations for transport planners.

27 stepsOperations

Free to start, no card required.

How it works

  1. When this happens

    Watch the rack survey inbox

    Backblaze

  2. Step 1 · Code

    Select the rack survey batch

  3. Step 2

    Check the source record

    Follows the first path that matches

    • Complete record

      1. Step 3 · Backblaze

        Read the daily survey manifest

      2. Step 4 · Files Helper

        Read the scheduled sample times

      3. Step 5 · Code

        Validate the masked sample manifest

      4. Step 6 · Code

        Identify this survey report

      5. Step 7 · Storage

        Check for an earlier delivery

      6. Step 8

        Check delivery history

        Follows the first path that matches

        • First delivery

          1. Step 9

            Count each masked rack image

            1. Step 10 · Storage

              Read the completed observations

            2. Step 11 · Code

              Check this sample’s receipt

            3. Step 12

              Check the source record

              Follows the first path that matches

              • Complete record

                1. Step 13 · Backblaze

                  Read the masked rack photo

                2. Step 14 · Files Helper

                  Read the PNG bytes

                3. Step 15 · Code

                  Check the camera crop and checksum

                4. Step 16 · Storage

                  Reserve this image inference

                5. Step 17 · Hugging Face

                  Detect bicycles in the masked crop

                6. Step 18 · Code

                  Count bikes visible in the rack

                7. Step 19 · Storage

                  Save only the aggregate count

              • Otherwise

                Nothing happens

            Repeats for every item

          2. Step 20 · Storage

            Read the daily observations

          3. Step 21 · Code

            Prepare the rack occupancy series

          4. Step 22 · Storage

            Reserve the report image

          5. Step 23 · InstaCharts

            Chart the daily occupancy samples

          6. Step 24 · Backblaze

            Archive the private occupancy chart

          7. Step 25 · Code

            Verify the stored chart reference

          8. Step 26 · Storage

            Save the delivery receipt

        • Otherwise

          Nothing happens

    • Otherwise

      Nothing happens

Before you start

Set the site, physical capacity and masked PNG dimensions, then calibrate bicycle counts against a manual survey and authorize sending rack-only images to Hugging Face. In Backblaze, store three to twelve cropped PNGs per UTC day under masked/<site>/<day>/HHMM.png and write ready/<site>/<day>.json last with site, day, masked=true and samples containing utc (HH:MM) and sha256. Select an InstaCharts template and keep the private reports/ prefix outside the trigger folder.

Accounts to connect

See all 419 in Operations

Your first automationstarts with one sentence.

Start free with 1,000 credits, no card needed. Rather have it done for you? Our team builds it.

Use template