# Images, Videos, और Annotations अपलोड करें

Roboflow के साथ किसी मॉडल को प्रशिक्षित और डिप्लॉय करने का पहला कदम डेटा को किसी Project में अपलोड करना है।

सबसे पहले, आपको यह करना होगा [एक Project बनाना](/roboflow/roboflow-hi/datasets/create-a-project.md).

फिर, आपको एक वेब पेज पर ले जाया जाएगा जहाँ से आप डेटा अपलोड कर सकते हैं। आप अपने project sidebar में उपलब्ध "Upload Data" बटन से भी इस पेज तक पहुँच सकते हैं।

## डेटा कैसे जोड़ें

आप अपने Roboflow account में डेटा इन तरीकों से जोड़ सकते हैं:

* वेब application का उपयोग करके: 1,000 से कम images वाले datasets के लिए अनुशंसित।
* command line का उपयोग करके: 1,000 से अधिक images वाले datasets के लिए अनुशंसित।
* Dataset Upload Workflow Block का उपयोग करके: production में पहले से मौजूद model वाले Workflows से data collect करने के लिए अनुशंसित।

वेब application और command line से, आप यह अपलोड कर सकते हैं:

* JPG, PNG, WEBP, AVIF, BMP, और HEIC/HEIF images.\*
* MOV और MP4 videos.
* PDF files.
* [किसी भी समर्थित format में annotations.](https://roboflow.com/formats)

\**अधिकतम size 20MB और 16,400 x 10,900 pixels।*

आप केवल अपनी संबंधित images के साथ annotations अपलोड कर सकते हैं। आप उन images के लिए annotations अपलोड नहीं कर सकते जो पहले ही आपके dataset में import हो चुकी हैं।

## वेब Application के साथ Data अपलोड करें

जब आप कोई project बनाते हैं, या Upload Data page पर, आपको एक box दिखाई देगा जिसमें आप images, videos, और annotations को drag and drop कर सकते हैं:

<figure><img src="/files/f2322ffb592117bfcdb7b001bbc0e4fd2684e2e6" alt="" width="563"><figcaption></figcaption></figure>

[40 से अधिक annotation formats समर्थित हैं.](https://roboflow.com/formats) समर्थित formats आपके project type के आधार पर अलग-अलग होते हैं।

<details>

<summary>File names कैसे process किए जाते हैं</summary>

हम upload/import और export दोनों में class names को sanitize करते हैं ताकि image file names standardized किए जा सकें। upload और dataset export पर, हम निम्न कार्य करते हैं:

* शुरुआत/अंत की whitespace हटाना
* सारी whitespace (newlines और tabs सहित) को एक space में बदला जाता है
* दोहरी spaces हटाई जाती हैं
* `/.[]#~*` characters को एक dash से बदला जाता है (`-`)
* `|'"` characters हटाए जाते हैं

</details>

### Video अपलोड करें

अपलोड किए गए videos को अलग-अलग frames में तोड़ा जाता है, जिन पर आप annotation कर सकते हैं। जब आप कोई video अपलोड करते हैं, तो एक extraction dialog खुलता है जिसमें एक built-in video player और frames चुनने के लिए दो modes होते हैं।

#### Interval extraction

नियमित intervals पर frames sample करने के लिए frame rate सेट करें। सबसे ऊँची rate 60 frames per second है; सबसे कम 1 frame per 60 seconds है। यदि आप केवल frames manually चुनना चाहते हैं, तो आप interval extraction को disable कर सकते हैं।

#### Manual frame marking

Video चलाएँ या scrub करें और extraction के लिए specific frames mark करें। वर्तमान position पर marker लगाने के लिए "Mark frame" बटन या `M` key दबाएँ। एक-एक frame के लिए नेविगेट करने के लिए `,` और `.`का उपयोग करें, या markers के बीच जाने के लिए `Shift+Left` और `Shift+Right`.

आप दोनों modes को साथ में उपयोग कर सकते हैं। Interval frames और manual marks को merge किया जाता है और duplicate हटाए जाते हैं, और dialog में extract किए जाने वाले कुल frames की live count दिखाई देती है।

वीडियो के केवल किसी हिस्से से extract करने के लिए, filmstrip पर trim handles को drag करके start और end point सेट करें। trimmed range के बाहर के frames शामिल नहीं किए जाते।

वीडियो को frames में split करने और उन्हें अपने dataset पर upload करने के लिए "Extract N frames" पर क्लिक करें।

जब कई videos queue में हों, तो आप सभी पर समान interval settings लागू कर सकते हैं। Manual marks प्रति-video होते हैं, इसलिए manual marks मौजूद होने पर हर video अपना अलग dialog खोलता है।

<details>

<summary>समर्थित वीडियो file formats</summary>

Roboflow वीडियो files को parse करके frames वाली images में बदलने के लिए आपके browser की built-in video file support का उपयोग करता है, जिनका उपयोग आप अपने models को train करने के लिए कर सकते हैं। इसका मतलब है कि आप कई अलग-अलग video formats का उपयोग कर सकते हैं, जिनमें MOV और MP4 files शामिल हैं, यह आपके उपयोग किए जा रहे browser पर निर्भर करता है।

आप [यह जाँच सकते हैं कि आपके browser द्वारा कौन-से video formats समर्थित हैं](https://caniuse.com/?search=video%20format).

ध्यान दें कि, उदाहरण के लिए, HEVC/H.265 encoded MP4 files केवल Safari browser द्वारा समर्थित हैं। यदि आप किसी GoPro या iPhone से import कर रहे हैं जो H.265 में शूट करता है, तो आप settings को H.264 में बदलना चाह सकते हैं, जो अधिक व्यापक रूप से समर्थित है।

यदि आपको अपने video file को Roboflow में load करने में परेशानी हो रही है, तो आप हमारे [forum](https://discuss.roboflow.com/) पर पोस्ट कर सकते हैं या अपने account representative से संपर्क कर सकते हैं।

</details>

## Command Line के साथ Datasets अपलोड करें

आप Roboflow Python command line interface का उपयोग करके बड़े datasets अपलोड कर सकते हैं।

आप command line interface के साथ केवल images अपलोड कर सकते हैं। यदि आपके पास videos हैं, तो आपको उन्हें [files के रूप में सहेजे गए frames में split करना होगा](https://superuser.com/questions/1044444/how-do-i-use-ffmpeg-to-split-a-video-into-images-and-then-reassemble-exactly-the). फिर इन files को Roboflow पर अपलोड किया जा सकता है।

शुरू करने के लिए, पहले यह इंस्टॉल करें `roboflow-python`:

```
pip install roboflow
```

इसके बाद, [अपना Workspace ID प्राप्त करें](https://docs.roboflow.com/developer/rest-api/workspace-and-project-ids).

अंत में, निम्न format में एक command तैयार करें:

```
roboflow import -w testupload -p project-1-8zgld /path/to/dataset/folder
```

आपको जिन arguments को specify करना है, वे यहाँ हैं:

* `-w testupload`: यह workspace name है।
* `-p <project-id>`: यह आपका project ID है।

जब आप command चलाएँगे, तो आपको एक संदेश दिखाई देगा जो दर्शाता है कि upload process शुरू हो चुका है। फिर जैसे-जैसे images upload होंगी, आपको logs दिखाई देंगे:

<figure><img src="/files/1c69a9f47131c4126866b81f897a9ea1d0821ee0" alt=""><figcaption><p>command-line का उपयोग करके dataset अपलोड करना</p></figcaption></figure>

हमारे पास एक video walkthrough है जो दिखाता है कि command line से data कैसे अपलोड करें:

{% embed url="<https://www.loom.com/share/19637984033a466b831af56f9404fa89>" %}

## अपना Uploaded Data देखें

Roboflow पर अपलोड किया गया सारा data एक "batch" में अपलोड होता है। इन batches को आपके Project Annotate page पर देखा जा सकता है:

<figure><img src="/files/c3502cde5bce9d7f911bae69bcd2f87a62a18060" alt=""><figcaption></figcaption></figure>

## Image Size सीमाएँ

किसी image का अधिकतम size 20 MB है

अधिकतम pixel dimensions 16,400 × 10,900 pixels हैं।

## Duplicate Images

यदि आप कोई ऐसी image अपलोड करने की कोशिश करते हैं जो पहले से किसी Project में मौजूद है, तो उस image के लिए upload छोड़ दिया जाएगा।

{% hint style="info" %}
यदि आप [दो datasets को merge करते हैं](https://docs.roboflow.com/merge-datasets), तो merged dataset और दोनों मूल datasets आपके account में मौजूद रहते हैं। इसलिए merge के लिए कोई शुल्क नहीं है, क्योंकि images duplicate हैं।
{% endhint %}

## Data Ownership

Roboflow पर आप जो भी images और videos upload करते हैं, उनका स्वामित्व आपके पास बना रहता है। यह इसमें परिभाषित है [हमारी Terms of Service के Section 23B में](https://roboflow.com/terms):

> किसी भी content, information, या materials में आपके सभी ownership rights बने रहते हैं, जिन्हें आप पोस्ट, submit, publish, display, या transmit करते हैं

## Data Privacy

**Public Plan:** यदि आप Public plan पर हैं, तो जब तक Roboflow द्वारा स्पष्ट रूप से specified और arranged न किया गया हो, आपके datasets Roboflow Universe पर public होंगे।

**Paid Plans (Enterprise सहित):** जब तक अन्यथा specified न हो, आपका data आपके account के लिए private रहता है।


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.roboflow.com/roboflow/roboflow-hi/datasets/adding-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
